(function(e){function t(t){for(var o,n,r=t[0],l=t[1],c=t[2],u=0,d=[];u<r.length;u++)n=r[u],Object.prototype.hasOwnProperty.call(a,n)&&a[n]&&d.push(a[n][0]),a[n]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);p&&p(t);while(d.length)d.shift()();return i.push.apply(i,c||[]),s()}function s(){for(var e,t=0;t<i.length;t++){for(var s=i[t],o=!0,n=1;n<s.length;n++){var r=s[n];0!==a[r]&&(o=!1)}o&&(i.splice(t--,1),e=l(l.s=s[0]))}return e}var o={},n={app:0},a={app:0},i=[];function r(e){return l.p+"js/"+({}[e]||e)+"."+{"chunk-352be6e8":"dfc6e589","chunk-46a139e6":"e3123c4e","chunk-496173a3":"433ffac6","chunk-4a75d187":"447130c0","chunk-6757774d":"85e1a1a9","chunk-a71d0aa0":"3cf33626","chunk-14a180b8":"4b8c0c3d","chunk-4baf8cbf":"683599b1","chunk-77eaca0a":"8ba06f83","chunk-a2b48bb8":"5d7afe5f","chunk-b66052c2":"4639ee43","chunk-087d05b8":"019f3c40"}[e]+".js"}function l(t){if(o[t])return o[t].exports;var s=o[t]={i:t,l:!1,exports:{}};return e[t].call(s.exports,s,s.exports,l),s.l=!0,s.exports}l.e=function(e){var t=[],s={"chunk-352be6e8":1,"chunk-46a139e6":1,"chunk-496173a3":1,"chunk-4a75d187":1,"chunk-6757774d":1,"chunk-a71d0aa0":1,"chunk-14a180b8":1,"chunk-4baf8cbf":1,"chunk-77eaca0a":1,"chunk-a2b48bb8":1,"chunk-b66052c2":1,"chunk-087d05b8":1};n[e]?t.push(n[e]):0!==n[e]&&s[e]&&t.push(n[e]=new Promise((function(t,s){for(var o="css/"+({}[e]||e)+"."+{"chunk-352be6e8":"63d85e7a","chunk-46a139e6":"ab18a8d6","chunk-496173a3":"4828c644","chunk-4a75d187":"54d293b2","chunk-6757774d":"ab18a8d6","chunk-a71d0aa0":"c6024db9","chunk-14a180b8":"71c511ef","chunk-4baf8cbf":"fcb85eaa","chunk-77eaca0a":"0bbede54","chunk-a2b48bb8":"5a731bbc","chunk-b66052c2":"ab18a8d6","chunk-087d05b8":"49331052"}[e]+".css",a=l.p+o,i=document.getElementsByTagName("link"),r=0;r<i.length;r++){var c=i[r],u=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(u===o||u===a))return t()}var d=document.getElementsByTagName("style");for(r=0;r<d.length;r++){c=d[r],u=c.getAttribute("data-href");if(u===o||u===a)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var o=t&&t.target&&t.target.src||a,i=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=o,delete n[e],p.parentNode.removeChild(p),s(i)},p.href=a;var h=document.getElementsByTagName("head")[0];h.appendChild(p)})).then((function(){n[e]=0})));var o=a[e];if(0!==o)if(o)t.push(o[2]);else{var i=new Promise((function(t,s){o=a[e]=[t,s]}));t.push(o[2]=i);var c,u=document.createElement("script");u.charset="utf-8",u.timeout=120,l.nc&&u.setAttribute("nonce",l.nc),u.src=r(e);var d=new Error;c=function(t){u.onerror=u.onload=null,clearTimeout(p);var s=a[e];if(0!==s){if(s){var o=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+o+": "+n+")",d.name="ChunkLoadError",d.type=o,d.request=n,s[1](d)}a[e]=void 0}};var p=setTimeout((function(){c({type:"timeout",target:u})}),12e4);u.onerror=u.onload=c,document.head.appendChild(u)}return Promise.all(t)},l.m=e,l.c=o,l.d=function(e,t,s){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(l.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)l.d(s,o,function(t){return e[t]}.bind(null,o));return s},l.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="/menota/",l.oe=function(e){throw console.error(e),e};var c=window["webpackJsonp"]=window["webpackJsonp"]||[],u=c.push.bind(c);c.push=t,c=c.slice();for(var d=0;d<c.length;d++)t(c[d]);var p=u;i.push([0,"chunk-vendors"]),s()})({0:function(e,t,s){e.exports=s("56d7")},"07ff":function(e,t,s){"use strict";s("98f6")},"09ba":function(e,t,s){},"0ac1":function(e,t,s){"use strict";s("d7e2")},"0e95":function(e,t,s){e.exports=s.p+"img/zero.large.c1a2e062.png"},"0ec3":function(e,t,s){e.exports=s.p+"img/SA.a47b23e6.png"},"14b6":function(e,t,s){e.exports=s.p+"img/inf.5a040f85.png"},"15fe":function(e,t,s){"use strict";s.d(t,"a",(function(){return n}));var o={show:!1,prevCpos:null,tokenCpos:null,corpus:null,target:"ptarget",items:[],dictEntries:[],mode:"features",edit:null};const n={data(){return{popoverData:o}},methods:{onHidden:function(e){return e},closePopups:function(e){console.log("closePopups "+e),this.popoverData.show=!1,this.popoverData.prevCpos="textParse"==e?this.popoverData.tokenCpos=-1:this.popoverData.tokenCpos}}}},"1b44":function(e,t,s){e.exports=s.p+"img/nc-eu.large.d94d0d82.png"},"1c5a":function(e,t,s){e.exports=s.p+"img/ID.8aac0d97.png"},"1f0a":function(e,t,s){e.exports=s.p+"img/clarino-green-lrg-trans.41db482d.png"},"1f23":function(e,t,s){e.exports=s.p+"img/PLAN.997253d2.png"},"20a7":function(e,t,s){"use strict";s("e1a4")},2233:function(e,t,s){e.exports=s.p+"img/nored.a16a384a.png"},"270b":function(e,t,s){e.exports=s.p+"img/CC.8492ba5f.png"},2842:function(e,t,s){},"2aab":function(e,t,s){e.exports=s.p+"img/aca.dfd34aec.png"},"2b84":function(e,t,s){e.exports=s.p+"img/PUB.fce8853f.png"},"30f3":function(e,t,s){},3161:function(e,t,s){e.exports=s.p+"img/sa.large.a47b23e6.png"},3639:function(e,t,s){},"368a":function(e,t,s){e.exports=s.p+"img/priv.693f2bbe.png"},"3a3a":function(e,t,s){"use strict";s("5a97")},"3a4e":function(e,t,s){e.exports=s.p+"img/LRT.1938437e.png"},"3c8c":function(e,t,s){e.exports=s.p+"img/INF.5a040f85.png"},"3f0d":function(e,t,s){"use strict";s("09ba")},"3f53":function(e,t,s){e.exports=s.p+"img/ND.5bdbead2.png"},4047:function(e,t,s){e.exports=s.p+"img/nd.large.5bdbead2.png"},"44bf":function(e,t,s){"use strict";s.d(t,"a",(function(){return c})),s.d(t,"e",(function(){return g})),s.d(t,"d",(function(){return S})),s.d(t,"f",(function(){return w})),s.d(t,"c",(function(){return C})),s.d(t,"b",(function(){return q}));s("5319");var o=s("56d7"),n=s("be92"),a=s("d3a4"),i=s("11c1"),r=s("1157"),l=s.n(r);const c="production";var u={sessionId:null,inessSessionId:null,userId:null,userName:null,jwt:null,hasLogin:!0};const d=Object(n["c"])("session",{state:()=>({sessionId:null,inessSessionId:null,userId:null,userName:null,jwt:null,hasLogin:!0})});var p={message:null,show:!1},h={message:null,show:!1},m=21,f=JSON.parse(localStorage.getItem("/menota/State"));const g=Object(n["c"])("state",{state:()=>f&&f.version&&f.version==m?f:{version:m,project:"menota",jwt:null,locale:a["b"]||"en",acceptedLicenses:[],corpusList:[],languageList:[],collectionList:[],excludedCorpusList:[],transliteration:null,queryString:"",query:{},attributes:["kwic","word"],structures:[],wordList:{attribute:"word",atomicValues:!1,ignoreCase:!1},distributionParameters:{distributionType:"absolute",includeStructures:!1,xAtt:"word",y0Att:"",y1Att:"",y2Att:"",xFilter:"",y0Filter:"",y1Filter:"",y2Filter:"",xIgnoreCase:!1,y0IgnoreCase:!1,y1IgnoreCase:!1,y2IgnoreCase:!1,percentages:!1,relativeBars:!0,absoluteBars:!0,downloadMode:"abs"},parseText:{},kwicPerPage:30,showAnnotations:!1,showSelectedVarOnly:!1,variable:"-",task:"A",showSyntax:!1,linear:!0,textFilter:"",docFilter:"",textCorpus:null,documentId:null,collapseReadings:!1,noCtrlKey:!1,contextBox:!0,photo:!1,photoScaling:80,translation:!1,facs:!1,dipl:!0,norm:!1,editNorm:!0,editFacs:!1,posOnly:!1,docPath:[]},getters:{},actions:{setLocale(e){this.locale=e,a["a"].locale=e}}});function b(e){let t=e.split(".")[1],s=t.replace(/-/g,"+").replace(/_/g,"/"),o=decodeURIComponent(atob(s).split("").map(e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(o)}const v=async()=>{while(!Object(n["d"])())await new Promise(e=>requestAnimationFrame(e));g().$subscribe((e,t)=>{localStorage.setItem("/menota/State",JSON.stringify(t))}),localStorage.jwt?g().jwt=b(localStorage.jwt):g().jwt=null,a["a"].locale=g().locale};v();var k={corpusList:[],chosenCorpusList:[]},y={corpusList:[],selectedAttributes:["word","kwic","count","cpos"]};const S=Object(n["c"])("query",{state:()=>({string:"",object:{positionalConstraints:{type:"seq",id:0,items:[{type:"constraint",id:1,value:[{att:"word",value:"",ignoreCase:!1}],repetition:"1"}]},copy:null},queryState:{matchSize:-1,query:null},collocationsState:{collocationsSize:-1,state:"idle"},distributionState:{distributionSize:-1,state:"idle"},changed:!1,hideSearch:!1,gqShow:!0}),getters:{},actions:{}}),w=Object(n["c"])("token",{state:()=>({word:null,lemma:null,pos:null,morph:null,edit:!1,tokenCpos:null,corpus:null,pageName:null,target:"ptarget",detailsMode:"features",items:[],dictEntries:[],showDefinitions:!0})}),C=Object(n["c"])("parse",{state:()=>({language:"kat",tokens:[],tokenCount:0,pageSize:20,busy:!1,mode:"parsed-text",focus:{token:null,reading:null,tokenId:0,readingIndex:0,element:"token"},canParse:!1,dictEntries:[],tokenId:null,lemma:null,text:null,showRules:!0,features:null,feature_table:null,leftContext:[],rightContext:[]})}),x=[{key:"count",label:"Ctxt",tdClass:"kwic-cell right link"},{key:"leftContext",label:"Left",tdClass:"kwic-cell",sortable:!0},{key:"match",tdClass:"kwic-cell match text-truncate",sortable:!0},{key:"rightContext",label:"Right",tdClass:"kwic-cell",sortable:!0}];var _=[],A=[];function L(e,t,s,n){return e="iness"==t?o["apiEndpointINESS"]+e:o["apiEndpointKorpuskel"]+e,fetch(e,{headers:"PUT"==s||"POST"==s?{"Content-Type":"application/x-www-form-urlencoded"}:{},method:s||"GET",body:n}).then(e=>e.json()).then(t=>{if(t.error){if(console.log("API error: "+t.error),console.log("URL: "+e),"Session has expired."!=t.error)throw new Error(t.error);this.sessionStore.sessionId=null,this.sessionStore.userId=null,this.sessionStore.userName=null,u.hasLogin&&"lex"==this.stateStore.project&&(localStorage.removeItem("jwt"),this.sessionStore.jwt=null)}return t})}function P(e){return e=o["apiEndpointKorpuskel"]+e,fetch(e,{credentials:"include"}).then(e=>e.text()).then(e=>e)}const q={data(){return{session:u,corpusAlert:p,queryAlert:h,corpusListInfo:k,corpusBagInfo:y,fields:_,fields_sm:x,fieldsAnn:A,showConcordanceForChildQuery:!0,fieldsBase:[{key:"count",label:this.$t("Ctxt"),tdClass:"kwic-cell right link",stickyColumn:!0},{key:"leftContext",label:this.$t("Left"),tdClass:"kwic-cell",sortable:!0},{key:"match",label:this.$t("Match"),tdClass:"kwic-cell match text-truncate",sortable:!0},{key:"annotation",tdClass:"kwic-cell",sortable:!0},{key:"rightContext",label:this.$t("Right"),tdClass:"kwic-cell",sortable:!0}]}},watch:{$route(e,t){t.params.project!=e.params.project&&(console.log("change project:",t.params.project,e.params.project),this.$store.dispatch("changeProject",e.params.project))}},computed:{...Object(n["e"])(g,S,w,d),hasDependencies:function(){return!["menota","menota-vue"].find(e=>e==this.stateStore.project)}},methods:{showAlert:function(e){e.toString().search("Unrecognized Token")>-1?(this.queryAlert.message=e,this.queryAlert.show=!0):(this.corpusAlert.message=e,this.corpusAlert.show=!0,o["app"].$bvToast.toast(""+e,{title:"Warning",autoHideDelay:5e3,appendToast:!0,variant:"primary",toaster:"b-toaster-top-left",headerClass:"toast-header",bodyClass:"toast-body"}))},dismissAlert:function(){this.corpusAlert.message=null,this.corpusAlert.show=!1,this.queryAlert.message=null,this.queryAlert.show=!1},randomID:function(){return"function"===typeof crypto.randomUUID?crypto.randomUUID():Object(i["v4"])()},indexToPath:function(e){switch(e){case 0:return"concordance";case 1:return"word-list";case 2:return"collocations";case 3:return"distribution";case 4:return this.corpusBagInfo.hasYear||this.corpusBagInfo.hasDate?"timeline":"text";case 5:return this.corpusBagInfo.hasYear||this.corpusBagInfo.hasDate?"text":"parsed-page";case 6:return"parsed-page"}},pathToIndex:function(e){switch(e){case"concordance":return 0;case"word-list":return 1;case"collocations":return 2;case"distribution":return 3;case"timeline":return 4;case"text":return this.corpusBagInfo.hasYear||this.corpusBagInfo.hasDate?5:4;case"parsed-page":return this.corpusBagInfo.hasYear||this.corpusBagInfo.hasDate?6:5;default:return 0}},callCorpusAPI:function(e,t,s,o,n){let a=(null===t||void 0===t?void 0:t["page"])||"rest",i=a+"?command="+e+"&session-id="+("iness"==s?this.sessionStore.inessSessionId:this.sessionStore.sessionId);return"lex"==this.stateStore.project?i+="&jwt="+localStorage.jwt:this.sessionStore.hasLogin||(i+="&no-login=true"),t&&Object.keys(t).map((function(e){let s=t[e];i+="&"+e+"="+encodeURIComponent(s)})),L(i,s,o,n).then(e=>{if(e)return e.expired?("iness"==s?this.sessionStore.inessSessionId=null:(this.sessionStore.sessionId=null,this.sessionStore.userId=null,this.sessionStore.userName=null),this.sessionStore.hasLogin&&"lex"==this.stateStore.project&&(localStorage.removeItem("jwt"),this.sessionStore.jwt=null),this.$bvModal.show("bv-modal-expired"),e):e;throw new Error("The Corpuscle server returned no result.")}).catch(e=>{"TypeError: Failed to fetch"==e?this.showAlert("The Corpuscle server did not respond."):this.showAlert(e)})},loadHTML:function(e,t){let s=e+"?session-id="+this.sessionStore.sessionId;return t&&Object.keys(t).map((function(e){s+="&"+e+"="+encodeURIComponent(t[e])})),P(s).then(e=>e).catch(this.showAlert)},checkExpired:function(){this.sessionStore.userId&&this.callCorpusAPI("check-expired").then(e=>{e.expired&&(console.log("expired"),this.sessionStore.sessionId=null,this.$bvModal.show("bv-modal-expired"))}).catch(this.showAlert)},licenseAccepted:function(e){return this.stateStore.acceptedLicenses.indexOf(e)>-1||this.corpusListInfo.corpusList.find(t=>t.name==e).license.accepted},setCorpusSelectionByLangAndColl:function(e,t){e?this.corpusListInfo.languages.forEach(t=>t.inactive=!e.find(e=>e==t.iso)):this.corpusListInfo.languages.forEach(e=>e.inactive=!1),t?this.corpusListInfo.collections.forEach(e=>e.inactive=!t.find(t=>t==e.name)):this.corpusListInfo.collections.forEach(e=>e.inactive=!1)},setCorpusSelection:function(e){let t=!1,s=[];this.corpusListInfo.corpusList.forEach(t=>t.inactive=!e.find(e=>e==t.name)),this.corpusListInfo.languages.forEach(e=>e.inactive=!this.corpusListInfo.corpusList.find(t=>!t.inactive&&t.languages.find(t=>t==e.iso))),this.corpusListInfo.corpusList.forEach(e=>{var s;return e.inactive||null!==(s=e.collections)&&void 0!==s&&s.length?null:t=!0}),this.corpusListInfo.collections.forEach(e=>e.inactive=!t&&!this.corpusListInfo.corpusList.find(t=>!t.inactive&&t.collections.find(t=>t==e.name))),this.corpusListInfo.corpusList.forEach(e=>{e.inactive&&this.corpusListInfo.languages.find(t=>e.languages.find(e=>!e.inactive&&e==t.iso))&&(t||this.corpusListInfo.collections.find(t=>e.collections.find(e=>!e.inactive&&e==t.name)))&&s.push(e.name)}),this.stateStore.excludedCorpusList=s},computeActiveCorpus:function(e){var t,s,o,n;this.tokenStore.corpus=null,this.corpusListInfo.chosenCorpusList=[],this.allLanguagesActive=!0,this.allCollectionsActive=!0,null===(t=this.corpusListInfo.collections)||void 0===t||t.forEach(e=>e.inactive?this.allCollectionsActive=!1:null),null===(s=this.corpusListInfo.corpusList)||void 0===s||s.forEach(t=>{"menota"==this.stateStore.project||"abnc"==this.stateStore.project?(t.inactive=!1,this.stateStore.excludedCorpusList.find(e=>t.name==e)||this.corpusListInfo.chosenCorpusList.push(t)):!e&&t.languages.find(e=>this.corpusListInfo.languages.find(t=>t.iso==e&&!t.inactive))&&(this.allCollectionsActive||t.collections.find(e=>this.corpusListInfo.collections.find(t=>t.name==e&&!t.inactive)))?(!this.stateStore.excludedCorpusList.find(e=>t.name==e)&&this.licenseAccepted(t.name)&&this.corpusListInfo.chosenCorpusList.push(t),t.inactive=!1):null!==e&&void 0!==e&&e.find(e=>e==t.name)?(this.corpusListInfo.chosenCorpusList.push(t),t.inactive=!1):t.inactive=!0}),null===(o=this.corpusListInfo.languages)||void 0===o||o.forEach(e=>{e.inactive&&(this.allLanguagesActive=!1);let t=0;this.corpusListInfo.corpusList.forEach(s=>s.languages.find(t=>t==e.iso)&&s.collections.find(e=>this.corpusListInfo.collections.find(t=>!t.inactive&&t.name==e))?t++:null),e.activeCount=t}),null===(n=this.corpusListInfo.collections)||void 0===n||n.forEach(e=>{let t=0;this.corpusListInfo.corpusList.forEach(s=>s.collections.find(t=>t==e.name)&&s.languages.find(e=>this.corpusListInfo.languages.find(t=>!t.inactive&&t.iso==e))?t++:null),e.activeCount=t}),this.corpusListInfo.collections&&(this.stateStore.collectionList=this.corpusListInfo.collections.filter(e=>!e.inactive).map(e=>e.name)),this.corpusListInfo.languages&&(this.stateStore.languageList=this.corpusListInfo.languages.filter(e=>!e.inactive).map(e=>e.iso)),this.queryStore.string=this.stateStore.queryString,this.getCorpusBagInfo()},initTreebank:function(){this.callCorpusAPI("get-session",{},"iness").then(e=>{e&&(e.expired?(this.sessionStore.inessSessionId=null,this.showAlert("Session has expired. Please sign in again.")):this.sessionStore.inessSessionId=e.sessionId)})},getReturnUrl:function(){var e="",t=null;return location.port&&(e=":"+location.port),t=location.protocol+"//"+location.hostname+e+location.pathname,t},singleSignin:function(){let e=this.getReturnUrl();window.open(o["apiPathKorpuskel"]+"login?return-url="+encodeURIComponent(e),"_self")},initCorpus:function(e,t){let s=this.stateStore.project;this.queryStore.collocationsState={collocationsSize:-1,state:"idle"},this.queryStore.distributionState={distributionSize:-1,state:"idle"},this.queryStore.queryState={matchSize:-1},this.callCorpusAPI("get-session",{"new-session":e}).then(e=>{e&&(e.expired?(this.sessionStore.sessionId=null,this.showAlert("Session has expired. Please sign in again.")):(this.sessionStore.sessionId=e.sessionId,this.sessionStore.userId=e.userId,this.sessionStore.userName=e.userName,this.callCorpusAPI("list-resources",{details:!0,project:s}).then(e=>{var s;this.corpusListInfo.languages=e.languages,this.corpusListInfo.collections=e.collections;let o=this.stateStore.languageList,n=this.stateStore.collectionList;var a,i;o&&(null===(a=this.corpusListInfo.languages)||void 0===a||a.map(e=>o.find(t=>t==e.iso)?e.inactive=!1:e.inactive=!0));n&&(null===(i=this.corpusListInfo.collections)||void 0===i||i.map(e=>n.find(t=>t==e.name)?e.inactive=!1:e.inactive=!0));this.corpusListInfo.corpusList=null===(s=e.resources)||void 0===s?void 0:s.sort((e,t)=>e.printName.localeCompare(t.printName)),this.computeActiveCorpus(t)})))}).catch(this.showAlert)},getCorpusBagInfo:function(){this.stateStore.corpusList=this.corpusListInfo.chosenCorpusList,this.corpusListInfo.chosenCorpusList&&this.corpusListInfo.chosenCorpusList.length&&this.callCorpusAPI("corpus-info",{corpus:this.corpusListInfo.chosenCorpusList.map(e=>e.name),project:this.stateStore.project}).then(e=>{var t,s,o,n;this.corpusBagInfo.corpusList=e.corpusList||[],this.corpusBagInfo.hasLemmaQuery=(null===(t=e.corpusList)||void 0===t?void 0:t.reduce((e,t)=>e||t.hasLemmaQuery,!1))&&!0,this.corpusBagInfo.hasFeaturesQuery=(null===(s=e.corpusList)||void 0===s?void 0:s.reduce((e,t)=>e||t.hasFeaturesQuery,!1))&&!0,this.corpusBagInfo.hasAudio=(null===(o=e.corpusList)||void 0===o?void 0:o.reduce((e,t)=>e||t.hasAudio,!1))&&!0,this.corpusBagInfo.hasVideo=(null===(n=e.corpusList)||void 0===n?void 0:n.reduce((e,t)=>e||t.hasVideo,!1))&&!0,this.corpusBagInfo.attributes=e.attributesUnion,this.corpusBagInfo.structures=e.structuresUnion,this.corpusBagInfo.hasYear=this.corpusBagInfo.attributes.find(e=>"year"==e.name)&&!0,this.corpusBagInfo.hasDate=this.corpusBagInfo.attributes.find(e=>"date"==e.name)&&!0,this.corpusBagInfo.hasAnnotation=this.corpusBagInfo.corpusList.find(e=>e.dbAttributes.find(e=>"annotation"==e.name))&&!0,e.corpusList&&1==e.corpusList.length&&(this.corpusBagInfo.tasks=e.corpusList[0].tasks,this.corpusBagInfo.variables=e.corpusList[0].variables),this.corpusBagInfo.hasLemma=this.corpusBagInfo.attributes.find(e=>"lemma"==e.name)&&!0,this.corpusBagInfo.selectedStructures=this.stateStore.structures||["_all"],this.corpusBagInfo.distributionParameters=this.stateStore.distributionParameters,this.updateKwicFields()}).catch(this.showAlert)},updateKwicFields:function(){this.updateFields(this.fields),this.updateFields(this.fieldsAnn,!0)},updateFields:function(e,t){var s;let o=this.stateStore.attributes;e.splice(0,e.length),this.fieldsBase.map(s=>{"annotation"==s.key?t&&e.push(s):"rightContext"==s.key||"leftContext"==s.key?this.stateStore.attributes.find(e=>"kwic"==e)&&e.push(s):e.push(s)}),e.map(e=>{let t=e.tdClass.search(" last");t>-1&&(e.tdClass=e.tdClass.substring(0,t))}),(this.corpusBagInfo.hasAudio||this.corpusBagInfo.hasVideo)&&e.unshift({key:"avPairs.time-interval",label:"Play",tdClass:"kwic-cell",sortable:!1}),this.corpusBagInfo.attributes.map(t=>{o.find(e=>e==t.name)&&"corpus"!=t.name&&"cpos"!=t.name&&"word"!=t.name&&"kwic"!=t.name&&"time-interval"!=t.name?e.push({key:"avPairs."+t.name,label:t.name,tdClass:"kwic-cell attribute",sortable:!0}):"corpus"!=t.name&&"cpos"!=t.name||!o.find(e=>e==t.name)||e.splice(1,0,{key:"avPairs."+t.name,label:t.name,tdClass:"kwic-cell attribute",sortable:!0})});let n=e[e.length-1];n.tdClass=n.tdClass+" last",null===(s=this.$refs.kwicConcordanceTable)||void 0===s||s.refresh()},invalidateTables:function(e){var t;this.queryStore.collocationsState={collocationsSize:-1,state:"idle"},this.queryStore.distributionState={distributionSize:-1,state:"idle"},e&&(this.queryStore.queryState={matchSize:-1}),null===(t=this.$refs.collocationList)||void 0===t||t.refresh()},closePopups:function(){this.tokenStore.showPopup=!1,l()("#kwic-token-details-div").addClass("hidden"),l()("#text-token-details-div").addClass("hidden"),l()("#dependency").hide(),l()("#dependency-tree").hide()},stringifyQuery:function(){let e=this.queryStore.object.positionalConstraints,t="",s=this.corpusBagInfo.hasLemmaQuery,o=this.corpusBagInfo.hasFeaturesQuery,n=this.corpusBagInfo;function a(e){var t;return(null===(t=n.corpusList)||void 0===t?void 0:t.length)&&n.corpusList[0].attributes.find(t=>t.name==e)}function i(e){if("constraint"==e.type){let n=!0,i=!1,r=1==e.value.length&&"word"==e.value[0].att,l="";e.value.forEach(e=>{var t;null!==(t=e.value)&&void 0!==t&&t.length&&(l+=n?"":" & ",n||(i=!0),n=!1,"word"==e.att?e.value?l+='"'+(e.value||"")+'"':r&&(l+="[]"):"lemma"==e.att&&s?l+="/"+(e.value||"")+"/":"morph"==e.att&&o?l+="{"+(e.value||"")+"}":"set"==a(e.att).type?(l+=e.att+"=("+(e.value||"")+")",i=!0):(l+=e.att+"='"+(e.value||"")+"'",i=!0),l+=e.ignoreCase?" %c":"")}),t+=n?"[]":i?"["+l+"]":l,e.repetition&&"1"!=e.repetition&&(t+=e.repetition)}else if("seq"==e.type)e.items.forEach(e=>{i(e),t+=" "});else{t+=" ( ";let s=!0;e.items.forEach(e=>{t+=s?"":" | ",s=!1,i(e)}),t+=")"}return t}return t=i(e),this.queryStore.string=t,this.queryStore.changed=!0,t},normCandidate:function(e){if(e.match(/<lb|<pb|<cb|<pc>/)){let t=e.match(/((<lb|<pb|<cb|<pc|<\/pc)[^<]*>)/g),s=e.replace(/((<lb|<pb|<cb|<pc|<\/pc)[^<]*>)/g,"|");s=s.replace(/(<[^<]*>)/g,"");let o=s,n="",a=0;return t.forEach(e=>{a=s.indexOf("|"),n+=s.substring(0,a)+e,s=s.substring(a+1)}),n+=s,{plain:o,xml:n}}{let t=e.replace(/(<[^<]*>)/g,"");return{plain:t,xml:t}}},storeDependency:function(e,t){this.callCorpusAPI("store-dependency",{corpus:this.tokenStore.corpus,"token-id":e.self,stored:t||""}).then(()=>{e.stored_label="ROOT"}).catch(this.showAlert)},removeDependency:function(e){this.callCorpusAPI("store-dependency",{corpus:this.tokenStore.corpus,"token-id":e.self,remove:!0}).then(()=>{e.stored_label=null}).catch(this.showAlert)}}}},4626:function(e,t,s){e.exports=s.p+"img/unspecified.1691937b.png"},4763:function(e,t,s){},"4b1d":function(e,t,s){"use strict";s("8726")},"4b23":function(e,t,s){},"53b6":function(e,t,s){e.exports=s.p+"img/lrt.1938437e.png"},"56d7":function(e,t,s){"use strict";s.r(t),s.d(t,"apiPathKorpuskel",(function(){return Us})),s.d(t,"serverKorpuskel",(function(){return Hs})),s.d(t,"apiEndpointKorpuskel",(function(){return Qs})),s.d(t,"apiEndpointINESS",(function(){return Ws})),s.d(t,"app",(function(){return oo}));s("0cdd");var o=s("2b0e"),n=s("8c4f"),a=s("58ca"),i=s("5f5b");s("ab8b"),s("2dd8");o["default"].use(i["b"]);var r=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},l=[],c={name:"App",metaInfo:{title:"Korpuskel",titleTemplate:"Korpuskel: %s"}},u=c,d=s("2877"),p=Object(d["a"])(u,r,l,!1,null,null,null),h=p.exports,m=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"korpuskel",lang:e.stateStore.locale}},[t("div",{staticClass:"content"},[t("b-navbar",{staticClass:"clarino",attrs:{toggleable:"lg",type:"light",sticky:""}},[t("b-navbar-brand",{attrs:{tabindex:"-1",href:"https://clarin.w.uib.no",target:"_blank",size:"sm"}},[t("img",{attrs:{alt:"Clarino logo",height:"55em",src:s("1f0a")}}),t("span",{staticClass:"title"},[t("router-link",{staticClass:"home-link",attrs:{to:"/"+e.project+"/home"}},[t("span",[e._v(e._s(e.siteName))])])],1)]),t("b-navbar-toggle",{attrs:{target:"nav-collapse"}}),t("b-collapse",{attrs:{id:"nav-collapse","is-nav":""}},[t("b-navbar-nav",[t("b-nav-item",{attrs:{to:"/"+e.project+"/corpora"}},[t("span",[e._v(e._s(e.$t("Corpora")))])]),t("b-nav-item",{attrs:{to:"/"+e.project+"/corpus"}},[t("span",[e._v(e._s(e.$t("Search")))])]),t("b-nav-item",{attrs:{to:e.textUrl}},[t("span",[e._v(e._s(e.$t("Text")))])]),t("b-nav-item",{attrs:{to:"/"+e.project+"/statistics"}},[t("span",[e._v(e._s(e.$t("Statistics")))])]),t("b-nav-item",{staticClass:"nobr",attrs:{to:"/"+e.project+"/details"}},[t("span",[e._v(e._s(e.$t("Corpus details")))])]),t("b-nav-item",{attrs:{to:"/"+e.project+"/documentation/korpuskel"}},[t("span",[e._v(e._s(e.$t("Documentation")))])]),t("b-nav-item",{attrs:{to:"/"+e.project+"/admin"}},[t("span",[e._v(e._s(e.$t("Admin")))])])],1),t("b-navbar-nav",{staticClass:"ml-auto"},[t("b-nav-item-dropdown",{attrs:{text:e.$t(e.stateStore.locale),right:""}},e._l(["en","no"],(function(s,o){return t("b-dropdown-item",{key:o,attrs:{href:"#","xxxv-for":"(lang, i) in ['en','de','no','ka','ab','ru']"},on:{click:function(t){return e.setLocale(s)}}},[e._v(" "+e._s(e.$t(s))+" ")])})),1),e.sessionStore.userId?t("b-nav-item",{staticClass:"nobr",attrs:{right:""},on:{click:e.requestLogout}},[t("b-icon-person-fill"),t("span",[e._v(e._s(e.sessionStore.userName))])],1):t("b-nav-item",{staticClass:"nobr",attrs:{right:""},on:{click:e.singleSignin}},[e._v(" "+e._s(e.$t("Sign in"))+" ")])],1)],1)],1),t("b-toast",{attrs:{id:"corpus-alert-toast",title:"Warning","auto-hide":""}},[e._v(" "+e._s(e.corpusAlert.message)+" ")]),t("b-modal",{attrs:{id:"bv-modal-expired","ok-title":"Sign in again","cancel-title":"OK"},on:{ok:e.singleSignin,cancel:e.requestLogout},scopedSlots:e._u([{key:"modal-title",fn:function(){return[e._v(" Your session has expired. ")]},proxy:!0}])}),t("router-view",{attrs:{tabs:e.tabs}}),t("span",{attrs:{id:"ptarget"}})],1),e._m(0)])},f=[function(){var e=this,t=e._self._c;return t("footer",{staticClass:"footer"},[t("hr"),e._v(" Design and implementation: Paul Meurer @ Clarino · "),t("a",{staticClass:"wiki",attrs:{target:"_new",href:"https://uustatus.no/nb/erklaringer/publisert/068f8dad-0427-44d4-82c2-3de9bae9d5b6"}},[e._v(" Tilgjengelighetserklæring ")]),e._v(" · "),t("a",{staticClass:"wiki",attrs:{href:"https://clarino.uib.no/korpuskel/documentation/privacy_policy"}},[e._v("Privacy policy")])])}],g=s("660e"),b=(s("f669"),s("7386")),v=s("44bf"),k=s("be92");o["default"].component("b-icon-bookmarks",b["rb"]),o["default"].use(g["a"],{breakpoints:{xs:576,sm:768,md:992,lg:1200,xl:1/0}});var y={name:"Korpuskel",components:{},mixins:[v["b"]],data:function(){return{showDetails:!1,tabs:{tabIndex:0},korpuskelBase:"/korpuskel-vue"}},created:function(){this.stateStore.project=this.project,this.initCorpus()},computed:{...Object(k["e"])(v["e"]),project:function(){return this.$route.params.project},siteName:function(){let e=this.$t(this.project);return e.charAt(0).toUpperCase()+e.slice(1)},textUrl:function(){return this.stateStore.documentId?"/"+this.project+"/text/"+this.stateStore.textCorpus+"/"+this.stateStore.documentId:"/"+this.project+"/text"},corpusList:function(){return this.corpusListInfo.corpusList&&this.corpusListInfo.chosenCorpusList?this.corpusListInfo.corpusList.filter(e=>this.corpusListInfo.chosenCorpusList.find(t=>t==e.name)):[]}},methods:{setLocale:function(e){this.stateStore.setLocale(e)},usePopup:function(){return"xs"!=this.$mq&&"sm"!=this.$mq},requestLogout:function(){localStorage.removeItem("jwt"),this.stateStore.jwt=null;let e=this.getReturnUrl();this.sessionStore.userId=null,this.sessionStore.userName=null,this.initCorpus(),window.open(Us+"logout?return-url="+encodeURIComponent(e),"_self")}}},S=y,w=(s("f713"),Object(d["a"])(S,m,f,!1,null,null,null)),C=w.exports,x=function(){var e=this,t=e._self._c;return t("div",{key:e.key,attrs:{id:"corpus-list"}},[t("h1",{staticClass:"heading ml-4 mb-0 p-2 pt-4"},[e._v(e._s(e.$t("Corpus list")))]),t("b-container",{staticClass:"p-3"},[t("b-row",{attrs:{"align-v":"center"}},[t("b-col",{attrs:{sm:"auto"}},[t("b-container",{staticClass:"p-3 border border-primary rounded-lg"},[t("b-row",{attrs:{"align-v":"center"}},[t("b-col",{attrs:{sm:"auto"}},[e._v(" "+e._s(e.$t("Select corpora by language or collection:"))+" ")])],1),t("b-row",{attrs:{"align-v":"center"}},[t("b-col",{staticClass:"my-2",attrs:{sm:"auto"}},[t("span",[e._v(e._s(e.$t("Languages"))+": ")]),e.corpusListInfo.languages?t("span",[t("span",[t("a",{class:e.allLanguagesActive?"active-link":"inactive-link",attrs:{href:"#"},on:{click:function(t){return e.activateAllLanguages()}}},[e._v(" "+e._s(e.$t("All"))+" ")])]),e._l(e.corpusListInfo.languages,(function(s,o){return t("span",{key:o,staticClass:"dot",attrs:{"xxxv-for":"(lang, index) in corpusListInfo.languages.filter(l=>l.activeCount!=0 || allCollectionsActive)"}},[0!=s.activeCount||e.allCollectionsActive?e._e():t("span",{staticClass:"disabled"},[e._v(" "+e._s(s.name)+" ")]),0!=s.activeCount||e.allCollectionsActive?t("a",{class:s.inactive?"inactive-link":"active-link",attrs:{href:"#"},on:{click:function(t){return e.toggleLanguage(s)}}},[e._v(" "+e._s(s.name))]):e._e(),e._v(" "),t("b-badge",{attrs:{variant:0!=s.activeCount||e.allCollectionsActive?s.inactive?"secondary":"success":"light"}},[s.activeCount<s.count&&!e.allCollectionsActive?t("span",[e._v(" "+e._s(s.activeCount)+"/")]):e._e(),e._v(e._s(s.count)+" ")])],1)}))],2):e._e()])],1),t("b-row",{attrs:{"align-v":"center"}},[t("b-col",{staticClass:"my-2",attrs:{sm:"auto"}},[t("span",[e._v(" "+e._s(e.$t("Collections"))+": ")]),e.corpusListInfo.collections?t("span",[t("span",[t("a",{class:e.allCollectionsActive?"active-link":"inactive-link",attrs:{href:"#"},on:{click:function(t){return e.activateAllCollections()}}},[e._v(" "+e._s(e.$t("All"))+" ")])]),e._l(e.corpusListInfo.collections,(function(s,o){return t("span",{key:o,staticClass:"dot",attrs:{"xxxv-for":"(collection, index) in corpusListInfo.collections.filter(c=>c.activeCount!=0)"}},[0==s.activeCount?t("span",[e._v(" "+e._s(s.name)+" ")]):e._e(),0!=s.activeCount?t("a",{class:s.inactive?"inactive-link":"active-link",attrs:{href:"#"},on:{click:function(t){return e.toggleCollection(s)}}},[e._v(" "+e._s(s.name))]):e._e(),e._v(" "),t("b-badge",{attrs:{variant:0!=s.activeCount||e.allLanguagesActive?s.inactive?"secondary":"success":"light"}},[s.activeCount<s.count&&!e.allLanguagesActive?t("span",[e._v(" "+e._s(s.activeCount)+"/")]):e._e(),e._v(e._s(s.count)+" ")])],1)}))],2):e._e()])],1),t("b-row",{attrs:{"align-v":"center"}},[t("b-col",{attrs:{sm:"auto"}},[t("b-button",{attrs:{size:"sm",variant:"light"},on:{click:function(t){return t.stopPropagation(),e.resetChoices.apply(null,arguments)}}},[e._v(e._s(e.$t("Reset")))])],1)],1)],1)],1)],1)],1),t("b-container",[e.corpusListInfo.corpusList?t("b-row",{staticClass:"py-3",attrs:{"align-v":"center"}},[t("b-col",[e.sessionStore.userId?e._e():t("span",{staticClass:"pl-3"},[e._v(" "+e._s(e.$t("You have to be signed in to be able to access corpora with ACA or RES licenses"))+". ")]),e.corpusListInfo.corpusList.find(t=>!t.inactive&&!e.licenseAccepted(t.name))?t("span",{staticClass:"pl-2"},[e._v(" "+e._s(e.$t("A license you have not yet accepted is marked as"))+" "),t("span",{staticStyle:{"font-family":"Halflings",color:"#e60000"}},[e._v("")]),e._v(". "+e._s(e.$t("Click on ‘See license terms…’ to accept it"))+". ")]):e._e()])],1):e._e(),e.corpusListInfo.corpusList?t("b-row",{attrs:{"align-v":"center"}},[t("b-col",[t("b-button",{staticClass:"ml-2",attrs:{size:"sm",variant:"light"},on:{click:function(t){return t.stopPropagation(),e.selectChoices.apply(null,arguments)}}},[e._v(e._s(e.$t("Select all")))]),t("b-button",{staticClass:"ml-2",attrs:{size:"sm",variant:"light"},on:{click:function(t){return t.stopPropagation(),e.deselectChoices.apply(null,arguments)}}},[e._v(e._s(e.$t("Deselect all")))]),t("b-button",{staticClass:"ml-2",attrs:{variant:"primary",size:"sm",to:"/"+e.project+"/corpus"}},[t("b-icon-search",{attrs:{"aria-hidden":"true"}}),e._v(" "+e._s(e.$t("Search the selected corpora")))],1),t("span",{staticClass:"p-2"},[e._v(" "+e._s(e.$t("Select a corpus by checking its check box"))+". ")])],1)],1):e._e(),e.corpusListInfo.corpusList?t("b-row",{attrs:{"align-v":"center"}},[t("b-col",{staticClass:"my-2",attrs:{sm:"auto"}},[t("b-table",{attrs:{striped:"",hover:"",responsive:"",stacked:"sm",items:e.corpusListInfo.corpusList.filter(e=>!e.inactive),fields:e.corpusListFields},on:{"row-clicked":e.toggleCorpusDetails},scopedSlots:e._u([{key:"table-caption",fn:function(){return[t("small",[e._v(e._s(e.$t("Corpus list")))])]},proxy:!0},{key:"cell(printName)",fn:function(s){return[t("span",{attrs:{title:s.item.name}},[t("b-form-checkbox",{attrs:{disabled:!e.licenseAccepted(s.item.name),checked:e.corpusIsSelected(s.item.name)},on:{change:function(t){return e.toggleExcludedCorpora(s.item.name)}}},[e._v(" "+e._s(s.value)+" ")])],1)]}},{key:"cell(description)",fn:function(s){return[t("div",[e._v(" "+e._s(e.truncateString(s.value))+" ")]),t("div",[t("small",{staticClass:"text-muted"},[e._v("("+e._s(e.$t("Click for more info"))+")")])])]}},{key:"cell(languages)",fn:function(s){return e._l(s.value,(function(s,o){return t("span",{key:o,staticClass:"ccomma"},[e._v(" "+e._s(s)+" ")])}))}},{key:"cell(size)",fn:function(s){return[t("span",{staticClass:"smaller"},[e._v(e._s(e.$n(s.value)))])]}},{key:"cell(updatedDate)",fn:function(s){return[t("span",{staticClass:"nobr smaller"},[e._v(e._s(s.value))])]}},{key:"cell(license)",fn:function(s){return[t("div",[e.licenseAccepted(s.item.name)?t("span",{staticStyle:{"font-family":"Halflings",color:"green"},attrs:{title:"License accepted"}},[e._v(" ")]):t("span",{staticStyle:{"font-family":"Halflings",color:"#e60000"}},[e._v(" ")]),e._v(" "+e._s(s.value.name)+" ")]),t("div",[t("b-button",{staticClass:"py-0",attrs:{size:"sm",variant:"outline-dark"},on:{click:function(t){return e.toggleLicense(s)}}},[e._v(" "+e._s(e.$t("See license terms"))+"… ")])],1)]}},{key:"row-details",fn:function(o){return[e.showLicense||!e.licenseAccepted(o.item.name)?t("b-container",{class:"border border-primary rounded p-4 dw-"+e.$mq,staticStyle:{"max-width":"40em"},attrs:{fluid:""}},[t("b-row",[t("b-col",{staticClass:"mr-auto",attrs:{cols:"auto"}},[e._v(" "+e._s(e.$t("The resource"))+" "),t("span",{staticClass:"font-italic"},[e._v(e._s(o.item.printName))]),e._v(" "+e._s(e.$t("is licensed under the following terms"))+": ")]),t("b-col",{attrs:{cols:"auto"}},[t("b-button",{staticClass:"py-0",attrs:{size:"sm",variant:"light"},on:{click:function(e){o.item._showDetails=!1}}},[t("b-icon-x")],1)],1)],1),t("b-row",[t("b-col",{attrs:{cols:"auto"}},[t("b-link",{staticClass:"m-3",attrs:{href:o.item.license.url,target:"license"}},[e._v(" "+e._s(o.item.license.name)+" ")]),t("b-img-lazy",{staticClass:"my-3 mx-0",attrs:{alt:o.item.license.type,height:"30em",src:s("8451")(`./${o.item.license.type}.png`)}})],1),e._l(o.item.license.conditionsOfUse,(function(o,n){return t("b-col",{key:n,attrs:{cols:"auto"}},[t("div",[t("b-img-lazy",{staticClass:"my-3 mx-0",attrs:{height:"25em",src:s("8451")(`./${o}.png`)}})],1),t("div",[e._v(e._s(o))])])}))],2),t("b-row",[t("b-col",{staticClass:"mr-auto",attrs:{cols:"auto"}},[e._v(" "+e._s(e.$t("Please click on the link to read the license terms"))+". ")])],1),e.licenseAccepted(o.item.name)?[t("b-row",[t("b-col",[e._v(" "+e._s(e.$t("You have accepted the license"))+". ")])],1)]:"RES"!=o.item.license.type||o.item.license.canAccept?"ACA"!=o.item.license.type||e.sessionStore.userId?[t("b-row",[t("b-col",{staticClass:"mr-auto font-weight-bold p-3",attrs:{cols:"auto"}},[e._v(" "+e._s(e.$t("By accepting the terms of the license you will be granted access to the resource"))+". ")]),t("b-col",{staticClass:"mr-auto font-weight-bold px-3 p-1",attrs:{cols:"auto"}},[t("b-button",{on:{click:function(t){return e.acceptLicense(o.item.name)}}},[e._v(" "+e._s(e.$t("Accept"))+" ")])],1)],1)]:[t("b-row",[t("b-col",{staticClass:"mr-auto",attrs:{cols:"auto"}},[e._v(" "+e._s(e.$t("You have to log in to be able to access this resource"))+". ")])],1)]:[t("b-row",[t("b-col",{staticClass:"mr-auto",attrs:{cols:"auto"}},[e._v(" "+e._s(e.$t("This resource has a restricted license"))+". ")])],1)]],2):t("b-container",{class:"border border-primary rounded p-4 dw-"+e.$mq},[t("b-row",[t("b-col",[t("h4",[e._v(e._s(o.item.printName))])])],1),t("b-card",{attrs:{"no-body":""}},[t("b-tabs",{attrs:{card:""}},[t("b-tab",{attrs:{active:!0,title:e.$t("Description")}},[t("b-card-text",[t("b-container",[t("b-row",[t("b-col",[t("span",{domProps:{innerHTML:e._s(e.newlineString(o.item.description))}})])],1)],1)],1)],1),e.corpusIsSelected(o.item.name)?t("b-tab",{attrs:{title:e.$t("Attributes")}},[t("b-card-text",[t("b-container",[t("b-row",[t("b-col",[t("b-table",{attrs:{striped:"",hover:"",responsive:"",small:"",stacked:"sm",items:e.corpusAttributes(o.item.name),fields:e.corpusAttributeFields},scopedSlots:e._u([{key:"cell(name)",fn:function(s){return[t("span",{staticClass:"font-weight-bold"},[e._v(e._s(s.value))])]}},{key:"cell(size)",fn:function(s){return[t("span",[e._v(e._s(e.$n(s.value)))])]}},{key:"cell(repetitive)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}},{key:"cell(canBeCaseInsensitive)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}},{key:"cell(lemmaAttribute)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}},{key:"cell(featuresAttribute)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}},{key:"cell(common)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}}],null,!0)})],1)],1)],1)],1)],1):e._e(),t("b-tab",{attrs:{title:e.$t("Metadata")},on:{click:function(t){return e.loadMetadata(o.item.name)}}},[t("b-card-text",[t("b-container",[t("b-row",[t("b-col",[t("span",{domProps:{innerHTML:e._s(e.metadata)}})])],1)],1)],1)],1)],1)],1)],1)]}}],null,!1,3469490414)})],1)],1):e._e()],1)],1)},_=[],A=(s("5319"),s("1157")),L=s.n(A),P={show:!1,prevCpos:null,tokenCpos:null,corpus:null,target:"ptarget",items:[],dictEntries:[],mode:"features"};const q={data(){return{popoverData:P}},methods:{onHidden:function(e){this.popoverData.tokenCpos&&this.popoverData.prevCpos==this.popoverData.tokenCpos||"ptarget"==this.popoverData.target||e.vueTarget.show()},closePopups:function(e){this.popoverData.show=!1,L()("#token-details-div").addClass("hidden"),this.popoverData.prevCpos="textParse"==e?this.popoverData.tokenCpos=-1:this.popoverData.tokenCpos}}};o["default"].component("b-icon-bookmarks",b["rb"]),o["default"].use(g["a"],{breakpoints:{mobile:450,tablet:900,laptop:1250,desktop:1/0}});var I={name:"corpusList",components:{},props:["collections","languages","bag"],mixins:[v["b"],q],metaInfo:{title:"Corpus list"},data:function(){return{app:oo,detailsRow:null,detailsRowId:null,corpusListFields:[{key:"printName",label:this.$t("Corpus"),tdClass:"corpus-list bold"},{key:"languages",label:this.$t("Language"),tdClass:"corpus-list bold"},{key:"size",label:this.$t("Size"),tdClass:"corpus-list text-right"},{key:"updatedDate",label:this.$t("Updated")},{key:"description",label:this.$t("Description"),tdClass:"corpus-list description"},{key:"license",label:this.$t("License"),tdClass:"corpus-list bold"}],corpusAttributeFields:[{key:"name",label:"Attribute"},{key:"size",label:"Size",tdClass:"corpus-list text-right"},{key:"type",label:"Type"},{key:"scope",label:"Scope"},{key:"repetitive",label:"Repetitive"},{key:"canBeCaseInsensitive",label:"Cased"},{key:"lemmaAttribute",label:"LemmaAtt"},{key:"featuresAttribute",label:"FeaturesAtt"}],allLanguagesActive:!1,allCollectionsActive:!1,excludedCorpora:[],key:0,showLicense:!1,metadata:null}},watch:{isLoaded:function(e){if(e){var t,s;let e=null===(t=this.languages)||void 0===t?void 0:t.split(","),o=null===(s=this.collections)||void 0===s?void 0:s.split(",");if(e||o)this.setCorpusSelectionByLangAndColl(e,o),this.computeActiveCorpus();else if(this.bag){let e=this.bag.split(",");this.setCorpusSelection(e),this.computeActiveCorpus()}}}},mounted:function(){this.allLanguagesActive=!this.stateStore.languageList.length,this.allCollectionsActive=!this.stateStore.collectionList.length,this.excludedCorpora=this.stateStore.excludedCorpusList||[]},computed:{project:function(){return this.$route.params.project},isLoaded:function(){return!!this.corpusListInfo.corpusList[0]}},methods:{corpusAttributes:function(e){var t;return null===(t=this.corpusBagInfo.corpusList.find(t=>t.name==e))||void 0===t?void 0:t.attributes},getKey:function(){this.key=Math.random(1e6)},corpusIsSelected:function(e){return-1==this.excludedCorpora.indexOf(e)&&this.licenseAccepted(e)},proc:function(){return Object({NODE_ENV:"production",VUE_APP_SERVER:"https://clarino.uib.no",VUE_APP_PROJECT:"menota",VUE_APP_I18N_LOCALE:"en",VUE_APP_I18N_FALLBACK_LOCALE:"en",BASE_URL:"/menota/"})},activateAllLanguages:function(){this.$router.replace({query:null}).catch(()=>null),this.invalidateTables(!0),this.corpusListInfo.languages.forEach(e=>e.inactive=!1),this.computeActiveCorpus(),this.getKey(),this.allLanguagesActive=!0},activateAllCollections:function(){this.$router.replace({query:null}).catch(()=>null),this.invalidateTables(!0),this.corpusListInfo.collections.forEach(e=>e.inactive=!1),this.computeActiveCorpus(),this.getKey(),this.allCollectionsActive=!0},toggleLanguage:function(e){this.$router.replace({query:null}).catch(()=>null),this.invalidateTables(!0);let t=!0;this.allLanguagesActive=!0,this.corpusListInfo.languages.forEach(e=>e.inactive?this.allLanguagesActive=!1:null),this.allLanguagesActive?this.corpusListInfo.languages.forEach(t=>t.inactive=t!=e):e.inactive=!e.inactive,this.corpusListInfo.languages.forEach(e=>e.inactive?null:t=!1),t&&this.corpusListInfo.languages.forEach(e=>e.inactive=!1),this.computeActiveCorpus(),this.getKey()},toggleCollection:function(e){this.$router.replace({query:null}).catch(()=>null),this.invalidateTables(!0);let t=!0;this.allCollectionsActive=!0,this.corpusListInfo.collections.forEach(e=>e.inactive?this.allCollectionsActive=!1:null),this.allCollectionsActive?this.corpusListInfo.collections.forEach(t=>t.inactive=t!=e):e.inactive=!e.inactive,this.corpusListInfo.collections.forEach(e=>e.inactive?null:t=!1),t&&this.corpusListInfo.collections.forEach(e=>e.inactive=!1),this.computeActiveCorpus(),this.getKey()},resetChoices:function(){this.$router.replace({query:null}).catch(()=>null),this.invalidateTables(!0),this.corpusListInfo.collections.forEach(e=>e.inactive=!1),this.corpusListInfo.languages.forEach(e=>e.inactive=!1),this.excludedCorpora=[],this.stateStore.excludedCorpusList=[],this.computeActiveCorpus(),this.getKey()},selectChoices:function(){this.invalidateTables(!0),this.corpusListInfo.corpusList.filter(e=>!e.inactive).forEach(e=>{let t=this.excludedCorpora.indexOf(e.name);t>-1&&this.excludedCorpora.splice(t,1)}),this.stateStore.excludedCorpusList=this.excludedCorpora,this.computeActiveCorpus(),this.getKey()},deselectChoices:function(){this.invalidateTables(!0),this.corpusListInfo.corpusList.filter(e=>!e.inactive).forEach(e=>{let t=this.excludedCorpora.indexOf(e.name);-1==t&&this.excludedCorpora.push(e.name)}),this.stateStore.excludedCorpusList=this.excludedCorpora,this.computeActiveCorpus(),this.getKey()},toggleExcludedCorpora:function(e){if(this.licenseAccepted(e)){this.invalidateTables(!0);let t=this.excludedCorpora.indexOf(e);t>-1?this.excludedCorpora.splice(t,1):this.excludedCorpora.push(e),this.stateStore.excludedCorpusList=this.excludedCorpora,this.computeActiveCorpus(),this.getKey()}},toggleCorpusDetails:function(e,t){this.detailsRow&&this.detailsRow!=e&&(this.detailsRow._showDetails=!1),this.showLicense?this.showLicense=!1:e._showDetails=!e._showDetails,this.detailsRowId=t==this.detailsRowId?null:t,this.detailsRowId&&(this.detailsRow=e)},toggleLicense:function(e){this.showLicense?(e.item._showDetails=!1,this.showLicense=!1):(e.item._showDetails=!0,this.showLicense=!0)},truncateString:function(e){return e.length<100?e:e.substr(0,90)+" …"},newlineString:function(e){return e.replace(/\n/g,"<br/>")},acceptLicense:function(e){this.sessionStore.userId?this.callCorpusAPI("accept-license",{resource:e,"resource-family":"corpus",mode:"accept"}).then(()=>{this.initCorpus()}).catch(this.showAlert):-1==this.stateStore.acceptedLicenses.indexOf(e)&&this.stateStore.acceptedLicenses.push(e)},loadMetadata:function(e){this.callCorpusAPI("metadata",{resource:e}).then(e=>this.metadata=e.html).catch(this.showAlert)}}},T=I,D=(s("d798"),Object(d["a"])(T,x,_,!1,null,null,null)),M=D.exports,N=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"corpus-list"}},[t("h1",{staticClass:"heading ml-4 mb-0 p-2 pt-4"},[e._v("Menota Corpora")]),t("b-container",[t("b-row",{attrs:{"align-hxx":"between"}},[t("b-col",[t("b-form",{attrs:{inline:""}},[t("label",{attrs:{for:"corpus-select"}},[e._v("Corpus: ")]),t("b-form-select",{staticClass:"m-2",attrs:{size:"sm",id:"corpus-select",options:e.filteredCorpusList,"text-field":"printName","value-field":"name"},on:{input:e.selectCorpus},model:{value:e.stateStore.textCorpus,callback:function(t){e.$set(e.stateStore,"textCorpus",t)},expression:"stateStore.textCorpus"}})],1)],1)],1),t("b-row",{attrs:{"align-hxx":"between"}},[t("b-col",{staticStyle:{"max-width":"60em"},attrs:{cols:"auto"}},e._l(e.description[e.stateStore.textCorpus],(function(s,o){return t("p",{key:o},[t("small",[e._v(e._s(s))])])})),0)],1),t("b-row",{attrs:{"align-hxx":"between"}},[t("b-col",{staticClass:"p-1 ml-3",attrs:{cols:"auto"}},[1==e.documentCount?t("span",[e._v("One text.")]):t("span",[e._v(e._s(e.documentCount)+" texts.")])]),t("b-col",{attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("span",[e._v("Filter:")]),t("label",{staticClass:"p-1 mx-2",attrs:{for:"text-filter"}},[e._v("by title/signature")]),t("b-input",{staticStyle:{width:"8em"},attrs:{size:"sm",id:"text-filter"},on:{input:e.refresh},model:{value:e.stateStore.textFilter,callback:function(t){e.$set(e.stateStore,"textFilter",t)},expression:"stateStore.textFilter"}}),t("label",{staticClass:"p-1 mx-2",attrs:{for:"doc-filter"}},[e._v("by document")]),t("b-input",{staticStyle:{width:"8em"},attrs:{size:"sm",id:"doc-filter"},on:{input:e.refresh},model:{value:e.stateStore.docFilter,callback:function(t){e.$set(e.stateStore,"docFilter",t)},expression:"stateStore.docFilter"}})],1)],1),t("b-col",{directives:[{name:"show",rawName:"v-show",value:e.documentCount>e.pageSize,expression:"documentCount > pageSize"}],attrs:{cols:"auto"}},[t("label",{staticClass:"p-1 mx-0"},[e._v("Page:")])]),t("b-col",{directives:[{name:"show",rawName:"v-show",value:e.documentCount>e.pageSize,expression:"documentCount > pageSize"}],attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("b-pagination",{attrs:{size:"sm","total-rows":e.documentCount,"per-page":e.pageSize,"first-number":"","last-number":""},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}})],1)],1)],1),e.sessionStore.userId&&"menota"==e.stateStore.project&&!e.git_response?t("b-row",[t("b-col",{staticClass:"mb-3",attrs:{cols:"auto"}},[t("b-button",{attrs:{size:"sm",variant:"light"},on:{click:e.updateFromGit}},[e._v(" Update from repository ")])],1)],1):e._e(),e.sessionStore.userId&&"menota"==e.stateStore.project&&e.git_response?t("b-row",[t("b-col",{attrs:{cols:"auto"}},[t("div",{staticStyle:{border:"1px solid gray","border-radius":"10px",margin:"1em",padding:"1em"}},[t("b-row",[t("b-col",{attrs:{cols:"auto"}},["Update in progress"==e.git_response?t("b-spinner",{staticClass:"mr-3",attrs:{small:"",label:"Updating..."}}):e._e(),t("span",{domProps:{innerHTML:e._s(e.git_response)}}),e.indexing_corpus?t("span",[e._v(": updating "+e._s(e.indexing_corpus))]):e._e()],1)],1),e.updated_files?t("b-row",[t("b-col",{attrs:{cols:"auto"}},[t("span",[e._v("Updated: "),e._l(e.updated_files,(function(s){return t("span",{key:s,staticClass:"dot"},[e._v(" "+e._s(s)+" ")])}))],2)]),t("b-col",{attrs:{cols:"auto"}},[e.error_message?t("span",[e._v("Errors: "+e._s(e.error_message)+" ")]):e._e()])],1):e._e(),t("b-row",[t("b-col",{attrs:{cols:"auto"}},[e.updated_files?t("b-button",{staticClass:"my-3",attrs:{size:"sm",variant:"primary"},on:{click:e.singleSignin}},[e._v(" Please restart your session ")]):e._e(),"Update in progress"==e.git_response||e.updated_files?e._e():t("b-button",{staticClass:"my-3",attrs:{size:"sm",variant:"primary"},on:{click:function(t){e.git_response=null}}},[e._v(" Dismiss ")])],1)],1)],1)])],1):e._e(),t("b-row",{attrs:{"align-hxx":"between"}},[t("b-col",{attrs:{cols:"auto"}},[t("small",[e._v("Click on a title to go to the text. Click in a row to see the full metadata record.")])])],1),t("b-row",{attrs:{"align-v":"center"}},[t("b-col",{staticClass:"my-2",attrs:{sm:"auto"}},[t("b-table",{ref:"textCatalogue",attrs:{striped:"",hover:"",responsive:"",small:"",stacked:"sm",items:e.textListProvider,fields:e.textFields,"per-page":e.pageSize,"current-page":e.currentPage},on:{"sort-changed":e.sortingChanged,"row-clicked":e.toggleTextDetails},scopedSlots:e._u([{key:"table-caption",fn:function(){return[t("small",[e._v(e._s(e.$t("Text Catalogue")))])]},proxy:!0},{key:"cell(signature)",fn:function(t){return[e._v(" "+e._s(t.value)+" ")]}},{key:"cell(title)",fn:function(s){return[t("span",{staticClass:"text-link",on:{click:function(t){return e.showText(s)}}},[e._v(" "+e._s(s.value)+" ")])]}},{key:"cell(editor)",fn:function(s){return e._l(s.value,(function(s,o){return t("span",{key:o,staticClass:"comma"},[e._v(e._s(s))])}))}},{key:"cell(language)",fn:function(s){return[t("span",{attrs:{title:s.item.languageName}},[e._v(" "+e._s(s.value)+" ")])]}},{key:"cell(origDate)",fn:function(s){return[t("span",{staticClass:"nobr"},[e._v(" "+e._s(s.value)+" ")])]}},{key:"cell(annotation)",fn:function(s){return e._l(s.value,(function(s,o){return t("span",{key:o,staticClass:"ccomma"},[e._v(" "+e._s(s)+" ")])}))}},{key:"cell(wordCount)",fn:function(s){return[t("span",{staticClass:"smaller"},[e._v(e._s(e.$n(s.value)))])]}},{key:"cell(updatedDate)",fn:function(s){return[t("span",{staticClass:"nobr smaller"},[e._v(e._s(s.value))])]}},{key:"cell(license)",fn:function(s){return[t("span",{staticClass:"nobr"},[e._v(e._s(s.value))])]}},{key:"cell(download)",fn:function(s){return[s.item.license?t("b-icon-download",{staticClass:"link",on:{click:function(t){return t.stopPropagation(),e.downloadText(s)}}}):e._e()]}},{key:"row-details",fn:function(s){return[t("div",{staticStyle:{border:"1px solid gray","border-radius":"10px",margin:"1em",padding:"1em"}},[t("b-row",[t("b-col",[t("h2",[e._v("Full metadata")])]),t("b-col",[t("b-button",{staticClass:"close py-0",staticStyle:{cursor:"pointer","font-size":"larger","vertical-align":"top"},attrs:{size:"sm",variant:"light"},on:{click:function(e){s.item._showDetails=!1}}},[t("b-icon-x")],1)],1)],1),t("b-row",[t("div",{domProps:{innerHTML:e._s(e.metadata)}})])],1)]}}])})],1)],1)],1)],1)},R=[];s("ddb0"),s("2b3d");o["default"].component("b-icon-bookmarks",b["rb"]),o["default"].use(g["a"],{breakpoints:{mobile:450,tablet:900,laptop:1250,desktop:1/0}});var z={name:"textCatalogue",components:{},props:["collections","corpus","tabs"],mixins:[v["b"]],metaInfo:{title:"Corpus list"},data:function(){return{app:oo,detailsRow:null,detailsRowId:null,textFields:[{key:"signature",sortable:!0},{key:"title",label:"MS or Work Title",thClass:"nobr",sortable:!0},{key:"editor",label:"Main Editor(s)",thClass:"nobr",sortable:!0},{key:"annotation",label:"Annotation",sortable:!0},{key:"version"},{key:"origDate",label:"Date",sortable:!0},{key:"language",label:"Lang.",sortable:!0},{key:"wordCount",label:"Words",sortable:!0,tdClass:"right"},{key:"lemma",label:"Lemma",sortable:!0},{key:"msa",label:"Form",sortable:!0},{key:"facs",label:"Facs",sortable:!0},{key:"dipl",label:"Dipl",sortable:!0},{key:"norm",label:"Norm",sortable:!0},{key:"syntax",label:"Syntax",sortable:!0},{key:"trans",label:"Translation",sortable:!0},{key:"photo",label:"Photo",sortable:!0},{key:"status",label:"Status",sortable:!0},{key:"license",label:"License"},{key:"download",label:"Download",tdClass:"center"}],currentPage:1,documents:[],documentCount:0,pageSize:2e3,sortBy:"signature",sortDesc:!1,corpusList:[{name:"menota",printName:"Main (codices)"},{name:"menota-diploma",printName:"Charters"},{name:"menota-rune",printName:"Runic inscriptions"},{name:"menota-test",printName:"Test corpus"}],description:{menota:["The main corpus consists of all Menota texts apart from charters and runic inscriptions. The texts in the main corpus are based on complete codices (sometimes with lacunas) or on fragments of once complete codices. When selecting a text (by clicking on it in the second column), a context-sensitive menu bar with tick boxes will appear. If the text has been encoded on more than one level, tick boxes for Facs, Dipl and Norm will appear – select any combination of levels. Note that the majority of texts have only been encoded on a single level, usually the Dipl level, so they do not offer this option. Ticking a Clean text box hides all notes. If there is a parallel photographic facsimile of the text, it can opened by ticking Photo. Photographic facsimiles can be modified by a slider so that they tally with the lines of the text. In texts that have been annotated for morphology, click on any word to see its full morphology (always its dictionary entry, lemma, and corresponding word class, in most cases also its grammatical form), and find a link to Fritzner’s dictionary for this specific word. If the text has been annotated for syntax, a Show syntax tick box will appear with a choice of two views, linear and tree. The text will now display sentence borders by green <s> symbols; click on any such symbol to see the syntactic analysis of the following sentence."],"menota-test":["This is a test corpus for Menota texts. Texts in this corpus should not be quoted or referred to in scholarly publications. Texts are displayed on one or more levels: facsimile (very close transcription), diplomatic (less close and with some interpretation), normalised (regularised orthography). Some texts are morphologically annotated and thus allow for more detailed linguistic searches. A search can be performed on a single text or on any combination of texts."],"menota-rune":["This is a test corpus for runic inscriptions encoded according to the Menota Guidelines. Inscriptions will be displayed on three levels, i.e. with runic characters on the facsimile level, with a translitteration to Latin characters on the diplomatic level, and with standard Old Norse orthography on the normalised level. There will be translations into Norwegian and English, comments on the inscriptions and in many cases suggested datings. As far as possible, there will be an illustration (photo and/or drawing) of each inscription. The texts will be annotated for morphology (dictionary entry and grammatical form of each word). Presently, the corpus contains 100 inscriptions in the younger futhark from various Norwegian locations. Please note that the contents of this catalogue is still a work in progress!"],"menota-diploma":["This a test corpus for charters (diplomas) encoded according to the Menota Guidelines. The great majority of charters will be displayed on a single, diplomatic level, but some may also include a normalised level. Most charters have been annotated for morphology. Presently, the corpus includes all Norwegian original charters up to and including 1310, and a few later ones.","So far, only the two earliest charters, DN 1:3 and 1:7, have been fully encoded. They include abstracts of the contents, a diplomatic rendition of the text with full morphological annotation (click on any word), photographic facsimiles, and a translation into Modern Norwegian. The orthography of the citation forms in the annotation is based on the orthography developed at Gammelnorsk ordboksverk (e.g. hofuðøy), but it will eventually be changed into that of Ordbog over det norrøne prosasprog (e.g. hǫfuðey). Please note that the charter catalogue is still a work in progress!"]},git_response:null,indexing_corpus:null,updated_files:null,error_message:null,metadata:null}},created:function(){let e=this.$route.params.corpus;e&&["menota","menota-diploma","menta-rune","menota-test"].find(t=>t==e)?this.stateStore.textCorpus=e:this.stateStore.textCorpus?e!=this.stateStore.textCorpus&&(this.$router.replace({path:"/"+this.project+"/catalogue/"+this.stateStore.textCorpus}),this.$route.params.corpus=this.stateStore.textCorpus):(this.$router.replace({path:"/"+this.project+"/catalogue/menota"}),this.$route.params.corpus="menota")},computed:{project:function(){return this.$route.params.project},filteredCorpusList:function(){return"menota-test"==this.stateStore.textCorpus?this.corpusList:this.corpusList.filter(e=>"menota-test"!=e.name)}},methods:{textListProvider:function(){this.stateStore.textCorpus||(this.stateStore.textCorpus="menota");let e=this.callCorpusAPI("list-catalogue-documents",{corpus:this.stateStore.textCorpus,start:(this.currentPage-1)*this.pageSize,end:this.currentPage*this.pageSize-1,"sort-key":this.sortBy,"sort-reversed":this.sortDesc,filter:this.stateStore.textFilter||"","doc-filter":this.stateStore.docFilter||""}).catch(this.showAlert);return e.then(e=>(this.documents=e.documents,this.documentCount=e.documentCount,this.documents)).catch(this.showAlert)},sortingChanged:function(e){this.sortBy=e.sortBy,this.sortDesc=e.sortDesc,this.refresh()},selectCorpus:function(){this.stateStore.docFilter=null,this.stateStore.textFilter=null,this.$router.replace({path:"/"+this.project+"/catalogue/"+this.stateStore.textCorpus}),this.refresh()},refresh:function(){this.$refs.textCatalogue.refresh()},toggleTextDetails:function(e){this.detailsRow&&this.detailsRow!=e&&(this.detailsRow._showDetails=!1,this.detailsRow=null),e._showDetails?e._showDetails=!1:(this.callCorpusAPI("document-metadata",{corpus:this.stateStore.textCorpus,"document-id":e.documentId}).then(e=>this.metadata=e.html).catch(this.showAlert),e._showDetails=!0,this.detailsRow=e)},showText:function(e){this.tokenStore.corpus=this.stateStore.textCorpus,this.tokenStore.tokenCpos=e.item.startCpos,this.$nextTick(()=>this.$router.push({path:"/"+this.project+"/text/"+this.stateStore.textCorpus+"/"+e.item.documentId}))},downloadText:function(e){this.callCorpusAPI("download-document",{corpus:e.item.corpus,"document-id":e.item.documentId}).then(e=>{let t=new Blob([e.data],{type:"application/xml"}),s=document.createElement("a");s.href=URL.createObjectURL(t),s.download=this.stateStore.documentId+".xml",s.click(),URL.revokeObjectURL(s.href)}).catch(this.showAlert)},updateFromGit:function(){this.callCorpusAPI("update-from-git",{corpus:this.stateStore.textCorpus}).then(e=>{this.git_response=e.git_response,this.indexing_corpus=e.indexing_corpus,"Update in progress"==e.git_response?setTimeout(this.updateFromGit,500):(this.updated_files=e.updated_files,this.error_message=e.error_message)}).catch(this.showAlert)}}},E=z,j=(s("e3a2"),Object(d["a"])(E,N,R,!1,null,null,null)),O=j.exports,$=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"corpus-list"}},[t("h1",{staticClass:"heading ml-4 mb-0 p-2 pt-4"},[e._v(e._s(e.$t("Catalogue")))]),t("b-container",[t("b-row",{attrs:{"align-hxx":"between"}},[t("b-col",{staticClass:"p-1 ml-3",attrs:{cols:"auto"}},[1==e.documentCount?t("span",[e._v("One text.")]):t("span",[e._v(e._s(e.documentCount)+" texts.")])]),t("b-col",{attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("span",[e._v("Filter:")]),t("label",{staticClass:"p-1 mx-2",attrs:{for:"text-filter"}},[e._v("by title")]),t("b-input",{staticStyle:{width:"8em"},attrs:{size:"sm",id:"text-filter"},on:{input:e.refresh},model:{value:e.stateStore.textFilter,callback:function(t){e.$set(e.stateStore,"textFilter",t)},expression:"stateStore.textFilter"}}),t("label",{staticClass:"p-1 mx-2",attrs:{for:"doc-filter"}},[e._v("by author")]),t("b-input",{staticStyle:{width:"8em"},attrs:{size:"sm",id:"doc-filter"},on:{input:e.refresh},model:{value:e.stateStore.docFilter,callback:function(t){e.$set(e.stateStore,"docFilter",t)},expression:"stateStore.docFilter"}})],1)],1),t("b-col",{directives:[{name:"show",rawName:"v-show",value:e.documentCount>e.pageSize,expression:"documentCount > pageSize"}],attrs:{cols:"auto"}},[t("b-pagination",{attrs:{size:"sm","total-rows":e.documentCount,"per-page":e.pageSize,"first-number":"","last-number":""},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}})],1)],1),t("b-row",{attrs:{"align-hxx":"between"}},[t("b-col",{attrs:{cols:"auto"}},[t("small",[e._v("Click on a title to go to the text.")])])],1),t("b-row",{attrs:{"align-v":"center"}},[t("b-col",{staticClass:"my-2",attrs:{sm:"auto"}},[t("b-table",{ref:"textCatalogue",attrs:{striped:"",hover:"",responsive:"",small:"",stacked:"sm",items:e.textListProvider,fields:e.textFields,"per-page":e.pageSize,"current-page":e.currentPage},on:{"row-clicked":e.toggleTextDetails},scopedSlots:e._u([{key:"table-caption",fn:function(){return[t("small",[e._v(e._s(e.$t("Text Catalogue")))])]},proxy:!0},{key:"cell(text)",fn:function(s){return[t("span",{staticClass:"text-link",on:{click:function(t){return e.showText(s)}}},[s.item.author?t("span",[e._v(e._s(s.item.author)+": ")]):e._e(),e._v(e._s(s.item.title)+" ")])]}},{key:"cell(editor)",fn:function(s){return e._l(s.value,(function(s,o){return t("span",{key:o,staticClass:"comma"},[e._v(e._s(s))])}))}},{key:"cell(genre)",fn:function(s){return e._l(s.value,(function(s,o){return t("div",{key:o},[e._v(" "+e._s(s)+" ")])}))}},{key:"cell(origDate)",fn:function(s){return[t("div",{staticClass:"nobr"},[e._v(" "+e._s(s.value)+" ")])]}},{key:"row-details",fn:function(o){return[e.showLicense?t("b-container",{class:"border border-primary rounded p-4 dw-"+e.$mq,staticStyle:{"max-width":"40em"},attrs:{fluid:""}},[t("b-row",[t("b-col",{staticClass:"mr-auto",attrs:{cols:"auto"}},[e._v(" "+e._s(e.$t("The resource"))+" "),t("span",{staticClass:"font-italic"},[e._v(e._s(o.item.printName))]),e._v(" "+e._s(e.$t("is licensed under the following terms"))+": ")]),t("b-col",{attrs:{cols:"auto"}},[t("b-button",{staticClass:"py-0",attrs:{size:"sm",variant:"light"},on:{click:function(e){o.item._showDetails=!1}}},[t("b-icon-x")],1)],1)],1),t("b-row",[t("b-col",{attrs:{cols:"auto"}},[t("b-link",{staticClass:"m-3",attrs:{href:o.item.license.url,target:"license"}},[e._v(" "+e._s(o.item.license.name)+" ")]),t("b-img-lazy",{staticClass:"my-3 mx-0",attrs:{alt:o.item.license.type,height:"30em",src:s("8451")(`./${o.item.license.type}.png`)}})],1),e._l(o.item.license.conditionsOfUse,(function(o,n){return t("b-col",{key:n,attrs:{cols:"auto"}},[t("div",[t("b-img-lazy",{staticClass:"my-3 mx-0",attrs:{height:"25em",src:s("8451")(`./${o}.png`)}})],1),t("div",[e._v(e._s(o))])])}))],2),t("b-row",[t("b-col",{staticClass:"mr-auto",attrs:{cols:"auto"}},[e._v(" "+e._s(e.$t("Please click on the link to read the license terms"))+". ")])],1),e.licenseAccepted(o.item.name)?[t("b-row",[t("b-col",[e._v(" "+e._s(e.$t("You have accepted the license"))+". ")])],1)]:"RES"!=o.item.license.type||o.item.license.canAccept?[t("b-row",[t("b-col",{staticClass:"mr-auto font-weight-bold p-3",attrs:{cols:"auto"}},[e._v(" "+e._s(e.$t("By accepting the terms of the license you will be granted access to the resource"))+". ")]),t("b-col",{staticClass:"mr-auto font-weight-bold px-3 p-1",attrs:{cols:"auto"}},[t("b-button",{on:{click:function(t){return e.acceptLicense(o.item.name)}}},[e._v(" "+e._s(e.$t("Accept"))+" ")])],1)],1)]:[t("b-row",[t("b-col",{staticClass:"mr-auto",attrs:{cols:"auto"}},[e._v(" "+e._s(e.$t("This resource has a restricted license"))+". ")])],1)]],2):t("b-container",{class:"border border-primary rounded p-4 dw-"+e.$mq},[t("b-row",[t("b-col",[t("h4",[e._v(e._s(o.item.printName))])])],1),t("b-card",{attrs:{"no-body":""}},[t("b-tabs",{attrs:{card:""}},[t("b-tab",{attrs:{active:!0,title:e.$t("Description")}},[t("b-card-text",[t("b-container",[t("b-row",[t("b-col",[t("span",{domProps:{innerHTML:e._s(e.newlineString(o.item.description))}})])],1)],1)],1)],1),e.corpusIsSelected(o.item.name)?t("b-tab",{attrs:{title:e.$t("Attributes")}},[t("b-card-text",[t("b-container",[t("b-row",[t("b-col",[t("b-table",{attrs:{striped:"",hover:"",responsive:"",small:"",stacked:"sm",items:e.corpusAttributes(o.item.name),fields:e.corpusAttributeFields},scopedSlots:e._u([{key:"cell(name)",fn:function(s){return[t("span",{staticClass:"font-weight-bold"},[e._v(e._s(s.value))])]}},{key:"cell(size)",fn:function(s){return[t("span",[e._v(e._s(e.$n(s.value)))])]}},{key:"cell(repetitive)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}},{key:"cell(canBeCaseInsensitive)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}},{key:"cell(lemmaAttribute)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}},{key:"cell(featuresAttribute)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}},{key:"cell(common)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}}],null,!0)})],1)],1)],1)],1)],1):e._e(),t("b-tab",{attrs:{title:e.$t("Metadata")},on:{click:function(t){return e.loadMetadata(o.item.name)}}},[t("b-card-text",[t("b-container",[t("b-row",[t("b-col",[t("span",{domProps:{innerHTML:e._s(e.metadata)}})])],1)],1)],1)],1)],1)],1)],1)]}}])})],1)],1)],1)],1)},F=[];o["default"].component("b-icon-bookmarks",b["rb"]),o["default"].use(g["a"],{breakpoints:{mobile:450,tablet:900,laptop:1250,desktop:1/0}});var B={name:"textCatalogueAbnc",components:{},props:["collections","languages","bag","tabs"],mixins:[v["b"]],metaInfo:{title:"Catalogue"},data:function(){return{app:oo,detailsRow:null,detailsRowId:null,textFields:[{key:"text",tdClass:"middle"},{key:"wordCount",label:"Words",tdClass:"right middle"},{key:"origDate",label:"Date",tdClass:"middle"},{key:"genre",label:"Genre"}],currentPage:1,documents:[],documentCount:0,pageSize:20}},computed:{project:function(){return this.$route.params.project},isLoaded:function(){return!!this.corpusListInfo.corpusList[0]}},methods:{textListProvider:function(){let e=this.callCorpusAPI("list-catalogue-documents",{corpus:"abnc",start:(this.currentPage-1)*this.pageSize,end:this.currentPage*this.pageSize-1,"sort-key":this.sortBy,filter:this.stateStore.textFilter||"","doc-filter":this.stateStore.docFilter||""}).catch(this.showAlert);return e.then(e=>(this.sortBy=null,console.log(e),this.documents=e.documents,this.documentCount=e.documentCount,this.documents)).catch(this.showAlert)},refresh:function(){this.$refs.textCatalogue.refresh()},toggleTextDetails:function(){},showText:function(e){this.tokenStore.corpus=this.stateStore.textCorpus,this.tokenStore.tokenCpos=e.item.startCpos,this.$nextTick(()=>this.$router.push({path:"/"+this.project+"/text/abnc/"+e.item.documentId}))}}},G=B,V=(s("c6ac"),Object(d["a"])(G,$,F,!1,null,null,null)),K=V.exports,U=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"corpus-list"}},[t("h1",{staticClass:"heading ml-4 mb-0 p-2 pt-4"},[e._v("GNC "+e._s(e.$t("Catalogue")))]),t("b-container",[t("b-row",{attrs:{"align-hxx":"between"}},[t("b-col",[t("b-form",{attrs:{inline:""}},[t("label",{attrs:{for:"corpus-select"}},[e._v(e._s(e.$t("Corpus"))+": ")]),t("b-form-select",{staticClass:"m-2",attrs:{size:"sm",id:"corpus-select",options:e.corpusList,"text-field":"printName","value-field":"name"},on:{input:e.selectCorpus},model:{value:e.stateStore.textCorpus,callback:function(t){e.$set(e.stateStore,"textCorpus",t)},expression:"stateStore.textCorpus"}})],1)],1)],1),t("b-row",{attrs:{"align-hxx":"between"}},[t("b-col",{staticStyle:{"max-width":"50em"},attrs:{cols:"auto"}},e._l(e.description[e.stateStore.textCorpus],(function(s,o){return t("p",{key:o},[t("small",[e._v(e._s(s))])])})),0)],1),t("b-row",{attrs:{"align-hxx":"between"}},[t("b-col",{staticClass:"p-1 ml-3",attrs:{cols:"auto"}},[1==e.documentCount?t("span",[e._v("One text.")]):t("span",[e._v(e._s(e.documentCount)+" texts.")])]),t("b-col",{attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("span",[e._v("Filter:")]),t("label",{staticClass:"p-1 mx-2",attrs:{for:"text-filter"}},[e._v("by title")]),t("b-input",{staticStyle:{width:"8em"},attrs:{size:"sm",id:"text-filter"},on:{input:e.refresh},model:{value:e.stateStore.textFilter,callback:function(t){e.$set(e.stateStore,"textFilter",t)},expression:"stateStore.textFilter"}}),t("label",{staticClass:"p-1 mx-2",attrs:{for:"doc-filter"}},[e._v("by author")]),t("b-input",{staticStyle:{width:"8em"},attrs:{size:"sm",id:"doc-filter"},on:{input:e.refresh},model:{value:e.stateStore.docFilter,callback:function(t){e.$set(e.stateStore,"docFilter",t)},expression:"stateStore.docFilter"}})],1)],1),t("b-col",{directives:[{name:"show",rawName:"v-show",value:e.documentCount>e.pageSize,expression:"documentCount > pageSize"}],attrs:{cols:"auto"}},[t("b-pagination",{attrs:{size:"sm","total-rows":e.documentCount,"per-page":e.pageSize,"first-number":"","last-number":""},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}})],1)],1),t("b-row",{attrs:{"align-hxx":"between"}},[t("b-col",{attrs:{cols:"auto"}},[t("small",[e._v("Click on a title to go to the text.")])])],1),t("b-row",{attrs:{"align-v":"center"}},[t("b-col",{staticClass:"my-2",attrs:{sm:"auto"}},[t("b-table",{ref:"textCatalogue",attrs:{striped:"",hover:"",responsive:"",small:"",stacked:"sm",items:e.textListProvider,fields:e.textFields,"per-page":e.pageSize,"current-page":e.currentPage},on:{"row-clicked":e.toggleTextDetails},scopedSlots:e._u([{key:"table-caption",fn:function(){return[t("small",[e._v(e._s(e.$t("Text Catalogue")))])]},proxy:!0},{key:"cell(text)",fn:function(s){return[t("span",{staticClass:"text-link",on:{click:function(t){return e.showText(s)}}},[s.item.author?t("span",[e._v(e._s(s.item.author)+": ")]):e._e(),e._v(e._s(s.item.title)+" ")])]}},{key:"cell(editor)",fn:function(s){return e._l(s.value,(function(s,o){return t("span",{key:o,staticClass:"comma"},[e._v(e._s(s))])}))}},{key:"cell(genre)",fn:function(s){return e._l(s.value,(function(s,o){return t("div",{key:o},[e._v(" "+e._s(s)+" ")])}))}},{key:"cell(origDate)",fn:function(s){return[t("div",{staticClass:"nobr"},[e._v(" "+e._s(s.value)+" ")])]}},{key:"row-details",fn:function(o){return[e.showLicense?t("b-container",{class:"border border-primary rounded p-4 dw-"+e.$mq,staticStyle:{"max-width":"40em"},attrs:{fluid:""}},[t("b-row",[t("b-col",{staticClass:"mr-auto",attrs:{cols:"auto"}},[e._v(" "+e._s(e.$t("The resource"))+" "),t("span",{staticClass:"font-italic"},[e._v(e._s(o.item.printName))]),e._v(" "+e._s(e.$t("is licensed under the following terms"))+": ")]),t("b-col",{attrs:{cols:"auto"}},[t("b-button",{staticClass:"py-0",attrs:{size:"sm",variant:"light"},on:{click:function(e){o.item._showDetails=!1}}},[t("b-icon-x")],1)],1)],1),t("b-row",[t("b-col",{attrs:{cols:"auto"}},[t("b-link",{staticClass:"m-3",attrs:{href:o.item.license.url,target:"license"}},[e._v(" "+e._s(o.item.license.name)+" ")]),t("b-img-lazy",{staticClass:"my-3 mx-0",attrs:{alt:o.item.license.type,height:"30em",src:s("8451")(`./${o.item.license.type}.png`)}})],1),e._l(o.item.license.conditionsOfUse,(function(o,n){return t("b-col",{key:n,attrs:{cols:"auto"}},[t("div",[t("b-img-lazy",{staticClass:"my-3 mx-0",attrs:{height:"25em",src:s("8451")(`./${o}.png`)}})],1),t("div",[e._v(e._s(o))])])}))],2),t("b-row",[t("b-col",{staticClass:"mr-auto",attrs:{cols:"auto"}},[e._v(" "+e._s(e.$t("Please click on the link to read the license terms"))+". ")])],1),e.licenseAccepted(o.item.name)?[t("b-row",[t("b-col",[e._v(" "+e._s(e.$t("You have accepted the license"))+". ")])],1)]:"RES"!=o.item.license.type||o.item.license.canAccept?[t("b-row",[t("b-col",{staticClass:"mr-auto font-weight-bold p-3",attrs:{cols:"auto"}},[e._v(" "+e._s(e.$t("By accepting the terms of the license you will be granted access to the resource"))+". ")]),t("b-col",{staticClass:"mr-auto font-weight-bold px-3 p-1",attrs:{cols:"auto"}},[t("b-button",{on:{click:function(t){return e.acceptLicense(o.item.name)}}},[e._v(" "+e._s(e.$t("Accept"))+" ")])],1)],1)]:[t("b-row",[t("b-col",{staticClass:"mr-auto",attrs:{cols:"auto"}},[e._v(" "+e._s(e.$t("This resource has a restricted license"))+". ")])],1)]],2):t("b-container",{class:"border border-primary rounded p-4 dw-"+e.$mq},[t("b-row",[t("b-col",[t("h4",[e._v(e._s(o.item.printName))])])],1),t("b-card",{attrs:{"no-body":""}},[t("b-tabs",{attrs:{card:""}},[t("b-tab",{attrs:{active:!0,title:e.$t("Description")}},[t("b-card-text",[t("b-container",[t("b-row",[t("b-col",[t("span",{domProps:{innerHTML:e._s(e.newlineString(o.item.description))}})])],1)],1)],1)],1),e.corpusIsSelected(o.item.name)?t("b-tab",{attrs:{title:e.$t("Attributes")}},[t("b-card-text",[t("b-container",[t("b-row",[t("b-col",[t("b-table",{attrs:{striped:"",hover:"",responsive:"",small:"",stacked:"sm",items:e.corpusAttributes(o.item.name),fields:e.corpusAttributeFields},scopedSlots:e._u([{key:"cell(name)",fn:function(s){return[t("span",{staticClass:"font-weight-bold"},[e._v(e._s(s.value))])]}},{key:"cell(size)",fn:function(s){return[t("span",[e._v(e._s(e.$n(s.value)))])]}},{key:"cell(repetitive)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}},{key:"cell(canBeCaseInsensitive)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}},{key:"cell(lemmaAttribute)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}},{key:"cell(featuresAttribute)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}},{key:"cell(common)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}}],null,!0)})],1)],1)],1)],1)],1):e._e(),t("b-tab",{attrs:{title:e.$t("Metadata")},on:{click:function(t){return e.loadMetadata(o.item.name)}}},[t("b-card-text",[t("b-container",[t("b-row",[t("b-col",[t("span",{domProps:{innerHTML:e._s(e.metadata)}})])],1)],1)],1)],1)],1)],1)],1)]}}])})],1)],1)],1)],1)},H=[];o["default"].component("b-icon-bookmarks",b["rb"]),o["default"].use(g["a"],{breakpoints:{mobile:450,tablet:900,laptop:1250,desktop:1/0}});var Q={name:"textCatalogueGnc",components:{},props:["collections","languages","bag","tabs"],mixins:[v["b"]],metaInfo:{title:"Catalogue"},data:function(){return{app:oo,detailsRow:null,detailsRowId:null,textFields:[{key:"text",tdClass:"middle"},{key:"wordCount",label:"Words",tdClass:"right middle"},{key:"origDate",label:"Date",tdClass:"middle"},{key:"genre",label:"Genre"}],currentPage:1,documents:[],documentCount:0,pageSize:20,corpusList:[{name:"gnc-oge",printName:"GNC Old Georgian"},{name:"gnc-mge",printName:"GNC Middle Georgian"},{name:"gnc-kat",printName:"GNC Modern Georgian"},{name:"gnc-trans",printName:"GNC Modern Georgian (translations)"},{name:"grc",printName:"Georgian Reference Corpus"}],description:{"gnc-og":["This catalogue lists all publicly available Menota texts. Texts are displayed on one or more levels: facsimile (very close transcription), diplomatic (less close and with some interpretation), normalised (regularised orthography). Some texts are morphologically annotated and thus allow for more detailed linguistic searches. A search can be performed on a single text or on any combination of texts."],"menota-test":["This is a test catalogue for Menota texts. Texts in this catalogue should not be quoted or referred to in scholarly publications. Texts are displayed on one or more levels: facsimile (very close transcription), diplomatic (less close and with some interpretation), normalised (regularised orthography). Some texts are morphologically annotated and thus allow for more detailed linguistic searches. A search can be performed on a single text or on any combination of texts."],"gnc-mg":["This is a test catalogue for runic inscriptions encoded according to the Menota Guidelines. Inscriptions will be displayed on three levels, i.e. with runic characters on the facsimile level, with a translitteration to Latin characters on the diplomatic level, and with standard Old Norse orthography on the normalised level. There will be translations into Norwegian and English, comments on the inscriptions and in many cases suggested datings. As far as possible, there will be an illustration (photo and/or drawing) of each inscription. The texts will be annotated for morphology (dictionary entry and grammatical form of each word). The corpus will contain 100 inscriptions in the younger futhark from various Norwegian locations. Please note that this is still a work in progress!"],"gnc-ng":["This is a test catalogue for charters (diplomas) encoded according to the Menota Guidelines. The encoding is still being developed and the design of the catalogue will probably change. Texts will most likely be displayed on a single, diplomatic level, but as an experiment also on up to three levels, including the facsimile and normalised level. Some texts may also be annotated for morphology as well as for names and geographical locations."],"gnc-trans":["This is a test catalogue for charters (diplomas) encoded according to the Menota Guidelines. The encoding is still being developed and the design of the catalogue will probably change. Texts will most likely be displayed on a single, diplomatic level, but as an experiment also on up to three levels, including the facsimile and normalised level. Some texts may also be annotated for morphology as well as for names and geographical locations."]}}},computed:{project:function(){return this.$route.params.project},isLoaded:function(){return!!this.corpusListInfo.corpusList[0]}},methods:{textListProvider:function(){this.stateStore.textCorpus||(this.stateStore.textCorpus="gnc-kat");let e=this.callCorpusAPI("list-catalogue-documents",{corpus:this.stateStore.textCorpus,start:(this.currentPage-1)*this.pageSize,end:this.currentPage*this.pageSize-1,"sort-key":this.sortBy,filter:this.stateStore.textFilter||"","doc-filter":this.stateStore.docFilter||""}).catch(this.showAlert);return e.then(e=>(this.sortBy=null,console.log(e),this.documents=e.documents,this.documentCount=e.documentCount,this.documents)).catch(this.showAlert)},selectCorpus:function(){this.stateStore.docFilter=null,this.stateStore.textFilter=null,this.refresh()},refresh:function(){this.$refs.textCatalogue.refresh()},toggleTextDetails:function(){},showText:function(e){this.tokenStore.tokenCpos=e.item.startCpos,console.log("docid:",e.item.documentId);let t=e.item.documentId,s=t.split("/")[0],o=null;switch(s){case"NG":case"JG":o="gnc-kat";break;case"MG":o="gnc-mge";break;case"OG":case"HM":case"XM":o="gnc-oge";break;case"JURA":o="gnc-jura";break;case"POLITIK":o="gnc-polit";break;case"TRANS":o="gnc-trans";break;default:o="grc"}this.stateStore.textCorpus=o,this.tokenStore.corpus=this.stateStore.textCorpus,this.$nextTick(()=>this.$router.push({path:"/"+this.project+"/text/"+o+"/"+e.item.documentId}))}}},W=Q,J=(s("d34d"),Object(d["a"])(W,U,H,!1,null,null,null)),X=J.exports,Y=function(){var e=this,t=e._self._c;return t("div",{key:e.key,attrs:{id:"corpus-list"}},[t("h1",{staticClass:"heading ml-4 mb-0 p-2 pt-4"},[e._v(e._s(e.$t("Corpus details")))]),t("b-alert",{attrs:{variant:"danger",dismissible:""},model:{value:e.queryAlert.show,callback:function(t){e.$set(e.queryAlert,"show",t)},expression:"queryAlert.show"}},[e._v(" "+e._s(e.queryAlert.message)+" ")]),t("b-container",[t("b-row",[t("b-col",{staticClass:"m-0",attrs:{sm:"auto"}},[t("b-form",{attrs:{inline:""}},[t("label",{staticClass:"title",attrs:{for:"corpus-select"}},[e._v(e._s(e.$t("Corpus"))+": ")]),t("b-form-select",{staticClass:"m-2",attrs:{size:"sm",id:"corpus-select",options:e.corpusList,"text-field":"printName","value-field":"name"},model:{value:e.corpusName,callback:function(t){e.corpusName=t},expression:"corpusName"}}),e._v(" ["+e._s(e.corpusName)+"] ")],1)],1)],1),e.corpus?t("b-row",[t("b-col",{staticClass:"p-3",attrs:{sm:"auto"}},[t("b-list-group",[t("b-list-group-item",{staticClass:"py-1 pl-0"},[t("strong",{staticClass:"title"},[e._v(e._s(e.$t("Language"))+":")]),e._v(" "+e._s(e.corpus.languages[0])+" ")]),t("b-list-group-item",{staticClass:"py-1 pl-0"},[t("strong",{staticClass:"title"},[e._v(e._s(e.$t("Size"))+" (tokens):")]),e._v(" "+e._s(e.$n(e.corpus.size))+" ")]),t("b-list-group-item",{staticClass:"py-1 pl-0"},[t("strong",{staticClass:"title"},[e._v(e._s(e.$t("Word count"))+":")]),e._v(" "+e._s(e.$n(e.corpus.wordCount))+" ")]),t("b-list-group-item",{staticClass:"py-1 pl-0"},[t("strong",{staticClass:"title"},[e._v(e._s(e.$t("Last update"))+":")]),e._v(" "+e._s(e.corpus.updatedDate)+" ")])],1)],1)],1):e._e(),e.corpus?t("b-row",[t("b-col",[t("strong",{staticClass:"title"},[e._v(e._s(e.$t("Attributes"))+":")])])],1):e._e(),e.corpus?t("b-row",[t("b-col",[t("b-table",{key:e.key,attrs:{striped:"",hover:"",responsive:"",small:"",stacked:"sm",items:e.corpusAttributes(e.corpusName),fields:e.corpusAttributeFields,"caption-top":""},on:{"row-clicked":e.toggleAttDetails},scopedSlots:e._u([{key:"table-caption",fn:function(){return[e._v("Click on a row in the table to see attribute details")]},proxy:!0},{key:"cell(name)",fn:function(s){return[t("span",{staticClass:"font-weight-bold"},[e._v(e._s(s.value))])]}},{key:"cell(size)",fn:function(s){return[t("span",[e._v(e._s(e.$n(s.value)))])]}},{key:"cell(repetitive)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}},{key:"cell(canBeCaseInsensitive)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}},{key:"cell(lemmaAttribute)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}},{key:"cell(featuresAttribute)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}},{key:"cell(common)",fn:function(s){return[s.value?t("span",{staticStyle:{"font-family":"Halflings",color:"green"}},[e._v(" ")]):e._e()]}},{key:"row-details",fn:function(s){return[t("b-container",{class:"border border-primary rounded p-4 dw-"+e.$mq,attrs:{fluid:""}},[t("b-row",{staticClass:"my-3"},[t("b-col",[t("h2",[e._v(e._s(e.attribute))])])],1),t("b-row",{staticClass:"my-3"},[t("b-col",[e._v(" "+e._s(e.$t("This table shows all values of the attribute, together with their corpus counts."))+" ")])],1),t("b-row",{staticClass:"my-3"},["word"==e.attribute&&e.attValues.mean_length?t("b-col",[e._v(" "+e._s(e.$t("Mean length"))+": "+e._s(e.$n(e.attValues.mean_length))+" · "+e._s(e.$t("max length"))+": "+e._s(e.attValues.max_length)+" ")]):e._e()],1),t("b-row",[t("b-col",{attrs:{md:"auto"}},[t("b-form",{attrs:{inline:""}},[e.attSize>e.perPage?[t("label",{attrs:{for:"values-pages"}},[e._v(e._s(e.$t("Page"))+":")]),t("b-pagination",{staticClass:"m-2",attrs:{size:"sm",id:"values-pages","total-rows":e.attSize,"per-page":e.perPage,"first-number":"","last-number":""},on:{input:function(t){return e.attValuesProvider(s.item.name)}},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}}),t("label",{attrs:{for:"values-go-to-page"}},[e._v(e._s(e.$t("Go to page"))+":")]),t("b-form-input",{staticClass:"m-2",staticStyle:{width:"5em"},attrs:{size:"sm",id:"values-go-to-page",autocomplete:"off",autocorrect:"off"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.gotoPage.apply(null,arguments))}},model:{value:e.page,callback:function(t){e.page=e._n(t)},expression:"page"}})]:e._e(),t("label",{attrs:{for:"sort-key"}},[e._v(e._s(e.$t("Sort by"))+":")]),t("b-form-radio-group",{staticClass:"m-2",attrs:{id:"sort-key",options:["frequency","alphabetic"]},on:{input:e.refresh},model:{value:e.sortKey,callback:function(t){e.sortKey=t},expression:"sortKey"}})],2)],1)],1),t("ol",{class:"list-unstyled word-list "+e.$mq},e._l(e.attValues.values,(function(o,n){return t("li",{key:n,staticClass:"word-list-item"},[[t("div",{staticClass:"d-flex justify-content-between"},[t("router-link",{staticClass:"text-break",attrs:{to:e.queryString(s.item,o.value)}},[e._v(" "+e._s(o.value)+" ")]),t("span",{staticClass:"word-list-numerals"},[t("span",{staticClass:"text-monospace",attrs:{title:e.$t("count")}},[e._v(e._s(o.count))])])],1)]],2)})),0)],1)]}}],null,!1,312443035)})],1)],1):e._e()],1)],1)},Z=[];o["default"].component("b-icon-bookmarks",b["rb"]);var ee={name:"corpusDetails",components:{},props:["collections","languages","bag"],mixins:[v["b"],q],metaInfo:{title:"Corpus list"},data:function(){return{app:oo,attribute:null,corpusName:null,detailsRow:null,attSize:0,attValues:{},perPage:200,currentPage:1,page:null,sortKey:"frequency",corpusAttributeFields:[{key:"name",label:"Attribute"},{key:"size",label:"Size",tdClass:"corpus-list text-right"},{key:"type",label:"Type"},{key:"scope",label:"Scope"},{key:"repetitive",label:"Repetitive"},{key:"canBeCaseInsensitive",label:"Cased"},{key:"lemmaAttribute",label:"LemmaAtt"},{key:"featuresAttribute",label:"FeaturesAtt"}],key:0}},mounted:function(){var e;this.corpusName=null===(e=this.corpusList[0])||void 0===e?void 0:e.name},watch:{isLoaded:function(e){var t;e&&(this.corpus=this.corpusList[0],this.corpusName=null===(t=this.corpus)||void 0===t?void 0:t.name)}},computed:{project:function(){return this.$route.params.project},isLoaded:function(){return!!this.corpusList[0]},corpusList:function(){if(this.corpusListInfo.corpusList&&this.corpusListInfo.chosenCorpusList){let e=this.corpusListInfo.corpusList.filter(e=>this.corpusListInfo.chosenCorpusList.find(t=>t.name==e.name));return e}return[]},corpus:function(){var e;return null===(e=this.corpusList)||void 0===e?void 0:e.find(e=>e.name==this.corpusName)}},methods:{corpusAttributes:function(e){var t;let s=null===(t=this.corpusBagInfo.corpusList.find(t=>t.name==e))||void 0===t?void 0:t.attributes;return null===s||void 0===s||s.forEach(e=>e._showDetails=!1),s},toggleAttDetails:function(e){this.detailsRow&&this.detailsRow!=e&&(this.detailsRow._showDetails=!1,this.rows=[]),this.attribute=e.name,this.currentPage=1,e._showDetails=!e._showDetails,this.detailsRow=e,this.refresh()},attValuesProvider:function(){let e=this.callCorpusAPI("get-attribute-values",{corpus:this.corpusName,attribute:this.attribute,"sort-key":this.sortKey,start:(this.currentPage-1)*this.perPage,end:this.currentPage*this.perPage}).catch(this.showAlert);return e.then(e=>{this.attSize=e.atomic_size||e.size,this.attValues=e}).catch(this.showAlert)},gotoPage:function(){0<this.page&&this.page<this.attSize&&(this.currentPage=this.page)},refresh:function(){this.attValuesProvider()},queryString:function(e,t){function s(e){return e.replace(/\(/g,"\\(").replace(/\)/g,"\\)")}let o=e.scope,n=null;return n="set"==e.type?this.attribute+"= {"+t+"}":this.attribute+'="'+s(t)+'"',"cpos"==o?"/"+this.project+"/corpus/"+this.corpusName+"/"+encodeURIComponent("["+n+"]"):"/"+this.project+"/corpus/"+this.corpusName+"/"+encodeURIComponent("[<"+o+"> & "+n+"]")}}},te=ee,se=Object(d["a"])(te,Y,Z,!1,null,null,null),oe=se.exports,ne=function(){var e,t=this,s=t._self._c;return s("div",[s("h1",{staticClass:"heading ml-4 mb-0 p-2 pt-4"},[t._v(t._s(t.$t("Corpus search")))]),s("b-container",{key:t.key,staticClass:"pt-3"},[s("b-row",{staticClass:"p-0"},[s("b-col",{attrs:{sm:"auto"}},[s("b-button",{staticClass:"ml-2",attrs:{size:"sm",variant:t.queryStore.hideSearch&&t.changed?"primary":"light"},on:{click:function(e){t.queryStore.hideSearch=!t.queryStore.hideSearch}}},[t.queryStore.hideSearch?s("span",[s("b-icon-search"),t._v(" "+t._s(t.$t("Show search menu"))+" ")],1):t._e(),t.queryStore.hideSearch?t._e():s("span",[s("b-icon-x"),t._v(" "+t._s(t.$t("Hide search menu"))+" ")],1)])],1),s("b-col",{attrs:{sm:"auto"}},["xs"!=t.$mq&&t.corpusList.length&&t.canSelectCorpus?s("span",{attrs:{sm:"auto"}},[s("span",{staticClass:"pl-3 font-italic"},[t._v(t._s(t.$t("Selected corpora"))+": ")]),s("span",[t._l(t.corpusList,(function(e,o){return s("span",{key:o,staticClass:"comma"},[t._v(" "+t._s(e.printName))])})),t._v("; ")],2)]):t._e(),"xs"!=t.$mq&&t.queryStore.hideSearch&&t.queryStore.queryState.query?s("span",{staticClass:"pl-3"},[s("span",{staticClass:"font-italic"},[t._v(t._s(t.$t("Query expression")))]),t._v(": "),t.queryStore.queryState.derivedQuery?s("span",t._l(t.queryStore.queryState.query.slice().reverse(),(function(e,o){return s("query-derivation",{key:o,attrs:{up:t.queryStore.queryState.query.length-o-1,last:o==t.queryStore.queryState.query.length-1,q:e,tabs:t.tabs}})})),1):s("span",[t._v(t._s(t.truncatedQuery))])]):t._e(),!t.corpusList.length&&t.canSelectCorpus?[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.$t("No corpus selected"))+".")]),s("span",{staticClass:"text-muted"},[t._v(" ("+t._s(t.$t("Go to"))+" "),s("router-link",{attrs:{to:"/"+t.project+"/corpora"}},[t._v(" "+t._s(t.$t("Corpus list"))+" ")]),t._v(" "+t._s(t.$t("to choose corpora"))+")")],1)]:t._e(),"menota"==t.stateStore.project?[t.queryStore.hideSearch?s("span",{staticClass:"pl-3"},[s("span",{staticClass:"font-italic"},[t._v("Searching in:")]),s("span",t._l(t.corpusListInfo.chosenCorpusList,(function(e){return s("span",{key:e.name,staticClass:"dot"},[t._v(" "+t._s(e.printName)+" ")])})),0)]):s("b-input-group",{attrs:{inline:""}},[s("span",{staticClass:"font-italic"},[t._v(t._s(t.$t("Search in"))+":")]),t._l(t.corpusListInfo.corpusList.filter(e=>!e.hidden),(function(e){return s("b-form-checkbox",{key:e.name,staticClass:"mx-2",attrs:{checked:t.corpusIsSelected(e.name)},on:{change:function(s){return t.toggleExcludedCorpora(e.name)}}},[t._v(" "+t._s(e.printName)+" ")])}))],2)]:t._e()],2)],1)],1),t.queryStore.queryState.derivedQuery?s("b-container",{directives:[{name:"show",rawName:"v-show",value:!t.queryStore.hideSearch||!t.queryStore.queryState.query,expression:"!queryStore.hideSearch || !queryStore.queryState.query"}],staticClass:"pt-3 pl-4",attrs:{fluid:"md"}},[s("b-row",[s("b-col",[t._v(" "+t._s(t.$t("Query"))+": "),t._l(t.queryStore.queryState.query.slice().reverse(),(function(e,o){return s("query-derivation",{key:o,attrs:{up:t.queryStore.queryState.query.length-o-1,last:o==t.queryStore.queryState.query.length-1,q:e,tabs:t.tabs}})}))],2)],1)],1):t._e(),s("b-container",{directives:[{name:"show",rawName:"v-show",value:null===(e=t.corpusList)||void 0===e?void 0:e.length,expression:"corpusList?.length"}],staticClass:"p-3"},[s("b-card",{directives:[{name:"show",rawName:"v-show",value:(!t.queryStore.hideSearch||!t.queryStore.queryState.query)&&(!t.queryStore.queryState.derivedQuery||"refine"==t.queryStore.queryState.derivedQuery),expression:"(!queryStore.hideSearch || !queryStore.queryState.query) && (!queryStore.queryState.derivedQuery || queryStore.queryState.derivedQuery == 'refine')"}],attrs:{"no-body":""}},[s("b-tabs",{attrs:{card:""},model:{value:t.searchTabs.tabIndex,callback:function(e){t.$set(t.searchTabs,"tabIndex",e)},expression:"searchTabs.tabIndex"}},t._l(["text","menu"],(function(e){return s("b-tab",{key:e,attrs:{active:"text"==e,title:"text"==e?t.$t("Textual search"):t.$t("Menu search")}},[s("b-card-text",[s("b-container",{attrs:{fluid:"md"}},["text"==e?s("b-row",[s("b-col",[s("b-form-group",{attrs:{label:t.$t("Search expression"),"label-for":"search-textarea",xxdescription:"$t('Write simple search or CQL search')"},scopedSlots:t._u([{key:"description",fn:function(){return[t._v(" "+t._s(t.$t("Write a simple search, or a search expression in"))+" "),s("router-link",{attrs:{to:"/"+t.project+"/documentation/the_query_language"}},[t._v(" "+t._s(t.$t("the Corpuscle query language")))]),t._v(". "),"menota"==t.stateStore.project?s("span",[t._v(" For all forms of a particular lemma (in annotated texts) write e.g. /konungr/. ")]):t._e()]},proxy:!0}],null,!0)},[s("b-input-group",{staticClass:"mb-2",attrs:{size:"sm"}},[s("b-form-textarea",{attrs:{size:"sm",id:"search-textarea",type:"search",list:"query-history",autocomplete:"off",autocorrect:"off",autocapitalize:"off",placeholder:t.$t("Search string")},on:{focus:function(e){return t.closePopups("b-form-input")},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.sendQuery.apply(null,arguments))},input:t.setChanged},model:{value:t.queryStore.string,callback:function(e){t.$set(t.queryStore,"string",e)},expression:"queryStore.string"}})],1),s("b-alert",{attrs:{variant:"danger",dismissible:""},model:{value:t.queryAlert.show,callback:function(e){t.$set(t.queryAlert,"show",e)},expression:"queryAlert.show"}},[t._v(" "+t._s(t.queryAlert.message)+" ")])],1),s("datalist",{attrs:{id:"query-history",autocomplete:"off"}},t._l(t.queryHistory,(function(e,o){return s("option",{key:o},[t._v(t._s(e))])})),0)],1)],1):t._e(),"menu"==e?s("b-row",[1==t.searchTabs.tabIndex?s("graphical-query",{key:t.key,attrs:{xxxquery:"queryStore",searchTabs:t.searchTabs}}):t._e()],1):t._e(),t.subcorpusList.length?s("b-row",{attrs:{"align-v":"center"}},[s("b-col",{attrs:{sm:"auto"}},[s("b-form",{attrs:{inline:""}},[s("label",{staticClass:"m-2",attrs:{for:"subcorpus"}},[t._v(t._s(t.$t("Subcorpus"))+":")]),s("b-form-select",{staticClass:"mb-2 mr-sm-2 mb-sm-0",attrs:{size:"sm",id:"subcorpus",options:[{name:"-",queryString:"-"},...t.subcorpusList],"text-field":"name","value-field":"name"},model:{value:t.subcorpus,callback:function(e){t.subcorpus=e},expression:"subcorpus"}})],1)],1)],1):t._e(),s("b-row",{attrs:{"align-v":"center"}},[s("b-col",{attrs:{sm:"auto"}},[s("b-form",{attrs:{inline:""}},[s("b-button",{staticClass:"my-2",attrs:{size:"sm",disabled:!t.queryStore.string.length,variant:t.changed&&t.queryStore.string.length?"primary":"light"},on:{click:t.sendQuery}},[s("b-icon-search"),t._v(" "+t._s(t.$t("Run query"))+" ")],1),s("b-button",{directives:[{name:"show",rawName:"v-show",value:"menu"==e,expression:"tab=='menu'"}],staticClass:"m-2",attrs:{size:"sm",variant:"light"},on:{click:t.resetQuery}},[t._v(" "+t._s(t.$t("Reset"))+" ")]),"-"==t.subcorpus&&t.queryStore.string.length&&t.queryStore.queryState.matchSize&&("query-done"==t.queryStore.queryState.state||"query-stopped"==t.queryStore.queryState.state)?[s("b-form-checkbox",{staticClass:"m-1 p-2 pl-4",attrs:{size:"sm"},model:{value:t.refineQuery,callback:function(e){t.refineQuery=e},expression:"refineQuery"}},[t._v(" "+t._s(t.$t("Search in matches"))+" ")]),s("label",{staticClass:"m-2",attrs:{for:"select-window-"+e}},[t._v(t._s(t.$t("window"))+":")]),s("b-form-select",{staticClass:"mb-2 mr-sm-2 mb-sm-0",attrs:{size:"sm",id:"select-window-"+e,options:t.windowOptions},model:{value:t.refineWindow,callback:function(e){t.refineWindow=e},expression:"refineWindow"}})]:t._e(),s("b-button",{directives:[{name:"show",rawName:"v-show",value:"query-running"==t.queryStore.queryState.state||"query-halted"==t.queryStore.queryState,expression:"queryStore.queryState.state=='query-running' || queryStore.queryState=='query-halted'"}],staticClass:"ml-2",attrs:{size:"sm"},on:{click:t.stopQuery}},[t._v(t._s(t.$t("Stop")))]),s("b-button",{directives:[{name:"show",rawName:"v-show",value:"query-running"==t.queryStore.queryState.state,expression:"queryStore.queryState.state=='query-running'"}],staticClass:"ml-2",attrs:{size:"sm"},on:{click:t.haltQuery}},[t._v(t._s(t.$t("Halt")))]),s("b-button",{directives:[{name:"show",rawName:"v-show",value:"query-halted"==t.queryStore.queryState.state,expression:"queryStore.queryState.state=='query-halted'"}],staticClass:"ml-2",attrs:{size:"sm"},on:{click:t.resumeQuery}},[t._v(t._s(t.$t("Resume")))]),s("b-button",{directives:[{name:"show",rawName:"v-show",value:"query-running"!==t.queryStore.queryState.state&&"query-halted"!==t.queryStore.queryState.state,expression:"queryStore.queryState.state!=='query-running' && queryStore.queryState.state!=='query-halted'"},{name:"b-modal",rawName:"v-b-modal.modal-query-history",modifiers:{"modal-query-history":!0}}],staticClass:"ml-2",attrs:{variant:"light",size:"sm"}},[s("b-icon-clock-history"),t._v(" "),"xs"!=t.$mq?s("span",[t._v(t._s(t.$t("Query history"))+"…")]):t._e()],1),s("b-button",{directives:[{name:"show",rawName:"v-show",value:t.queryStore.queryState.matchSize&&("query-done"==t.queryStore.queryState.state||"query-halted"==t.queryStore.queryState.state),expression:"queryStore.queryState.matchSize && (queryStore.queryState.state=='query-done' || queryStore.queryState.state=='query-halted')"},{name:"b-modal",rawName:"v-b-modal.modal-save-query",modifiers:{"modal-save-query":!0}}],staticClass:"ml-2",attrs:{variant:"light",size:"sm"}},[s("b-icon-file-arrow-up"),t._v(" "),"xs"!=t.$mq?s("span",[t._v(t._s(t.$t("Save query")))]):t._e()],1),s("b-button",{directives:[{name:"show",rawName:"v-show",value:"query-running"!==t.queryStore.queryState.state&&"query-halted"!==t.queryStore.queryState.state,expression:"queryStore.queryState.state!=='query-running' && queryStore.queryState.state!=='query-halted'"},{name:"b-modal",rawName:"v-b-modal.modal-saved-queries",modifiers:{"modal-saved-queries":!0}}],staticClass:"ml-2",attrs:{variant:"light",size:"sm"}},[s("b-icon-server"),t._v(" "),"xs"!=t.$mq?s("span",[t._v(t._s(t.$t("Saved queries"))+"…")]):t._e()],1)],2)],1),t.queryStore.queryState.state?s("b-col",{attrs:{sm:"auto"}},[s("span",{attrs:{show:!!t.queryStore.queryState.state,role:"status"}},[s("span",[t._v(t._s(t.$t(t.queryStore.queryState.state))+".")]),"query-error"!=t.queryStore.queryState.state?s("span",[t._v(" "+t._s(t.$t("Running time"))+": "+t._s(t.queryStore.queryState.realTime)+"s "),t.queryStore.queryState.matchSize?s("span",[t._v("| "+t._s(t.$n(t.queryStore.queryState.matchSize))+" "+t._s(t.$t("matches"))+".")]):t._e()]):t._e()])]):t._e(),t.queryStore.queryState.state?s("b-col",{attrs:{sm:"auto"}},[t._v(" | "),t.URLcopied?[s("span",{staticClass:"text-muted",attrs:{role:"status"}},[t._v(" "+t._s(t.$t("URL copied"))+" ")])]:[s("span",{staticClass:"clipboard",on:{click:t.copyQueryURLToClipboard}},[s("b-icon-clipboard"),t._v(" "+t._s(t.$t("Copy query URL"))+" ")],1)]],2):t._e()],1)],1)],1)],1)})),1)],1),s("b-modal",{attrs:{"no-fade":"",id:"modal-save-query",title:t.$t("Save query"),"cancel-title":t.$t("Cancel")},on:{ok:t.saveQuery}},[s("label",{attrs:{for:"query-name-input"}},[t._v(" "+t._s(t.$t("Save this query as"))+":")]),s("b-form-input",{attrs:{id:"query-name-input",placeholder:t.$t("Query name"),autocomplete:"off",autocorrect:"off"},model:{value:t.queryName,callback:function(e){t.queryName=e},expression:"queryName"}}),s("b-form-checkbox",{model:{value:t.saveAsPublic,callback:function(e){t.saveAsPublic=e},expression:"saveAsPublic"}},[t._v(t._s(t.$t("Public query")))]),s("b-form-checkbox",{model:{value:t.saveAsSubcorpus,callback:function(e){t.saveAsSubcorpus=e},expression:"saveAsSubcorpus"}},[t._v(t._s(t.$t("Subcorpus")))])],1),s("b-modal",{attrs:{id:"modal-saved-queries",title:t.$t("Saved queries"),size:"lg",scrollable:"","hide-footer":""},on:{show:t.getSavedQueries}},[s("b-container",[s("b-row",[s("b-form-checkbox",{on:{input:function(e){return t.getSavedQueries("public")}},model:{value:t.publicOnly,callback:function(e){t.publicOnly=e},expression:"publicOnly"}},[t._v(" "+t._s(t.$t("Public queries only"))+" ")])],1),s("b-row",[s("b-form-checkbox",{on:{input:function(e){return t.getSavedQueries("private")}},model:{value:t.privateOnly,callback:function(e){t.privateOnly=e},expression:"privateOnly"}},[t._v(" "+t._s(t.$t("Private queries only"))+" ")])],1),s("b-row",[s("b-form",{attrs:{inline:""}},[s("label",{attrs:{for:"name-filter"}},[t._v(t._s(t.$t("Filter by name"))+":")]),s("b-form-input",{staticClass:"mb-2 mr-sm-2 mb-sm-0",attrs:{id:"name-filter"},on:{input:t.filterQueries},model:{value:t.nameFilter,callback:function(e){t.nameFilter=e},expression:"nameFilter"}}),s("label",{attrs:{for:"query-filter"}},[t._v(t._s(t.$t("Filter by query string"))+":")]),s("b-form-input",{staticClass:"mb-2 mr-sm-2 mb-sm-0",attrs:{id:"query-filter"},on:{input:t.filterQueries},model:{value:t.queryFilter,callback:function(e){t.queryFilter=e},expression:"queryFilter"}})],1)],1),s("b-row",{staticClass:"p-3"},[s("small",[t._v(" "+t._s(t.$t("Select a saved query"))+" "+t._s(t.$t("by clicking on the query name"))+". "+t._s(t.$t("Click on the query expression to see its documentation"))+". ")])]),s("b-row",{staticClass:"p-3"},[s("b-table",{attrs:{selectable:"",striped:"",small:"",hover:"","caption-top":"",fields:t.savedQueryFields,items:t.filteredSavedQueries,xxcaption:"$t('Select a saved query')"},on:{"row-clicked":t.selectSavedQuery},scopedSlots:t._u([{key:"cell(queryString)",fn:function(e){return[s("div",{on:{click:function(t){t.stopPropagation(),e.item._showDetails=!e.item._showDetails}}},[t._v(" "+t._s(t.abbreviate(e.value))+" ")])]}},{key:"cell(name)",fn:function(e){return[s("div",[t._v(t._s(e.value))])]}},{key:"row-details",fn:function(e){return[s("div",{staticClass:"query-description"},[s("b-tabs",{attrs:{card:""}},[s("b-tab",{attrs:{active:!0,title:"Description"}},[s("b-card-text",[t.editDescriptionMarkup?[s("b-form-textarea",{attrs:{rows:"8",autocomplete:"off",autocorrect:"off",autocapitalize:"off",placeholder:t.$t("description markdown")},model:{value:t.descriptionMarkup,callback:function(e){t.descriptionMarkup=e},expression:"descriptionMarkup"}}),s("b-button",{staticClass:"m-1",attrs:{size:"sm"},on:{click:function(s){return t.storeQuery(e.item)}}},[s("b-icon-file-arrow-up"),t._v(" "+t._s(t.$t("Store"))+" ")],1),s("b-button",{staticClass:"m-1",attrs:{size:"sm"},on:{click:function(e){t.editDescriptionMarkup=null}}},[s("b-icon-x"),t._v(" "+t._s(t.$t("Discard"))+" ")],1)]:[s("div",[s("small",{staticClass:"text-muted font-italic"},[t._v("Click to edit")])]),s("div",{domProps:{innerHTML:t._s(e.item.description)},on:{click:function(s){t.descriptionMarkup=e.item.descriptionMarkup,t.editDescriptionMarkup=!0}}})]],2)],1),s("b-tab",{attrs:{title:"Query"}},[s("b-card-text",[t.editQueryString?[s("b-form-textarea",{attrs:{rows:"4",autocomplete:"off",autocorrect:"off",autocapitalize:"off",placeholder:t.$t("query string")},model:{value:t.queryString,callback:function(e){t.queryString=e},expression:"queryString"}}),s("b-button",{staticClass:"m-1",attrs:{size:"sm"},on:{click:function(s){return t.storeQuery(e.item)}}},[s("b-icon-file-arrow-up"),t._v(" "+t._s(t.$t("Store"))+" ")],1),s("b-button",{staticClass:"m-1",attrs:{size:"sm"},on:{click:function(e){t.editQueryString=null}}},[s("b-icon-x"),t._v(" "+t._s(t.$t("Discard"))+" ")],1)]:[s("div",[s("small",{staticClass:"text-muted font-italic"},[t._v("Click to edit")])]),s("div",{staticClass:"text-break",on:{click:function(s){t.queryString=e.item.queryString,t.editQueryString=!0}}},[t._v(" "+t._s(e.item.queryString)+" ")])]],2)],1)],1)],1)]}}])})],1)],1)],1),s("b-modal",{attrs:{id:"modal-query-history",title:t.$t("Query history"),scrollable:"","hide-footer":""},on:{show:t.getQueryHistory}},[s("b-container",[t.queryHistory.length?[s("b-row",{staticClass:"p-1"},[t._v(" "+t._s(t.$t("Select a query"))+": ")]),s("b-row",{staticClass:"p-1"},[s("b-list-group",t._l(t.queryHistory,(function(e,o){return s("b-list-group-item",{key:o,staticClass:"p-0",attrs:{href:"#"}},[s("div",{staticClass:"w-100"},[s("small",{on:{click:function(s){return t.selectQuery(e)}}},[t._v(t._s(e))])])])})),1)],1)]:[s("b-row",[t._v(" "+t._s(t.$t("Your query history for this corpus choice is empty."))+" ")])]],2)],1)],1),t.queryStore.queryState.state&&t.queryStore.queryState.matchSize?s("b-card",{attrs:{"no-body":""}},[s("b-tabs",{attrs:{card:""},on:{"activate-tab":t.onActivateTab,"deactivate-tab":t.onDeactivateTab},model:{value:t.tabs.tabIndex,callback:function(e){t.$set(t.tabs,"tabIndex",e)},expression:"tabs.tabIndex"}},[s("b-tab",{scopedSlots:t._u([{key:"title",fn:function(){return[s("b-icon-layout-three-columns"),t._v(" "),"xs"!=t.$mq||0==t.tabs.tabIndex?s("span",[t._v(t._s(t.$t("Concordance")))]):t._e()]},proxy:!0}],null,!1,1200834277)},[s("b-card-text",[s("kwic-concordance",{ref:"kwic",attrs:{busy:t.busy,tabs:t.tabs,hideText:t.hideText}})],1)],1),s("b-tab",{attrs:{lazy:""},scopedSlots:t._u([{key:"title",fn:function(){return[s("b-icon-list-ul"),t._v(" "),"xs"!=t.$mq||1==t.tabs.tabIndex?s("span",[t._v(t._s(t.$t("Word list")))]):t._e()]},proxy:!0}],null,!1,43072382)},[s("b-card-text",[s("word-list",{ref:"wordList",attrs:{busy:t.busy,tabs:t.tabs}})],1)],1),s("b-tab",{scopedSlots:t._u([{key:"title",fn:function(){return[s("b-icon-columns"),t._v(" "),"xs"!=t.$mq||2==t.tabs.tabIndex?s("span",[t._v(t._s(t.$t("Collocations")))]):t._e()]},proxy:!0}],null,!1,1613662156)},[s("b-card-text",[s("collocation-list",{ref:"collocationList",attrs:{busy:t.busy,tabs:t.tabs}})],1)],1),s("b-tab",{scopedSlots:t._u([{key:"title",fn:function(){return[s("b-icon-table"),t._v(" "),"xs"!=t.$mq||3==t.tabs.tabIndex?s("span",[t._v(t._s(t.$t("Distribution")))]):t._e()]},proxy:!0}],null,!1,1840906178)},[s("b-card-text",[s("distribution-table",{ref:"dist",attrs:{busy:t.busy,tabs:t.tabs}})],1)],1),t.corpusBagInfo.hasYear||t.corpusBagInfo.hasDate?s("b-tab",{attrs:{lazy:""},scopedSlots:t._u([{key:"title",fn:function(){return[s("b-icon-bar-chart-fill"),t._v(" "),"xs"!=t.$mq||4==t.tabs.tabIndex?s("span",[t._v(t._s(t.$t("Time line")))]):t._e()]},proxy:!0}],null,!1,2322409064)},[s("b-card-text",[s("chart-graph",{ref:"diagram",attrs:{tabs:t.tabs}})],1)],1):t._e()],1)],1):t._e(),t.queryStore.queryState.matchSize?t._e():s("div",[s("b-row",{staticClass:"mx-3"},["query-running"==t.queryStore.queryState.state?s("b-col",{attrs:{sm:"auto"}},[t._v(" "+t._s(t.$t("Calculating"))+"… ")]):s("b-col",{attrs:{sm:"auto"}},[t._v(" "+t._s(t.$t("No matches found"))+". ")])],1)],1)],1)},ae=[],ie=s("b1e0"),re=function(){var e=this,t=e._self._c;return e.last?t("span",[e._v(" "+e._s(e.q)+" ")]):t("span",[t("b-button",{staticClass:"mx-2 py-1",attrs:{variant:"light"},on:{click:function(t){return e.setParentQuery()}}},[e._v(" "+e._s(e.q)+" ")]),e.last?e._e():t("span",[e._v(" ⇒ ")])],1)},le=[],ce={name:"queryDerivation",mixins:[v["b"]],props:["q","up","last","tabs"],methods:{setParentQuery:function(){this.callCorpusAPI("set-parent-query",{up:this.up}).then(e=>{this.queryStore.queryState=e,e.derivedQuery||(this.queryStore.string=e.query[0],this.queryStore.object=e.queryJSON?JSON.parse(e.queryJSON):{}),this.invalidateTables(),this.$parent.refreshTabs()}).catch(this.showAlert)}}},ue=ce,de=(s("8c11"),Object(d["a"])(ue,re,le,!1,null,null,null)),pe=de.exports,he=function(){var e=this,t=e._self._c;return t("b-container",[t("b-row",{staticClass:"p-2"},[t("b-col",[e._v(" "+e._s(e.$t("Query expression"))+": "+e._s(e.queryStore.string)+" ")])],1),t("b-row",{staticClass:"p-2"},[t("b-col",[t("div",{staticStyle:{"overflow-y":"hidden"}},[e.useGrid&&e.queryStore.gqShow?t("div",{staticClass:"grid-container-graphical-query"},[t("seq-group",{attrs:{item:e.queryStore.object.positionalConstraints,useGrid:!0}})],1):e._e(),e.useGrid?e._e():t("table",[t("seq-group",{attrs:{item:e.queryStore.object.positionalConstraints,useGrid:!1}})],1)])])],1)],1)},me=[],fe=s("57b4"),ge={name:"graphicalQuery",mixins:[v["b"]],components:{seqGroup:fe["default"]},props:["searchTabs"],data:function(){return{useGrid:!0}}},be=ge,ve=(s("da09"),Object(d["a"])(be,he,me,!1,null,null,null)),ke=ve.exports,ye=function(){var e=this,t=e._self._c;return t("b-container",{attrs:{fluid:"",id:"container"}},[t("token-details",{attrs:{page:"kwic",contextLink:!0,tabs:e.tabs}}),t("b-row",{attrs:{"align-hxx":"between"}},[t("b-col",{staticClass:"p-1 ml-3",attrs:{cols:"auto"}},[e._v(" "+e._s(e.size<0?0:e.size)+" "+e._s(1==e.size?e.$t("match"):e.$t("matches"))+". ")]),t("b-col",{directives:[{name:"show",rawName:"v-show",value:e.hasPages,expression:"hasPages"}],attrs:{cols:"auto"}},[t("b-pagination",{attrs:{size:"sm","total-rows":e.queryStore.queryState.matchSize,"per-page":e.stateStore.kwicPerPage,"aria-controls":"kwic","first-number":"","last-number":""},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}})],1),t("b-col",{directives:[{name:"show",rawName:"v-show",value:e.hasPages,expression:"hasPages"}],attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("label",{attrs:{for:"input-conc-go-to-page"}},[e._v(e._s(e.$t("Go to page"))+":")]),t("b-form-input",{staticClass:"ml-2",staticStyle:{width:"5em"},attrs:{size:"sm",id:"input-conc-go-to-page",autocomplete:"off",autocorrect:"off"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.gotoPage.apply(null,arguments)}},model:{value:e.gotoPageNr,callback:function(t){e.gotoPageNr=e._n(t)},expression:"gotoPageNr"}})],1)],1),t("b-col",{attrs:{cols:"auto"}},[t("b-button",{staticClass:"mx-3",attrs:{size:"sm",href:"#",variant:"light"},on:{click:e.randomSort}},[e._v(" "+e._s(e.$t("Randomize"))+" ")])],1),e.corpusBagInfo.hasAnnotation&&"development"==e.env?t("b-col",{attrs:{cols:"auto"}},[t("b-form-checkbox",{staticClass:"m-1",attrs:{size:"sm"},on:{change:e.refresh},model:{value:e.stateStore.showAnnotations,callback:function(t){e.$set(e.stateStore,"showAnnotations",t)},expression:"stateStore.showAnnotations"}},[e._v(" "+e._s(e.$t("Show annotations"))+" ")])],1):e._e(),"xs"!=e.$mq?t("b-col",{attrs:{cols:"auto"}},[t("b-button",{staticClass:"mx-3",attrs:{size:"sm",variant:"light"},on:{disabled:e.downloadInProgress,click:e.downloadKwic}},[t("span",{staticClass:"nobr"},[t("b-icon-download"),"sm"!=e.$mq?t("span",[e._v(" "+e._s(e.$t("Download"))+" "),e.downloadInProgress?t("span",[e._v("…")]):e._e()]):e._e()],1)]),t("b-button",{directives:[{name:"b-modal",rawName:"v-b-modal.modal-settings",modifiers:{"modal-settings":!0}}],attrs:{size:"sm",href:"#",variant:"light"}},[t("nobr",[t("b-icon-gear-fill"),e._v(" "),"sm"!=e.$mq&&"xs"!=e.$mq?t("span",[e._v(e._s(e.$t("Settings")))]):e._e()],1)],1),t("b-modal",{attrs:{id:"modal-settings",title:e.$t("Settings"),"cancel-title":e.$t("Cancel"),size:"lg",scrollable:""},on:{ok:e.updateSettings}},[t("b-container",[t("b-row",[t("b-col",{staticClass:"px-3 py-2"},[e.corpusBagInfo.attributes?t("b-form-group",{attrs:{label:e.$t("Attributes shown")+":"}},[t("b-form-checkbox-group",{attrs:{options:e.corpusBagInfo.attributes.map(e=>e.name),name:"select-atts",stacked:""},model:{value:e.stateStore.attributes,callback:function(t){e.$set(e.stateStore,"attributes",t)},expression:"stateStore.attributes"}})],1):e._e()],1),t("b-col",{staticClass:"px-3 py-2"},[e.corpusBagInfo.structures?t("b-form-group",{attrs:{label:e.$t("Structures shown")+":"}},[t("b-form-checkbox",{attrs:{switch:""},on:{input:e.toggleAllStructures},model:{value:e.allStructures,callback:function(t){e.allStructures=t},expression:"allStructures"}},[e._v(" "+e._s(e.$t("all"))+" ")]),e.allStructures?e._e():t("b-form-checkbox-group",{attrs:{options:e.corpusBagInfo.structures.map(e=>({value:e.name,text:"‹"+e.name+"›"})),name:"select-structs",stacked:""},model:{value:e.stateStore.structures,callback:function(t){e.$set(e.stateStore,"structures",t)},expression:"stateStore.structures"}})],1):e._e()],1),t("b-col",{staticClass:"px-3 py-2"},[t("b-form-group",{attrs:{label:e.$t("Lines per page in KWIC concordance")+":","label-for":"lines-per-page"}},[t("b-input",{attrs:{id:"lines-per-page",xxxblur:"setKwicPerPage",lazy:"",number:""},model:{value:e.stateStore.kwicPerPage,callback:function(t){e.$set(e.stateStore,"kwicPerPage",t)},expression:"stateStore.kwicPerPage"}})],1)],1),e.transliterations?t("b-col",{staticClass:"px-3 py-2"},[t("b-form-group",{attrs:{label:e.$t("Transliteration")+":","label-for":"transliteration"}},[t("b-form-radio-group",{attrs:{id:"radio-group-1",options:e.transliterations},model:{value:e.stateStore.transliteration,callback:function(t){e.$set(e.stateStore,"transliteration",t)},expression:"stateStore.transliteration"}})],1)],1):e._e()],1)],1)],1)],1):e._e()],1),e.corpusBagInfo.hasVideo&&!e.audioOnly?t("b-row",[t("b-container",{staticClass:"px-0",attrs:{fluid:"sm"}},[t("video",{ref:"player",attrs:{preload:"none",controls:""},on:{canplay:e.canplay}},[t("source",{ref:"mp3",attrs:{type:"audio/mp3"}})]),t("b-form-checkbox",{staticClass:"m-1",attrs:{size:"sm"},on:{change:function(t){e.interval=null}},model:{value:e.audioOnly,callback:function(t){e.audioOnly=t},expression:"audioOnly"}},[e._v(" "+e._s(e.$t("Audio only"))+" ")])],1)],1):e._e(),!e.corpusBagInfo.hasAudio||e.corpusBagInfo.hasVideo&&!e.audioOnly?e._e():t("b-row",[t("b-container",{staticClass:"px-0",attrs:{fluid:"sm"}},[t("audio",{ref:"player",staticStyle:{width:"22em"},attrs:{preload:"none",controls:""},on:{canplay:e.canplay}},[t("source",{ref:"mp3",attrs:{type:"audio/mp3"}})]),e.corpusBagInfo.hasVideo?t("b-form-checkbox",{staticClass:"m-1",attrs:{size:"sm"},on:{change:function(t){e.interval=null}},model:{value:e.audioOnly,callback:function(t){e.audioOnly=t},expression:"audioOnly"}},[e._v(" "+e._s(e.$t("Audio only"))+" ")]):e._e()],1)],1),e.corpusBagInfo.tasks&&e.stateStore.showAnnotations?t("b-row",[t("b-container",{staticClass:"px-0",attrs:{fluid:"sm"}},[t("b-form",{attrs:{inline:""}},[e.corpusBagInfo.tasks.length?[t("label",{staticClass:"m-2",attrs:{for:"select-task"}},[e._v(e._s(e.$t("Task"))+":")]),t("b-form-select",{attrs:{size:"sm",id:"select-task",options:e.corpusBagInfo.tasks,"text-field":"name","value-field":"value"},on:{change:function(t){return e.refresh(!1)}},model:{value:e.stateStore.task,callback:function(t){e.$set(e.stateStore,"task",t)},expression:"stateStore.task"}})]:e._e(),e.corpusBagInfo.variables.length?[t("label",{staticClass:"m-2",attrs:{for:"select-variable"}},[e._v(e._s(e.$t("Variable"))+":")]),t("b-form-select",{staticClass:"mr-3",attrs:{size:"sm",id:"select-variable",options:["-",...e.corpusBagInfo.variables]},on:{change:function(t){return e.refresh(!1)}},model:{value:e.variable,callback:function(t){e.variable=t},expression:"variable"}}),t("b-form-checkbox",{attrs:{xxsize:"sm",id:"select-variable-only"},on:{change:e.refresh},model:{value:e.stateStore.showSelectedVarOnly,callback:function(t){e.$set(e.stateStore,"showSelectedVarOnly",t)},expression:"stateStore.showSelectedVarOnly"}},[t("label",{attrs:{xxclass:"pl-3",for:"select-variable-only"}},[e._v(e._s(e.$t("Show only selected variable")))])]),e.variableValues.length&&"-"!=e.variable?[t("span",{staticClass:"mx-2"},[e._v("| "+e._s(e.$t("Shortcuts"))+":")]),t("span",e._l(e.variableValues,(function(s,o){return t("span",{key:o,staticClass:"m-0 dot",attrs:{title:s.documentation},on:{click:function(t){return t.stopPropagation(),e.setAnnotationById(s.id)}}},[t("span",{staticClass:"shortcut"},[e._v(e._s(s.shortcut)+": "+e._s(s.code))])])})),0)]:e._e()]:e._e()],2)],1)],1):e._e(),t("b-row",[t("b-container",{staticClass:"px-0",attrs:{fluid:"sm",id:"boxx"}},[t("b-table",{ref:"kwicConcordanceTable",attrs:{responsive:"","sort-icon-left":"",selectable:"","xxxno-select-on-click":"","select-mode":"single","selected-variant":"danger",id:"kwicConcordanceTable","thead-class":"small","tbody-tr-class":"kwic-row",fields:e._f("mq")(e.$mq,{xs:e.fields_sm,md:e.stateStore.showAnnotations?e.fieldsAnn:e.fields}),items:e.kwicLinesProvider,"per-page":e.stateStore.kwicPerPage,"current-page":e.currentPage,busy:e.busy},on:{"sort-changed":e.sortingChanged,"row-clicked":e.onRowClicked,refreshed:e.tableRefreshed},scopedSlots:e._u([{key:"cell(leftContext)",fn:function(s){return[t("div",{class:"left-context cw-"+e.$mq},[t("div",{class:"left-context-inner lwi-"+e.$mq,attrs:{lang:s.item.language}},e._l(s.value,(function(o,n){return t("kwic-token",{key:n,attrs:{prev:s.value[n-1],token:o,corpus:s.item.corpus,rowId:s.index,hideText:e.hideText}})})),1)])]}},{key:"head(match)",fn:function(s){return[t("div",{staticClass:"nobr",staticStyle:{display:"flex"}},[t("span",[e._v(e._s(s.label))]),t("span",{staticStyle:{"margin-left":"auto"}}),t("span",[e.matchesExpanded?t("b-icon-chevron-expand",{attrs:{rotate:"90"},on:{click:function(t){return t.stopPropagation(),e.toggleMatchWidth.apply(null,arguments)}}}):t("b-icon-chevron-contract",{attrs:{rotate:"90"},on:{click:function(t){return t.stopPropagation(),e.toggleMatchWidth.apply(null,arguments)}}})],1)])]}},{key:"cell(match)",fn:function(s){return[t("b",{staticClass:"nobr",attrs:{lang:s.item.language}},e._l(s.value,(function(o,n){return t("kwic-token",{key:n,attrs:{match:!0,prev:s.value[n-1],corpus:s.item.corpus,token:o,rowId:s.index,hideText:e.hideText}})})),1)]}},{key:"cell(rightContext)",fn:function(s){return[t("div",{class:"nobr right-context cw-"+e.$mq,attrs:{lang:s.item.language}},e._l(s.value,(function(o,n){return t("kwic-token",{key:n,attrs:{prev:s.value[n-1],corpus:s.item.corpus,token:o,rowId:s.index,hideText:e.hideText}})})),1)]}},{key:"cell(annotation)",fn:function(s){return[t("div",{directives:[{name:"show",rawName:"v-show",value:s.item.cpos!=e.annotationCpos,expression:"data.item.cpos!=annotationCpos"}],on:{click:function(t){return t.stopPropagation(),e.editAnnotation(s)}}},[t("small",{staticClass:"nobr"},[e._v(e._s(e.getAnnotationValue(s)||"-"))])]),t("div",{directives:[{name:"show",rawName:"v-show",value:s.item.cpos==e.annotationCpos,expression:"data.item.cpos==annotationCpos"}]},[t("b-form-input",{attrs:{autocomplete:"off",autocorrect:"off"},on:{input:function(t){e.valueChanged=!0},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.storeAnnotation(s)}},model:{value:e.annotationValue,callback:function(t){e.annotationValue=t},expression:"annotationValue"}}),t("b-button",{directives:[{name:"show",rawName:"v-show",value:e.valueChanged,expression:"valueChanged"}],staticClass:"py-0",attrs:{size:"sm"},on:{click:function(t){return e.storeAnnotation(s)}}},[t("small",[e._v("Save")])])],1)]}},{key:"cell()",fn:function(s){return[t("div",{staticClass:"attribute-value nobr"},[e._v(" "+e._s(s.value)+" ")])]}},{key:"cell(avPairs.cpos)",fn:function(s){return[t("div",{staticClass:"attribute-value right"},[e._v(" "+e._s(s.item.cpos)+" ")])]}},{key:"cell(avPairs.time-interval)",fn:function(s){return[s.value?[e.interval==s.value?t("b",{staticStyle:{cursor:"pointer"},on:{click:function(t){return t.stopPropagation(),e.pauseAudio()}}},[t("b-icon-pause")],1):t("b",{staticStyle:{cursor:"pointer"},on:{click:function(t){return t.stopPropagation(),e.playAudio(s)}}},[t("b-icon-play")],1)]:e._e()]}},{key:"cell(count)",fn:function(s){return[t("div",{staticClass:"attribute-value nobr"},["xs"!=e.$mq?t("span",[s.rowSelected?[t("span",{attrs:{"aria-hidden":"true"}},[e._v("✓")]),t("span",{staticClass:"sr-only"},[e._v("Selected")])]:[t("span",{attrs:{"aria-hidden":"true"}},[e._v(" ")]),t("span",{staticClass:"sr-only"},[e._v("Not selected")])],e._v(" "+e._s(s.value)+" ")],2):e._e(),t("span",{on:{click:function(t){return t.stopPropagation(),e.getTokenContext(s.item,s.index)}}},[s.item._showDetails?t("b-icon-chevron-down"):t("b-icon-chevron-up")],1)])]}},{key:"row-details",fn:function(s){return["context"==e.detailsMode?t("div",{class:"border border-secondary rounded dw-"+e.$mq},[Object.keys(e.tokenContext.avPairs).length?t("div",{staticClass:"p-2",staticStyle:{"border-bottom":"1px solid black"}},e._l(e.tokenContext.avPairs,(function(s,o){return t("span",{key:o,staticClass:"comma"},[t("span",{staticClass:"label"},[e._v(e._s(o)+": ")]),Array.isArray(s)?t("span",{staticClass:"font-weight-bold"},e._l(s,(function(s,o){return t("span",{key:o,staticClass:"dot"},[e._v(e._s(s))])})),0):t("span",{staticClass:"font-weight-bold"},[e._v(e._s(s))])])})),0):e._e(),t("div",{staticClass:"p-2",attrs:{lang:s.item.language}},[e._v(" … "),e._l(e.tokenContext.leftContext,(function(s,o){return t("kwic-token",{key:"l"+o,attrs:{prev:e.tokenContext.leftContext[o-1],corpus:e.tokenContext.corpus,token:s,rowId:0,hideText:e.hideText}})})),t("span",{staticClass:"match"},e._l(e.tokenContext.match,(function(s,o){return t("kwic-token",{key:"m"+o,attrs:{prev:e.tokenContext.match[o-1],corpus:e.tokenContext.corpus,token:s,rowId:0,hideText:e.hideText}})})),1),e._l(e.tokenContext.rightContext,(function(s,o){return t("kwic-token",{key:"r"+o,attrs:{prev:e.tokenContext.rightContext[o-1],corpus:e.tokenContext.corpus,token:s,rowId:0,hideText:e.hideText}})})),e._v(" … "),e.hideFullText(e.tokenContext.corpus)?e._e():t("span",{staticClass:"nobr"},[e._v(" ["),t("a",{attrs:{href:"#"},on:{click:function(t){return e.showContext(s)}}},[e._v(e._s(e.$t("Show more context")))]),e._v("] ")])],2)]):e._e(),"parse"==e.detailsMode&&e.parsedContext?t("div",{class:"border border-secondary rounded p-2 dw-"+e.$mq},[t("span",[t("parseTable",{attrs:{tokens:e.parsedContext.tokens,cpos:s.item.cpos}})],1)]):e._e()]}}])})],1)],1)],1)},Se=[],we=function(){var e=this,t=e._self._c;return t("span",[e.leftSpace?t("span",[e._v(e._s(e.leftSpace))]):e._e(),e.isStructural()?t("small",{staticClass:"token structural",attrs:{id:"cpos_"+e.rowId+"_"+e.token.cpos},on:{click:function(t){return t.stopPropagation(),e.showTokenDetails.apply(null,arguments)}}},[e._v(e._s(e.wsToken))]):t("span",{staticClass:"token kwic-font",class:e.token.parentMatch&&!e.match?"parentMatch":"",attrs:{id:"cpos_"+e.rowId+"_"+e.token.cpos},domProps:{innerHTML:e._s(e.wsToken)},on:{click:function(t){return t.stopPropagation(),e.showTokenDetails.apply(null,arguments)}}})])},Ce=[],xe={name:"kwicToken",props:["corpus","token","prev","rowId","match","hideText"],mixins:[v["b"]],methods:{isObject:function(){return"string"!=typeof this.token},isStructural:function(){return this.token.structure||"<"==this.token[0]},getAvPairsAndDictEntries:function(){let e=L()("#kwic-token-details-div");this.callCorpusAPI("get-av-pairs-and-dict-entries",{corpus:this.tokenStore.corpus,cpos:this.tokenStore.tokenCpos,ordered:!0}).then(t=>{this.tokenStore.items=t.avPairs.filter(e=>e.value)||[],this.tokenStore.dictEntries=t.entries,this.tokenStore.lemma=this.token.word;let s=L()("#"+this.tokenStore.target),o=s.offset();this.$nextTick(()=>{e.removeClass("hidden"),e.offset({top:o.top+25,left:o.left})})}).catch(this.showAlert)},showTokenDetails:function(){this.tokenStore.hideText=this.hideFullText,this.tokenStore.source="kwic",this.tokenStore.target="cpos_"+this.rowId+"_"+this.token.cpos,this.tokenStore.tokenCpos=this.token.cpos,this.tokenStore.corpus=this.corpus,this.getAvPairsAndDictEntries()}},computed:{hideFullText:function(){if(this.hideText)return this.hideText;let e=this.corpusBagInfo.corpusList.find(e=>e.name==this.corpus),t=null===e||void 0===e?void 0:e.restrictions.find(e=>"no-fulltext"==e),s=null===e||void 0===e?void 0:e.credentials.find(e=>"corpus-document-export"==e);return t&&!s},wsToken:function(){return this.token.word||this.token.structure||""},leftSpace:function(){let e=this.token.word||this.token.structure||this.token,t=this.prev&&(this.prev.word||this.prev.structure||this.prev);return this.isStructural()?" ":".:,;?!)]}’”›»".indexOf(e[0])>-1||t&&"[{(“„‘‚‹«".indexOf(t[0])>-1?null:" "}}},_e=xe,Ae=(s("9a18"),Object(d["a"])(_e,we,Ce,!1,null,null,null)),Le=Ae.exports,Pe=function(){var e=this,t=e._self._c;return t("b-container",{staticStyle:{position:"relative"},attrs:{id:"parseTable"}},[t("b-modal",{attrs:{id:"modal-edit-norm",title:"Edit normalization rules","cancel-title":"Close","footer-class":"hide",centered:"",scrollable:""},model:{value:e.modalEditNormShown,callback:function(t){e.modalEditNormShown=t},expression:"modalEditNormShown"}},[t("b-container",[t("h3",[e._v("Add rule")]),t("b-form",{attrs:{inline:""}},[t("label",{attrs:{for:"rule-dipl"}},[e._v("dipl:")]),t("b-form-input",{ref:"rule-dipl",staticClass:"m-2 text-font",staticStyle:{width:"6em"},attrs:{size:"sm",id:"rule-dipl",autocomplete:"off",autocorrect:"off"},on:{input:function(t){e.ruleAdded=!1}},model:{value:e.rule_dipl,callback:function(t){e.rule_dipl=t},expression:"rule_dipl"}}),t("label",{attrs:{for:"rule-norm"}},[e._v("norm:")]),t("b-form-input",{ref:"rule-norm",staticClass:"m-2 text-font",staticStyle:{width:"6em"},attrs:{size:"sm",id:"rule-norm",autocomplete:"off",autocorrect:"off"},on:{input:function(t){e.ruleAdded=!1}},model:{value:e.rule_upper,callback:function(t){e.rule_upper=t},expression:"rule_upper"}}),t("b-button",{staticClass:"my-2",attrs:{size:"sm",variant:e.ruleAdded?"secondary":"primary"},on:{click:function(t){return e.addRule("norm")}}},[1==e.ruleAdded?t("span",[e._v("Added")]):"in-progress"==e.ruleAdded?t("span",[e._v("Adding…")]):t("span",[e._v("Add")])]),t("b-button",{staticClass:"my-2",attrs:{size:"sm",variant:e.rulesChanged?"primary":"secondary"},on:{click:function(t){return e.reparseText("renormalize")}}},[e._v(" Apply ")])],1),t("small",[e._v("Add dipl form as ‘word’ for whole word, ‘prefix-’ for prefix, ‘-suffix’ for suffix, ‘-int-’ for internal string, ‘+nonini-’ for non-initial string. Add norm replacement without hyphens or plus sign. See rules below for examples.")]),t("h3",[e._v("Rules")]),t("b-table",{attrs:{striped:"",hover:"",irresponsive:"",small:"",items:e.normRules,fields:["dipl","norm","remove"]},scopedSlots:e._u([{key:"cell(dipl)",fn:function(s){return["suffix"==s.item.rule_type||"internal"==s.item.rule_type?t("span",[e._v("-")]):"non-initial"==s.item.rule_type?t("span",[e._v("+")]):e._e(),t("span",{staticClass:"text-font"},[e._v(e._s(s.value))]),"prefix"==s.item.rule_type||"internal"==s.item.rule_type||"non-initial"==s.item.rule_type?t("span",[e._v("-")]):e._e()]}},{key:"cell(norm)",fn:function(s){return[t("span",{staticClass:"text-font"},[e._v(e._s(s.value))])]}},{key:"cell(remove)",fn:function(s){return[t("b-icon-trash",{staticClass:"trash",on:{click:function(t){return e.removeRule(s,s.item.dipl,s.item.rule_type,"norm")}}})]}}])})],1)],1),t("b-modal",{attrs:{id:"modal-edit-facs",title:"Edit facs rules","cancel-title":"Close","footer-class":"hide",centered:"",scrollable:""},model:{value:e.modalEditFacsShown,callback:function(t){e.modalEditFacsShown=t},expression:"modalEditFacsShown"}},[t("b-container",[t("h3",[e._v("Add rule")]),t("b-form",{attrs:{inline:""}},[t("label",{attrs:{for:"rule-dipl"}},[e._v("dipl:")]),t("b-form-input",{ref:"rule-dipl",staticClass:"m-2 text-font",staticStyle:{width:"12em"},attrs:{size:"sm",id:"rule-dipl",autocomplete:"off",autocorrect:"off"},on:{input:function(t){e.ruleAdded=!1}},model:{value:e.rule_dipl,callback:function(t){e.rule_dipl=t},expression:"rule_dipl"}})],1),t("b-form",{attrs:{inline:""}},[t("label",{attrs:{for:"rule-facs"}},[e._v("facs:")]),t("b-form-input",{ref:"rule-facs",staticClass:"m-2 text-font",staticStyle:{width:"12em"},attrs:{size:"sm",id:"rule-facs",autocomplete:"off",autocorrect:"off"},on:{input:function(t){e.ruleAdded=!1}},model:{value:e.rule_upper,callback:function(t){e.rule_upper=t},expression:"rule_upper"}})],1),t("b-form",{attrs:{inline:""}},[t("b-button",{staticClass:"m-2",attrs:{size:"sm",variant:e.ruleAdded?"secondary":"primary"},on:{click:function(t){return e.addRule("facs")}}},[1==e.ruleAdded?t("span",[e._v("Added")]):"in-progress"==e.ruleAdded?t("span",[e._v("Adding…")]):t("span",[e._v("Add")])]),t("b-button",{staticClass:"m-2",attrs:{size:"sm",variant:e.rulesChanged?"primary":"secondary"},on:{click:function(t){return e.reparseText("renormalize")}}},[e._v(" Apply ")])],1),t("small",[e._v("Add facs form as ‘word’ for whole word, ‘prefix-’ for prefix, ‘-suffix’ for suffix, ‘-int-’ for internal string, ‘+nonini-’ for non-initial string. Strings can (and mostly will) contain XML tags and entities. Make sure that the XML tags do match, and that the entities are defined. Add facs replacement without hyphens or plus sign. See rules below for examples.")]),t("h3",[e._v("Rules")]),t("b-table",{attrs:{striped:"",hover:"",irresponsive:"",small:"",items:e.facsRules,fields:["dipl","facs","remove"]},scopedSlots:e._u([{key:"cell(dipl)",fn:function(s){return["suffix"==s.item.rule_type||"internal"==s.item.rule_type?t("span",[e._v("-")]):"non-initial"==s.item.rule_type?t("span",[e._v("+")]):e._e(),t("span",{staticClass:"text-font"},[e._v(e._s(s.value))]),"prefix"==s.item.rule_type||"internal"==s.item.rule_type||"non-initial"==s.item.rule_type?t("span",[e._v("-")]):e._e()]}},{key:"cell(facs)",fn:function(s){return[t("span",{staticClass:"text-font"},[e._v(e._s(s.value))])]}},{key:"cell(remove)",fn:function(s){return[t("b-icon-trash",{staticClass:"trash",on:{click:function(t){return e.removeRule(s,s.item.dipl,s.item.rule_type,"facs")}}})]}}])})],1)],1),t("b-modal",{attrs:{id:"modal-morph",title:"reading"==e.parseStore.focus.element?"Add reading":"Add norm/facs","cancel-title":e.$t("Cancel"),size:"lg",centered:"",scrollable:""},on:{ok:e.setReading,shown:e.focusModalInput},model:{value:e.modalMorphShown,callback:function(t){e.modalMorphShown=t},expression:"modalMorphShown"}},[t("b-container",[e._v(" … "),e._l(e.parseStore.leftContext,(function(s,o){return t("span",{key:"left_"+o,staticClass:"text-font"},[e._v(e._s(s)+" ")])})),e._l(e.parseStore.tokens,(function(s,o){return t("span",{key:"modal"+o,staticClass:"text-font",class:s.id==e.parseStore.focus.tokenId?"focus-word":""},[s.word||s.dipl||s.norm?t("span",[e._v(" "+e._s(s.word)+" ")]):"start-element"==s.type?t("span",{staticClass:"struct p-0 pl-1 m-0"},[t("small",[e._v("‹"+e._s(s.struct)+"›")])]):"end-element"==s.type?t("span",{staticClass:"struct p-0 pl-1 m-0"},[t("small",[e._v("‹/"+e._s(s.struct)+"›")])]):t("span",{staticClass:"struct p-1 m-0"},[t("small",[e._v("‹"+e._s(s.struct)+"/›")])])])})),e._l(e.parseStore.rightContext,(function(s,o){return t("span",{key:"right_"+o,staticClass:"text-font"},[e._v(e._s(s)+" ")])})),e._v(" … "),t("b-row",{staticClass:"mb-3"},[t("b-col",{attrs:{cols:"auto"}},[t("label",{attrs:{for:"word-input"}},[e._v("Dipl:")]),t("span",{staticClass:"m-2 text-font bold"},[e._v(e._s(e.word))])])],1),t("b-row",{staticClass:"mb-3"},[t("b-col",{attrs:{cols:"auto"}},[t("label",{attrs:{for:"word-input"}},[e._v("Dipl XML:")]),t("span",{staticClass:"m-2 text-font bold",on:{click:e.insertNormCandidateFromDipl}},[e._v(" "+e._s(e.dipl)+" ")])])],1),e.stateStore.editNorm?t("b-row",{staticClass:"mb-3"},[t("b-col",{attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("label",{attrs:{for:"word-input"}},[e._v("Norm XML:")]),e.emptyNorm?e._e():t("b-form-input",{ref:"norm",staticClass:"m-2 text-font",staticStyle:{width:"20em"},attrs:{size:"sm",id:"norm-input",autocomplete:"off",autocorrect:"off"},model:{value:e.norm_xml,callback:function(t){e.norm_xml=t},expression:"norm_xml"}}),t("b-form-checkbox",{staticClass:"pl-4 p-1 ml-4",on:{input:function(t){e.emptyNorm&&(e.norm_xml="")}},model:{value:e.emptyNorm,callback:function(t){e.emptyNorm=t},expression:"emptyNorm"}},[e._v(" empty norm ")])],1)],1)],1):e._e(),t("b-row",[t("b-col",{attrs:{cols:"auto"}},[e.normCandidates?t("span",{staticClass:"p-2",staticStyle:{border:"1px solid gray"}},[t("span",{staticClass:"p-1"},[e._v("Candidates: ")]),t("span",{staticClass:"text-font p-1"},e._l(e.normCandidates,(function(s,o){return t("span",{key:o,staticClass:"dot"},[t("span",{staticClass:"candidate",on:{click:function(t){return e.insertNormCandidate(s)}}},[e._v(" "+e._s(s)+" ")])])})),0)]):e._e()])],1),e.stateStore.editFacs?t("b-row",{staticClass:"mb-3"},[t("b-col",{attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("label",{attrs:{for:"word-input"}},[e._v("Facs XML:")]),t("b-form-input",{ref:"facs",staticClass:"m-2 text-font",staticStyle:{width:"20em"},attrs:{size:"sm",id:"facs-input",autocomplete:"off",autocorrect:"off"},model:{value:e.facs_xml,callback:function(t){e.facs_xml=t},expression:"facs_xml"}})],1)],1)],1):e._e(),"reading"==e.parseStore.focus.element?t("b-row",{staticClass:"mb-3"},[t("b-col",{attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("label",{attrs:{for:"lemma-input"}},[e._v("Lemma:")]),e.emptyLemma?e._e():t("b-form-input",{ref:"lemma",staticClass:"m-2 text-font",staticStyle:{width:"10em"},attrs:{size:"sm",id:"lemma-input",autocomplete:"off",autocorrect:"off"},model:{value:e.lemma,callback:function(t){e.lemma=t},expression:"lemma"}}),t("b-form-checkbox",{staticClass:"pl-4 p-1 ml-4",on:{input:function(t){e.lemma="",e.features=["xEY"]}},model:{value:e.emptyLemma,callback:function(t){e.emptyLemma=t},expression:"emptyLemma"}},[e._v(" empty lemma and features ")])],1)],1)],1):e._e(),"reading"==e.parseStore.focus.element?[t("b-row",[t("b-col",[e._v(" Features: "),e._l(e.features,(function(s){return t("span",{key:s},[e._v(e._s(s)+" ")])}))],2)],1),e._l(e.filterTypes(),(function(s,o){return t("b-row",{key:o,staticClass:"my-2"},[t("b-col",{attrs:{cols:"auto"}},[t("div",{staticStyle:{"margin-left":"1em","text-indent":"-1em"}},[t("span",{staticStyle:{"font-weight":"bold"}},[e._v(e._s(s.type)+": ")]),t("span",{staticStyle:{"text-indent":"0"}},e._l(e.filterFeatures(s),(function(s,n){return t("span",{key:o+"_"+n,staticClass:"dot"},[t("span",{staticClass:"nobr"},[t("b-badge",{staticClass:"menota-feature",attrs:{id:"f"+o+"_"+n,code:s.code,variant:e.features.find(e=>e==s.code)?"success":"secondary"},on:{click:function(t){return e.toggleFeature(s.code)}}},[e._v(" "+e._s(s.code)+" ")]),e._v(" "+e._s(s.long)+" ")],1)])})),0)])])],1)}))]:e._e()],2)],1),t("b-modal",{attrs:{id:"modal-punct",title:"Add punctuation","cancel-title":e.$t("Cancel"),size:"sm",centered:"",scrollable:""},on:{ok:e.addPunctuation,shown:e.focusModalInput},model:{value:e.modalPunctShown,callback:function(t){e.modalPunctShown=t},expression:"modalPunctShown"}},[t("b-container",[t("p",[e._v("Add punctuation after this token")]),e.stateStore.editFacs?t("b-row",{staticClass:"mb-3"},[t("b-col",{attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("label",{attrs:{for:"facs-punct-input"}},[e._v("Facs:")]),t("b-form-input",{ref:"facs-punct",staticClass:"m-2 text-font",staticStyle:{width:"5em"},attrs:{size:"sm",id:"facs-punct-input",autocomplete:"off",autocorrect:"off"},model:{value:e.facs_pc,callback:function(t){e.facs_pc=t},expression:"facs_pc"}})],1)],1)],1):e._e(),t("b-row",{staticClass:"mb-3"},[t("b-col",{attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("label",{attrs:{for:"dipl-punct-input"}},[e._v("Dipl:")]),t("b-form-input",{ref:"dipl-punct",staticClass:"m-2 text-font",staticStyle:{width:"5em"},attrs:{size:"sm",id:"dipl-punct-input",autocomplete:"off",autocorrect:"off"},model:{value:e.dipl_pc,callback:function(t){e.dipl_pc=t},expression:"dipl_pc"}})],1)],1)],1),e.stateStore.editNorm?t("b-row",{staticClass:"mb-3"},[t("b-col",{attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("label",{attrs:{for:"norm-punct-input"}},[e._v("Norm:")]),e.emptyNorm?e._e():t("b-form-input",{ref:"norm",staticClass:"m-2 text-font",staticStyle:{width:"5em"},attrs:{size:"sm",id:"norm-punct-input",autocomplete:"off",autocorrect:"off"},model:{value:e.norm_pc,callback:function(t){e.norm_pc=t},expression:"norm_pc"}})],1)],1)],1):e._e()],1)],1),t("b-modal",{attrs:{id:"modal-split",title:"split1"==e.token_status?"Undo split word":"Split word","cancel-title":e.$t("Cancel"),size:"lg",centered:"",scrollable:""},on:{ok:e.splitToken,shown:function(t){var s;null===(s=e.$refs.dipl_xml)||void 0===s||s.focus()}},model:{value:e.modalSplitShown,callback:function(t){e.modalSplitShown=t},expression:"modalSplitShown"}},[t("b-container",[t("b-row",{staticClass:"mb-3"},[t("b-col",{attrs:{cols:"auto"}},[e._v(" … "),e._l(e.parseStore.leftContext,(function(s,o){return t("span",{key:"left_"+o,staticClass:"text-font"},[e._v(e._s(s)+" ")])})),e._l(e.parseStore.tokens,(function(s,o){return t("span",{key:"modal"+o,staticClass:"text-font",class:s.id==e.parseStore.focus.tokenId?"focus-word":""},[s.struct?"start-element"==s.type?t("span",{staticClass:"struct p-0 pl-1 m-0"},[t("small",[e._v("‹"+e._s(s.struct)+"› ")])]):"end-element"==s.type?t("span",{staticClass:"struct p-0 pl-1 m-0"},[t("small",[e._v("‹/"+e._s(s.struct)+"› ")])]):t("span",{staticClass:"struct p-1 m-0"},[t("small",[e._v("‹"+e._s(s.struct)+"/› ")])]):t("span",[e._v(" "+e._s(s.word)+" ")])])})),e._l(e.parseStore.rightContext,(function(s,o){return t("span",{key:"right_"+o,staticClass:"text-font"},[e._v(e._s(s)+" ")])})),e._v(" … ")],2)],1),t("b-row",{staticClass:"mb-3"},["split1"!=e.token_status?t("b-col",{attrs:{cols:"auto"}},[t("label",{attrs:{for:"word-input"}},[e._v("Word:")]),t("span",{staticClass:"m-2 text-font bold"},[e._v(e._s(e.word))])]):t("b-col",{attrs:{cols:"auto"}},[t("label",{attrs:{for:"word-input"}},[e._v("Undo splitting of:")]),t("span",{staticClass:"m-2 text-font bold"},[e._v(e._s(e.word)+"#"+e._s(e.next_word))])])],1),e.facs&&"split1"!=e.token_status?t("b-row",{staticClass:"mb-3"},[t("b-col",{attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("label",{attrs:{for:"facs-xml-input"}},[e._v("Facs:")]),t("b-form-input",{ref:"facs_xml",staticClass:"m-2 text-font",staticStyle:{width:"20em"},attrs:{size:"sm",id:"facs-xml-input",autocomplete:"off",autocorrect:"off"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.splitToken.apply(null,arguments))}},model:{value:e.facs,callback:function(t){e.facs=t},expression:"facs"}})],1)],1)],1):e._e(),"split1"!=e.token_status?t("b-row",[t("b-col",{attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("label",{attrs:{for:"dipl-xml-input"}},[e._v("Dipl:")]),t("b-form-input",{ref:"dipl_xml",staticClass:"m-2 text-font",staticStyle:{width:"20em"},attrs:{size:"sm",id:"dipl-xml-input",autocomplete:"off",autocorrect:"off"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.splitToken.apply(null,arguments))}},model:{value:e.dipl,callback:function(t){e.dipl=t},expression:"dipl"}})],1)],1)],1):e._e()],1)],1),e.parseStore.busy?t("b-row",[t("b-col",[t("b-spinner",{attrs:{label:"Loading..."}})],1)],1):e._e(),e.parseStore.canParse?[t("div",{staticClass:"dict-popover-wrapper hidden",attrs:{id:"dictionary-div"}},[t("div",{staticClass:"dict-popover m-1 p-2"},[t("dict-entries")],1)]),t("div",{staticClass:"dict-popover-wrapper hidden",attrs:{id:"comment-div"}},[t("div",{staticClass:"dict-popover m-1 p-2"},[t("b-form-group",{attrs:{label:"Comment","label-for":"comment-textarea"}},[t("b-input-group",{staticClass:"mb-2",attrs:{size:"sm"}},[t("b-form-textarea",{attrs:{size:"sm",rows:"4",id:"comment-textarea",autocomplete:"off",autocorrect:"off",autocapitalize:"off"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.storeTokenComment.apply(null,arguments))}},model:{value:e.comment,callback:function(t){e.comment=t},expression:"comment"}})],1),t("b-button",{staticClass:"my-2",attrs:{size:"sm",variant:"primary"},on:{click:e.storeTokenComment}},[e._v(" Store ")]),t("b-button",{staticClass:"my-2",attrs:{size:"sm",variant:"light"},on:{click:e.hidePopup}},[e._v(" Dismiss ")])],1)],1)]),e.parseText?e._e():t("b-row",{staticClass:"m-3"},[t("b-col",{attrs:{cols:"auto"}},[t("h1",{staticClass:"text-page",attrs:{title:e.parseStore.documentId+".xml"}},[e.parseStore.signature?t("span",[e._v(e._s(e.parseStore.signature))]):t("span",[e._v(e._s(e.parseStore.documentId))]),e._v(" – "),t("span",{staticClass:"font-italic"},[e._v(e._s(e.parseStore.documentPage))])])])],1),e.noPagination?e._e():t("b-row",[t("b-col",{attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("b-pagination",{staticClass:"m-2",attrs:{size:"sm","total-rows":e.parseStore.tokenCount,"per-page":e.parseStore.pageSize,"first-number":"","last-number":""},on:{input:e.getPage},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}}),t("label",{staticClass:"ml-2",attrs:{for:"go-to-page"}},[e._v(e._s(e.$t("Go to page"))+":")]),t("b-form-input",{staticClass:"ml-2",staticStyle:{width:"5em"},attrs:{size:"sm",id:"go-to-page",autocomplete:"off",autocorrect:"off"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.gotoPage.apply(null,arguments))}},model:{value:e.gotoPageNr,callback:function(t){e.gotoPageNr=e._n(t)},expression:"gotoPageNr"}}),e.sessionStore.userId?t("b-button",{staticClass:"ml-3",attrs:{size:"sm",variant:"light"},on:{click:function(t){return e.reparseText("reparse")}}},[e._v(" Reparse ")]):e._e(),e.sessionStore.userId?t("b-button",{staticClass:"ml-3",attrs:{size:"sm",variant:"light"},on:{click:function(t){return e.reparseText("redisambiguate")}}},[e._v(" Redisambiguate ")]):e._e(),e.sessionStore.userId&&"abnc"==e.stateStore.project?t("b-button",{staticClass:"ml-3",attrs:{size:"sm",variant:"light"},on:{click:e.downloadDependencies}},[e._v(" "+e._s(e.$t("Download Conll"))+" ")]):e._e(),"menota"==e.stateStore.project?[e._v(" | Show: "),t("b-form-checkbox",{staticClass:"pl-4 p-1 ml-4",attrs:{inline:"",size:"sm"},model:{value:e.stateStore.editNorm,callback:function(t){e.$set(e.stateStore,"editNorm",t)},expression:"stateStore.editNorm"}},[e._v(" Norm ")]),t("b-form-checkbox",{staticClass:"pl-4 p-1 ml-4",attrs:{inline:"",size:"sm"},model:{value:e.stateStore.editFacs,callback:function(t){e.$set(e.stateStore,"editFacs",t)},expression:"stateStore.editFacs"}},[e._v(" Facs ")]),e.sessionStore.userId?t("b-button",{staticClass:"ml-3",attrs:{size:"sm",variant:"light"},on:{click:e.editNormalization}},[e._v(" Edit normalization ")]):e._e(),e.sessionStore.userId?t("b-button",{staticClass:"ml-3",attrs:{size:"sm",variant:"light"},on:{click:e.editFacsRules}},[e._v(" Edit facs rules ")]):e._e()]:e._e(),t("b-form-checkbox",{staticClass:"pl-4 p-1 ml-4",attrs:{inline:"",size:"sm"},model:{value:e.parseStore.showRules,callback:function(t){e.$set(e.parseStore,"showRules",t)},expression:"parseStore.showRules"}},[e._v(" Show used CG rules ")]),t("b-form-checkbox",{staticClass:"pl-4 p-1 ml-4",attrs:{inline:"",size:"sm"},model:{value:e.stateStore.collapseReadings,callback:function(t){e.$set(e.stateStore,"collapseReadings",t)},expression:"stateStore.collapseReadings"}},[e._v(" Collapse readings ")]),t("b-form-checkbox",{staticClass:"pl-4 p-1 ml-4",attrs:{inline:"",size:"sm"},model:{value:e.stateStore.noCtrlKey,callback:function(t){e.$set(e.stateStore,"noCtrlKey",t)},expression:"stateStore.noCtrlKey"}},[e._v(" Key shortcuts w/o Ctrl ")]),"menota"==e.stateStore.project?t("b-form-checkbox",{staticClass:"pl-4 p-1 ml-4",attrs:{inline:"",size:"sm"},model:{value:e.stateStore.contextBox,callback:function(t){e.$set(e.stateStore,"contextBox",t)},expression:"stateStore.contextBox"}},[e._v(" Show context box ")]):e._e()],2)],1)],1),t("b-row",{staticClass:"mb-3"},[t("b-col",{staticClass:"text-font"},[e.parseStore.leftContext.length?t("span",[e._v("… ")]):e._e(),e._l(e.parseStore.leftContext,(function(s,o){return t("span",{key:o},[e._v(e._s(s)+" ")])}))],2)],1),t("b-row",[t("b-col",[t("b-table-simple",{key:e.key,staticClass:"p-0 m-0",attrs:{borderless:"",stacked:""}},["menota"==e.stateStore.project?t("b-tr",[t("b-th",[e._v("Dipl")]),e.stateStore.editNorm?t("b-th",[e._v("Norm")]):e._e(),e.stateStore.editFacs?t("b-th",[e._v("Facs")]):e._e(),t("b-th"),t("b-th",[e._v("MSA")])],1):e._e(),e._l(e.parseStore.tokens,(function(s){return t("parsed-token",{key:s.id,ref:"parsedToken"+s.id,refInFor:!0,attrs:{token:s,cpos:e.cpos,globalShowAllReadings:e.showAllReadings,showTokenComment:e.showCommentPopup,showAllReadings:!!e.focusedShowAllReadings&&s.id==e.parseStore.focus.tokenId,focus:e.focus}})}))],2)],1),"menota"==e.stateStore.project&&e.stateStore.contextBox&&e.parseStore.tokenCount?t("b-col",[t("b-container",[t("div",{staticStyle:{border:"2px solid gray",position:"fixed","max-width":"40em","border-radius":"10px"}},[t("b-row",{staticClass:"m-3"},[t("b-col",[t("p",[e._v("Dipl:")]),e._l(e.parseStore.tokens,(function(s){return t("span",{key:s.id,staticClass:"text-font",class:s.id==e.parseStore.focus.tokenId?"focus-word":""},[e._v(" "+e._s(s.word)+" ")])}))],2)],1),t("b-row",{staticClass:"m-3"},[t("b-col",[t("p",[e._v("Norm:")]),e._l(e.parseStore.tokens,(function(s){return t("span",{key:s.id,staticClass:"text-font",class:s.id==e.parseStore.focus.tokenId?"focus-word":""},[e._v(" "+e._s(s.norm)+" ")])}))],2)],1),t("b-row",{staticClass:"m-3"},[t("b-col",[t("p",[e._v("Facs:")]),e._l(e.parseStore.tokens,(function(s){return t("span",{key:s.id,staticClass:"text-font",class:s.id==e.parseStore.focus.tokenId?"focus-word":""},[e._v(" "+e._s(s.facs)+" ")])}))],2)],1)],1)])],1):e._e()],1),t("b-row",{staticClass:"mt-3"},[t("b-col",{staticClass:"text-font"},[e._l(e.parseStore.rightContext,(function(s,o){return t("span",{key:o},[e._v(e._s(s)+" ")])})),e._v(" … ")],2)],1)]:e._e()],2)},qe=[],Ie=function(){var e=this,t=e._self._c;return t("b-tr",{staticClass:"parsed-token",attrs:{id:"token_"+e.token.id}},[e.token.struct?"start-element"==e.token.type?t("b-td",{staticClass:"struct p-0 pl-1 m-0",attrs:{colspan:"5"}},[t("small",[e._v("‹"+e._s(e.token.struct)+e._s(e.token.atts)+"›")])]):"end-element"==e.token.type?t("b-td",{staticClass:"struct p-0 pl-1 m-0"},[t("small",[e._v("‹/"+e._s(e.token.struct)+"›")])]):t("b-td",{staticClass:"struct p-1 m-0",attrs:{colspan:"4"}},[t("small",[e._v("‹"+e._s(e.token.struct)+e._s(e.token.atts)+"/›")])]):t("b-td",{staticClass:"cpos word p-1 m-0",attrs:{"xxv-if":"token.word || token.dipl || token.norm",xxxclass:"token.status",id:"word_"+e.token.id},on:{click:e.clickWord}},[t("span",{staticClass:"nobr text-font",attrs:{title:e.token.wid}},[e._v(" "+e._s(e.token.word)),t("small",{staticStyle:{color:"gray"}},[e._v("/"+e._s(e.token.wid))]),"merged"==e.token.token_status?t("span",[t("b-icon-arrows-collapse",{staticClass:"ml-2",staticStyle:{color:"red"},attrs:{rotate:"90"}})],1):"split1"==e.token.token_status?t("span",[t("b-icon-arrows-expand",{staticClass:"ml-2",staticStyle:{color:"red"},attrs:{rotate:"90"}})],1):"punct"==e.token.token_status?t("span",[t("b-icon-diamond",{staticClass:"ml-2",staticStyle:{color:"red"}})],1):e._e(),"unclear"==e.token.status?t("span",[t("b-icon-question-circle",{staticClass:"ml-2",staticStyle:{color:"red"}})],1):"wrong"==e.token.status?t("span",[t("b-icon-exclamation-triangle-fill",{staticClass:"ml-2",staticStyle:{color:"red"}})],1):e._e()]),"xcg3-parse"!=e.parseStore.mode&&e.hasDependencies&&e.parseStore.tokenId==e.token.id&&e.token.word?[t("div",{staticStyle:{height:"10em"}},[t("b-button",{staticClass:"mb-3 py-0 ml-3",staticStyle:{"margin-top":"5em"},attrs:{size:"sm",variant:"outline-secondary"},on:{click:function(t){return e.storeDependency(e.token)}}},[e._v(" Store ")]),e.token.stored_label&&!e.diff?t("b-button",{staticClass:"mb-3 py-0 ml-3",staticStyle:{"margin-top":"5em"},attrs:{size:"sm",variant:"outline-secondary"},on:{click:function(t){return e.removeDependency(e.token)}}},[e._v(" Remove ")]):e._e()],1),e.diff?t("div",{staticStyle:{height:"10em"}},[t("b-button",{staticClass:"mb-3 py-0 ml-3",staticStyle:{"margin-top":"5em"},attrs:{size:"sm",variant:"outline-secondary"},on:{click:function(t){return e.storeDependency(e.token,!0)}}},[e._v(" Store ")]),e.token.stored_label?t("b-button",{staticClass:"mb-3 py-0 ml-3",staticStyle:{"margin-top":"5em"},attrs:{size:"sm",variant:"outline-secondary"},on:{click:function(t){return e.removeDependency(e.token)}}},[e._v(" Remove ")]):e._e()],1):e._e()]:e._e()],2),e.stateStore.editNorm?t("b-td",{staticClass:"p-1 m-0 nobr text-font",attrs:{"stacked-heading":"norm"}},[e.token.norm?t("span",{staticClass:"mx-3",attrs:{title:e.token.norm_xml}},[e.token.stored_norm?t("b-icon-check"):e.token.computed_norm?t("b-icon-question-square"):e._e(),e._v(" "+e._s(e.token.norm)+" ")],1):e._e()]):e._e(),e.stateStore.editFacs?t("b-td",{staticClass:"p-1 m-0 nobr text-font",attrs:{"stacked-heading":"facs"}},[e.token.facs?t("span",{staticClass:"mx-3",attrs:{title:e.token.facs_xml}},[e.token.stored_facs?t("b-icon-check"):e.token.computed_facs?t("b-icon-question-square"):e._e(),e._v(" "+e._s(e.token.facs)+" ")],1):e._e()]):e._e(),t("b-td",{staticClass:"count p-1 m-0 nobr",attrs:{"stacked-heading":"count"}},[e.token.comment?t("b-icon-chat-dots",{staticClass:"mr-1",staticStyle:{color:"green"},on:{click:function(t){return e.showTokenComment(e.token.id)}}}):e._e(),e.token.count&&e.selectedCount<e.token.count?t("small",[e._v(e._s(e.selectedCount)+"/")]):e._e(),t("small",[e._v(e._s(e.token.count))])],1),e.hasDependencies?t("b-td",{staticClass:"count p-1 m-0 nobr",attrs:{"stacked-heading":"count"}},[e.token.parent?t("span",[e.token.label!=e.token.stored_label&&e.token.stored_label?t("small",{staticClass:"m-2",staticStyle:{color:"red"}},[e._v(">"+e._s(e.token.stored_label))]):e._e(),t("b-badge",{staticClass:"dep-node",attrs:{variant:e.token.stored_parent&&e.token.stored_parent!=e.token.parent?"danger":"light"},on:{click:e.showDependencyGraph}},[e.token.stored_parent&&e.token.stored_parent!=e.token.parent?t("span",[e._v(" "+e._s(e.token.stored_parent)+"/")]):e._e(),e._v(e._s(e.token.parent)+"→"+e._s(e.token.self)+" ")])],1):e.token.self?t("span",[t("b-badge",{staticClass:"dep-root",on:{click:e.showDependencyGraph}},[e.token.stored_label?t("span",[t("b-icon-check")],1):e._e(),e._v(" "+e._s(e.token.self)+" ")])],1):e._e()]):e._e(),t("b-td",{staticClass:"msa p-0 m-0",attrs:{sm:"auto","stacked-heading":"msa"}},[t("b-table-simple",{staticClass:"p-0 m-0",attrs:{borderless:"",stacked:""}},e._l(e.shownReadings1,(function(s,o){return t("token-msa",{key:o,attrs:{index:o,focus:e.parseStore.focus,token:e.token,globalShowAllReadings:e.globalShowAllReadings,showAllReadings:e.showAllReadings,ellipsis:e.stateStore.collapseReadings&&!e.readingFocus&&e.selectedCount>1,lf:s}})})),1),e.hasDependencies&&e.parseStore.tokenId==e.token.id&&e.token.word?t("div",{staticStyle:{"margin-left":"-10em"},attrs:{id:"dependency"}},[t("dependencyStructure",{attrs:{token:e.token,uid:e.token.id,linear:!0,mode:"corpus"}}),t("dependencyStructure",{attrs:{token:e.token,uid:e.token.id,linear:!0,mode:"corpus",stored:!0}})],1):e._e()],1)],1)},Te=[],De=function(){var e=this,t=e._self._c;return t("b-tr",{staticClass:"reading",attrs:{id:"reading_"+e.token.id+"_"+e.lf.rid,vif:"globalShowAllReadings || showAllReadings || lf.status!='discarded-cg'"}},[t("b-td",{staticClass:"test text-nowrap p-1 m-0",attrs:{"stacked-heading":"lemma"}},["selected"==e.lf.manual||"selected-manually"==e.lf.status||e.lf.features.find(e=>"<Sel>"==e)?t("b-icon-check"):"removed-manually"==e.lf.status?t("b-icon-x"):e._e()],1),t("b-td",{class:"token-lemma text-font text-nowrap p-1 m-0"+("discarded-cg"==e.lf.status||"removed"==e.lf.manual||"removed-manually"==e.lf.status?" discarded":""),attrs:{id:"lemma_"+e.token.id+"_"+e.lf.rid,"stacked-heading":"lemma"},on:{click:function(t){return t.stopPropagation(),e.clickLemma()}}},[t("span",{attrs:{title:e.featuresDesc(e.lf.features)}},[e._v(" "+e._s(e.lf.trans_lemma||e.lf.lemma)+" ")])]),t("b-td",{staticClass:"features p-1 m-0",attrs:{"stacked-heading":"word"},on:{click:e.clickFeatures}},[e._l(e.lf.features.filter(e=>"<Sel>"!=e&&"<Del>"!=e),(function(s,o){return t("span",{key:o,staticClass:"space"},[t("span",{staticClass:"feature",attrs:{title:e.featureDesc(s)},on:{mouseover:function(t){return e.hiliteFeatureReadings(s)},mouseout:e.unhiliteFeatureReadings,click:function(t){return e.clickFeature(s)}}},[e._v(e._s(s))])])})),e.lf.count?t("small",{staticClass:"ml-2 m-0",staticStyle:{color:"gray"}},[e._v(" ["+e._s(e.lf.count)+"]")]):e._e(),e.ellipsis?t("span",[e._v(" …")]):e._e(),e.parseStore.showRules?t("span",e._l(e.lf.trace,(function(s,o){return t("span",{key:o,staticClass:"rule"},[e._v(" "+e._s(s)+" ")])})),0):e._e()],2)],1)},Me=[];o["default"].use(i["a"]),o["default"].use(ie["a"]);var Ne={name:"tokenMsa",mixins:[v["b"]],props:["lf","token","globalShowAllReadings","showAllReadings","focus","index","ellipsis"],data:function(){return{}},computed:{...Object(k["e"])(v["c"]),hasFocus:function(){return this.parseStore.focus.readingIndex==this.index&&this.parseStore.focus.tokenId==this.token.id&&"reading"==this.parseStore.focus.element}},methods:{clickLemma:function(){"abnc"==this.stateStore.project||"gnc"==this.stateStore.project?this.getDictionaryEntries():(this.parseStore.focus.tokenId=this.token.id,this.parseStore.focus.readingIndex=this.index,this.parseStore.focus.element="reading")},clickFeatures:function(){this.parseStore.focus.tokenId=this.token.id,this.parseStore.focus.readingIndex=this.index,this.parseStore.focus.element="reading"},clickFeature:function(e){return this.parseStore.focus.tokenId=this.token.id,this.parseStore.focus.readingIndex=this.index,this.parseStore.focus.element="reading",this.parseStore.focus.token&&this.parseStore.focus.token.removeClass("focus"),this.parseStore.focus.reading&&this.parseStore.focus.reading.removeClass("focus"),this.parseStore.focus.reading=L()("#reading_"+this.parseStore.focus.tokenId+"_"+this.lf.rid),this.parseStore.focus.reading.addClass("focus"),e},hiliteFeatureReadings:function(e){this.token.msa.forEach(t=>{t.features.find(t=>t==e)&&L()("#reading_"+this.token.id+"_"+t.rid).addClass("hilite-reading")})},unhiliteFeatureReadings:function(){this.token.msa.forEach(e=>{L()("#reading_"+this.token.id+"_"+e.rid).removeClass("hilite-reading")})},featureDesc:function(e){var t;let s=null===(t=this.parseStore.feature_table)||void 0===t?void 0:t[e];if(s)return s.type+": "+s.long},featuresDesc:function(e){return e.map(e=>this.featureDesc(e)).filter(e=>e).join(", ")},getDictionaryEntries:function(){this.callCorpusAPI("dictionary-entries",{lemma:this.lf.lemma,corpus:this.tokenStore.corpus||"abnc"}).then(e=>{let t=L()("#reading_"+this.token.id+"_"+this.lf.rid);this.tokenStore.dictEntries=e.entries,this.tokenStore.lemma=this.lf.lemma;let s=t.offset(),o=L()("#dictionary-div");o.removeClass("hidden"),o.offset({top:s.top+40,left:s.left})}).catch(this.showAlert)}}},Re=Ne,ze=(s("3a3a"),Object(d["a"])(Re,De,Me,!1,null,null,null)),Ee=ze.exports,je=function(){var e=this,t=e._self._c;return t("div",[t("b-row",{staticClass:"m-2 mb-0"},[t("b-col",[t("div",{staticStyle:{"overflow-x":"scroll"},attrs:{id:"box"}},[t("div",{staticClass:"av-popover-wrapper hidden",attrs:{id:"relations-div"}},[t("div",{staticClass:"relations-popover m-1 p-2"},[t("ul",{staticClass:"relations"},e._l(e.sentenceStore.relations,(function(s,o){return t("li",{key:o,on:{click:function(t){return e.updateDependency(null,e.sentenceStore.relationId,null,s)}}},[e._v(" "+e._s(s)+" ")])})),0)])]),t("div",{staticClass:"c-structure",attrs:{id:"dep-uid-"+e.uid}}),e.stored?t("div",{staticClass:"c-structure",attrs:{id:"d3-uid-stored-"+e.uid}}):t("div",{staticClass:"c-structure",attrs:{id:"d3-uid-"+e.uid}})])])],1),e.sentenceStore.can_edit&&e.linear&&"corpus"!=e.mode?t("b-row",{staticClass:"mt-0 mx-2"},[t("b-col",[t("b-form",{attrs:{inline:""}},[t("b-button",{staticClass:"mx-1 py-0",attrs:{size:"sm",variant:"outline-secondary",disabled:!e.sentenceStore.data.undo_length},on:{click:function(t){return e.editDependency("store")}}},[e._v(" Store ")]),t("b-button",{staticClass:"mx-1 py-0",attrs:{size:"sm",variant:"outline-secondary",disabled:!e.sentenceStore.data.undo_length},on:{click:e.storeAsCorrect}},[e._v(" Store as correct ")]),t("b-button",{staticClass:"mx-1 py-0",attrs:{size:"sm",variant:"outline-secondary",disabled:!e.sentenceStore.data.undo_length},on:{click:function(t){return e.editDependency("undo")}}},[e._v(" Undo one "),e.sentenceStore.data.undo_length?t("b-badge",{attrs:{variant:"secondary"}},[e._v(" "+e._s(e.sentenceStore.data.undo_length)+" ")]):e._e()],1),t("b-button",{staticClass:"mx-1 py-0",attrs:{size:"sm",variant:"outline-secondary",disabled:!e.sentenceStore.data.undo_length},on:{click:function(t){return e.editDependency("undo-all")}}},[e._v(" Undo all ")]),t("b-button",{staticClass:"mx-1 py-0",attrs:{size:"sm",variant:"outline-secondary",disabled:!e.sentenceStore.data.redo_length},on:{click:function(t){return e.editDependency("redo")}}},[e._v(" Redo one "),e.sentenceStore.data.redo_length?t("b-badge",{attrs:{variant:"secondary"}},[e._v(" "+e._s(e.sentenceStore.data.redo_length)+" ")]):e._e()],1),t("b-form-checkbox",{staticClass:"m-1",on:{input:e.storeCorrectFlag},model:{value:e.sentenceStore.data.correct,callback:function(t){e.$set(e.sentenceStore.data,"correct",t)},expression:"sentenceStore.data.correct"}},[e._v(" Correct ")])],1)],1)],1):e._e(),e.sentenceStore.can_edit&&"corpus"!=e.mode?t("b-row",{staticClass:"mt-0 mx-2"},[t("b-col",[e.sentenceStore.data.comments||e.sentenceStore.can_edit&&e.linear?t("span",{on:{click:function(t){e.editComment=!0}}},[e._v("Comment:")]):e._e(),e.editComment?[t("b-form-textarea",{staticStyle:{width:"50%"},attrs:{rows:"2"},model:{value:e.sentenceStore.data.comments,callback:function(t){e.$set(e.sentenceStore.data,"comments",t)},expression:"sentenceStore.data.comments"}}),t("b-button",{staticClass:"mx-1 py-0",attrs:{size:"sm",variant:"outline-secondary",disabled:!e.sentenceStore.data.comments},on:{click:function(t){return e.editDependency("comment")}}},[e._v(" Store comment ")]),t("b-button",{staticClass:"mx-1 py-0",attrs:{size:"sm",variant:"outline-secondary"},on:{click:function(t){e.editComment=!1}}},[e._v(" Cancel ")])]:!e.sentenceStore.data.comments&&e.linear&&e.sentenceStore.can_edit?t("span",{on:{click:function(t){e.editComment=!0}}},[t("small",{staticClass:"text-muted",staticStyle:{cursor:"pointer"}},[e._v(" (Click to edit)")])]):t("span",{staticStyle:{cursor:"pointer"},on:{click:function(t){e.editComment=!0}}},[e._v(" "+e._s(e.sentenceStore.data.comments)+" ")])],2)],1):e._e()],1)},Oe=[],$e=s("e9b1"),Fe={name:"dependencyStructure",mixins:[q,$e["a"],v["b"]],props:["uid","linear","mode","token","stored"],computed:{...Object(k["e"])($e["b"],v["c"])},methods:{}},Be=Fe,Ge=(s("d50f"),Object(d["a"])(Be,je,Oe,!1,null,null,null)),Ve=Ge.exports,Ke={name:"parsedToken",components:{dependencyStructure:Ve,tokenMsa:Ee},mixins:[v["b"],$e["a"]],props:["token","cpos","globalShowAllReadings","showAllReadings","focus","showTokenComment"],data:function(){return{diff:!1}},computed:{...Object(k["e"])(v["c"],v["e"]),readingFocus:function(){return this.parseStore.focus.tokenId==this.token.id&&"token"!=this.parseStore.focus.element},shownReadings1:function(){let e=this.shownReadings2();return this.stateStore.collapseReadings&&!this.readingFocus?e?[e[0]]:[]:e},selectedCount:function(){var e,t,s;return(null===(e=this.token.msa)||void 0===e?void 0:e.filter(e=>"selected"==e.manual).length)||(null===(t=this.token.msa)||void 0===t?void 0:t.filter(e=>"selected-manually"==e.status).length)||(null===(s=this.token.msa)||void 0===s?void 0:s.filter(e=>"discarded-cg"!=e.status&&"discarded-manually"!=e.status).length)},shownReadings:function(){var e,t,s,o,n;return this.globalShowAllReadings||this.showAllReadings?this.token.msa:null!==(e=this.token.msa)&&void 0!==e&&e.find(e=>"selected"==e.manual)?null===(s=this.token.msa)||void 0===s?void 0:s.filter(e=>"selected"==e.manual):null!==(t=this.token.msa)&&void 0!==t&&t.find(e=>"selected-manually"==e.status)?null===(o=this.token.msa)||void 0===o?void 0:o.filter(e=>"selected-manually"==e.status):null===(n=this.token.msa)||void 0===n?void 0:n.filter(e=>"discarded-cg"!=e.status&&"discarded-manually"!=e.status)}},methods:{shownReadings2:function(){var e,t,s,o,n;return this.globalShowAllReadings||this.showAllReadings?this.token.msa:null!==(e=this.token.msa)&&void 0!==e&&e.find(e=>"selected"==e.manual)?null===(s=this.token.msa)||void 0===s?void 0:s.filter(e=>"selected"==e.manual):null!==(t=this.token.msa)&&void 0!==t&&t.find(e=>"selected-manually"==e.status)?null===(o=this.token.msa)||void 0===o?void 0:o.filter(e=>"selected-manually"==e.status):null===(n=this.token.msa)||void 0===n?void 0:n.filter(e=>"discarded-cg"!=e.status&&"discarded-manually"!=e.status)},clickWord:function(){L()("#token_"+this.parseStore.focus.tokenId).removeClass("focus"),this.parseStore.focus.tokenId=this.token.id,this.parseStore.focus.readingIndex=0,this.parseStore.focus.element="token",this.parseStore.focus.token=L()("#token_"+this.token.id),this.parseStore.focus.token.addClass("focus")},showDependencyGraph:function(){this.parseStore.tokenId==this.token.id?this.parseStore.tokenId=null:(this.parseStore.tokenId=this.token.id,this.callCorpusAPI("get-dependency-graph",{linear:this.stateStore.linear,ordered:this.stateStore.ordered,"token-id":this.token.self,"show-lemma":this.stateStore.showLemma,"show-morph":this.stateStore.showMorph,"show-pos":this.stateStore.showPos,transliterate:this.stateStore.transliteration||""}).then(e=>{this.sentenceStore.data={},this.$nextTick(()=>{this.sentenceStore.data=e,this.sentenceStore.can_edit=!0,this.showDepGraph(this.token.id,e.data),this.callCorpusAPI("get-dependency-graph",{linear:this.stateStore.linear,ordered:this.stateStore.ordered,stored:!0,"token-id":this.token.self,"show-lemma":this.stateStore.showLemma,"show-morph":this.stateStore.showMorph,"show-pos":this.stateStore.showPos,transliterate:this.stateStore.transliteration||""}).then(e=>{this.diff=e.diff,e.diff&&(this.sentenceStore.data={},this.$nextTick(()=>{this.sentenceStore.data=e,this.showDepGraph(this.token.id,e.data,"stored")}))})})}).catch(this.showAlert))}}},Ue=Ke,He=(s("7fed"),Object(d["a"])(Ue,Ie,Te,!1,null,null,null)),Qe=He.exports,We=s("8ce3"),Je={name:"parseTable",components:{parsedToken:Qe,dictEntries:We["a"]},mixins:[v["b"]],props:["cpos","noPagination","parseText"],data:function(){return{text:null,showAllReadings:!1,showDependencies:!1,UDFeatures:!1,focus:{tokenId:this.cpos?this.parseStore.tokens.find(e=>e.cpos==this.cpos).id:0,readingIndex:0,element:this.cpos?"reading":"token"},focusedShowAllReadings:!1,showOneReading:!1,currentPage:1,gotoPageNr:null,comment:null,key:0,token:null,word:null,next_word:null,norm_xml:null,dipl:null,facs:null,facs_xml:null,emptyNorm:!1,norm_pc:null,dipl_pc:null,facs_pc:null,token_status:null,lemma:null,emptyLemma:!1,features:[],modalMorphShown:!1,modalSplitShown:!1,modalEditNormShown:!1,modalEditFacsShown:!1,modalPunctShown:!1,commentShown:!1,dictShown:!1,fid:null,featureCode:null,normCandidates:[],normRules:[],facsRules:[],rule_upper:null,rule_dipl:null,ruleAdded:!1,rulesChanged:!1}},created:function(){"menota"==this.stateStore.project&&this.tokenStore.corpus&&this.callCorpusAPI("get-features",{corpus:this.tokenStore.corpus}).then(e=>{this.parseStore.features=e.feature_types,this.parseStore.feature_table={},this.parseStore.features.forEach(e=>e.features.forEach(e=>this.parseStore.feature_table[e.code]=e))}).catch(this.showAlert)},mounted:function(){window.addEventListener("keydown",this.onKeyDown)},destroyed:function(){window.removeEventListener("keydown",this.onKeyDown)},computed:{...Object(k["e"])(v["c"]),offset:function(){return(this.currentPage-1)*this.parseStore.pageSize},project:function(){return this.$route.params.project}},methods:{refresh:function(){this.$refs.kwic.refresh()},getPage:function(){this.parseStore.tokenId=null,this.callCorpusAPI("get-parsed-page",{corpus:this.tokenStore.corpus,start:this.offset,end:this.currentPage*this.parseStore.pageSize-1,"show-all-readings":!0,dependencies:!0,transliterate:this.stateStore.transliteration||""}).then(e=>{e.no_text?this.parseStore.tokenCount=0:(this.parseStore.tokens=e.tokens,this.parseStore.leftContext=e.leftContext,this.parseStore.rightContext=e.rightContext,this.parseStore.focus.tokenId=this.offset,this.gotoPageNr=null,this.$nextTick(()=>{"token"==this.parseStore.focus.element?this.focusToken():(this.parseStore.focus.readingIndex=0,this.focusReading()),L()(window).scrollTop(0)}))}).catch(this.showAlert)},gotoPage:function(){this.gotoPageNr&&(this.currentPage=this.gotoPageNr)},downloadDependencies:function(){this.callCorpusAPI("download-dep-conll",{corpus:this.tokenStore.corpus}).then(e=>{let t=new Blob([e.data],{type:"application/text"}),s=document.createElement("a");s.href=URL.createObjectURL(t),s.download=this.stateStore.documentId+"_"+this.tokenStore.pageName+".conll",s.click(),URL.revokeObjectURL(s.href)}).catch(this.showAlert)},focusToken:function(){this.parseStore.focus.token&&this.parseStore.focus.token.removeClass("focus"),this.parseStore.focus.reading&&this.parseStore.focus.reading.removeClass("focus"),this.parseStore.focus.token=L()("#token_"+this.parseStore.focus.tokenId),this.parseStore.focus.token.addClass("focus")},focusReading:function(){this.parseStore.focus.token&&this.parseStore.focus.token.removeClass("focus"),this.parseStore.focus.reading&&this.parseStore.focus.reading.removeClass("focus");let e=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId);if(e){let t=this.shownReadings(e)[this.parseStore.focus.readingIndex].rid;this.parseStore.focus.reading=L()("#reading_"+this.parseStore.focus.tokenId+"_"+t),this.parseStore.focus.reading.addClass("focus")}},resetFocus:function(){this.parseStore.focus.token=null,this.parseStore.focus.reading=null,this.parseStore.focus.tokenId=0,this.parseStore.focus.readingIndex=0,this.parseStore.focus.element="token"},focusModalInput:function(){var e;if("reading"==this.parseStore.focus.element)this.emptyLemma||null===(e=this.$refs.lemma)||void 0===e||e.focus();else if(this.stateStore.editNorm){var t;null===(t=this.$refs.norm)||void 0===t||t.focus()}else{var s;null===(s=this.$refs.facs)||void 0===s||s.focus()}},insertNormCandidate:function(e){if(this.emptyNorm=null,this.dipl&&this.dipl.match(/<lb|<pb|<cb/)){let t=e,s=this.dipl.match(/((<lb|<pb|<cb|<pc|<\/pc)[^<]*>)/g),o=this.dipl.replace(/((<lb|<pb|<cb|<pc|<\/pc)[^<]*>)/g,"|");o=o.replace(/(<[^<]*>)/g,"");let n="",a=0;s.forEach(e=>{a=o.indexOf("|"),n+=t.substring(0,a)+e,o=o.substring(a+1),t=t.substring(a)}),n+=t,this.norm_xml=n}else this.norm_xml=e},insertNormCandidateFromDipl:function(){if(this.dipl.match(/<lb|<pb|<cb|<pc>/)){let e=this.dipl.match(/((<lb|<pb|<cb|<pc|<\/pc)[^<]*>)/g),t=this.dipl.replace(/((<lb|<pb|<cb|<pc|<\/pc)[^<]*>)/g,"|");t=t.replace(/(<[^<]*>)/g,"");let s="",o=0;e.forEach(e=>{o=t.indexOf("|"),s+=t.substring(0,o)+e,t=t.substring(o+1)}),s+=t,this.norm_xml=s}else this.norm_xml=this.dipl.replace(/(<[^<]*>)/g,"")},hidePopup:function(){let e=document.getElementById("dictionary-div");e.classList.add("hidden"),this.dictShown=!1,e=document.getElementById("comment-div"),e.classList.add("hidden"),this.commentShown=!1,this.tokenStore.dictEntries=[],this.tokenStore.lemma=null},onKeyDown:function(e){let t,s=null,o=null,n=null;for(let r=this.parseStore.tokens.length-1;r>0&&!t;r--)t=this.parseStore.tokens[r].id;let a="TEXTAREA"==document.activeElement.tagName;if(27==e.keyCode)this.hidePopup();else if(!e.ctrlKey&&a);else if(!e.ctrlKey&&this.modalMorphShown&&13==e.keyCode)e.cancelBubble=!0,e.returnValue=!1;else if(e.ctrlKey||this.stateStore.noCtrlKey&&!this.modalMorphShown&&!this.modalSplitShown&&!this.modalEditNormShown){let r,l,c,u;switch(e.keyCode){case 13:this.hidePopup(),this.modalMorphShown?this.featureCode&&(L()(".feature-focus").removeClass("feature-focus"),this.toggleFeature(this.featureCode),this.$nextTick(()=>{this.$nextTick(()=>L()("span").find(`[code='${this.featureCode}']`).addClass("feature-focus"))})):(l=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId),"token"==this.parseStore.focus.element?(u=this.shownReadings(l),this.parseStore.focus.readingIndex=u[0].rid):(u=this.shownReadings(l),c=u[this.parseStore.focus.readingIndex],"selected"==c.manual?c.manual=null:(c.manual="selected",this.focusedShowAllReadings=!1,this.parseStore.focus.readingIndex=0,this.storeReading(l,c),this.$nextTick(()=>this.focusReading())),this.key++)),e.cancelBubble=!0,e.returnValue=!1;break;case 32:this.hidePopup(),l=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId),this.focusedShowAllReadings=!this.focusedShowAllReadings,e.cancelBubble=!0,e.returnValue=!1;break;case 38:if(this.hidePopup(),this.modalMorphShown){if(this.fid){let e=this.fid.substring(1).split("_"),t=parseInt(e[0]);if(t>0){var i;L()(".feature-focus").removeClass("feature-focus");let e="f"+(t-1)+"_0";this.featureCode=null===(i=L()("#"+e)[0])||void 0===i?void 0:i.getAttribute("code"),this.fid=e,L()("#"+this.fid).focus(),L()("#"+this.fid).addClass("feature-focus")}}}else if("token"==this.parseStore.focus.element)this.parseStore.focus.tokenId>this.offset&&(this.parseStore.focus.tokenId--,this.focusToken(),r=L()("#token_"+this.parseStore.focus.tokenId)[0],this.scroll(r,"up"));else{if(this.parseStore.focus.readingIndex>0)this.parseStore.focus.readingIndex--,this.focusToken(),this.$nextTick(()=>this.focusReading());else if(this.parseStore.focus.tokenId>this.offset){this.parseStore.focus.tokenId--,this.focusedShowAllReadings=!1;let e=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId),t=this.shownReadings(e);t&&(this.parseStore.focus.readingIndex=t.length-1,this.focusToken(),this.focusReading(),this.$nextTick(()=>this.focusReading()))}l=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId),n=this.shownReadings(l)[this.parseStore.focus.readingIndex].rid,r=L()("#reading_"+this.parseStore.focus.tokenId+"_"+n)[0],this.scroll(r,"up")}e.cancelBubble=!0,e.returnValue=!1;break;case 40:if(this.hidePopup(),this.modalMorphShown){let e;if(this.fid){let t=this.fid.substring(1).split("_"),s=parseInt(t[0]);e="f"+(s+1)+"_0"}else e="f0_0";L()("#"+e)[0]&&(L()(".feature-focus").removeClass("feature-focus"),this.featureCode=L()("#"+e)[0].getAttribute("code"),this.fid=e,L()("#"+this.fid).focus(),L()("#"+this.fid).addClass("feature-focus"))}else if("token"==this.parseStore.focus.element)this.parseStore.focus.tokenId<this.offset?(this.parseStore.focus.tokenId=this.offset,this.focusToken()):this.parseStore.focus.tokenId<t&&(this.parseStore.focus.tokenId++,this.focusToken()),r=L()("#token_"+this.parseStore.focus.tokenId)[0],this.scroll(r,"down");else{let e=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId),s=this.shownReadings(e);this.parseStore.focus.readingIndex<s.length-1?(this.parseStore.focus.readingIndex++,this.focusReading()):this.parseStore.focus.tokenId<t&&(this.parseStore.focus.readingIndex=0,this.parseStore.focus.tokenId++,this.focusedShowAllReadings=!1,this.focusToken(),this.focusReading()),e=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId),n=this.shownReadings(e)[this.parseStore.focus.readingIndex].rid,r=L()("#reading_"+this.parseStore.focus.tokenId+"_"+n)[0],this.scroll(r,"down")}e.cancelBubble=!0,e.returnValue=!1;break;case 37:if(this.hidePopup(),this.modalMorphShown){if(this.fid){let e=this.fid.substring(1).split("_"),t=parseInt(e[0]),s=parseInt(e[1]),o=null;s>0?o="f"+t+"_"+(s-1):t>0&&(o="f"+(t-1)+"_0"),o&&(L()(".feature-focus").removeClass("feature-focus"),this.featureCode=L()("#"+o)[0].getAttribute("code"),this.fid=o,L()("#"+this.fid).focus(),L()("#"+this.fid).addClass("feature-focus"))}}else e.shiftKey?this.currentPage>1&&this.currentPage--:"reading"==this.parseStore.focus.element&&(this.parseStore.focus.element="token",this.parseStore.focus.readingIndex=0,this.focusToken());break;case 39:if(this.modalMorphShown){let e;if(this.fid){let t=this.fid.substring(1).split("_"),s=parseInt(t[0]),o=parseInt(t[1]);e="f"+s+"_"+(o+1),L()("#"+e)[0]||(e="f"+(s+1)+"_0")}else e="f0_0";L()("#"+e)[0]&&(L()(".feature-focus").removeClass("feature-focus"),this.featureCode=L()("#"+e)[0].getAttribute("code"),this.fid=e,L()("#"+e).addClass("feature-focus"))}else a||(this.hidePopup(),e.shiftKey?this.currentPage<this.parseStore.tokenCount/this.parseStore.pageSize&&this.currentPage++:"token"==this.parseStore.focus.element&&(this.parseStore.focus.element="reading",this.parseStore.focus.readingIndex=0,this.focusReading()));e.cancelBubble=!0,e.returnValue=!1;break;case 65:this.tokenStore.lemma?this.hidePopup():"abnc"!=this.stateStore.project&&"gnc"!=this.stateStore.project||"reading"!=this.parseStore.focus.element||(l=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId),u=this.shownReadings(l),c=u[this.parseStore.focus.readingIndex],this.callCorpusAPI("dictionary-entries",{lemma:c.lemma,corpus:this.tokenStore.corpus||"abnc"}).then(e=>{this.tokenStore.showDefinitions=!0;let t=L()("#reading_"+this.parseStore.focus.tokenId+"_"+c.rid);this.tokenStore.dictEntries=e.entries,this.tokenStore.lemma=c.lemma;let s=t.offset(),o=L()("#dictionary-div");o.removeClass("hidden"),o.offset({top:s.top+40,left:s.left})}).catch(this.showAlert)),e.cancelBubble=!0,e.returnValue=!1;break;case 77:"menota"!=this.stateStore.project||(this.parseStore.lemma?this.hidePopup():this.modalMorphShown?this.$bvModal.hide("modal-morph"):(l=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId),this.token=l,this.word=l.word,this.dipl=l.dipl_xml,this.norm_xml=l.norm_xml||this.normCandidate(l.dipl_xml).xml,this.emptyNorm="∅"==this.norm_xml,this.facs_xml=l.facs_xml,"reading"==this.parseStore.focus.element?(u=this.shownReadings(l),c=u[this.parseStore.focus.readingIndex],this.lemma=c.lemma,this.emptyLemma="∅"==this.lemma,"unknown"==c.features[0]?this.features=[]:this.features=c.features.filter(e=>"<Sel>"!=e&&""!=e)):(this.lemma="",this.features=[]),this.callCorpusAPI("get-norm-candidates",{corpus:this.tokenStore.corpus,word:this.word}).then(e=>{this.normCandidates=e.norm_candidates}),this.fid=null,this.featureCode=null,this.$bvModal.show("modal-morph"))),e.cancelBubble=!0,e.returnValue=!1;break;case 80:"menota"!=this.stateStore.project||(this.parseStore.lemma?this.hidePopup():this.modalPunctShown?this.$bvModal.hide("modal-punct"):(this.norm_pc=".",this.dipl_pc=null,this.facs_pc=null,l=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId),l.token_status?"punct"==l.token_status&&this.addPunctuation():(this.token=l,this.word=l.word,this.dipl=l.dipl_xml,this.norm_xml=l.norm_xml,this.emptyNorm="∅"==this.norm_xml,this.facs_xml=l.facs_xml,"reading"==this.parseStore.focus.element?(u=this.shownReadings(l),c=u[this.parseStore.focus.readingIndex],this.lemma=c.lemma,this.emptyLemma="∅"==this.lemma,"unknown"==c.features[0]?this.features=[]:this.features=c.features.filter(e=>"<Sel>"!=e&&""!=e)):(this.lemma="",this.features=[]),this.fid=null,this.featureCode=null,this.$bvModal.show("modal-punct")))),e.cancelBubble=!0,e.returnValue=!1;break;case 71:e.cancelBubble=!0,e.returnValue=!1;break;case 75:o=document.getElementById("comment-div"),o.classList.contains("hidden")?this.showCommentPopup():this.hidePopup(),e.cancelBubble=!0,e.returnValue=!1;break;case 87:this.hidePopup(),l=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId),this.markReadings(l,"wrong"),e.cancelBubble=!0,e.returnValue=!1;break;case 88:this.hidePopup(),l=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId),"reading"==this.parseStore.focus.element?(u=this.shownReadings(l),c=u[this.parseStore.focus.readingIndex],this.removeReading(l,c),c.manual="removed",this.key++,this.$nextTick(()=>this.focusReading())):"token"==this.parseStore.focus.element&&(l=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId),this.hasDependencies&&this.removeDependency(l)),e.cancelBubble=!0,e.returnValue=!1;break;case 89:if(this.modalSplitShown)this.$bvModal.hide("modal-split");else{this.hidePopup();let e=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId);e.token_status&&"split1"!=e.token_status||(this.word=e.word,this.dipl=e.dipl_xml,this.facs=e.facs_xml,this.token=e,this.token_status=e.token_status,this.next_word=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId+1).word,this.$bvModal.show("modal-split"))}break;case 74:this.hidePopup(),this.mergeTokens();break;case 82:this.reparseText("redisambiguate");break;case 83:if(this.modalMorphShown)this.setReading(),this.modalMorphShown=!1;else if(this.modalPunctShown)this.addPunctuation(),this.modalPunctShown=!1;else if(this.commentShown)this.storeTokenComment();else if("token"==this.parseStore.focus.element)if(l=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId),this.hasDependencies)this.storeDependency(l,!1);else{let e=l.computed_norm&&this.stateStore.editNorm,t=l.computed_facs&&this.stateStore.editFacs;if(this.emptyNorm="∅"==l.norm_xml,e||t){let s=l.norm_xml;this.emptyNorm&&(s="∅"),this.callCorpusAPI("set-level",{corpus:this.tokenStore.corpus,wid:l.wid,"norm-xml":e?s:"","facs-xml":t?l.facs_xml:""}).then(e=>{l.norm_xml=e.token.norm_xml,l.norm=e.token.norm,l.stored_norm=e.token.stored_norm,l.computed_norm=e.token.computed_norm,l.facs_xml=e.token.facs_xml,l.facs=e.token.facs,l.stored_facs=e.token.stored_facs,l.computed_facs=e.token.computed_facs}).catch(this.showAlert)}}e.cancelBubble=!0,e.returnValue=!1;break;case 86:this.stateStore.collapseReadings=!this.stateStore.collapseReadings;break;case 68:this.hidePopup(),this.hasDependencies&&(l=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId),s=this.$refs["parsedToken"+l.id],s[0].showDependencyGraph()),e.cancelBubble=!0,e.returnValue=!1;break;case 85:this.hidePopup(),l=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId),this.markReadings(l,"unclear"),e.cancelBubble=!0,e.returnValue=!1;break;case 76:"reading"==this.parseStore.focus.element?(l=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId),n=this.shownReadings(l)[this.parseStore.focus.readingIndex].rid,r=L()("#reading_"+this.parseStore.focus.tokenId+"_"+n)[0]):r=L()("#token_"+this.parseStore.focus.tokenId)[0],this.scroll(r,"center")}}},showCommentPopup:function(e){e&&(this.parseStore.focus.tokenId=e,this.focusToken());let t=L()("#token_"+this.parseStore.focus.tokenId),s=t.offset(),o=L()("#comment-div");o.removeClass("hidden"),o.offset({top:s.top+40,left:s.left}),this.commentShown=!0,this.$nextTick(()=>{let e=document.getElementById("comment-textarea"),t=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId);e.value=t.comment,e.focus(),e.select()})},storeTokenComment:function(){let e=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId);this.callCorpusAPI("token-comment",{wid:e.wid,corpus:this.tokenStore.corpus,value:this.comment}).then(()=>{e.comment=this.comment,this.hidePopup()}).catch(this.showAlert)},getOffsetTop:function(e){let t=0;while(e)t+=e.offsetTop,e=e.offsetParent;return t},scroll:function(e,t){if(e){let s=this.getOffsetTop(e),o=e.getBoundingClientRect();switch(t){case"center":L()(window).scrollTop(s-120);break;case"up":o.top<60&&L()(window).scrollTop(s-60);break;case"down":o.bottom>window.innerHeight&&L()(window).scrollTop(s+o.height-window.innerHeight);break}}},shownReadings:function(e){return e?this.globalShowAllReadings||this.showAllReadings||this.focusedShowAllReadings?e.msa:e.msa.find(e=>"selected"==e.manual)?e.msa.filter(e=>"selected"==e.manual):e.msa.find(e=>"selected-manually"==e.status)?e.msa.filter(e=>"selected-manually"==e.status):e.msa.filter(e=>"discarded-cg"!=e.status&&"discarded-manually"!=e.status):null},storeReading:function(e,t){this.callCorpusAPI(this.parseText||!this.tokenStore.corpus?"select-reading":"store-reading",{wid:e.wid,rid:t.rid,corpus:this.tokenStore.corpus||""}).then(t=>{e.msa=t.token.msa,e.norm=t.token.norm,e.norm_xml=t.token.norm_xml,e.stored_norm=t.token.stored_norm,e.facs_xml=t.token.facs_xml,e.facs=t.token.facs,e.stored_facs=t.token.stored_facs,e.computed_facs=t.token.computed_facs}).catch(this.showAlert)},removeReading:function(e,t){this.callCorpusAPI("remove-reading",{wid:e.wid,rid:t.rid,corpus:this.tokenStore.corpus||""}).then(t=>{e.msa=t.token.msa,e.norm=t.token.norm,e.norm_xml=t.token.norm_xml,e.stored_norm=t.token.stored_norm,e.facs_xml=t.token.facs_xml,e.facs=t.token.facs,e.stored_facs=t.token.stored_facs,e.computed_facs=t.token.computed_facs}).catch(this.showAlert)},markReadings:function(e,t){let s=e.status==t?null:t;this.callCorpusAPI("mark-readings",{wid:e.wid,value:s||"",corpus:this.tokenStore.corpus}).then(()=>e.status=s).catch(this.showAlert)},addPunctuation:function(){this.$bvModal.hide("modal-punct");let e=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId),t="punct"==e.token_status;(t||this.norm_pc)&&this.callCorpusAPI("add-punctuation",{wid:e.wid,undo:t,word:e.word,"norm-xml":this.norm_pc||"","dipl-xml":this.dipl_pc||"∅","facs-xml":this.facs_pc||"",corpus:this.tokenStore.corpus}).then(()=>this.reparseText("reparse")).catch(this.showAlert)},splitToken:function(){var e;this.$bvModal.hide("modal-split");let t=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId),s="split1"==t.token_status;(s||!t.token_status&&this.dipl.indexOf("#")>0&&(null===(e=this.token)||void 0===e||!e.facs_xml||this.facs.indexOf("#")>0))&&this.callCorpusAPI("split-token",{wid:t.wid,undo:s,"dipl-xml":this.dipl,"facs-xml":this.facs||"",corpus:this.tokenStore.corpus}).then(()=>this.reparseText("reparse")).catch(this.showAlert)},mergeTokens:function(){let e=this.parseStore.tokens.find(e=>e.id==this.parseStore.focus.tokenId);e.token_status&&"merged"!=e.token_status||this.callCorpusAPI("merge-tokens",{wid:e.wid,value:this.dipl,corpus:this.tokenStore.corpus,undo:"merged"==e.token_status}).then(()=>this.reparseText("reparse")).catch(this.showAlert)},reparseText:function(e){this.hidePopup();let t=this.currentPage;"refresh"!=e&&(this.parseStore.busy=!0),this.parseStore.tokenId=null,"renormalize"==e&&(this.$bvModal.hide("modal-edit-norm"),this.$bvModal.hide("modal-edit-facs"));let s=null;switch(this.stateStore.project){case"abnc":s="abk";break;case"gnc":s="kat";break;case"menota":s="non";break}this.callCorpusAPI("parse",{language:s,text:"",mode:e,transliterate:this.stateStore.transliteration||"","pos-only":this.stateStore.posOnly,"show-all-readings":!0,dependencies:!0,start:this.offset,end:this.currentPage*this.parseStore.pageSize-1}).then(e=>{e&&(this.parseStore.mode="cg3-parse",this.parseStore.tokens=e.tokens,this.parseStore.leftContext=e.leftContext,this.parseStore.rightContext=e.rightContext,this.parseStore.tokenCount=e.tokenCount,this.parseStore.busy=!1,this.$nextTick(()=>{this.currentPage=t,this.focusToken()}))}).catch(this.showAlert)},filterTypes:function(){var e;let t=this.features[0];return null===(e=this.parseStore.features)||void 0===e?void 0:e.filter(e=>{var s;return"POS"==e.type||!this.stateStore.posOnly&&((null===(s=e.pos_list)||void 0===s?void 0:s.find(e=>e==t))||t&&!e.pos_list.length)})},filterFeatures:function(e){let t=null;return e.features.forEach(e=>{this.features.find(t=>t==e.code)&&(t=e)}),t?[t]:e.features},toggleFeature:function(e){let t=null;this.features.forEach(s=>s[0]==e[0]?t=s:null),t?t==e?"x"==e[0]?this.features=[]:this.features.splice(this.features.indexOf(t),1):(this.features.splice(this.features.indexOf(t),1),this.features.push(e)):this.features.push(e),this.features.sort((e,t)=>"xptnfmvgcrsyeiz".indexOf(e[0])-"xptnfmvgcrsyeiz".indexOf(t[0]))},setReading:function(e){let t=this.norm_xml;if(this.emptyNorm&&(t="∅"),"token"!=this.parseStore.focus.element&&(this.lemma&&this.features[0]||this.emptyLemma)||this.token.norm_xml==t&&this.token.facs_xml==this.facs_xml)if(this.lemma&&this.features[0]||this.emptyLemma){this.token.word=this.word;let e=this.norm_xml;this.emptyNorm&&(e="∅"),this.callCorpusAPI("add-reading",{corpus:this.tokenStore.corpus,wid:this.token.wid,"norm-xml":this.token.norm_xml==e?"":e,"facs-xml":this.token.facs_xml==this.facs_xml?"":this.facs_xml,lemma:this.emptyLemma?"∅":this.lemma,features:this.features.join(" "),"pos-only":this.stateStore.posOnly}).then(e=>{this.token.msa=e.token.msa,this.token.norm_xml=e.token.norm_xml,this.token.norm=e.token.norm,this.token.stored_norm=e.token.stored_norm,this.word=null,this.norm=null,this.lemma=null,this.features=[],this.token=null}).catch(this.showAlert)}else null===e||void 0===e||e.preventDefault();else this.callCorpusAPI("set-level",{corpus:this.tokenStore.corpus,wid:this.token.wid,"norm-xml":this.stateStore.editNorm?t:"","facs-xml":this.stateStore.editFacs?this.facs_xml:""}).then(e=>{this.token.norm_xml=e.token.norm_xml,this.token.norm=e.token.norm,this.token.stored_norm=e.token.stored_norm,this.token.facs_xml=e.token.facs_xml,this.token.facs=e.token.facs,this.token.stored_facs=e.token.stored_facs,this.word=null,this.norm_xml=null,this.facs_xml=null,this.lemma=null,this.features=[],this.token=null}).catch(this.showAlert)},editNormalization:function(){this.callCorpusAPI("get-rules",{corpus:"menota",level:"norm"}).then(e=>{this.normRules=e.rules,this.ruleAdded=!1,this.$bvModal.show("modal-edit-norm")}).catch(this.showAlert)},editFacsRules:function(){this.callCorpusAPI("get-rules",{corpus:"menota",level:"facs"}).then(e=>{this.facsRules=e.rules,this.ruleAdded=!1,this.$bvModal.show("modal-edit-facs")}).catch(this.showAlert)},addRule:function(e){let t;this.ruleAdded="in-progress";let s=this.rule_dipl;t="-"==s[0]?"-"==s[s.length-1]?"internal":"suffix":"+"==s[0]?"-"==s[s.length-1]?"non-initial":"suffix":"-"==s[s.length-1]?"prefix":"word",s=s.replace(/^\+|^-|-$/g,""),this.rule_upper&&this.callCorpusAPI("add-rule",{corpus:"menota",level:e,"rule-dipl":s,"rule-upper":this.rule_upper,"rule-type":t}).then(t=>{this.rule_dipl=null,this.rule_upper=null,"norm"==e?this.normRules=t.rules:this.facsRules=t.rules,this.ruleAdded=!0,this.rulesChanged=!0}).catch(this.showAlert)},removeRule:function(e,t,s,o){e.item._rowVariant="danger",this.callCorpusAPI("remove-rule",{corpus:"menota",level:o,"rule-dipl":t,"rule-type":s}).then(e=>{"norm"==o?this.normRules=e.rules:this.facsRules=e.rules,this.rulesChanged=!0}).catch(this.showAlert)}}},Xe=Je,Ye=(s("b320"),Object(d["a"])(Xe,Pe,qe,!1,null,null,null)),Ze=Ye.exports,et=s("a969");o["default"].use(i["a"]),o["default"].use(ie["a"]),o["default"].use(g["a"],{breakpoints:{xs:576,sm:768,md:992,lg:1200,xl:1/0}});var tt={name:"kwicConcordance",components:{kwicToken:Le,tokenDetails:et["a"],parseTable:Ze},mixins:[v["b"]],props:["busy","tabs","hideText"],data:function(){return{edit:!1,focus:!1,hide:!1,canGetFocus:!1,kwicLines:null,currentPage:1,gotoPageNr:null,sortBy:null,sortDesc:!1,tokenContext:{},detailsRow:null,detailsIndex:null,parsedContext:null,annotationCpos:null,annotationValue:null,valueChanged:!1,matchesExpanded:!1,document:document,start:null,interval:null,audioOnly:!1,apiEndpointKorpuskel:Qs,variableValues:[],env:v["a"],allStructures:!0,downloadInProgress:!1}},created:function(){this.$root.refreshKwicConcordance=this.refresh,this.allStructures=!!this.stateStore.structures.find(e=>"_all"==e)},mounted:function(){window.addEventListener("keydown",this.onKeyDown),this.setVariable()},destroyed:function(){window.removeEventListener("keydown",this.onKeyDown)},computed:{project:function(){return this.$route.params.project},detailsMode:function(){return"abncxxx"==this.stateStore.project?"parse":"context"},hasPages:function(){return this.queryStore.queryState.matchSize>this.stateStore.kwicPerPage},size:function(){return this.queryStore.queryState.matchSize},transliterations:function(){var e;let t=null===(e=this.corpusListInfo.languages.find(e=>e.iso==this.stateStore.languageList[0]))||void 0===e?void 0:e.transliterations;return t?[{value:"",text:"None"},...t]:null}},methods:{hideFullText:function(e){var t;if(this.hideText)return this.hideText;let s=this.corpusBagInfo.corpusList.find(t=>t.name==e),o=null===s||void 0===s||null===(t=s.restrictions)||void 0===t?void 0:t.find(e=>"no-fulltext"==e),n=null===s||void 0===s?void 0:s.credentials.find(e=>"corpus-document-export"==e);return o&&!n},onKeyDown:function(){if("TEXTAREA"==document.activeElement.tagName);else if(27==event.keyCode)this.closePopups(),event.preventDefault();else if(40==event.keyCode);else if(event.ctrlKey)switch(event.keyCode){case 13:break;case 32:break;case 37:var e;if(this.currentPage>1)this.currentPage--,null===(e=L()(".kwic-row")[0])||void 0===e||e.focus();break;case 38:break;case 39:var t;if(this.currentPage*this.stateStore.kwicPerPage<this.queryStore.queryState.matchSize)this.currentPage++,null===(t=L()(".kwic-row")[0])||void 0===t||t.focus();break;case 40:var s;if(!this.detailsRow)null===(s=L()(".kwic-row")[0])||void 0===s||s.focus();break;case 83:this.saveTokenContext()}else 40==event.keyCode&&(this.detailsRow||L()(".kwic-row")[0].focus())},gotoPage:function(e){this.currentPage=this.gotoPageNr,e.preventDefault()},onRowClicked:function(e,t){this.getTokenContext(e,t)},tableRefreshed:function(){var e;null===(e=L()(".kwic-row")[0])||void 0===e||e.focus()},showContext:function(){this.$nextTick(()=>this.$router.push({path:"/"+this.project+"/text/"+this.tokenStore.corpus+"/"+(this.tokenContext.avPairs.document||this.tokenContext.avPairs.source||"document")}))},kwicLinesProvider:function(){var e;this.closePopups(),null!==(e=this.corpusBagInfo.tasks)&&void 0!==e&&e.find(e=>e.value==this.stateStore.task)||(this.stateStore.task="A",this.stateStore.showSelectedVarOnly=!1,this.variable="-",this.setVariable());let t=this.callCorpusAPI("fetch-kwic-lines",{start:(this.currentPage-1)*this.stateStore.kwicPerPage,end:this.currentPage*this.stateStore.kwicPerPage-1,"sort-key":this.sortBy,"sort-reversed":this.sortDesc,"show-annotation":this.stateStore.showAnnotations,task:this.stateStore.task,variable:this.stateStore.showSelectedVarOnly?this.variable:"",extended:!0,transliterate:this.stateStore.transliteration||""}).catch(this.showAlert);return t.then(e=>(this.sortBy=null,(null===e||void 0===e?void 0:e.kwicLines)||[])).catch(this.showAlert)},getTokenContext:function(e,t){this.closePopups("getTokenContext"),e._showDetails?e._showDetails=!1:(this.detailsRow&&(this.detailsRow._showDetails=!1,this.detailsRow=null),"parse"==this.detailsMode?(this.parsedContext=null,this.callCorpusAPI("parse-corpus-context",{corpus:e.corpus,cpos:e.cpos,"show-all-readings":!0}).then(s=>{console.log(s),this.parsedContext=s,this.detailsIndex=t,this.detailsRow=e,this.detailsRow._showDetails=!0,this.$nextTick(()=>{L()(".b-table-details")[0].focus()})}).catch(this.showAlert)):(this.tokenStore.corpus=e.corpus,this.tokenStore.tokenCpos=e.match[0].cpos,this.callCorpusAPI("get-token-context",{corpus:e.corpus,"match-id":e.matchId,extended:!0,transliterate:this.stateStore.transliteration||""}).then(s=>{this.tokenContext=s.tokenContext,this.detailsIndex=t,this.detailsRow=e,this.detailsRow._showDetails=!0}).catch(this.showAlert)))},saveTokenContext:function(){this.detailsRow&&"parse"==this.detailsMode&&(this.detailsRow._showDetails=!1,this.detailsRow=null,L()(".kwic-row")[this.detailsIndex].focus())},refresh:function(e){this.annotationCpos=null,this.closePopups("refresh"),this.setVariable(),(!e||e<this.currentPage*this.stateStore.kwicPerPage)&&this.$refs.kwicConcordanceTable.refresh()},randomSort:function(){this.sortBy="_random",this.refresh()},sortingChanged:function(e){let t=e.sortBy.indexOf(".");this.sortBy=t?e.sortBy.substring(t+1):e.sortBy,["match","cpos","word-count","token-count","frequency"].find(e=>e==this.sortBy)&&(this.sortBy="_"+this.sortBy),this.sortDesc=e.sortDesc},toggleAllStructures:function(){this.allStructures?this.stateStore.structures.find(e=>"_all"==e)||this.stateStore.structures.push("_all"):this.stateStore.structures=this.stateStore.structures.filter(e=>"_all"!=e)},updateSettings:function(){this.updateKwicFields(),this.callCorpusAPI("set-parameters",{attributes:this.stateStore.attributes.concat(["document","time-interval"]),structures:this.stateStore.structures.length?this.stateStore.structures:["_none"]}).then(()=>this.$root.refreshKwicConcordance()).catch(this.showAlert)},setVariable:function(){let e=this.corpusBagInfo.corpusList[0];e.variables.length&&this.callCorpusAPI("variable-values",{corpus:e.name,variable:this.stateStore.variable,attribute:"annotation"}).then(e=>{console.log(e),this.variableValues=e.values}).catch(this.showAlert)},getAnnotationValue:function(e){var t,s;return null===(t=e.value)||void 0===t||null===(s=t.find(e=>e.task==this.task))||void 0===s?void 0:s.value},editAnnotation:function(e){this.annotationCpos=e.item.cpos,this.valueChanged=!1,this.annotationValue=this.getAnnotationValue(e)},storeAnnotation:function(e){this.callCorpusAPI("store-annotation",{corpus:e.item.corpus,cpos:e.item.cpos,attribute:"annotation",value:this.annotationValue,mode:"store"}).then(()=>{let t=e.value.find(e=>e.task==this.stateStore.task);t?t.value=this.annotationValue:e.value.push({task:this.stateStore.task,value:this.annotationValue}),this.annotationCpos=null,this.valueChanged=!1}).catch(this.showAlert)},setAnnotationById:function(e){let t=this.variableValues.find(t=>t.id==e);console.log(t),console.log(L()(".kwic-row:focus")[0])},toggleMatchWidth:function(){this.matchesExpanded?(document.documentElement.style.setProperty("--match-width","100em"),this.matchesExpanded=!1):(document.documentElement.style.setProperty("--match-width","10em"),this.matchesExpanded=!0)},canplay:function(){let e=this.$refs.player;this.start&&(e.currentTime=this.start,this.start=null)},pauseAudio:function(){let e=this.$refs.player;this.interval=null,e.pause()},playAudio:function(e){let t=e.item.avPairs.document,s=e.item.corpus,o="https://clarino.uib.no/korpuskel/audio-new/"+s+"/"+t+".mp4",n=e.item.avPairs["time-interval"],a=this.$refs.player;this.start=n.split(":")[0]/1e3,this.interval=n,a.src=o,a.play()},downloadKwic:function(){this.downloadInProgress=!0,this.callCorpusAPI("download-kwic-lines",{corpus:this.tokenStore.corpus}).then(e=>{let t=new Blob([e.data],{type:"text/plain"}),s=document.createElement("a");s.href=URL.createObjectURL(t),s.download="concordance.tsv",s.click(),URL.revokeObjectURL(s.href),this.downloadInProgress=!1}).catch(this.showAlert)}}},st=tt,ot=(s("07ff"),Object(d["a"])(st,ye,Se,!1,null,null,null)),nt=ot.exports,at=function(){var e=this,t=e._self._c;return t("b-container",{attrs:{fluid:"sm",id:"container"}},[t("b-row",[t("b-col",{staticClass:"p-1 mx-2",attrs:{md:"auto"}},[t("b-button",{staticClass:"m-1",attrs:{size:"sm",variant:e.recalculate?"primary":"light"},on:{click:function(t){return e.computeCollocations(!1)}}},[e._v(e._s(e.$t("Show collocations")))])],1),t("b-col",{staticClass:"m-2 p-1",attrs:{md:"auto"}},[t("label",{attrs:{for:"select-coll-att"}},[e._v(e._s(e.$t("Attribute"))+":")])]),t("b-col",{staticClass:"my-1 p-1",attrs:{md:"auto"}},[t("b-form-select",{attrs:{size:"sm",id:"select-coll-att",options:e.corpusBagInfo.attributes.filter(e=>"cpos"==e.scope),"value-field":"name","text-field":"name"},on:{input:function(t){return e.computeCollocations(!0)}},model:{value:e.attribute,callback:function(t){e.attribute=t},expression:"attribute"}})],1),t("b-col",{staticClass:"m-2 p-1",attrs:{md:"auto"}},[t("b-form-checkbox",{attrs:{value:!0,"unchecked-value":!1},on:{input:function(t){return e.computeCollocations(!0)}},model:{value:e.ignoreCase,callback:function(t){e.ignoreCase=t},expression:"ignoreCase"}},[e._v(" "+e._s(e.$t("ignore case")))])],1),t("b-col",{staticClass:"m-2 p-1",attrs:{md:"auto"}},[t("label",{attrs:{for:"select-left-range"}},[e._v(e._s(e.$t("Left context"))+":")])]),t("b-col",{staticClass:"my-1 p-1",attrs:{md:"auto"}},[t("b-form-select",{attrs:{size:"sm",id:"select-left-range",options:[0,1,2,3,4,5,6]},on:{input:function(t){return e.computeCollocations(!0)}},model:{value:e.leftRange,callback:function(t){e.leftRange=t},expression:"leftRange"}})],1),t("b-col",{staticClass:"m-2 p-1",attrs:{md:"auto"}},[t("label",{attrs:{for:"select-right-range"}},[e._v(e._s(e.$t("Right context"))+":")])]),t("b-col",{staticClass:"my-1 p-1",attrs:{md:"auto"}},[t("b-form-select",{attrs:{size:"sm",id:"select-right-range",options:[0,1,2,3,4,5,6]},on:{input:function(t){return e.computeCollocations(!0)}},model:{value:e.rightRange,callback:function(t){e.rightRange=t},expression:"rightRange"}})],1),t("b-col",{staticClass:"m-2 p-1",attrs:{md:"auto"}},[t("label",{attrs:{for:"input-threshold-coll"}},[e._v(e._s(e.$t("Threshold"))+":")])]),t("b-col",{staticClass:"my-1 p-1",attrs:{md:"auto"}},[t("b-form-input",{staticClass:"ml-2",staticStyle:{width:"4em"},attrs:{size:"sm",id:"input-threshold-coll",autocomplete:"off",autocorrect:"off"},on:{blur:function(t){return e.computeCollocations(!0)},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.computeCollocations(!0))}},model:{value:e.threshold,callback:function(t){e.threshold=e._n(t)},expression:"threshold"}})],1),t("b-col",{staticClass:"m-2 p-1",attrs:{md:"auto"}},[t("label",{attrs:{for:"select-sort-key"}},[e._v(e._s(e.$t("Sort by"))+":")])]),t("b-col",{staticClass:"my-1 p-1",attrs:{md:"auto"}},[t("b-form-select",{attrs:{size:"sm",id:"select-sort-key",options:e.sortKeyOptions},on:{input:function(t){return e.computeCollocations(!1)}},model:{value:e.sortBy,callback:function(t){e.sortBy=t},expression:"sortBy"}})],1)],1),e.queryStore.collocationsState.collocationsSize>0?[t("b-row",{attrs:{"align-hxx":"between"}},[t("b-col",{staticClass:"p-1 ml-3",attrs:{cols:"auto",role:"status"}},[e._v(" "+e._s(e.queryStore.collocationsState.collocationsSize<0?0:e.queryStore.collocationsState.collocationsSize)+" "+e._s(e.$t("collocations"))+". ")]),e.currentPage&&!e.busy?t("b-col",{attrs:{cols:"auto"}},[t("b-pagination",{attrs:{size:"sm","total-rows":e.queryStore.collocationsState.collocationsSize,"per-page":e.perPage,"aria-controls":"kwic","first-number":"","last-number":""},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}})],1):e._e(),e.currentPage&&!e.busy?t("b-col",{attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("label",{attrs:{for:"input-coll-go-to-page"}},[e._v(e._s(e.$t("Go to page"))+":")]),t("b-form-input",{staticClass:"ml-2",staticStyle:{width:"4em"},attrs:{size:"sm",id:"input-coll-go-to-page",autocomplete:"off",autocorrect:"off"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.gotoPage.apply(null,arguments)}},model:{value:e.gotoPageNr,callback:function(t){e.gotoPageNr=e._n(t)},expression:"gotoPageNr"}})],1)],1):e._e(),"xs"==e.$mq||e.busy?e._e():t("b-col",{attrs:{cols:"auto"}},[t("b-button",{staticClass:"mx-3",attrs:{href:e.apiEndpointKorpuskel+"/collocations.tsv?session-id="+e.sessionStore.sessionId+"&attribute="+e.attribute+"&sortKey="+e.sortBy+"&show-freq=true&show-rel-freq=true&show-ll=true&show-mi=true&show-coll-freq=true&show-contingency=true",size:"sm",variant:"light"}},[t("nobr",[t("b-icon-download"),e._v(" "),"sm"!=e.$mq?t("span",[e._v(e._s(e.$t("Download")))]):e._e()],1)],1)],1)],1),e.busy?t("b-row",{staticClass:"p-5"},[t("b-col",{attrs:{md:"auto"}},[t("b-spinner",{attrs:{label:"Loading..."}})],1)],1):t("b-row",[t("b-container",{staticClass:"px-0",attrs:{fluid:"sm"}},[t("small",[e._v(" "+e._s(e.$t("See"))+" "),t("router-link",{attrs:{to:"/"+e.project+"/documentation/Collocations"}},[e._v(" "+e._s(e.$t("Collocations"))+" ")]),e._v(" "+e._s(e.$t("for an in-depth explanation"))+". ")],1),t("b-table",{ref:"collocationsTable",attrs:{responsive:"","zzsort-icon-left":"",unselectable:"",small:"",hover:"",id:"collocationsTable","thead-class":"small","tbody-tr-class":"kwic-row",fields:e._f("mq")(e.$mq,{xs:e.fields,md:e.fields}),items:e.collocationsProvider,"sort-by":e.sortBy,"sort-desc":e.sortDesc,"sort-direction":"last","per-page":e.perPage,"current-page":e.currentPage,busy:e.busy},on:{"sort-changed":e.sortingChanged,"update:sortBy":function(t){e.sortBy=t},"update:sort-by":function(t){e.sortBy=t},"update:sortDesc":function(t){e.sortDesc=t},"update:sort-desc":function(t){e.sortDesc=t},"row-clicked":e.onRowClicked},scopedSlots:e._u([{key:"cell(collocation)",fn:function(s){return[t("div",{staticClass:"attribute-value link nobr",on:{click:function(t){return e.setChildQuery(s.item.id)}}},e._l(s.value,(function(s,o){return t("span",{key:o},[s.target?t("span",{staticClass:"collocation-target"},[e._v(" "+e._s(s.target)+" ")]):t("span",[e._v(" "+e._s(s)+" ")])])})),0)]}},{key:"cell(count)",fn:function(s){return[t("div",{staticClass:"attribute-value"},[t("nobr",["xs"!=e.$mq?t("span",[s.rowSelected?[t("span",{attrs:{"aria-hidden":"true"}},[e._v("✓")]),t("span",{staticClass:"sr-only"},[e._v("Selected")])]:[t("span",{attrs:{"aria-hidden":"true"}},[e._v(" ")]),t("span",{staticClass:"sr-only"},[e._v("Not selected")])],e._v(" "+e._s(s.value)+" ")],2):e._e(),t("span",{on:{click:function(t){return t.stopPropagation(),e.getTokenContext(s.item,s.index)}}},[s.item._showDetails?t("b-icon-chevron-down"):t("b-icon-chevron-up")],1)])],1)]}}],null,!1,4294569502)})],1)],1)]:e._e()],2)},it=[];o["default"].use(i["a"]),o["default"].use(ie["a"]),o["default"].use(g["a"],{breakpoints:{xs:576,sm:768,md:992,lg:1200,xl:1/0}});const rt=[{key:"collocation",label:"Value",tdClass:""},{key:"frequency",label:"Frequency",tdClass:"number-cell",thClass:"number-cell",sortable:!0},{key:"collocate-frequency",label:"Collocate freq.",tdClass:"number-cell",thClass:"number-cell",sortable:!0},{key:"rel-frequency",label:"Relative",tdClass:"number-cell",thClass:"number-cell",sortable:!0},{key:"log-likelihood",label:"Log likelihood",tdClass:"number-cell",thClass:"number-cell",sortable:!0},{key:"mutual-information",label:"Mutual information",tdClass:"number-cell",thClass:"number-cell",sortable:!0},{key:"mi-freq",label:"MI * log(Freq)",tdClass:"number-cell",thClass:"number-cell",sortable:!0}];var lt={name:"collocationList",mixins:[v["b"],q],props:["tabs"],data:function(){return{edit:!1,focus:!1,hide:!1,busy:!1,parametersChanged:!0,canGetFocus:!1,fields:rt,currentPage:null,perPage:30,gotoPageNr:null,attribute:"word",leftRange:1,rightRange:1,sortKeyOptions:[{value:"frequency",text:this.$t("Frequency")},{value:"rel-frequency",text:this.$t("Rel. frequency")},{value:"mutual-information",text:this.$t("Mutual information")},{value:"log-likelihood",text:this.$t("Log likelihood")},{value:"mi-freq",text:this.$t("MI * log(Freq)")}],sortBy:"mi-freq",sortDesc:!1,ignoreCase:!1,threshold:null,tokenContext:{},detailsRow:null,detailsIndex:null,parsedContext:null,apiEndpointKorpuskel:Qs}},mounted:function(){window.addEventListener("keydown",this.onKeyDown)},destroyed:function(){window.removeEventListener("keydown",this.onKeyDown)},computed:{project:function(){return console.log("project: "+this.$route.params.project),this.$route.params.project},detailsMode:function(){return"abnc"==this.project?"parse":"context"},recalculate:function(){return this.parametersChanged||-1==this.queryStore.collocationsState.collocationsSize}},methods:{onKeyDown:function(){if("TEXTAREA"==document.activeElement.tagName);else if(event.ctrlKey)switch(event.keyCode){case 37:this.currentPage>1&&this.currentPage--;break;case 39:this.currentPage*this.perPage<this.queryStore.collocationsState.collocationsSize&&this.currentPage++}},setChanged:function(){this.parametersChanged=!0},gotoPage:function(e){this.currentPage=this.gotoPageNr,e.preventDefault()},onRowClicked:function(e,t){console.log("row"),console.log(e),console.log(t)},showContext:function(e){this.tokenStore.corpus=e.item.corpus,this.tokenStore.tokenCpos=e.item.cpos,this.tabs.tabIndex=3},computeCollocations:function(e){if(["query-done","query-halted","query-stopped"].indexOf(this.queryStore.queryState.state)>-1){this.busy=!0;let t=e||"idle"==this.queryStore.collocationsState.state;console.log("recalculate: "+t),this.callCorpusAPI("collocations",{attribute:this.attribute,"left-range":this.leftRange,"right-range":this.rightRange,"sort-key":this.sortBy,threshold:this.threshold,recalculate:t,"ignore-case":this.ignoreCase}).then(()=>this.poll()).catch(this.showAlert)}},poll:function(){this.callCorpusAPI("collocations-state").then(e=>{"idle"==e.state?this.busy=!1:"done"==e.state?(this.parametersChanged=!1,this.queryStore.collocationsState=e,this.currentPage=null,this.$nextTick(()=>{this.currentPage=1,this.refresh(),this.busy=!1})):(this.queryStore.collocationsState=e,setTimeout(this.poll,100))}).catch(this.showAlert)},collocationsProvider:function(){this.closePopups("collocationsProvider"),console.log("fetch");let e=this.callCorpusAPI("fetch-collocations",{start:((this.currentPage||1)-1)*this.perPage,end:this.currentPage*this.perPage-1,"sort-key":this.sortBy,"sort-reversed":this.sortDesc}).catch(this.showAlert);return e.then(e=>e&&e.collocations||[]).catch(this.showAlert)},setChildQuery:function(e){this.callCorpusAPI("set-child-query",{subset:"collocations","collocation-id":e}).then(e=>{this.queryStore.queryState=e,this.$root.$emit("bv::refresh::table","kwicConcordanceTable"),this.tabs.tabIndex=0,this.$nextTick(()=>{this.invalidateTables()})}).catch(this.showAlert)},getTokenContext:function(e,t){console.log("getTokenContext"),console.log(e),this.closePopups("getTokenContext"),console.log("detailsMode: "+this.detailsMode),e._showDetails?e._showDetails=!1:(this.detailsRow&&(this.detailsRow._showDetails=!1,this.detailsRow=null),"parse"==this.detailsMode?(console.log("parse-corpus-context"),this.parsedContext=null,this.callCorpusAPI("parse-corpus-context",{corpus:e.corpus,cpos:e.cpos,"show-all-readings":!0}).then(s=>{this.parsedContext=s,console.log(s),this.detailsIndex=t,this.detailsRow=e,this.detailsRow._showDetails=!0,this.$nextTick(()=>{L()(".b-table-details")[0].focus()})}).catch(this.showAlert)):this.callCorpusAPI("get-token-context",{corpus:e.corpus,"match-id":e.matchId}).then(s=>{this.tokenContext=s.tokenContext,this.detailsIndex=t,this.detailsRow=e,this.detailsRow._showDetails=!0}).catch(this.showAlert))},saveTokenContext:function(){this.detailsRow&&"parse"==this.detailsMode&&(this.detailsRow._showDetails=!1,this.detailsRow=null,L()(".kwic-row")[this.detailsIndex].focus())},refresh:function(e){var t;(this.closePopups("refresh"),!e||e<this.currentPage*this.perPage)&&(console.log("refreshing!"),null===(t=this.$refs.collocationsTable)||void 0===t||t.refresh())},sortingChanged:function(e){this.sortKey=e.sortBy,this.sortDesc=!1}}},ct=lt,ut=(s("4b1d"),Object(d["a"])(ct,at,it,!1,null,null,null)),dt=ut.exports,pt=function(){var e=this,t=e._self._c;return t("b-container",{attrs:{fluid:"sm",id:"container"}},[t("div",{class:e.hideFields?"":"distribution-box"},[t("b-row",[t("b-col",{staticClass:"p-1 mx-2",attrs:{md:"auto"}},[t("b-form",{attrs:{inline:""}},[e.hideFields?e._e():t("b-button",{staticClass:"m-1",attrs:{size:"sm",variant:e.recalculate?"primary":"light"},on:{click:e.computeDistribution}},[e._v(" "+e._s(e.$t("Calculate distribution"))+" ")]),e.hideFields?t("b-button",{staticClass:"ml-2",attrs:{size:"sm",xvariant:"hideFields ? 'primary' : 'light'",variant:"light"},on:{click:function(t){e.hideFields=!1}}},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.hideFields,expression:"hideFields"}]},[e._v(" "+e._s(e.$t("Show parameters"))+" ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.hideFields,expression:"!hideFields"}]},[t("b-icon-x"),e._v(" "+e._s(e.$t("Hide"))+" ")],1)]):e._e(),e.hideFields?e._e():[t("label",{staticClass:"ml-3 mr-sm-2",attrs:{for:"dist-type"}},[e._v(" "+e._s(e.$t("Type"))+": ")]),t("b-form-select",{staticClass:"mb-2 mr-sm-2 mb-sm-0",attrs:{size:"sm",id:"dist-type",options:e.distOptions},on:{input:e.changed},model:{value:e.params.distributionType,callback:function(t){e.$set(e.params,"distributionType",t)},expression:"params.distributionType"}}),t("b-form-checkbox",{staticClass:"mb-2 mr-sm-2 mb-sm-0",on:{input:e.changed},model:{value:e.params.includeStructures,callback:function(t){e.$set(e.params,"includeStructures",t)},expression:"params.includeStructures"}},[e._v(" "+e._s(e.$t("include structures"))+" ")])]],2)],1),t("b-col",{directives:[{name:"show",rawName:"v-show",value:!e.hideFields,expression:"!hideFields"}],staticClass:"p-1 mx-2 ml-auto",attrs:{md:"auto"}},[t("b-button",{staticClass:"m-1",attrs:{size:"sm",variant:"light"},on:{click:e.reset}},[e._v(" "+e._s(e.$t("Reset"))+" ")]),t("b-button",{staticClass:"ml-2",attrs:{size:"sm",xvariant:"hideFields ? 'primary' : 'light'",variant:"light"},on:{click:function(t){e.hideFields=!e.hideFields}}},[t("b-icon-x"),e._v(" "+e._s(e.$t("Hide"))+" ")],1)],1)],1),t("b-row",{directives:[{name:"show",rawName:"v-show",value:!e.hideFields,expression:"!hideFields"}]},[t("b-col",[t("b-form",[t("label",{staticClass:"mr-sm-2",attrs:{for:"x-att"}},[e._v(" "+e._s(e.$t("Attribute"))+": ")]),t("b-form-select",{staticClass:"mb-2 mr-sm-2 mb-sm-0",attrs:{size:"sm",id:"x-att",options:e.corpusBagInfo.attributes,"value-field":"name","text-field":"name"},on:{input:e.changed},model:{value:e.params.xAtt,callback:function(t){e.$set(e.params,"xAtt",t)},expression:"params.xAtt"}}),t("label",{staticClass:"mb-2 mr-sm-2 mb-sm-0",attrs:{for:"x-filter"}},[e._v(e._s(e.$t("filter"))+":")]),t("b-form-input",{staticClass:"mb-2 mr-sm-2 mb-sm-0",attrs:{id:"x-filter"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.computeDistribution.apply(null,arguments))},input:e.changed},model:{value:e.params.xFilter,callback:function(t){e.$set(e.params,"xFilter",t)},expression:"params.xFilter"}}),t("b-form-checkbox",{staticClass:"mb-2 mr-sm-2 mb-sm-0",on:{input:e.changed},model:{value:e.params.xIgnoreCase,callback:function(t){e.$set(e.params,"xIgnoreCase",t)},expression:"params.xIgnoreCase"}},[e._v(" "+e._s(e.$t("ignore case"))+" ")])],1)],1),t("b-col",[t("b-form",[t("label",{staticClass:"mr-sm-2",attrs:{for:"y0-att"}},[e._v(" "+e._s(e.$t("Relative to"))+": ")]),t("b-form-select",{staticClass:"mb-2 mr-sm-2 mb-sm-0",attrs:{size:"sm",id:"y0-att",options:e.yAttributes,"value-field":"name","text-field":"name"},on:{input:e.changed},model:{value:e.params.y0Att,callback:function(t){e.$set(e.params,"y0Att",t)},expression:"params.y0Att"}}),t("label",{staticClass:"mb-2 mr-sm-2 mb-sm-0",attrs:{for:"y0-filter"}},[e._v(e._s(e.$t("filter"))+":")]),t("b-form-input",{staticClass:"mb-2 mr-sm-2 mb-sm-0",attrs:{id:"y0-filter"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.computeDistribution.apply(null,arguments))},input:e.changed},model:{value:e.params.y0Filter,callback:function(t){e.$set(e.params,"y0Filter",t)},expression:"params.y0Filter"}}),t("b-form-checkbox",{staticClass:"mb-2 mr-sm-2 mb-sm-0",on:{input:e.changed},model:{value:e.params.y0IgnoreCase,callback:function(t){e.$set(e.params,"y0IgnoreCase",t)},expression:"params.y0IgnoreCase"}},[e._v(" "+e._s(e.$t("ignore case"))+" ")])],1)],1),t("b-col",[t("b-form",[t("label",{staticClass:"mr-sm-2",attrs:{for:"y1-att"}},[e._v(" "+e._s(e.$t("Group by"))+": ")]),t("b-form-select",{staticClass:"mb-2 mr-sm-2 mb-sm-0",attrs:{size:"sm",id:"y1-att",options:["",...e.yAttributes],"value-field":"name","text-field":"name"},on:{input:e.changed},model:{value:e.params.y1Att,callback:function(t){e.$set(e.params,"y1Att",t)},expression:"params.y1Att"}}),t("label",{staticClass:"mb-2 mr-sm-2 mb-sm-0",attrs:{for:"y1-filter"}},[e._v(e._s(e.$t("filter"))+":")]),t("b-form-input",{staticClass:"mb-2 mr-sm-2 mb-sm-0",attrs:{id:"y1-filter"},on:{input:e.changed,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.computeDistribution.apply(null,arguments))}},model:{value:e.params.y1Filter,callback:function(t){e.$set(e.params,"y1Filter",t)},expression:"params.y1Filter"}}),t("b-form-checkbox",{staticClass:"mb-2 mr-sm-2 mb-sm-0",on:{input:e.changed},model:{value:e.params.y1IgnoreCase,callback:function(t){e.$set(e.params,"y1IgnoreCase",t)},expression:"params.y1IgnoreCase"}},[e._v(" "+e._s(e.$t("ignore case"))+" ")])],1)],1),t("b-col",[t("b-form",[t("label",{staticClass:"mr-sm-2",attrs:{for:"y2-att"}},[e._v(" … "+e._s(e.$t("and"))+": ")]),t("b-form-select",{staticClass:"mb-2 mr-sm-2 mb-sm-0",attrs:{size:"sm",id:"y2-att",options:["",...e.yAttributes],"value-field":"name","text-field":"name"},on:{input:e.changed},model:{value:e.params.y2Att,callback:function(t){e.$set(e.params,"y2Att",t)},expression:"params.y2Att"}}),t("label",{staticClass:"mb-2 mr-sm-2 mb-sm-0",attrs:{for:"y2-filter"}},[e._v(e._s(e.$t("filter"))+":")]),t("b-form-input",{staticClass:"mb-2 mr-sm-2 mb-sm-0",attrs:{id:"y2-filter"},on:{input:e.changed,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.computeDistribution.apply(null,arguments))}},model:{value:e.params.y2Filter,callback:function(t){e.$set(e.params,"y2Filter",t)},expression:"params.y2Filter"}}),t("b-form-checkbox",{staticClass:"mb-2 mr-sm-2 mb-sm-0",on:{input:e.changed},model:{value:e.params.y2IgnoreCase,callback:function(t){e.$set(e.params,"y2IgnoreCase",t)},expression:"params.y2IgnoreCase"}},[e._v(" "+e._s(e.$t("ignore case"))+" ")])],1)],1)],1)],1),e.busy?t("b-row",{staticClass:"p-5"},[t("b-col",{attrs:{cols:"2"}},[t("div",{staticClass:"p-2"},[e._v("Calculating…")]),t("b-progress",{attrs:{value:e.queryStore.distributionState.progress,max:1,"show-progress":"",animated:""}}),t("b-button",{staticClass:"m-1",attrs:{size:"sm",variant:"light"},on:{click:function(t){e.stop=!0,e.busy=!1}}},[e._v(" Stop ")])],1)],1):e._e(),e.queryStore.distributionState.distributionSize>0?[t("b-row",{attrs:{"align-hxx":"between"}},[e.hasPages?t("b-col",{staticClass:"py-3 m-1",attrs:{cols:"auto"}},[e._v(" Page: ")]):e._e(),e.hasPages?t("b-col",{staticClass:"p-3",attrs:{cols:"auto"}},[t("b-pagination",{attrs:{size:"sm","total-rows":e.queryStore.distributionState.distributionSize,"per-page":e.perPage,"first-number":"","last-number":""},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}})],1):e._e(),e.hasXPages?t("b-col",{staticClass:"py-3 m-1",attrs:{cols:"auto"}},[e._v(" Column: ")]):e._e(),e.hasXPages?t("b-col",{staticClass:"p-3",attrs:{cols:"auto"}},[t("b-pagination",{attrs:{size:"sm","total-rows":e.queryStore.distributionState.distributionXSize,"per-page":e.perXPage,"first-number":"","last-number":""},on:{input:e.refresh},model:{value:e.currentXPage,callback:function(t){e.currentXPage=t},expression:"currentXPage"}})],1):e._e(),"xs"==e.$mq||e.busy?e._e():t("b-col",{staticClass:"p-3 m-1",attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("label",{staticClass:"p-2"},[e._v(" "+e._s(e.$t("Show"))+": ")]),t("b-form-checkbox",{staticClass:"m-3",model:{value:e.params.percentages,callback:function(t){e.$set(e.params,"percentages",t)},expression:"params.percentages"}},[e._v(" "+e._s(e.$t("percentages"))+" ")]),t("b-form-checkbox",{staticClass:"m-3",model:{value:e.params.absoluteBars,callback:function(t){e.$set(e.params,"absoluteBars",t)},expression:"params.absoluteBars"}},[e._v(" "+e._s(e.$t("absolute bars"))+" ")]),t("b-form-checkbox",{staticClass:"m-3",model:{value:e.params.relativeBars,callback:function(t){e.$set(e.params,"relativeBars",t)},expression:"params.relativeBars"}},[e._v(" "+e._s(e.$t("relative bars"))+" ")]),t("label",{staticClass:"m-3",attrs:{for:"sort-mode"}},[e._v(" "+e._s(e.$t("Sort column by"))+": ")]),t("b-form-select",{staticClass:"mb-2 mr-sm-2 mb-sm-0",attrs:{size:"sm",id:"sort-mode",options:["absolute","relative/row","relative"]},on:{input:e.refresh},model:{value:e.sortMode,callback:function(t){e.sortMode=t},expression:"sortMode"}}),e._v(" | "),t("b-button",{staticClass:"mx-3",attrs:{href:e.apiEndpointKorpuskel+"distribution.tsv?session-id="+e.sessionStore.sessionId+"&print-info=true&mode="+e.params.downloadMode,size:"sm",variant:"light"}},[t("nobr",[t("b-icon-download"),e._v(" "),"sm"!=e.$mq?t("span",[e._v(e._s(e.$t("Download")))]):e._e()],1)],1),e._v(" "+e._s(e.$t("include"))+": "),t("b-form-radio-group",{staticClass:"mb-2 mr-sm-2 mb-sm-0 ml-2",attrs:{options:e.downloadModes},on:{input:e.updateParams},model:{value:e.params.downloadMode,callback:function(t){e.$set(e.params,"downloadMode",t)},expression:"params.downloadMode"}})],1)],1)],1),t("b-row",{attrs:{"align-hxx":"between"}},[t("b-col",{staticClass:"pb-3 mx-1",attrs:{cols:"auto"}},[t("small",{staticClass:"text-muted"},[e._v(" "+e._s(e.$t("Numbers in black are absolute counts"))+". "+e._s(e.$t("Percentages in green are unweighted means of group percentages"))+". "+e._s(e.$t("Percentages in red are distributions of absolute counts inside a row"))+"."),t("br"),e._v(" "+e._s(e.$t("See"))+" "),t("router-link",{attrs:{to:"/"+e.project+"/documentation/Distribution_and_cooccurrence_statistics"}},[e._v(" "+e._s(e.$t("Distribution and Cooccurrence statistics"))+" ")]),e._v(" "+e._s(e.$t("for an in-depth explanation"))+". ")],1)])],1),t("b-row",[t("b-container",{staticClass:"px-0",attrs:{fluid:"sm"}},[t("b-table",{ref:"distributionTable",attrs:{responsive:"","sort-icon-left":"",small:"",bordered:"",xstriped:"","xxhead-variant":"dark",id:"distributionTable","thead-class":"small","tbody-tr-class":"kwic-row",fields:e._f("mq")(e.$mq,{xs:e.fields,md:e.fields}),items:e.distributionProvider,"per-page":e.perPage,"current-page":e.currentPage,busy:e.busy},on:{"sort-changed":e.sortingChanged,"row-clicked":e.onRowClicked},scopedSlots:e._u([{key:"head(sum)",fn:function(){return[e._v(" Sum ")]},proxy:!0},{key:"head()",fn:function(s){return[t("div",{staticClass:"text-center x-value",on:{click:function(t){return e.sortByXId(s.field.id)}}},[s.field.values?e._e():t("span",{staticClass:"font-italic"},[e._v(" "+e._s(s.field.label)+" ")]),e._l(s.field.values,(function(s,o){return t("span",{key:o,staticClass:"comma font-weight-bold"},[e._v(" "+e._s(s||"-")+" ")])}))],2)]}},{key:"cell()",fn:function(s){return[t("div",{staticStyle:{display:"flex","justify-content":"space-between","max-width":"5em"}},[s.value.abs||s.value.frac?t("div",{staticStyle:{display:"flex","justify-content":"space-start"}},[e.params.absoluteBars&&s.value.abs?t("svg",{attrs:{height:"40",width:e.params.relativeBars?6:10}},[t("line",{staticStyle:{stroke:"lightgray","stroke-width":"10"},attrs:{x1:"0",y1:0,x2:"0",y2:40-40*s.value.abs}}),t("line",{staticStyle:{stroke:"black","stroke-width":"10"},attrs:{x1:"0",y1:40-40*s.value.abs,x2:"0",y2:40}})]):e._e(),e.params.relativeBars&&s.value.frac?t("svg",{attrs:{height:"40",width:"10"}},[t("line",{staticStyle:{stroke:"lightgray","stroke-width":"10"},attrs:{x1:"0",y1:0,x2:"0",y2:40-40*s.value.frac}}),t("line",{staticStyle:{stroke:"rgb(255,0,0)","stroke-width":"10"},attrs:{x1:"0",y1:40-40*s.value.frac,x2:"0",y2:40}})]):e._e()]):e._e(),t("div",{staticStyle:{"flex-grow":"1"}},[s.value.value?t("div",[t("div",[t("span",{staticClass:"font-weight-bold left"},[e._v(" "+e._s(s.value.value)+" ")])]),s.value.total&&e.params.percentages?t("div",{staticStyle:{"text-align":"right"}},[t("small",{staticClass:"rel",attrs:{title:"total count of "+(e.params.includeStructures?"tokens":"words")+" assuming this value in the corpus/corpora"}},[e._v(" "+e._s(e.$n(s.value.total)))])]):e._e()]):t("div",{staticClass:"distribution-cell right",on:{click:function(t){return e.setChildQuery(s.value.id)}}},[s.value?t("span",[e._v(e._s(s.value.count)+" "),s.value.rel&&e.params.percentages?t("small",{staticClass:"rel"},[t("br"),e._v(e._s(e.$n(1e6*s.value.rel))+" ")]):e._e(),s.value.frac&&e.params.percentages?t("small",{staticClass:"fraction"},[t("br"),e._v(e._s(e.$n(100*s.value.frac))+"% ")]):e._e(),s.value.groupMean&&e.params.percentages?t("small",{staticClass:"group-mean"},[t("br"),e._v(e._s(e.$n(100*s.value.groupMean))+"% ")]):e._e()]):e._e()])])])]}}],null,!1,2527365948)})],1)],1)]:e._e()],2)},ht=[];o["default"].use(i["a"]),o["default"].use(ie["a"]),o["default"].use(g["a"],{breakpoints:{xs:576,sm:768,md:992,lg:1200,xl:1/0}});const mt={distributionType:"absolute",includeStructures:!1,xAtt:"word",y0Att:"",y1Att:"",y2Att:"",xFilter:"",y0Filter:"",y1Filter:"",y2Filter:"",xIgnoreCase:!1,y0IgnoreCase:!1,y1IgnoreCase:!1,y2IgnoreCase:!1,percentages:!1,relativeBars:!0,absoluteBars:!0,downloadMode:"abs"};var ft={name:"distributionTable",components:{},mixins:[v["b"],q],props:["tabs"],data:function(){return{edit:!1,focus:!1,hide:!1,busy:!1,stop:!1,parametersChanged:!0,hideFields:!1,canGetFocus:!1,fields:[],sortXId:null,currentPage:null,perPage:100,currentXPage:1,perXPage:40,gotoPageNr:null,params:{},sortMode:"absolute",sortDesc:!1,tokenContext:{},detailsRow:null,detailsIndex:null,downloadModes:["abs","rel","frac","group","count"],apiEndpointKorpuskel:Qs,distOptions:[{value:"absolute",text:this.$t("absolute")},{value:"relative",text:this.$t("relative")}]}},mounted:function(){window.addEventListener("keydown",this.onKeyDown),this.params=this.stateStore.distributionParameters||{...mt}},destroyed:function(){window.removeEventListener("keydown",this.onKeyDown)},computed:{...Object(k["e"])(v["e"],v["d"]),project:function(){return this.$route.params.project},hasPages:function(){return this.currentPage&&!this.busy&&this.queryStore.distributionState.distributionSize>=this.perPage},hasXPages:function(){return this.currentPage&&!this.busy&&this.queryStore.distributionState.distributionXSize>=this.perXPage},yAttributes:function(){return"relative"==this.params.distributionType?this.corpusBagInfo.attributes.filter(e=>"cpos"!=e.scope):this.corpusBagInfo.attributes},recalculate:function(){return this.parametersChanged||-1==this.queryStore.distributionState.distributionSize}},methods:{onKeyDown:function(){var e;if("TEXTAREA"==(null===(e=document.activeElement)||void 0===e?void 0:e.tagName));else if(event.ctrlKey)switch(event.keyCode){case 37:this.currentXPage>1&&this.currentXPage--;break;case 39:this.currentXPage*this.perXPage<this.queryStore.distributionState.distributionXSize&&this.currentXPage++;break;case 38:this.currentPage>1&&this.currentPage--;break;case 40:this.currentPage*this.perPage<this.queryStore.distributionState.distributionSize&&this.currentPage++}},changed:function(){this.parametersChanged=!0},gotoPage:function(e){this.currentPage=this.gotoPageNr,e.preventDefault()},onRowClicked:function(){},showContext:function(e){this.tokenStore.corpus=e.item.corpus,this.tokenStore.tokenCpos=e.item.cpos,this.tabs.tabIndex=3},computeDistribution:function(){var e,t;this.dismissAlert(),this.busy=!0;let s=this.params.y0Att,o=this.params.y0Filter,n=this.params.y0IgnoreCase;null!==(e=this.params.y1Att)&&void 0!==e&&e.length&&(s+=","+this.params.y1Att,o+=","+(this.params.y1Filter||""),n+=","+(this.params.y1IgnoreCase||"")),null!==(t=this.params.y2Att)&&void 0!==t&&t.length&&(s+=","+this.params.y2Att,o+=","+(this.params.y2Filter||""),n+=","+(this.params.y2IgnoreCase||"")),this.updateParams(),this.sortXId=null,this.callCorpusAPI("distribution",{type:this.params.distributionType,"x-atts":this.params.xAtt,"y-atts":s,"x-filters":this.params.xFilter||"","y-filters":o||"","x-ignore-case":this.params.xIgnoreCase||"","y-ignore-case":n||"","include-struct":this.params.includeStructures}).then(()=>this.poll()).catch(this.showAlert)},poll:function(){this.callCorpusAPI("distribution-state",{"x-start":0,"x-end":this.perXPage-1}).then(e=>{e&&("idle"==e.state?this.busy=!1:"done"==e.state?(this.queryStore.distributionState=e,this.currentPage=null,this.fields=e.fields,this.parametersChanged=!1,this.$nextTick(()=>{this.currentPage=1,this.currentXPage=1,this.refresh(),this.busy=!1})):this.stop?this.stop=!1:(this.queryStore.distributionState=e,setTimeout(this.poll,100)))}).catch(this.showAlert)},distributionProvider:function(){this.dismissAlert(),this.closePopups("distributionProvider");let e=this.callCorpusAPI("fetch-distribution",{start:((this.currentPage||1)-1)*this.perPage,end:this.currentPage*this.perPage-1,"x-start":((this.currentXPage||1)-1)*this.perXPage,"x-end":this.currentXPage*this.perXPage-1,"sort-x-id":this.sortXId,"sort-mode":this.sortMode}).catch(this.showAlert);return e.then(e=>(console.log("r:",e),this.queryStore.distributionState=e,this.fields=e.fields,e&&e.distribution||[])).catch(this.showAlert)},reset:function(){this.params={...mt}},updateParams:function(){this.stateStore.distributionParameters=this.params},sortByXId:function(e){this.sortXId=e,this.refresh()},setChildQuery:function(e){this.dismissAlert(),e&&this.callCorpusAPI("set-child-query",{subset:"distribution","matches-ids":e}).then(e=>{this.queryStore.queryState=e,this.$root.$emit("bv::refresh::table","kwicConcordanceTable"),this.tabs.tabIndex=0,this.$nextTick(()=>{this.invalidateTables()})}).catch(this.showAlert)},refresh:function(){var e;this.closePopups("refresh"),null===(e=this.$refs.distributionTable)||void 0===e||e.refresh()},sortingChanged:function(e){this.sortBy=e.sortBy,["match","cpos","word-count","token-count","frequency"].find(e=>e==this.sortBy)&&(this.sortBy="_"+this.sortBy),this.sortDesc=e.sortDesc}}},gt=ft,bt=(s("b4a2"),Object(d["a"])(gt,pt,ht,!1,null,null,null)),vt=bt.exports,kt=function(){var e=this,t=e._self._c;return t("b-container",{attrs:{fluid:"sm"}},[e.busy&&e.progress>0?t("b-row",{staticClass:"p-5"},[t("b-col",{attrs:{cols:"2"}},[t("div",{staticClass:"p-2",attrs:{role:"status"}},[e._v("Calculating…")]),t("b-progress",{attrs:{value:e.progress,max:1,"show-progress":""}})],1)],1):e._e(),e.busy?e._e():t("b-row",[t("b-col",{staticClass:"p-1",attrs:{md:"auto",role:"status"}},[e._v(" "+e._s(e.queryStore.queryState.matchSize)+" "+e._s(e.$t("matches"))+", "),e.filteredWordListSize==e.wordListSize?t("span",[e._v(" "+e._s(e.wordListSize<0?0:e.wordListSize)+" "+e._s(1==e.wordListSize?e.$t("unique value"):e.$t("unique values"))+". ")]):t("span",[e._v(" "+e._s(e.filteredWordListSize<0?0:e.filteredWordListSize)+" "+e._s(e.$t("of"))+" "+e._s(e.wordListSize<0?0:e.wordListSize)+" "+e._s(e.$t("unique values"))+". ")])]),e.filteredWordListSize>e.perPage?t("b-col",{attrs:{md:"auto"}},[t("b-pagination",{attrs:{size:"sm","total-rows":e.filteredWordListSize,"per-page":e.perPage,"first-number":"","last-number":""},on:{input:e.wordListProvider},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}})],1):e._e(),e.filteredWordListSize>e.perPage?t("b-col",{attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("label",{staticClass:"m-1",attrs:{for:"input-go-to-page"}},[e._v(e._s(e.$t("Go to page"))+":")]),t("b-form-input",{staticClass:"ml-2",staticStyle:{width:"5em"},attrs:{size:"sm",id:"input-go-to-page",autocomplete:"off",autocorrect:"off"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.gotoPage.apply(null,arguments))}},model:{value:e.gotoPageNr,callback:function(t){e.gotoPageNr=e._n(t)},expression:"gotoPageNr"}})],1)],1):e._e(),t("b-col",{staticClass:"p-1",attrs:{md:"auto"}},[t("label",{staticClass:"m-1",attrs:{for:"attribute"}},[e._v(e._s(e.$t("Attribute"))+":")])]),t("b-col",{attrs:{md:"auto"}},[t("b-form-select",{attrs:{size:"sm",id:"attribute",options:e.corpusBagInfo.attributes,"xxv-model":"stateStore.wordList.attribute","value-field":"name","text-field":"name"},on:{input:e.setAttribute},model:{value:e.attribute,callback:function(t){e.attribute=t},expression:"attribute"}})],1),t("b-col",{staticClass:"p-1",attrs:{md:"auto"}},[t("label",{staticClass:"m-1",attrs:{for:"sort-key"}},[e._v(e._s(e.$t("Sort"))+":")])]),t("b-col",{attrs:{md:"auto"}},[t("b-form-select",{attrs:{size:"sm",id:"sort-key",options:[{value:"frequency",text:e.$t("by frequency")},{value:"alphabetic",text:e.$t("alphabetic")}]},on:{input:e.refresh},model:{value:e.sortKey,callback:function(t){e.sortKey=t},expression:"sortKey"}})],1),t("b-col",{attrs:{md:"auto"}},[t("b-form",{attrs:{inline:""}},[t("label",{staticClass:"m-1",attrs:{for:"input-threshold"}},[e._v(e._s(e.$t("Threshold"))+":")]),t("b-form-input",{staticClass:"ml-2",staticStyle:{width:"6em"},attrs:{size:"sm",id:"input-threshold",autocomplete:"off",autocorrect:"off"},on:{blur:e.computeWordList,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.computeWordList.apply(null,arguments))}},model:{value:e.threshold,callback:function(t){e.threshold=e._n(t)},expression:"threshold"}})],1)],1),t("b-col",{staticClass:"p-1",attrs:{md:"auto"}},[t("b-form-checkbox",{attrs:{size:"sm",inline:"",value:!0,"unchecked-value":!1},on:{input:e.computeWordList},model:{value:e.stateStore.wordList.ignoreCase,callback:function(t){e.$set(e.stateStore.wordList,"ignoreCase",t)},expression:"stateStore.wordList.ignoreCase"}},[e._v(" "+e._s(e.$t("ignore case")))]),e.hasAtomicValues?t("b-form-checkbox",{attrs:{size:"sm",inline:""},on:{input:e.computeWordList},model:{value:e.stateStore.wordList.atomicValues,callback:function(t){e.$set(e.stateStore.wordList,"atomicValues",t)},expression:"stateStore.wordList.atomicValues"}},[e._v(" "+e._s(e.$t("atomic values")))]):e._e(),e._v(" | "),t("b-button",{staticClass:"mx-3",attrs:{href:e.apiEndpointKorpuskel+"/match-wordlist.tsv?session-id="+e.sessionStore.sessionId+"&attribute="+e.attribute+"&counts="+e.includeCounts+"&fractions="+e.includeFractions+"&show-atomic-values="+e.stateStore.wordList.atomicValues+"&ignore-case="+e.stateStore.wordList.ignoreCase,size:"sm",variant:"light",target:"_new"}},[t("nobr",[t("b-icon-download"),e._v(" "),"sm"!=e.$mq?t("span",[e._v(e._s(e.$t("Download")))]):e._e()],1)],1),t("b-form-checkbox",{attrs:{size:"sm",inline:""},model:{value:e.includeCounts,callback:function(t){e.includeCounts=t},expression:"includeCounts"}},[e._v(" "+e._s(e.$t("include counts")))]),t("b-form-checkbox",{attrs:{size:"sm",inline:""},model:{value:e.includeFractions,callback:function(t){e.includeFractions=t},expression:"includeFractions"}},[e._v(" "+e._s(e.$t("include fractions")))])],1)],1),e.busy?e._e():t("b-row",[t("b-container",[t("ol",{class:"list-unstyled word-list "+e.$mq},e._l(e.rows,(function(s,o){return t("li",{key:o,staticClass:"word-list-item"},[[t("span",{staticClass:"d-flex justify-content-between nobr"},[s.value.length<27?t("b-button",{staticClass:"list-button",attrs:{variant:"link"},on:{click:function(t){return e.setChildQuery(s.value,s.matchIds)}}},[e._v(" "+e._s(s.value)+" ")]):t("b-button",{staticClass:"list-button",attrs:{variant:"link",title:s.value},on:{click:function(t){return e.setChildQuery(s.value,s.matchIds)}}},[e._v(" "+e._s(s.value.substring(0,24))+"… ")]),t("span",{staticClass:"word-list-numerals"},[e.includeCounts?t("span",{attrs:{title:e.$t("count")}},[e._v(e._s(s.count+" "))]):e._e(),e.includeFractions?t("span",{attrs:{title:e.$t("fraction")}},[e._v(e._s(s.percent+"%"))]):e._e()])],1)]],2)})),0)])],1)],1)},yt=[];o["default"].use(g["a"],{breakpoints:{xs:576,sm:768,md:992,lg:1200,xl:1/0}});var St={name:"wordList",mixins:[v["b"]],props:["tabs"],data:function(){return{currentPage:1,gotoPageNr:null,busy:!1,attribute:"word",perPage:80,wordListSize:-1,filteredWordListSize:-1,parametersChanged:!1,progress:0,sortKey:"frequency",threshold:0,pollDelay:200,apiEndpointKorpuskel:Qs,includeCounts:!0,includeFractions:!1,rows:[]}},mounted:function(){this.computeWordList(),window.addEventListener("keydown",this.onKeyDown),"lg"==this.$mq?this.perPage=81:this.perPage=80},destroyed:function(){window.removeEventListener("keydown",this.onKeyDown)},computed:{hasAtomicValues:function(){var e;return"set"==(null===(e=this.corpusBagInfo.attributes.find(e=>e.name==this.attribute))||void 0===e?void 0:e.type)}},methods:{setStoreAttribute:function(e){this.stateStore.wordList.attribute=e},onKeyDown:function(){if("TEXTAREA"==document.activeElement.tagName);else if(event.ctrlKey)switch(event.keyCode){case 37:this.currentPage>1&&this.currentPage--;break;case 39:this.currentPage*this.perPage<this.filteredWordListSize&&this.currentPage++}},computeWordList:function(){this.busy=!0,"query-done"!=this.queryStore.queryState.state&&"query-stopped"!=this.queryStore.queryState.state&&"query-halted"!=this.queryStore.queryState.state||(this.parametersChanged=!1,this.callCorpusAPI("wordlist",{attribute:this.attribute,"sort-key":this.sortKey,"ignore-case":this.stateStore.wordList.ignoreCase,"atomic-values":this.stateStore.wordList.atomicValues}).then(()=>this.poll(!0)).catch(this.showAlert))},poll:function(e){e&&(this.pollDelay=100),this.callCorpusAPI("wordlist-state").then(e=>{e&&("idle"==e.state?(this.busy=!1,this.progress=0):"done"==e.state?(this.queryStore.wordlistState=e,this.currentPage=null,this.parametersChanged=!1,this.$nextTick(()=>{this.currentPage=1,this.refresh(),this.busy=!1,this.progress=0})):(this.queryStore.wordlistState=e,this.progress=e.progress,setTimeout(this.poll,this.pollDelay),this.pollDelay+=10))}).catch(this.showAlert)},wordListProvider:function(){""==this.threshold&&(this.threshold=0);let e=this.callCorpusAPI("fetch-wordlist",{"sort-key":this.sortKey,start:(this.currentPage-1)*this.perPage,end:this.currentPage*this.perPage,threshold:this.threshold}).catch(this.showAlert);return e.then(e=>{this.wordListSize=e.wordListSize,this.filteredWordListSize=e.filteredWordListSize,this.rows=e.wordList}).catch(this.showAlert)},setChildQuery:function(e,t){this.callCorpusAPI("set-child-query",{subset:"wordlist",value:e,"matches-ids":t}).then(e=>{this.queryStore.queryState=e,this.parametersChanged=!0,this.$root.$emit("bv::refresh::table","kwicConcordanceTable"),this.showConcordanceForChildQuery?this.tabs.tabIndex=0:(this.rows=[],this.computeWordList())}).catch(this.showAlert)},setAttribute:function(){this.parametersChanged=!0,this.currentPage=1,this.computeWordList()},refresh:function(){this.closePopups("wordList"),this.wordListProvider()},gotoPage:function(e){this.currentPage=this.gotoPageNr,e.preventDefault()}}},wt=St,Ct=(s("c3d0"),Object(d["a"])(wt,kt,yt,!1,null,null,null)),xt=Ct.exports,_t=function(){var e=this,t=e._self._c;return t("b-container",{attrs:{fluid:"",id:"container"}},[t("b-row",[t("b-col",{attrs:{md:"auto"}},[t("b-form",{attrs:{inline:""}},[t("label",{staticClass:"m-2",attrs:{for:"filter"}},[e._v(e._s(e.$t("Filter"))+": ")]),t("b-form-input",{staticClass:"mb-2 mr-sm-2 mb-sm-0",staticStyle:{"max-width":"20em"},attrs:{id:"filter",autocomplete:"off",autocorrect:"off",spellcheck:"false",autocapitalize:"off"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.showDistributionByDate.apply(null,arguments))}},model:{value:e.settings.filter,callback:function(t){e.$set(e.settings,"filter",t)},expression:"settings.filter"}}),e.corpusBagInfo.hasLemma?t("b-form-radio-group",{attrs:{options:["word","lemma"]},on:{input:e.showDistributionByDate},model:{value:e.settings.partitionAttribute,callback:function(t){e.$set(e.settings,"partitionAttribute",t)},expression:"settings.partitionAttribute"}}):e._e(),t("b-form-checkbox",{staticClass:"mb-2 mr-sm-2 mb-sm-0",on:{input:e.showDistributionByDate},model:{value:e.settings.ignoreCase,callback:function(t){e.$set(e.settings,"ignoreCase",t)},expression:"settings.ignoreCase"}},[e._v(" "+e._s(e.$t("ignore case"))+" ")]),t("b-form-radio-group",{attrs:{options:["relative","absolute"]},on:{input:function(t){return e.showDiagram(!0)}},model:{value:e.settings.display,callback:function(t){e.$set(e.settings,"display",t)},expression:"settings.display"}}),e.corpusBagInfo.hasDate?t("b-form-radio-group",{attrs:{options:["year","date"]},on:{input:e.showDistributionByDate},model:{value:e.settings.dateAttribute,callback:function(t){e.$set(e.settings,"dateAttribute",t)},expression:"settings.dateAttribute"}}):e._e(),t("b-button",{staticClass:"m-0 p-1",attrs:{size:"sm",variant:"light"},on:{click:e.resetScale}},[e._v(e._s(e.$t("Reset scale")))])],1)],1)],1),e.busy?t("b-row",{staticClass:"p-5"},[t("b-col",{attrs:{md:"auto"}},[t("b-spinner",{attrs:{label:"Loading..."}})],1)],1):e._e(),t("b-row",{directives:[{name:"show",rawName:"v-show",value:!e.busy,expression:"!busy"}],staticClass:"px-4 pt-4"},[t("span",{staticClass:"font-weight-bold"},[e._v(e._s(e.$t("Frequency over time")))])]),t("b-row",{directives:[{name:"show",rawName:"v-show",value:!e.busy,expression:"!busy"}]},[t("b-col",[t("div",{staticStyle:{"overflow-y":"hidden"},attrs:{id:"svg-chart"}})])],1),t("b-row",{directives:[{name:"show",rawName:"v-show",value:"relative"==e.settings.display&&!e.busy,expression:"settings.display=='relative' && !busy"}],staticClass:"px-4"},[t("small",[e._v(e._s(e.$t("Numbers on the y-axis indicate relative token counts"))+" ("+e._s(e.$t("average number of occurrences per day per"))+" "+e._s(e.$n(1e6))+" "+e._s(e.$t("corpus tokens in the chosen range"))+")")])]),t("b-row",{directives:[{name:"show",rawName:"v-show",value:!e.busy,expression:"!busy"}],staticClass:"px-4 pt-4"},[t("span",{staticClass:"font-weight-bold"},[e._v(e._s(e.$t("Total match frequencies")))])]),t("b-row",{directives:[{name:"show",rawName:"v-show",value:!e.busy,expression:"!busy"}]},[t("b-col",[t("div",{staticStyle:{"overflow-y":"hidden"},attrs:{id:"svg-chart1"}})])],1)],1)},At=[],Lt=s("5698");o["default"].use(g["a"],{breakpoints:{mobile:450,tablet:900,laptop:1250,desktop:1/0}});var Pt={partitionAttribute:"word",display:"relative",ignoreCase:!1,dateAttribute:"year",filter:null};function qt(e){let t=new Date(e),s=""+(t.getMonth()+1),o=""+t.getDate(),n=t.getFullYear();return s.length<2&&(s="0"+s),o.length<2&&(o="0"+o),[n,s,o].join("-")}function It(e){var t=new Date(e);return""+t.getFullYear()}var Tt={name:"chartGraph",mixins:[v["b"]],props:["tabs"],data:function(){return{busy:!1,wordList:[],scaledWordList:[],dateMap:null,settings:Pt,partitionValues:[],partitionTotalCounts:[],height:"mobile"==this.$mq?740:200,width:"mobile"==this.$mq?200:740,xScale:null,yScale:null,xBarScale:null,yBarScale:null,axisShown:!1,barWidth:2,xBarMargin:50,yBarMargin:80,xMargin:40,yMargin:40,margin:40,svg:null,chart:null,totalBar:null,lineCoords:null,year:null,xValue:null,rangeStart:null,rangeEnd:null}},mounted:function(){this.refresh(),this.svg=Lt["l"]("#svg-chart").append("svg").attr("width",this.width+5*this.xMargin).attr("height",this.height+2*this.yMargin),this.chart=this.svg.append("g").attr("class","chart").attr("transform","translate(0,"+this.yMargin+")"),this.svg1=Lt["l"]("#svg-chart1").append("svg").attr("width",this.xBarMargin+this.width+4*this.xMargin).attr("height",this.height+2*this.yBarMargin),this.totalBar=this.svg1.append("g").attr("class","barChart").attr("transform","translate(0,"+this.yMargin+")"),"mobile"==this.$mq&&(this.svg.attr("transform","rotate(90) translate(340,340)").attr("style","border:2px solid red"),this.svg1.attr("transform","translate(0,680)").attr("style","border:2px solid green"))},computed:{...Object(k["e"])(v["d"])},methods:{count:function(){var e;return(null===(e=this.wordList[this.xValue])||void 0===e?void 0:e.count)||0},partitionCounts:function(){var e;return(null===(e=this.wordList[this.xValue])||void 0===e?void 0:e.partitionCounts)||this.partitionValues.map(()=>0)},color:function(e){return Lt["e"](e/this.partitionValues.length)},setScales:function(){this.xScale=Lt["k"]().domain(this.extent).range([0,this.width]),this.yScale=Lt["j"]().domain([0,Lt["g"](this.scaledWordList,e=>this.yData(e))]).range([this.height,0]).nice(),this.xBarScale=Lt["i"]().domain(this.partitionValues).range([0,16*this.partitionValues.length]).padding(.5),this.yBarScale=Lt["j"]().domain([0,Lt["g"](this.partitionTotalCounts,e=>"relative"==this.settings.display?e.relCount:e.count)]).range([this.height,0]).nice()},refresh:function(){this.showDistributionByDate()},showDistributionByDate:function(){this.busy=!0,this.corpusBagInfo.hasLemma||(Pt.partitionAttribute="word"),this.callCorpusAPI("fetch-distribution-by-year",{"partition-attribute":Pt.partitionAttribute,attribute:Pt.dateAttribute,"ignore-case":Pt.ignoreCase,filter:Pt.filter||""}).then(e=>{e.done&&("datex"!==Pt.dateAttribute?this.wordList=e.wordList.filter(e=>new Date(e.value)):this.wordList=e.wordList,this.scaledWordList=this.wordList,this.dateMap=new Map,this.scaledWordList.forEach((e,t)=>this.dateMap.set(e.value,t)),this.partitionValues=e.partitionValues,this.extent=Lt["d"](this.scaledWordList,e=>new Date(e.value)),this.setCounts(),this.showDiagram(),this.busy=!1)}).catch(e=>{this.busy=!1,this.showAlert(e)})},yData:function(e,t){return e?void 0===t?"relative"==this.settings.display?1e6*e.count/e.total:e.count:e&&e.partitionCounts?"relative"==Pt.display?1e6*e.partitionCounts[t]/e.total:e.partitionCounts[t]:0:0},handleMouseDown:function(e){let t=Lt["h"](e),s="mobile"==this.$mq?t[1]-10:t[0];s>=1*this.margin&&s<=this.width+1*this.xMargin&&(this.rangeStart=t[0])},handleMouseUp:function(e){let t=Lt["h"](e),s="mobile"==this.$mq?t[1]-10:t[0];if(s>=1*this.margin&&s<=this.width+1*this.xMargin)if(this.rangeEnd=t[0],this.rangeStart==this.rangeEnd){let e=new Date(Math.round(this.xScale.invert(this.rangeStart-1*this.xMargin))),t="year"==Pt.dateAttribute?It(e):qt(e);this.callCorpusAPI("set-child-query",{subset:"timeline","date-attribute":Pt.dateAttribute,value:t}).then(e=>{this.queryStore.queryState=e,this.$root.$emit("bv::refresh::table","kwicConcordanceTable"),this.tabs.tabIndex=0,this.invalidateTables()}).catch(this.showAlert)}else{var o;if(this.rangeStart>this.rangeEnd){let e=this.rangeStart;this.rangeStart=this.rangeEnd,this.rangeEnd=e}let e=new Date(Math.round(this.xScale.invert(this.rangeStart-1*this.xMargin))),t=new Date(Math.round(this.xScale.invert(this.rangeEnd-1*this.xMargin)));this.extent=[e,t],this.scaledWordList=null===(o=this.wordList)||void 0===o?void 0:o.filter(e=>{let t=new Date(e.value);return this.extent[0]<=t&&t<=this.extent[1]}),this.setCounts(),this.showDiagram(),this.chart.selectAll("g.xaxis").call(Lt["a"](this.xScale))}},setCounts:function(){let e=this.partitionValues.map(e=>({value:e,count:0,relCount:0}));if(this.extent[1]){let t=(this.extent[1].getTime()-this.extent[0].getTime())/864e5;t=Math.round(t),t>0&&(this.scaledWordList.forEach(s=>{s.partitionCounts.forEach((t,s)=>e[s].count+=t),s.partitionCounts.forEach((o,n)=>e[n].relCount+=1e6*o/(s.total*t))}),this.partitionTotalCounts=e)}},resetScale:function(){this.scaledWordList=this.wordList,this.extent=Lt["d"](this.wordList,e=>new Date(e.value)),this.setCounts(),this.showDiagram(),this.chart.selectAll("g.xaxis").call(Lt["a"](this.xScale))},handleMouseOverGraph:function(e){if(this.scaledWordList){let t=Lt["h"](e),s="mobile"==this.$mq?t[1]-10:t[0];if(s>=1*this.margin&&s<=this.width+1*this.xMargin){this.hoverLine.classed("hide",!1),Lt["m"](".circle").classed("hide",!1),this.lineCoords[0][0]=s,this.lineCoords[1][0]=s,this.hoverLine.attr("d",Lt["f"]().x(e=>e[0]));let e=Math.round(this.xScale.invert(s-1*this.xMargin)),t=new Date(e);"year"==Pt.dateAttribute?this.year=It(t):this.year=qt(t),this.xValue=this.dateMap.get(this.year),Lt["l"]("#year").data([this]).transition().text(e=>e.year),Lt["l"]("#yearCount").data([this]).transition().text(e=>e.count());let o=this.partitionCounts();this.partitionValues.forEach((e,t)=>{Lt["l"]("#value"+t).data([o]).transition().text(e=>e?e[t]:0),Lt["l"]("#circle"+t).data([this.wordList[this.xValue]]).attr("cx",()=>s-0*this.xMargin).attr("cy",e=>this.yScale(this.yData(e,t)))}),Lt["l"]("#circle").data([this.wordList[this.xValue]]).attr("cx",()=>s-0*this.xMargin).attr("cy",e=>this.yScale(this.yData(e)))}else this.hoverLine.classed("hide",!0),Lt["m"](".circle").classed("hide",!0)}},onMouseOver:function(e){Lt["m"]("#lineGroup > .line").transition().duration(100).attr("stroke","lightgray"),Lt["l"]("#path"+e).transition().duration(100).attr("stroke","black").attr("stroke-width",2)},onMouseOut:function(){Lt["m"]("#lineGroup > .line").transition().duration(100).attr("stroke",(e,t)=>this.color(t)).attr("stroke-width",1),Lt["l"]("#path").transition().duration(100).attr("stroke","gray").attr("stroke-width",1)},showDiagram:function(e){let t=e=>this.xScale(new Date(e.value))+this.margin,s=(e,t)=>this.yScale(this.yData(e,t));const o=Lt["f"]().curve(Lt["c"]).x(t).y(e=>s(e)),n=this.partitionValues.map((e,s)=>Lt["f"]().x(t).y(e=>this.yScale(this.yData(e,s))).curve(Lt["c"]));let a=function(e,t){return"relative"==t?e.relCount:e.count};if(e)this.setScales(),this.chart.selectAll("g.yaxis").call(Lt["b"](this.yScale)),this.totalBar.selectAll("g.yaxis").call(Lt["b"](this.yBarScale)),this.partitionValues.forEach((e,t)=>{Lt["l"]("#path"+t).transition().attr("d",n[t])}),Lt["l"]("#path").transition().attr("d",o(this.scaledWordList)),this.totalBar.selectAll(".bar").transition().attr("y",e=>this.yBarScale(a(e,Pt.display))).attr("height",e=>this.height-this.yBarScale(a(e,Pt.display)));else{Lt["m"]("#svg-chart > svg > g > *").remove(),Lt["m"]("#svg-chart1 > svg > g > *").remove(),this.extent=Lt["d"](this.scaledWordList,e=>new Date(e.value)),this.setScales();let e=this;Lt["m"]("#svg-chart").on("mousemove",(function(){e.handleMouseOverGraph(this)})).on("mousedown",(function(){e.handleMouseDown(this)})).on("mouseup",(function(){e.handleMouseUp(this)}));let t=this.chart.append("g").attr("id","lineGroup"),s=this.chart.append("g").attr("id","legend");t.append("path").attr("id","path").datum(this.scaledWordList).attr("class","line").attr("fill","none").attr("stroke","gray").attr("d",o),t.append("circle").attr("id","circle").attr("fill","red").attr("class","circle").classed("hide",!0).attr("cx",0).attr("cy",0).attr("r",2),this.partitionValues.forEach((e,o)=>{let a=Lt["e"](o/this.partitionValues.length);t.append("path").datum(this.scaledWordList).attr("id","path"+o).attr("class","line").attr("fill","none").attr("stroke",a).attr("d",n[o]),t.append("circle").attr("id","circle"+o).attr("fill","red").attr("class","circle").classed("hide",!0).attr("cx",0).attr("cy",0).attr("r",2),s.append("text").attr("id","value"+o).attr("x",this.width-10+this.xMargin+70).attr("y",20*o).attr("style","text-anchor:end").text(()=>0),s.append("circle").attr("fill",a).attr("cx",this.width+this.xMargin+70).attr("cy",20*o-4).attr("r",5),s.append("text").attr("x",this.width+10+this.xMargin+70).attr("y",20*o).attr("style","cursor:pointer").text(this.partitionValues[o]).on("mouseover",()=>this.onMouseOver(o)).on("mouseout",this.onMouseOut)}),s.append("text").attr("id","yearCount").attr("x",this.width-10+this.xMargin+70).attr("y",-20).attr("style","text-anchor:end").text(()=>""),s.append("text").attr("id","year").attr("x",this.width+10+this.xMargin+70).attr("y",-20).attr("style","font-weight:bold").text(()=>"");let i=this.chart.append("g").attr("class","hover-line").attr("transform","translate("+0*this.xMargin+","+this.height+")");this.lineCoords=[[10,10],[10,-this.height]],this.hoverLine=i.append("path").datum(this.lineCoords).attr("id","vline").attr("class","line").classed("hide",!0).attr("fill","none").attr("stroke","gray").attr("d",Lt["f"]().x(e=>e[0]).y(e=>e[1])),this.chart.append("g").attr("class","xaxis").attr("transform","translate("+this.xMargin+","+this.height+")").call(Lt["a"](this.xScale)),this.chart.append("g").attr("class","yaxis").attr("transform","translate("+this.xMargin+",0)").call(Lt["b"](this.yScale)),this.totalBar.append("g").attr("class","xaxis").attr("transform","translate("+this.xBarMargin+","+this.height+")").call(Lt["a"](this.xBarScale)),this.totalBar.selectAll(".xaxis >* text").attr("transform","rotate(90)").attr("y",0).attr("x",9).attr("dy",".35em").style("text-anchor","start"),this.totalBar.append("g").attr("class","yaxis").attr("transform","translate("+this.xBarMargin+",0)").call(Lt["b"](this.yBarScale)),this.totalBar.selectAll(".bar").data(this.partitionTotalCounts).enter().append("rect").attr("class","bar").attr("fill",(e,t)=>this.color(t)).attr("x",e=>this.xBarMargin+this.xBarScale(e.value)).attr("width",()=>this.xBarScale.bandwidth()).attr("y",e=>this.yBarScale(a(e,Pt.display))).attr("height",e=>this.height-this.yBarScale(a(e,Pt.display)))}}}},Dt=Tt,Mt=Object(d["a"])(Dt,_t,At,!1,null,null,null),Nt=Mt.exports;o["default"].use(i["a"]),o["default"].use(ie["a"]),o["default"].use(g["a"],{breakpoints:{xs:576,sm:768,md:992,lg:1200,xl:1/0}});var Rt={name:"corpusSearch",components:{graphicalQuery:ke,kwicConcordance:nt,collocationList:dt,distributionTable:vt,wordList:xt,chartGraph:Nt,queryDerivation:pe},props:["tabs","hideText","corpusNames"],mixins:[v["b"],q],metaInfo:{title:"Search"},data:function(){return{busy:!1,showQueryInfo:!1,searchTabs:{tabIndex:0},queryName:null,pollDelay:500,saveAsPublic:!1,saveAsSubcorpus:!1,publicOnly:!1,privateOnly:!1,subcorpusList:["-"],subcorpus:"-",savedQueries:[],filteredSavedQueries:[],savedQueryFields:[{key:"name",sortable:!0,tdClass:"font-weight-bold"},{key:"queryString",label:"Query",sortable:!0,tdClass:"text-truncate"}],matchSize:-1,queryHistory:[],audioSrc:{src:"https://clarino.uib.no/korpuskel/audio/ssgg/mm5-2.mp4",resolution:"720p"},parsedPage:{tokens:[]},URLcopied:!1,refineWindow:5,nameFilter:null,queryFilter:null,descriptionMarkup:null,editDescriptionMarkup:null,queryString:null,editQueryString:null,refineQuery:!1,env:v["a"],key:0}},mounted:function(){window.addEventListener("keydown",this.onKeyDown),this.getQueryHistory(),this.getSubcorpusList(),this.tabs.tabIndex=this.pathToIndex(this.$route.params.view);let e=this.$route.params.query;e&&(this.queryStore.string=e.replace(/∥/g,"/"),this.$router.replace("/"+this.project+"/corpus/"),this.sendQuery())},updated:function(){let e=this.$route.params.view;this.tabs.tabIndex=this.pathToIndex(e)},destroyed:function(){window.removeEventListener("keydown",this.onKeyDown)},watch:{isLoaded:function(e){if(e){var t;let e=this.$route.params.query,s=null===(t=this.$route.params.bag)||void 0===t?void 0:t.split(",");e?(this.setCorpusSelection(s),this.computeActiveCorpus(this.corpusNames),this.queryStore.string=e.replace(/∥/g,"/")):this.computeActiveCorpus(this.corpusNames)}}},computed:{project:function(){return this.$route.params.project},isLoaded:function(){return!!this.corpusListInfo.corpusList[0]},canSelectCorpus:function(){switch(this.stateStore.project){case"menota":return!1;case"abnc":return!1;case"nnk":return!1;default:return!0}},corpusList:function(){if(this.corpusListInfo.corpusList&&this.corpusListInfo.chosenCorpusList){let e=this.corpusListInfo.corpusList.filter(e=>this.corpusListInfo.chosenCorpusList.find(t=>t.name==e.name));return e}return[]},changed:function(){return this.queryStore.changed||!this.queryStore.queryState.query&&!0},truncatedQuery:function(){return this.queryStore.string.length>70?this.queryStore.string.substring(0,64)+"…":this.queryStore.string},windowOptions:function(){let e=[{value:5,text:"5 tokens"},{value:10,text:"10 tokens"},{value:15,text:"15 tokens"},{value:20,text:"20 tokens"},{value:25,text:"25 tokens"},{value:30,text:"30 tokens"},{value:35,text:"35 tokens"},{value:40,text:"40 tokens"}];return this.corpusBagInfo.structures.find(e=>"s"==e.name&&e.common)&&e.push({value:"s",text:"sentence"}),this.corpusBagInfo.structures.find(e=>("document"==e.name||"text"==e.name)&&e.common)&&e.push({value:"document",text:"document"}),e}},methods:{corpusIsSelected:function(e){return-1==this.stateStore.excludedCorpusList.indexOf(e)},toggleExcludedCorpora:function(e){this.invalidateTables(!0);let t=this.stateStore.excludedCorpusList.indexOf(e);t>-1?this.stateStore.excludedCorpusList.splice(t,1):this.stateStore.excludedCorpusList.push(e),this.computeActiveCorpus()},setChanged:function(){this.dismissAlert(),this.queryStore.changed=!0,this.URLcopied=!1},refresh:function(){this.$refs.kwic.refresh()},playVideo:function(){return!0},getSubcorpusList:function(){this.callCorpusAPI("get-saved-queries",{corpus:this.corpusListInfo.chosenCorpusList.map(e=>e.name),subcorpus:!0}).then(e=>this.subcorpusList=null===e||void 0===e?void 0:e.savedQueries).catch(this.showAlert)},saveQuery:function(){let e=1==this.searchTabs.tabIndex;this.callCorpusAPI("save-query",{corpus:this.corpusListInfo.chosenCorpusList.map(e=>e.name),"query-string":this.queryStore.string,"query-json":e?JSON.stringify(this.queryStore.object):"",name:this.queryName,public:this.saveAsPublic,subcorpus:this.saveAsSubcorpus})},getSavedQueries:function(e){this.dismissAlert(),this.privateOnly&&this.publicOnly&&("private"==e?this.publicOnly=!1:this.privateOnly=!1),this.callCorpusAPI("get-saved-queries",{corpus:this.corpusListInfo.chosenCorpusList.map(e=>e.name),"no-public":this.privateOnly,"no-private":this.publicOnly}).then(e=>{this.savedQueries=null===e||void 0===e?void 0:e.savedQueries,this.filteredSavedQueries=this.savedQueries}).catch(this.showAlert)},filterQueries:function(){function e(e,t){return e.toLowerCase().includes(t.toLowerCase())}this.nameFilter&&this.queryFilter?this.filteredSavedQueries=this.savedQueries.filter(t=>e(t.name,this.nameFilter)&&e(t.queryString,this.queryFilter)):this.nameFilter?this.filteredSavedQueries=this.savedQueries.filter(t=>e(t.name,this.nameFilter)):this.queryFilter&&(this.filteredSavedQueries=this.savedQueries.filter(t=>e(t.queryString,this.queryFilter)))},getQueryHistory:function(){this.callCorpusAPI("get-query-history",{corpus:this.corpusListInfo.chosenCorpusList.map(e=>e.name)}).then(e=>this.queryHistory=(null===e||void 0===e?void 0:e.queryHistory)||[]).catch(this.showAlert)},selectSavedQuery:function(e){e.queryJSON?(this.queryStore.object=JSON.parse(e.queryJSON),this.searchTabs.tabIndex=1):(this.searchTabs.tabIndex=0,this.resetQuery()),this.queryStore.changed=!0,this.queryStore.string=e.queryString,this.$root.$emit("bv::hide::modal","modal-saved-queries")},selectQuery:function(e){this.queryStore.changed=!0,this.queryStore.string=e,this.$root.$emit("bv::hide::modal","modal-query-history")},storeQuery:function(e){this.callCorpusAPI("save-query",{corpus:this.corpusListInfo.chosenCorpusList.map(e=>e.name),"query-string":this.editQueryString?this.queryString:e.queryString,"query-json":e.queryJSON?JSON.stringify(e.queryJSON):"",name:e.name,description:this.editDescriptionMarkup?this.descriptionMarkup||"":e.descriptionMarkup||"",public:e.public}).then(()=>{this.editDescriptionMarkup=null,this.editQueryString=null,this.getSavedQueries()}).catch(this.showAlert)},poll:function(){this.callCorpusAPI("query-state").then(e=>{if(this.queryStore.queryState=e,"query-done"==e.state||"query-idle"==e.state||"query-error"==e.state||"query-stopped"==e.state||"query-halted"==e.state)this.matchSize=e.matchSize,this.key++,this.busy=!1,this.$nextTick(()=>{this.refreshTabs()});else if(this.matchSize<e.matchSize){var t;if(this.matchSize=e.matchSize,this.busy=!1,0==this.tabs.tabIndex)null===(t=this.$refs.kwic)||void 0===t||t.refresh(this.matchSize);this.pollDelay<500&&(this.pollDelay+=10),setTimeout(this.poll,this.pollDelay)}else this.matchSize=e.matchSize,this.pollDelay<500&&(this.pollDelay+=10),setTimeout(this.poll,this.pollDelay)}).catch(this.showAlert)},refreshTabs:function(){var e,t;(this.key++,this.$refs.kwic)&&(this.$refs.kwic.refresh(),null===(e=this.$refs.wordList)||void 0===e||e.computeWordList(),null===(t=this.$refs.diagram)||void 0===t||t.refresh())},sendQuery:function(){if(this.dismissAlert(),this.queryStore.string.length){this.busy=!0,this.matchSize=-1,this.currentPage=1,this.queryStore.changed=!1,this.invalidateTables(),this.stateStore.queryString=this.queryStore.string;let e=this.corpusListInfo.chosenCorpusList.map(e=>e.name),t=this.queryStore.string,s=this.stateStore.attributes.concat(["document","time-interval"]),o=this.stateStore.structures.length?this.stateStore.structures:["_none"];this.callCorpusAPI("query",this.refineQuery?{corpus:e,query:t,refine:!0,window:this.refineWindow}:{corpus:e,query:t,"query-json":JSON.stringify(this.queryStore.object),"subcorpus-name":"-"==this.subcorpus?"":this.subcorpus}).then(()=>{this.refineQuery||this.callCorpusAPI("set-parameters",{attributes:s,structures:o}),this.refineQuery=!1,this.pollDelay=100,this.poll()}).catch(this.showAlert)}},resetQuery:function(){this.key++,this.queryStore.object={positionalConstraints:{type:"seq",id:0,items:[{type:"constraint",id:1,value:[{att:"word",value:"",ignoreCase:!1}],repetition:"1"}]}},this.stringifyQuery()},stopQuery:function(e){e.preventDefault(),this.busy=!0,this.callCorpusAPI("stop-query").then(e=>{this.busy=!1,this.queryStore.queryState=e}).catch(this.showAlert)},haltQuery:function(e){e.preventDefault(),this.busy=!0,this.callCorpusAPI("halt-query").then(()=>this.busy=!1).catch(this.showAlert)},resumeQuery:function(e){e.preventDefault(),this.busy=!0,this.callCorpusAPI("resume-query").then(()=>this.busy=!1).then(()=>this.poll()).catch(this.showAlert)},onActivateTab:function(e){this.closePopups(),this.$router.push({path:this.indexToPath(e)})},onDeactivateTab:function(){this.closePopups("onDeactivateTab")},copyQueryURLToClipboard:function(){let e=location.port?":"+location.port:"",t=this.project;"lex"==t&&(t="lex-prod");let s=location.protocol+"//"+location.hostname+e+"/"+t+"/corpus/"+this.corpusListInfo.chosenCorpusList.map(e=>e.name).join(",")+"/"+encodeURIComponent(this.queryStore.string.replace(/[/]/g,"∥"));navigator.clipboard.writeText(s),this.URLcopied=!0},abbreviate:function(e){return e.length<45?e:e.substr(0,40)+"…"}}},zt=Rt,Et=(s("3f0d"),Object(d["a"])(zt,ne,ae,!1,null,null,null)),jt=Et.exports,Ot=function(){var e=this,t=e._self._c;return t("b-container",{attrs:{fluid:"sm"}},[e.busy&&e.progress>0?t("b-row",{staticClass:"p-5"},[t("b-col",{attrs:{cols:"2"}},[t("div",{staticClass:"p-2",attrs:{role:"status"}},[e._v("Calculating…")]),t("b-progress",{attrs:{value:e.progress,max:1,"show-progress":""}})],1)],1):e._e(),t("b-row",{staticClass:"p-5"},[t("b-col",{attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("label",{staticClass:"m-1",attrs:{for:"input-date"}},[e._v(e._s(e.$t("Date"))+":")]),t("b-form-input",{staticClass:"ml-2",attrs:{size:"sm",id:"input-date",xstyle:"width:5em",autocomplete:"off",autocorrect:"off"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.refresh.apply(null,arguments))}},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}})],1)],1)],1),e.busy?e._e():t("b-row",[e.filteredWordListSize>e.perPage?t("b-col",{attrs:{md:"auto"}},[t("b-pagination",{attrs:{size:"sm","total-rows":e.filteredWordListSize,"per-page":e.perPage,"first-number":"","last-number":""},on:{input:e.wordListProvider},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}})],1):e._e(),e.filteredWordListSize>e.perPage?t("b-col",{attrs:{cols:"auto"}},[t("b-form",{attrs:{inline:""}},[t("label",{staticClass:"m-1",attrs:{for:"input-go-to-page"}},[e._v(e._s(e.$t("Go to page"))+":")]),t("b-form-input",{staticClass:"ml-2",staticStyle:{width:"5em"},attrs:{size:"sm",id:"input-go-to-page",autocomplete:"off",autocorrect:"off"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.gotoPage.apply(null,arguments))}},model:{value:e.gotoPageNr,callback:function(t){e.gotoPageNr=e._n(t)},expression:"gotoPageNr"}})],1)],1):e._e(),t("b-col",{staticClass:"p-1",attrs:{md:"auto"}},[t("label",{staticClass:"m-1",attrs:{for:"attribute"}},[e._v(e._s(e.$t("Attribute"))+":")])]),t("b-col",{attrs:{md:"auto"}},[t("b-form-select",{attrs:{size:"sm",id:"attribute",options:e.corpusBagInfo.attributes,"xxv-model":"stateStore.wordList.attribute","value-field":"name","text-field":"name"},on:{input:e.setAttribute},model:{value:e.attribute,callback:function(t){e.attribute=t},expression:"attribute"}})],1),t("b-col",{staticClass:"p-1",attrs:{md:"auto"}},[t("label",{staticClass:"m-1",attrs:{for:"sort-key"}},[e._v(e._s(e.$t("Sort"))+":")])]),t("b-col",{attrs:{md:"auto"}},[t("b-form-select",{attrs:{size:"sm",id:"sort-key",options:[{value:"frequency",text:e.$t("by frequency")},{value:"alphabetic",text:e.$t("alphabetic")}]},on:{input:e.refresh},model:{value:e.sortKey,callback:function(t){e.sortKey=t},expression:"sortKey"}})],1),t("b-col",{staticClass:"p-1",attrs:{md:"auto"}},[e._v(" | "),t("b-button",{staticClass:"mx-3",attrs:{href:e.apiEndpointKorpuskel+"/match-wordlist.tsv?session-id="+e.sessionStore.sessionId+"&attribute="+e.attribute+"&counts="+e.includeCounts+"&show-atomic-values="+e.stateStore.wordList.atomicValues,size:"sm",variant:"light",target:"_new"}},[t("nobr",[t("b-icon-download"),e._v(" "),"sm"!=e.$mq?t("span",[e._v(e._s(e.$t("Download")))]):e._e()],1)],1),t("b-form-checkbox",{attrs:{size:"sm",inline:""},model:{value:e.includeCounts,callback:function(t){e.includeCounts=t},expression:"includeCounts"}},[e._v(" "+e._s(e.$t("include counts")))])],1)],1),e.busy?e._e():t("b-row",[t("b-container",[t("ol",{class:"list-unstyled word-list "+e.$mq},e._l(e.rows,(function(s,o){return t("li",{key:o,staticClass:"word-list-item"},[[t("span",{staticClass:"d-flex justify-content-between nobr"},[s.value.length<27?t("b-button",{staticClass:"list-button",attrs:{variant:"link"},on:{click:function(t){return e.setChildQuery(s.value,s.matches)}}},[e._v(" "+e._s(s.value)+" ")]):t("b-button",{staticClass:"list-button",attrs:{variant:"link",title:s.value},on:{click:function(t){return e.setChildQuery(s.value,s.matches)}}},[e._v(" "+e._s(s.value.substring(0,24))+"… ")]),t("span",{staticClass:"word-list-numerals"},[e.includeCounts?t("span",{attrs:{title:e.$t("count")}},[e._v(e._s(s.count+" "))]):e._e()])],1)]],2)})),0)])],1)],1)},$t=[];o["default"].use(g["a"],{breakpoints:{xs:576,sm:768,md:992,lg:1200,xl:1/0}});var Ft={name:"wordList",mixins:[v["b"]],props:["tabs"],data:function(){return{currentPage:1,gotoPageNr:null,busy:!1,attribute:"word",perPage:80,wordListSize:-1,filteredWordListSize:-1,parametersChanged:!1,progress:0,sortKey:"frequency",threshold:0,pollDelay:200,apiEndpointKorpuskel:Qs,includeCounts:!0,rows:[],date:"2022-02-24"}},mounted:function(){window.addEventListener("keydown",this.onKeyDown),"lg"==this.$mq?this.perPage=81:this.perPage=80},destroyed:function(){window.removeEventListener("keydown",this.onKeyDown)},methods:{wordListProvider:function(){let e=this.callCorpusAPI("get-new-words",{corpus:"avis-plain","sort-key":this.sortKey,date:this.date,start:(this.currentPage-1)*this.perPage,end:this.currentPage*this.perPage}).catch(this.showAlert);return e.then(e=>{console.log("wordListProvider"),console.log(e),this.wordListSize=e.wordListSize,this.filteredWordListSize=e.filteredWordListSize,this.rows=e.wordList}).catch(this.showAlert)},setChildQuery:function(e,t){let s=t.map(e=>e.toString()).join(",");this.callCorpusAPI("set-statistics-matches",{value:e,"matches-ids":s}).then(e=>{let t=this.stateStore.attributes.concat(["document","time-interval"]),s=this.stateStore.structures.length?this.stateStore.structures:["_none"];this.callCorpusAPI("set-parameters",{attributes:t,structures:s}).then(()=>{this.queryStore.queryState=e,this.queryStore.changed=!0,this.parametersChanged=!0,this.$root.$emit("bv::refresh::table","kwicConcordanceTable"),this.tabs.tabIndex=0,this.$router.push({path:"/"+this.stateStore.project+"/corpus/concordance"})})}).catch(this.showAlert)},setAttribute:function(){this.parametersChanged=!0,this.currentPage=1,this.computeWordList()},refresh:function(){console.log("refreshing… computeWordList"),this.closePopups("wordList"),this.wordListProvider()},gotoPage:function(e){this.currentPage=this.gotoPageNr,e.preventDefault()}}},Bt=Ft,Gt=Object(d["a"])(Bt,Ot,$t,!1,null,null,null),Vt=Gt.exports,Kt=function(){var e=this,t=e._self._c;return t("div",[t("b-card",[e.canEdit&&e.app.documentationEditMode?t("b-form",{attrs:{inline:""}},["show"==e.mode&&e.canEdit?[t("b-button",{staticClass:"small m-2 p-1 px-2",attrs:{variant:"light"},on:{click:e.showWikiSource}},[e._v(" Edit ")]),e.versions.length>1?[t("label",{staticClass:"m-2",attrs:{for:"select-version"}},[e._v(" Version: ")]),t("b-form-select",{staticClass:"m-2",attrs:{size:"sm",id:"select-version",options:e.versions},on:{change:function(t){return e.showWikiPage(!0)}},model:{value:e.version,callback:function(t){e.version=t},expression:"version"}})]:e._e()]:["source"==e.mode?t("b-button",{staticClass:"small m-2",on:{click:function(t){e.mode="show"}}},[e._v("Discard")]):e._e(),"source"==e.mode?t("b-button",{staticClass:"small m-2",on:{click:e.saveWikiSource}},[e._v("Save")]):e._e()]],2):e._e(),t("b-card-text",["show"==e.mode?t("div",{staticClass:"wiki-page",domProps:{innerHTML:e._s(e.pageHTML)}}):e._e(),"source"==e.mode?t("b-form-textarea",{attrs:{rows:"30","xxmax-rows":"1000"},model:{value:e.pageSource,callback:function(t){e.pageSource=t},expression:"pageSource"}}):e._e()],1)],1)],1)},Ut=[],Ht={name:"documentation",mixins:[v["b"]],metaInfo:{title:"Documentation"},data:function(){return{pageHTML:null,pageSource:null,mode:"show",version:null,versions:[],canEdit:!1,app:oo}},created:function(){this.showWikiPage()},watch:{$route(e,t){if(t.path!=e.path){this.showWikiPage();let t=this.stateStore.docPath.findIndex(t=>t.to==e.params.page);t>=0&&this.stateStore.docPath.splice(t,this.stateStore.docPath.length-t)}}},methods:{showWikiPage:function(e){let t=this.$route.params.page,s=this.stateStore.docPath;if(t){let s=this.stateStore.docPath.findIndex(e=>e.to==t);s>=0&&this.stateStore.docPath.splice(s,this.stateStore.docPath.length-s),this.callCorpusAPI("get-wiki-page",{"page-id":t,"page-version":e?this.version:null,language:this.stateStore.locale}).then(e=>{this.stateStore.docPath.push({to:t,text:e.name||t.replace(/_/g," ")}),this.pageHTML=e.html,this.versions=e.versions.map(e=>({text:e.date+(e.user?" ["+e.user+"]":""),value:e.value,disabled:e.disabled})),this.version=e.version,this.canEdit=e.canEdit,this.$nextTick(()=>{let e=[].slice.call(Array.from(document.getElementsByClassName("wiki-sublink")));e.forEach(e=>{e.addEventListener("click",()=>{this.$router.push({path:e.getAttribute("page")})})})})}).catch(this.showAlert)}else null!==s&&void 0!==s&&s.length?(t=s[s.length-1].to,this.stateStore.docPath.pop(),this.$router.push({path:t})):this.$router.push({path:"documentation"})},showWikiSource:function(){let e=this.$route.params.page;this.callCorpusAPI("get-wiki-source",{"page-id":e,language:this.stateStore.locale}).then(e=>{this.pageSource=e.text,this.mode="source"}).catch(this.showAlert)},saveWikiSource:function(){let e=this.$route.params.page;this.callCorpusAPI("save-wiki-source",{"page-id":e,language:this.stateStore.locale},null,"PUT","markup="+encodeURIComponent(this.pageSource)).then(e=>{this.pageHTML=e.html,this.pageSource=null,this.mode="show",this.versions=e.versions.map(e=>({text:e.date+(e.user?" ["+e.user+"]":""),value:e.value,disabled:e.disabled})),this.version=e.version,this.canEdit=e.canEdit,this.$nextTick(()=>{let e=[].slice.call(Array.from(document.getElementsByClassName("wiki-sublink")));e.forEach(e=>{e.addEventListener("click",()=>{this.$router.push({path:e.getAttribute("page")})})})})}).catch(this.showAlert)}}},Qt=Ht,Wt=(s("7866"),Object(d["a"])(Qt,Kt,Ut,!1,null,null,null)),Jt=Wt.exports,Xt=function(){var e=this,t=e._self._c;return t("div",[t("b-card",[t("b-card-text",[e.app.documentationEditMode?t("router-link",{attrs:{to:"/"+e.proj+"/documentation/"+(e.homePageId||"korpuskel-home")}},[e._v(" "+e._s(e.$t("Edit"))+" ")]):e._e(),t("div",{staticClass:"wiki-page",domProps:{innerHTML:e._s(e.pageHTML)}})],1)],1)],1)},Yt=[],Zt={name:"korpuskel-home",props:["homePageId","project"],mixins:[v["b"]],metaInfo:{title:"Home"},components:{},data:function(){return{pageHTML:null,pageSource:null,app:oo}},created:function(){this.showWikiPage()},computed:{proj:function(){return this.project||this.$route.params.project}},methods:{showWikiPage:function(){let e=this.homePageId||"korpuskel-home";this.callCorpusAPI("get-wiki-page",{"page-id":e,language:this.stateStore.locale}).then(e=>{this.pageHTML=e.html,this.pageHTML&&this.$nextTick(()=>{let e=[].slice.call(document.getElementsByClassName("wiki-sublink"));e.forEach(e=>{e.addEventListener("click",()=>{this.$router.push({path:e.getAttribute("page")})})})})}).catch(this.showAlert)}}},es=Zt,ts=(s("d28b"),Object(d["a"])(es,Xt,Yt,!1,null,null,null)),ss=ts.exports,os=function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("Administration")]),e.sessionStore.userId?t("b-card",{attrs:{"no-body":""}},[t("b-tabs",{attrs:{card:""}},[t("b-tab",{attrs:{title:"General"}},[t("b-card-text",[t("b-row",[t("b-col",[t("b-form-group",{attrs:{label:"Edit mode"}},[t("b-form-radio",{attrs:{name:"edit-mode",value:!1},model:{value:e.app.documentationEditMode,callback:function(t){e.$set(e.app,"documentationEditMode",t)},expression:"app.documentationEditMode"}},[e._v("off")]),t("b-form-radio",{attrs:{name:"edit-mode",value:!0},model:{value:e.app.documentationEditMode,callback:function(t){e.$set(e.app,"documentationEditMode",t)},expression:"app.documentationEditMode"}},[e._v("on")])],1)],1)],1)],1)],1),t("b-tab",{attrs:{title:"Users",active:""}},[t("b-card-text",[t("b-row",[t("b-col",[t("user-admin",{attrs:{apiEndpoint:e.apiEndpoint,userSession:e.sessionStore,family:"corpus"}})],1),t("b-col",[t("user-admin",{attrs:{apiEndpoint:e.apiEndpoint,userSession:e.sessionStore,family:"corpus",secondary:!0}})],1)],1)],1)],1)],1)],1):e._e()],1)},ns=[],as=s("df76"),is=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{height:"64em","overflow-y":"scroll",position:"relative"}},[t("b-row",[t("b-col",{staticStyle:{"max-width":"48em"}},[t("b-row",{staticClass:"m-1"},[t("b-col",[t("h3",[e._v("Users")])])],1),t("b-row",{staticClass:"m-2"},[t("b-col",[t("b-form",{attrs:{inline:""},on:{submit:function(e){e.stopPropagation(),e.preventDefault()}}},[t("label",{staticClass:"mr-sm-2",attrs:{for:"uname"+(e.secondary?"-sec":"")}},[e._v("Name:")]),t("b-form-input",{attrs:{placeholder:"Name substring",id:"uname"+(e.secondary?"-sec":""),name:"search",autocomplete:"off",autocorrect:"off",spellcheck:"false",autocapitalize:"off"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getUsers(!0,!0)}},model:{value:e.userName,callback:function(t){e.userName=t},expression:"userName"}})],1)],1)],1),t("b-row",{staticClass:"m-2"},[t("b-col",[t("small",[e._v("Filters for resource family "),t("strong",[e._v(e._s(e.family))]),e._v(" (Filter conditions and values in filters are combined by OR, except credential values, which are combined by AND):")])])],1),t("b-row",{staticClass:"m-2"},[t("b-col",[t("b-form",{attrs:{inline:""},on:{submit:function(e){e.stopPropagation(),e.preventDefault()}}},[t("label",{staticClass:"mr-sm-2",attrs:{for:"credentials-filter"+(e.secondary?"-sec":"")}},[e._v("credentials:")]),"credentials"==e.selectFilter?t("div",[t("div",{staticClass:"select-menu",staticStyle:{"max-width":"30em",background:"white"}},[e._v(" Filter by credentials: "),t("b-form",{attrs:{inline:""}},[t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"secondary",size:"sm",align:"center"},on:{click:function(t){return t.stopPropagation(),e.setFilter.apply(null,arguments)}}},[e._v(" Use ")]),t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"secondary-outline",size:"sm",align:"center"},on:{click:function(t){t.stopPropagation(),e.selected=[]}}},[e._v(" Clear ")]),t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"secondary-outline",size:"sm",align:"center"},on:{click:function(t){return t.stopPropagation(),e.closeFilter.apply(null,arguments)}}},[e._v(" Cancel ")]),t("b-form-checkbox",{staticClass:"m-0 py-1",attrs:{size:"sm"},model:{value:e.showAllCredentials,callback:function(t){e.showAllCredentials=t},expression:"showAllCredentials"}},[t("small",[e._v("Show all")])])],1),t("b-form",{on:{click:function(e){e.stopPropagation()}}},[t("b-list-group",{staticClass:"sm"},[t("b-form-checkbox-group",{staticClass:"m-0 py-1",attrs:{size:"sm"},model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}},e._l(e.filteredCredentials(e.family),(function(s,o){return t("b-list-group-item",{key:o,staticClass:"p-0"},[t("b-form-checkbox",{staticClass:"m-0 py-1",attrs:{size:"sm",value:s.name}},[e._v(" "+e._s(s.name)+" ")])],1)})),1)],1)],1)],1)]):e._e(),"credentials"==e.selectFilter||e.filter.credentials&&e.filter.credentials.length?e._e():t("b-badge",{staticClass:"btn",attrs:{variant:"light",id:"credentials-filter"+(e.secondary?"-sec":"")},on:{click:function(t){return e.chooseFilterResources("credentials")}}},[e._v(" select ")]),t("span",{staticClass:"link",on:{click:function(t){return e.chooseFilterResources("credentials")}}},e._l(e.filter["credentials"],(function(s,o){return t("span",{key:o,staticClass:"dot"},[e._v(" "+e._s(s)+" ")])})),0)],1)],1)],1),e._l(["resources","languages","collections"],(function(s){return t("b-row",{key:s,staticClass:"m-2"},[t("b-col",[t("b-form",{attrs:{inline:""},on:{submit:function(e){e.stopPropagation(),e.preventDefault()}}},[t("label",{staticClass:"mr-sm-2",attrs:{for:"type-filter"}},[e._v(e._s(s)+":")]),e.selectFilter==s?t("div",[t("div",{staticClass:"select-menu",staticStyle:{"max-width":"30em",background:"white"}},[e._v(" Filter by "+e._s(s)+": "),t("b-form",{attrs:{inline:""}},[t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"secondary",size:"sm",align:"center"},on:{click:function(t){return t.stopPropagation(),e.setFilter.apply(null,arguments)}}},[e._v(" Use ")]),t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"secondary-outline",size:"sm",align:"center"},on:{click:function(t){t.stopPropagation(),e.selected=[]}}},[e._v(" Clear ")]),t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"secondary-outline",size:"sm",align:"center"},on:{click:function(t){return t.stopPropagation(),e.closeFilter.apply(null,arguments)}}},[e._v(" Cancel ")])],1),t("b-form",{attrs:{inline:""},on:{click:function(e){e.stopPropagation()}}},[t("b-form-checkbox-group",{staticClass:"m-0 py-1",attrs:{size:"sm",options:e.filterResources[s],"value-field":"name","text-field":"name"},model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}})],1)],1)]):e._e(),e.selectFilter==s||e.filter[s]&&e.filter[s].length?e._e():t("b-badge",{staticClass:"btn",attrs:{variant:"light"},on:{click:function(t){return e.chooseFilterResources(s)}}},[e._v("select")]),t("span",{staticClass:"link",on:{click:function(t){return e.chooseFilterResources(s)}}},e._l(e.filter[s],(function(s,o){return t("span",{key:o,staticClass:"dot"},[e._v(" "+e._s(s)+" ")])})),0)],1)],1)],1)})),t("b-row",[t("b-col",{staticClass:"m-2"},[t("b-button",{staticClass:"m-2 py-0",attrs:{xxvariant:"secondary",size:"sm",align:"center"},on:{click:function(t){return e.getUsers(!0,!0)}}},[e._v(" Search ")]),t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"secondary-outline",size:"sm",align:"center"},on:{click:function(t){e.filter={},e.userName=null}}},[e._v(" Reset ")])],1)],1),e.busy?t("b-row",[t("b-col",{staticClass:"m-3"},[t("b-icon",{attrs:{icon:"three-dots",animation:"cylon","font-scale":"4"}})],1)],1):e._e(),e.usersCount?t("b-row",[t("b-col",{staticClass:"m-1"},[e._v(" "+e._s(1==e.usersCount?"One match":e.usersCount+" matches")+" ")])],1):e._e(),t("b-row",[t("b-col",{attrs:{cols:"auto"}},[e.usersCount>e.perPage?t("b-pagination",{staticClass:"m-3",attrs:{size:"sm","total-rows":e.usersCount,"per-page":e.perPage,"first-number":"","last-number":""},on:{change:function(t){return e.getUsers(!0)}},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}}):e._e()],1)],1),t("b-row",[t("b-col",[t("b-list-group",e._l(e.users,(function(s,o){return t("b-list-group-item",{key:o,staticStyle:{cursor:"pointer"},attrs:{xxactive:"i==activeId"},on:{click:function(t){return e.getUser(s,o)}}},[e.user!=s?[t("h2",{staticClass:"user-name"},[e._v(e._s(s.user_name)+" "),s.roles.length?t("b-badge",{attrs:{variant:"success"}},[e._v(e._s(s.roles.length))]):e._e()],1),t("small",[e._v(e._s(s.mail))])]:[t("div",{staticClass:"user-chosen"},[t("span",{staticClass:"float-right ml-2 pointer",on:{click:function(t){t.stopPropagation(),e.user=null}}},[e._v("×")]),t("h2",{staticClass:"user-name-chosen"},[e._v(e._s(s.user_name))]),t("b-col",[t("b-row",[t("b-list-group",[e.user.user_id!=e.userSession.userId?t("b-list-group-item",{staticClass:"py-1"},[t("b-form",{attrs:{inline:""}},[e.askDeleteUser?e._e():t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"outline-secondary",size:"sm",align:"center"},on:{click:function(t){t.stopPropagation(),e.askDeleteUser=!0}}},[e._v(" Delete user ")]),e.askDeleteUser?t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"outline-secondary",size:"sm",align:"center"},on:{click:function(t){t.stopPropagation(),e.askDeleteUser=!1}}},[e._v(" Cancel ")]):e._e(),e.askDeleteUser?t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"outline-secondary",size:"sm",align:"center"},on:{click:function(t){return t.stopPropagation(),e.deleteUser.apply(null,arguments)}}},[e._v(" Confirm deletion ")]):e._e()],1)],1):e._e(),t("b-list-group-item",{staticClass:"py-1"},[t("strong",{staticClass:"title"},[e._v("ID:")]),e._v(" "+e._s(e.user.user_id)+" ")]),t("b-list-group-item",{staticClass:"py-1"},[t("strong",{staticClass:"title"},[e._v("Email:")]),e._v(" "+e._s(e.user.mail)+" ")]),e.user.entitlement?t("b-list-group-item",{staticClass:"py-1"},[t("strong",{staticClass:"title"},[e._v("Entitlement: ")]),t("span",e._l(e.user.entitlement,(function(s,o){return t("span",{key:o,staticClass:"text-break dot"},[e._v(e._s(s))])})),0)]):e._e(),t("b-list-group-item",{staticClass:"py-1"},[t("strong",{staticClass:"title"},[e._v("Credentials:")]),t("drop",{staticClass:"drop",class:{over:e.over},on:{dragover:e.acceptDrop,dragleave:function(t){e.over=!1},drop:e.handleDrop}},[e.user.roles.length?e._e():t("p",[t("small",[e._v("(none)")])]),t("small",[e.user.roles.length?t("b-table",{attrs:{small:"","no-border-collapse":"",fields:e.credFields,items:e.user.roles,"tbody-tr-class":"cred"},scopedSlots:e._u([{key:"cell(family)",fn:function(s){return[s.value==e.family?t("drag",{staticClass:"drag",attrs:{"transfer-data":s.item}},[t("div",{staticClass:"cred-cell"},[e._v(" "+e._s(s.value)+" ")])]):t("span",[e._v(" "+e._s(s.value)+" ")])]}},{key:"cell(credentials)",fn:function(s){return[t("div",{staticClass:"cred-cell",on:{click:function(t){return e.chooseCredentials(s.item)}}},[s.value?e._e():t("span",{staticClass:"text-muted"},[e._v("(click to add)")]),e.selectMenu!="credentials"+s.item.role_id?t("b-list-group",{staticClass:"sm"},e._l(s.value,(function(s,o){return t("b-list-group-item",{key:o,staticClass:"p-0"},[e._v(" "+e._s(s.name)+" ")])})),1):e._e(),e.selectMenu=="credentials"+s.item.role_id?t("div",{staticClass:"select-menu",staticStyle:{"max-width":"30em"}},[t("b-form",{attrs:{inline:""}},[t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"secondary",size:"sm",align:"center"},on:{click:function(t){return t.stopPropagation(),e.storeCredentials(s.item.role_id)}}},[e._v(" Store ")]),t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"secondary-outline",size:"sm",align:"center"},on:{click:function(t){return t.stopPropagation(),e.closeMenu.apply(null,arguments)}}},[e._v(" Cancel ")]),t("b-form-checkbox",{staticClass:"m-0 py-1",attrs:{size:"sm"},model:{value:e.showAllCredentials,callback:function(t){e.showAllCredentials=t},expression:"showAllCredentials"}},[t("small",[e._v("Show all")])])],1),t("b-form",{on:{click:function(e){e.stopPropagation()}}},[t("b-list-group",{staticClass:"sm"},[t("b-form-checkbox-group",{staticClass:"m-0 py-1",attrs:{size:"sm"},model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}},e._l(e.filteredCredentials(s.item.family),(function(s,o){return t("b-list-group-item",{key:o,staticClass:"p-0"},[t("b-form-checkbox",{staticClass:"m-0 py-1",attrs:{size:"sm",value:s.name}},[e._v(" "+e._s(s.name)+" ")])],1)})),1)],1)],1)],1):e._e()],1)]}},{key:"cell(resources)",fn:function(s){return[t("div",{staticClass:"cred-cell",on:{click:function(t){return e.chooseResources(s.item,"resources")}}},[s.value?e._e():t("span",{staticClass:"text-muted"},[e._v("(all)")]),e.selectMenu!="resources"+s.item.role_id?t("div",{staticStyle:{"max-width":"16em"}},e._l(s.value,(function(s,o){return t("span",{key:o,staticClass:"dot"},[e._v(" "+e._s(s)+" ")])})),0):e._e(),e.selectMenu=="resources"+s.item.role_id?t("div",{staticClass:"select-menu",staticStyle:{"max-width":"30em"}},[t("b-form",{attrs:{inline:""}},[t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"secondary",size:"sm",align:"center"},on:{click:function(t){return t.stopPropagation(),e.storeResources(s.item.role_id,"resources")}}},[e._v(" Store ")]),t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"secondary-outline",size:"sm",align:"center"},on:{click:function(t){return t.stopPropagation(),e.cancelUpdateResources(s.item,"resources")}}},[e._v(" Cancel ")])],1),t("b-form",{attrs:{inline:""},on:{click:function(e){e.stopPropagation()}}},[t("b-form-checkbox-group",{staticClass:"m-0 py-1",attrs:{size:"sm",options:e.resources.resources,"value-field":"name","text-field":"name"},on:{input:function(t){return e.updateResources(s.item,"resources")}},model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}})],1)],1):e._e()])]}},{key:"cell(languages)",fn:function(s){return[t("div",{staticClass:"cred-cell",on:{click:function(t){return e.chooseResources(s.item,"languages")}}},[s.value?e._e():t("span",{staticClass:"text-muted"},[e._v("(all)")]),e.selectMenu!="languages"+s.item.role_id?t("div",{staticStyle:{"max-width":"16em"}},e._l(s.value,(function(s,o){return t("span",{key:o,staticClass:"dot"},[e._v(" "+e._s(s)+" ")])})),0):e._e(),e.selectMenu=="languages"+s.item.role_id?t("div",{staticClass:"select-menu",staticStyle:{"max-width":"30em"}},[t("b-form",{attrs:{inline:""}},[t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"secondary",size:"sm",align:"center"},on:{click:function(t){return t.stopPropagation(),e.storeResources(s.item.role_id,"languages")}}},[e._v(" Store ")]),t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"secondary-outline",size:"sm",align:"center"},on:{click:function(t){return t.stopPropagation(),e.cancelUpdateResources(s.item,"languages")}}},[e._v(" Cancel ")])],1),t("b-form",{attrs:{inline:""},on:{click:function(e){e.stopPropagation()}}},[t("b-form-checkbox-group",{staticClass:"m-0 py-1",attrs:{size:"sm",options:e.resources.languages,"value-field":"name","text-field":"name"},on:{input:function(t){return e.updateResources(s.item,"languages")}},model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}})],1)],1):e._e()])]}},{key:"cell(types)",fn:function(s){return[t("div",{staticClass:"cred-cell",on:{click:function(t){return e.chooseResources(s.item,"types")}}},[s.value?e._e():t("span",{staticClass:"text-muted"},[e._v("(all)")]),e.selectMenu!="types"+s.item.role_id?t("div",{staticStyle:{"max-width":"16em"}},e._l(s.value,(function(s,o){return t("span",{key:o,staticClass:"dot"},[e._v(" "+e._s(s)+" ")])})),0):e._e(),e.selectMenu=="types"+s.item.role_id?t("div",{staticClass:"select-menu",staticStyle:{"max-width":"30em"}},[t("b-form",{attrs:{inline:""}},[t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"secondary",size:"sm",align:"center"},on:{click:function(t){return t.stopPropagation(),e.storeResources(s.item.role_id,"types")}}},[e._v(" Store ")]),t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"secondary-outline",size:"sm",align:"center"},on:{click:function(t){return t.stopPropagation(),e.cancelUpdateResources(s.item,"types")}}},[e._v(" Cancel ")])],1),t("b-form",{attrs:{inline:""},on:{click:function(e){e.stopPropagation()}}},[t("b-form-checkbox-group",{staticClass:"m-0 py-1",attrs:{size:"sm",options:e.resources.types,"value-field":"name","text-field":"name"},on:{input:function(t){return e.updateResources(s.item,"types")}},model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}})],1)],1):e._e()])]}},{key:"cell(collections)",fn:function(s){return[t("div",{staticClass:"cred-cell",on:{click:function(t){return e.chooseResources(s.item,"collections")}}},[s.value?e._e():t("span",{staticClass:"text-muted"},[e._v("(all)")]),e.selectMenu!="collections"+s.item.role_id?t("div",{staticStyle:{"max-width":"16em"}},e._l(s.value,(function(s,o){return t("span",{key:o,staticClass:"dot"},[e._v(" "+e._s(s)+" ")])})),0):e._e(),e.selectMenu=="collections"+s.item.role_id?t("div",{staticClass:"select-menu",staticStyle:{"max-width":"30em"}},[t("b-form",{attrs:{inline:""}},[t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"secondary",size:"sm",align:"center"},on:{click:function(t){return t.stopPropagation(),e.storeResources(s.item.role_id,"collections")}}},[e._v(" Store ")]),t("b-button",{staticClass:"m-2 py-0",attrs:{variant:"secondary-outline",size:"sm",align:"center"},on:{click:function(t){return t.stopPropagation(),e.cancelUpdateResources(s.item,"collections")}}},[e._v(" Cancel ")])],1),t("b-form",{attrs:{inline:""},on:{click:function(e){e.stopPropagation()}}},[t("b-form-checkbox-group",{staticClass:"m-0 py-1",attrs:{size:"sm",options:e.resources.collections,"value-field":"name","text-field":"name"},on:{input:function(t){return e.updateResources(s.item,"collections")}},model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}})],1)],1):e._e()])]}},{key:"cell(delete)",fn:function(s){return[t("b-icon-trash",{staticClass:"link",on:{click:function(t){return e.deleteRole(s.item.role_id)}}})]}}],null,!0)}):e._e(),t("p",[t("b-badge",{staticClass:"btn",attrs:{variant:"light"},on:{click:e.addRole}},[e._v(" Add role ")])],1)],1)])],1)],1)],1)],1)],1)]],2)})),1)],1)],1)],2)],1)],1)},rs=[];s("fa92");const ls="https://clarino.uib.no/comedi/";var cs=ls;function us(e){e&&(cs=e)}var ds={sessionId:null,userId:null,userName:null},ps={message:null,show:!1},hs={profiles:[],owners:[],groups:{},lang_names:{},loaded:0,changeId:0,editMode:!1,metadata:null,grantingGroups:[],writeAccessStatus:null,writeAccessRequests:[],selectComponent:null,selectPID:null,snapshots:[],snapshotSaved:!1,activeTopCompId:1,owner:null,identifierFilter:null};function ms(e,t,s){return e=cs+e,fetch(e,{headers:"PUT"==t?{"Content-Type":"application/x-www-form-urlencoded"}:{},credentials:"include",method:t||"GET",body:s}).then(e=>e.json()).then(e=>{if(e.error)throw new Error(e.error);return e})}const fs={data(){return{session:ds,alert:ps,comediInfo:hs}},methods:{showAlert:function(e){this.alert.message=e,this.alert.show=!0},dismissAlert:function(){this.alert.message=null,this.alert.show=!1},initComedi:function(){this.callAPI("get-session").then(e=>{e&&(e.expired?(ds.sessionId=null,this.showAlert("Session has expired. Please sign in again.")):(ds.sessionId=e.sessionId,ds.userId=e.userId,ds.userName=e.userName,ds.credentials=e.credentials,hs.owner=e.userId||"-",this.callAPI("get-profiles").then(e=>{hs.profiles=e.profiles,hs.loaded++}),this.callAPI("get-owners").then(e=>{hs.owners=e.owners,hs.writeAccessRequests=e.writeAccessRequests,hs.loaded++}),this.callAPI("get-groups").then(e=>{hs.groups=e.groups,hs.loaded++})))}).catch(this.showAlert)},callAPI:function(e,t,s,o){let n=(null===t||void 0===t?void 0:t["page"])||"rest",a=n+"?command="+e+"&session-id="+this.session.sessionId;return t&&Object.keys(t).map((function(e){let s=t[e];a+="&"+e+"="+encodeURIComponent(s)})),ms(a,s,o).then(e=>{if(!e)throw new Error("The COMEDI server returned no result.");return e})},hilite:function(){oo.activeComp&&(oo.activeComp.active=!1),this.active=!0,oo.activeComp=this}}};var gs=s("84ba"),bs=s("1035");gs["a"].component("drag",bs["Drag"]),gs["a"].component("drop",bs["Drop"]);const vs=["family","credentials","resources","types","languages","collections","delete"];var ks={name:"user-admin",props:["apiEndpoint","userSession","secondary","family"],mixins:[fs],data:function(){return{app:oo,users:[],user:null,busy:!1,currentPage:1,perPage:20,usersCount:0,credFields:vs,userName:null,activeId:null,selectMenu:null,selectFilter:null,filter:{},familyCredentials:[],familyResources:[],familyTypes:[],familyLanguages:[],familyCollections:[],selected:[],undoSelected:null,showAllCredentials:!1,resources:{},filterResources:{},queryId:0,askDeleteUser:!1,over:!1}},created:function(){this.apiEndpoint&&us(this.apiEndpoint),this.getUsers(!0),this.getCredentials(),this.getResources()},methods:{getUsers:function(e,t){this.user=null,this.askDeleteUser=!1,e&&(this.activeId=null),(!this.secondary||this.userName||this.filter["credentials"]||this.filter["languages"]||this.filter["collections"]||this.filter["resources"])&&(t&&(this.busy=!0,this.users=[],this.currentPage=1),this.$nextTick(()=>{let t=++this.queryId;this.callAPI("get-users",{start:(this.currentPage-1)*this.perPage,end:this.currentPage*this.perPage-1,idp:"clarin","user-name-filter":this.userName||"","role-filter":this.filter["credentials"]||[],"languages-filter":this.filter["languages"]||[],"collections-filter":this.filter["collections"]||[],"resources-filter":this.filter["resources"]||[]}).then(s=>{t==this.queryId&&(this.usersCount=s.count,this.users=s.users,e||(this.user=this.users[this.activeId]),this.busy=!1)}).catch(this.showAlert)}))},getUser:function(e,t){this.user=e,this.activeId=t},deleteUser:function(){this.askDeleteUser=!1,this.callAPI("delete-user",{"role-user-id":this.user.user_id}).then(()=>this.getUsers(!0)).catch(this.showAlert)},setFilter:function(){this.filter[this.selectFilter]=this.selected,this.selectFilter=null,this.closeFilter()},getCredentials:function(){this.callAPI("get-credentials").then(e=>this.familyCredentials=e.family_credentials).catch(this.showAlert)},getResources:function(){this.callAPI("get-resources").then(e=>this.familyResources=e.family_resources).catch(this.showAlert)},addRole:function(){this.callAPI("add-role",{"role-user-id":this.user.user_id,"resource-family":this.family}).then(e=>{this.users[this.activeId]=e.user,this.user=e.user}).catch(this.showAlert)},deleteRole:function(e){this.callAPI("delete-role",{"role-user-id":this.user.user_id,"role-id":e}).then(e=>{this.users[this.activeId]=e.user,this.user=e.user}).catch(this.showAlert)},chooseResources:function(e,t){var s;this.selected=e[t],this.undoSelected=null===(s=this.selected)||void 0===s?void 0:s.map(e=>e),this.resources[t]=this.familyResources[e.family][t],this.resources[t].length&&(this.selectMenu=t+e.role_id)},chooseFilterResources:function(e){var t,s;"credentials"==e?(this.selected=this.filter[e]||[],this.filterResources[e]=this.filteredCredentials(this.family),this.selectFilter=e):(this.selected=this.filter[e]||[],this.filterResources[e]=null===(t=this.familyResources[this.family])||void 0===t?void 0:t[e],null!==(s=this.filterResources[e])&&void 0!==s&&s.length&&(this.selectFilter=e))},updateResources:function(e,t){e[t]=this.selected},cancelUpdateResources:function(e,t){e[t]=this.undoSelected,this.closeMenu()},storeResources:function(e,t){this.closeMenu(),this.callAPI("store-resources",{"role-user-id":this.user.user_id,"role-id":e,type:t,values:this.selected}).then(e=>{this.users[this.activeId]=e.user,this.user=e.user}).catch(this.showAlert)},chooseCredentials:function(e){var t;this.selected=(null===(t=e.credentials)||void 0===t?void 0:t.map(e=>e.name))||[],this.selectMenu="credentials"+e.role_id},storeCredentials:function(e){this.closeMenu(),this.callAPI("store-credentials",{"role-user-id":this.user.user_id,"role-id":e,"role-credentials":this.selected}).then(e=>{this.users[this.activeId]=e.user,this.user=e.user}).catch(this.showAlert)},filteredCredentials:function(e){var t;return null===(t=this.familyCredentials[e])||void 0===t?void 0:t.filter(e=>e.show||this.selected.find(t=>t==e.name)||this.showAllCredentials)},closeMenu:function(){this.selectMenu=null},closeFilter:function(){this.selectFilter=null},handleDrop:function(e){console.log(this.user.roles),console.log(e),console.log(e.family),e.user_id!=this.user.user_id&&e.family==this.family&&this.callAPI("add-role",{"role-user-id":this.user.user_id,"resource-family":e.family,role:e.role,resources:e.resources||[],collections:e.collections||[],languages:e.languages||[],types:e.types||[]}).then(e=>{this.users[this.activeId]=e.user,this.user=e.user,this.over=!1}).catch(this.showAlert)},acceptDrop:function(e){e.user_id!=this.user.user_id&&e.family==this.family&&(this.over=!0)}}},ys=ks,Ss=(s("0ac1"),Object(d["a"])(ys,is,rs,!1,null,null,null)),ws=Ss.exports;o["default"].component("drag",as["Drag"]),o["default"].component("drop",as["Drop"]);var Cs={name:"korpuskel-admin",props:["apiEndpoint"],mixins:[v["b"]],metaInfo:{title:"Admin"},components:{userAdmin:ws},data:function(){return{app:oo}}},xs=Cs,_s=(s("ccb4"),Object(d["a"])(xs,os,ns,!1,null,null,null)),As=_s.exports,Ls=function(){var e=this,t=e._self._c;return t("div",[t("h1",{staticClass:"heading ml-4 mb-0 p-2 pt-2"},[e._v("CG3 Parse")]),t("b-container",{staticClass:"p-3"},[t("b-row",{staticClass:"my-1 mx-0"},[t("b-col",{staticClass:"m-3 p-0"},[t("p",[e._v(" Here you can parse sentences with the morphological analyser that is being developed for Abkhaz. ")]),t("p",[e._v(" Write a sentence or shorter text and click the ‘Parse’ button. You can click on the morphosyntactic features of the analyzed text to have them explained. ")])])],1),t("b-row",[t("b-col",[t("b-form-textarea",{ref:"textarea",staticStyle:{"max-width":"60em"},attrs:{rows:"6",placeholder:"Text to be parsed"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.parseText("parse"))}},model:{value:e.parseStore.text,callback:function(t){e.$set(e.parseStore,"text",t)},expression:"parseStore.text"}})],1)],1),t("b-row",{attrs:{"align-v":"center"}},[t("b-col",{attrs:{sm:"auto"}},[t("b-form",{attrs:{inline:""}},[t("b-button",{staticClass:"m-3",attrs:{size:"sm",inline:"",variant:"primary"},on:{click:function(t){return e.parseText("parse")}}},[e._v(" Parse ")]),t("b-button",{staticClass:"m-3",attrs:{size:"sm",inline:"",variant:"secondary"},on:{click:function(t){return e.parseText("redisambiguate")}}},[e._v(" Rerun CG3 ")]),t("b-form-checkbox",{staticClass:"m-1 p-2 pl-4",attrs:{size:"sm"},model:{value:e.parseStore.showRules,callback:function(t){e.$set(e.parseStore,"showRules",t)},expression:"parseStore.showRules"}},[e._v(" "+e._s(e.$t("Show rules"))+" ")]),e.sessionStore.userId?t("b-button",{staticClass:"ml-3",attrs:{size:"sm",variant:"light"},on:{click:e.downloadDependencies}},[e._v(" "+e._s(e.$t("Download Conll"))+" ")]):e._e()],1)],1)],1),t("b-row",[t("b-col",[t("parseTable",{attrs:{noPagination:!0,parseText:!0}})],1)],1)],1)],1)},Ps=[],qs={name:"cg3Parse",props:[],components:{parseTable:Ze},mixins:[v["b"]],computed:{...Object(k["e"])(v["c"])},methods:{parseText:function(e){this.dismissAlert(),this.parseStore.busy=!0,this.parseStore.tokenId=null,this.callCorpusAPI("parse",{language:this.parseStore.language,mode:e||"parse","show-all-readings":!0,dependencies:!0},null,"POST","text="+("redisambiguate"==e?"":this.parseStore.text.trim())).then(e=>{e&&(this.parseStore.tokens=e.tokens,this.parseStore.canParse=!0,this.parseStore.leftContext=[],this.parseStore.rightContext=[],this.parseStore.tokenCount=e.tokenCount,this.parseStore.focus.tokenId=0,this.parseStore.busy=!1,this.parseStore.mode="cg3-parse",this.$refs.textarea.blur())}).catch(this.showAlert)},downloadDependencies:function(){this.callCorpusAPI("download-dep-conll",{name:"cg3-parse"}).then(e=>{let t=new Blob([e.data],{type:"application/text"}),s=document.createElement("a");s.href=URL.createObjectURL(t),s.download=this.stateStore.documentId+"_"+this.tokenStore.pageName+".conll",s.click(),URL.revokeObjectURL(s.href)}).catch(this.showAlert)}}},Is=qs,Ts=Object(d["a"])(Is,Ls,Ps,!1,null,null,null),Ds=Ts.exports,Ms=function(){var e=this,t=e._self._c;return t("b-container",{staticClass:"m-3",attrs:{id:"menotaLA"}},[t("parseTable",{attrs:{location:"top"}})],1)},Ns=[],Rs={name:"menotaLA",components:{parseTable:Ze},metaInfo:{title:"MLA"}},zs=Rs,Es=Object(d["a"])(zs,Ms,Ns,!1,null,null,null),js=Es.exports,Os=s("2f62"),$s=s("0e44");function Fs(e){return e.corpusList[e.project].map(e=>e.name).sort().toString()}const Bs={state:()=>({project:null,corpusList:{},languageList:{},collectionList:{},excludedCorpusList:{},queryString:{},query:{},attributes:{},structures:{},wordList:{attribute:"word",atomicValues:!1,ignoreCase:!1},distributionParameters:{},parseText:{},kwicPerPage:30,showAnnotations:!1,showSelectedVarOnly:!1,variable:"-",task:"A"}),mutations:{updateCorpusProject(e,t){e.project=t},updateCorpusList(e,t){e.corpusList[e.project]=t},updateLanguageList(e,t){e.languageList[e.project]=t},updateCollectionList(e,t){e.collectionList[e.project]=t},updateExcludedCorpusList(e,t){e.excludedCorpusList[e.project]=t},updateQueryString(e,t){let s=Fs(e);e.queryString[s]=t},updateQuery(e,t){let s=Fs(e);e.query[s]=t},updateAttributes(e,t){let s=Fs(e);e.attributes[s]=t},updateStructures(e,t){let s=Fs(e);e.structures[s]=t},updateWordListAttribute(e,t){e.wordList.attribute=t},updateWordListIgnoreCase(e,t){e.wordList.ignoreCase=t},updateWordListAtomicValues(e,t){e.wordList.atomicValues=t},updateParseText(e,t){let s=Fs(e);e.parseText[s]=t},updateKwicPerPage(e,t){e.kwicPerPage=t},updateShowAnnotations(e,t){e.showAnnotations=t},updateShowSelectedVarOnly(e,t){e.showSelectedVarOnly=t},updateVariable(e,t){e.variable=t},updateTask(e,t){e.task=t},updateDistributionParameters(e,t){let s=Fs(e);console.log("key:"),console.log(s),e.distributionParameters[s]=t}},actions:{changeCorpusProject({commit:e},t){e("updateCorpusProject",t)},changeCorpusList({commit:e},t){e("updateCorpusList",t)},changeLanguageList({commit:e},t){e("updateLanguageList",t)},changeCollectionList({commit:e},t){e("updateCollectionList",t)},changeExcludedCorpusList({commit:e},t){e("updateExcludedCorpusList",t)},changeQueryString({commit:e},t){e("updateQueryString",t)},changeCorpusQuery({commit:e},t){e("updateQuery",t)},changeAttributes({commit:e},t){e("updateAttributes",t)},changeStructures({commit:e},t){e("updateStructures",t)},changeWordListAttribute({commit:e},t){e("updateWordListAttribute",t)},changeWordListIgnoreCase({commit:e},t){e("updateWordListIgnoreCase",t)},changeWordListAtomicValues({commit:e},t){e("updateWordListAtomicValues",t)},changeParseText({commit:e},t){e("updateParseText",t)},changeKwicPerPage({commit:e},t){e("updateKwicPerPage",t)},changeShowAnnotations({commit:e},t){e("updateShowAnnotations",t)},changeShowSelectedVarOnly({commit:e},t){e("updateShowSelectedVarOnly",t)},changeVariable({commit:e},t){e("updateVariable",t)},changeTask({commit:e},t){e("updateTask",t)},changeDistributionParameters({commit:e},t){e("updateDistributionParameters",t)}}};var Gs=s("d3a4");o["default"].use(Os["a"]);const Vs={state:()=>({project:"korpuskel",locale:Gs["b"],acceptedLicenses:[]}),mutations:{updateProject(e,t){console.log("newProject:"),console.log(t),e.project=t},updateLocale(e,t){e.locale=t},updateDocPath(e,t){e.docPath=t},updateAcceptedLicenses(e,t){e.acceptedLicenses=t}},actions:{changeProject({commit:e},t){e("updateProject",t)},changeLocale({commit:e},t){Gs["a"].locale=t,e("updateLocale",t)},changeDocPath({commit:e},t){e("updateDocPath",t)},changeAcceptedLicenses({commit:e},t){e("updateAcceptedLicenses",t)}}},Ks=new Os["a"].Store({modules:{common:Vs,corpus:Bs},plugins:[Object($s["a"])({key:"korpuskel"})]});o["default"].use(a["a"]),o["default"].config.productionTip=!1;const Us="/korpuskel-api/",Hs="https://clarino.uib.no",Qs=Hs+Us,Ws="https://clarino.uib.no/iness-api/";o["default"].use(n["a"]);const Js={mode:"history",base:"/",routes:[{path:"/",redirect:"/korpuskel/home"},{path:"/:project",redirect:"/:project/home"},{name:"main",path:"/:project",component:C},{name:"root",path:"/:project",component:C,children:[{name:"corpus-query",path:"corpus/:bag/:query",component:jt,props:!0},{path:"corpus",redirect:"corpus/concordance"},{name:"corpus-tab",path:"corpus/:view",component:jt},{name:"corpora",path:"corpora",component:M,props:e=>({collections:e.query.collection,languages:e.query.language,bag:e.query.corpus})},{name:"text",path:"text/:corpus?/:document?",component:()=>Promise.all([s.e("chunk-a71d0aa0"),s.e("chunk-a2b48bb8")]).then(s.bind(null,"bfa6"))},{name:"catalogue",path:"catalogue",component:O,props:e=>({collections:e.query.collection,languages:e.query.language,bag:e.query.corpus})},{name:"statistics",path:"statistics",component:Vt},{name:"details",path:"details",component:oe,props:e=>({collections:e.query.collection,languages:e.query.language,bag:e.query.corpus})},{name:"documentation",path:"documentation/:page?",component:Jt,props:!0},{name:"home",path:"home",component:ss,props:!0},{name:"admin",path:"admin",component:As,props:{apiEndpoint:Qs}}]}]},Xs={mode:"history",base:"/",routes:[{path:"/",redirect:"/menota/home"},{path:"/:project",redirect:"/:project/home"},{name:"main",path:"/:project",component:()=>s.e("chunk-352be6e8").then(s.bind(null,"b9ef"))},{name:"root",path:"/:project",component:()=>s.e("chunk-352be6e8").then(s.bind(null,"b9ef")),children:[{name:"corpus-query",path:"corpus/:bag/:query",component:jt,props:!0},{path:"corpus",redirect:"corpus/concordance"},{name:"corpus-tab",path:"corpus/:view",component:jt},{name:"corpora",path:"corpora",component:M,props:e=>({collections:e.query.collection,languages:e.query.language,bag:e.query.corpus})},{name:"catalogue",path:"catalogue/:corpus?",component:O,props:e=>({collections:e.query.collection})},{name:"text",path:"text/:corpus?/:document?",component:()=>Promise.all([s.e("chunk-a71d0aa0"),s.e("chunk-77eaca0a")]).then(s.bind(null,"1c94"))},{name:"mla",path:"mla",component:js},{name:"dictionary",path:"dictionary",component:()=>s.e("chunk-b66052c2").then(s.bind(null,"a6ad"))},{name:"details",path:"details",component:oe,props:e=>({collections:e.query.collection,languages:e.query.language,bag:e.query.corpus})},{name:"documentation",path:"documentation/:page?",component:Jt,props:!0},{name:"home",path:"home",component:ss,props:()=>({homePageId:"menota"})},{name:"admin",path:"admin",component:As,props:{apiEndpoint:Qs}}]}]},Ys={mode:"history",base:"/",routes:[{path:"/",redirect:"/abnc/home"},{path:"/:project",redirect:"/:project/home"},{name:"main",path:"/:project",component:()=>s.e("chunk-4a75d187").then(s.bind(null,"b9b4"))},{name:"root",path:"/:project",component:()=>s.e("chunk-4a75d187").then(s.bind(null,"b9b4")),children:[{name:"corpus-query",path:"corpus/:bag/:query",component:jt,props:!0},{path:"corpus",redirect:"corpus/concordance"},{name:"corpus-tab",path:"corpus/:view",component:jt},{name:"corpora",path:"corpora",component:M,props:e=>({collections:e.query.collection,languages:e.query.language,bag:e.query.corpus})},{name:"catalogue",path:"catalogue",component:K,props:e=>({collections:e.query.collection,languages:e.query.language,bag:e.query.corpus})},{name:"text",path:"text/:corpus?/:author?/:document?",component:()=>Promise.all([s.e("chunk-a71d0aa0"),s.e("chunk-14a180b8")]).then(s.bind(null,"632c"))},{name:"mla",path:"mla",component:js},{name:"parse",path:"parse",component:Ds},{name:"dictionary",path:"dictionary",component:()=>s.e("chunk-46a139e6").then(s.bind(null,"0ce1"))},{name:"details",path:"details",component:oe,props:e=>({collections:e.query.collection,languages:e.query.language,bag:e.query.corpus})},{name:"documentation",path:"documentation/:page?",component:Jt,props:!0},{name:"home",path:"home",component:ss,props:!0},{name:"admin",path:"admin",component:As,props:{apiEndpoint:Qs}}]}]},Zs={mode:"history",base:"/",routes:[{path:"/",redirect:"/gnc/home"},{path:"/:project",redirect:"/:project/home"},{name:"main",path:"/:project",component:()=>s.e("chunk-496173a3").then(s.bind(null,"354e"))},{name:"root",path:"/:project",component:()=>s.e("chunk-496173a3").then(s.bind(null,"354e")),children:[{name:"corpora",path:"corpora",component:M,props:e=>({collections:e.query.collection,languages:e.query.language,bag:e.query.corpus})},{name:"corpus-query",path:"corpus/:bag/:query",component:jt,props:!0},{path:"corpus",redirect:"corpus/concordance"},{name:"corpus-tab",path:"corpus/:view",component:jt},{name:"corpora",path:"corpora",component:M,props:e=>({collections:e.query.collection,languages:e.query.language,bag:e.query.corpus})},{name:"catalogue",path:"catalogue",component:X,props:e=>({collections:e.query.collection,languages:e.query.language,bag:e.query.corpus})},{name:"text",path:"text/:corpus?/:section?/:author?/:document?/:page?",component:()=>Promise.all([s.e("chunk-a71d0aa0"),s.e("chunk-4baf8cbf")]).then(s.bind(null,"afd6"))},{name:"mla",path:"mla",component:js},{name:"parse",path:"parse",component:Ds},{name:"dictionary",path:"dictionary",component:()=>s.e("chunk-6757774d").then(s.bind(null,"ce19"))},{name:"details",path:"details",component:oe,props:e=>({collections:e.query.collection,languages:e.query.language,bag:e.query.corpus})},{name:"documentation",path:"documentation/:page?",component:Jt,props:!0},{name:"home",path:"home",component:ss,props:!0},{name:"admin",path:"admin",component:As,props:{apiEndpoint:Qs}}]}]};var eo=null;switch("menota"){case"menota":eo=Xs;break;case"abnc":eo=Ys;break;case"gnc":eo=Zs;break;default:eo=Js}const to=new n["a"](eo);o["default"].use(k["a"]);const so=Object(k["b"])(),oo=new o["default"]({router:to,i18n:Gs["a"],pinia:so,store:Ks,render:e=>e(h),data:{documentationEditMode:!1},created(){document.documentElement.setAttribute("lang",this.$store.state.common.locale)}});oo.$mount("#app")},"56d8":function(e,t,s){e.exports=s.p+"img/res.1961971d.png"},"57b4":function(e,t,s){"use strict";s.r(t);var o=function(){var e=this,t=e._self._c;return t("fragment",[e.useGrid?t("div",{staticClass:"grid-item seq-group"},[t("div",[t("b-badge",{staticClass:"gq-button",attrs:{variant:"light"},on:{click:e.addPosItem}},[e._v("+")])],1)]):e._e(),e.useGrid&&e.item?e._l(e.item.items,(function(s,o){return t("positionalItem",{key:o,attrs:{xkey:s.id,items:e.item.items,item:s,useGrid:e.useGrid,stringifyQuery:e.stringifyQuery,noOr:e.or&&1==e.item.items.length}})})):e._e(),e.useGrid?e._e():t("tr",{staticClass:"seq-group"},[t("td",[t("b-badge",{staticClass:"gq-button",attrs:{variant:"light"},on:{click:e.addPosItem}},[e._v("+")])],1),e._l(e.item.items,(function(s,o){return t("positionalItem",{key:s.id,attrs:{xkey:o,items:e.item.items,item:s,stringifyQuery:e.stringifyQuery,noOr:e.or&&1==e.item.items.length}})}))],2)],2)},n=[],a=s("44bf"),i=s("3f08"),r=function(){var e=this,t=e._self._c;return t("fragment",[e.useGrid?["constraint"==e.item.type?t("div",{staticClass:"grid-item positional-item",attrs:{md:"auto",xstyle:"border: 0; padding: 0"}},[t("positionalConstraint",{attrs:{item:e.item,items:e.items,query:e.query,noOr:e.noOr}})],1):e._e(),"or"==e.item.type?t("div",{staticClass:"grid-item or-group",attrs:{md:"auto"}},[t("orGroup",{attrs:{item:e.item,query:e.query,useGrid:e.useGrid}})],1):e._e(),t("div",{staticClass:"grid-item seq-group"},[t("b-badge",{staticClass:"gq-button",attrs:{variant:"light"},on:{click:e.addPosItem}},[e._v("+")])],1)]:["constraint"==e.item.type?t("td",{staticClass:"positional-constraint",attrs:{md:"auto"}},[t("positionalConstraint",{attrs:{item:e.item,items:e.items,query:e.query,noOr:e.noOr}})],1):e._e(),"or"==e.item.type?t("td",{staticClass:"or-group",attrs:{md:"auto"}},[t("orGroup",{attrs:{item:e.item,query:e.query,useGrid:e.useGrid}})],1):e._e(),t("td",[t("b-badge",{staticClass:"gq-button",attrs:{variant:"light"},on:{click:e.addPosItem}},[e._v("+")])],1)]],2)},l=[],c=function(){var e=this,t=e._self._c;return e.useGrid?t("div",{staticClass:"grid-container positional-constraint"},[t("div",{staticClass:"grid-item badge-button"},[t("div",[t("b-badge",{staticClass:"gq-button",attrs:{variant:"light"},on:{click:e.deleteConstraint}},[e._v("×")])],1)]),e._l(e.item.value,(function(s,o){return t("attribute-value-grid",{key:o,attrs:{av:s,index:o,itemId:e.item.id,newAtt:s.att==e.newAtt,removeAtt:e.removeAtt}})})),t("div",{staticClass:"grid-item repet"},[t("label",{staticClass:"font-italic mr-2 mt-2",attrs:{for:"repetition_"+e.item.id}},[e._v(e._s(e.$t("repetition"))+": ")])]),t("div",{staticClass:"grid-item repet"},[t("b-form-select",{staticStyle:{width:"4em"},attrs:{id:"repetition_"+e.item.id,options:e.repOptions,size:"sm"},on:{change:e.stringifyQuery},model:{value:e.item.repetition,callback:function(t){e.$set(e.item,"repetition",t)},expression:"item.repetition"}})],1),t("div",{staticClass:"grid-item add-divider"}),t("div",{staticClass:"grid-item add-label"},[t("label",{staticClass:"font-italic mr-2 mt-2",attrs:{for:"add_"+e.item.id}},[e._v(e._s(e.$t("add"))+":")])]),t("div",{staticClass:"grid-item add"},[t("b-form-select",{staticStyle:{width:"8em"},attrs:{id:"add_"+e.item.id,size:"sm",options:e.unusedAtts},on:{change:e.addAtt},scopedSlots:e._u([{key:"first",fn:function(){return[t("b-form-select-option",{attrs:{value:null,disabled:""}},[e._v(" …")])]},proxy:!0}],null,!1,4289664766),model:{value:e.newAtt,callback:function(t){e.newAtt=t},expression:"newAtt"}})],1),t("div",{staticClass:"grid-item"},[t("div",[e.noOr?e._e():t("b-badge",{staticClass:"gq-button",attrs:{variant:"light",size:"sm"},on:{click:e.addDisjunct}},[e._v(" "+e._s(e.$t("or"))+"… ")])],1)])],2):t("div",{staticClass:"positional-constraint"},[t("table",[t("tr",[t("b-badge",{staticClass:"gq-button",attrs:{variant:"light"},on:{click:e.deleteConstraint}},[e._v("×")])],1),e._l(e.item.value,(function(s,o){return t("attribute-value",{key:o,attrs:{av:s,index:o,itemId:e.item.id,newAtt:s.att==e.newAtt,removeAtt:e.removeAtt}})})),t("tr",[t("td",{attrs:{colspan:"2"}},[t("label",{staticClass:"font-italic mr-2 mt-2",attrs:{for:"repetition_"+e.item.id}},[e._v(e._s(e.$t("repetition"))+": ")])]),t("td",[t("b-form-select",{staticStyle:{width:"4em"},attrs:{id:"repetition_"+e.item.id,options:e.repOptions,size:"sm"},on:{change:e.stringifyQuery},model:{value:e.item.repetition,callback:function(t){e.$set(e.item,"repetition",t)},expression:"item.repetition"}})],1)]),t("tr",{staticStyle:{"border-top":"1px solid gray"}},[e.corpusBagInfo.corpusList.length?t("td",{attrs:{colspan:"3"}},[t("label",{staticClass:"font-italic mr-2 mt-2",attrs:{for:"add_"+e.item.id}},[e._v(e._s(e.$t("add"))+":")]),t("b-form-select",{staticStyle:{width:"8em"},attrs:{id:"add_"+e.item.id,size:"sm",options:e.unusedAtts},on:{change:e.addAtt},scopedSlots:e._u([{key:"first",fn:function(){return[t("b-form-select-option",{attrs:{value:null,disabled:""}},[e._v(" …")])]},proxy:!0}],null,!1,4289664766),model:{value:e.newAtt,callback:function(t){e.newAtt=t},expression:"newAtt"}})],1):e._e(),t("td",{staticClass:"op"},[e.noOr?e._e():t("b-badge",{staticClass:"gq-button",attrs:{variant:"light",size:"sm"},on:{click:e.addDisjunct}},[e._v(" "+e._s(e.$t("or"))+"… ")])],1)])],2)])},u=[],d=function(){var e,t=this,s=t._self._c;return s("fragment",[s("div",{staticClass:"grid-item"},[s("label",{staticClass:"font-italic",attrs:{for:t.av.att+"_"+t.itemId}},[t._v(t._s(t.av.att))])]),s("div",{staticClass:"grid-item op"},[t._v("=")]),s("div",{staticClass:"grid-item",staticStyle:{"max-width":"12em"}},["set"==t.attInfo(t.av.att).type?[s("span",{staticClass:"value",on:{click:t.showValueChoices}},[t._v(" "+t._s(t.setValue())+" ")])]:t.attInfo(t.av.att).msize<150?[s("span",{staticClass:"value",on:{click:t.showStringValueChoices}},[t._v(" "+t._s(t.setStringDisjValue())+" ")])]:[s("input",{directives:[{name:"model",rawName:"v-model",value:t.av.value,expression:"av.value"}],attrs:{type:"string",id:t.av.att+"_"+t.itemId,"xxxkeydown.enter.prevent":"sendQuery"},domProps:{value:t.av.value},on:{input:[function(e){e.target.composing||t.$set(t.av,"value",e.target.value)},t.setStringValue]}}),null!==(e=t.attInfo(t.av.att))&&void 0!==e&&e.canBeCaseInsensitive?s("b-form-checkbox",{attrs:{size:"sm"},on:{input:t.setStringValue},model:{value:t.av.ignoreCase,callback:function(e){t.$set(t.av,"ignoreCase",e)},expression:"av.ignoreCase"}},[t._v(" "+t._s(t.$t("ignore case"))+" ")]):t._e()]],2),s("div",{staticClass:"grid-item",staticStyle:{"text-align":"center"}},[s("div",[s("b-badge",{staticClass:"gq-button",attrs:{size:"sm",variant:"light"},on:{click:function(e){return t.removeAtt(t.index)}}},[t._v(" - ")])],1)]),t.attInfo(t.av.att).msize<150?s("b-modal",{attrs:{id:"modal-str-"+t.id,scrollable:"","hide-footer":""},scopedSlots:t._u([{key:"modal-title",fn:function(){return[s("small",[t._v(t._s(t.$t("Attribute"))+": "+t._s(t.av.att))])]},proxy:!0}],null,!1,2171201212)},[s("small",[t._v(t._s(t.$t("Select values for"))+" ‘"+t._s(t.av.att)+"’. ")]),s("p",[t._v(" "+t._s(t.av.att)+" = "+t._s(t.av.set&&t.av.set[0][0]?t.av.set[0].join(" | "):"…")+" ")]),s("b-input-group",{attrs:{inline:""}},[s("b-button",{attrs:{size:"sm",variant:"primary"},on:{click:t.hideStringValueChoices}},[t._v(" "+t._s(t.$t("Done"))+" ")])],1),s("valueChoices",{key:t.key,attrs:{values:t.valueDisjunct,av:t.av,disj:t.disj,getValueChoices:t.getValueChoices}})],1):t._e(),"set"==t.attInfo(t.av.att).type?s("b-modal",{attrs:{id:"modal-set-"+t.id,scrollable:"","hide-footer":""},scopedSlots:t._u([{key:"modal-title",fn:function(){return[s("small",[t._v(t._s(t.$t("Attribute"))+": "+t._s(t.av.att))])]},proxy:!0}],null,!1,2171201212)},[s("small",[t._v(t._s(t.$t("Select values for"))+" ‘"+t._s(t.av.att)+"’. "+t._s(t.$t("Only combinations that occur in the corpus can be selected"))+". ")]),s("p",[t._v(" "+t._s(t.av.att)+" = ("),s("b-button-group",t._l(t.av.set,(function(e,o){return s("span",{key:o},[o>0?s("span",[t._v(" | ")]):t._e(),s("b-button",{staticClass:"m-1 px-1 py-0",attrs:{variant:t.disj==o?"warning":"light"},on:{click:function(e){t.disj=o}}},[t._v(" "+t._s(e[0]?e.join(" "):"…")+" ")])],1)})),0),t._v(") ")],1),s("b-input-group",{attrs:{inline:""}},[s("b-button",{attrs:{size:"sm",variant:"light"},on:{click:t.hideValueChoices}},[t._v(" "+t._s(t.$t("Done"))+" ")]),s("b-button",{attrs:{size:"sm",variant:"light"},on:{click:t.addValueDisjunct}},[t._v(" "+t._s(t.$t("Add disjunct"))+" ")]),t.av.set&&t.av.set.length>1?s("b-button",{attrs:{size:"sm",variant:"light"},on:{click:t.deleteValueDisjunct}},[t._v(" "+t._s(t.$t("Delete disjunct"))+" ")]):t._e()],1),s("valueChoices",{key:t.key,attrs:{values:t.valueDisjunct,av:t.av,disj:t.disj,getValueChoices:t.getValueChoices}})],1):t._e()],1)},p=[],h=(s("ddb0"),function(){var e=this,t=e._self._c;return t("b-container",{staticClass:"p-1"},[e.av.set?t("b-form-checkbox-group",{attrs:{name:"values"},on:{input:e.update},model:{value:e.av.set[e.disj],callback:function(t){e.$set(e.av.set,e.disj,t)},expression:"av.set[disj]"}},[t("b-table-simple",{attrs:{size:"sm",small:""}},e._l(e.rows,(function(s,o){return t("b-tr",{key:s},e._l(e.cols,(function(s,n){return t("b-td",{key:s,staticStyle:{"max-width":"4em"}},[e.cell(o,n)?t("small",[t("b-form-checkbox",{attrs:{value:e.cell(o,n)}},[e._v(" "+e._s(e.cell(o,n))+" ")])],1):e._e()])})),1)})),1)],1):e._e()],1)}),m=[],f={name:"value-choices",mixins:[a["b"]],props:["values","av","getValueChoices","disj"],data:function(){return{cols:3}},computed:{rows:function(){return Math.ceil(this.values.length/this.cols)}},methods:{cell:function(e,t){let s=this.rows*t+e;return s<this.values.length?this.values[s]:null},update:function(){this.getValueChoices(this.av.att,this.av.set[this.disj])}}},g=f,b=s("2877"),v=Object(b["a"])(g,h,m,!1,null,null,null),k=v.exports,y={name:"attribute-value-grid",mixins:[a["b"]],components:{valueChoices:k,Fragment:i["a"]},props:["av","itemId","index","removeAtt","newAtt"],data:function(){return{corpus:"nnk",valueDisjunct:[],attribute:null,disj:0,id:this.randomID(),key:0}},mounted:function(){this.newAtt&&"set"==this.attInfo(this.av.att).type?(this.getValueChoices(this.av.att),this.av.set||(this.av.set=[[]]),this.showValueChoices()):this.newAtt&&this.attInfo(this.av.att).msize<150&&(this.getValueChoices(this.av.att),this.av.set||(this.av.set=[[]]),this.showStringValueChoices())},methods:{setStringValue:function(){this.stringifyQuery()},setValue:function(){let e;var t,s;"morph"==this.av.att&&this.corpusBagInfo.hasFeaturesQuery?e=this.av.value=null===(t=this.av.set)||void 0===t?void 0:t.map(e=>e.join(" ")).join("|"):e=this.av.value=null===(s=this.av.set)||void 0===s?void 0:s.map(e=>"'"+e.join("' '")+"'").join("|");return this.stringifyQuery(),e||"…"},setStringDisjValue:function(){var e;let t=this.av.value=null===(e=this.av.set)||void 0===e?void 0:e[0].join("|");return this.stringifyQuery(),t||"…"},showValueChoices:function(){this.getValueChoices(this.av.att,this.av.set[this.disj]),this.$bvModal.show("modal-set-"+this.id)},hideValueChoices:function(){this.$bvModal.hide("modal-set-"+this.id)},showStringValueChoices:function(){console.log("showStringValueChoices"),this.getValueChoices(),this.$bvModal.show("modal-str-"+this.id)},hideStringValueChoices:function(){this.$bvModal.hide("modal-str-"+this.id)},attInfo:function(e){var t;return(null===(t=this.corpusBagInfo.corpusList)||void 0===t?void 0:t.length)&&this.corpusBagInfo.corpusList[0].attributes.find(t=>t.name==e)},getStringValues:function(){this.callCorpusAPI("get-value-choices",{corpus:this.corpusListInfo.chosenCorpusList.map(e=>e.name),attribute:this.av.att}).then(e=>{this.valueDisjunct=e.values})},getValueChoices:function(e,t){this.callCorpusAPI("get-value-choices",{corpus:this.corpusListInfo.chosenCorpusList.map(e=>e.name),values:t||[],attribute:this.av.att}).then(e=>{this.valueDisjunct=e.values})},addValueDisjunct:function(){this.av.set.push([]),this.disj=this.av.set.length-1},deleteValueDisjunct:function(){var e;(null===(e=this.av.set)||void 0===e?void 0:e.length)>1&&(this.av.set=this.av.set.filter((e,t)=>t!=this.disj),this.disj&&this.disj--,this.getValueChoices(this.av.att,this.av.set[this.disj]),this.key++)}}},S=y,w=(s("663e"),Object(b["a"])(S,d,p,!1,null,null,null)),C=w.exports;const x={1:"1","?":"0-1","*":"≥0","+":"≥1"};var _={name:"positional-constraint",mixins:[a["b"]],components:{attributeValueGrid:C},props:["item","items","noOr"],data:function(){return{corpus:"nnk",valueChoices:[],attribute:null,showPopover:!1,newAtt:null,repOptions:x,useGrid:!0}},computed:{unusedAtts:function(){return this.corpusBagInfo.corpusList[0].attributes.filter(e=>this.attNotUsed(e.name)).map(e=>e.name)}},methods:{removeAtt:function(e){this.item.value.splice(e,1)},addAtt:function(){let e=this.item.value,t=this.newAtt;e.splice(e.length,0,{att:t}),this.$nextTick(()=>this.newAtt=null)},attributes:function(){if(this.corpusBagInfo.corpusList.length)return this.corpusBagInfo.corpusList[0].attributes},attNotUsed:function(e){return!this.item.value.find(t=>t.att==e)},attInfo:function(e){var t;return(null===(t=this.corpusBagInfo.corpusList)||void 0===t?void 0:t.length)&&this.corpusBagInfo.corpusList[0].attributes.find(t=>t.name==e)},addDisjunct:function(){let e=this.items.indexOf(this.item);this.queryStore.gqShow=!1,this.items.splice(e,1,{type:"or",id:this.randomID(),items:[{type:"seq",id:this.randomID(),items:[this.item]},{type:"seq",id:this.itemId--,items:[{type:"constraint",id:this.randomID(),value:[{att:"word"}],repetition:"1"}]}]}),this.stringifyQuery(),this.$nextTick(()=>this.queryStore.gqShow=!0)},normalize:function(e){if("constraint"==e.type)return e;if("or"==e.type)e.items=e.items.map(e=>this.normalize(e)).filter(e=>e.items.length),1==e.items.length&&(e.type="seq",e.items=e.items[0].items);else if("seq"==e.type){e.items=e.items.map(this.normalize);let t=[];e.items.forEach(e=>{"seq"!=e.type?t=t.concat(e):0==e.items.length||(t=t.concat(e.items))}),e.items=t}else console.log("Should not happen.");return e},deleteConstraint:function(){this.queryStore.gqShow=!1;let e=this.items.indexOf(this.item),t=this.items.length;this.items.splice(e,1),1==t&&(this.queryStore.object.positionalConstraints=this.normalize(this.queryStore.object.positionalConstraints)),this.stringifyQuery(),this.$nextTick(()=>this.queryStore.gqShow=!0)}}},A=_,L=Object(b["a"])(A,c,u,!1,null,null,null),P=L.exports,q=function(){var e=this,t=e._self._c;return t("div",[e.useGrid?t("div",{staticClass:"grid-container-or-group"},[e._l(e.item.items,(function(s,o){return t("orItem",{key:o,attrs:{useGrid:!0,or:!0,last:o==e.item.items.length-1,item:s,query:e.query}})})),e.useGrid?t("div",{staticClass:"grid-item op"},[t("div",[t("b-badge",{staticClass:"gq-button",attrs:{variant:"light"},on:{click:e.addDisjunct}},[e._v(e._s(e.$t("or"))+"…")])],1)]):e._e()],2):e._e(),e.useGrid?e._e():t("table",{staticClass:"or-group"},[e._l(e.item.items,(function(s,o){return t("orItem",{key:o,attrs:{useGrid:!1,or:!0,last:o==e.item.items.length-1,item:s,query:e.query}})})),t("tr",[t("td",{staticClass:"op"},[t("b-badge",{staticClass:"gq-button",attrs:{variant:"light"},on:{click:e.addDisjunct}},[e._v(e._s(e.$t("or"))+"…")])],1)])],2)])},I=[];const T={data(){return{itemId:0}}};var D=function(){var e=this,t=e._self._c;return t("fragment",[e.useGrid?[e.useGrid?t("div",{staticClass:"grid-container-graphical-query"},[t("seqGroup",{attrs:{item:e.item,query:e.query,or:!0,useGrid:"true"}})],1):e._e(),e.last?e._e():t("div",{staticClass:"grid-item op"},[e._v(" "+e._s(e.$t("or"))+" ")])]:e._e(),e.useGrid?e._e():[t("tr",[t("td",[t("table",[t("seqGroup",{attrs:{item:e.item,query:e.query,or:!0}})],1)])]),e.last?e._e():t("tr",[t("td",{staticClass:"op"},[e._v("or")])])]],2)},M=[],N={name:"orItem",components:{Fragment:i["a"],seqGroup:()=>Promise.resolve().then(s.bind(null,"57b4"))},props:["item","last","query","or","useGrid"]},R=N,z=Object(b["a"])(R,D,M,!1,null,null,null),E=z.exports,j={name:"or-group",mixins:[T,a["b"]],components:{orItem:E},props:["item","query","useGrid"],methods:{addDisjunct:function(){this.queryStore.gqShow=!1,this.item.items.splice(this.item.items.length,0,{type:"seq",id:this.itemId--,items:[{type:"constraint",id:this.itemId--,value:[{att:"word"}],repetition:"1"}]}),this.stringifyQuery(),this.$nextTick(()=>this.queryStore.gqShow=!0)}}},O=j,$=Object(b["a"])(O,q,I,!1,null,null,null),F=$.exports,B={name:"positional-item",mixins:[a["b"]],components:{Fragment:i["a"],positionalConstraint:P,orGroup:F},props:["items","item","noOr","useGrid","query"],methods:{addPosItem:function(){this.queryStore.gqShow=!1,this.items.splice(this.items.indexOf(this.item)+1,0,{type:"constraint",id:this.randomID(),value:[{att:"word"}],repetition:"1"}),this.stringifyQuery(),this.$nextTick(()=>this.queryStore.gqShow=!0)}}},G=B,V=Object(b["a"])(G,r,l,!1,null,null,null),K=V.exports,U={name:"seqGroup",mixins:[a["b"]],components:{Fragment:i["a"],positionalItem:K},props:["item","or","useGrid"],methods:{addPosItem:function(){this.queryStore.gqShow=!1,this.queryStore.positionalConstraints=null,this.item.items.splice(0,0,{type:"constraint",id:this.randomID(),value:[{att:"word"}],repetition:"1"}),this.stringifyQuery(),this.$nextTick(()=>this.queryStore.gqShow=!0)}}},H=U,Q=Object(b["a"])(H,o,n,!1,null,null,null);t["default"]=Q.exports},"59a0":function(e,t,s){"use strict";var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"dict-entry"},["abnc"==e.stateStore.project||"gnc"==e.stateStore.project?t("span",{staticClass:"font-weight-bold dictionary entry-lemma",domProps:{innerHTML:e._s(e.entry.lemma+" ")}}):e._e(),e.entry.grammar&&!e.tokenStore.showDefinitions?t("span",{staticClass:"dictionary grammar",domProps:{innerHTML:e._s(e.entry.grammar)}}):e._e(),e.tokenStore.showDefinitions?["train"==e.mode||"abnc"!=e.stateStore.project&&"gnc"!=e.stateStore.project?e._e():t("span",{staticClass:"pr-2"},[null!=e.entry.mark?t("b-icon-check"):t("b-icon-plus-circle",{staticStyle:{cursor:"pointer"},on:{click:e.markEntry}})],1),"train"==e.mode?t("span",{staticStyle:{color:"gray"}},[e._v("["+e._s(e.entry.mark)+"] ")]):e._e(),e.entry.grammar&&"xabnc"!=e.stateStore.project?t("span",{staticClass:"dictionary grammar",domProps:{innerHTML:e._s(e.entry.grammar)}}):e._e(),e._l(e.entry.definition,(function(s,o){return t("span",{key:o,staticClass:"dictionary"},["ref"==s.substring(1,4)?t("span",[t("span",{staticClass:"lemma-ref",on:{click:function(t){e.lookupEntry(s.substring(5,s.length-6))}}},[e._v(e._s(s.substring(5,s.length-6)))])]):t("span",{domProps:{innerHTML:e._s(s)}})])}))]:e._e()],2)},n=[],a=s("44bf"),i={name:"dictEntry",mixins:[a["b"]],props:["entry","mode"],mounted:function(){window.addEventListener("keydown",this.onKeyDown)},destroyed:function(){window.removeEventListener("keydown",this.onKeyDown)},methods:{lookupEntry:function(e){this.tokenStore.dictLemma=e,this.tokenStore.lookup("prefix")},markEntry:function(e){this.callCorpusAPI("mark-dictionary-entry",{"lemma-id":this.entry.id,dictionary:this.entry.dictionary,mark:e||0}).then(e=>{e.success&&(this.entry.mark=e.mark)}).catch(this.showAlert)},onKeyDown:function(){"INPUT"==document.activeElement.tagName||(187==event.keyCode?this.markEntry(this.entry.mark+1):189==event.keyCode&&this.entry.mark>0&&this.markEntry(this.entry.mark-1))}}},r=i,l=s("2877"),c=Object(l["a"])(r,o,n,!1,null,null,null);t["a"]=c.exports},"5a97":function(e,t,s){},"5bd3":function(e,t,s){e.exports=s.p+"img/PRIV.693f2bbe.png"},"5cf6":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAABOCAYAAACOqiAdAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AITCjYjxBB/4gAACKJJREFUeNrtnHuMFeUZxn/v7oFld0sFRNluQZTbikLXmiIqTWraLrW0aARrq0ktLW2MECptTewt2H+aGKyBtrbYhAi1pkaNKTbUWE0v6QVWaimELbTe4koK7FIRFLay7O7TP+Y9dXI8l5lzZs5u1/Mmk5zLnG/e75n3+nzfHJPEaBUzM6U0wTpGtzSZ2dgacPHlDDDJzOprwMUQSf3AaeA9NeDig/ca0Ghmk2rAxZd/AbOTjHfvCOAk9bnLzqwBF1/+AVxoZuNqwMWzujeBfwPTa8DFly7gkhpw5WfY1hpw8eU5YG4NuPjyPDC7Blx8dz2aRIJ4J1ocwGEzm1fJADaaaaW3TdbsHOA64CqgCXgdeBZ4yC1xdANnZouAWT55gLbQ1z1erwHsAw5L6jaz+cDt3vCP9++H/DgOrJTUO6qAM7MlwDw/zgIOAN3Ai8CpbPgKgQFwAXAOMA04H+jz2NZQ4DIvS7rx/x44M5sFXA98BNgD/AV4VtJLZQK/GphUIt7fJqkzypiZnAukRjXHBOyzwKXAL4Cb4safPLIo5J7F5N1RB8yEFM74+zeHMXCv9En+TNKdCQ7fACTKAtflgDhmGGPYz4FTkpZKeiTp8iMU+4phcamZjY8LXB0wbhhA+zrwGeAOST9M6TK/K6UGMOAkwO1mdl4c4OqB5mq6ppk9ADRKulnS7hS7hd1FwKvz46uStrvl32pmCyJnVTObJ6mrSvHsHmB7Cm5Z7LrLgLUhz6r3kmaDpJ05+i0HdhW8oZL+dwALw+/TOLy2egC4Ie1rFdHhRmB+iXOaPVldku/7TA6Og2Y20XmrtCzt7mpbml/7KmCqZ9ilXkAXc+9TZvYQsMzMBiXtK+qqwKCkAykpfy/wd0mbqgjYVC9+LwLe5ZVDNsNulvRgid83uYVul9RTiB3pAVpTmsCtwMkqgzYZ+C5wBXCu97Zj3OoagNUe94pZXh+wHegws8a8wHmFPsVRTropv9rdtJpyrQPWUOSctRGyco+3fQuL8XE9JMCQ5siXgPWSXq0ycDMitFHjzGxuBPC6gPpsjZfJc84B4JPA3oSs7RbgeUl/ztMtFGIp9ifYakUha6f5vEvJ34APmFlvJg+yh8wMM2uT9M8KQTsbuAZ4wszucgtoA7LjvuR0DyEqqNnMWoCTbv17gWfCdVYMidIJGXAwYiF9zMx6gel5aSU33Q5JP6gAtJXAh/1u7vUYsSNOxjazq4EFwHygBdgB/DTqGGb2ZeBTBTwrC9oxSUti6NQAXFGQjzOzb3gK3hdj0BbgC0AHAfs6F/iipO4EXL7Fe9prgUMO4FMR6sbHCpAX5p9/S9KTMXWZWwy4LNW8RtLrESa1wgF7GtjqGahN0voUyozFwOf87fcl7Spy7gLP5o28xRJn4973yinEzaypKANsZp/3l0eBy7wOGkvA0W+TtNvMPgrc4W60SdIR/+2dwB8l/TbFOi187c1AO/Bpz6QZD/h7/LMtvLUQfQT4VVbXsq5dArgpwHpgAgHtnI0V2cq7yz+/O3zXzWyiV+XLq1Tofhu42AGbELKorJ6/kbQuLSIzn3QAk72IzOShYtq9Pst1lXbgT1Ws13pDN7cuj56LzWxOVYDzuLWU4gsc2eo8V9oI9qNVw9paCBZ0JpQ49eZqWdx7I1TdKtBlTHc3roZUomcqwGU8EZQjMyUdrBJwlehZ0UULSV9E4Htykkm783qLgb8m1Z+a2Qzgcm+jjgN/8LFj65kqcJL2mdkrwIUlfv+ET+w64AaPNRngm8CQmT0s6ScVAJZlYj9EsDaata41Zna/pAfj6FkNiwP4MbCBt69JZqvuPoINyZMctCl5xlhhZhlJP8oDyhyCLQ31TgTks85V3rrlC/6rfQF7DjBYRM/jBDsBkktKJeq4GQ7cEeD9IWUGgIclbTSzrwBXEtDShWQIWB4qjmc7IBd4UW0ewH8t6Z6cDmG1l0PF3HCNg7PKdQnruQGYSLCatrFaFrcauF/S46GJHMxpsnsilAIZ4OPAFgdtnTf/uQTj9WbWKulr/v6DPulSMsFrybXZXjKXCDCzbWbWGXVvSCV13OUe6x4Pxb2n8jATDSUY1qy0hlxvWpHfLDKzDn/dRBm7CwqwJ3c5U5J6ObIceCSi1VoEzmuymX3COblSQC/xPvRcom1dqIsAZqcnq4WpAWdmlxGsdj0TYYzjIdahkNQDJ/yOl1rPEMHiyjLgWATgFIMWepRgR2ZqFrcYeDKiWzzqoBQD7WlJ3wHui2AdBnRLWkWwQnWmyLljCbYsRHXhXcB4M5uWOHBmdhZwkaTfxxhnpVuHhY46n1gnsDHUjEfRaadP9KjTRoXG3lZGptwOfCzxcsTp6qmSNpdRrK7w3rEZ6Ac6c93IzNZ5hi1kbXXANblcmXODraHzHitn4dwNY5Okm5IuR94HbCtnMElbXbkr/f2OPKfd5+C2h2Kahaz/tnwEo6QtScQmSSfM7AUzmyPpuSRj3MWVDOjyMsGG5XyK90q6xQHsAl4h2MfxS7e0naQvXd5tJGNxZnZ+EjyaLzE2mlmTbyEoZJ1bGR7Z721cYslhCsGiaxLyotdsI058Vb45SeDGUmL7UwzZS/JbKZKUV5MErhF4I6G7+hpwOolnQ1OSQ55hEwGun+D5pqRkD8G+tJEox9xQEgHuZKnF57hJAhhwZnikSa/TTokA15eCggcInsEaadJPQH4mAlziT9X4przDzsONWuD+k8YfOAEvAGf7Cv9IkaEkXfU0KTyW5H8OtR+YldbfkpUhA5SmrGK56lAaWnrS6QZm+gN3ww6c/4lLIsANpKmpP4F8AjhvBIA3WMmPc4E7k5bF5ZQofUBLSvG0pJiZeVgqf4w8fFxVHvb1RDGGYCvpwDAARyXzHNZHy/15igbgjWqDV7Huw/1MvrvrWKBf0mANuFEudTUIasDVgKsBVwOuJjXgEpL/AiPQG0MkMP5PAAAAAElFTkSuQmCC"},"5f7d":function(e,t,s){e.exports=s.p+"img/BY.ee827455.png"},"5fce":function(e,t,s){},"62bf":function(e,t,s){e.exports=s.p+"img/pub.fce8853f.png"},"663e":function(e,t,s){"use strict";s("712c")},"6fe4":function(e,t,s){},"712c":function(e,t,s){},7197:function(e,t,s){},7530:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYAAAAGACAYAAACkx7W/AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AMKCBQjcFfcCQAADwVJREFUeNrt3XuQJlV5B+Df7C4LLJfFXe5ZuUUuAQMJYLGIC4jECq4pg0hQjFbESizFKhdTRoxGy6JMLKJSisYygkmI0RhN5CJaCSRqUDAGFZNFEAoEhCVc9gJyXWA3f5xvKsNmZphvvr7uPE/V+W++7rdPn3lP9+nucxIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACABo2pAuaAeUkOTvKSJCuSHJhk1yRLk+yUZH2StYOyOsl3B+VnSTarPoD+2SPJe5LcMUjkw5abk6xKskRVAvTD4iQXJtk4y8S/ZXk8yflJdlC1AN11apI1FSX+LcudSV6higG65101Jf6JZVOSs1U1QHd8uIHkP7G8T5UDtO/0hpP/eFmp6gHa8/wkG1rqAO5PedMIemmeKqDnzkl566cNuw32D0DDFqV8xLW5xXJ/koVOBe4AoFkrkuzScgy7JTnJqUAHAM365Y7EcZBTgQ4AmrVfR+I4wKlABwBz0yJVgA4AmnVzR+L4qVMB0Kz90u4bQOPlcKcCoFljSe5tOflvSDLfqaCPDAHRZ5uTXNtyDNclecapQAcA7STgNn3XKUAHADoA6BVrAtN32yV5OMk2Lez7mZR5iB51GnAHAM17IsmPWtr3DyV/dADQrraGgQz/oAMAHQAAbdgn7XwDsJeqp888BGa2tkv5AnbfJEuTbEyZG//2JDcNEmST7fjuJHs3uM/b0+5spPOT7JjyDOJpzRGo265J3pbk3wcJf6or43uSfCbJwQ3G9uWGr/4vabjuj0nygSTXDDraZybEcl+Sryd5T7ozRTawlViW5BNJHhsySW4aJMrnNRDjOxvuAN7SUN2/NMm3h4ztmymL1LjDB2ZtQZJVSR4ZMVneleS4mmM9tuEO4IUN1P1HR4zxsjQ7LAZsRcM9V1eYMJ9IsrLGeLdN8mRDyX996n2DbnGFdb8+yW9ozsBM7ZvykLPqxLkxyatrjPu6hjqAK2vueK+vON6nk7xZswaey95JbqsxeT6d5HU1xf6xhjqAP64p/l9K8pOaYt6U5EzNG5jKgpQ3fOpOoJuSvKmG+E9vqAM4oYbYD6jprmtieSrJcs0cmMy70uyD1LdWHP+yBmJ+KtWvAXxYkjUN1fnPkuyiqQMTLUw7q2udU/Fx3FVzvN+rON6jk6xtuM7/THMHJjoj7S2r+N4Kj+NLNcf60QpjPT5lKuum6/vRJHto8sC4pr+k3bKcl2o+XFpVc5xVvcV0SpLHW6zvP9HkgaQspvJQyx3A+NX1qJ3AMTXHWMWV8+mZfiqNJspqzR5IkiM7kPzHy19ktI+sFqZ8dFZHbLdWUNdn5dnz+LRZXqDpz23WAyBJfrVDsbw1yWdTZrucjY1JflBTbKPO/78qycUd+r87UtPXAcBBHYvnrJRJ5BbM8vd1LRAz2w5gLGUmzws6Vs9HaPpz2wJVQJqZrXNYZ6asOfC6wVV9XzuAsZRnG+d0sI4taAPkb9KdZwBblq8NOoJh7F1DHOtmccc8P8lFHa7bf9T05zZDQCTlvfCuWpnkiiQ7DPGbNUnurOHqf9MQf78wyRfT7UnYFmr6OgDY0PH4Tk7yjSQ7DfGbqoeBhhn+WZTk0pTXPbtsvaavA4BbexDjiiRXZebPK9rqAHYedFan9KBO79P0gaPT3XHqLcsPU+bMfy4vSrXrGGw/g33WMZd/ncX00EDmJ3mwR4lrdZI9n+OYFqa6qRaunUEd7p3kxh7V4eYk+2v6hoDgmZS3bfrisJSF0pdN8zcbB1fjTQz/7J/kmiSH9qgOr0+ZGhodAOTCnsV7UMriNftN8zdVPQeYrgM4NMl3UhZ06ZOLNXlgoit7NoSxOWX+/wOnOJ5TK9rH7lNs/6j0a+hsvNwZr4ACW9gvySM9TGj3TjH8smcF275lirpakXbm8q+inKKpA5N5dbozW+Uw5YFMPrfNqOvsfm6Sbf5mksd6mvz/VBMHpvP61Delcp1lXcrrnxP93Yjb3PJL3i7M5d/megvAHHBEku/3MMk9nOS4Ccfx9hG3d8iEbXVpLv9hyoZBpy75AzM2ljINw5dS5gvqS8J7NMlJg2M4aoTtPDghab4j/Xw28v4kSzVlYBQ7JHltkq8mebIHye/xlLH6bTL78frLBh3A+3uW9D+Z5ITMflEdgCktTvLGJF9P8lSHk+HGJL+d8tHYbH7/7pRxc0kfYBJLk/x+kqvTzfHxp1OmjpjtvEOSPsAM7JHk7JRpETYrkj4wNy1L8s4k/yFxV5L0j5f0gT7aP8m5SW6Q0Gec9C+U9IGtzSFJPpDkJole0gfmprEkh6dMTXDbHE36ayR9QGdQpnD4SJKfS/oAc9O8lKkcLhwMi2xNSX9FrMEBMCPzU6Z0+Ez6N+++pA9QkW1Spnb465TJzbqa9D8h6QPUZ9skr0ryhbS/gM09kj5AO/ZKcnkLif+pJB+MpRUBGrU4yRuSXJH2ZyZ9MMlnk7w8ZZgKgJqS/uXp7nTU65JcnLLmrjsDgK086U9V1if5qyQrU55ZALAVJ/2pykNJLknyWzoDgP+f9H93K0v6061Z/PmUt5i2c+oBSX9uzgX0i5RXWU9NskiTAOZC0r9sDif9qcojSf4+yWtS1l8GkPTnYHk0yT8k+Z0kO2pCgKQ/N8tjSb6S5LVJdtK0gC7aOcnrJf1ayxNJvprkzEF9A0j605SNSf5rlr/9z453BpcN7rQWa4pAk0n/0h5c6T+Z5JVJvj3L35+b5GM9uDN4MmVajDcmeZ4mClRp+wlJ/4meDJc8njJ99IKUcfTZbOOylNXKPtSjYaKNSa5M8ibDRMAotkmyKv1bmeuxJC8bHMOvj7CdBwYdQJK8L/386OwjSZZoysAw9ktyXfr5Pv0JE47jbSNu78AJ2/rD9PPh8d1JXqpJAzNxcJL7enrFe9wWx3LJiNv8vS22d3ZPO4GNKRPTAUxpr8EVY98S3IYkx0xyPLeMuN2/nGSbZyXZlH6+Rnq0Jg5MZizlAWLfEtu6JEdNcjxLK9j26inq6swkT/ewrm5KeagP8Cyn9zChPZDkiCmO5xUV7WOXKbZ/WsrSkH2rs3dr6sBE85L8d88S2X1JXjjNMZ1X0X5OmWYfr0z/vnz+H3cBwETH9yyJrUlyyHMc01UV7eu859jPyzP7bw3aKq/R5IFxH+9R8vp5nv165lR3NA9VtL9/nUH9nZAyv39f6vALmjww7saeJK47kuw/g+M5LNV+W7BgBvs8NuVtpL4MAwFku/TjjZbbkuw7w2N6c8X7PnKG+z0qydqedAK7a/pz2zxVQJIDkszveIy3DoZZ7pzh3y+veP8vnuHf/SDJiUnu78F5P0jT1wHALh2P76ZB8r97iN8c21IHkJS3qU5IeVDtvKMDoNO6vAbt6sEV9b1D/GZxkkMrjuO4If/+5pQ3q+7qcN1ablIHAHmko3HdkDKJ2bDDKS/K/83iWZV9kiwb8je3DTqB2zpav7/Q9HUAsK6DMV2f5KQkD87it8trimk2w0p3pgwH3dzBOl6v6QML062vWa/LaMscfq2muC4YIabdM/ulKesqSzV9IClvr3QhKV2TZKcRjmNscNdQR2zfH7GOlw7ubLpQz/do8sC4D3cgKX0zoz+YPLDG+J5KsmjE+BYnubYDdf23mjwwbnnLCelfKkiuSfKGmuM8voIYd0ryrZbr+zRNHhg3L+V9+zaS0ZUpXyNX4VM1x3puRXEuSvLPaW8K7UWaPDDRW1pIRpcm2bbCY6j7WcYVFca6XZLLW6jz92rqwGQJqck3Vb6SZJsK498h9c9ptDbVfmOwMMmX0+xkejtr6sBkDk0zc9t/MTObYXMYTa1pcHDFcS9I8vkG4t6UZIUmDkxnZepd6vCS1DP53B811AGcVUPs85NcVHPc79C0gZk4LfV8HHZx6pt59J8a6gAuqin+eUk+WVPMH9SkgWEsT1k4pKok9OnUN/3IWMrsm010AD+psc7Hkvx5qv124Q80ZWA2dk9ZPnDUJHRuqp+gbaJ90uybNEtq7gTeXsEd2Ookx2jCwKhOTPlSd9gkdENDSeiMhjuAlQ0c0xFJvjeL2O5OsirlDSOAyhyZ5Pwkt0yTgB5P8o0kr6r5qn+iCxruAD7U0HGNJTk55fnGdIvcP5TyOukZqfa7CrZiY6qAESwZXKXulvJu+YaUhVt+lPIqaZOuS33TQE/mWylrFTRpwaC+906ya8o3D+uT/DRlzYFNmiQw12yb5qezfjTVfsQGjbMgDFuDX0vz492LBlfjoAOAFh3b0n5frOrRAUC7lre0Xx0AQMvuSDvTKt+l6gHas1faXVjl+U4BfWUIiL5r+0tXw0DoAKAlx7a8fx0AOgBoyfKW968DoLd8CUyfLUjycJLtW4zhmSSLUz4MA3cA0JAjWk7+SVnbwIyb6ACgYSd3JI6XORXoAKBZu3ckjj2cCnQA0KwHOhLH/U4FOgBo1u3iAB0Ac9OPOxLHDU4FQPO+k3angvhxvE6NOwBoxac7sP/NTgNAOxcxV7d09X9tysdoALRkWZJ1DSf/h5McoOoB2ndMkrUNJf8NSVaocoDuOCzJ3TUn/3uTHK6qAbpnSZKLa0r+n0uyVBUDdNuJSf6tosR/VQz5APTOryT5eJJbh0z6NyY5P8kLVCFbKx+wMJfsmeQlSQ5KGcpZmmTHlIe6awflxpTXO9erLgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYIL/BU5aVHB9FMU9AAAAAElFTkSuQmCC"},7534:function(e,t,s){e.exports=s.p+"img/dep.de7ff36c.png"},7866:function(e,t,s){"use strict";s("9168")},"7b78":function(e){e.exports=JSON.parse('{"en":"English","no":"Norsk","de":"Deutsch","ka":"ქართული","ab":"Аҧсуа","ru":"Русски","si":"Slovenščina","Corpuscle":"Korpuskel","korpuskel":"Korpuskel","Documentation":"Dokumentation","Abkhazian":"Abchasisch","menota":"Menota","abnc":"AbNC","gnc":"GNC","ABNC":"AbNC","AbNC":"AbNC","Absolute frequency":"Absolute Frequenz","Accept":"Akzeptiere","Additional constraints":null,"Additional constraints for this position:":null,"Alignment Tool":null,"Alle":null,"Analysis":null,"app":null,"Application form":null,"as":null,"ASK":null,"Ask":null,"ask":null,"Att":null,"audio only":null,"Aviskorpus":null,"Basic query expression":null,"Bookmark page":null,"Bookmark":"Lesezeichen","Bookmarks":"Lesezeichen","Bookmark this page":null,"Bulgarian":null,"By clicking on [+] you can inspect the texts of a collection.":null,"by query string":null,"Catalogue":null,"Charter catalogue":null,"check for case-insensitive search":null,"check to mark position as target position":null,"Choose a treebank to work with from the list below.":null,"Choose corpora from the list below by clicking on their names.":null,"choose how many consecutive corpus positions the constraints should apply to":null,"Choose variable:":null,"Clear":null,"Click at an attribute to see its values":null,"Click on a column heading to sort":null,"Click on a document name to view the text.":null,"Click on a name to choose the query.":null,"Click on an attribute to see its values":null,"Click on a query to see its documentation.":null,"Click on a row title to sort":null,"Click on a text title to see more information about the text":null,"Click on the [Text] link to browse the text":null,"Click to add an alternative":null,"Click to add a position":null,"Click to add a position box":null,"click to choose":null,"Click to choose a new value from list":null,"Click to choose new values from list":null,"Click to delete an attribute":null,"click to delete position":null,"Click to edit the value":null,"Click to go back to this query":null,"Click to parse sentence in XLE-Web":null,"Click to remove column":null,"Click to run the query. The result will be displayed in the Concordance pane.":null,"Click to toggle negation":null,"close":null,"CMDI Metadata editor":null,"CMDI Metadata Records":null,"CMD Metadata":null,"CMD Metadata editor":null,"CMD Metadata Records":null,"Code":null,"Collocate":null,"collocations calculated":null,"combine context positions":null,"COMEDI":null,"Constraint Grammar":null,"Constrain the search to a":null,"Constrain your search to a subcorpus":null,"Content":null,"Contents":null,"Copy query PID":null,"Copy query URL":null,"Corpuscle: Corpus list":null,"Corpuscle-Lex":"Korpuskel-Lex","Corpus doc.":null,"Corpus position":null,"corpus positions matching the vertical value(s).":null,"correct":null,"count":null,"counts only":null,"Delta":null,"Diagram":null,"Dialects":null,"Dictionary entry":null,"Dipl":null,"dipl":null,"Disambiguate":null,"Discard":null,"Disc. Statistics":null,"Display":null,"distance to match position":null,"distinct values":null,"Distribution":null,"Distributor":null,"Document":null,"document":null,"Done":null,"Done.":null,"Do not put words in quotation marks. You can use * as wildcard: fish* finds fish and fishing, *fish finds swordfish etc.":null,"Download":null,"Download as Tab-separated values (.tsv) file":null,"Download corpus source":null,"Download corpus source as XML":null,"Drag onto column label to move column":null,"edit":null,"Edition":null,"Edit is":null,"edit-match":null,"Editor":null,"Editors":null,"Editor(s)":null,"empty":null,"Encoding":null,"Eng. Code":null,"English":null,"(Entire corpus chosen.)":null,"Entire corpus chosen":null,"Example":null,"Excel mode":null,"expan":null,"Explanation":null,"Extracted words":null,"Facs":null,"facs":null,"Faroese":null,"Features":null,"File":null,"filter":null,"filter by keeping only selected sentences":null,"Filter by name":null,"filter by removing deselected lines":null,"filter by removing selected lines":null,"filter by removing selected sentences":null,"filter inv.":null,"Filter variable":null,"first":null,"for":null,"Fractions in blue are unweighted means of group fractions":null,"Fractions in green are distributions of total numbers":null,"Fractions sum up to 1.0 in each row":null,"French":null,"Freq.":null,"full":null,"Genre":null,"Genres":null,"Geo. Code":null,"Georgian":null,"Georgian text":null,"German":null,"GNC":null,"GNC: Parse":null,"GNC: Text":null,"GNC: Text Repository":null,"Gnyronaxra":null,"Go":null,"Go to":null,"Grammatical Features":null,"Grammatical features":null,"Grammatical features and their descriptions.":null,"Groups":null,"Haemeti":null,"Hand note":null,"has case-insensitive search":null,"Header":null,"Here you can compose a query graphically.":null,"Here you can parse sentences with the morphological analysers that are being used to analyze the texts of the GNC.":null,"Here you can parse sentences with the morphological analyser that is being developed for Abkhaz.":null,"Here you can parse sentences with the morphological analyser that is being developed for Abkhaz. (Beware of many errors!)":null,"Here you can send a comment or report a bug to the ASK maintainers.":null,"Hide":null,"Hit":null,"hits":null,"Home":null,"Home page":null,"ICAME":null,"ignore case":null,"Ignore structural positions":null,"include counts":null,"include fractions":null,"include missing values":null,"Include structural positions when calculating relative frequencies":null,"include structures":null,"include values that are not represented in the match list":null,"INESS":null,"Inventory":null,"is POS?":null,"Judeo-Georgian":null,"Keep the selected value(s) and add new value(s) as an alternative":null,"Keep the selected value(s) and add new value(s) as a negated alternative. (A match must not contain these values.)":null,"Lang.":null,"Language variety":null,"last":null,"lb":null,"left context":null,"Lemma":null,"Lemmatization":null,"Levels":null,"Lex":null,"lexicon":null,"LFG Sentence":null,"LFG Treebank":null,"LFG Treebank Sentences":null,"LIAD":null,"Licence":null,"List of active XLE servers":null,"List of grammar files for grammar ‘":null,"List of registered LFG grammars":null,"Lithuanian":null,"Load saved":null,"Local":null,"Localizations to":null,"Log":null,"Log Likelihood":null,"Look up in":null,"Look up in dictionary":null,"Ludvig Holberg’s writings":null,"Main Editor(s)":null,"Main Page":null,"Manuscript":null,"match":null,"Matching word(s) or structure(s)":null,"Match size":null,"matchx":null,"max length:":null,"Mean length:":null,"MENOTA":null,"Menota":null,"Menota Lemmatizing Assistent":null,"Message":null,"Meta":null,"Metadata":null,"Metadata Editor":null,"Metadata Records":null,"Metaordbok":null,"Metaordboka":null,"Metaordboken":null,"Middle Georgian":null,"Middle Georgian texts":null,"Mingrelian":null,"MLA":null,"Mode":null,"Model text":null,"Modern Georgian":null,"Morphological analysis":null,"MS or Work Title":null,"multi-valued":null,"Mutual Information":null,"Name":null,"negated":null,"New Georgian texts":null,"Next":null,"next":null,"Next matches":null,"Next page":null,"No collocations calculated":null,"No entry found.":null,"No entry found for lemma":null,"No entry found for word":null,"No hit":null,"None":null,"No query":null,"Norm":null,"norm":null,"Norwegian":null,"Norwegian Bokmål":null,"Norwegian Nynorsk":null,"not done":null,"Nynorsk":null,"Nynorskordboka":null,"of":null,"off":null,"Old Georgian":null,"Old Georgian texts":null,"Old Norse":null,"on":null,"One match per line":null,"Only combinations that do occur in the corpus can be selected.":null,"OpenID":null,"OpenIdP":null,"OpenID sign in":null,"Oppslagsformer":null,"or":null,"Ordbank":null,"Ordbanken":null,"Ordbokredigering":null,"Ordbøkene":null,"Ordbøker":null,"Ordform":null,"Ordforslag":null,"or go directly to the Concordance page.":null,"Orig. date":null,"Original date":null,"Original place":null,"Original text":null,"Packed representation":null,"Page":null,"page":null,"Page size":null,"PALAG":null,"parallel-context":null,"Parallel Sentences":null,"Parse":null,"Password":null,"Photo":null,"Place":null,"plain-context":null,"play":null,"Please choose a text from the Text repository.":null,"Please chose a corpus from the Corpus list.":null,"Please restart your session":null,"POS":null,"Position:":null,"positional constraints":null,"positive":null,"Previous":null,"previous":null,"Previous matches":null,"Previous page":null,"public":null,"Publication date":null,"Public catalogue":null,"PubNoEnPC":null,"punctuation":null,"put each field into double quotes":null,"puts each field into double quotes":null,"Query expression":null,"Query expression (basic search mode)":null,"Query history":null,"Query history is empty.":null,"Query the selected corpora":null,"Readible":null,"reduced":null,"Refine":null,"Region":null,"relative":null,"Relative frequency":null,"Relative numbers are matches per":null,"relative to":null,"Rel. freq.":null,"Reload":null,"Reload morphology":null,"Reparse":null,"repetition":null,"Repository":null,"Reset matches":null,"Reset query":null,"Reset the query to standard setting":null,"Responsible(s)":null,"right context":null,"Roles:":null,"Running…":null,"running":null,"Samling":null,"Save":null,"Save Copy":null,"Saved queries":null,"Save Query":null,"scope":null,"Scots":null,"Search":"Suche","Search for word or phrase":null,"Search for word or phrase:":null,"select":null,"Select corpora":"Korpusauswahl","Select corpora by language or collection:":"Korpusauswahl nach Sprache und Sammlung:","Select corpora from the list below by clicking on their names.":null,"Select corpora from the list below by clicking on their names. Then click on “Query the selected corpora” below or go directly to the Concordance page.":null,"Selected corpus":"Ausgewähltes Korpus","Selected corpora":"Ausgewählte Korpora","select restriction criteria for a subcorpus":null,"Select values for":null,"Send":null,"Sentence":null,"Sentence Overview":null,"Session started at":null,"Setelarkiv":null,"Shortcuts:":null,"Short name":null,"Show":null,"Show additional tasks:":null,"Show all annotation sets":null,"Show all readings":null,"Show annotation":null,"Show apparatus":null,"show atomic values":null,"Show attribute columns:":null,"show audio/video player":null,"Show collocations":null,"Show concordance for selection":null,"Show context":null,"Show dependencies":null,"Show distribution":null,"Show facsimile image":null,"Show features":null,"show freq.":null,"show in match":null,"Show language and collection filter":null,"Show line filter":null,"show LL":null,"show MI":null,"Show only selected variable":null,"Show page and line numbers":null,"Show parse link":null,"Show query expression":null,"Show references":null,"show rel. freq.":null,"shows the last 20 queries in this session":null,"Show structures:":null,"Show used rules":null,"Signature":null,"Signatures":null,"Size":"Größe","size":"Größe","Size (tokens)":null,"Size (tokens/words & punctuation)":null,"Size (words & punctuation)":null,"Sizex":null,"Slovenian":null,"sort":null,"sort by":null,"sorted by":null,"Source":null,"Spanish":null,"Språksamlingene":null,"Statistics":null,"Status":null,"Stop":null,"store":null,"stored queries shown":null,"struct":null,"Structures":null,"subcorpus":null,"Subject":null,"Suited for drag and drop-import into MS Excel":null,"supplied":null,"suppress in match":null,"Svan":null,"switch to":null,"Søk":null,"TAG":null,"Tagset":null,"Talebanken":null,"target":null,"Task:":null,"Test catalogue":null,"Text Metadata":null,"Text repository":null,"Texts":null,"Texts list":null,"Then click on “Query the selected corpora” below":null,"Then click on “Query the selected corpora” below.":null,"There is no text list available for the selected corpora.":null,"This catalogue lists all texts in the Abkhaz National Corpus.":null,"This catalogue lists all texts in the PALAG corpus.":null,"This catalogue lists all texts in the selected GNC corpora.":null,"Title":null,"tokens":null,"Translator":null,"Transliterate":null,"Treebank":null,"Treebank Details":null,"Treebank doc.":null,"Treebank Overview":null,"Treebanks":null,"Treebank Selection":null,"Treebank Sentence":null,"Type":null,"type":null,"Type/token average":null,"UD features":null,"unique values":null,"unique words or phrases":null,"unparsed":null,"Updated":"Aufdatiert","Upload corpus":null,"Use * as wildcard":null,"Used with:":null,"User Administration":null,"Username":null,"Use this input form to write a textual query.":null,"Use transliteration":null,"Variable":null,"Variable:":null,"Variable description":null,"Variables":null,"Variant":null,"Variety":null,"variety":null,"Version":null,"version":null,"view":null,"Wiki":null,"window":null,"Window size":null,"Words":null,"words":null,"(words & punctuation)":null,"Write a sentence or shorter text and click the ‘Parse’ button.":null,"Xanmeti":null,"XLE-Web":null,"XML":null,"You are not authorized to access this corpus.":null,"You are not authorized to access this corpus. Please go to the Metadata page and accept the license terms.":null,"You can click on the morphosyntactic features of the analyzed text to have them explained.":null,"Your comment has been sent.":null,"Your query history is empty.":null,"You should provide a subject.":null,"You should provide some text.":null,"В. Касланӡиа: Аҧсуа-аурыс жәар":null,"absolute":"absolut","add":"füge hinzu","add a positional constraint":"füge eine positionelle Bedingung hinzu","Add as alternative":"Füge als Alternative hinzu","Administration":"Verwaltung","Advanced search":"Erweiterte Suche","aligned-context":"alignierter Kontext","All":"Alle","alphabetic":"alphabetisch","and":"und","annotation":"Annotation","Apply":"Wende an","Attribute":"Attribut","attribute":"Attribut","Attributes":"Attribute","Author":"Autor","Availability":"Zugang","Basic search":"Einfache Suche","Between":"Zwischen","Build a graphical representation of the query expression.":"Erstelle eine graphische Darstellung der Suchanfrage","Build graphical query":"Erstelle eine graphische Suchanfrage","by":"nach","by frequency":"nach Frequenz","Cancel":"Abbrechen","Choose":"Wähle","Choose a":"Wähle ein","Choose a corpus from the list below. Some corpora are only available when you have signed in.":"Wähle einen Korpus aus der Liste. Manche Korpora sind erst nach Anmeldung zugänglich.","Choose Corpus":"Wähle einen Korpus","Collections":"Sammlungen","Collocations":"Kollokationen","Columns":"Spalten","Comedi":"Gruppen","Comment":"Kommentar","Comments":"Kommentare","computed":"berechnet","Concordance":"Konkordanz","Constrain your search to":"Beschränke die Suche auf","Contact":"Kontakt","context":"Kontext","Context size":"Kontextumfang","Corpora":"Korpora","Corpus":"Korpus","corpus":"Korpus","Corpus list":"Korpusliste","Created":"Erstellt","Date":"Lösche","Delete Query":"Datum","Delete this alternative":"Lösche diese Alternative","Description":"Beschreibung","Go to page":"Gehe zu Seite","go to start of document":"gehe zum Dokumentstart","Grammar":"Grammatik","grammar":"Grammatik","Grammars":"Grammatiken","group by":"gruppiere nach","Language":"Sprache","language":"Sprache","Languages":"Sprachen","Language(s)":"Sprache(n)","languages":"Sprachen","License":"Lizenz","Line count":"Zeilenzählung","Localization":"Lokalisierung","Miiddle Georgian":"Kollokationen berechnet","Overview":"Übersicht","Publication":"Publikation","Publisher":"Verleger","Query":"Suche","Reset":"Zurücksetzen","Run Query":"Suche starten","Search for a word or a phrase":"Suche nach einem Wort oder einer Phrase","Signed in as":"Angemeldet als","Sign in":"Anmelden","Sign out":"Abmelden","Simple Query":"Enfache Suche","Text":"Text","Text access restricted":"Textzugang beschränkt","Text list":"Textliste","Treebank selection":"Absolute Frequenz","Users":"Benutzer","Word List":"Wortliste","Word list":"Wortliste","You are signed in as":"Sie sind angemeldet als","Hide Search":"Suchmenu verbergen","Textual search":"Textuelle Suche","Ctxt":"Kontext","Match":"Treffer","Left":"Links","Right":"Rechts","Cataogue":"Katalog"}')},"7f33":function(e,t,s){},"7fed":function(e,t,s){"use strict";s("9a91")},"827a":function(e,t,s){},8451:function(e,t,s){var o={"./ACA.png":"eac1","./BY.png":"5f7d","./CC.png":"270b","./DEP.png":"ac1b","./ID.png":"1c5a","./INF.png":"3c8c","./LRT.png":"3a4e","./NC.png":"9efc","./ND.png":"3f53","./NORED.png":"9e6d","./PERM.png":"f21c","./PLAN.png":"1f23","./PRIV.png":"5bd3","./PUB.png":"2b84","./RES.png":"c00e","./SA.png":"0ec3","./aca.png":"2aab","./by.large.png":"f82d","./cc.large.png":"c854","./clarin.png":"5cf6","./dep.png":"7534","./ff.png":"c78b","./gplv3.png":"922e","./id.png":"ae88","./inf.png":"14b6","./lgplv3.png":"95a9","./loc.png":"9b67","./lrt.png":"53b6","./meta.png":"9cd6","./nc-eu.large.png":"1b44","./nd.large.png":"4047","./nored.png":"2233","./null.png":"8632","./other.png":"7530","./plan.png":"d1cf","./priv.png":"368a","./pub.png":"62bf","./publicdomain.large.png":"f96e","./req.png":"b40b","./res.png":"56d8","./sa.large.png":"3161","./unavailable.png":"c93a","./unspecified.png":"4626","./zero.large.png":"0e95"};function n(e){var t=a(e);return s(t)}function a(e){if(!s.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}n.keys=function(){return Object.keys(o)},n.resolve=a,e.exports=n,n.id="8451"},"85f6":function(e,t,s){},8632:function(e,t,s){e.exports=s.p+"img/null.1961971d.png"},8726:function(e,t,s){},"8b0f":function(e,t,s){},"8c11":function(e,t,s){"use strict";s("ff21")},"8ce3":function(e,t,s){"use strict";var o=function(){var e,t=this,s=t._self._c;return s("div",{staticClass:"ml-3"},[null!==(e=t.tokenStore.dictEntries)&&void 0!==e&&e.length?t._e():s("span",{staticClass:"dictionary"},[t._v(" No entries found for "),s("b",[t._v(t._s(t.tokenStore.lemma))]),t._v(". ")]),t._l(t.tokenStore.dictEntries,(function(e,o){return s("dict-entry",{key:o,attrs:{entry:e,mode:t.mode}})}))],2)},n=[],a=s("44bf"),i=s("59a0"),r={name:"dictEntries",props:["mode"],mixins:[a["b"]],components:{dictEntry:i["a"]}},l=r,c=(s("a938"),s("2877")),u=Object(c["a"])(l,o,n,!1,null,null,null);t["a"]=u.exports},"8d66":function(e){e.exports=JSON.parse('{"en":"English","no":"Norsk (Bokmål)","nno":"Norsk (Nynorsk)","korpuskel":"Korpuskel","Administration":"Administrering","Admin":"Admin","Bookmark page":null,"Bookmark this page":null,"Set bookmark":"Lag bokmerke","Choose the corpora you wish to work with from this list.":"Vel korpusa du vil jobbe med frå denne lista.","Clear":"Tøm","Click on a corpus to see details.":"Klikk på eit korpusnamn for å sjå detaljar.","Code":"Kode","Corpora":"Korpusliste","Available corpora":"Tilgjengelege korpus","Corpus list":"Korpusliste","done":"Ferdig","Explanation":"Forklaring","Features":"Trekk","Filter variable":"Filtervariabel","Grammatical Features":"Grammatiske trekk","abbreviated syntax: /…/":"forkorta syntaks: /…/","abbreviated syntax: {…}":"forkorta syntaks: {…}","absolute":"absolutt","Absolute frequency":"Absolutt frekvens","Accept":"Aksepter","add":"legg til","Add":"Legg til","Add as alternative":"Legg til som alternativ","Advanced search":"Avansert søk","All":"Alle","alphabetic":"alfabetisk","and":"og","annotation":"annotasjon","Apply":"Bruk","as":"som","Attribute":"Attributt","attribute":"attributt","Attributes":"Attributt","audio only":"berre lyd","Author":"Forfattar","Basic search":"Enkelt søk","Between":"Mellom","Bookmarks":"Bokmerke","Build a graphical representation of the query expression.":"Bygg ein grafisk representasjon av søkjeuttrykket.","Build graphical query":"Bygg eit grafisk søk","Bulgarian":"Bulgarsk","by frequency":"etter frekvens","Cancel":"Angre","check for case-insensitive search":"kryss av for ikkje å skilje mellom små og store bokstavar","check to mark position as target position":"kryss av for å markere targetposisjon","Choose":"Vel","Choose a":"Vel eit","Choose a corpus from the list below. Some corpora are only available when you have signed in.":"Vel eit korpus frå lista nedanfor. Nokre korpus er berre tilgjengelege om du er pålogga.","Choose Corpus":"Vel korpus","choose how many consecutive corpus positions the constraints should apply to":"vel kor mange etterfølgjande korpusposisjonar vilkåra skal gjelde for","Choose variable:":"Velg ein variabel:","Click to add an alternative":"Klikk for å leggje til eit alternativ","Click to add a position":"Klikk for å leggje til ein posisjon","Click to choose a new value from list":"Klikk for å velje ein ny verdi frå lista","Click to delete an attribute":"Klikk for å slette eit attributt","click to delete position":"klikk for å slette posisjonen","Click to edit the value":"Klikk for å redigere verdien","Click to go back to this query":"Klikk for å komme tilbake til dette søket","Click to remove column":"Klikk for å fjerne kolonna","Click to toggle negation":"Klikk for å slå negasjon på/av","Collections":"Samlingar","Collocations":"Kollokasjonar","Columns":"Kolonner","Comment":"Kommentar","computed":"berekna","Concordance":"Konkordans","Contact":"Kontakt","context":"kontekst","Context size":"Kontekststørrelse","Corpus":"Korpus","Corpuscle":"Korpuskel","Corpus doc.":"Korpusdok.","Corpus position":"Korpusposisjon","count":"frekvens","Created":"Oppretta","Delete Query":"Slett søket","Delete this alternative":"Slett dette alternativet","Description":"Beskriving","Display":"Visningsmodus","Distribution":"Distribusjon","Documentation":"Dokumentasjon","Done":"Ferdig","Download":"Last ned","edit":"rediger","English":"Engelsk","Entire corpus chosen":"Heile korpus valt","Excel mode":"Excel-modus","filter":"filter","first":"første","French":"Fransk","Georgian":"Georgisk","German":"Tysk","Go":"Gå","Go to":"Gå til","Go to page":"Gå til side","go to start of document":"gå til starten av dokumentet","group by":"grupper etter","Here you can compose a query graphically.":"Her kan du lage eit søk ved å bruke menyar.","Here you can send a comment or report a bug to the ASK maintainers.":"Her kan du gi tilbakemelding eller rapportere ein feil til ASK.","Hide":"Skjul","Hit":"Treff","hits":"treff","Home":"Heim","ignore case":"ignorer storskriving","Ignore structural positions":"Ignorer strukturelle posisjonar","include missing values":"inkluder manglande verdiar","include values that are not represented in the match list":"inkluder verdiar som ikkje er representerte i trefflista","Lang.":"Språk","Language":"Språk","language":"språk","Languages":"Språk","Language(s)":"Språk","languages":"språk","Language variety":"Språkvariant","last":"siste","left context":"venstrekontekst","Licence":"Lisens","License":"Lisens","Line count":"Linjeteljing","Lithuanian":"Litauisk","Load saved":"Hent lagra","Localization":"Lokalisering","Localizations to":"Lokaliseringar til","Ludvig Holberg’s writings":"Ludvig Holbergs skrifter","Main Page":"Hovudside","match":"treff","Match size":"Antal treff","Message":"Melding","negated":"negert","Next":"Neste","next":"neste","Next matches":"Neste treff","Next page":"Neste side","No hit":"Ikkje noko treff","None":"Ingen","No query":"Ikkje noko søk","Norwegian":"Norsk","Norwegian Bokmål":"Norsk Bokmål","Norwegian Nynorsk":"Nynorsk","of":"av","off":"av","on":"på","One match per line":"Eit treff per linje","Overview":"Oversikt","Page":"Side","page":"side","Page size":"Linjer per side","parallel-context":"parallel-kontekst","Password":"Passord","Position:":"Posisjon:","positional constraints":"posisjonelle vilkår","positive":"positivt","Previous":"Førre","previous":"førre","Previous matches":"Førre treff","Previous page":"Førre side","public":"felles","Query":"Søk","Query expression":"Søkeuttrykk","Query history":"Søkehistorie","Refine":"Raffiner","relative":"relativ","repetition":"gjentaking","Reset":"Tilbakestill","Reset matches":"Tilbakestill treffa","Reset query":"Tilbakestill","Reset the query to standard setting":"Tilbakestill søket til standardinstillinga","right context":"høgrekontekst","Run query":"Søk","Save":"Lagre","Saved queries":"Lagra søk","Save query":"Lagre søket","scope":"rekkevidde","Scots":"Skotsk","Search":"Søk","Search for word or phrase":"Søk etter ord eller frase","select":"vel","Select corpora by language or collection:":"Vel korpus etter språk eller samling:","select restriction criteria for a subcorpus":"vel restriksjonskriterium for eit delkorpus","Send":"Send","Show":"Vis","Show annotation":"Vis annotasjon","show atomic values":"vis atomiske verdiar","Show attribute columns:":"Vis attributtkolonner:","show audio/video player":"vis audio/video-spelar","Show collocations":"Vis kollokasjonar","Show context":"Vis kontekst","Show distribution":"Vis distribusjon","show in match":"vis i treff","Show language and collection filter":"Vis filtermenyen","Show line filter":"Vis linjefilter","Show structures:":"Vis kontekst","Signed in as":"Innlogga som","Sign in":"Logg inn","Sign out":"Logg ut","Simple Query":"Enkelt søk","Size":"Storleik","size":"storleik","Size (tokens)":"Storleik (korpusposisjonar)","sort":"sorter","sorted by":"sortert etter","Spanish":"Spansk","Statistics":"Statistikk","store":"lagre","Structures":"Strukturar","subcorpus":"delkorpus","Subject":"Tittel","Svan":"Svanisk","switch to":"byt til","Text":"Tekst","Texts":"Tekstar","Type":"Type","type":"type","unique words or phrases":"unike ord/frasar","unparsed":"uparsa","Updated":"Oppdatert","Upload corpus":"Last opp","User Administration":"Brukaradministrering","Username":"Brukarnamn","Users":"Brukarar","Variables":"Variablar","window":"vindauge","Word List":"Ordliste","Word list":"Ordliste","words":"ord","(words & punctuation)":"(ord & teiknsetting)","Time line":"Tidslinje","Hide Search":"Skjul søkemeny","Running time":"Prosesseringstid","Menu search":"Menystyrt søk","Textual search":"Tekstsøk","Search string":"Søkestreng","No matches found":"Ingen treff","from":"frå","to":"til","Halt":"Pause","Resume":"Fortsett","Save this query as":"Lagre søket som","Public query":"Offentleg søk","Select a saved query":"Velg eit lagra søk","Public queries only":"Berre offentlege søk","Private queries only":"Berre private søk","No corpus selected":"Korpus ikkje valt","Selected":"Valt","matches":"treff","Settings":"Innstillingar","atomic values":"atomiske verdiar","Sort":"Sorter","unique values":"ulike verdiar","unique value":"verdi","Randomize":"Randomisér","query-done":"Ferdig","query-stopped":"Stoppa","query-halted":"Pausa","Left context":"Venstrekontekst","Right context":"Høgrekontekst","Calculate distribution":"Berekn distribusjon","Calculating":"Bereknar","Relative to":"Relativt til","include structures":"inkluder strukturar","Group by":"Grupper etter","MI * log(Freq)":"MI * log(Freq)","Mutual information":"Mutual information","Log likelihood":"Log likelihood","Rel. frequency":"Rel. frekvens","Threshold":"Terskel","Frequency":"Frekvens","Sort by":"Sorter etter","query-running":"Bereknar","collocations":"kollokasjonar","See license terms":"Sjå lisensvilkår","Select all":"Vel alle","Deselect all":"Fjern vala","Search the selected corpora":"Søk i dei valde korpusa","Corpuscle query language":"Korpuskel-søkespråk","Copy query URL":"Kopier søke-URL","URL copied":"URL kopiert","Select a query":"Vel eit søkeuttrykk","Your query history for this corpus choice is empty.":"Søkehistoria for dette korpusvalet er tom.","to choose corpora":"for å velje korpus","Choose parameter settings":"Vel parameterinnstillingar","Click on the query expression to see its documentation":"Klikk på søkeuttrykket for å sjå dokumentasjonen","by clicking on the query name":"ved å klikke på namnet til søket","Show annotations":"Vis annotasjonane","Lines per page in KWIC concordance":"Rader per side i KWIC-konkordans","Set bookmark for this page":"Lag bokmerke for denne sida","This table lists your bookmarks":"Dette er dine bokmerke","Click on a bookmark to go to the corresponding page":"Klikk på eit bokmerke for å gå til den tilsvarande sida","There are no bookmarked pages":"Du har ikkje nokon bokmerke","You can create a bookmark on any text page":"Du kan lage eit bokmerke for ei kva som helst tekstside","Write simple search or CQL search":"Skriv eit enkelt søkeuttrykk, eller eit søkeuttrykk i Korpuskel-søkespråket","Search expression":"Søkeuttrykk","Corpus search":"Korpussøk","Search in matches":"Søk i treffa","Query name":"Namn til søkeuttrykk","Filter by name":"Filtrer etter namn","Filter by query string":"Filtrer etter søkeuttrykk","Task":"Annotasjonssett","Variable":"Variabel","Show only selected variable":"Vis bare valt variabel","include counts":"inkluder antal","include fractions":"inkluder brøk","case insensitive":"ikkje skil liten/stor bokstav","Lemma":"Lemma","By accepting the terms of the license you will be granted access to the resource":"Når du har akseptert lisensvilkåra vil du få tilgang til denne ressursen","This resource has a restricted license":"Denne ressursen har ein restriktiv lisens","You have accepted the license":"Du har akseptert lisensen","Please click on the link to read the license terms":"Klikk på lenka for å sjå lisensvilkåra","The resource":"Ressursen","is licensed under the following terms":"er lisensiert under følgjande vilkår","Click for more info":"Klikk for meir info","percentages":"prosentar","absolute bars":"absolutte stolpar","relative bars":"relative stolpar","Sort column by":"Sorter kolonna etter","include":"inkluder","Numbers in black are absolute counts":"Tala i svart er absolutte tal","Percentages in green are unweighted means of group percentages":"Prosentane i grønt er uvekta gjennomsnitt av gruppeprosentane","Percentages in red are distributions of absolute counts inside a row":"Prosenttala i raudt er distribusjonar av absolutte tal innan ei rad","See":"Se","Distribution and Cooccurrence statistics":"Distribusjon og samførekomststatistikk","for an in-depth explanation":"for ei detaljert forklaring","fraction":"brøk","Attributes shown":"Viste attributt","Structures shown":"Viste strukturar","Add constraint":"Legg til vilkår","Show more context":"Vis meir kontekst","Show search menu":"Vis søkemeny","Hide search menu":"Skjul søkemeny","caption.NOUN":"Bøyningstabell for dette substantivet","caption.VERB":"Bøyningstabell for dette verbet","caption.VERBPP":"Bøyningstabell for dette verbet (partisippformer)","caption.ADJ":"Bøyningstabell for dette adjektivet","caption.ADJCS":" Bøyningstabell for dette adjektivet (gradbøyning)","caption.ADV":"Bøyningstabell for dette adverbet","caption.PRON":"Bøyningstabell for dette pronomenet","caption.DET":"Bøyningstabell for dette determinativet","NOUN":"substantiv","PROPN":"prop","VERB":"verb","ADJ":"adjektiv","ADV":"adverb","ADP":"preposisjon","INTJ":"interjeksjon","DET":"determinativ","PRON":"pronomen","CCONJ":"konjunksjon","SCONJ":"subjunksjon","SYM":"symbol","INFM":"infinitivsmerke","tags.Form":"form","tags.Gender":"kjønn","tags.Sing":"eintal","tags.Plur":"fleirtal","tags.Ind":"ubunden","tags.Def":"bunden","tags.Finite":"finitte former","tags.Inf":"infinitiv","tags.Pres":"presens","tags.Past":"preteritum","tags.PresPerf":"presens perfektum","tags.Imp":"imperativ","tags.PerfPart":"perfektum partisipp","tags.Fem":"hokjønn","tags.FemShort":"hokjønn","tags.Masc":"hankjønn","tags.MascShort":"hankjønn","tags.MascFem":"hankjønn/ hokjønn","tags.Neuter":"inkjekjønn","tags.NeuterShort":"inkjekjønn","tags.PresPart":"presens partisipp","tags.Deg":"gradbøying","tags.Pos":"positiv","tags.Cmp":"komparativ","tags.Sup":"superlativ","tags.SupInd":"superlativ ubunden","tags.SupDef":"superlativ bunden","tags.Nom":"subjektsform","tags.Acc":"objektsform","tags.Uninfl":"ubøyeleg"}')},9168:function(e,t,s){},"922e":function(e,t,s){e.exports=s.p+"img/gplv3.5530b6e4.png"},"92c0":function(e){e.exports=JSON.parse('{"Bookmark page":null,"Bookmarks":null,"Bookmark this page":null,"Build a graphical representation of the query expression.":null,"Bulgarian":null,"by query string":null,"Catalogue":null,"Cataloguex":null,"Charter catalogue":null,"check for case-insensitive search":null,"check to mark position as target position":null,"Choose a treebank to work with from the list below.":null,"Choose corpora from the list below by clicking on their names.":null,"choose how many consecutive corpus positions the constraints should apply to":null,"Choose variable:":null,"Clear":null,"Click at an attribute to see its values":null,"Click on a document name to view the text.":null,"Click on a name to choose the query.":null,"Click on an attribute to see its values":null,"Click on a query to see its documentation.":null,"Click to add an alternative":null,"Click to add a position":null,"Click to add a position box":null,"Click to choose a new value from list":null,"Click to choose new values from list":null,"Click to delete an attribute":null,"Click to edit the value":null,"Click to go back to this query":null,"Click to parse sentence in XLE-Web":null,"Click to remove column":null,"Click to run the query. The result will be displayed in the Concordance pane.":null,"Click to toggle negation":null,"CMDI Metadata editor":null,"CMDI Metadata Records":null,"CMD Metadata":null,"CMD Metadata editor":null,"CMD Metadata Records":null,"Code":null,"Collections":null,"Collocate":null,"collocations calculated":null,"Columns":null,"combine context positions":null,"COMEDI":null,"Comedi":null,"Comments":null,"computed":null,"Constraint Grammar":null,"Constrain the search to a":null,"Contact":null,"Content":null,"Contents":null,"Copy query PID":null,"Copy query URL":null,"Corpuscle":null,"Corpuscle: Corpus list":null,"Corpuscle-Lex":null,"Corpus doc.":null,"Corpus position":null,"corpus positions matching the vertical value(s).":null,"correct":null,"counts only":null,"Created":null,"D3":null,"Delete this alternative":null,"Delta":null,"Diagram":null,"Dialects":null,"Dipl":null,"dipl":null,"Disambiguate":null,"Discard":null,"Disc. Statistics":null,"Display":null,"distance to match position":null,"distinct values":null,"Distributor":null,"Done":null,"Done.":null,"Do not put words in quotation marks. You can use * as wildcard: fish* finds fish and fishing, *fish finds swordfish etc.":null,"Download as Tab-separated values (.tsv) file":null,"Download corpus source":null,"Download corpus source as XML":null,"Drag onto column label to move column":null,"edit":null,"Edition":null,"Edit is":null,"edit-match":null,"Editor":null,"Editors":null,"Editor(s)":null,"Encoding":null,"(Entire corpus chosen.)":null,"expan":null,"Extracted words":null,"Facs":null,"facs":null,"Faroese":null,"Feide":null,"Feide sign in":null,"fifi":null,"filter":null,"filter by keeping only selected sentences":null,"Filter by name":null,"filter by removing deselected lines":null,"filter by removing selected lines":null,"filter by removing selected sentences":null,"filter inv.":null,"Filter variable":null,"for":null,"Fractions in blue are unweighted means of group fractions":null,"Fractions in green are distributions of total numbers":null,"Fractions sum up to 1.0 in each row":null,"French":null,"Freq.":null,"full":null,"gaga":null,"Gekko":null,"Genres":null,"German":null,"GNC":null,"GNC: Parse":null,"GNC: Text":null,"GNC: Text Repository":null,"Gnyronaxra":null,"Go":null,"Go to page":null,"go to start of document":null,"grammar":null,"Grammars":null,"group by":null,"Groups":null,"Haemeti":null,"Hand note":null,"has case-insensitive search":null,"Header":null,"Here you can compose a query graphically.":null,"Here you can parse sentences with the morphological analyser that is being developed for Abkhaz.":null,"Here you can parse sentences with the morphological analyser that is being developed for Abkhaz. (Beware of many errors!)":null,"Here you can send a comment or report a bug to the ASK maintainers.":null,"Home":null,"Home page":null,"ICAME":null,"ignore case":null,"include counts":null,"include fractions":null,"include missing values":null,"Include structural positions when calculating relative frequencies":null,"include structures":null,"include values that are not represented in the match list":null,"INESS":null,"Inventory":null,"Judeo-Georgian":null,"Keep the selected value(s) and add new value(s) as an alternative":null,"Keep the selected value(s) and add new value(s) as a negated alternative. (A match must not contain these values.)":null,"lb":null,"Levels":null,"Lex":null,"LFG Sentence":null,"LFG Treebank":null,"LFG Treebank Sentences":null,"LIAD":null,"Line count":null,"Lithuanian":null,"Local":null,"Localizations to":null,"Log":null,"Log Likelihood":null,"Look up in dictionary":null,"Ludvig Holberg’s writings":null,"Main Editor(s)":null,"Manuscript":null,"Matching word(s) or structure(s)":null,"Match size":null,"matchx":null,"max length:":null,"Mean length:":null,"MENOTA":null,"Menota":null,"Menota Lemmatizing Assistent":null,"Message":null,"Meta":null,"Metadata":null,"Metadata Editor":null,"Metadata Records":null,"Metaordbok":null,"Metaordboka":null,"Metaordboken":null,"Middle Georgian":null,"Middle Georgian texts":null,"Miiddle Georgian":null,"Mingrelian":null,"MLA":null,"Mode":null,"Model text":null,"Modern Georgian":null,"Morphological analysis":null,"MS or Work Title":null,"multi-valued":null,"Mutual Information":null,"Name":null,"negated":null,"New Georgian texts":null,"Next matches":null,"No collocations calculated":null,"No entry found.":null,"No entry found for lemma":null,"No entry found for word":null,"None":null,"No query":null,"Norm":null,"norm":null,"Norwegian":null,"Norwegian Bokmål":null,"Norwegian Nynorsk":null,"not done":null,"Nynorsk":null,"Nynorskordboka":null,"off":null,"Old Georgian":null,"Old Georgian texts":null,"Old Norse":null,"on":null,"One match per line":null,"Only combinations that do occur in the corpus can be selected.":null,"OpenID":null,"OpenIdP":null,"OpenID sign in":null,"Oppslagsformer":null,"or":null,"Ordbank":null,"Ordbanken":null,"Ordbokredigering":null,"Ordbøkene":null,"Ordbøker":null,"Ordform":null,"Ordforslag":null,"or go directly to the Concordance page.":null,"Original place":null,"Original text":null,"Packed representation":null,"PALAG":null,"parallel-context":null,"Parallel Sentences":null,"Photo":null,"plain-context":null,"play":null,"Please choose a text from the Text repository.":null,"Please chose a corpus from the Corpus list.":null,"Please restart your session":null,"POS":null,"Position:":null,"positive":null,"Previous matches":null,"Publication date":null,"Public catalogue":null,"PubNoEnPC":null,"put each field into double quotes":null,"puts each field into double quotes":null,"Query expression (basic search mode)":null,"Readible":null,"reduced":null,"Refine":null,"Region":null,"relative":null,"Relative frequency":null,"Relative numbers are matches per":null,"relative to":null,"Rel. freq.":null,"Reload":null,"Reload morphology":null,"Reparse":null,"Repository":null,"Reset matches":null,"Reset query":null,"Reset the query to standard setting":null,"Responsible(s)":null,"Roles:":null,"Running…":null,"running":null,"Run xQuery":null,"Samling":null,"Save":null,"Save Copy":null,"scope":null,"Scots":null,"Search for word or phrase:":null,"Select corpora":"აირჩიე კორპუსები","Selected corpus":"აირჩიე კორპუსი","Selected corpora":"არჩეული კორპუსები","Select corpora by language or collection:":null,"Select corpora from the list below by clicking on their names.":null,"select restriction criteria for a subcorpus":null,"Select values for":null,"Send":null,"Sentence":null,"Sentence Overview":null,"Session started at":null,"Setelarkiv":null,"Shortcuts:":null,"Short name":null,"Show additional tasks:":null,"Show all annotation sets":null,"Show all readings":null,"Show apparatus":null,"show atomic values":null,"Show attribute columns:":null,"show audio/video player":null,"Show concordance for selection":null,"Show dependencies":null,"Show distribution":null,"Show facsimile image":null,"show freq.":null,"show in match":null,"Show language and collection filter":null,"show LL":null,"show MI":null,"Show only selected variable":null,"Show page and line numbers":null,"Show parse link":null,"Show references":null,"show rel. freq.":null,"shows the last 20 queries in this session":null,"Show structures:":null,"Show used rules":null,"Signature":null,"Signatures":null,"Simple Query":null,"Size (tokens/words & punctuation)":null,"Size (words & punctuation)":null,"Sizex":null,"Slovenian":null,"sort":null,"sort by":null,"Spanish":null,"Språksamlingene":null,"Statistics":null,"Status":null,"store":null,"stored queries shown":null,"Subject":null,"Suited for drag and drop-import into MS Excel":null,"supplied":null,"suppress in match":null,"Svan":null,"Søk":null,"TAG":null,"Tagset":null,"Task:":null,"Test catalogue":null,"Text Metadata":null,"Texts list":null,"Then click on “Query the selected corpora” below":null,"Then click on “Query the selected corpora” below.":null,"There is no text list available for the selected corpora.":null,"This catalogue lists all texts in the Abkhaz National Corpus.":null,"This catalogue lists all texts in the PALAG corpus.":null,"Translator":null,"Transliterate":null,"Treebank":null,"Treebank Details":null,"Treebank doc.":null,"Treebank Overview":null,"Treebanks":null,"Treebank Selection":null,"Treebank selection":null,"Treebank Sentence":null,"Type/token average":null,"UD features":null,"unique values":null,"unique words or phrases":null,"unparsed":null,"Upload corpus":null,"Use * as wildcard":null,"User Administration":null,"Use this input form to write a textual query.":null,"Variable":null,"Variable:":null,"Variable description":null,"view":null,"Wiki":null,"Window size":null,"Words":null,"(words & punctuation)":null,"Xanmeti":null,"XLE-Web":null,"XML":null,"You are not authorized to access this corpus.":null,"You are not authorized to access this corpus. Please go to the Metadata page and accept the license terms.":null,"Your comment has been sent.":null,"Your query history is empty.":null,"You should provide a subject.":null,"You should provide some text.":null,"В. Касланӡиа: Аҧсуа-аурыс жәар":null,"absolute":"აბსოლუტური","add":"მოუმატე","Add as alternative":"დაუმატე როგორც ალტერნატივი","Additional constraints":"დამატებითი შეზღუდვები","Additional constraints for this position:":"დამატებითი შეზღუდვები ამ პოზიციისათვის:","Administration":"(სიტყვები & პუნქტუაცია)","Advanced search":"რთული ძიება","All":"ყველა","alphabetic":"ანბანის მიხედვით","and":"და","annotation":"აბიტურება","as":"როგორც","Attribute":"ატრიბუტი","attribute":"ატრიბუტი","Attributes":"ატრიბუტები","Author":"ავტორი","Availability":"ხელმისაწვდომობა","Basic query expression":"მარტივი ძიება","Basic search":"მარტივი ძიება","Between":"შორის","Build graphical query":"ააგე გრაფიკული საძიებო","by":"ატრ.:","By clicking on [+] you can inspect the texts of a collection.":"კრებულებსა და ტექსტურ კოლექციებში შესული ტექსტების ჩამონათვალის გასახსნელად დააწკაპეთ ღილაკს [+].","by frequency":"სიხშირის მიხედვით","Cancel":"გაუქმე","Choose":"აირჩიე","Choose a":"აირჩიე","Choose a corpus from the list below. Some corpora are only available when you have signed in.":"კორპუსების ჩამონათვალიდან აირჩიეთ ერთ-ერთი","Choose Corpus":"კორპუსი აირჩიეთ","Click on a column heading to sort":"კატალოგში მოცემული ინფორმაციის ანბანური ან ქრონოლოგიური სორტირებისათვის დააწკაპეთ სვეტის სათაურს (ენა, ტექსტის ტიპები, ორიგ. თარიღი ან ტექსტი)","Click on a row title to sort":"სორტირებისთვის დააჭირეთ სვეტის სათაურს","Click on a text title to see more information about the text":"ტექსტის შესახებ დამატებითი ინფორმაციის (მეტამონაცემების) გამოსაძახებლად დააწკაპეთ ტექსტის სათაურს ან  ავტორს","Click on the [Text] link to browse the text":"თავად ტექსტის გამოსაძახებლად დააწკაპეთ ღილაკს [ტექსტი]","click to choose":"გამოიძახეთ მენიუ დაწკაპებით","click to delete position":"წაშალეთ","close":"დახურეთ","Collocations":"კოლოკაციები","Comment":"კომენტარი","Concordance":"კონკორდანსი","Constrain your search to":"შეზღუდეთ ძიება მახასიათებლების მიხედვით","Constrain your search to a subcorpus":"შეზღუდეთ ძიება მახასიათებლების მიხედვით","context":"კონტექსტი","Context size":"კონტექსტის სიგანე","Corpora":"კორპუსები","Corpus":"კორპუსი","corpus":"კორპუსი","Corpus list":"კორპუსები","count":"№","Date":"თარიღი","Delete Query":"წაშალე შენახული ძიება","Description":"აღწერა","Dictionary entry":"ლექსიკონის ერთეული","Distribution":"დარიგების სტატისტიკა","Document":"დოკუმენტი","document":"დოკუმენტი","Documentation":"დოკუმენტაცია","Download":"ჩამოტვირთვა","empty":"ცარიელი","Eng. Code":"ინგლ. კოდი","English":"ინგლისური","Entire corpus chosen":"არჩეულია მთლიანი კორპუსი","Example":"მაგალითი","Excel mode":"Excel-ისთვის","Explanation":"ახსნა","Features":"მარკერები","File":"ფაილი","first":"პირველი","Genre":"ტექსტის ტიპი","Geo. Code":"ქართ. კოდი","Georgian":"ქართული","Georgian text":"ქართული ტექსტი","Go to":"გადადი","Grammar":"გრამატიკა","Grammatical Features":"გრამატიკული მახასიათებლები","Grammatical features":"გრამატიკული მახასიათებლები","Grammatical features and their descriptions.":"გრამატიკული მახასიათებლები და მათი აღწერა.","Here you can parse sentences with the morphological analysers that are being used to analyze the texts of the GNC.":"ამ გვერდზე თქვენ გეძლევათ საშუალება გააანალიზოთ წინადადება სინტაქსურად. ანალიზი ხორციელდება იმ მორფოლოგიური ანალიზატორის მეშვეობით, რომელიც გამოიყენება ქართული ენის ეროვნული კორპუსის ტექსტების ანალიზისათვის.","Hide":"დამალე","Hit":"კონტექსტი","hits":"კონტექსტი","Ignore structural positions":"გამოტოვე სტრუქტურალური პოსიციები","is POS?":"მეტყველების ნაცილია?","Lang.":"ენა","Language":"ენა","language":"ენა","Languages":"ენები","Language(s)":"ენა","languages":"ენები","Language variety":"ვარიანტი","last":"ბოლო","left context":"მარცხნივ","Lemma":"ლემა","Lemmatization":"ლემატიზაცია","lexicon":"ლექსიკონი","Licence":"ლიცენზია","License":"ლიცენზია","Load saved":"ამოიღე შენახული","Localization":"თარგმნა","Look up in":"მოძებნე ლექსიკონში","Main Page":"მთავარი გვერდი","match":"შედეგი","Next":"მომდევნო","next":"მომდევნო","Next page":"მომდევნო გვერდი","No hit":"კონტექსტი ვერ მოიძებნა","of":", საერთოდ:","Orig. date":"ორიგ. თარიღი","Original date":"ორიგინალური თარიღი","Overview":"მიმოხილვა","Page":"გვერდი","page":"გვერდი","Page size":"კონტექსტის რაოდენობა","Parse":"გაანალიზება","Password":"პაროლი","Place":"ადგილი","positional constraints":"პოსიციური შეზღუდვები","Previous":"წინა","previous":"წინა","Previous page":"წინა გვერდი","public":"ზოგადი","Publication":"პუბლიკაცია","Publisher":"გამომცემელი","punctuation":"პუნქტუაცია","Query":"ძიება","Query expression":"საძიებელი ფრაზა","Query history":"ძიების ისტორია","Query history is empty.":"ძიების ისტორია ცარიელია.","Query the selected corpora":"შერჩეულ კორპუს(ებ)ში ძიება","repetition":"განმეორება","Reset":"წაშლა","right context":"მარჯვნივ","Run Query":"ძებნა","Saved queries":"შენახული ძებნა","Save Query":"შეინახე ძიება","Search":"ძიება","Search for a word or a phrase":"აკრიფეთ საძიებელი სიტყვაფორმა ან ფრაზა","Search for word or phrase":"აკრიფეთ საძიებელი სიტყვაფორმა ან ფრაზა","select":"აირჩიე","Select corpora from the list below by clicking on their names. Then click on “Query the selected corpora” below or go directly to the Concordance page.":"შეარჩიეთ კორპუს(ებ)ი და მონიშნეთ. შემდეგ დააჭირეთ ღილაკს „შერჩეულ კორპუს(ებ)ში ძიება”","Show":"აჩვენე","Show annotation":"აჩვენე ანოტაციები","Show collocations":"აჩვენე კოლოკაციები","Show context":"აჩვენეთ კონტექსტი","Show features":"აჩვენე მახასიათებლები","Show line filter":"აჩვენე სტრიქონების ფილტრი","Show query expression":"რეგულარული გამოსახულებები ძიებისთვის","Signed in as":"მომხმარებელი:","Sign in":"შესვლა","Sign out":"გასვლა","Size":"მოცულობა","size":"მოცულობა","Size (tokens)":"მოცულობა","sorted by":"დალაგების წესი:","Source":"წყარო","Stop":"გააჩერე","struct":"სტრუქტ.","Structures":"სტრუქტურები","subcorpus":"ქვეკორპუსი","switch to":"აირჩიე","target":"მიზანი","Text":"ტექსტი","Text access restricted":"შეზღუდული ხელმისაწვდომობა","Text list":"ტექსტების სია","Text repository":"ტექტების საცავი","Texts":"ტექსტები","This catalogue lists all texts in the selected GNC corpora.":"ამ კატალოგში წარმოდგენილია ტექსტების სრული სია იმ ქვეკორპუს(ებ)იდან, რომელიც თქვენ აირჩიეთ.","Title":"სათაური","tokens":"ტოკენი","Type":"ტიპი","type":"ტიპი","Updated":"აქტუალიზებულია","Used with:":"გამოიყენება","Username":"მომხმარებელი","Users":"მომხმარებლები","Use transliteration":"ტრანსლიტერაცია","Variables":"პარამეტრები","Variant":"ვარიანტი","Variety":"ვარიანტი","variety":"ვარიანტი","Version":"ვერსია","version":"ვერსია","window":"ფანჯარა","Word List":"სიტყვათა სია","Word list":"სიტყვათა სია","words":"სიტყვები","Write a sentence or shorter text and click the ‘Parse’ button.":"დაწერეთ წინადადება თუ მოკლე ტექსტი.","You are signed in as":"მომხმარებელი:","You can click on the morphosyntactic features of the analyzed text to have them explained.":"ახსნისთვის დააწკაპეთ გრამატიკულ მახასიათებელს.","Hide Search":"დამალე ძიება"}')},"95a9":function(e,t,s){e.exports=s.p+"img/lgplv3.dff3767a.png"},"98d7":function(e){e.exports=JSON.parse('{"en":"English","no":"Norsk (Bokmål)","nno":"Nynorsk","de":"Deutsch","ka":"ქართული","ab":"Аҧсуа","ru":"Русски","si":"Slovenščina","korpuskel":"Corpuscle","Corpuscle":"Corpuscle","menota":"Menota","abnc":"AbNC","gnc":"GNC","Documentation":"Documentation","abbreviated syntax: /…/":"abbreviated syntax: /…/","abbreviated syntax: {…}":"abbreviated syntax: {…}","Abk. Code":"Abk. Code","Abkhazian":"Abkhazian","ABNC":"ABNC","AbNC":"AbNC","absolute":"absolute","Absolute frequency":"Absolute frequency","Accept":"Accept","add":"add","add a positional constraint":"add a positional constraint","Add as alternative":"Add as alternative","Additional constraints":"Additional constraints","Additional constraints for this position:":"Additional constraints for this position:","Administration":"Administration","Advanced search":"Advanced search","aligned-context":"aligned-context","Alignment Tool":"Alignment Tool","All":"All","Alle":"Alle","alphabetic":"alphabetic","Analysis":"Analysis","and":"and","annotation":"annotation","app":"app","Application form":"Application form","Apply":"Apply","as":"as","ASK":"ASK","Ask":"Ask","ask":"ask","Att":"Att","Attribute":"Attribute","attribute":"attribute","Attributes":"Attributes","audio only":"audio only","Author":"Author","Availability":"Availability","Available corpora":"Available corpora","Aviskorpus":"Aviskorpus","Basic query expression":"Basic query expression","Basic search":"Basic search","Between":"Between","Bookmark page":"Bookmark page","Bookmarks":"Bookmarks","Bookmark this page":"Bookmark this page","Build a graphical representation of the query expression.":"Build a graphical representation of the query expression.","Build graphical query":"Build graphical query","Bulgarian":"Bulgarian","by":"by","By clicking on [+] you can inspect the texts of a collection.":"By clicking on [+] you can inspect the texts of a collection.","by frequency":"by frequency","by query string":"by query string","Cancel":"Cancel","Catalogue":"Catalogue","Cataloguex":"Cataloguex","Charter catalogue":"Charter catalogue","check for case-insensitive search":"check for case-insensitive search","check to mark position as target position":"check to mark position as target position","Choose":"Choose","Choose a":"Choose a","Choose a corpus from the list below. Some corpora are only available when you have signed in.":"Choose a corpus from the list below. Some corpora are only available when you have signed in.","Choose a treebank to work with from the list below.":"Choose a treebank to work with from the list below.","Choose corpora from the list below by clicking on their names.":"Choose corpora from the list below by clicking on their names.","Choose Corpus":"Choose Corpus","choose how many consecutive corpus positions the constraints should apply to":"choose how many consecutive corpus positions the constraints should apply to","Choose variable:":"Choose variable:","Clear":"Clear","Click at an attribute to see its values":"Click at an attribute to see its values","Click on a column heading to sort":"Click on a column heading to sort","Click on a document name to view the text.":"Click on a document name to view the text.","Click on a name to choose the query.":"Click on a name to choose the query.","Click on an attribute to see its values":"Click on an attribute to see its values","Click on a query to see its documentation.":"Click on a query to see its documentation.","Click on a row title to sort":"Click on a row title to sort","Click on a text title to see more information about the text":"Click on a text title to see more information about the text","Click on the [Text] link to browse the text":"Click on the [Text] link to browse the text","Click to add an alternative":"Click to add an alternative","Click to add a position":"Click to add a position","Click to add a position box":"Click to add a position box","click to choose":"click to choose","Click to choose a new value from list":"Click to choose a new value from list","Click to choose new values from list":"Click to choose new values from list","Click to delete an attribute":"Click to delete an attribute","Click to edit the value":"Click to edit the value","Click to go back to this query":"Click to go back to this query","Click to parse sentence in XLE-Web":"Click to parse sentence in XLE-Web","Click to remove column":"Click to remove column","Click to run the query. The result will be displayed in the Concordance pane.":"Click to run the query. The result will be displayed in the Concordance pane.","Click to toggle negation":"Click to toggle negation","close":"close","CMDI Metadata editor":"CMDI Metadata editor","CMDI Metadata Records":"CMDI Metadata Records","CMD Metadata":"CMD Metadata","CMD Metadata editor":"CMD Metadata editor","CMD Metadata Records":"CMD Metadata Records","Code":"Code","Collections":"Collections","Collocate":"Collocate","Collocations":"Collocations","collocations calculated":"collocations calculated","Columns":"Columns","combine context positions":"combine context positions","COMEDI":"COMEDI","Comedi":"Comedi","Comment":"Comment","Comments":"Comments","computed":"computed","Concordance":"Concordance","Constraint Grammar":"Constraint Grammar","Constrain the search to a":"Constrain the search to a","Constrain your search to":"Constrain your search to","Constrain your search to a subcorpus":"Constrain your search to a subcorpus","Contact":"Contact","Content":"Content","Contents":"Contents","context":"context","Context size":"Context size","Copy query PID":"Copy query PID","Copy query URL":"Copy query URL","Corpora":"Corpora","Corpus":"Corpus","corpus":"corpus","Corpuscle: Corpus list":"Corpuscle: Corpus list","Corpuscle-Lex":"Corpuscle-Lex","Corpus doc.":"Corpus doc.","Corpus list":"Corpus list","Corpus position":"Corpus position","corpus positions matching the vertical value(s).":"corpus positions matching the vertical value(s).","correct":"correct","count":"count","counts only":"counts only","Created":"Created","Date":"Date","Delete Query":"Delete Query","Delete this alternative":"Delete this alternative","Delta":"Delta","Description":"Description","Diagram":"Diagram","Dialects":"Dialects","Dictionary entry":"Dictionary entry","Dipl":"Dipl","dipl":"dipl","Disambiguate":"Disambiguate","Discard":"Discard","Disc. Statistics":"Disc. Statistics","Display":"Display","distance to match position":"distance to match position","distinct values":"distinct values","Distribution":"Distribution","Distributor":"Distributor","Document":"Document","document":"document","Done":"Done","done":"done","Do not put words in quotation marks. You can use * as wildcard: fish* finds fish and fishing, *fish finds swordfish etc.":"Do not put words in quotation marks. You can use * as wildcard: fish* finds fish and fishing, *fish finds swordfish etc.","Download":"Download","Download as Tab-separated values (.tsv) file":"Download as Tab-separated values (.tsv) file","Download corpus source":"Download corpus source","Download corpus source as XML":"Download corpus source as XML","Drag onto column label to move column":"Drag onto column label to move column","edit":"edit","Edition":"Edition","Edit is":"Edit is","edit-match":"edit-match","Editor":"Editor","Editors":"Editors","Editor(s)":"Editor(s)","empty":"empty","Encoding":"Encoding","Eng. Code":"Eng. Code","English":"English","(Entire corpus chosen.)":"(Entire corpus chosen.)","Entire corpus chosen":"Entire corpus chosen","Example":"Example","Excel mode":"Excel mode","expan":"expan","Explanation":"Explanation","Extracted words":"Extracted words","Facs":"Facs","facs":"facs","Faroese":"Faroese","Features":"Features","File":"File","filter":"filter","filter by keeping only selected sentences":"filter by keeping only selected sentences","Filter by name":"Filter by name","filter by removing deselected lines":"filter by removing deselected lines","filter by removing selected lines":"filter by removing selected lines","filter by removing selected sentences":"filter by removing selected sentences","filter inv.":"filter inv.","Filter variable":"Filter variable","first":"first","for":"for","Fractions in blue are unweighted means of group fractions":"Fractions in blue are unweighted means of group fractions","Fractions in green are distributions of total numbers":"Fractions in green are distributions of total numbers","Fractions sum up to 1.0 in each row":"Fractions sum up to 1.0 in each row","French":"French","Freq.":"Freq.","full":"full","gaga":"gaga","Gekko":"Gekko","Genre":"Genre","Genres":"Genres","Geo. Code":"Geo. Code","Georgian":"Georgian","Georgian text":"Georgian text","German":"German","GNC":"GNC","GNC: Parse":"GNC: Parse","GNC: Text":"GNC: Text","GNC: Text Repository":"GNC: Text Repository","Go":"Go","Go to":"Go to","Go to page":"Go to page","go to start of document":"go to start of document","Grammar":"Grammar","grammar":"grammar","Grammars":"Grammars","Grammatical Features":"Grammatical Features","Grammatical features":"Grammatical features","Grammatical features and their descriptions.":"Grammatical features and their descriptions.","group by":"group by","Groups":"Groups","Haemeti":"Haemeti","Hand note":"Hand note","has case-insensitive search":"has case-insensitive search","Header":"Header","Here you can compose a query graphically.":"Here you can compose a query graphically.","Here you can parse sentences with the morphological analysers that are being used to analyze the texts of the GNC.":"Here you can parse sentences with the morphological analysers that are being used to analyze the texts of the GNC.","Here you can parse sentences with the morphological analyser that is being developed for Abkhaz.":"Here you can parse sentences with the morphological analyser that is being developed for Abkhaz.","Here you can parse sentences with the morphological analyser that is being developed for Abkhaz. (Beware of many errors!)":"Here you can parse sentences with the morphological analyser that is being developed for Abkhaz. (Beware of many errors!)","Here you can send a comment or report a bug to the ASK maintainers.":"Here you can send a comment or report a bug to the ASK maintainers.","Hide":"Hide","Hit":"Hit","hits":"hits","Home page":"Home page","ICAME":"ICAME","if checked, structural corpus positions are ignored unless searched for in the query, e.g., the query «\'a\' \'b\'» will match «a &lt;s&gt; b».":"if checked, structural corpus positions are ignored unless searched for in the query, e.g., the query «\'a\' \'b\'» will match «a &lt;s&gt; b».","ignore case":"ignore case","Ignore structural positions":"Ignore structural positions","include counts":"include counts","include fractions":"include fractions","include missing values":"include missing values","Include structural positions when calculating relative frequencies":"Include structural positions when calculating relative frequencies","include structures":"include structures","include values that are not represented in the match list":"include values that are not represented in the match list","INESS":"INESS","Inventory":"Inventory","is POS?":"is POS?","Judeo-Georgian":"Judeo-Georgian","Keep the selected value(s) and add new value(s) as an alternative":"Keep the selected value(s) and add new value(s) as an alternative","Keep the selected value(s) and add new value(s) as a negated alternative. (A match must not contain these values.)":"Keep the selected value(s) and add new value(s) as a negated alternative. (A match must not contain these values.)","Lang.":"Lang.","Language":"Language","Languages":"Languages","Language(s)":"Language(s)","languages":"languages","Language variety":"Language variety","last":"last","lb":"lb","left context":"left context","Lemma":"Lemma","Lemmatization":"Lemmatization","Levels":"Levels","Lex":"Lex","lexicon":"lexicon","LFG Sentence":"LFG Sentence","LFG Treebank":"LFG Treebank","LFG Treebank Sentences":"LFG Treebank Sentences","LIAD":"LIAD","Licence":"Licence","License":"License","Line count":"Line count","List of active XLE servers":"List of active XLE servers","List of grammar files for grammar ‘":"List of grammar files for grammar ‘","List of registered LFG grammars":"List of registered LFG grammars","Lithuanian":"Lithuanian","Load saved":"Load saved","Local":"Local","Localization":"Localization","Localizations to":"Localizations to","Log":"Log","Log Likelihood":"Log Likelihood","Look up in":"Look up in","Look up in dictionary":"Look up in dictionary","Ludvig Holberg’s writings":"Ludvig Holberg’s writings","Main Editor(s)":"Main Editor(s)","Main Page":"Main Page","Manuscript":"Manuscript","match":"match","Matching word(s) or structure(s)":"Matching word(s) or structure(s)","Match size":"Match size","matchx":"matchx","max length:":"max length:","Mean length:":"Mean length:","MENOTA":"MENOTA","Menota":"Menota","Menota Lemmatizing Assistent":"Menota Lemmatizing Assistent","Message":"Message","Meta":"Meta","Metadata":"Metadata","Metadata Editor":"Metadata Editor","Metadata Records":"Metadata Records","Metaordbok":"Metaordbok","Metaordboka":"Metaordboka","Metaordboken":"Metaordboken","Middle Georgian":"Middle Georgian","Middle Georgian texts":"Middle Georgian texts","Miiddle Georgian":"Miiddle Georgian","Mingrelian":"Mingrelian","MLA":"MLA","Mode":"Mode","Model text":"Model text","Modern Georgian":"Modern Georgian","Morphological analysis":"Morphological analysis","MS or Work Title":"MS or Work Title","multi-valued":"multi-valued","Mutual Information":"Mutual Information","Name":"Name","negated":"negated","New Georgian texts":"New Georgian texts","Next":"Next","next":"next","Next matches":"Next matches","Next page":"Next page","No collocations calculated":"No collocations calculated","No entry found.":"No entry found.","No entry found for lemma":"No entry found for lemma","No entry found for word":"No entry found for word","No hit":"No hit","None":"None","No query":"No query","Norm":"Norm","norm":"norm","Norwegian":"Norwegian","Norwegian Bokmål":"Norwegian Bokmål","Norwegian Nynorsk":"Norwegian Nynorsk","not done":"not done","Nynorsk":"Nynorsk","Nynorskordboka":"Nynorskordboka","of":"of","off":"off","Old Georgian":"Old Georgian","Old Georgian texts":"Old Georgian texts","Old Norse":"Old Norse","on":"on","One match per line":"One match per line","Only combinations that do occur in the corpus can be selected.":"Only combinations that do occur in the corpus can be selected.","OpenID":"OpenID","OpenIdP":"OpenIdP","OpenID sign in":"OpenID sign in","Oppslagsformer":"Oppslagsformer","or":"or","Ordbank":"Ordbank","Ordbanken":"Ordbanken","Ordbokredigering":"Ordbokredigering","Ordbøkene":"Ordbøkene","Ordbøker":"Ordbøker","Ordform":"Ordform","Ordforslag":"Ordforslag","or go directly to the Concordance page.":"or go directly to the Concordance page.","Orig. date":"Orig. date","Original date":"Original date","Original place":"Original place","Original text":"Original text","Overview":"Overview","Packed representation":"Packed representation","Page":"Page","page":"page","Page size":"Page size","PALAG":"PALAG","parallel-context":"parallel-context","Parallel Sentences":"Parallel Sentences","Parse":"Parse","Password":"Password","Photo":"Photo","Place":"Place","plain-context":"plain-context","play":"play","Please choose a text from the Text repository.":"Please choose a text from the Text repository.","Please chose a corpus from the Corpus list.":"Please chose a corpus from the Corpus list.","Please restart your session":"Please restart your session","POS":"POS","Position:":"Position:","positional constraints":"positional constraints","positive":"positive","Previous":"Previous","previous":"previous","Previous matches":"Previous matches","Previous page":"Previous page","public":"public","Public query":"Public query","Public queries only":"Public queries only","Private queries only":"Private queries only","Publication":"Publication","Publication date":"Publication date","Public catalogue":"Public catalogue","Publisher":"Publisher","PubNoEnPC":"PubNoEnPC","punctuation":"punctuation","put each field into double quotes":"put each field into double quotes","puts each field into double quotes":"puts each field into double quotes","Query":"Query","Query expression":"Query expression","Query expression (basic search mode)":"Query expression (basic search mode)","Query history":"Query history","Query history is empty.":"Query history is empty.","Query the selected corpora":"Query the selected corpora","Readible":"Readible","reduced":"reduced","Refine":"Refine","Region":"Region","relative":"relative","Relative frequency":"Relative frequency","Relative numbers are matches per":"Relative numbers are matches per","relative to":"relative to","Rel. freq.":"Rel. freq.","Reload":"Reload","Reload morphology":"Reload morphology","Reparse":"Reparse","repetition":"repetition","Repository":"Repository","Reset":"Reset","Reset matches":"Reset matches","Reset query":"Reset query","Reset the query to standard setting":"Reset the query to standard setting","Responsible(s)":"Responsible(s)","right context":"right context","Roles:":"Roles:","Running…":"Running…","running":"running","Run query":"Run query","Save":"Save","Save Copy":"Save Copy","Saved queries":"Saved queries","Save query":"Save query","scope":"scope","Scots":"Scots","Search":"Search","Search for a word or a phrase":"Search for a word or a phrase","Search for word or phrase":"Search for word or phrase","Search for word or phrase:":"Search for word or phrase:","select":"select","Select corpora by language or collection:":"Select corpora by language or collection:","Select corpora from the list below by clicking on their names.":"Select corpora from the list below by clicking on their names.","Select corpora from the list below by clicking on their names. Then click on “Query the selected corpora” below or go directly to the Concordance page.":"Select corpora from the list below by clicking on their names. Then click on “Query the selected corpora” below or go directly to the Concordance page.","select restriction criteria for a subcorpus":"select restriction criteria for a subcorpus","Select values for":"Select values for","Select corpora":"Select corpora","Selected corpus":"Selected corpus","Selected corpora":"Selected corpora","Send":"Send","Sentence":"Sentence","Sentence Overview":"Sentence Overview","Session started at":"Session started at","Setelarkiv":"Setelarkiv","Shortcuts:":"Shortcuts:","Short name":"Short name","Show":"Show","Show additional tasks:":"Show additional tasks:","Show all annotation sets":"Show all annotation sets","Show all readings":"Show all readings","Show annotation":"Show annotation","Show apparatus":"Show apparatus","show atomic values":"show atomic values","Show attribute columns:":"Show attribute columns:","show audio/video player":"show audio/video player","Show concordance for selection":"Show concordance for selection","Show context":"Show context","Show dependencies":"Show dependencies","Show distribution":"Show distribution","Show facsimile image":"Show facsimile image","Show features":"Show features","show freq.":"show freq.","show in match":"show in match","Show language and collection filter":"Show language and collection filter","Show line filter":"Show line filter","show LL":"show LL","show MI":"show MI","Show only selected variable":"Show only selected variable","Show page and line numbers":"Show page and line numbers","Show parse link":"Show parse link","Show query expression":"Show query expression","Show references":"Show references","show rel. freq.":"show rel. freq.","shows the last 20 queries in this session":"shows the last 20 queries in this session","Show structures:":"Show structures:","Show used rules":"Show used rules","Signature":"Signature","Signatures":"Signatures","Signed in as":"Signed in as","Sign in":"Sign in","Sign out":"Sign out","Simple Query":"Simple Query","Size":"Size","size":"size","Size (tokens)":"Size (tokens)","Size (tokens/words & punctuation)":"Size (tokens/words & punctuation)","Size (words & punctuation)":"Size (words & punctuation)","Sizex":"Sizex","Slovenian":"Slovenian","sort":"sort","sort by":"sort by","sorted by":"sorted by","Source":"Source","Spanish":"Spanish","Språksamlingene":"Språksamlingene","Statistics":"Statistics","Status":"Status","Stop":"Stop","store":"store","stored queries shown":"stored queries shown","struct":"struct","Structures":"Structures","subcorpus":"subcorpus","Subject":"Subject","Suited for drag and drop-import into MS Excel":"Suited for drag and drop-import into MS Excel","supplied":"supplied","suppress in match":"suppress in match","Svan":"Svan","switch to":"switch to","Søk":"Søk","TAG":"TAG","Tagset":"Tagset","Talebanken":"Talebanken","Talebanken--":"Talebanken--","Talebanken\'":"Talebanken\'","Talebanken((\'.,.":"Talebanken((\'.,.","talebanken":"talebanken","Talebanken\'A":"Talebanken\'A","target":"target","Task:":"Task:","Test catalogue":"Test catalogue","Text":"Text","Text access restricted":"Text access restricted","Text list":"Text list","Text Metadata":"Text Metadata","Text repository":"Text repository","Texts":"Texts","Texts list":"Texts list","Then click on “Query the selected corpora” below":"Then click on “Query the selected corpora” below","Then click on “Query the selected corpora” below.":"Then click on “Query the selected corpora” below.","There is no text list available for the selected corpora.":"There is no text list available for the selected corpora.","This catalogue lists all texts in the Abkhaz National Corpus.":"This catalogue lists all texts in the Abkhaz National Corpus.","This catalogue lists all texts in the PALAG corpus.":"This catalogue lists all texts in the PALAG corpus.","This catalogue lists all texts in the selected GNC corpora.":"This catalogue lists all texts in the selected GNC corpora.","Title":"Title","tokens":"tokens","Translator":"Translator","Transliterate":"Transliterate","Treebank":"Treebank","Treebank Details":"Treebank Details","Treebank doc.":"Treebank doc.","Treebank Overview":"Treebank Overview","Treebanks":"Treebanks","Treebank Selection":"Treebank Selection","Treebank selection":"Treebank selection","Treebank Sentence":"Treebank Sentence","Type":"Type","type":"type","Type/token average":"Type/token average","UD features":"UD features","unique values":"unique values","unique words or phrases":"unique words or phrases","unparsed":"unparsed","Updated":"Updated","Upload corpus":"Upload corpus","Use * as wildcard":"Use * as wildcard","Used with:":"Used with:","User Administration":"User Administration","Username":"Username","Users":"Users","Use this input form to write a textual query.":"Use this input form to write a textual query.","Use transliteration":"Use transliteration","Variable":"Variable","Variable:":"Variable:","Variable description":"Variable description","Variables":"Variables","Variant":"Variant","Variety":"Variety","variety":"variety","Version":"Version","version":"version","view":"view","Wiki":"Wiki","window":"window","Window size":"Window size","Word List":"Word List","Word list":"Word list","Words":"Words","words":"words","(words & punctuation)":"(words & punctuation)","Write a sentence or shorter text and click the ‘Parse’ button.":"Write a sentence or shorter text and click the ‘Parse’ button.","Xanmeti":"Xanmeti","XLE-Web":"XLE-Web","XML":"XML","You are not authorized to access this corpus.":"You are not authorized to access this corpus.","You are not authorized to access this corpus. Please go to the Metadata page and accept the license terms.":"You are not authorized to access this corpus. Please go to the Metadata page and accept the license terms.","You can click on the morphosyntactic features of the analyzed text to have them explained.":"You can click on the morphosyntactic features of the analyzed text to have them explained.","Your comment has been sent.":"Your comment has been sent.","Your query history is empty.":"Your query history is empty.","You should provide a subject.":"You should provide a subject.","You should provide some text.":"You should provide some text.","В. Касланӡиа: Аҧсуа-аурыс жәар":"В. Касланӡиа: Аҧсуа-аурыс жәар","click to delete position":"click to delete position","Feide sign in":"Feide sign in","Home":"Home","language":"language","Show collocations":"Show collocations","You are signed in as":"You are signed in as","Time line":"Time line","Hide Search":"Hide Search","Textual search":"Textual search","Search string":"Search string","No matches found":"No matches found","Click on a corpus to see details.":"Click on a corpus to see details.","Choose the corpora you wish to work with from this list.":"Choose the corpora you wish to work with from this list.","Halt":"Halt","Resume":"Resume","Save this query as":"Save this query as","Select a saved query":"Select a saved query","Menu search":"Menu search","You are not signed in":"You are not signed in","Running time":"Running time","matches":"matches","more":"more","Sentences":"Sentences","INESS Search":"INESS Search","XLE Web":"XLE Web","Search templates":"Search templates","Word sketches":"Word sketches","Selected":"Selected","Collection":"Collection","Select treebanks by language or collection:":"Select treebanks by language or collection:","List of selected treebanks":"List of selected treebanks","Searching in":"Searching in","query-done":"Done","query-running":"Running","query-stopped":"Stopped","query-halted":"Halted","query-error":"Error","Match":"Match","Right":"Right","Ctxt":"Ctxt","Left":"Left","Group by":"Group by","clicking on the query name":"clicking on the query name","Randomize":"Randomize","Show annotations":"Show annotations","Settings":"Settings","Attributes shown":"Attributes shown","all":"all","Lines per page in KWIC concordance":"Lines per page in KWIC concordance","Match table":"Match table","In group":"In group","Create a metadata record":"Create a metadata record","Upload a metadata record":"Upload a metadata record","Clone a metadata record":"Clone a metadata record","Choose profile":"Choose profile","Choose an existing record":"Choose an existing record","Search in metadata records":"Search in metadata records","Show records":"Show records","Owned by":"Owned by","Admin":"Admin","CMDI Records":"CMDI Records","Filter":"Filter","Corpuscle query language":"Corpuscle query language","the Corpuscle query language":"the Corpuscle query language","Search expression":"Search expression","Write simple search or CQL search":"Write a simple search, or a search expression in","korpuskel-vue":"Corpuscle","korpuskel-prod":"Corpuscle","Article ID":"Article ID","Dictionary":"Dictionary","Normalization":"Normalization","Log out":"Log out","By accepting the terms of the license you will be granted access to the resource":"By accepting the terms of the license you will be granted access to the resource","This resource has a restricted license":"This resource has a restricted license","You have accepted the license":"You have accepted the license","Please click on the link to read the license terms":"Please click on the link to read the license terms","The resource":"The resource","is licensed under the following terms":"is licensed under the following terms","Click for more info":"Click for more info","Show parameters":"Show parameters","abnc-vue":"AbNC","Query name":"Query name","Your query history for this corpus choice is empty.":"Your query history for this corpus choice is empty.","Filter by query string":"Filter by query string","by clicking on the query name":"by clicking on the query name","Corpus search":"Corpus search","No corpus selected":"No corpus selected","to choose corpora":"to choose corpora","Click on the query expression to see its documentation":"Click on the query expression to see its documentation","Log likelihood":"Log likelihood","Frequency":"Frequency","Rel. frequency":"Rel. frequency","Mutual information":"Mutual information","Left context":"Left context","Right context":"Right context","Threshold":"Threshold","Calculate distribution":"Calculate distribution","Relative to":"Relative to","MI * log(Freq)":"MI * log(Freq)","Show search menu":"Show search menu","Hide search menu":"Hide search menu","Search in matches":"Search in matches","Sort by":"Sort by","Structures shown":"Structures shown","Calculating":"Calculating","Set bookmark":"Set bookmark","Set bookmark for this page":"Set bookmark for this page","There are no bookmarked pages":"There are no bookmarked pages","You can create a bookmark on any text page":"You can create a bookmark on any text page","Parse page":"Parse page","Sort":"Sort","unique value":"unique value","Old orthography":"Old orthography","Parsed text":"Parsed text","Show more context":"Show more context","Select a query":"Select a query","Show rules":"Show rules","Download XML":"Download XML","Text Catalogue":"Text Catalogue","Download Conll":"Download Conll","See license terms":"See license terms","Corpus details":"Corpus details","This table lists your bookmarks":"This table lists your bookmarks","Click on a bookmark to go to the corresponding page":"Click on a bookmark to go to the corresponding page","Search the selected corpora":"Search the selected corpora","Select all":"Select all","Deselect all":"Deselect all","You have to be signed in to be able to access the corpora with ACA or RES licenses":"You have to be signed in to be able to access the corpora with ACA or RES licenses","caption.NOUN":"Inflection table for this noun","caption.VERB":"Inflection table for this verb","caption.VERBPP":"Inflection table for the participles of this verb","caption.ADJ":"Inflection table for this adjective","caption.ADJCS":"Inflection table for this adjective (comparative, superlative)","caption.ADV":"Inflection table for this adverb","caption.PRON":"Inflection table for this pronoun","caption.DET":"Inflection table for this determinative","NOUN":"noun","PROPN":"proper noun","VERB":"verb","ADJ":"adjektive","ADV":"adverb","ADP":"preposition","INTJ":"interjection","DET":"determinative","PRON":"pronoun","CCONJ":"conjunction","SCONJ":"subjunction","SYM":"symbol","INFM":"infinitive marker","tags.Form":"form","tags.Gender":"gender","tags.Sing":"singular","tags.Plur":"plural","tags.Ind":"indefinite","tags.Def":"definite","tags.Finite":"finite forms","tags.Inf":"infinitive","tags.Pres":"present","tags.Past":"past","tags.PresPerf":"present perfect","tags.Imp":"imperative","tags.PerfPart":"perfect participle","tags.Fem":"feminine","tags.FemShort":"feminine","tags.Masc":"masculine","tags.MascShort":"masculine","tags.MascFem":"masculine/ feminine","tags.Neuter":"neuter","tags.NeuterShort":"neuter","tags.PresPart":"present participle","tags.Deg":"degrees of comparison","tags.Pos":"positive","tags.Cmp":"comparative","tags.Sup":"superlative","tags.SupInd":"superlative indefinite","tags.SupDef":"superlative definite","tags.Nom":"subject form","tags.Acc":"object form","tags.Uninfl":"uninflected","You have to be signed in to be able to access corpora with ACA or RES licenses":"You have to be signed in to be able to access corpora with ACA or RES licenses","A license you have not yet accepted is marked as":"A license you have not yet accepted is marked as","Click on ‘See license terms…’ to accept it":"Click on ‘See license terms…’ to accept it","Select a corpus by checking its check box":"Select a corpus by checking its check box","Transliteration":"Transliteration","Registrants":"Registrants","Places":"Places","case insensitive":"case insensitive","Article":"Article","Bibliography":"Bibliography","Homograph":"Homograph","include expressions and non-standard forms":"include expressions and non-standard forms","show participle context":"show participle context","show only valid standard paradigms":"show only valid standard paradigms","show verb frames":"show verb frames","New article":"New article","Segmentation":"Segmentation","homograph":"homograph","homographs":"homographs","Create new homograph":"Create new homograph","Ordbank entry":"Ordbank entry","found":"found","Table":"Table"}')},"98f6":function(e,t,s){},"9a18":function(e,t,s){"use strict";s("b2d5")},"9a91":function(e,t,s){},"9b67":function(e,t,s){e.exports=s.p+"img/loc.a8234595.png"},"9cd6":function(e,t,s){e.exports=s.p+"img/meta.026b7995.png"},"9e6d":function(e,t,s){e.exports=s.p+"img/NORED.a16a384a.png"},"9efc":function(e,t,s){e.exports=s.p+"img/NC.d94d0d82.png"},a45f:function(e,t,s){},a938:function(e,t,s){"use strict";s("30f3")},a969:function(e,t,s){"use strict";var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"av-popover-wrapper hidden",attrs:{id:e.page+"-token-details-div"}},[t("div",{staticClass:"av-popover m-1 pt-2 pr-2 pb-0"},[t("b-row",[t("b-col",{staticClass:"mr-auto",attrs:{cols:"auto"}},["abnc"==e.stateStore.project||"menota"==e.stateStore.project||"gnc"==e.stateStore.project?[t("span",{staticClass:"p-1",class:"dictionary"==e.tokenStore.detailsMode?"active":"inactive",attrs:{active:"dictionary"==e.tokenStore.detailsMode},on:{click:function(t){e.tokenStore.detailsMode="dictionary"}}},[e._v(" "+e._s(e.$t("Dictionary"))+" ")]),e._v(" | ")]:e._e(),t("span",{staticClass:"p-1",class:"features"==e.tokenStore.detailsMode?"active":"inactive",attrs:{active:"features"==e.tokenStore.detailsMode},on:{click:function(t){e.tokenStore.detailsMode="features"}}},[e._v(" "+e._s(e.$t("Features"))+" ")]),"abnc"==e.stateStore.project&&"text"==e.page?[e._v(" | "),t("span",{staticClass:"p-1",class:"comment"==e.tokenStore.detailsMode?"active":"inactive",attrs:{active:"comment"==e.tokenStore.detailsMode},on:{click:function(t){e.tokenStore.detailsMode="comment"}}},[e._v(" "+e._s(e.$t("Comment"))+" ")])]:e._e(),e.contextLink?[e._v(" | "),e.tokenStore.hideText?e._e():t("span",{staticClass:"p-1 inactive",on:{click:e.showContext}},[e._v(" "+e._s(e.$t("Show context"))+" ")])]:e._e()],2),t("b-col",{attrs:{cols:"auto"}},[t("button",{staticClass:"modal-header close pb-2",staticStyle:{cursor:"pointer","font-size":"larger","vertical-align":"top"},attrs:{type:"button"},on:{click:e.closePopups}},[e._v("×")])])],1),t("b-card",{directives:[{name:"show",rawName:"v-show",value:"features"==e.tokenStore.detailsMode,expression:"tokenStore.detailsMode=='features'"}],attrs:{"no-body":""}},[t("b-card-text",[t("av-list",{attrs:{corpus:e.tokenStore.corpus,cpos:e.tokenStore.tokenCpos,items:e.tokenStore.items}})],1)],1),t("b-card",{directives:[{name:"show",rawName:"v-show",value:"dictionary"==e.tokenStore.detailsMode,expression:"tokenStore.detailsMode=='dictionary'"}]},[t("b-card-text",[t("div",{staticStyle:{"max-height":"500px","overflow-x":"scroll"}},["menota"==e.stateStore.project?t("dict-entries-menota"):t("dict-entries")],1)])],1),t("b-card",{directives:[{name:"show",rawName:"v-show",value:"comment"==e.tokenStore.detailsMode,expression:"tokenStore.detailsMode=='comment'"}]},[t("b-card-text",[t("b-form-group",{attrs:{label:"Comment","label-for":"comment-textarea"}},[t("b-input-group",{staticClass:"mb-2",attrs:{size:"sm"}},[t("b-form-textarea",{attrs:{size:"sm",rows:"4",id:"comment-textarea",autocomplete:"off",autocorrect:"off",autocapitalize:"off","keydown.enter.prevent":"storeTokenComment"},model:{value:e.comment,callback:function(t){e.comment=t},expression:"comment"}})],1),t("b-button",{staticClass:"my-2",attrs:{size:"sm",variant:"primary"},on:{click:e.storeTokenComment}},[e._v(" Store ")]),t("b-button",{staticClass:"my-2",attrs:{size:"sm",xxclick:"hidePopup",variant:"light"}},[e._v(" Dismiss ")])],1)],1)],1)],1)])},n=[],a=s("1157"),i=s.n(a),r=s("44bf"),l=function(){var e=this,t=e._self._c;return t("span",[t("b-table",{attrs:{"thead-class":"hide",fields:e.fields,items:e.items,small:""},scopedSlots:e._u([{key:"cell(attribute)",fn:function(t){return[e._v(" "+e._s(t.item.alias||t.value)+": ")]}},{key:"cell(value)",fn:function(s){return e._l(e.formatValue(s.item),(function(s,o){return t("div",{key:o,staticClass:"av-font"},[e._v(" "+e._s(s)+" ")])}))}}])})],1)},c=[],u=(s("5319"),{name:"avList",mixins:[r["b"]],props:["items","corpus"],data:function(){return{fields:[{key:"attribute",label:"attribute",tdClass:"av-cell av-name right"},{key:"value",label:"value",tdClass:"av-cell av-value"}]}},methods:{formatValue:function(e){let t=e.rs?new RegExp("^\\"+e.rs+"|\\"+e.rs+"$","g"):null,s=e.vls?new RegExp("^\\"+e.vls+"|\\"+e.vls+"$","g"):null,o=e.vls?new RegExp("\\"+e.vls,"g"):null;return e.vls?e.rs?e.value.replace(t,"").split(e.rs).map(t=>t.replace(s,"").replace(o,(e.vlsDisplay||e.vls)+" ")):[e.value.replace(s,"").replace(o,(e.vlsDisplay||e.vls)+" ")]:e.rs?e.value.replace(t,"").split(e.rs):[e.value]}}}),d=u,p=(s("20a7"),s("2877")),h=Object(p["a"])(d,l,c,!1,null,null,null),m=h.exports,f=s("8ce3"),g=function(){var e,t=this,s=t._self._c;return s("div",{staticStyle:{"overflow-y":"scroll",padding:"1em","max-height":"50em"}},[null!==(e=t.tokenStore.dictEntries)&&void 0!==e&&e.length?s("span",t._l(t.tokenStore.dictEntries,(function(e,o){return s("dict-entry",{key:o,attrs:{entry:e,mode:t.mode}})})),1):s("span",{staticClass:"dictionary-menota"},[t._v(" No entries found for "),s("b",[t._v(t._s(t.tokenStore.lemma))]),t._v(". ")])])},b=[],v=s("59a0"),k={name:"dictEntriesMenota",mixins:[r["b"]],components:{dictEntry:v["a"]},props:["mode"]},y=k,S=(s("b1b1"),Object(p["a"])(y,g,b,!1,null,null,null)),w=S.exports,C={name:"tokenDetails",mixins:[r["b"]],props:["page","contextLink","tabs"],components:{avList:m,dictEntries:f["a"],dictEntriesMenota:w},data:function(){return{fields:[{key:"attribute",label:"attribute",tdClass:"av-cell av-name right"},{key:"value",label:"value",tdClass:"av-cell av-value"}],newComment:null}},computed:{project:function(){return this.$route.params.project},comment:{get:function(){var e,t;let s=null===(e=i()("#cpos"+this.tokenStore.tokenCpos)[0])||void 0===e?void 0:e.getAttribute("wid");return(null===(t=this.tokenStore.comments)||void 0===t?void 0:t[s])||""},set:function(e){this.newComment=e}}},methods:{showContext:function(){var e,t;let s=(null===(e=this.tokenStore.items.find(e=>"document"==e.attribute))||void 0===e?void 0:e.value)||(null===(t=this.tokenStore.items.find(e=>"source"==e.attribute))||void 0===t?void 0:t.value)||"document";this.$nextTick(()=>this.$router.push({path:"/"+this.project+"/text/"+this.stateStore.textCorpus+"/"+s}))},getCommentxx:function(){var e;let t=null===(e=i()("#cpos"+this.tokenStore.tokenCpos)[0])||void 0===e?void 0:e.getAttribute("wid");return this.comment=this.tokenStore.comments[t],this.comment},storeTokenComment:function(){let e=i()("#cpos"+this.tokenStore.tokenCpos)[0],t=null===e||void 0===e?void 0:e.getAttribute("wid"),s=e.innerText;this.callCorpusAPI("store-token-comment",{wid:t,word:s,corpus:this.tokenStore.corpus,"document-id":this.stateStore.documentId,value:this.newComment.trim()}).then(()=>{this.tokenStore.comments[t]=this.newComment,this.tokenStore.showPopup=!1,this.closePopups(),this.tokenStore.detailsMode="dictionary",this.newComment=null}).catch(this.showAlert)}}},x=C,_=(s("c966"),Object(p["a"])(x,o,n,!1,null,null,null));t["a"]=_.exports},ac1b:function(e,t,s){e.exports=s.p+"img/DEP.de7ff36c.png"},ae88:function(e,t,s){e.exports=s.p+"img/id.8aac0d97.png"},b1b1:function(e,t,s){"use strict";s("4b23")},b2d5:function(e,t,s){},b320:function(e,t,s){"use strict";s("cfba")},b3c9:function(e,t,s){"use strict";s.d(t,"b",(function(){return h})),s.d(t,"a",(function(){return v}));var o=s("56d7"),n=s("4cc5"),a=s("32e8"),i=s.n(a);const r="https://clarino.uib.no/iness-api/";var l={sessionId:null,userId:null,userName:null},c={message:null,show:!1},u={corpusList:[],chosenCorpusList:[],languages:[],collections:[]},d=1,p=JSON.parse(localStorage.getItem("/menota/State"));const h=Object(n["a"])("state",{state:()=>(null===p||void 0===p?void 0:p.version)==d?p:{version:d,project:"iness",showDescriptions:!1,languageList:[],collectionList:[],excludedCorpusList:[],queryString:{},query:{},attributes:{},wordList:{attribute:"word"},parseText:{},extendedMode:!1,grammar:"Norwegian Bokmål (pruning)",acceptedLicenses:[],docPath:[],linear:!0,ordered:!1,showLemma:!0,showMorph:!1,showPos:!0,fragments:["none"],fully_disamb:[],disamb:[],unamb:[],searchTabIndex:0,sentence:"Katten sover.",sentences:[]},getters:{},actions:{}}),m=async()=>{while(!Object(n["b"])())await new Promise(e=>requestAnimationFrame(e));h().$subscribe((e,t)=>{localStorage.setItem("/menota/State",JSON.stringify(t))})};m();const f=Object(n["a"])("sentence",{state:()=>({data:{match:[]},relations:[],relationId:null}),getters:{},actions:{}});Object(n["a"])("query",{state:()=>({queryState:{state:"no-query",matchSize:-1},templateUid:null,matches:{},changed:!0,active:!1,string:"",inTemplates:!0,selectedTemplateUids:[],selectedTemplates:[],args:[],arg_value:{},showSearchBox:!1}),getters:{},actions:{}});function g(e,t,s,o){return e=r+e,fetch(e,{headers:"PUT"==s||"POST"==s?{"Content-Type":"application/x-www-form-urlencoded"}:{},credentials:"include",method:s||"GET",body:o}).then(e=>e.json()).then(t=>{if(t.error)throw console.log("API error: "+t.error),console.log("URL: "+e),new Error(t.error+", URL: "+e);return t})}function b(e,t){let s=e.getBoundingClientRect().y+document.documentElement.scrollTop,o=s-window.innerHeight/2;o<0&&(o=t||0),document.documentElement.scrollTop=o}Object(n["c"])(h,f);const v={data(){return{session:l,corpusAlert:c,corpusListInfo:u,cStructureUID:"c-structure",sentenceDetailsRow:null,sentenceDetailsIndex:null,sentenceList:[],fetched:!1,editComment:!1}},computed:{...Object(n["c"])(h,f)},methods:{showAlert:function(e){o["app"].$bvToast.toast(""+e,{title:"Alert",autoHideDelay:5e3,appendToast:!0,variant:"primary",toaster:"b-toaster-top-left",headerClass:"toast-header",bodyClass:"toast-body"})},dismissAlert:function(){},licenseAccepted:function(e){return this.stateStore.acceptedLicenses.indexOf(e)>-1||this.corpusListInfo.corpusList.find(t=>t.name==e).license.accepted},callCorpusAPI:function(e,t,s,o,n){let a=(null===t||void 0===t?void 0:t["page"])||"rest",i=a+"?command="+e+"&session-id="+this.session.sessionId;return t&&Object.keys(t).map((function(e){let s=t[e];i+="&"+e+"="+encodeURIComponent(s)})),s||(s="iness"),g(i,s,o,n).then(e=>{if(!e)throw new Error("The Corpuscle server returned no result.");return e}).catch(e=>{"TypeError: Failed to fetch"==e?this.showAlert("The INESS server did not respond."):this.showAlert(e)})},cStrMouseover:function(e){this.hiliteProjectingNodes(e.target,!0);var t=e.target.getAttribute("projection-id1");if(t){let e=document.getElementById("fs_"+t.substring(3));e&&e.classList.add("hilite")}},cStrMouseout:function(e){this.hiliteProjectingNodes(e.target,!1);var t=e.target.getAttribute("projection-id1");if(t){let e=document.getElementById("fs_"+t.substring(3));e&&e.classList.remove("hilite")}},toTop:function(e){console.log("top: "+document.documentElement.scrollTop);let t=e.getBoundingClientRect().y+document.documentElement.scrollTop;console.log(t);let s=t-64;s<0&&(s=0),document.documentElement.scrollTop=s},showSentence:function(e,t,s,o){"lfg"==this.treebank.type?this.getLFGSentence(e,t,s,o):this.getDepSentence({uid:e,treebank:t,submatch:s,clear:o,showGraph:this.showDepGraph})},getLFGSentence:function(e,t,s,o){o&&(this.sentenceStore.data={},this.f_structures=[],this.referenced_nodes=[],this.fetched=!1,this.parsed=!1),this.cStructureUID="c-structure-uid-"+e,this.$nextTick(()=>{this.callCorpusAPI("get-parsed-sentence",{type:"lfg","unique-id":e,submatch:"all"==s?-1:s,"template-uid":this.queryStore.templateUid,treebank:t},"iness").then(t=>{o||(this.sentenceStore.data={},this.f_structures=[],this.referenced_nodes=[],this.parsed=!1),this.$nextTick(()=>{if(t.parsed){var s,o;let a=i()("#c-structure-uid-"+e)[0];a.innerHTML=t.cStructure,this.sentenceStore.data=t,this.f_structures=(null===(s=t.fStructure)||void 0===s?void 0:s.f_structures)||[],this.referenced_nodes=(null===(o=t.fStructure)||void 0===o?void 0:o.referenced_nodes)||[];var n=Array.from(document.getElementsByClassName("data"));let r=this;this.$nextTick(()=>{n.forEach(e=>{e.addEventListener("mouseover",r.cStrMouseover),e.addEventListener("mouseout",r.cStrMouseout),e.addEventListener("click",r.cStrClick)});let e=i()(".details");e&&this.toTop(e[0]),this.parsed=!0})}}),this.fetched=!0})})},getCstructure:function(e,t,s,o){if(e.altKey){let e=t.getAttribute("context"),s=e.split(" "),o=document.getElementsByName("disc");null===o||void 0===o||o.forEach(e=>{let t=e.getAttribute("byte-context");t&&this.bytevectorSubsumption(s,t.split(" "))?e.classList.add("hilite"):e.classList.remove("hilite")})}else{i()(".hilite").removeClass("hilite");let e=i()("#"+this.cStructureUID)[0];this.callCorpusAPI("get-c-structure",{"node-id":s,mode:o}).then(t=>{t.cStructure&&(e.innerHTML=t.cStructure);var s=Array.from(document.getElementsByClassName("data"));let o=this;this.$nextTick(()=>{s.forEach(e=>{e.addEventListener("mouseover",o.cStrMouseover),e.addEventListener("mouseout",o.cStrMouseout),e.addEventListener("click",o.cStrClick)})})}).catch(this.showAlert)}},cStrClick:function(e){var t=e.target.getAttribute("display-node-id");this.getCstructure(e,e.target,t,"sentence-overview")},bytevectorSubsumption:function(e,t){let s=!0;return e&&t&&e.forEach((e,o)=>{(parseInt(e)+0&parseInt(t[o])+0)!=parseInt(e)+0&&(s=null)}),s},hiliteProjectingNodes:function(e,t){let s=document.getElementsByTagName("text"),o=e.getAttribute("projection-id"),n=0;if(o)for(;n<s.length;n++){let e=s.item(n);e.getAttribute("projection-id")==o&&(1==t?e.setAttribute("class","node-focus"):e.setAttribute("class",e.getAttribute("base-class")))}},onKeyDown:function(){var e,t;let s=event.srcElement,o=null,n=null,a=document.getElementById("popover-div");if("TEXTAREA"==document.activeElement.tagName){var r,l;if(40==event.keyCode&&event.ctrlKey)null===(r=i()(".match-row")[0])||void 0===r||r.focus(),null===(l=i()(".sentence-row")[0])||void 0===l||l.focus(),event.cancelBubble=!0,event.returnValue=!1}else{switch(event.keyCode){case 13:null!==a&&void 0!==a&&a.classList.contains("hidden")?this.showTokenAttributeValues(s.getAttribute("node-id"),!1):this.hidePopover();break;case 27:var c;if(this.sentenceDetailsRow)this.sentenceDetailsRow._showDetails=!1,n=this.sentenceList.indexOf(this.sentenceDetailsRow),this.sentenceDetailsRow=null,null===(c=i()(".sentence-row")[n])||void 0===c||c.focus();else if(this.matchDetailsRow){var u;this.matchDetailsRow._showDetails=!1,n=this.matchList.indexOf(this.matchDetailsRow),this.matchDetailsRow=null,null===(u=i()(".match-row")[n])||void 0===u||u.focus()}break;case 32:}if(event.ctrlKey)switch(event.keyCode){case 37:if(event.shiftKey)this.inSentencePages&&!this.sentenceDetailsRow?this.currentSentencePage>1&&this.currentSentencePage--:this.inTemplates?this.currentTemplatePage>1&&this.currentTemplatePage--:this.currentMatchPage>1&&this.currentMatchPage--;else if(s.classList.contains("node-text")){var d;if(o=parseInt(s.getAttribute("node-id")),this.hidePopover(),0==o)this.sentenceDetailsRow._showDetails=!1,n=this.sentenceList.indexOf(this.sentenceDetailsRow),this.sentenceDetailsRow=null,null===(d=i()(".sentence-row")[n])||void 0===d||d.focus();else i()(".node-text[node-id='"+(o-1)+"']").focus(),this.hiliteInOutEdges(o-1)}else if(this.sentenceDetailsRow){var p;this.sentenceDetailsRow._showDetails=!1,n=this.sentenceList.indexOf(this.sentenceDetailsRow),this.sentenceDetailsRow=null,this.row=null,null===(p=i()(".sentence-row")[n])||void 0===p||p.focus()}else if(this.matchDetailsRow){var h;this.matchDetailsRow._showDetails=!1,n=this.matchList.indexOf(this.matchDetailsRow),this.matchDetailsRow=null,this.currentSentencePage=1,null===(h=i()(".match-row")[n])||void 0===h||h.focus()}event.cancelBubble=!0,event.returnValue=!1;break;case 38:break;case 39:event.shiftKey?this.inSentencePages&&!this.sentenceDetailsRow&&this.currentSentencePage<this.sentenceCount/this.perSentencePage?this.currentSentencePage++:this.inTemplates&&this.currentTemplatePage<this.templateCount/this.perTemplatePage?this.currentTemplatePage++:!this.inSentencePages&&!this.sentenceDetailsRow&&this.currentMatchPage<this.matchTypeCount/this.perMatchPage&&this.currentMatchPage++:"sentence-details"==s.id?(i()(".node-text[node-id='1']").focus(),this.hiliteInOutEdges(1)):"match-details"==s.id?i()(".sentence-row")[0].focus():s.classList.contains("node-text")?(o=parseInt(s.getAttribute("node-id")),this.hidePopover(),i()(".node-text[node-id='"+(o+1)+"']").focus(),this.hiliteInOutEdges(o+1)):s.classList.contains("match-row")?(this.currentMatchRow=s,n=i()(s).find(".match").attr("index"),n&&(this.matchDetailsIndex=n,this.matchDetailsRow=this.matchList[n],this.matchDetailsRow._showDetails=!0,this.$nextTick(()=>i()("#match-details").focus()))):(n=i()(s).find(".sentence").attr("index"),n&&(this.sentenceDetailsIndex=n,this.sentenceDetailsRow&&(this.sentenceDetailsRow._showDetails=!1,this.sentenceDetailsRow=null),this.sentenceDetailsRow=this.sentenceList[n],this.row=this.sentenceDetailsRow,this.sentenceDetailsRow._showDetails=!0,"lfg"==this.treebank.type?this.getLFGSentence(this.sentenceDetailsRow.uid,this.sentenceDetailsRow.treebank,0,!0):this.getDepSentence({uid:this.sentenceDetailsRow.uid,treebank:this.sentenceDetailsRow.treebank,submatch:0,clear:!0,showGraph:this.showDepGraph}),this.$nextTick(()=>i()("#sentence-details").focus()))),event.cancelBubble=!0,event.returnValue=!1;break;case 40:null===(e=i()(".match-row")[0])||void 0===e||e.focus(),null===(t=i()(".sentence-row")[0])||void 0===t||t.focus(),event.cancelBubble=!0,event.returnValue=!1;break;case 76:b(s);break;case 67:console.log(this.$refs.dependencyStructure),this.$refs.dependencyStructure.toggleCorrect()}}}}}},b40b:function(e,t,s){e.exports=s.p+"img/req.39b47cac.png"},b4a2:function(e,t,s){"use strict";s("85f6")},c00e:function(e,t,s){e.exports=s.p+"img/RES.1961971d.png"},c3d0:function(e,t,s){"use strict";s("a45f")},c6ac:function(e,t,s){"use strict";s("5fce")},c78b:function(e,t,s){e.exports=s.p+"img/ff.956f6b9a.png"},c854:function(e,t,s){e.exports=s.p+"img/cc.large.8492ba5f.png"},c93a:function(e,t,s){e.exports=s.p+"img/unavailable.6d8728ec.png"},c966:function(e,t,s){"use strict";s("7197")},cba5:function(e,t,s){},ccb4:function(e,t,s){"use strict";s("827a")},cfba:function(e,t,s){},d1cf:function(e,t,s){e.exports=s.p+"img/plan.997253d2.png"},d28b:function(e,t,s){"use strict";s("3639")},d34d:function(e,t,s){"use strict";s("2842")},d3a2:function(e,t,s){var o={"./de.json":"7b78","./en.json":"98d7","./ka.json":"92c0","./nno.json":"8d66","./no.json":"e5a6","./ru.json":"f9c3"};function n(e){var t=a(e);return s(t)}function a(e){if(!s.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}n.keys=function(){return Object.keys(o)},n.resolve=a,e.exports=n,n.id="d3a2"},d3a4:function(e,t,s){"use strict";s.d(t,"b",(function(){return i}));s("ddb0");var o=s("2b0e"),n=s("a925");function a(){const e=s("d3a2"),t={};return e.keys().forEach(s=>{const o=s.match(/([A-Za-z0-9-_]+)\./i);if(o&&o.length>1){const n=o[1];t[n]=e(s)}}),t}o["default"].use(n["a"]);const i=navigator.language.split("-")[0]||"en";t["a"]=new n["a"]({locale:i,fallbackLocale:i||navigator.language.split("-")[0]||"en",messages:a()})},d50f:function(e,t,s){"use strict";s("6fe4")},d798:function(e,t,s){"use strict";s("8b0f")},d7e2:function(e,t,s){},da09:function(e,t,s){"use strict";s("4763")},e1a4:function(e,t,s){},e3a2:function(e,t,s){"use strict";s("cba5")},e5a6:function(e){e.exports=JSON.parse('{"en":"English","no":"Norsk (Bokmål)","nno":"Norsk (Nynorsk)","de":"Deutsch","ka":"ქართული","ab":"Аҧсуа","ru":"Русски","si":"Slovenščina","Abk. Code":null,"ABNC":null,"AbNC":null,"menota":"Menota","abnc":"AbNC","gnc":"GNC","korpuskel":"Korpuskel","add a positional constraint":null,"Additional constraints":null,"Additional constraints for this position:":null,"Administration":"Administrering","Admin":"Admin","aligned-context":null,"Alignment Tool":null,"Alle":null,"Analysis":null,"app":null,"Application form":null,"ASK":null,"Ask":null,"ask":null,"Att":null,"Availability":null,"Aviskorpus":null,"Basic query expression":null,"Bookmark page":null,"Bookmark this page":null,"Set bookmark":"Lag bokmerke","by":null,"By clicking on [+] you can inspect the texts of a collection.":null,"by query string":null,"Catalogue":null,"Charter catalogue":null,"Choose a treebank to work with from the list below.":null,"Choose corpora from the list below by clicking on their names.":null,"Choose the corpora you wish to work with from this list.":"Velg korpusene du vil jobbe med fra denne listen.","Clear":"Tøm","Click on a corpus to see details.":"Klikk på et korpusnavn for å se detaljer.","Click at an attribute to see its values":null,"Click on a column heading to sort":null,"Click on a document name to view the text.":null,"Click on a name to choose the query.":null,"Click on an attribute to see its values":null,"Click on a query to see its documentation.":null,"Click on a row title to sort":null,"Click on a text title to see more information about the text":null,"Click on the [Text] link to browse the text":null,"Click to add a position box":null,"click to choose":null,"Click to choose new values from list":null,"Click to parse sentence in XLE-Web":null,"Click to run the query. The result will be displayed in the Concordance pane.":null,"close":null,"CMDI Metadata editor":null,"CMDI Metadata Records":null,"CMD Metadata":null,"CMD Metadata editor":null,"CMD Metadata Records":null,"Code":"Kode","Collocate":null,"collocations calculated":null,"combine context positions":null,"COMEDI":null,"Comedi":null,"Comments":null,"Constraint Grammar":null,"Constrain the search to a":null,"Constrain your search to":null,"Constrain your search to a subcorpus":null,"Content":null,"Contents":null,"Copy query PID":null,"Copy query URL":"Kopier søke-URL","Corpora":"Korpusliste","Available corpora":"Tilgjengelige korpus","corpus":null,"Corpuscle: Corpus list":null,"Corpus list":"Korpusliste","Corpuscle-Lex":"Korpuskel-Leks","corpus positions matching the vertical value(s).":null,"correct":null,"counts only":null,"D3":null,"Date":null,"Delta":null,"Diagram":null,"Dialects":null,"Dictionary entry":null,"Dipl":null,"dipl":null,"Disambiguate":null,"Discard":null,"Disc. Statistics":null,"distance to match position":null,"distinct values":null,"Distributor":null,"Document":null,"document":null,"done":"Ferdig","Do not put words in quotation marks. You can use * as wildcard: fish* finds fish and fishing, *fish finds swordfish etc.":null,"Download as Tab-separated values (.tsv) file":null,"Download corpus source":null,"Download corpus source as XML":null,"Drag onto column label to move column":null,"Edition":null,"Edit is":null,"edit-match":null,"Editor":null,"Editors":null,"Editor(s)":null,"empty":null,"Encoding":null,"Eng. Code":null,"(Entire corpus chosen.)":null,"Example":"Eksempel","expan":null,"Explanation":"Forklaring","Extracted words":null,"Facs":null,"facs":null,"Features":"Trekk","Feide":null,"fifi":null,"File":null,"filter by keeping only selected sentences":null,"Filter by name":"Filtrer etter navn","filter by removing deselected lines":null,"filter by removing selected lines":null,"filter by removing selected sentences":null,"filter inv.":null,"Filter variable":"Filtervariabel","for":null,"Fractions in blue are unweighted means of group fractions":null,"Fractions in green are distributions of total numbers":null,"Fractions sum up to 1.0 in each row":null,"Freq.":null,"full":null,"Genre":null,"Genres":null,"Geo. Code":null,"Georgian text":null,"GNC":null,"GNC: Parse":null,"GNC: Text":null,"GNC: Text Repository":null,"Gnyronaxra":null,"Grammar":null,"grammar":null,"Grammars":null,"Grammatical Features":"Grammatiske trekk","Grammatical features":null,"Grammatical features and their descriptions.":null,"Groups":null,"Haemeti":null,"Hand note":null,"has case-insensitive search":null,"Header":null,"Here you can parse sentences with the morphological analysers that are being used to analyze the texts of the GNC.":null,"Here you can parse sentences with the morphological analyser that is being developed for Abkhaz.":null,"Here you can parse sentences with the morphological analyser that is being developed for Abkhaz. (Beware of many errors!)":null,"Home page":null,"ICAME":null,"include counts":"inkluder antall","include fractions":"inkluder brøk","Include structural positions when calculating relative frequencies":null,"include structures":"inkluder strukturer","INESS":null,"Inventory":null,"is POS?":null,"Judeo-Georgian":null,"Keep the selected value(s) and add new value(s) as an alternative":null,"Keep the selected value(s) and add new value(s) as a negated alternative. (A match must not contain these values.)":null,"lb":null,"Lemma":"Lemma","Lemmatization":null,"Levels":null,"Lex":null,"lexicon":null,"LFG Sentence":null,"LFG Treebank":null,"LFG Treebank Sentences":null,"LIAD":null,"List of active XLE servers":null,"List of grammar files for grammar ‘":null,"List of registered LFG grammars":null,"Local":null,"Log":null,"Log Likelihood":null,"Log out":"Logg ut","Look up in":null,"Look up in dictionary":null,"Main Editor(s)":null,"Manuscript":null,"Matching word(s) or structure(s)":null,"matchx":null,"max length:":null,"Mean length:":null,"MENOTA":null,"Menota":null,"Menota Lemmatizing Assistent":null,"Meta":null,"Metadata":null,"Metadata Editor":"Metadata-editor","Metadata Records":null,"Metaordbok":null,"Metaordboka":null,"Metaordboken":null,"Middle Georgian":null,"Middle Georgian texts":null,"Miiddle Georgian":null,"MLA":null,"Mode":null,"Model text":null,"Modern Georgian":null,"Morphological analysis":null,"MS or Work Title":null,"multi-valued":null,"Mutual Information":null,"Name":"Navn","New Georgian texts":null,"No collocations calculated":null,"No entry found.":null,"No entry found for lemma":null,"No entry found for word":null,"Norm":null,"norm":null,"not done":null,"Nynorsk":null,"Nynorskordboka":null,"Only combinations that do occur in the corpus can be selected.":null,"OpenIdP":null,"OpenID sign in":null,"Oppslagsformer":null,"or":"eller","Ordbank":"Ordbank","Ordbanken":null,"Dictionary":"Ordbok","Ordbokredigering":null,"Ordbøkene":null,"Ordbøker":null,"Ordform":null,"Ordforslag":null,"or go directly to the Concordance page.":null,"Orig. date":null,"Original date":null,"Original place":null,"Original text":null,"Packed representation":null,"PALAG":null,"Parallel Sentences":null,"Parse":null,"Photo":null,"Place":null,"plain-context":null,"play":null,"Please choose a text from the Text repository.":null,"Please chose a corpus from the Corpus list.":null,"POS":null,"Publication":null,"Publication date":null,"Public catalogue":null,"Publisher":null,"PubNoEnPC":null,"punctuation":null,"put each field into double quotes":null,"puts each field into double quotes":null,"Query expression (basic search mode)":null,"Query history is empty.":null,"Query the selected corpora":null,"Readible":null,"reduced":null,"Region":null,"Relative frequency":null,"Relative numbers are matches per":null,"relative to":null,"Rel. freq.":null,"Reload":null,"Reload morphology":null,"Reparse":null,"Repository":null,"Responsible(s)":null,"Roles:":null,"Running…":null,"running":null,"Run xQuery":null,"Samling":null,"Save Copy":null,"Search for a word or a phrase":null,"Search for word or phrase:":null,"Select corpora":"Velg korpus","Selected corpus":"Valgt korpus","Selected corpora":"Valgte korpus","Select corpora from the list below by clicking on their names.":null,"Select corpora from the list below by clicking on their names. Then click on “Query the selected corpora” below or go directly to the Concordance page.":null,"Select values for":"Velg verdier for","Sentence":null,"Sentence Overview":null,"Session started at":null,"Setelarkiv":null,"Shortcuts:":null,"Short name":null,"Show additional tasks:":null,"Show all annotation sets":null,"Show all readings":null,"Show apparatus":null,"Show concordance for selection":null,"Show dependencies":null,"Show facsimile image":null,"Show features":null,"show freq.":null,"show LL":null,"show MI":null,"Show only selected variable":"Vis bare valgt variabel","Show page and line numbers":null,"Show parse link":null,"Show query expression":null,"Show references":null,"show rel. freq.":null,"shows the last 20 queries in this session":null,"Show used rules":null,"Signature":null,"Signatures":null,"Size (tokens/words & punctuation)":null,"Size (words & punctuation)":null,"Sizex":null,"sort by":null,"Source":"Kilde","Språksamlingene":null,"Status":"Status","Stop":"Stop","stored queries shown":null,"struct":null,"Suited for drag and drop-import into MS Excel":null,"supplied":null,"suppress in match":null,"TAG":null,"Tagset":null,"Talebanken":null,"talebanken":null,"target":null,"Task:":null,"Test catalogue":null,"Text access restricted":null,"Text list":null,"Text Metadata":null,"Text repository":null,"Texts list":null,"Then click on “Query the selected corpora” below":null,"Then click on “Query the selected corpora” below.":null,"There is no text list available for the selected corpora.":null,"This catalogue lists all texts in the Abkhaz National Corpus.":null,"This catalogue lists all texts in the PALAG corpus.":null,"This catalogue lists all texts in the selected GNC corpora.":null,"Title":"Tittel","tokens":null,"Translator":null,"Transliterate":null,"Treebank":null,"Treebank Details":null,"Treebank doc.":null,"Treebank Overview":null,"Treebanks":null,"Treebank Selection":null,"Treebank selection":null,"Treebank Sentence":null,"Type/token average":null,"UD features":null,"Use * as wildcard":null,"Used with:":null,"Use transliteration":null,"Variable":"Variabel","Variable:":null,"Variable description":null,"Variant":null,"Variety":null,"variety":null,"Version":null,"version":null,"view":null,"Window size":null,"Words":"Ord","Write a sentence or shorter text and click the ‘Parse’ button.":null,"Xanmeti":null,"XLE-Web":null,"XML":null,"You are not authorized to access this corpus.":null,"You are not authorized to access this corpus. Please go to the Metadata page and accept the license terms.":null,"You can click on the morphosyntactic features of the analyzed text to have them explained.":null,"Your query history is empty.":null,"В. Касланӡиа: Аҧсуа-аурыс жәар":null,"abbreviated syntax: /…/":"forkortet syntaks: /…/","abbreviated syntax: {…}":"forkortet syntaks: {…}","Abkhazian":"Abkhasisk","absolute":"absolutt","Absolute frequency":"Absolutt frekvens","Accept":"Aksepter","add":"legg til","Add":"Legg til","Add as alternative":"Legg til som alternativ","Advanced search":"Avansert søk","All":"Alle","all":"alle","alphabetic":"alfabetisk","and":"og","annotation":"annotasjon","Apply":"Anvend","as":"som","Attribute":"Attributt","attribute":"attributt","Attributes":"Attributter","audio only":"bare lyd","Author":"Forfatter","Basic search":"Enkelt søk","Between":"Mellom","Bookmarks":"Bokmerker","Build a graphical representation of the query expression.":"Bygg en grafisk representasjon av søkeuttrykket.","Build graphical query":"Bygg et grafisk søk","Bulgarian":"Bulgarsk","by frequency":"etter frekvens","Cancel":"Angre","check for case-insensitive search":"kryss av for ikke å skille mellom små og store bokstaver","check to mark position as target position":"kryss av for å markere targetposisjon","Choose":"Velg","Choose a":"Velg et","Choose a corpus from the list below. Some corpora are only available when you have signed in.":"Velg et korpus fra listen nedenfor. Noen korpus er bare tilgjengelig hvis du er pålogget.","Choose Corpus":"Velg korpus","choose how many consecutive corpus positions the constraints should apply to":"velg hvor mange påfølgende korpusposisjoner betingelsene skal gjelde for","Choose variable:":"Velg en variable:","Click to add an alternative":"Klikk for å legge til et alternativ","Click to add a position":"Klikk for å legge til en posisjon","Click to choose a new value from list":"Klikk for å velge en ny verdi fra listen","Click to delete an attribute":"Klikk for å slette et attributt","click to delete position":"klikk for å slette posisjonen","Click to edit the value":"Klikk for å redigere verdien","Click to go back to this query":"Klikk for å komme tilbake til dette søket","Click to remove column":"Klikk for å fjerne kolonnen","Click to toggle negation":"Klikk for å slå negasjon på/av","Collections":"Samlinger","Collocations":"Kollokasjoner","Columns":"Kolonner","Comment":"Kommentar","computed":"beregnet","Concordance":"Konkordans","Contact":"Kontakt","context":"kontekst","Context size":"Kontekststørrelse","Corpus":"Korpus","Corpuscle":"Korpuskel","Corpus doc.":"Korpusdok.","Corpus position":"Korpusposisjon","count":"frekvens","Created":"Opprettet","Delete Query":"Slett søket","Delete this alternative":"Slett dette alternativet","Description":"Beskrivelse","Display":"Visningsmodus","Distribution":"Distribusjon","Documentation":"Dokumentasjon","Done":"Ferdig","Download":"Last ned","edit":"rediger","English":"Engelsk","Entire corpus chosen":"Hele korpus valgt","Excel mode":"Excel-modus","Faroese":"Færøysk","Feide sign in":"Feide logg inn","filter":"filter","first":"første","French":"Fransk","Georgian":"Georgisk","German":"Tysk","Go":"Gå","Go to":"Gå til","Go to page":"Gå til side","go to start of document":"gå til starten av dokumentet","group by":"grupper etter","Here you can compose a query graphically.":"Her kan du lage et søk ved å bruke menyer.","Here you can send a comment or report a bug to the ASK maintainers.":"Her kan du gi tilbakemelding eller rapportere en feil til ASK.","Hide":"Skjul","Hit":"Treff","hits":"treff","Home":"Hjem","ignore case":"ignorer storskriving","Ignore structural positions":"Ignorer strukturelle posisjoner","include missing values":"inkluder manglende verdier","include values that are not represented in the match list":"inkluder verdier som ikke er representert i trefflisten","Lang.":"Språk","Language":"Språk","language":"språk","Languages":"Språk","Language(s)":"Språk","languages":"språk","Language variety":"Språkvariant","last":"siste","left context":"venstrekontekst","Licence":"Lisens","License":"Lisens","Line count":"Linjetelling","Lithuanian":"Litauisk","Load saved":"Hent lagret","Localization":"Lokalisering","Localizations to":"Lokaliseringer til","Ludvig Holberg’s writings":"Ludvig Holbergs skrifter","Main Page":"Hovedside","match":"treff","Match size":"Antall treff","Message":"Melding","Mingrelian":"Mingrelsk","negated":"negert","Next":"Neste","next":"neste","Next matches":"Neste treff","Next page":"Neste side","No hit":"Intet treff","None":"Ingen","No query":"Intet søk","Norwegian":"Norsk","Norwegian Bokmål":"Norsk Bokmål","Norwegian Nynorsk":"Nynorsk","of":"av","off":"av","Old Georgian":"Gammelgeorgisk","Old Georgian texts":"Gammelgeorgiske tekster","Old Norse":"Norrønt","on":"på","One match per line":"Ett treff per linje","OpenID":"OpenID","Overview":"Oversikt","Page":"Side","page":"side","Page size":"Linjer per side","parallel-context":"parallel-kontekst","Password":"Passord","Please restart your session":"Vær vennlig og restart sesjonen","Position:":"Posisjon:","positional constraints":"posisjonelle betingelser","positive":"positivt","Previous":"Forrige","previous":"forrige","Previous matches":"Forrige treff","Previous page":"Forrige side","public":"felles","Query":"Søk","Query expression":"Søkeuttrykk","Query history":"Søkehistorie","Refine":"Raffiner","relative":"relativ","repetition":"gjentagelse","Reset":"Tilbakestill","Reset matches":"Tilbakestill treffene","Reset query":"Tilbakestill","Reset the query to standard setting":"Tilbakestill søket til standardinstillingen","right context":"høyrekontekst","Run query":"Søk","Save":"Lagre","Saved queries":"Lagrede søk","Save query":"Lagre søket","scope":"rekkevidde","Scots":"Skotsk","Search":"Søk","Search for word or phrase":"Søk etter ord eller frase","select":"velg","Select corpora by language or collection:":"Velg korpus etter språk eller samling:","select restriction criteria for a subcorpus":"velg restriksjonskriterier for et delkorpus","Send":"Send","Show":"Vis","Show annotation":"Vis annotasjon","show atomic values":"vis atomiske verdier","Show attribute columns:":"Vis attributtkolonner:","show audio/video player":"vis audio/video-spiller","Show collocations":"Vis kollokasjoner","Show context":"Vis kontekst","Show distribution":"Vis distribusjon","show in match":"vis i treff","Show language and collection filter":"Vis filtermenyen","Show line filter":"Vis linjefilter","Show structures:":"Vis kontekst","Signed in as":"Innlogget som","Sign in":"Logg inn","Sign out":"Logg ut","Simple Query":"Enkelt søk","Size":"Størrelse","size":"størrelse","Size (tokens)":"Størrelse (korpusposisjoner)","Slovenian":"Slovensk","sort":"sorter","sorted by":"sortert etter","Spanish":"Spansk","Statistics":"Statistikk","store":"lagre","Structures":"Strukturer","subcorpus":"delkorpus","Subject":"Tittel","Svan":"Svanisk","switch to":"bytt til","Text":"Tekst","Texts":"Tekster","Type":"Type","type":"type","unique words or phrases":"unike ord/fraser","unparsed":"uparset","Updated":"Oppdatert","Upload corpus":"Last opp","User Administration":"Brukeradministrering","Username":"Brukernavn","Users":"Brukere","Use this input form to write a textual query.":"Bruk denne tekstboksen for å skrive et søk i korpus-søkespråket","Variables":"Variabler","Wiki":"Wiki","window":"vindu","Word List":"Ordliste","Word list":"Ordliste","words":"ord","(words & punctuation)":"(ord & tegnsetting)","You are signed in as":"Du er logget på som","Your comment has been sent.":"Din kommentar er sent.","You should provide a subject.":"Du må skrive en tittel.","You should provide some text.":"Du må skrive en kommentartekst.","Time line":"Tidslinje","Hide Search":"Skjul søkemeny","Running time":"Prosesseringstid","Menu search":"Menystyrt søk","Textual search":"Tekstsøk","Search string":"Søkestreng","No matches found":"Ingen treff","Obs: word forms will only be shown after saving":"Obs: ordformene vil vises først etter lagring.","Paradigm":"Paradigme","New paradigm":"Nytt paradigme","from":"fra","til":"to","include expressions":"inkluder uttrykk","include expressions and non-standard forms":"inkluder uttrykk og ikke-standardformer","show verb frames":"vis verbrammer","Ordbank entry":"Ordbanksoppslag","Create new homograph":"Lag ny homograf","Lemma list":"Lemmaliste","Paradigms":"Paradigmer","homograph":"homograf","Homograph":"Homograf","homographs":"homografer","Paradigm not found":"Paradigmet ble ikke funnet","Inflection":"Bøyning","Inflection group":"Bøyningsgruppe","found":"funnet","lemmas":"lemmaer","One lemma":"Ett lemma","Table":"Tabell","Part of Speech":"Ordklasse","Prefix":"Prefiks","Segmentation":"Segmentering","The segmentation is not compatible with the lemma form":"Segmenteringen er ikke i samsvar med lemmaformen","to":"til","Halt":"Pause","Resume":"Fortsett","Save this query as":"Lagre søket som","Public query":"Offentlig søk","Select a saved query":"Velg et lagret søk","Public queries only":"Bare offentlige søk","Private queries only":"Bare private søk","No corpus selected":"Korpus ikke valgt","Selected":"Valgt","matches":"treff","Settings":"Innstillinger","atomic values":"atomiske verdier","Sort":"Sorter","unique values":"ulike verdier","unique value":"verdi","Randomize":"Randomisér","query-done":"Ferdig","query-stopped":"Stoppet","query-halted":"Pausert","Left context":"Venstrekontekst","Right context":"Høyrekontekst","Calculate distribution":"Beregn distribusjon","Calculating":"Beregner","Relative to":"Relativt til","Group by":"Grupper etter","MI * log(Freq)":"MI * log(Freq)","Mutual information":"Mutual information","Log likelihood":"Log likelihood","Rel. frequency":"Rel. frekvens","Threshold":"Terskel","Frequency":"Frekvens","Sort by":"Sorter etter","query-running":"Beregner","collocations":"kollokasjoner","See license terms":"Se lisensvilkår","Select all":"Velg alle","Deselect all":"Fjern valgene","Search the selected corpora":"Søk i de valgte korpusene","Corpuscle query language":"Korpuskel-søkespråk","the Corpuscle query language":"Korpuskel-søkespråket","search inflected forms":"søk i bøyde former","show participle context":"vis partisippkontext","Create a metadata record":"Lag en metadatapost","Upload a metadata record":"Last opp en metadatapost","Clone a metadata record":"Klon en metadatapost","Search in metadata records":"Search in metadata records","Owned by":"Eies av","In group":"I gruppen","Choose profile":"Velg en profil","Show records":"Vis poster","CMDI Records":"CMDI-poster","Normalization":"Normering","URL copied":"URL kopiert","Select a query":"Velg et søkeuttrykk","Your query history for this corpus choice is empty.":"Søkehistorien for dette korpusvalget er tom.","to choose corpora":"for å velge korpus","Choose parameter settings":"Velg parameterinnstillinger","Click on the query expression to see its documentation":"Klikk på søkeuttrykket for å se dokumentasjonen","by clicking on the query name":"ved å klikke på navnet til søket","Show annotations":"Vis annotasjonene","Lines per page in KWIC concordance":"Rader per side i KWIC-konkordans","Set bookmark for this page":"Lag bokmerke for denne siden","This table lists your bookmarks":"Dette er dine bokmerker","Click on a bookmark to go to the corresponding page":"Klikk på et bokmerke for a gå til den tilsvarende siden","There are no bookmarked pages":"Du har ikke noen bokmerker","You can create a bookmark on any text page":"Du kan lage et bokmerke for en hvilken som helst tekstside","Write simple search or CQL search":"Skriv et enkelt søkeuttrykk, eller et søkeuttrykk i","Search expression":"Søkeuttrykk","Corpus search":"Korpussøk","Search in matches":"Søk i treffene","Query name":"Navn til søkeuttrykk","Filter by query string":"Filtrer etter søkeuttrykk","korpuskel-vue":"Korpuskel","korpuskel-prod":"Korpuskel","Task":"Annotasjonssett","Shortcuts":"Snarveier","Article ID":"Artikkel-ID","References":"Referanser","references":"referanser","Reference":"Referanse","reference":"referanse","No references":"Ingen referanser","One reference":"Én referanse","Article":"Artikkel","Bibliography":"Bibliografi","Places":"Steder","Part of speech":"Ordklasse","ambiguous only":"bare flertydige","unmatched only":"bare uten lemma","variants only":"bare med sideformer","has variants":"har sideformer","case insensitive":"ikke skill liten/stor bokstav","By accepting the terms of the license you will be granted access to the resource":"Når du har akseptert lisensvilkårene vil du få tilgang til denne ressursen","This resource has a restricted license":"Denne ressursen har en restriktiv lisens","You have accepted the license":"Du har akseptert lisensen","Please click on the link to read the license terms":"Klikk på lenken for å se lisensvilkårene","The resource":"Ressursen","is licensed under the following terms":"er lisensiert under følgende vilkår","Click for more info":"Klikk for mer info","percentages":"prosenter","absolute bars":"absolutte stolper","relative bars":"relative stolper","Sort column by":"Sorter kolonnen etter","include":"inkluder","Numbers in black are absolute counts":"Tallene i svart er absolutte tall","Percentages in green are unweighted means of group percentages":"Prosentene i grønt er uvektete gjennomsnitt av gruppeprosentene","Percentages in red are distributions of absolute counts inside a row":"Prosenttallene i rødt er distribusjoner av absolutte tall innen en rad","See":"Se","Distribution and Cooccurrence statistics":"Distribusjon og samforkomststatistikk","for an in-depth explanation":"for en detaljert forklaring","fraction":"brøk","Attributes shown":"Viste attributter","Structures shown":"Viste strukturer","Add constraint":"Legg til betingelse","Show more context":"Vis mer kontekst","Show search menu":"Vis søkemeny","Hide search menu":"Skjul søkemeny","Show parameters":"Vis parametrene","Left":"Venstre","Right":"Høyre","Match":"Treff","Ctxt":"Kont.","Only combinations that occur in the corpus can be selected":"Bare kombinasjoner som forekommer i korpuset kan velges","Add disjunct":"Legg til disjunkt","Delete disjunct":"Slett disjunkt","Frequency over time":"Frekvens over tid","Numbers on the y-axis indicate relative token counts":"Tallene på y-aksen viser relative token-tall","average number of occurrences per day per":"gjennomsnittlig antall forekomster per dag per","corpus tokens in the chosen range":"korpus-tokens i den valgte perioden","Total match frequencies":"Totale antall treff","Reset scale":"Tilbakestill skalaen","Corpus details":"Korpusoversikt","Word count":"Antall ord","Last update":"Sist oppdatert","This table shows all values of the attribute, together with their corpus counts.":"Denne tabellen viser alle verdiene av attributtet, sammen med antall forekomster i korpuset.","Mean length":"Medianlengde","max length":"lengste verdi","Details":"Korpusdetaljer","show only valid standard paradigms":"vis bare gyldige standardparadigmer","Filter":"Filter","You have to be signed in to be able to access the corpora with ACA or RES licenses":"Du må være pålogget for å få tilgang til et korpus med en ACA- eller RES-lisens","in":"i","articles":"artikler","Sync":"Synkr.","New article":"Ny artikkel","Registrants":"Innsamlere","caption.NOUN":"Bøyingstabell for dette substantivet","caption.VERB":"Bøyingstabell for dette verbet","caption.VERBPP":"Bøyingstabell for dette verbet (partisippformer)","caption.ADJ":"Bøyingstabell for dette adjektivet","caption.ADJCS":"Bøyingstabell for dette adjektivet (gradbøying)","caption.ADV":"Bøyingstabell for dette adverbet","caption.PRON":"Bøyingstabell for dette pronomenet","caption.DET":"Bøyingstabell for dette determinativet","NOUN":"substantiv","PROPN":"prop","VERB":"verb","ADJ":"adjektiv","ADV":"adverb","ADP":"preposisjon","INTJ":"interjeksjon","DET":"determinativ","PRON":"pronomen","CCONJ":"konjunksjon","SCONJ":"subjunksjon","SYM":"symbol","INFM":"infinitivsmerke","tags.Form":"form","tags.Gender":"kjønn","tags.Sing":"entall","tags.Plur":"flertall","tags.Ind":"ubestemt","tags.Def":"bestemt","tags.Finite":"finitte former","tags.Inf":"infinitiv","tags.Pres":"presens","tags.Past":"preteritum","tags.PresPerf":"presens perfektum","tags.Imp":"imperativ","tags.PerfPart":"perfektum partisipp","tags.Fem":"hunkjønn","tags.FemShort":"hunkjønn","tags.Masc":"hankjønn","tags.MascShort":"hankjønn","tags.MascFem":"hankjønn/ hunkjønn","tags.Neuter":"intetkjønn","tags.NeuterShort":"intetkjønn","tags.PresPart":"presens partisipp","tags.Deg":"gradbøying","tags.Pos":"positiv","tags.Cmp":"komparativ","tags.Sup":"superlativ","tags.SupInd":"superlativ ubestemt","tags.SupDef":"superlativ bestemt","tags.Nom":"subjektsform","tags.Acc":"objektsform","tags.Uninfl":"ubøyelig","You have to be signed in to be able to access corpora with ACA or RES licenses":"Du må være innlogget for å få tilgang til korpora med ACA- eller RES-lisenser","A license you have not yet accepted is marked as":"En lisens som du ikke har akseptert ennå er markert som","Click on ‘See license terms…’ to accept it":"Klikk på ‘Se lisensvilkår…’ for å akseptere den","Select a corpus by checking its check box":"Velg et korpus ved å hake av i boksen","Transliteration":"Transliterering"}')},e9b1:function(e,t,s){"use strict";s.d(t,"b",(function(){return c})),s.d(t,"a",(function(){return k}));var o=s("4cc5"),n=s("b3c9"),a=s("26aa"),i=s("32e8"),r=s.n(i),l=s("15fe");const c=Object(o["a"])("sentence",{state:()=>({data:{match:[]},relations:[],relationId:null,can_edit:!1}),getters:{},actions:{}}),u=Object(o["a"])("token",{state:()=>({word:null,lemma:null,pos:null,morph:null,edit:!1,tokenCpos:null,corpus:null,target:null,detailsMode:"features",items:[],dictEntries:[],killputin:!0}),getters:{},actions:{}});var d=null,p=null,h=null,m=null,f=null,g=null,b=null;function v(e,t){let s=e.getBoundingClientRect().y+document.documentElement.scrollTop,o=s-window.innerHeight/2;o<0&&(o=t||0),document.documentElement.scrollTop=o}const k={data(){return{cStructureUID:"c-structure",fetched:!1,editComment:!1}},mixins:{popover:l["a"]},computed:{...Object(o["c"])(n["b"],c,u)},methods:{depMouseover:function(e){var t=e.target.getAttribute("node-id");this.hiliteInOutEdges(t)},depMouseout:function(){this.blurInOutEdges()},depClick:function(e){var t=e.target.getAttribute("node-id");this.showTokenAttributeValues(e,t,!1)},getDepSentence:function(e,t){e.clear&&(this.sentenceStore.data={}),"iness"==this.getHost()?(this.cStructureUID="dep-uid-"+e.uid,this.$nextTick(()=>{this.callCorpusAPI("get-parsed-sentence",{type:"dep","unique-id":e.uid,"external-id":e.externalId,treebank:e.treebank,mode:"svg",submatch:"all"==e.submatch?-1:e.submatch,linear:this.stateStore.linear,ordered:this.stateStore.ordered,"show-lemma":this.stateStore.showLemma,"show-morph":this.stateStore.showMorph,"show-pos":this.stateStore.showPos,"edit-mode":e.mode||"","to-node-id":e.node,"from-node-id":e.new_head_node,relation:e.relation,word:e.word,lemma:e.lemma,pos:e.pos,morph:e.morph,flags:e.flags,comments:e.comments},"iness").then(s=>{let o=r()("#dep-uid-"+e.uid||!1)[0];this.sentenceStore.data={},this.$nextTick(()=>{o&&(o.innerHTML=s.svg),this.sentenceStore.data=s;var t=Array.from(document.getElementsByClassName("node-text"));let n=this;this.$nextTick(()=>{if(t.forEach(e=>{e.addEventListener("mouseover",n.depMouseover),e.addEventListener("mouseout",n.depMouseout),e.addEventListener("click",n.depClick)}),e.clear){let e=r()(".details");e[0]&&v(e[0])}e.showGraph&&e.showGraph(e.uid||0,s.code)})}),t&&t(s)})})):(this.parseStore&&(this.parseStore.tokenId=this.token.id),this.callCorpusAPI("get-dependency-graph",{linear:this.stateStore.linear,ordered:this.stateStore.ordered,"token-id":this.token.self,"show-lemma":this.stateStore.showLemma,"show-morph":this.stateStore.showMorph,"show-pos":this.stateStore.showPos,"edit-mode":e.mode||"","to-node-id":e.node,"from-node-id":e.new_head_node,relation:e.relation||""}).then(t=>{this.sentenceStore.data={},this.$nextTick(()=>{if(t.stored||(this.sentenceStore.data=t),console.log("r:",t),this.showDepGraph(this.token.id,t.data,t.stored?"stored":null),t.self){let s=this.parseStore.tokens.find(e=>e.self==t.self);switch(e.mode){case"new-head-node":s.parent=t.new_parent;break;case"new-relation":s.label=t.new_label}}})}))},onMouseOver:function(e,t){t?e.transition().style("opacity","1").style("fill","red"):e.transition().style("opacity","1").style("fill","green")},onMouseOut:function(e){e!=p&&e.transition().style("opacity","0.1")},onClick:function(e){console.log("click:",e.attr("from_node_id"),e.attr("to_node_id"));let t=e.attr("from_node_id"),s=e.attr("to_node_id");r()("#poly_"+s).hide(),r()("#dot_"+t+"_"+s).hide(),r()("#path_"+t+"_"+s).hide(),r()("#label_"+s).hide(),r()("#label_text_"+s).hide()},onDropareaMouseOver:function(e){f=e.attr("id").substring(9),e.classed("hilited",!0)},onDropareaMouseOut:function(e){f=null,e.classed("hilited",!1)},onDragStart:function(e,t){this.hidePopover(),t.classed("hilite-out",!0),p=e,g=e.attr("cx"),d=g,this.origPath=t.attr("d"),m=e.attr("to_node_id"),h=e.attr("from_node_id");let s=a["c"]("#label_"+m);this.origLabelX=s.attr("x"),this.callCorpusAPI("get-undominated-nodes",{"from-node-id":e.attr("from_node_id"),"to-node-id":e.attr("to_node_id")},this.getHost()).then(e=>{b=e.undominated,b.forEach(e=>a["c"]("#droparea_"+e).classed("invisible",!1))}).catch(this.showAlert)},onDragEnd:function(e,t){if(f)this.updateDependency(f,p.attr("to_node_id"),null);else{e.transition().style("opacity","0.1"),t.attr("d",this.origPath);let s=a["c"]("#label_"+m),o=a["c"]("#label_text_"+m);s.attr("transform","translate(0,0)"),o.attr("transform","translate(0,0)"),e.attr("cx",g);let n=a["c"]("#dot_"+h+"_"+m);n.attr("cx",g),p=null,a["d"](".droparea").classed("invisible",!0)}},onDrag:function(e,t,s){if(e.attr("cx",a["b"].x),s)r()("#poly_"+m).hide();else{let e=a["c"]("#dot_"+h+"_"+m);e.attr("cx",a["b"].x)}let o=t.attr("d").split(" "),n=parseFloat(e.attr("cx")),i=a["c"]((s?"#from_":"#to_")+h+"_"+m),l=parseFloat(i.attr("cx")),c=l-n,u=Math.min(30,Math.abs(Math.floor(l-n,2))),p=u;c<0&&(p=-u);let f="M "+n+" "+o[2]+" L "+n+" "+o[5]+" Q "+n+" "+o[8]+" "+(n+p)+" "+o[10]+" L "+(n+(c-p))+" "+o[13]+" Q "+(n+c)+" "+o[16]+" "+(n+c)+" "+o[18]+" L "+(n+c)+" "+o[21],g=a["c"]("#label_"+m),b=a["c"]("#label_text_"+m);t.attr("d",f),g.attr("transform","translate("+Math.floor((n-d)/2)+",0)"),b.attr("transform","translate("+Math.floor((n-d)/2)+",0)")},onRootDragStart:function(e,t){this.hidePopover(),t.classed("hilite-in",!0),p=e,g=e.attr("cx"),d=g,this.origPath=t.attr("d"),m=e.attr("to_node_id"),h=e.attr("from_node_id"),console.log("node:",e),console.log("from:",h,"to:",m);let s=a["c"]("#label_"+m);this.origLabelX=s.attr("x"),a["d"](".droparea").classed("invisible",!1),a["c"]("#droparea_"+m).classed("invisible",!0)},onRootDragEnd:function(e,t){if(console.log("targetId",f),f)this.updateDependency(f,p.attr("to_node_id"),null,null,!0);else{e.transition().style("opacity","0.1"),t.attr("d",this.origPath);let s=a["c"]("#label_"+m),o=a["c"]("#label_text_"+m);s.attr("transform","translate(0,0)"),o.attr("transform","translate(0,0)"),e.attr("cx",g),r()("#poly_"+m).show(),p=null,a["d"](".droparea").classed("invisible",!0)}},onRootDrag:function(e,t){this.onDrag(e,t,!0)},editDependency:function(e,t){var s,o,n,a;this.hidePopover(),this.editComment=!1;let i=null;this.getDepSentence({treebank:this.sentenceStore.data.treebank,uid:this.sentenceStore.data.uid,submatch:i,showGraph:this.showDepGraph,mode:e,stored:t,node:m,word:null===(s=this.tokenStore.items.find(e=>"word"==e.attribute))||void 0===s?void 0:s.value,lemma:null===(o=this.tokenStore.items.find(e=>"lemma"==e.attribute))||void 0===o?void 0:o.value,pos:null===(n=this.tokenStore.items.find(e=>"pos"==e.attribute))||void 0===n?void 0:n.value,morph:null===(a=this.tokenStore.items.find(e=>"morph"==e.attribute))||void 0===a?void 0:a.value,flags:this.sentenceStore.data.correct?1:0,comments:this.sentenceStore.data.comments})},updateDependency:function(e,t,s,o,n){console.log("from:",e,"to:",t,"relation:",o,"token:",this.token),this.hidePopover();let a=null;this.getDepSentence({treebank:this.sentenceStore.data.treebank,uid:this.sentenceStore.data.uid,submatch:a,showGraph:this.showDepGraph,mode:o?"new-relation":n?"new-root-node":"new-head-node",node:t,new_head_node:e,slash_head_node:s,relation:o})},toggleCorrect:function(){this.sentenceStore.data.correct=!this.sentenceStore.data.correct},storeCorrectFlag:function(){this.editDependency("flags"),this.item.flags=this.sentenceStore.data.correct?1:null},storeAsCorrect:function(){this.editDependency("store-correct"),this.sentenceStore.data.correct=!0,this.item.flags=1},getHost:function(){switch(this.stateStore.project){case"iness":case"menota":return"iness";default:return null}},showDepGraph:function(e,t,s){let o="stored"==s?"#d3-uid-stored-":"#d3-uid-";t&&(a["c"](o+e).selectAll("*").remove(),this.svg=a["c"](o+e).append("svg").attr("width",t.size[0]).attr("height",t.size[1]),t.arcs.forEach(e=>{let t=this.svg.append("path").attr("d",e.path.d).attr("class","dep").attr("id","path_"+e.from_node_id+"_"+e.to_node_id).attr("from_node_id",e.from_node_id).attr("to_node_id",e.to_node_id);this.svg.append("circle").attr("cx",e.circle.cx).attr("cy",e.circle.cy).attr("r",2).attr("id","dot_"+e.from_node_id+"_"+e.to_node_id);let s=this.svg.append("circle");s.attr("cx",e.circle.cx).attr("cy",e.circle.cy).attr("r",5).attr("from_node_id",e.from_node_id).attr("to_node_id",e.to_node_id).style("opacity","0.1").attr("id","from_"+e.from_node_id+"_"+e.to_node_id).on("mouseover",()=>this.onMouseOver(s,!0)).on("mouseout",()=>this.onMouseOut(s)).call(a["a"]().on("start",()=>this.onDragStart(s,t)).on("drag",()=>this.onDrag(s,t)).on("end",()=>this.onDragEnd(s,t))),this.svg.append("polygon").attr("points",e.polygon.points).attr("style",e.polygon.style);let o=this.svg.append("circle").attr("id","poly_"+e.to_node_id);o.attr("cx",e.polygon.cx).attr("cy",e.polygon.cy).attr("r",5).attr("from_node_id",e.from_node_id).attr("to_node_id",e.to_node_id).attr("id","to_"+e.from_node_id+"_"+e.to_node_id).style("opacity","0.1").on("mouseover",()=>this.onMouseOver(o)).on("mouseout",()=>this.onMouseOut(o)),o.call(a["a"]().on("start",()=>this.onRootDragStart(o,t)).on("drag",()=>this.onRootDrag(o,t)).on("end",()=>this.onRootDragEnd(o,t)))}),t.arcs.forEach(e=>{if(e.id&&!e.id.startsWith("slash-")){let t=this.svg.append("rect");t.attr("x",e.x_center-5*e.edge_count-4).attr("y",e.polygon.cy-8).attr("height",16).attr("width",10*e.edge_count+8).attr("rx",5).attr("ry",5).attr("class","droparea invisible").attr("id","droparea_"+e.to_node_id).on("mouseover",()=>this.onDropareaMouseOver(t)).on("mouseout",()=>this.onDropareaMouseOut(t))}}),t.nodes.forEach(e=>{if(e.text){var t,s;if(this.svg.append("g"),e.match)this.svg.append("rect").attr("x",e.match.x).attr("y",e.match.y).attr("height",40+(this.stateStore.showLemma?20:0)+(this.stateStore.showPos?20:0)+(this.stateStore.showMorph?4+16*((null===(t=e.text.morph)||void 0===t?void 0:t.split(" ").length)||1):0)).attr("width",e.match.width).attr("rx",5).attr("ry",5).attr("id","match_"+e.node_id).attr("node-id",e.node_id).attr("class","match").text(e.match.var_names).style("text-anchor","middle");if(this.svg.append("text").attr("x",e.text.x).attr("y",e.text.y).attr("id","text_"+e.node_id).attr("node-id",e.node_id).attr("class","node-text").text(e.text.value).style("text-anchor","middle").on("click",()=>this.showTokenAttributeValues(e.node_id)).on("mouseover",()=>this.hiliteInOutEdges(e.node_id)).on("mouseout",()=>this.blurInOutEdges()),e.text.lemma&&this.stateStore.showLemma&&this.svg.append("text").attr("x",e.text.x).attr("y",parseInt(e.text.y)+20).attr("id","lemma_"+e.node_id).attr("class","node-lemma").text(e.text.lemma).style("text-anchor","middle"),e.text.pos&&this.stateStore.showPos&&this.svg.append("text").attr("x",e.text.x).attr("y",parseInt(e.text.y)+20+(this.stateStore.showLemma?20:0)).attr("id","morph_"+e.node_id).attr("class","node-morph").style("text-anchor","middle").text(e.text.pos),e.text.morph&&this.stateStore.showMorph){let t=e.text.morph.split(" ");this.svg.append("text").attr("x",e.text.x).attr("y",parseInt(e.text.y)+4+(this.stateStore.showLemma?20:0)+(this.stateStore.showPos?20:0)).attr("id","morph_"+e.node_id).attr("class","node-morph").style("text-anchor","middle").selectAll("tspan").data(t).enter().append("tspan").text(e=>e).attr("dy",16).attr("x",e.text.x)}if(e.match)this.svg.append("text").attr("x",e.text.x).attr("y",parseInt(e.match.y)+30+(this.stateStore.showLemma?20:0)+(this.stateStore.showPos?20:0)+(this.stateStore.showMorph?4+16*((null===(s=e.text.morph)||void 0===s?void 0:s.split(" ").length)||1):0)).attr("id","var_"+e.node_id).attr("node-id",e.node_id).attr("class","match").text(e.match.var_names).style("text-anchor","middle")}}),t.labels.forEach(e=>{let t=this.svg.append("g");t.append("rect").attr("class",e.type).attr("x",e.rect.x).attr("y",e.rect.y).attr("height",e.rect.height).attr("width",e.rect.width).attr("id","label_"+e.to_node_id),t.append("text").attr("x",e.text.x).attr("y",e.text.y).text(e.text.value).attr("id","label_text_"+e.to_node_id).attr("class",e.type).style("text-anchor","middle"),"menota"!=this.stateStore.project&&t.on("click",()=>this.showRelationChoices(e.to_node_id,e.type))}))},showRelationChoices:function(e,t){this.callCorpusAPI("get-dependency-relations",{type:t,corpus:this.stateStore.project},this.getHost()).then(t=>{if(t.relations){let s=document.getElementById("relations-div"),o=r()("#label_"+e);this.sentenceStore.relationId=e,r()(".node-text").removeClass("node-focus"),o.addClass("node-focus");let n=r()("#box"),a=o.offset(),i=n.offset(),l=a.top-i.top+20,c=a.left-i.left+10;s.style.top=l+"px",s.style.left=c+"px",this.sentenceStore.relations=t.relations,s.classList.remove("hidden")}}).catch(this.showAlert)},showTokenAttributeValues:function(e){this.callCorpusAPI("node-attribute-values",{"node-id":e,edit:this.sentenceStore.can_edit},this.getHost()).then(t=>{if(t.av_pairs){m=e;let s=document.getElementById("popover-div"),o=r()("#text_"+e);r()(".node-text").removeClass("node-focus"),o.addClass("node-focus");let n=r()("#box"),a=o.offset(),i=n.offset(),l=a.top-i.top+20,c=a.left-i.left;s.style.top=l+"px",s.style.left=c+"px",this.tokenStore.items=t.av_pairs.filter(e=>e.value)||[],this.tokenStore.edit=null,s.classList.remove("hidden")}}).catch(this.showAlert)},hiliteInOutEdges:function(e){this.blurInOutEdges(),a["d"]('path[from_node_id="'+e+'"]').classed("hilite-out",!0),a["d"]('path[to_node_id="'+e+'"]').classed("hilite-in",!0)},blurInOutEdges:function(){a["d"]("path").classed("hilite-in",!1),a["d"]("path").classed("hilite-out",!1)},hidePopover:function(){r()(".node-text").removeClass("node-focus"),r()(".av-popover-wrapper").addClass("hidden")}}}},eac1:function(e,t,s){e.exports=s.p+"img/ACA.dfd34aec.png"},f21c:function(e,t,s){e.exports=s.p+"img/PERM.693f2bbe.png"},f669:function(e,t,s){},f713:function(e,t,s){"use strict";s("7f33")},f82d:function(e,t,s){e.exports=s.p+"img/by.large.ee827455.png"},f96e:function(e,t,s){e.exports=s.p+"img/publicdomain.large.50de5fcc.png"},f9c3:function(e){e.exports=JSON.parse('{"en":"English","no":"Norsk","de":"Deutsch","ka":"ქართული","abk":"Аҧсуа","ru":"Русски","Abkhazian":"Абхазский","ABNC":null,"AbNC":null,"absolute":null,"Absolute frequency":null,"Accept":null,"add a positional constraint":null,"Administration":null,"aligned-context":null,"Alignment Tool":null,"All":null,"Alle":null,"Analysis":null,"app":null,"Application form":null,"Apply":null,"ASK":null,"Ask":null,"ask":null,"ASK\'A":null,"audio only":null,"Aviskorpus":null,"Bookmark page":null,"Bookmark this page":null,"Build a graphical representation of the query expression.":null,"Bulgarian":null,"by":null,"By clicking on [+] you can inspect the texts of a collection.":null,"by query string":null,"Cancel":null,"Cataloguex":null,"Charter catalogue":null,"check for case-insensitive search":null,"check to mark position as target position":null,"Choose a corpus from the list below. Some corpora are only available when you have signed in.":null,"Choose a treebank to work with from the list below.":null,"Choose corpora from the list below by clicking on their names.":null,"Choose Corpus":null,"choose how many consecutive corpus positions the constraints should apply to":null,"Choose variable:":null,"Clear":null,"Click on a document name to view the text.":null,"Click on a name to choose the query.":null,"Click on a query to see its documentation.":null,"Click on a row title to sort":null,"Click to add an alternative":null,"Click to add a position":null,"Click to add a position box":null,"Click to choose a new value from list":null,"Click to choose new values from list":null,"Click to delete an attribute":null,"click to delete position":null,"Click to edit the value":null,"Click to go back to this query":null,"Click to parse sentence in XLE-Web":null,"Click to remove column":null,"Click to run the query. The result will be displayed in the Concordance pane.":null,"Click to toggle negation":null,"CMDI Metadata editor":null,"CMDI Metadata Records":null,"CMD Metadata":null,"CMD Metadata editor":null,"CMD Metadata Records":null,"Code":null,"Collections":null,"Collocate":null,"collocations calculated":null,"Columns":null,"combine context positions":null,"COMEDI":null,"Comedi":null,"Comment":null,"Comments":null,"computed":null,"Constraint Grammar":null,"Constrain the search to a":null,"Constrain your search to":null,"Contact":null,"Content":null,"Contents":null,"Copy query PID":null,"Copy query URL":null,"Corpuscle":null,"Corpuscle: Corpus list":null,"Corpuscle-Lex":null,"Corpus doc.":null,"Corpus list":null,"Corpus position":null,"corpus positions matching the vertical value(s).":null,"correct":null,"count":null,"counts only":null,"Created":null,"D3":null,"Delete Query":null,"Delta":null,"Description":null,"Diagram":null,"Dialects":null,"Dictionary entry":null,"Dipl":null,"dipl":null,"Disambiguate":null,"Discard":null,"Disc. Statistics":null,"Display":null,"distance to match position":null,"distinct values":null,"Distribution":null,"Document":null,"document":null,"Documentation":null,"Done.":null,"Do not put words in quotation marks. You can use * as wildcard: fish* finds fish and fishing, *fish finds swordfish etc.":null,"Download as Tab-separated values (.tsv) file":null,"Download corpus source":null,"Download corpus source as XML":null,"Drag onto column label to move column":null,"edit":null,"Edition":null,"Edit is":null,"edit-match":null,"Editor":null,"Editors":null,"Editor(s)":null,"empty":null,"Eng. Code":null,"English":null,"(Entire corpus chosen.)":null,"Example":null,"expan":null,"Explanation":null,"Extracted words":null,"Facs":null,"facs":null,"Faroese":null,"Features":null,"Feide":null,"Feide sign in":null,"fifi":null,"filter":null,"filter by keeping only selected sentences":null,"Filter by name":null,"filter by removing deselected lines":null,"filter by removing selected lines":null,"filter by removing selected sentences":null,"filter inv.":null,"Filter variable":null,"first":null,"for":null,"Fractions in blue are unweighted means of group fractions":null,"Fractions in green are distributions of total numbers":null,"Fractions sum up to 1.0 in each row":null,"French":null,"Freq.":null,"full":null,"gaga":null,"Gekko":null,"Genre":null,"Geo. Code":null,"Georgian":null,"Georgian text":null,"German":null,"GNC":null,"GNC: Parse":null,"GNC: Text":null,"GNC: Text Repository":null,"Gnyronaxra":null,"Go":null,"go to start of document":null,"Grammars":null,"group by":null,"Groups":null,"Haemeti":null,"Hand note":null,"has case-insensitive search":null,"Header":null,"Here you can compose a query graphically.":null,"Here you can parse sentences with the morphological analysers that are being used to analyze the texts of the GNC.":null,"Here you can parse sentences with the morphological analyser that is being developed for Abkhaz.":null,"Here you can parse sentences with the morphological analyser that is being developed for Abkhaz. (Beware of many errors!)":null,"Here you can send a comment or report a bug to the ASK maintainers.":null,"Hide":null,"Home":null,"Home page":null,"ICAME":null,"if checked, structural corpus positions are ignored unless searched for in the query, e.g., the query «\'a\' \'b\'» will match «a &lt;s&gt; b».":null,"ignore case":null,"include counts":null,"include fractions":null,"include missing values":null,"Include structural positions when calculating relative frequencies":null,"include structures":null,"include values that are not represented in the match list":null,"INESS":null,"Inventory":null,"is POS?":null,"Judeo-Georgian":null,"Keep the selected value(s) and add new value(s) as an alternative":null,"Keep the selected value(s) and add new value(s) as a negated alternative. (A match must not contain these values.)":null,"Lang.":null,"Language variety":null,"last":null,"lb":null,"Lemma":null,"Lemmatization":null,"Levels":null,"Lex":null,"lexicon":null,"LFG Sentence":null,"LFG Treebank":null,"LFG Treebank Sentences":null,"LIAD":null,"Licence":null,"License":null,"Line count":null,"List of active XLE servers":null,"List of grammar files for grammar ‘":null,"List of grammar files for grammar â":null,"List of registered LFG grammars":null,"Lithuanian":null,"Load saved":null,"Local":null,"Localizations to":null,"Log":null,"Log Likelihood":null,"Look up in":null,"Look up in dictionary":null,"Ludvig Holberg’s writings":null,"Main Editor(s)":null,"Main Page":null,"Manuscript":null,"match":null,"Matching word(s) or structure(s)":null,"matchx":null,"max length:":null,"Mean length:":null,"MENOTA":null,"Menota":null,"Menota Lemmatizing Assistent":null,"Message":null,"Meta":null,"Metadata":null,"Metadata Editor":null,"Metadata Records":null,"Metaordbok":null,"Metaordboka":null,"Metaordboken":null,"Middle Georgian":null,"Middle Georgian texts":null,"Miiddle Georgian":null,"Mingrelian":null,"MLA":null,"Mode":null,"Model text":null,"Modern Georgian":null,"Morphological analysis":null,"MS or Work Title":null,"multi-valued":null,"Mutual Information":null,"Name":null,"negated":null,"New Georgian texts":null,"Next matches":null,"No entry found.":null,"No entry found for lemma":null,"No entry found for word":null,"None":null,"No query":null,"Norm":null,"norm":null,"Norwegian":null,"Norwegian Bokmål":null,"Norwegian Nynorsk":null,"not done":null,"Nynorsk":null,"Nynorskordboka":null,"off":null,"Old Georgian":null,"Old Georgian texts":null,"Old Norse":null,"on":null,"One match per line":null,"OpenID":null,"OpenIdP":null,"OpenID sign in":null,"Oppslagsformer":null,"Ordbank":null,"Ordbanken":null,"Ordbokredigering":null,"Ordbøkene":null,"Ordbøker":null,"Ordform":null,"Ordforslag":null,"or go directly to the Concordance page.":null,"Original text":null,"Packed representation":null,"PALAG":null,"parallel-context":null,"Parallel Sentences":null,"Password":null,"Photo":null,"plain-context":null,"play":null,"Please choose a text from the Text repository.":null,"Please chose a corpus from the Corpus list.":null,"Please restart your session":null,"POS":null,"Position:":null,"positive":null,"Previous matches":null,"Publication date":null,"Public catalogue":null,"PubNoEnPC":null,"punctuation":null,"put each field into double quotes":null,"puts each field into double quotes":null,"Query expression (basic search mode)":null,"Query history is empty.":null,"Query the selected corpora":null,"Readible":null,"reduced":null,"Refine":null,"Region":null,"relative":null,"Relative frequency":null,"Relative numbers are matches per":null,"relative to":null,"Rel. freq.":null,"Reload":null,"Reload morphology":null,"Reparse":null,"Repository":null,"Reset the query to standard setting":null,"Responsible(s)":null,"Roles:":null,"running":null,"Run xQuery":null,"Samling":null,"Save Copy":null,"scope":null,"Scots":null,"Search for word or phrase":null,"Search for word or phrase:":null,"Select corpora by language or collection:":null,"Select corpora from the list below by clicking on their names.":null,"Select corpora from the list below by clicking on their names. Then click on “Query the selected corpora” below or go directly to the Concordance page.":null,"select restriction criteria for a subcorpus":null,"Send":null,"Sentence":null,"Sentence Overview":null,"Session started at":null,"Setelarkiv":null,"Shortcuts:":null,"Short name":null,"Show":null,"Show additional tasks:":null,"Show all annotation sets":null,"Show all readings":null,"Show apparatus":null,"show atomic values":null,"Show attribute columns:":null,"show audio/video player":null,"Show concordance for selection":null,"Show dependencies":null,"Show distribution":null,"Show facsimile image":null,"Show features":null,"show freq.":null,"show in match":null,"Show language and collection filter":null,"show LL":null,"show MI":null,"Show only selected variable":null,"Show page and line numbers":null,"Show parse link":null,"Show references":null,"show rel. freq.":null,"shows the last 20 queries in this session":null,"Show structures:":null,"Show used rules":null,"Signature":null,"Signatures":null,"Sign in":null,"Simple Query":null,"size":null,"Size (tokens)":null,"Size (tokens/words & punctuation)":null,"Size (words & punctuation)":null,"Sizex":null,"Slovenian":null,"sort":null,"sort by":null,"Spanish":null,"Språksamlingene":null,"Statistics":null,"Status":null,"Stop":null,"store":null,"stored queries shown":null,"struct":null,"Subject":null,"Suited for drag and drop-import into MS Excel":null,"supplied":null,"suppress in match":null,"Svan":null,"Søk":null,"TAG":null,"Tagset":null,"Talebanken":null,"Talebanken--":null,"Talebanken\'":null,"Talebanken((\'.,.":null,"talebanken":null,"Talebanken\'A":null,"Task:":null,"Test catalogue":null,"Text access restricted":null,"Text repository":null,"Then click on “Query the selected corpora” below":null,"Then click on “Query the selected corpora” below.":null,"There is no text list available for the selected corpora.":null,"This catalogue lists all texts in the PALAG corpus.":null,"This catalogue lists all texts in the selected GNC corpora.":null,"Translator":null,"Transliterate":null,"Treebank":null,"Treebank Details":null,"Treebank doc.":null,"Treebank Overview":null,"Treebanks":null,"Treebank Selection":null,"Treebank selection":null,"Treebank Sentence":null,"Type/token average":null,"UD features":null,"unique values":null,"unique words or phrases":null,"unparsed":null,"Updated":null,"Upload corpus":null,"Use * as wildcard":null,"Used with:":null,"User Administration":null,"Username":null,"Use this input form to write a textual query.":null,"Variable":null,"Variable:":null,"Variable description":null,"Variables":null,"Variant":null,"Variety":null,"variety":null,"Version":null,"version":null,"view":null,"Wiki":null,"window":null,"Window size":null,"(words & punctuation)":null,"Write a sentence or shorter text and click the ‘Parse’ button.":null,"Xanmeti":null,"XLE-Web":null,"XML":null,"You are not authorized to access this corpus.":null,"You are not authorized to access this corpus. Please go to the Metadata page and accept the license terms.":null,"You are signed in as":null,"You can click on the morphosyntactic features of the analyzed text to have them explained.":null,"Your comment has been sent.":null,"Your query history is empty.":null,"You should provide a subject.":null,"You should provide some text.":null,"В. Касланӡиа: Аҧсуа-аурыс жәар":null,"abbreviated syntax: /…/":"сокращенное выражение: /…/","abbreviated syntax: {…}":"сокращенное выражение: {…}","add":"добавить","Add as alternative":"Добавить как альтернативу","Additional constraints":"Дополнительные фильтры","Additional constraints for this position:":"Дополнительные фильтры для этой позиции","Advanced search":"Расширенный поиск","alphabetic":"по алфавиту","and":"и","annotation":"аннотация","as":"как","Att":"Атр","Attribute":"Атрибут","attribute":"атрибут","Attributes":"Атрибуты","Author":"Автор","Availability":"Доступность","Basic query expression":"Простой поисковый запрос","Basic search":"Простой поиск","Between":"между","Bookmarks":"Закладкы","Build graphical query":"Создать графический запрос","by frequency":"по частотности","Catalogue":"Список текстов","Choose":"Выбрать","Choose a":"Выбрать","Click at an attribute to see its values":"Нажмите на атрибут чтобы видеть его значения","Click on a column heading to sort":"Можно сортировать по любой колонке, нажимая на заголовок колонки","Click on an attribute to see its values":"Нажмите на атрибут чтобы видеть его значения","Click on a text title to see more information about the text":"Кликните на название текста для дополнительней информации о тексте","Click on the [Text] link to browse the text":"Кликните на [Текст] чтобы читать текст","click to choose":"нажмите","close":"закрыть","Collocations":"Коллокации","Concordance":"Конкорданс","Constrain your search to a subcorpus":"Ограничьте Ваш поиск на субкорпус","context":"контекст","Context size":"Размер контекста","Corpora":"Корпуса","Corpus":"Корпус","corpus":"корпус","Date":"Дата","Delete this alternative":"Удалите эту альтернативу","Distributor":"Дистрибьютор","Done":"Готов","Download":"Скачать","Encoding":"Кодирование","Entire corpus chosen":"Весь корпус выбран","Excel mode":"для Excel","File":"Файл","Genres":"Жанры","Go to":"Перейти на","Go to page":"Перейти на страницу","Grammar":"Грамматика","grammar":"грамматика","Grammatical Features":"Грамматические признаки","Grammatical features":"Грамматические признаки","Grammatical features and their descriptions.":"Грамматические признаки и их описание.","Hit":"Вхождение","hits":"вхождения","Ignore structural positions":"Игнорировать структурные позиции","Language":"Язык","language":"язык","Languages":"Языки","Language(s)":"Язык(и)","languages":"языки","left context":"левый контекст","Localization":"Локализация","Match size":"Число вхождений","Next":"Следующие","next":"следующая","Next page":"Следующая страница","No collocations calculated":"Коллокаций пока нет","No hit":"Ничего не найдено","of":"от","Only combinations that do occur in the corpus can be selected.":"Можно выбрать только сочетания, содержащееся в корпусе","or":"или","Orig. date":"Дата произхожд.","Original date":"Дата произхождения","Original place":"Место произхождения","Overview":"Обзор","Page":"Страница","page":"страница","Page size":"размер страницы","Parse":"Грамматический анализ","Place":"Место","positional constraints":"позиционный фильтр","Previous":"Предыдущие","previous":"предыдущая","Previous page":"Предыдущая страница","public":"публичный","Publication":"Публикация","Publisher":"Издатель","Query":"Поиск","Query expression":"Поисковый запрос","Query history":"История поисковых запросов","repetition":"повторение","Reset":"Очистить","Reset matches":"Очистить","Reset query":"Очистить","right context":"правой контекст","Running…":"Работает…","Run Query":"Искать","Save":"Запомнить","Saved queries":"Сохраненние поиски","Save Query":"Запомнить поиск","Search":"Поиск","Search for a word or a phrase":"Поиск слова или фразы","select":"выбрать","Select values for":"Изберите значения для","Show annotation":"Показать аннотацию","Show collocations":"Показать коллокацие","Show context":"Показать контекст","Show line filter":"Показать фильтр строк","Show query expression":"Покажи поисковый запрос","Signed in as":"Счет:","Sign out":"Выйти","Size":"Объем","sorted by":"сортировка по","Source":"Источник","Structures":"Структуры","subcorpus":"подкорпус","switch to":"перейди на","target":"покажи атрибуты этой позиции в KWIC","Text":"Текст","Text list":"Список текстов","Text Metadata":"Метаданные тестов","Texts":"Тексты","Texts list":"Список текстов","This catalogue lists all texts in the Abkhaz National Corpus.":"В этом списке перечисленние все тексты корпуса.","Title":"Название","tokens":"токенов","Type":"Вид","type":"вид","Users":"Пользователи","Use transliteration":"Транслитерация","Word List":"Список слов","Word list":"Список слов","Words":"Слова","words":"слова"}')},ff21:function(e,t,s){}});
//# sourceMappingURL=app.ccde8617.js.map