solid-ui 3.0.3 → 3.0.4-06ea893

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,7 +20,7 @@
20
20
  */
21
21
  e.exports=n(813)},633(e,t,n){var a=n(172),i=n(993),r=n(869),o=n(887),s=n(791),c=n(373),l=n(579);function u(){"use strict";var t=i(),n=t.m(u),p=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))}var m={throw:1,return:2,break:3,continue:3};function f(e){var t,n;return function(a){t||(t={stop:function(){return n(a.a,2)},catch:function(){return a.v},abrupt:function(e,t){return n(a.a,m[e],t)},delegateYield:function(e,i,r){return t.resultName=i,n(a.d,l(e),r)},finish:function(e){return n(a.f,e)}},n=function(e,n,i){a.p=t.prev,a.n=t.next;try{return e(n,i)}finally{t.next=a.n}}),t.resultName&&(t[t.resultName]=a.v,t.resultName=void 0),t.sent=a.v,t.next=a.n;try{return e.call(this,t)}finally{a.p=t.prev,a.n=t.next}}}return(e.exports=u=function(){return{wrap:function(e,n,a,i){return t.w(f(e),n,a,i&&i.reverse())},isGeneratorFunction:d,mark:t.m,awrap:function(e,t){return new a(e,t)},AsyncIterator:s,async:function(e,t,n,a,i){return(d(t)?o:r)(f(e),t,n,a,i)},keys:c,values:l}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},663(e){"use strict";e.exports=t},738(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},756(e,t,n){var a=n(633)();e.exports=a;try{regeneratorRuntime=a}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}},791(e,t,n){var a=n(172),i=n(546);e.exports=function e(t,n){function r(e,i,o,s){try{var c=t[e](i),l=c.value;return l instanceof a?n.resolve(l.v).then(function(e){r("next",e,o,s)},function(e){r("throw",e,o,s)}):n.resolve(l).then(function(e){c.value=e,o(c)},function(e){return r("throw",e,o,s)})}catch(e){s(e)}}var o;this.next||(i(e.prototype),i(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(e,t,a){function i(){return new n(function(t,n){r(e,a,t,n)})}return o=o?o.then(i,i):i()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},813(e){"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/ace+json":{"source":"iana","compressible":true},"application/ace-groupcomm+cbor":{"source":"iana"},"application/ace-trl+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/aif+cbor":{"source":"iana"},"application/aif+json":{"source":"iana","compressible":true},"application/alto-cdni+json":{"source":"iana","compressible":true},"application/alto-cdnifilter+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-propmap+json":{"source":"iana","compressible":true},"application/alto-propmapparams+json":{"source":"iana","compressible":true},"application/alto-tips+json":{"source":"iana","compressible":true},"application/alto-tipsparams+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/appinstaller":{"compressible":false,"extensions":["appinstaller"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/appx":{"compressible":false,"extensions":["appx"]},"application/appxbundle":{"compressible":false,"extensions":["appxbundle"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/automationml-aml+xml":{"source":"iana","compressible":true,"extensions":["aml"]},"application/automationml-amlx+zip":{"source":"iana","compressible":false,"extensions":["amlx"]},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/bufr":{"source":"iana"},"application/c2pa":{"source":"iana"},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/ce+cbor":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/cid-edhoc+cbor-seq":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/city+json-seq":{"source":"iana"},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-eap":{"source":"iana"},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/concise-problem-details+cbor":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cose-x509":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwl":{"source":"iana","extensions":["cwl"]},"application/cwl+json":{"source":"iana","compressible":true},"application/cwl+yaml":{"source":"iana"},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana","extensions":["dcm"]},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dpop+jwt":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/eat+cwt":{"source":"iana"},"application/eat+jwt":{"source":"iana"},"application/eat-bun+cbor":{"source":"iana"},"application/eat-bun+json":{"source":"iana","compressible":true},"application/eat-ucs+cbor":{"source":"iana"},"application/eat-ucs+json":{"source":"iana","compressible":true},"application/ecmascript":{"source":"apache","compressible":true,"extensions":["ecma"]},"application/edhoc+cbor-seq":{"source":"iana"},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.legacyesn+json":{"source":"iana","compressible":true},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/entity-statement+jwt":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdf":{"source":"iana","extensions":["fdf"]},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geopose+json":{"source":"iana","compressible":true},"application/geoxacml+json":{"source":"iana","compressible":true},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gnap-binding-jws":{"source":"iana"},"application/gnap-binding-jwsd":{"source":"iana"},"application/gnap-binding-rotation-jws":{"source":"iana"},"application/gnap-binding-rotation-jwsd":{"source":"iana"},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/grib":{"source":"iana"},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"iana","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"apache","charset":"UTF-8","compressible":true,"extensions":["js"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/jscontact+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jsonpath":{"source":"iana"},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwk-set+jwt":{"source":"iana"},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/linkset":{"source":"iana"},"application/linkset+json":{"source":"iana","compressible":true},"application/load-control+xml":{"source":"iana","compressible":true},"application/logout+jwt":{"source":"iana"},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4","mpg4","mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msix":{"compressible":false,"extensions":["msix"]},"application/msixbundle":{"compressible":false,"extensions":["msixbundle"]},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":true,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/ohttp-keys":{"source":"iana"},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg","one","onea"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["sig","asc"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/private-token-issuer-directory":{"source":"iana"},"application/private-token-request":{"source":"iana"},"application/private-token-response":{"source":"iana"},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/provided-claims+jwt":{"source":"iana"},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.implied-document+xml":{"source":"iana","compressible":true},"application/prs.implied-executable":{"source":"iana"},"application/prs.implied-object+json":{"source":"iana","compressible":true},"application/prs.implied-object+json-seq":{"source":"iana"},"application/prs.implied-object+yaml":{"source":"iana"},"application/prs.implied-structure":{"source":"iana"},"application/prs.mayfile":{"source":"iana"},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.vcfbzip2":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true,"extensions":["xsf"]},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"apache"},"application/reputon+json":{"source":"iana","compressible":true},"application/resolve-response+jwt":{"source":"iana"},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-checklist":{"source":"iana"},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-signed-tal":{"source":"iana"},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"apache"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana","extensions":["sql"]},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/sslkeylogfile":{"source":"iana"},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/st2110-41":{"source":"iana"},"application/stix+json":{"source":"iana","compressible":true},"application/stratum":{"source":"iana"},"application/swid+cbor":{"source":"iana"},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tm+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/toc+cbor":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"source":"iana","compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/trust-chain+json":{"source":"iana","compressible":true},"application/trust-mark+jwt":{"source":"iana"},"application/trust-mark-delegation+jwt":{"source":"iana"},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/uccs+cbor":{"source":"iana"},"application/ujcs+json":{"source":"iana","compressible":true},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vc":{"source":"iana"},"application/vc+cose":{"source":"iana"},"application/vc+jwt":{"source":"iana"},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.1ob":{"source":"iana"},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3a+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ach+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc8+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.5gsa2x":{"source":"iana"},"application/vnd.3gpp.5gsa2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gsv2x":{"source":"iana"},"application/vnd.3gpp.5gsv2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.crs+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.current-location-discovery+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-msgstore-ctrl-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.pinapp-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.seal-group-doc+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-network-qos-management-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-ue-config-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-unicast-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-user-profile-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.v2x":{"source":"iana"},"application/vnd.3gpp.vae-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acm.addressxfer+json":{"source":"iana","compressible":true},"application/vnd.acm.chatbot+json":{"source":"iana","compressible":true},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"apache","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"apache"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.parquet":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.apexlang":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"apache"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autodesk.fbx":{"extensions":["fbx"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.belightsoft.lhzd+zip":{"source":"iana","compressible":false},"application/vnd.belightsoft.lhzl+zip":{"source":"iana","compressible":false},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.bzip3":{"source":"iana"},"application/vnd.c3voc.schedule+xml":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.cncf.helm.chart.content.v1.tar+gzip":{"source":"iana"},"application/vnd.cncf.helm.chart.provenance.v1.prov":{"source":"iana"},"application/vnd.cncf.helm.config.v1+json":{"source":"iana","compressible":true},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datalog":{"source":"iana"},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.dcmp+xml":{"source":"iana","compressible":true,"extensions":["dcmp"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.eln+zip":{"source":"iana","compressible":false},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.erofs":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"apache","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.fdsn.stationxml+xml":{"source":"iana","charset":"XML-BASED","compressible":true},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.freelog.comic":{"source":"iana"},"application/vnd.frogans.fnc":{"source":"apache","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"apache","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.ga4gh.passport+jwt":{"source":"iana"},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.genozip":{"source":"iana"},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.gentoo.catmetadata+xml":{"source":"iana","compressible":true},"application/vnd.gentoo.ebuild":{"source":"iana"},"application/vnd.gentoo.eclass":{"source":"iana"},"application/vnd.gentoo.gpkg":{"source":"iana"},"application/vnd.gentoo.manifest":{"source":"iana"},"application/vnd.gentoo.pkgmetadata+xml":{"source":"iana","compressible":true},"application/vnd.gentoo.xpak":{"source":"iana"},"application/vnd.geo+json":{"source":"apache","compressible":true},"application/vnd.geocube+xml":{"source":"apache","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.pinboard":{"source":"iana"},"application/vnd.geogebra.slides":{"source":"iana","extensions":["ggs"]},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.gnu.taler.exchange+json":{"source":"iana","compressible":true},"application/vnd.gnu.taler.merchant+json":{"source":"iana","compressible":true},"application/vnd.google-apps.audio":{},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.drawing":{"compressible":false,"extensions":["gdraw"]},"application/vnd.google-apps.drive-sdk":{"compressible":false},"application/vnd.google-apps.file":{},"application/vnd.google-apps.folder":{"compressible":false},"application/vnd.google-apps.form":{"compressible":false,"extensions":["gform"]},"application/vnd.google-apps.fusiontable":{},"application/vnd.google-apps.jam":{"compressible":false,"extensions":["gjam"]},"application/vnd.google-apps.mail-layout":{},"application/vnd.google-apps.map":{"compressible":false,"extensions":["gmap"]},"application/vnd.google-apps.photo":{},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.script":{"compressible":false,"extensions":["gscript"]},"application/vnd.google-apps.shortcut":{},"application/vnd.google-apps.site":{"compressible":false,"extensions":["gsite"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-apps.unknown":{},"application/vnd.google-apps.video":{},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"apache","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true,"extensions":["xdcf"]},"application/vnd.gpxsee.map+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.hsl":{"source":"iana"},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"apache"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"apache","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"apache"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.ipfs.ipns-record":{"source":"iana"},"application/vnd.ipld.car":{"source":"iana"},"application/vnd.ipld.dag-cbor":{"source":"iana"},"application/vnd.ipld.dag-json":{"source":"iana"},"application/vnd.ipld.raw":{"source":"iana"},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kdl":{"source":"iana"},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.keyman.kmp+zip":{"source":"iana","compressible":false},"application/vnd.keyman.kmx":{"source":"iana"},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.ldev.productlicensing":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.mdl":{"source":"iana"},"application/vnd.mdl-mbsdf":{"source":"iana"},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.medicalholodeck.recordxr":{"source":"iana"},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mermaid":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.modl":{"source":"iana"},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-visio.viewer":{"extensions":["vdx"]},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msgpack":{"source":"iana"},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.nato.bindingdataobject+cbor":{"source":"iana"},"application/vnd.nato.bindingdataobject+json":{"source":"iana","compressible":true},"application/vnd.nato.bindingdataobject+xml":{"source":"iana","compressible":true,"extensions":["bdo"]},"application/vnd.nato.openxmlformats-package.iepd+zip":{"source":"iana","compressible":false},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"apache","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oai.workflows":{"source":"iana"},"application/vnd.oai.workflows+json":{"source":"iana","compressible":true},"application/vnd.oai.workflows+yaml":{"source":"iana"},"application/vnd.oasis.opendocument.base":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"apache","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-master-template":{"source":"iana"},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"apache","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"apache","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.onvif.metadata":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openvpi.dspx+json":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.procrate.brushset":{"extensions":["brushset"]},"application/vnd.procreate.brush":{"extensions":["brush"]},"application/vnd.procreate.dream":{"extensions":["drm"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.pt.mundusmundi":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true,"extensions":["xhtm"]},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.relpipe":{"source":"iana"},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.sketchometry":{"source":"iana"},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.smintio.portals.archive":{"source":"iana"},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sybyl.mol2":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uic.osdm+json":{"source":"iana","compressible":true},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml","uo"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.veraison.tsm-report+cbor":{"source":"iana"},"application/vnd.veraison.tsm-report+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw","vsdx","vtx"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vocalshaper.vsp4":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.wasmflow.wafl":{"source":"iana"},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordlift":{"source":"iana"},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xarin.cpj":{"source":"iana"},"application/vnd.xecrets-encrypted":{"source":"iana"},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/voucher-jws+json":{"source":"iana","compressible":true},"application/vp":{"source":"iana"},"application/vp+cose":{"source":"iana"},"application/vp+jwt":{"source":"iana"},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blender":{"extensions":["blend"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-compressed":{"extensions":["rar"]},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-ipynb+json":{"compressible":true,"extensions":["ipynb"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zip-compressed":{"extensions":["zip"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xfdf":{"source":"iana","extensions":["xfdf"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yaml":{"source":"iana"},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+cbor":{"source":"iana"},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yang-sid+json":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zip+dotlottie":{"extensions":["lottie"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana","extensions":["adts","aac"]},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flac":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/matroska":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/midi-clip":{"source":"iana"},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a","m4b"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"apache"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"source":"iana","compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp","dib"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/dpx":{"source":"iana","extensions":["dpx"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/j2c":{"source":"iana"},"image/jaii":{"source":"iana","extensions":["jaii"]},"image/jais":{"source":"iana","extensions":["jais"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpg","jpeg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm","jpgm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxl":{"source":"iana","extensions":["jxl"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false,"extensions":["jfif"]},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif","btf"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.clip":{"source":"iana"},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"iana","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-adobe-dng":{"extensions":["dng"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-emf":{"source":"iana"},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-wmf":{"source":"iana"},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/bhttp":{"source":"iana"},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/mls":{"source":"iana"},"message/news":{"source":"apache"},"message/ohttp-req":{"source":"iana"},"message/ohttp-res":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime","mht","mhtml"]},"message/s-http":{"source":"apache"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"apache"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/jt":{"source":"iana","extensions":["jt"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/prc":{"source":"iana","extensions":["prc"]},"model/step":{"source":"iana","extensions":["step","stp","stpnc","p21","210"]},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/u3d":{"source":"iana","extensions":["u3d"]},"model/vnd.bary":{"source":"iana","extensions":["bary"]},"model/vnd.cld":{"source":"iana","extensions":["cld"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana","extensions":["pyo","pyox"]},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usda":{"source":"iana","extensions":["usda"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"apache"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/hl7v2":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["md","markdown"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/prs.texi":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.exchangeable":{"source":"iana"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"apache"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.vcf":{"source":"iana"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vnd.zoo.kcl":{"source":"iana"},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/wgsl":{"source":"iana","extensions":["wgsl"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/evc":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/h266":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/lottie+json":{"source":"iana","compressible":true},"video/matroska":{"source":"iana"},"video/matroska-3d":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts","m2t","m2ts","mts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.planar":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"apache"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},869(e,t,n){var a=n(887);e.exports=function(e,t,n,i,r){var o=a(e,t,n,i,r);return o.next().then(function(e){return e.done?e.value:o.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},887(e,t,n){var a=n(993),i=n(791);e.exports=function(e,t,n,r,o){return new i(a().w(e,t,n,r),o||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},983(e){var t={"prs.":100,"x-":200,"x.":300,"vnd.":400,default:900},n={nginx:10,apache:20,iana:40,default:30},a={application:1,font:2,audio:2,video:3,default:0};e.exports=function(e,i="default"){if("application/octet-stream"===e)return 0;const[r,o]=e.split("/"),s=o.replace(/(\.|x-).*/,"$1");return(t[s]||t.default)+(n[i]||n.default)+(a[r]||a.default)+(1-e.length/100)}},993(e,t,n){var a=n(546);function i(){
22
22
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
23
- var t,n,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.toStringTag||"@@toStringTag";function c(e,i,r,o){var s=i&&i.prototype instanceof u?i:u,c=Object.create(s.prototype);return a(c,"_invoke",function(e,a,i){var r,o,s,c=0,u=i||[],p=!1,d={p:0,n:0,v:t,a:m,f:m.bind(t,4),d:function(e,n){return r=e,o=0,s=t,d.n=n,l}};function m(e,a){for(o=e,s=a,n=0;!p&&c&&!i&&n<u.length;n++){var i,r=u[n],m=d.p,f=r[2];e>3?(i=f===a)&&(s=r[(o=r[4])?5:(o=3,3)],r[4]=r[5]=t):r[0]<=m&&((i=e<2&&m<r[1])?(o=0,d.v=a,d.n=r[1]):m<f&&(i=e<3||r[0]>a||a>f)&&(r[4]=e,r[5]=a,d.n=f,o=0))}if(i||e>1)return l;throw p=!0,a}return function(i,u,f){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&m(u,f),o=u,s=f;(n=o<2?t:s)||!p;){r||(o?o<3?(o>1&&(d.n=-1),m(o,s)):d.n=s:d.v=s);try{if(c=2,r){if(o||(i="next"),n=r[i]){if(!(n=n.call(r,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,o<2&&(o=0)}else 1===o&&(n=r.return)&&n.call(r),o<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),o=1);r=t}else if((n=(p=d.n<0)?s:e.call(a,d))!==l)break}catch(e){r=t,o=1,s=e}finally{c=1}}return{value:n,done:p}}}(e,r,o),!0),c}var l={};function u(){}function p(){}function d(){}n=Object.getPrototypeOf;var m=[][o]?n(n([][o]())):(a(n={},o,function(){return this}),n),f=d.prototype=u.prototype=Object.create(m);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,a(e,s,"GeneratorFunction")),e.prototype=Object.create(f),e}return p.prototype=d,a(f,"constructor",d),a(d,"constructor",p),p.displayName="GeneratorFunction",a(d,s,"GeneratorFunction"),a(f),a(f,s,"Generator"),a(f,o,function(){return this}),a(f,"toString",function(){return"[object Generator]"}),(e.exports=i=function(){return{w:c,m:h}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={id:e,loaded:!1,exports:{}};return n[e](r,r.exports,i),r.loaded=!0,r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";i.r(r),i.d(r,{acl:()=>$i,aclControl:()=>Qi,create:()=>Ki,createTypes:()=>d,dom:()=>cu,icons:()=>Re.Pt,infiniteMessageArea:()=>fl,initFooter:()=>iu,initHeader:()=>Gl,language:()=>n,log:()=>e,login:()=>o,matrix:()=>Xi,media:()=>ar,messageArea:()=>Er,ns:()=>v,pad:()=>l,participation:()=>c,preferences:()=>u,style:()=>_e,table:()=>_l,tabs:()=>p,utils:()=>t,widgets:()=>s});var e={};i.r(e),i.d(e,{LogLevel:()=>T,alert:()=>z,clear:()=>q,debug:()=>F,dumpHTML:()=>G,error:()=>U,escapeForXML:()=>J,info:()=>P,logAscending:()=>V,logDescending:()=>W,msg:()=>O,setInternals:()=>$,setLevel:()=>H,success:()=>M,warn:()=>D});var t={};i.r(t),i.d(t,{AJARImage:()=>Ke,RDFComparePredicateObject:()=>rt,RDFComparePredicateSubject:()=>ot,addLoadEvent:()=>$e,ancestor:()=>Ge,beep:()=>De,clearVariableNames:()=>Oe,emptyNode:()=>qe,escapeForXML:()=>tt,findPos:()=>Qe,genUuid:()=>Pe,getAbout:()=>Ve,getEyeFocus:()=>Ze,getTarget:()=>He,getTerm:()=>We,hashColor:()=>Fe,include:()=>Je,label:()=>Z,labelForXML:()=>nt,labelWithOntology:()=>et,newVariableName:()=>Ie,ontologyLabel:()=>Xe,predParentOf:()=>st,predicateLabel:()=>it,predicateLabelForXML:()=>at,shortName:()=>Ye,stackString:()=>ze,syncTableToArray:()=>Ue,syncTableToArrayReOrdered:()=>Me});var n={};i.r(n),i.d(n,{addDefaults:()=>Cn,defaultPreferredLanguages:()=>kn,filterByLanguage:()=>Sn,getPreferredLanguages:()=>_n,getPreferredLanguagesFor:()=>En,languageCodeURIBase:()=>wn});var a={};i.r(a),i.d(a,{AUTOCOMPLETE_LIMIT:()=>Tn,ESCOResultToBindings:()=>Hn,bindingToTerm:()=>zn,dbPediaTypeMap:()=>Dn,dbpediaParameters:()=>On,escoParameters:()=>In,fetcherOptionsJsonPublicData:()=>Bn,getDbpediaDetails:()=>sa,getWikidataDetails:()=>ta,getWikidataDetailsOld:()=>aa,getWikidataLocation:()=>ra,instituteDetailsWikidataQuery:()=>Nn,loadFromBindings:()=>qn,loadPublicDataThing:()=>Xn,queryESCODataByName:()=>Gn,queryPublicDataByName:()=>Jn,queryPublicDataConstruct:()=>Kn,queryPublicDataSelect:()=>Qn,variableNameToPredicateMap:()=>Mn,wikidataClasses:()=>Rn,wikidataIncomingClassMap:()=>Un,wikidataOutgoingClassMap:()=>Fn,wikidataParameters:()=>Pn});var o={};i.r(o),i.d(o,{ensureLoadedPreferences:()=>li,ensureLoadedProfile:()=>pi,ensureLoggedIn:()=>ci,filterAvailablePanes:()=>ji,findAppInstances:()=>mi,getUserRoles:()=>Ai,loginStatusBox:()=>ki,newAppInstance:()=>Ei,registrationControl:()=>vi,registrationList:()=>gi,renderScopeHeadingRow:()=>bi,renderSignInPopup:()=>wi,scopeLabel:()=>hi,selectWorkspace:()=>Ci});var s={};i.r(s),i.d(s,{Group:()=>xr,GroupBuilder:()=>br,GroupPicker:()=>vr,PeoplePicker:()=>hr,Person:()=>gr,addStyleSheet:()=>en,allClassURIs:()=>Jt,appendForm:()=>Ia,askName:()=>Ft,attachmentList:()=>Gt,basicField:()=>yn,buildCheckboxForm:()=>Ja,button:()=>It,cancelButton:()=>Ot,clearElement:()=>bt,complain:()=>xt,continueButton:()=>Dt,createLinkDiv:()=>zt,createLinkForURI:()=>mt,createNameDiv:()=>Mt,defaultAnnotationStore:()=>Wt,deleteButtonWithCheck:()=>Bt,editFormButton:()=>Ba,errorMessageBlock:()=>ct,extractLogURI:()=>gt,faviconOrDefault:()=>Nt,field:()=>dn,fieldFunction:()=>fn,fieldLabel:()=>bn,fieldParams:()=>un,fieldStore:()=>gn,fileUploadButtonDiv:()=>rn,findClosest:()=>Da,findImage:()=>Tt,findImageFromURI:()=>St,formatDateTime:()=>wt,formsFor:()=>Fa,iconForClass:()=>_t,imagesOf:()=>At,index:()=>Xt,isAudio:()=>tn,isImage:()=>an,isVideo:()=>nn,linkButton:()=>Qt,linkIcon:()=>dt,makeDescription:()=>qa,makeDraggable:()=>Se,makeDropTarget:()=>je,makeSelectForCategory:()=>Va,makeSelectForChoice:()=>Qa,makeSelectForClassifierOptions:()=>Ha,makeSelectForNestedCategory:()=>Wa,makeSelectForOptions:()=>Ga,mostSpecificClassURI:()=>mn,newButton:()=>Ma,newThing:()=>$a,openHrefInOutlineMode:()=>Vt,personTR:()=>Pt,promptForNew:()=>za,propertiesForClass:()=>Oa,propertyTriage:()=>$t,publicData:()=>a,refreshTree:()=>Ht,removeButton:()=>Zt,renderAsDiv:()=>qt,renderAsRow:()=>Ut,renderAutoComplete:()=>da,renderAutocompleteControl:()=>ga,renderNameValuePair:()=>xn,selectorPanel:()=>Kt,selectorPanelRefresh:()=>Yt,setImage:()=>Rt,setName:()=>Et,setVisible:()=>pa,shortDate:()=>yt,shortTime:()=>Ct,sortByLabel:()=>Ua,sortBySequence:()=>Pa,timestamp:()=>kt,uploadFiles:()=>Te});var c={};i.r(c),i.d(c,{manageParticipation:()=>yc,participationObject:()=>bc,recordParticipation:()=>gc,renderParticipants:()=>xc});var l={};i.r(l),i.d(l,{getChunks:()=>Ac,lightColorHash:()=>Cc,manageParticipation:()=>yc,notepad:()=>Ec,notepadToHTML:()=>jc,participationObject:()=>bc,recordParticipation:()=>gc,renderParticipants:()=>xc,xmlEncode:()=>_c});var u={};i.r(u),i.d(u,{get:()=>bl,getPreferencesForClass:()=>El,recordPersonalDefaults:()=>wl,recordSharedPreferences:()=>yl,renderPreferencesForm:()=>kl,set:()=>gl,value:()=>xl});var p={};i.r(p),i.d(p,{TabWidgetElement:()=>Il,tabWidget:()=>Dl});var d={};i.r(d);var m=i(386),f=i.n(m),h=i(264);const v=f()(h);function x(e,t,n,a,i,r,o){try{var s=e[r](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,i)}function b(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var r=e.apply(t,n);function o(e){x(r,a,i,o,s,"next",e)}function s(e){x(r,a,i,o,s,"throw",e)}o(void 0)})}}var g=i(756),y=i.n(g),w=i(663),k=1,C=2,E=4,A=8,_=16,j=32,S=63,T=function(e){return e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Message=4]="Message",e[e.Success=8]="Success",e[e.Info=16]="Info",e[e.Debug=32]="Debug",e[e.All=63]="All",e}({}),L=k+C+E,R=!1,N=document,B=window;function I(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mesg";if(L&(arguments.length>1&&void 0!==arguments[1]?arguments[1]:E))if(void 0!==N){var n=N.getElementById("status");if(!n)return;var a=N.createElement("span");a.setAttribute("class",t);var i=new Date;a.innerHTML="".concat(i.getHours(),":").concat(i.getMinutes(),":").concat(i.getSeconds()," [").concat(t,"] ").concat(J(e),"<br/>"),R?n.insertBefore(a,n.firstChild):n.appendChild(a)}else"undefined"!=typeof console&&console.log(e)}function O(e){I(e)}function D(e){I(e,C,"warn")}function F(e){I(e,j,"dbug")}function P(e){I(e,_,"info")}function U(e){I(e,k,"eror")}function M(e){I(e,A,"good")}function z(e){B&&void 0!==B.alert?B.alert(e):D(e)}function q(){var e,t=null===(e=N)||void 0===e?void 0:e.getElementById("status");t&&(t.innerHTML="")}function H(e){L=S,F("Log level is now "+e),L=e}function G(){var e;if(N){var t=L;L=S,F((null===(e=N)||void 0===e||null===(e=e.body)||void 0===e?void 0:e.innerHTML)||""),L=t}}function V(){R=!0}function W(){R=!1}function J(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function $(e,t){B=e,N=t}var Q={log:e,ns:v,rdf:h};function Z(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(e){return t?e.slice(0,1).toUpperCase()+e.slice(1):e}function a(e){var t="";"/"===e.slice(-1)&&(e=e.slice(0,-1));for(var a=0;a<e.length;a++)"_"!==e[a]&&"-"!==e[a]?(t+=e[a],a+1<e.length&&e[a].toUpperCase()!==e[a]&&e[a+1].toLowerCase()!==e[a+1]&&(t+=" ")):t+=" ";return"has "===t.slice(0,4)&&(t=t.slice(4)),n(t)}var i=function(e){return w.store.any(e,Q.ns.ui("label"))||w.store.any(e,Q.ns.link("message"))||w.store.any(e,Q.ns.vcard("fn"))||w.store.any(e,Q.ns.foaf("name"))||w.store.any(e,Q.ns.dct("title"))||w.store.any(e,Q.ns.dc("title"))||w.store.any(e,Q.ns.rss("title"))||w.store.any(e,Q.ns.contact("fullName"))||w.store.any(e,w.store.sym("http://www.w3.org/2001/04/roadmap/org#name"))||w.store.any(e,Q.ns.cal("summary"))||w.store.any(e,Q.ns.foaf("nick"))||w.store.any(e,Q.ns.as("name"))||w.store.any(e,Q.ns.schema("name"))||w.store.any(e,Q.ns.rdfs("label"))||w.store.any(e,w.store.sym("http://www.w3.org/2004/02/skos/core#prefLabel"))}(e);if(i)return n(i.value);if("BlankNode"===e.termType)return"...";if("Collection"===e.termType)return"("+e.elements.length+")";var r=e.uri;if(void 0===r)return e.toString();try{r=r.split("/").map(decodeURIComponent).join("/")}catch(e){for(var o=r.length-3;o>0;o--)for(var s="0123456789abcefABCDEF";"%"===r[o]&&s.indexOf(r[o+1])>=0&&s.indexOf(r[o+2])>=0;)r=r.slice(0,o)+String.fromCharCode(parseInt(r.slice(o+1,o+3),16))+r.slice(o+3)}r=K(r,"/profile/card#me"),r=K(r,"#this");var c=(r=K(r,"#me")).indexOf("#");if(c>=0)return a(r.slice(c+1));var l=r.lastIndexOf("/",r.length-2);return l>=0&&l<e.uri.length?a(r.slice(l+1)):n(decodeURIComponent(e.uri))}function K(e,t){var n=-1*t.length;return e.slice(n)===t?e.slice(0,n):e}var Y=i(423),X=w.solidLogicSingleton.store;function ee(e,t,n,a){var i=v.acl,r="/"===e.uri.slice(-1),o=X.each(void 0,i("default"),n,a).concat(X.each(void 0,i("defaultForNew"),n,a)).reduce(function(t,n){return t.concat(X.statementsMatching(n,v.rdf("type"),i("Authorization"),a)).concat(X.statementsMatching(n,i("agent"),void 0,a)).concat(X.statementsMatching(n,i("agentClass"),void 0,a)).concat(X.statementsMatching(n,i("agentGroup"),void 0,a)).concat(X.statementsMatching(n,i("origin"),void 0,a)).concat(X.statementsMatching(n,i("originClass"),void 0,a)).concat(X.statementsMatching(n,i("mode"),void 0,a)).concat((0,h.st)(n,i("accessTo"),e,a)).concat(r?(0,h.st)(n,i("default"),e,a):[])},[]),s=(0,h.graph)();return o.forEach(function(e){return s.add(c(e.subject),c(e.predicate),c(e.object),(0,h.sym)(t.uri))}),s;function c(e){var n=a.uri.length;return(0,h.sym)(e.uri.slice(0,n)===a.uri?t.uri+e.uri.slice(n):e.uri)}}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:X,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?function(t,n){return t.each(void 0,n.acl("default"),e).concat(t.each(void 0,n.acl("defaultForNew"),e))}(n,v):n.each(void 0,v.acl("accessTo"),e),i=v.acl,r={agent:{},agentClass:{},agentGroup:{},origin:{},originClass:{}};return Object.keys(r).forEach(function(e){a.forEach(function(t){n.each(t,i("mode")).forEach(function(a){n.each(t,i(e)).forEach(function(n){r[e][n.uri]=r[e][n.uri]||{},r[e][n.uri][a.uri]=t})})})}),r}function ne(e,t){var n=function(e,t){for(var n in{agent:!0,agentClass:!0,agentGroup:!0,origin:!0,originClass:!0})if(e[n])for(var a in e[n])for(var i in e[n][a])if(!t[n][a]||!t[n][a][i])return!1;return!0};return n(e,t)&&n(t,e)}function ae(e){for(var t,n,a=e[0],i=function(i){["agent","agentClass","agentGroup","origin","originClass"].forEach(function(r){if((t=e[i])[r])for(n in t[r])for(var o in t[r][n])a[r][n]||(a[r][n]=[]),a[r][n][o]=!0})},r=1;r<e.length;r++)i(r);return a}function ie(e,t){var n=[],a=function(e){e.length?de(e.shift().doc(),function(i,r,o,s,c,l){var u=!r;if(!i||!c||!l)return t(i,s);var p=u?te(c,l):te(o,s);n.push(p),a(e.slice(1))}):t(!0,ae(n))};a(e)}function re(e){var t={};return["agent","agentClass","agentGroup","origin","originClass"].forEach(function(n){for(var a in e[n]){var i=[];for(var r in e[n][a])i.push(r);i.sort();var o=i.join("\n");t[o]||(t[o]=[]),t[o].push([n,a])}}),t}function oe(e,t,n,a){return se(e,t,re(n),a)}function se(e,t,n,a,i,r){var o=v.acl;for(var s in n){var c=n[s];if(c.length){var l=s.split("\n"),u=l.map(function(e){return e.split("#")[1]}).join("");r&&!i&&(u+="Default");var p=e.sym(a.uri+"#"+u);e.add(p,v.rdf("type"),o("Authorization"),a),i&&e.add(p,o("accessTo"),t,a),r&&e.add(p,o("default"),t,a);for(var d=0;d<l.length;d++)e.add(p,o("mode"),e.sym(l[d]),a);for(var m=0;m<c.length;m++){var f=c[m][0],h=c[m][1];e.add(p,o(f),e.sym(h),a)}}}}function ce(e){var t="";for(var n in e){t+=n.split("\n").map(function(e){return e.split("#")[1][0]}).join("")+":";for(var a=e[n],i=0;i<a.length;i++){var r=a[i][0],o=(0,h.sym)(a[i][1]);t+="agent"===r?"@":"",t+=o.sameTerm(v.foaf("Agent"))?"*":Z(o),i<a.length-1&&(t+=",")}t+=";"}return"{"+t.slice(0,-1)+"}"}function le(e,t,n,a,i){return ue(e,t,re(n),a,i)}function ue(e,t,n,a,i){var r,o=(0,h.graph)();se(o,t,n,a,!0),null===(r=e.updater)||void 0===r||r.put(a,o.statementsMatching(void 0,void 0,void 0,a),"text/turtle",function(r,o,s){var c;o?(null===(c=e.fetcher)||void 0===c||c.unload(a),se(e,t,n,a,!0),e.fetcher.requested[a.uri]="done",i(o)):i(o,s)})}function pe(e,t,n,a){n=n||Y.Rm;var i=e.doc();de(i,function(r,o,s,c,l,u){if(!r||!l||!u)return a(!1,c);var p=o?te(s,c):te(l,u);ie(t,function(t,r){if(!t)return a(!1,r);ne(r,p)?n("Nice - same ACL. no change "+Z(e)+" "+i):(n("Group ACLs differ for "+Z(e)+" "+i),le(X,s,r,c,a))})})}function de(e,t){me(e,function(n,a,i,r){var o=v.acl;if(!n)return t(!1,!1,a,r);var s=function(n){"/"===n.slice(-1)&&(n=n.slice(0,-1));var a=n.lastIndexOf("/");if(n.indexOf("/",n.indexOf("//")+2)>a)return t(!1,!0,404,"Found no ACL resource");n=n.slice(0,a+1);var r=(0,h.sym)(n);me(r,function(a,c,l){if(!a)return t(!1,!0,c,"( No ACL pointer ".concat(n," ").concat(c,")").concat(l));if(403===c)return t(!1,!0,c,"( default ACL file FORBIDDEN. Stop.".concat(n,")"));if(404===c)return s(n);if(200!==c)return t(!1,!0,c,"Error status '".concat(c,"' searching for default for ").concat(r));if(!X.each(void 0,o("default"),X.sym(n),l).concat(X.each(void 0,o("defaultForNew"),X.sym(n),l)).length)return s(n);var u=X.sym(n);return t(!0,!1,e,i,u,l)})};return n?404!==a?403===a?t(!1,!1,a,"(Sharing not available to you)".concat(r)):200!==a?t(!1,!1,a,"Error ".concat(a," accessing Access Control information for ").concat(e,": ").concat(r)):t(!0,!0,e,i):void s(e.uri):t(!1,!1,a,"Error accessing Access Control information for ".concat(e,") ").concat(r))})}function me(e,t){if(!X.fetcher)throw new Error("kb has no fetcher");X.fetcher.nowOrWhenFetched(e,void 0,function(n,a){if(!n)return t(n,"Can't get headers to find ACL for ".concat(e,": ").concat(a));var i=X.any(e,w.ACL_LINK);if(i){if(!X.fetcher)throw new Error("kb has no fetcher");if(X.fetcher.nonexistent[i.value])return t(!0,404,i,"ACL file ".concat(i," does not exist."));X.fetcher.nowOrWhenFetched(i,void 0,function(e,n,a){e?t(!0,200,i):t(!0,a.status,i,"Can't read Access Control File ".concat(i,": ").concat(n))})}else t(!1,900,"No Link rel=ACL header for ".concat(e))})}function fe(e){return he.apply(this,arguments)}function he(){return(he=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,n){return de((0,h.sym)(t),function(a,i,r,o,s){return a?e(i?r:s):n(new Error("Error loading ".concat(t)))})}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e){return xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xe(e)}function be(e){var t=function(e,t){if("object"!=xe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=xe(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xe(t)?t:t+""}function ge(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,be(a.key),a)}}function ye(e,t,n){return t&&ge(e.prototype,t),n&&ge(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ke(e,t){if(e){if("string"==typeof e)return we(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?we(e,t):void 0}}function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,s=[],c=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(e,t)||ke(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ee=i(49);const Ae={highlightColor:"#7C4DFF",formBorderColor:"#888888",formHeadingColor:"#888888",lowProfileLinkColor:"#3B5998",formFieldNameBoxWidth:"8em",mediaModuleCanvasWidth:"640",mediaModuleCanvasHeight:"480",textInputSize:20,tabBorderRadius:"0.2em",textInputBackgroundColor:"#eef",textInputBackgroundColorUneditable:"#fff",textInputColor:"#000",textInputColorPending:"#888",defaultErrorBackgroundColor:"#fee",participationDefaultBackground:"white",basicMaxLength:"4096"};var _e={checkboxStyle:"color: black; font-size: 100%; padding-left: 0.5 em; padding-right: 0.5 em;",checkboxInputStyle:"font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; border-radius:0.2em; margin: 0.1em;",fieldLabelStyle:"color: #3B5998; text-decoration: none;",formSelectStyle:"background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;",textInputStyle:"background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;",textInputStyleUneditable:"background-color: white; padding: 0.5em; border: .05em solid white; border-radius:0.2em; font-size: 100%; margin:0.4em;",buttonStyle:"background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;",commentStyle:"padding: 0.7em; border: none; font-size: 100%; white-space: pre-wrap;",iconStyle:"width: 3em; height: 3em; margin: 0.1em; border-radius: 1em;",smallButtonStyle:"margin: 0.2em; width: 1em; height:1em;",classIconStyle:"width: 3em; height: 3em; margin: 0.1em; border-radius: 0.2em; border: 0.1em solid green; padding: 0.2em; background-color: #efe;",confirmPopupStyle:"padding: 0.7em; border-radius: 0.2em; border: 0.1em solid orange; background-color: white; box-shadow: 0.5em 0.9em #888;",messageBodyStyle:"white-space: pre-wrap; width: 99%; font-size:100%; border: 0.07em solid #eee; border-radius:0.2em; padding: .3em 0.5em; margin: 0.1em;",pendingeditModifier:"color: #bbb;",personaBarStyle:"width: 100%; height: 4em; background-color: #eee; vertical-align: middle;",searchInputStyle:"border: 0.1em solid #444; border-radius: 0.2em; width: 100%; font-size: 100%; padding: 0.1em 0.6em; margin 0.2em;",autocompleteRowStyle:"border: 0.2em solid straw;",signInAndUpButtonStyle:"padding: 1em; border-radius:0.2em; font-size: 100%;",headerBannerLoginInput:"margin: 0.75em 0 0.75em 0.5em !important; padding: 0.5em !important;",signUpBackground:"background-color: #eef;",signInBackground:"background-color: #efe;",heading1Style:"font-size: 180%; font-weight: bold; color: #888888; padding: 0.5em; margin: 0.7em 0.0m;",heading2Style:"font-size: 130%; font-weight: bold; color: #888888; padding: 0.4em; margin: 0.7em 0.0em;",heading3Style:"font-size: 120%; font-weight: bold; color: #888888; padding: 0.3em; margin: 0.7em 0.0em;",heading4Style:"font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;",formHeadingStyle:"font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;",formTextInput:"font-size: 100%; margin: 0.1em; padding: 0.1em;",formGroupStyle:["padding-left: 0em; border: 0.0em solid ".concat(Ae.formBorderColor,"; border-radius: 0.2em;"),"padding-left: 2em; border: 0.05em solid ".concat(Ae.formBorderColor,"; border-radius: 0.2em;"),"padding-left: 2em; border: 0.1em solid ".concat(Ae.formBorderColor,"; border-radius: 0.2em;"),"padding-left: 2em; border: 0.2em solid ".concat(Ae.formBorderColor,"; border-radius: 0.2em;")],formFieldLabelStyle:"color: ".concat(Ae.lowProfileLinkColor,"; text-decoration: none;"),formFieldNameBoxStyle:"padding: 0.3em; vertical-align: middle; width:".concat(Ae.formFieldNameBoxWidth,";"),multilineTextInputStyle:"font-size:100%; white-space: pre-wrap; background-color: #eef; border: 0.07em solid gray; padding: 1em 0.5em; margin: 1em 1em;",renderAsDivStyle:"display: flex; align-items: center; justify-content: space-between; height: 2.5em; padding: 1em;",imageDivStyle:"width:2.5em; padding:0.5em; height: 2.5em;",linkDivStyle:"width:2em; padding:0.5em; height: 4em;",aclControlBoxContainer:"margin: 1em;",aclControlBoxHeader:"font-size: 120%; margin: 0 0 1rem;",aclControlBoxStatus:"display: none; margin: 1rem 0;",aclControlBoxStatusRevealed:"display: block;",aclGroupContent:"maxWidth: 650;",accessGroupList:"display: grid; grid-template-columns: 1fr; margin: 1em; width: 100%;",accessGroupListItem:"display: grid; grid-template-columns: 100px auto 30%;",defaultsController:"display: flex;",defaultsControllerNotice:"color: #888; flexGrow: 1; fontSize: 80%;",bigButton:"background-color: white; border: 0.1em solid #888; border-radius: 0.3em; max-width: 50%; padding-bottom: 1em; padding-top: 1em;",group:"color: #888;",group1:"color: green;",group2:"color: #cc0;",group3:"color: orange;",group5:"color: red;",group9:"color: blue;",group13:"color: purple;",trustedAppAddApplicationsTable:"background-color: #eee;",trustedAppCancelButton:"float: right;",trustedAppControllerI:"border-color: orange; border-radius: 1em; border-width: 0.1em;",temporaryStatusInit:"background: green;",temporaryStatusEnd:"background: transparent; transition: background 5s linear;",headerUserMenuLink:"background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none;",headerUserMenuLinkHover:"background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%);",headerUserMenuTrigger:"background: none; border: 0; cursor: pointer; width: 60px; height: 60px;",headerUserMenuTriggerImg:"border-radius: 50%; height: 56px; width: 28px !important;",headerUserMenuButton:"background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%;",headerUserMenuButtonHover:"background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%);",headerUserMenuList:"list-style: none; margin: 0; padding: 0;",headerUserMenuListDisplay:"list-style: none; margin: 0; padding: 0; display:true;",headerUserMenuNavigationMenu:"background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: true;",headerUserMenuNavigationMenuNotDisplayed:"background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: none;",headerUserMenuListItem:"border-bottom: solid 1px #000000;",headerUserMenuPhoto:"border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: cover; height: 50px; width: 50px;",headerBanner:"box-shadow: 0px 1px 4px #000000; display: flex; justify-content: space-between; padding: 0 1.5em; margin-bottom: 4px;",headerBannerLink:"display: block;",headerBannerRightMenu:"display: flex;",headerBannerLogin:"margin-left: auto;",allChildrenVisible:"display:true;",headerBannerUserMenu:"border-left: solid 1px #000000; margin-left: auto;",headerBannerHelpMenu:"border-left: solid 1px #000000; margin-left: auto;",headerBannerIcon:"background-size: 65px 60px !important; height: 60px !important; width: 65px !important;",footer:"border-top: solid 1px $divider-color; font-size: 0.9em; padding: 0.5em 1.5em;",primaryButton:"background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;",primaryButtonHover:"background-color: #9f7dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;",primaryButtonNoBorder:"background-color: #ffffff; color: #7c4dff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;",primaryButtonNoBorderHover:"background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;",secondaryButton:"background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;",secondaryButtonHover:"background-color: #37cde6; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;",secondaryButtonNoBorder:"background-color: #ffffff; color: #01c9ea; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;",secondaryButtonNoBorderHover:"background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;",controlStyle:"border-radius: 0.5em; margin: 0.8em; width:".concat(Ae.mediaModuleCanvasWidth,"; height:").concat(Ae.mediaModuleCanvasHeight,";"),dragEvent:"background-color: #ccc; border: 0.25em dashed black; border-radius: 0.3em;",dropEvent:"background-color: white; border: 0em solid black;",restoreStyle:"background-color: white;",errorCancelButton:"width: 2em; height: 2em; align: right;",errorMessageBlockStyle:"margin: 0.1em; padding: 0.5em; border: 0.05em solid gray; color:black;",notepadStyle:"padding: 1em; overflow: auto; resize: horizontal; min-width: 40em;",upstreamStatus:"width: 50%;",downstreamStatus:"width: 50%;",baseStyle:"font-size: 100%; font-family: monospace; width: 100%; border: none; white-space: pre-wrap;",headingCore:"font-family: sans-serif; font-weight: bold; border: none;",headingStyle:["font-size: 110%; padding-top: 0.5em; padding-bottom: 0.5em; width: 100%;","font-size: 120%; padding-top: 1em; padding-bottom: 1em; width: 100%;","font-size: 150%; padding-top: 1em; padding-bottom: 1em; width: 100%;"],participantsStyle:"margin: 0.8em;",participantsBlock:"height: 1.5em; width: 1.5em; margin: 0.3em; border 0.01em solid #888;",personTableTD:"vertical-align: middle;",tabsNavElement:"margin: 0;",tabsRootElement:"display: flex; height: 100%; width: 100%;",tabsMainElement:"margin: 0; width:100%; height: 100%;",tabContainer:"list-style-type: none; display: flex; height: 100%; width: 100%; margin: 0; padding: 0;",makeNewSlot:"background: none; border: none; font: inherit; cursor: pointer;",ellipsis:"position: absolute; right: 0; bottom: 0; width: 20%; background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit;"};function je(e,t,n){var a=function(e){e.preventDefault(),e.dataTransfer.dropEffect="copy"},i=function(e){Y.Rm("dragenter event dropEffect: "+e.dataTransfer.dropEffect),this.localStyle&&(this.savedStyle||(this.savedStyle=_e.dragEvent)),e.dataTransfer.dropEffect="link",Y.Rm("dragenter event dropEffect 2: "+e.dataTransfer.dropEffect)},r=function(e){Y.Rm("dragleave event dropEffect: "+e.dataTransfer.dropEffect),this.savedStyle?this.localStyle=this.savedStyle:this.localStyle=_e.dropEvent},o=function(e){e.preventDefault&&e.preventDefault(),Y.Rm("Drop event. dropEffect: "+e.dataTransfer.dropEffect),Y.Rm("Drop event. types: "+(e.dataTransfer.types?e.dataTransfer.types.join(", "):"NOPE"));var a,i=null;if(e.dataTransfer.types){for(var r=0;r<e.dataTransfer.types.length;r++){var o=e.dataTransfer.types[r];if("text/uri-list"===o)i=e.dataTransfer.getData(o).split("\n"),Y.Rm("Dropped text/uri-list: "+i);else if("text/plain"===o)a=e.dataTransfer.getData(o);else if("Files"===o&&n){for(var s=e.dataTransfer.files,c=0;s[c];c++){var l=s[c];Y.Rm("Filename: "+l.name+", type: "+(l.type||"n/a")+" size: "+l.size+" bytes, last modified: "+(l.lastModifiedDate?l.lastModifiedDate.toLocaleDateString():"n/a"))}n(s)}}null===i&&a&&"http"===a.slice(0,4)&&(i=a,Y.Rm("Waring: Poor man's drop: using text for URI"))}else i=[e.dataTransfer.getData("Text")],Y.Rm("WARNING non-standard drop event: "+i[0]);return Y.Rm("Dropped URI list (2): "+i),i&&t(i),this.localStyle=_e.restoreStyle,!1};!function(e){e||Y.Rm("@@@ addTargetListeners: ele "+e),e.addEventListener("dragover",a),e.addEventListener("dragenter",i),e.addEventListener("dragleave",r),e.addEventListener("drop",o)}(e)}function Se(e,t){e.setAttribute("draggable","true"),e.addEventListener("dragstart",function(n){e.style.fontWeight="bold",n.dataTransfer.setData("text/uri-list",t.uri),n.dataTransfer.setData("text/plain",t.uri),n.dataTransfer.setData("text/html",e.outerHTML),Y.Rm("Dragstart: "+e+" -> "+t+"de: "+n.dataTransfer.dropEffect)},!1),e.addEventListener("drag",function(e){e.preventDefault(),e.stopPropagation()},!1),e.addEventListener("dragend",function(n){e.style.fontWeight="normal",Y.Rm("Dragend dropeffect: "+n.dataTransfer.dropEffect),Y.Rm("Dragend: "+e+" -> "+t)},!1)}function Te(e,t,n,a,i){for(var r=0;t[r];r++){var o=t[r];Y.Rm(" dropped: Filename: "+o.name+", type: "+(o.type||"n/a")+" size: "+o.size+" bytes, last modified: "+(o.lastModifiedDate?o.lastModifiedDate.toLocaleDateString():"n/a"));var s=new FileReader;s.onload=function(t){return function(r){var o=r.target.result,s="";Y.Rm(" File read byteLength : "+o.byteLength);var c=t.type;if(t.type&&""!==t.type){var l=Ee.extension(t.type);l&&"false"!==l&&!t.name.endsWith("."+l)&&t.type!==Ee.lookup(t.name)&&(s="_."+l)}else if(!(c=Ee.lookup(t.name))){var u="Filename needs to have an extension which gives a type we know: "+t.name;throw Y.Rm(u),alert(u),new Error(u)}var p=t.type.startsWith("image/")&&a||n,d=p+(p.endsWith("/")?"":"/")+encodeURIComponent(t.name)+s;e.webOperation("PUT",d,{data:o,contentType:c}).then(function(e){Y.Rm(" Upload: put OK: "+d),i(t,d)},function(e){var t=" Upload: FAIL "+d+", Error: "+e;throw Y.Rm(t),alert(t),new Error(t)})}}(o),s.readAsArrayBuffer(o)}}_e.setStyle=function(e,t){e.style=_e[t]};var Le,Re=i(378),Ne={log:e,ns:v,rdf:h},Be=0;function Ie(){return"v"+Be++}function Oe(){Be=0}function De(){if(Le){var e=new Le;return function(t,n,a,i){t=+(t||.3),a=a||"sine","function"!=typeof i&&(i=function(){});var r=e.createOscillator();r.type=a,r.frequency.value=n||256,r.connect(e.destination),r.start(0),r.stop(t)}}}function Fe(e){e=e.uri||e;var t;return"#"+(16777215&(t=e,t.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0))|12632256).toString(16)}function Pe(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function Ue(e,t,n){var a,i,r;for(r=0;r<e.children.length;r++)(i=e.children[r]).trashMe=!0;for(var o=0;o<t.length;o++){var s=t[o];for(a=!1,r=0;r<e.children.length;r++)if((i=e.children[r]).subject&&i.subject.sameTerm(s)){i.trashMe=!1,a=!0;break}if(!a){var c=n(s);if(o>=e.children.length)e.appendChild(c);else{var l=e.children[o];e.insertBefore(c,l)}c.subject=s}}for(r=0;r<e.children.length;r++)(i=e.children[r]).trashMe&&e.removeChild(i)}function Me(e,t,n){for(var a={},i=0;i<e.children.length;i++){var r=e.children[i];a[r.subject.toNT()]=r}for(var o=0;o<t.length;o++){var s=t[o];if(o>=e.children.length){var c=n(s);c.subject=s,e.appendChild(c)}else{var l=e.children[o];if(l.subject.sameTerm(s));else{var u=a[s.toNT()];if(u)e.removeChild(u),e.insertBefore(u,l);else{var p=n(s);l.before(p),p.subject=s}}}}for(;e.children.length>t.length;)e.removeChild(e.children[e.children.length-1])}function ze(e){var t,n=e+"\n";if(!e.stack)return n+"No stack available.\n";var a=e.stack.toString().split("\n"),i=[];for(t=0;t<a.length;t++){var r=a[t];if(r.indexOf("ecmaunit.js")>-1)break;"("===r.charAt(0)&&(r="function"+r);var o=r.split("@");i.push(o)}for(t=0;t<i.length;t++)n+=" "+i[t][1]+"\n "+i[t][0];return n}function qe(e){for(var t=e.childNodes,n=t.length-1;n>=0;n--)e.removeChild(t[n]);return e}function He(e){var t;return(e=e||window.event).target?t=e.target:e.srcElement&&(t=e.srcElement),3===t.nodeType&&(t=t.parentNode),t}function Ge(e,t){var n;for(n=e;n;n=n.parentNode)try{if(n.tagName===t)return n}catch(e){return}}function Ve(e,t){var n,a;for(n=t;n&&1===n.nodeType;n=n.parentNode)if(a=n.getAttribute("about"))return e.fromNT(a);Ne.log.debug("getAbout: No about found")}function We(e){var t=e.parentNode,n=t?t.AJAR_statement:void 0;switch(n?e.className:""){case"pred":case"pred selected":return n.predicate;case"obj":case"obj selected":return t.AJAR_inverse?n.subject:n.object;case"":case"selected":return Ve(w.store,e);case"undetermined selected":return e.nextSibling?n.predicate:t.AJAR_inverse?n.subject:n.object}}function Je(e,t){var n=e.createElement("script");return n.setAttribute("type","text/javascript"),n.setAttribute("src",t),n}function $e(e){var t=window.onload;"function"!=typeof window.onload?window.onload=e:window.onload=function(){t(),e()}}function Qe(e){var t=e.ownerDocument.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return[n.left-t.left,n.top-t.top]}function Ze(e,t,n,a){a||(a=window);var i=Qe(e)[1],r=window.SolidAppContext||{},o=i-(r&&r.scroll||52)-a.scrollY;if(t)return n?void a.scrollBy(0,i+e.clientHeight-(a.scrollY+a.innerHeight)):void a.scrollBy(0,o);var s=a.setInterval(function(){a.scrollBy(0,o/10),10===++c&&a.clearInterval(s)},50),c=0}function Ke(e,t,n,a){a||(a=document);var i=a.createElement("img");return i.setAttribute("src",e),i.addEventListener("copy",function(e){e.clipboardData.setData("text/plain",""),e.clipboardData.setData("text/html",""),e.preventDefault()}),void 0!==n&&i.setAttribute("title",n),i}function Ye(e){var t=e;"#/".indexOf(t[t.length-1])>=0&&(t=t.slice(0,-1));var n,a=[];for(var i in this.prefixes)a[this.prefixes[i]]=i;var r,o=function(e){return"ns"!==e&&(n=e,!0)},s=t.lastIndexOf("#");for(s>=0&&(t=t.slice(s-1));;){var c=t.lastIndexOf("/");for(c>=0&&(t=t.slice(c+1)),r=0;r<t.length&&this.prefixchars.indexOf(t[r]);)r++;if((t=t.slice(0,r)).length<6&&o(t))return n;if(o(t.slice(0,3)))return n;if(o(t.slice(0,2)))return n;if(o(t.slice(0,4)))return n;if(o(t.slice(0,1)))return n;if(o(t.slice(0,5)))return n;for(r=0;;r++)if(o(t.slice(0,3)+r))return n}}function Xe(e){if(void 0===e.uri)return"??";var t,n=e.uri,a=[],i=n.lastIndexOf("#");if(i>=0)n=n.slice(0,i+1);else{if(!((i=n.lastIndexOf("/"))>=0))return e.uri+"?!";n=n.slice(0,i+1)}for(var r in Ne.ns)a[Ne.ns[r]]=r;try{return a[n]}catch(e){}for(n=n.slice(0,-1);n;){if(!((i=n.lastIndexOf("/"))>=0))return e.uri+"!?";if(t=n.slice(i+1),n=n.slice(0,i),"ns"!==t&&"0123456789".indexOf(t[0])<0)return t}}function et(e,t){var n=w.store.findTypeURIs(e);return n[Ne.ns.rdf("Predicate").uri]||n[Ne.ns.rdfs("Class").uri]?Z(e,t)+" ("+Xe(e)+")":Z(e,t)}function tt(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;")}function nt(e){return tt(Z(e))}function at(e,t){return tt(it(e,t))}function it(e,t){var n=Z(e);if(t){var a=w.store.any(e,Ne.ns.owl("inverseOf"))||w.store.any(void 0,Ne.ns.owl("inverseOf"),e);return a?Z(a):"type"===n?"...":"is "+n+" of"}return n}function rt(e,t){var n=e.predicate.compareTerm(t.predicate);return 0!==n?n:e.object.compareTerm(t.object)}function ot(e,t){var n=e.predicate.compareTerm(t.predicate);return 0!==n?n:e.subject.compareTerm(t.subject)}function st(e){for(var t=e;;){if(t.getAttribute("predTR"))return t;if(!t.previousSibling||"TR"!==t.previousSibling.nodeName)return Ne.log.error("Could not find predParent"),e;t=t.previousSibling}}function ct(e,t,n,a){var i=e.createElement("div"),r=a||t instanceof Error?t:null;return r?(console.error("errorMessageBlock: ".concat(r," at: ").concat(r.stack||"??"),r),i.textContent=r.message):i.textContent=t,i.appendChild(Ot(e,function(){i.parentNode&&i.parentNode.removeChild(i)})).style=_e.errorCancelButton,i.setAttribute("style",_e.errorMessageBlockStyle),i.style.backgroundColor=n||Ae.defaultErrorBackgroundColor,i}"undefined"!=typeof AudioContext?Le=AudioContext:"undefined"!=typeof window&&(Le=window.AudioContext||window.webkitAudioContext);var lt=function(e,t,n){var a=e.createElement("tr");return a.appendChild(e.createElement("td")).appendChild(t),a.subject=n,a},ut=function(e,t){e.addEventListener("click",t)},pt=function(e,t,n){var a=t.appendChild(e.createElement("div"));a.setAttribute("style",_e.imageDivStyle),a.appendChild(n),n.setAttribute("draggable","false")};function dt(e,t,n){var a=e.createElement("a");a.setAttribute("href",t.uri),t.uri.startsWith("http")&&a.setAttribute("target","_blank");var i=a.appendChild(e.createElement("img"));return i.setAttribute("src",n||Re.i1+"go-to-this.png"),i.setAttribute("style","margin: 0.3em;"),a}var mt=function(e,t,n){var a=dt(e,n);t.appendChild(a).classList.add("HoverControlHide"),t.appendChild(e.createElement("br"))},ft=Re.Pt.iconBase,ht=ft+"noun_1180156.svg",vt=ft+"noun_1180158.svg";function xt(e,t){if(t){var n=function(e){var t=e&&e.statusArea||e&&e.div||null;if(t)return t;var n=e&&e.dom;if(n||"undefined"==typeof document||(n=document),n){var a=n.getElementsByTagName("body")[0];return t=n.createElement("div"),a.insertBefore(t,a.firstElementChild),e&&(e.statusArea=t),t}return null}(e);Y.Rm("Complaint: "+t),n?n.appendChild(ct(e&&e.dom||document,t)):alert(t)}}function bt(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function gt(e){var t=e.search(/logFile=/),n=e.search(/&rulesFile=/);return e.substring(t+8,n)}function yt(e,t){if(!e)return"???";try{var n=(new Date).toISOString();return e.slice(0,10)!==n.slice(0,10)||t?e.slice(0,4)===n.slice(0,4)?["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][parseInt(e.slice(5,7),10)-1]+" "+parseInt(e.slice(8,10),10):e.slice(0,10):e.slice(11,16)}catch(e){return"shortdate:"+e}}function wt(e,t){return t.split("{").map(function(t){var n=t.split("}")[0];return t?("000"+(e["get"+n]()+({Month:1}[n]||0))).slice(-({Milliseconds:3,FullYear:4}[n]||2))+t.split("}")[1]:""}).join("")}function kt(){return wt(new Date,"{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}")}function Ct(){return wt(new Date,"{Hours}:{Minutes}:{Seconds}.{Milliseconds}")}function Et(e,t){var n=w.store,a=function(e){var t=n.any(e,v.vcard("fn"))||n.any(e,v.foaf("name"))||n.any(e,v.vcard("organization-name"));return t?t.value:null},i=t.sameTerm(v.foaf("Agent"))?"Everyone":a(t);if(e.textContent=i||Z(t),!i&&t.uri){if(!n.fetcher)throw new Error("kb has no fetcher");n.fetcher.nowOrWhenFetched(t.doc(),void 0,function(n){e.textContent=a(t)||Z(t)})}}function At(e,t){return t.each(e,v.sioc("avatar")).concat(t.each(e,v.foaf("img"))).concat(t.each(e,v.vcard("logo"))).concat(t.each(e,v.vcard("hasPhoto"))).concat(t.each(e,v.vcard("photo"))).concat(t.each(e,v.foaf("depiction")))}var _t={"solid:AppProviderClass":"noun_144.svg","solid:AppProvider":"noun_15177.svg","solid:Pod":"noun_Cabinet_1434380.svg","vcard:Group":"noun_339237.svg","vcard:Organization":"noun_143899.svg","vcard:Individual":"noun_15059.svg","schema:Person":"noun_15059.svg","foaf:Person":"noun_15059.svg","foaf:Agent":"noun_98053.svg","acl:AuthenticatedAgent":"noun_99101.svg","prov:SoftwareAgent":"noun_Robot_849764.svg","vcard:AddressBook":"noun_15695.svg","trip:Trip":"noun_581629.svg","meeting:LongChat":"noun_1689339.svg","meeting:Meeting":"noun_66617.svg","meeting:Project":"noun_1036577.svg","ui:Form":"noun_122196.svg","rdfs:Class":"class-rectangle.svg","rdf:Property":"property-diamond.svg","owl:Ontology":"noun_classification_1479198.svg","wf:Tracker":"noun_122196.svg","wf:Task":"noun_17020_gray-tick.svg","wf:Open":"noun_17020_sans-tick.svg","wf:Closed":"noun_17020.svg"};function jt(e){var t=e.uri.split("#")[0],n=t.indexOf("//");if(n<0)throw new Error("This URI does not have a web site part (origin)");var a=t.indexOf("/",n+2);return a<0?t.slice(0)+"/":t.slice(0,a+1)}function St(e){var t=ft;return"string"!=typeof e&&e.uri?4!==e.uri.split("/").length||e.uri.split("/")[1]||e.uri.split("/")[3]?e.uri.startsWith("message:")||e.uri.startsWith("mid:")?t+"noun_480183.svg":e.uri.startsWith("mailto:")?t+"noun_567486.svg":e.uri.startsWith("https:")&&e.uri.indexOf("#")<0?jt(e)+"favicon.ico":null:t+"noun_15177.svg":t+"noun_10636_grey.svg"}function Tt(e){var t=w.store,n=ft;if(e.sameTerm(v.foaf("Agent"))||e.sameTerm(v.rdf("Resource")))return n+"noun_98053.svg";var a=t.any(e,v.sioc("avatar"))||t.any(e,v.foaf("img"))||t.any(e,v.vcard("logo"))||t.any(e,v.vcard("hasPhoto"))||t.any(e,v.vcard("photo"))||t.any(e,v.foaf("depiction"));return a?a.uri:null}function Lt(e,t,n){var a=w.store,i=Tt(t);if(i)return e.setAttribute("src",i),!0;var r=n[t.uri];if(r)return e.setAttribute("src",r),e.style=_e.classIconStyle,!0;var o=St(t);if(o)return e.setAttribute("src",o),!0;var s=a.findTypeURIs(t);for(var c in s)if(n[c])return e.setAttribute("src",n[c]),!1;return e.setAttribute("src",ft+"noun_10636_grey.svg"),!1}function Rt(e,t){var n=w.store,a={};for(var i in _t){var r=i.split(":")[0],o=i.split(":")[1],s=v[r](o);a[s.uri]=h.uri.join(_t[i],ft)}if(!Lt(e,t,a)&&t.uri){if(!n.fetcher)throw new Error("kb has no fetcher");n.fetcher.nowOrWhenFetched(t.doc(),void 0,function(n){n&&Lt(e,t,a)})}}function Nt(e,t){var n=e.createElement("img");n.style=_e.iconStyle;if(n.setAttribute("src",ft+(function(e){if(!e.uri)return!1;var t=e.uri.split("/");return 3===t.length||4===t.length&&""===t[3]}(t)?"noun_15177.svg":"noun_681601.svg")),t.uri&&t.uri.startsWith("https:")&&t.uri.indexOf("#")<0){var a=e.createElement("object");return a.setAttribute("data",jt(t)+"favicon.ico"),a.setAttribute("type","image/x-icon"),a.appendChild(n),a}return Rt(n,t),n}function Bt(e,t,n,a){var i=ft+"noun_2188_red.svg",r=e.createElement("img");r.setAttribute("src",i),r.setAttribute("style",_e.smallButtonStyle),r.style.float="right";var o="Remove this "+n;return r.title=o,r.classList.add("hoverControlHide"),r.addEventListener("click",function(){var n=e.createElement("div");t.insertBefore(n,r),n.style.position="relative",n.appendChild(function(e,t,n,a){function i(){t.parentElement.removeChild(t)}function r(){i(),a()}var o=e.createElement("div");o.style=_e.confirmPopupStyle,o.style.position="absolute",o.style.top="-1em",o.style.display="grid",o.style.gridTemplateColumns="auto auto";var s=e.createElement("div");s.style.gridColumn="1/2",s.style.gridRow="1";var c=e.createElement("div");c.style.gridColumn="1/2",c.style.gridRow="2";var l=Ot(e,i);o.appendChild(l),l.style.gridColumn="1",l.style.gridRow="2";var u=o.appendChild(e.createElement("button"));u.style=_e.buttonStyle,u.style.gridRow="2",u.style.gridColumn="2",u.textContent="Cancel";var p=It(e,Re.Pt.iconBase+"noun_925021.svg","Delete it");o.appendChild(p),p.style.gridRow="1",p.style.gridColumn="1";var d=o.appendChild(e.createElement("button"));return d.style=_e.buttonStyle,d.style.gridRow="1",d.style.gridColumn="2",d.textContent=n,o.appendChild(d),p.addEventListener("click",r),d.addEventListener("click",r),u.addEventListener("click",i),o}(e,n,o,a))}),t.classList.add("hoverControl"),t.appendChild(r),r.setAttribute("data-testid","deleteButtonWithCheck"),r}function It(e,t,n,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{buttonColor:"Primary",needsBorder:!1},r=e.createElement("button");if(r.setAttribute("type","button"),t){var o=r.appendChild(e.createElement("img"));o.setAttribute("src",t),o.setAttribute("style","width: 2em; height: 2em;"),o.title=n,r.setAttribute("style",_e.buttonStyle)}else r.textContent=n.toLocaleUpperCase(),r.onmouseover=function(){"Secondary"===i.buttonColor?i.needsBorder?r.setAttribute("style",_e.secondaryButtonNoBorderHover):r.setAttribute("style",_e.secondaryButtonHover):i.needsBorder?r.setAttribute("style",_e.primaryButtonNoBorderHover):r.setAttribute("style",_e.primaryButtonHover)},r.onmouseout=function(){"Secondary"===i.buttonColor?i.needsBorder?r.setAttribute("style",_e.secondaryButtonNoBorder):r.setAttribute("style",_e.secondaryButton):i.needsBorder?r.setAttribute("style",_e.primaryButtonNoBorder):r.setAttribute("style",_e.primaryButton)},"Secondary"===i.buttonColor?i.needsBorder?r.setAttribute("style",_e.secondaryButtonNoBorder):r.setAttribute("style",_e.secondaryButton):i.needsBorder?r.setAttribute("style",_e.primaryButtonNoBorder):r.setAttribute("style",_e.primaryButton);return a&&r.addEventListener("click",a,!1),r}function Ot(e,t){var n=It(e,ht,"Cancel",t);return n.firstChild&&(n.firstChild.style.opacity="0.3"),n}function Dt(e,t){return It(e,vt,"Continue",t)}function Ft(e,t,n,a,i,r){return new Promise(function(t,o){var s=e.createElement("div");a=a||v.foaf("name");var c=(r=r||(i?Z(i):" "))+" "+Z(a)+": ";s.appendChild(e.createElement("p")).textContent=c;var l=e.createElement("input");function u(){s.parentNode.removeChild(s),t(l.value.trim())}l.setAttribute("type","text"),l.setAttribute("size","100"),l.setAttribute("maxLength","2048"),l.setAttribute("style",_e.textInputStyle),l.select(),s.appendChild(l),n.appendChild(s),l.addEventListener("keyup",function(e){13===e.keyCode&&u()},!1),s.appendChild(e.createElement("br")),s.appendChild(Ot(e,function(e){s.parentNode.removeChild(s),t(null)})),s.appendChild(Dt(e,function(e){u()})),l.focus()})}var Pt=Ut;function Ut(e,t,n,a){var i=e.createElement("tr");a=a||{};var r=i.appendChild(e.createElement("td")),o=i.appendChild(e.createElement("td")),s=i.appendChild(e.createElement("td")),c=a.image||Nt(e,n);if(r.setAttribute("style","vertical-align: middle; width:2.5em; padding:0.5em; height: 2.5em;"),o.setAttribute("style","vertical-align: middle; text-align:left;"),s.setAttribute("style","vertical-align: middle; width:2em; padding:0.5em; height: 4em;"),r.appendChild(c),a.title?o.textContent=a.title:Et(o,n),a.deleteFunction&&Bt(e,s,a.noun||"one",a.deleteFunction),n.uri){if(!1!==a.link)s.appendChild(dt(e,n)).classList.add("HoverControlHide"),s.appendChild(e.createElement("br"));!1!==a.draggable&&(c.setAttribute("draggable","false"),Se(i,n))}return i.subject=n,i}function Mt(e,t,n,a){var i=t.appendChild(e.createElement("div"));n?i.textContent=n:Et(i,a)}function zt(e,t,n,a){var i=t.appendChild(e.createElement("div"));i.setAttribute("style",_e.linkDivStyle),a.deleteFunction&&Bt(e,i,a.noun||"one",a.deleteFunction),n.uri&&(!1!==a.link&&mt(e,i,n),Se(t,n))}function qt(e,t,n){var a=e.createElement("div");a.setAttribute("style",_e.renderAsDivStyle);var i=(n=n||{}).image||Nt(e,t);return pt(e,a,i),Mt(e,a,n.title,t),zt(e,a,t,n),n.clickable&&n.onClickFunction&&ut(a,n.onClickFunction),n.wrapInATR?lt(e,a,t):a}function Ht(e){if(e.refresh)e.refresh();else for(var t=0;t<e.children.length;t++)Ht(e.children[t])}function Gt(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};function i(n){var a=n,i={noun:d};return l&&(i.deleteFunction=function(){!function(e){if(!m.updater)throw new Error("kb has no updater");m.updater.update((0,h.st)(t,p,e,c),[],function(e,t,n,a){t?r():xt(void 0,"Error deleting one: "+n)})}(a)}),Pt(e,p,n,i)}var r=function(){var e=m.each(t,p);e.sort(),Ue(g,e,i)};function o(e){var n=[];if(e.forEach(function(e){var a=(0,h.sym)(e);Y.Rm("Dropped on attachemnt "+e),n.push((0,h.st)(t,p,a,c))}),!m.updater)throw new Error("kb has no updater");m.updater.update([],n,function(e,t,n,a){t?r():xt(void 0,"Error adding one: "+n)})}function s(e){var n,i;Te(m.fetcher,e,null===(n=a.uploadFolder)||void 0===n?void 0:n.uri,null===(i=a.uploadFolder)||void 0===i?void 0:i.uri,function(e,n){var a=[(0,h.st)(t,p,m.sym(n),c)];if(!m.updater)throw new Error("kb has no updater");m.updater.update([],a,function(e,t,n,a){t?r():xt(void 0,"Error adding link to uploaded file: "+n)})})}var c=a.doc||t.doc();void 0===a.modify&&(a.modify=!0);var l=a.modify,u=a.promptIcon||ft+"noun_748003.svg",p=a.predicate||v.wf("attachment"),d=a.noun||"attachment",m=w.store,f=n.appendChild(e.createElement("table"));f.setAttribute("style","margin-top: 1em; margin-bottom: 1em;");var x=f.appendChild(e.createElement("tr")),b=x.appendChild(e.createElement("td")),g=x.appendChild(e.createElement("td")).appendChild(e.createElement("table"));if(g.appendChild(e.createElement("tr")),f.refresh=r,r(),l){var y=It(e,u,"Drop attachments here");b.appendChild(y);var k=a.uploadFolder?s:null;if(je(y,o,k),je(b,o,k),a.uploadFolder){var C=rn(e,s);b.appendChild(C)}}return f}function Vt(e){e.preventDefault(),e.stopPropagation();var t=He(e).getAttribute("href");if(!t)return Y.Rm("openHrefInOutlineMode: No href found!\n");var n=window.document;n.outlineManager?n.outlineManager.GotoSubject(w.store.sym(t),!0,void 0,!0,void 0):window&&window.panes&&window.panes.getOutliner?window.panes.getOutliner().GotoSubject(w.store.sym(t),!0,void 0,!0,void 0):Y.Rm("ERROR: Can't access outline manager in this config")}function Wt(e){if(void 0!==e.uri){var t=e.uri;if("http://"===t.slice(0,7)){var n=(t=t.slice(7)).indexOf("#");if(n>=0)t=t.slice(0,n);else{var a=t.lastIndexOf("/");if(a<0)return;t=t.slice(0,a)}return w.store.sym("http://tabulator.org/wiki/annnotation/"+t)}}}function Jt(){var e={};return w.store.statementsMatching(void 0,v.rdf("type"),void 0).forEach(function(t){t.object.value&&(e[t.object.value]=!0)}),w.store.statementsMatching(void 0,v.rdfs("subClassOf"),void 0).forEach(function(t){t.object.value&&(e[t.object.value]=!0),t.subject.value&&(e[t.subject.value]=!0)}),w.store.each(void 0,v.rdf("type"),v.rdfs("Class")).forEach(function(t){t.value&&(e[t.value]=!0)}),e}function $t(e){var t={},n={},a={},i=0,r=0,o=0,s=e.predicateIndex;for(var c in s){"Literal"===s[c][0].object.termType?(n[c]=!0,r++):(a[c]=!0,i++)}for(var l=e.each(void 0,v.rdf("type"),v.rdf("Property")),u=0;u<l.length;u++){var p=l[u].toNT();a[p]||n[p]||(n[p]=!0,a[p]=!0,o++)}return t.op=a,t.dp=n,P("propertyTriage: ".concat(i," non-lit, ").concat(r," literal. ").concat(o," unknown.")),t}function Qt(e,t){var n=e.createElement("button");return n.setAttribute("type","button"),n.textContent="Goto "+Z(t),n.addEventListener("click",function(n){e.outlineManager.GotoSubject(t,!0,void 0,!0,void 0)},!0),n}function Zt(e,t){var n=e.createElement("button");return n.setAttribute("type","button"),n.textContent="✕",n.addEventListener("click",function(e){t.parentNode.removeChild(t)},!0),n}function Kt(e,t,n,a,i,r,o,s,c){return Yt(e.createElement("div"),e,t,n,a,i,r,o,s,c)}function Yt(e,t,n,a,i,r,o,s,c,l){var u="border: 0.1em solid #ddd; border-bottom: none; width: 95%; height: 2em; padding: 0.5em;",p=null;e.innerHTML="";for(var d=function(e,o){var d,m,f=function(){var e=r?n.each(void 0,i,o):n.each(o,i);b.setAttribute("class",0===e.length?"hideTillHover":""),m.setAttribute("src",s.connectIcon||ft+"noun_25830.svg"),m.setAttribute("title",e.length?e.length:"attach")},h=Xt.twoLine.widgetForClass(a);(d=h(t,o)).setAttribute("style",u);var v=t.createElement("div");v.setAttribute("class","hideTillHover"),v.setAttribute("style","float:right; width:10%");var x=t.createElement("a");x.setAttribute("href",o.uri),x.setAttribute("style","float:right"),v.appendChild(x).textContent=">",e.appendChild(v);var b=t.createElement("div");return b.setAttribute("style",(r?"float:left;":"float:right;")+" width:30px;"),m=t.createElement("img"),f(),b.appendChild(m),e.appendChild(b),d.addEventListener("click",function(e){p===d?(d.setAttribute("style",u),p=null):(p&&p.setAttribute("style",u),d.setAttribute("style",u+"background-color: #ccc; color:black;"),p=d),c(o,e,p===d),f()},!1),m.addEventListener("click",function(e){l(o,e,r,f)},!1),e.appendChild(d),e},m=0;m<o.length;m++){var f=t.createElement("div");e.appendChild(f),d(f,o[m])}return e}var Xt={};function en(e,t){for(var n=e.querySelectorAll("link"),a=0;a<n.length;a++)if("stylesheet"===(n[a].getAttribute("rel")||"")&&(n[a].getAttribute("href")||"")===t)return;var i=e.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href",t),e.getElementsByTagName("head")[0].appendChild(i)}function tn(e){return an(e,"audio")}function nn(e){return an(e,"video")}function an(e,t){var n=t||"image",a=w.store.findTypeURIs(e),i=h.Util.mediaTypeClass(n+"/*").uri.split("*")[0];for(var r in a)if(r.startsWith(i))return!0;return{audio:"http://purl.org/dc/dcmitype/Sound",image:"http://purl.org/dc/dcmitype/Image",video:"http://purl.org/dc/dcmitype/MovingImage"}[n]in a}function rn(e,t){var n=e.createElement("div"),a=n.appendChild(e.createElement("input"));return a.setAttribute("type","file"),a.setAttribute("multiple","true"),a.addEventListener("change",function(e){Y.Rm("File drop event: ",e),e.files?t(e.files):e.target&&e.target.files?t(e.target.files):alert("Sorry no files .. internal error?")},!1),a.style="display:none",je(n.appendChild(It(e,ft+"noun_Upload_76574_000000.svg","Upload files",function(e){a.click()})),null,t),n}function on(e,t,n){return(t=be(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Xt={line:{},twoLine:{"":function(e,t){var n=e.createElement("div");return n.textContent=Z(t),n},"http://www.w3.org/2000/10/swap/pim/qif#Transaction":function(e,t){var n="",a=function(e){var a=w.store.any(t,v.qu(e));return a||(n+="@@ No value for "+e+"! "),a?tt(a.value):"?"},i=e.createElement("table");return i.innerHTML='\n <tr>\n <td colspan="2"> '.concat(a("payee"),"</td>\n < /tr>\n < tr >\n <td>").concat(a("date").slice(0,10),'</td>\n <td style = "text-align: right;">').concat(a("amount"),"</td>\n </tr>"),n&&(i.innerHTML='\n <tr>\n <td><a href="'.concat(tt(t.uri),'">').concat(tt(n),"</a></td>\n </tr>")),i},"http://www.w3.org/ns/pim/trip#Trip":function(e,t){var n=function(e){var n=w.store.any(t,e);return n?tt(n.value):"?"},a=e.createElement("table");return a.innerHTML='\n <tr>\n <td colspan="2">'.concat(n(v.dc("title")),'</td>\n </tr>\n <tr style="color: #777">\n <td>').concat(n(v.cal("dtstart")),"</td>\n <td>").concat(n(v.cal("dtend")),"</td>\n </tr>"),a},widgetForClass:function(e){var t=Xt.twoLine[e.uri],n=w.store;if(t)return t;var a=n.findSuperClassesNT(e);for(var i in a)if(t=Xt.twoLine[n.fromNT(i).uri])return t;return Xt.twoLine[""]}}};const sn={authEndpoint:"",fallbackAuthEndpoint:"https://databox.me/",signupEndpoint:"https://solidproject.org/use-solid/",signupWindowHeight:600,signupWindowWidth:1024,key:"",cert:""};function cn(e){this.config=e||sn}var ln;cn.prototype.listen=function(){return new Promise(function(e,t){var n=window.addEventListener?"addEventListener":"attachEvent";(0,window[n])("attachEvent"===n?"onmessage":"message",function(n){var a=n.data;if("User:"===a.slice(0,5)){var i=a.slice(5,a.length);return i&&i.length>0&&"http"===i.slice(0,4)?e(i):t(i)}},!0)})},cn.prototype.signup=function(e){e=e||this.config.signupEndpoint;var t=this.config.signupWindowWidth,n=this.config.signupWindowHeight,a=window.screen.width/2-(t/2+10),i=window.screen.height/2-(n/2+50),r=e+"?origin="+encodeURIComponent(window.location.origin),o="resizable,scrollbars,status,width="+t+",height="+n+",left="+a+",top="+i;window.open(r,"Solid signup",o);var s=this;return new Promise(function(e){s.listen().then(function(t){return e(t)})})};var un=(on(on(on(on(on(on(on(on(on(on(ln={},v.ui("ColorField").uri,{size:9,type:"color",style:"height: 3em;",dt:"color",pattern:/^\s*#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]([0-9a-f][0-9a-f])?\s*$/}),v.ui("DateField").uri,{size:20,type:"date",dt:"date",pattern:/^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?Z?\s*$/}),v.ui("DateTimeField").uri,{size:20,type:"datetime-local",dt:"dateTime",pattern:/^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?(T[0-2][0-9]:[0-5][0-9](:[0-5][0-9])?)?Z?\s*$/}),v.ui("TimeField").uri,{size:10,type:"time",dt:"time",pattern:/^\s*([0-2]?[0-9]:[0-5][0-9](:[0-5][0-9])?)\s*$/}),v.ui("IntegerField").uri,{size:12,style:"text-align: right;",dt:"integer",pattern:/^\s*-?[0-9]+\s*$/}),v.ui("DecimalField").uri,{size:12,style:"text-align: right;",dt:"decimal",pattern:/^\s*-?[0-9]*(\.[0-9]*)?\s*$/}),v.ui("FloatField").uri,{size:12,style:"text-align: right;",dt:"float",pattern:/^\s*-?[0-9]*(\.[0-9]*)?((e|E)-?[0-9]*)?\s*$/}),v.ui("SingleLineTextField").uri,{}),v.ui("NamedNodeURIField").uri,{namedNode:!0}),v.ui("TextField").uri,{}),on(on(on(on(on(ln,v.ui("PhoneField").uri,{size:20,uriPrefix:"tel:",pattern:/^\+?[\d-]+[\d]*$/}),v.ui("EmailField").uri,{size:30,uriPrefix:"mailto:",pattern:/^\s*.*@.*\..*\s*$/}),v.ui("Group").uri,{style:_e.formGroupStyle}),v.ui("Comment").uri,{element:"p",style:_e.commentStyle}),v.ui("Heading").uri,{element:"h3",style:_e.formHeadingStyle})),pn=w.solidLogicSingleton.store,dn={};function mn(e){var t=pn,n=t.findTypeURIs(e),a=t.bottomTypeURIs(n),i=[];for(var r in a)i.push(r);return i[0]}function fn(e,t){var n=mn(t),a=dn[n];return F("paneUtils: Going to implement field "+t+" of type "+n),a||function(e,a){var i=ct(e,"No handler for field "+t+" of type "+n);return a&&a.appendChild(i),i}}var hn="https://www.w3.org/ns/css#";var vn=w.solidLogicSingleton.store;function xn(e,t,n,a,i){n.style.display="flex",n.style.flexDirection="row";var r=n.appendChild(e.createElement("div"));r.style.width=Ae.formFieldNameBoxWidth;var o=n.appendChild(e.createElement("div"));return r.setAttribute("class","formFieldName"),r.setAttribute("style",_e.formFieldNameBoxStyle),o.setAttribute("class","formFieldValue"),i?r.appendChild(e.createTextNode(i)):t.any(a,v.ui("property"))?r.appendChild(bn(e,t.any(a,v.ui("property")),a)):(o.appendChild(ct(e,"No property or label given for form field: "+a)),r.appendChild(e.createTextNode("???"))),o}function bn(e,t,n){var a=vn.any(n,v.ui("label"));if(a||(a=Z(t,!0)),void 0===t)return e.createTextNode("@@Internal error: undefined property");var i=e.createElement("a");return t.uri&&i.setAttribute("href",t.uri),i.setAttribute("style","color: #3B5998; text-decoration: none;"),i.textContent=a,i}function gn(e,t,n){var a=vn.statementsMatching(e,t);if(0===a.length)return n;if(!vn.updater)throw new Error("Store has no updater");return a.length>0&&a[0].why.value&&vn.updater.editable(a[0].why.value,vn)?vn.sym(a[0].why.value):n}function yn(e,t,n,a,i,r,o){var s=vn,c=i.doc?i.doc():null,l=e.createElement("div"),u=s.any(i,v.ui("property"));if(t&&t.appendChild(l),!u)return l.appendChild(ct(e,"Error: No property given for text field: "+i));var p=xn(e,s,l,i),d=s.anyJS(i,v.ui("suppressEmptyUneditable"),null,c),m=mn(i),f=un[m];void 0===f&&(f={style:""});var x=f.style||"",b=_e.textInputStyle+x,g=e.createElement("input");g.style=b,p.appendChild(g),g.setAttribute("type",f.type?f.type:"text");var y=s.anyJS(i,v.ui("size"))||Ae.textInputSize||20;g.setAttribute("size",y);var w=s.any(i,v.ui("maxLength"));g.setAttribute("maxLength",w?""+w:Ae.basicMaxLength),r=r||gn(a,u,r);var k=s.any(a,u,void 0,r);if(k||(k=s.any(i,v.ui("default"))),k&&k.value&&f.uriPrefix?g.value=decodeURIComponent(k.value.replace(f.uriPrefix,"")).replace(/ /g,""):k&&(g.value=k.value||k.value||""),g.setAttribute("style",b),!s.updater)throw new Error("kb has no updater");return s.updater.editable(r.uri)?(g.addEventListener("keyup",function(e){f.pattern&&g.setAttribute("style",b+(g.value.match(f.pattern)?"color: green;":"color: red;"))},!0),g.addEventListener("change",function(t){if(!f.pattern||g.value.match(f.pattern)){g.disabled=!0,g.setAttribute("style",b+"color: gray;");var n,i=s.statementsMatching(a,u);f.namedNode?n=s.sym(g.value):f.uriPrefix?(n=encodeURIComponent(g.value.replace(/ /g,"")),n=s.sym(f.uriPrefix+g.value)):n=f.dt?new h.Literal(g.value.trim(),void 0,v.xsd(f.dt)):new h.Literal(g.value);var c=i.map(function(e){return(0,h.st)(e.subject,e.predicate,n,e.why)});0===c.length&&(c=[(0,h.st)(a,u,n,r)]),function e(t,n,a){var i=[];if(n.forEach(function(e){i.includes(e.why.uri)||i.push(e.why.uri)}),t.forEach(function(e){i.includes(e.why.uri)||i.push(e.why.uri)}),0===i.length)throw new Error("updateMany has no docs to patch");if(!s.updater)throw new Error("kb has no updater");if(1===i.length)return s.updater.update(t,n,a);var r=i.pop(),o=n.filter(function(e){return e.why.uri===r}),c=n.filter(function(e){return e.why.uri!==r}),l=t.filter(function(e){return e.why.uri===r}),u=t.filter(function(e){return e.why.uri!==r});s.updater.update(l,o,function(t,n,i){n?e(u,c,a):a(t,n,i)})}(i,c,function(t,n,a){n?(g.disabled=!1,g.setAttribute("style",b)):l.appendChild(ct(e,a)),o(n,a)})}},!0),l):(g.readOnly=!0,g.style=_e.textInputStyleUneditable+x,d&&""===g.value&&(l.style.display="none"),l)}var wn="https://www.w3.org/ns/iana/language-code/",kn=["en","fr","de","it","ar"];function Cn(e){return e||(e=[]),e.concat(kn.filter(function(t){return!e.includes(t)}))}function En(e){return An.apply(this,arguments)}function An(){return(An=b(y().mark(function e(t){var n,a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.doc(),e.next=1,null===(n=w.store.fetcher)||void 0===n?void 0:n.load(a);case 1:if(i=w.store.any(t,v.schema("knowsLanguage"),null,a)){e.next=2;break}return e.abrupt("return",kn);case 2:if(r=[],i.elements.forEach(function(e){var t=w.store.any(e,v.solid("publicId"),null,a);if(t)if(t.value.startsWith(wn)){var n=t.value.slice(wn.length);r.push(n)}else console.error("What should be a language code ".concat(t.value," does not start with ").concat(wn));else console.warn("getPreferredLanguages: No publiID of language.")}),!(r.length>0)){e.next=3;break}return console.log(' User knows languages with codes: "'.concat(r.join(","),'"')),e.abrupt("return",Cn(r));case 3:return e.abrupt("return",null);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function _n(){return jn.apply(this,arguments)}function jn(){return(jn=b(y().mark(function e(){var t,n;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.authn.currentUser();case 1:if(!(t=e.sent)){e.next=3;break}return e.next=2,En(t);case 2:if(!(n=e.sent)){e.next=3;break}return e.abrupt("return",n);case 3:if("undefined"==typeof navigator){e.next=5;break}if(!navigator.languages){e.next=4;break}return e.abrupt("return",Cn(navigator.languages.map(function(e){return e.split("-")[0]})));case 4:if(!navigator.language){e.next=5;break}return e.abrupt("return",Cn([navigator.language.split("-")[0]]));case 5:return e.abrupt("return",kn);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Sn(e,t){var n={};e.forEach(function(e){var t=e.subject.value;n[t]=n[t]||[],n[t].push(e)});var a=t||kn;a.reverse();var i=[];for(var r in n){var o=n[r].map(function(e){var t=e.name["xml:lang"];return[a.indexOf(t),e]});o.sort(),o.reverse(),i.push(o[0][1])}return Y.Rm(" Filter by language: ".concat(e.length," -> ").concat(i.length)),i}var Tn=200,Ln=/\$\(subject\)/g,Rn={Corporation:"http://www.wikidata.org/entity/Q6881511",EducationalOrganization:"http://www.wikidata.org/entity/Q178706",GovernmentOrganization:"http://www.wikidata.org/entity/Q327333",MedicalOrganization:"http://www.wikidata.org/entity/Q4287745",MusicGroup:"http://www.wikidata.org/entity/Q32178211",NGO:"http://www.wikidata.org/entity/Q163740",Occupation:"http://www.wikidata.org/entity/Q28640",Project:"http://www.wikidata.org/entity/Q170584",ResearchOrganization:"http://www.wikidata.org/entity/Q31855",SportsOrganization:"http://www.wikidata.org/entity/Q4438121"},Nn='prefix vcard: <http://www.w3.org/2006/vcard/ns#>\nCONSTRUCT\n{ wd:Q49108 vcard:fn ?itemLabel.\nwd:Q49108 rdf:type ?klass. ?klass rdfs:label ?klassLabel; rdfs:comment ?klassDescription .\nwd:Q49108 schema:logo ?logo;\n schema:image ?image;\n schema:logo ?sealImage;\n schema:subOrganization ?subsidiary .\n ?subsidiary rdfs:label ?subsidiaryLabel .\n ?supersidiary schema:subOrganization wd:Q49108 .\n ?supersidiary rdfs:label ?supersidiaryLabel .\n wd:Q49108 schema:location ?location .\n ?location schema:elevation ?elevation .\n ?location wdt:P131 ?region . ?region rdfs:label ?regionLabel .\n ?location wdt:P625 ?coordinates .\n ?location schema:country ?country . ?country rdfs:label ?countryLabel .\n}\nWHERE\n{ optional {wd:Q49108 rdfs:label ?itemLabel} .\n optional {wd:Q49108 wdt:P154 ?logo .}\n optional {wd:Q49108 wdt:P31 ?klass .}\n optional {wd:Q49108 wdt:P158 ?sealImage .}\n optional {wd:Q49108 wdt:P18 ?image .}\n\n optional { wd:Q49108 wdt:P355 ?subsidiary . }\n optional { ?supersidiary wdt:P355 wd:Q49108. }\n\n optional { wd:Q49108 wdt:P276 ?location .\n\n optional { ?location schema:eleveation ?elevation }\n optional { ?location wdt:P131 ?region }\n optional { ?location wdt:P625 ?coordinates }\n optional { ?location wdt:P17 ?country }\n }\n SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it". }\n}',Bn={credentials:"omit",headers:new Headers({Accept:"application/json"})},In={label:"ESCO",logo:w.store.sym("https://ec.europa.eu/esco/portal/static_resource2/images/logo/logo_en.gif"),searchByNameURI:"https://ec.europa.eu/esco/api/search?language=$(language)&type=occupation&text=$(name)"},On={label:"DBPedia",logo:w.store.sym("https://upload.wikimedia.org/wikipedia/commons/thumb/7/73/DBpediaLogo.svg/263px-DBpediaLogo.svg.png"),searchByNameQuery:'select distinct ?subject, ?name where {\n ?subject a $(targetClass); rdfs:label ?name\n FILTER regex(?name, "$(name)", "i")\n } LIMIT $(limit)',endpoint:"https://dbpedia.org/sparql/"},Dn={AcademicInsitution:"http://umbel.org/umbel/rc/EducationalOrganization"},Fn={AcademicInsitution:"http://www.wikidata.org/entity/Q4671277",Enterprise:"http://www.wikidata.org/entity/Q6881511",Business:"http://www.wikidata.org/entity/Q4830453",NGO:"http://www.wikidata.org/entity/Q79913",CharitableOrganization:"http://www.wikidata.org/entity/Q708676",Insitute:"http://www.wikidata.org/entity/Q1664720"},Pn={label:"WikiData",limit:3e3,logo:w.store.sym("https://www.wikimedia.org/static/images/project-logos/wikidatawiki.png"),endpoint:"https://query.wikidata.org/sparql",searchByNameQuery:'SELECT ?subject ?name\n WHERE {\n ?klass wdt:P279* $(targetClass) .\n ?subject wdt:P31 ?klass .\n ?subject rdfs:label ?name.\n FILTER regex(?name, "$(name)", "i")\n } LIMIT $(limit) ',insitituteDetailsQuery:'CONSTRUCT\n{ wd:Q49108 schema:name ?itemLabel;\n schema:logo ?logo;\n schema:logo ?sealImage;\n schema:subOrganization ?subsidiary .\n ?subsidiary schema:name ?subsidiaryLabel .\n}\nWHERE\n{\n wd:Q49108 # rdfs:label ?itemLabel ;\n wdt:P154 ?logo;\n wdt:P158 ?sealImage ;\n wdt:P355 ?subsidiary .\n # ?subsidiary rdfs:label ?subsidiaryLabel .\n\n SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE], fr". }\n}'},Un={"http://www.wikidata.org/entity/Q15936437":v.schema("CollegeOrUniversity"),"http://www.wikidata.org/entity/Q1664720":v.schema("EducationalOrganization"),"http://www.wikidata.org/entity/Q43229":v.schema("Organization"),"http://www.wikidata.org/entity/Q3918":v.schema("CollegeOrUniversity"),"http://www.wikidata.org/entity/Q170584":v.schema("Project"),"http://www.wikidata.org/entity/Q327333":v.schema("GovernmentOrganization"),"http://www.wikidata.org/entity/Q2221906":v.schema("Place"),"http://www.wikidata.org/entity/Q167037":v.schema("Corporation")},Mn={targetClass:v.rdf("type"),sealImage:v.schema("logo"),shortName:v.foaf("nick"),subsidiary:v.schema("subOrganization"),city:v.vcard("locality"),state:v.vcard("region"),country:v.vcard("country-name"),homepage:v.foaf("homepage"),lat:v.schema("latitude"),long:v.schema("longitude")};function zn(e){var t=e.type.toLowerCase();if("uri"===t||"iri"===t)return w.store.sym(e.value);if("literal"===t)return e["xml:lang"]?new h.Literal(e.value,e["xml:lang"]):new h.Literal(e.value);throw new Error('bindingToTerm: Unexpected type "'.concat(e.type,'" in sparql binding}'))}function qn(e,t,n,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Mn,r={};Y.Rm("loadFromBindings: subject: ".concat(t)),Y.Rm(" doc: ".concat(a)),n.forEach(function(e){for(var t in e){var n=e[t],a=JSON.stringify(n);r[t]=r[t]||new Set,r[t].add(a)}});var o=function(n){var o=r[n];Y.Rm(" results ".concat(n," -> ").concat(o)),o.forEach(function(r){var o,s=JSON.parse(r),c=s.type,l=s.value;if("uri"===c)o=e.sym(l);else{if("literal"!==c)throw new Error("loadFromBindings: unexpected type: ".concat(c));o=new h.Literal(l,s.language,s.datatype)}if("type"===n)Un[l]?o=Un[l]:Y.R8("Unmapped Wikidata Class: "+l);else if("coordinates"===n){Y.Rm(" @@@ hey a point: "+l);var u=/.*\(([-0-9.-]*) ([-0-9.-]*)\)/.exec(l);if(u){var p=v.xsd("float"),d=new h.Literal(u[1],null,p),m=new h.Literal(u[2],null,p);e.add(t,v.schema("longitude"),m,a),e.add(t,v.schema("latitude"),d,a)}else Y.Rm("Bad coordinates syntax: "+l)}else{var f=i[n]||v.schema(n);e.add(t,f,o,a),Y.Rm(" public data ".concat(f," ").concat(o,"."))}})};for(var s in r)o(s)}function Hn(e){return e._embedded.results.map(function(e){return{name:{value:e.title,type:"literal"},subject:{type:"IRI",value:e.uri}}})}function Gn(e,t,n){return Vn.apply(this,arguments)}function Vn(){return(Vn=b(y().mark(function e(t,n,a){var i,r,o,s,c,l;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a.searchByNameURI){e.next=1;break}throw new Error("Missing queryTarget.searchByNameURI on queryESCODataByName");case 1:return r=a.limit||Tn,o=a.searchByNameURI.replace("$(name)",t).replace("$(limit)",""+r).replace("$(targetClass)",n.toNT()),Y.Rm("Querying ESCO data - uri: "+o),e.next=2,null===(i=w.store.fetcher)||void 0===i?void 0:i.webOperation("GET",o,Bn);case 2:if(s=e.sent,c=(null==s?void 0:s.responseText)||"",Y.Rm(" Query result text"+c.slice(0,500)+"..."),0!==c.length){e.next=3;break}throw new Error("Wot no text back from ESCO query "+o);case 3:return l=JSON.parse(c),Y.Rm(" ESCO Query result JSON"+JSON.stringify(l,null,4).slice(0,500)+"..."),e.abrupt("return",Hn(l));case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Wn(e){var t=e.indexOf("SPARQL-QUERY");if(t<0)return e;Y.R8(" ### Fixing JSON with wikidata error code injection "+e.slice(t,t+200));var n=e.lastIndexOf("}, {");return e.slice(0,n)+" } ] } } "}function Jn(e,t,n,a){return $n.apply(this,arguments)}function $n(){return($n=b(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p,d,m,f,h,v;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=function(e){var a=i.limit||Tn;return e.replace("$(name)",t).replace("$(limit)",""+a).replace("$(language)",o).replace("$(targetClass)",n.toNT())},n){e.next=1;break}throw new Error("queryPublicDataByName: No class provided");case 1:return e.next=2,_n();case 2:if(h=e.sent){e.next=3;break}h=kn;case 3:if(o=h[0]||"en",!i.searchByNameQuery){e.next=4;break}return s=r(i.searchByNameQuery),Y.Rm("Querying public data - sparql: "+s),e.abrupt("return",Qn(s,i));case 4:if(!i.searchByNameURI){e.next=13;break}return c=r(i.searchByNameURI),e.prev=5,e.next=6,null===(u=w.store.fetcher)||void 0===u?void 0:u.webOperation("GET",c,Bn);case 6:l=e.sent,e.next=8;break;case 7:throw e.prev=7,v=e.catch(5),new Error("Exception when trying to fetch ".concat(c," \n ").concat(v));case 8:if(p=l.responseText||"",200===l.status){e.next=9;break}throw new Error("HTTP error status ".concat(l.status," trying to fetch ").concat(c," "));case 9:if(Y.Rm(" Query result text"+p.slice(0,500)+"..."),0!==p.length){e.next=10;break}throw new Error("queryPublicDataByName: No text back from public data query "+c);case 10:if(d=Wn(p),m=JSON.parse(d),Y.Rm(" API Query result JSON"+JSON.stringify(m,null,4).slice(0,500)+"..."),!m._embedded){e.next=11;break}return Y.Rm(" Looks like ESCO"),f=Hn(m),e.abrupt("return",f);case 11:throw alert("Code me: unrecognized API return format"),new Error("*** Need to add code to parse unrecognized API JSON return\n".concat(JSON.stringify(m,null,4)));case 12:e.next=14;break;case 13:throw new Error("Query source must have either rest API or SPARQL endpoint.");case 14:case"end":return e.stop()}},e,null,[[5,7]])}))).apply(this,arguments)}function Qn(e,t){return Zn.apply(this,arguments)}function Zn(){return(Zn=b(y().mark(function e(t,n){var a,i,r,o,s,c,l,u,p,d;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.endpoint){e.next=1;break}throw new Error("Missing queryTarget.endpoint required for queryPublicDataSelect");case 1:return(i=new URL(n.endpoint)).searchParams.append("query",t),r=i.href,Y.Rm(" queryPublicDataSelect uri: "+r),(o=new Headers).append("Accept","application/json"),s={credentials:"omit",headers:o},e.next=2,null===(a=w.store.fetcher)||void 0===a?void 0:a.webOperation("GET",r,s);case 2:if(c=e.sent,0!==(l=(null==c?void 0:c.responseText)||"").length){e.next=3;break}throw new Error("No text back from query "+r);case 3:return u=Wn(l),p=JSON.parse(u),Y.Rm(" Query result JSON"+JSON.stringify(p,null,4).slice(0,100)+"..."),d=p.results.bindings,e.abrupt("return",d);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Kn(e,t,n){return Yn.apply(this,arguments)}function Yn(){return(Yn=b(y().mark(function e(t,n,a){var i,r,o,s,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Y.Rm("queryPublicDataConstruct: sparql:",t),a.endpoint){e.next=1;break}throw new Error("Missing queryTarget.endpoint required for queryPublicDataConstruct");case 1:return(r=new URL(a.endpoint)).searchParams.append("query",t),o=r.href,Y.Rm(" queryPublicDataConstruct uri: "+o),(s=new Headers).append("Accept","text/turtle"),c={credentials:"omit",headers:s},e.next=2,null===(i=w.store.fetcher)||void 0===i?void 0:i.webOperation("GET",o,c);case 2:if(l=e.sent,u=(null==l?void 0:l.responseText)||"No response text?",p=u.length>500?u.slice(0,200)+" ... "+u.slice(-200):u,Y.Rm(" queryPublicDataConstruct result text:"+p),0!==u.length){e.next=3;break}throw new Error("queryPublicDataConstruct: No text back from construct query:"+o);case 3:(0,h.parse)(u,w.store,n.uri,"text/turtle");case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Xn(e,t,n){return ea.apply(this,arguments)}function ea(){return ea=b(y().mark(function e(t,n,a){var i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.uri.startsWith("https://dbpedia.org/resource/")){e.next=1;break}return e.abrupt("return",sa(t,n,a));case 1:if(!a.uri.match(/^https?:\/\/www\.wikidata\.org\/entity\/.*/)){e.next=3;break}return e.next=2,ta(t,n,a);case 2:e.next=4;break;case 3:return i=a.uri.startsWith("http:")?t.sym("https:"+a.uri.slice(5)):a,(r=new Headers).append("Accept","text/turtle"),e.abrupt("return",t.fetcher.load(i,{credentials:"omit",headers:r}));case 4:case"end":return e.stop()}},e)})),ea.apply(this,arguments)}function ta(e,t,n){return na.apply(this,arguments)}function na(){return(na=b(y().mark(function e(t,n,a){var i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=/wd:Q49108/g,r=Nn.replace(i,a.toNT()),e.next=1,Kn(r,a,Pn);case 1:Y.Rm("getWikidataDetails: loaded.",a);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function aa(e,t,n){return ia.apply(this,arguments)}function ia(){return ia=b(y().mark(function e(t,n,a){var i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i='select distinct * where {\n optional { $(subject) wdt:P31 ?targetClass } # instance of\n optional { $(subject) wdt:P154 ?logo }\n optional { $(subject) wdt:P158 ?sealImage }\n# optional { $(subject) wdt:P159 ?headquartersLocation }\n\noptional { $(subject) wdt:P17 ?country }\noptional { $(subject) wdt:P18 ?image }\noptional { $(subject) wdt:P1813 ?shortName }\n\noptional { $(subject) wdt:P355 ?subsidiary }\n# SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it" }\n}'.replace(Ln,a.toNT()),e.next=1,Qn(i,Pn);case 1:r=e.sent,qn(t,a,r,a.doc());case 2:case"end":return e.stop()}},e)})),ia.apply(this,arguments)}function ra(e,t,n){return oa.apply(this,arguments)}function oa(){return oa=b(y().mark(function e(t,n,a){var i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i='select distinct * where {\n\n $(subject) wdt:P276 ?location .\n\n optional { ?location wdt:P2044 ?elevation }\n optional { ?location wdt:P131 ?region }\n optional { ?location wdt:P625 ?coordinates }\noptional { ?location wdt:P17 ?country }\n\n# SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it" }\n}'.replace(Ln,a.toNT()),Y.Rm(" location query sparql:"+i),e.next=1,Qn(i,Pn);case 1:r=e.sent,Y.Rm(" location query bindings:",r),qn(t,a,r,a.doc());case 2:case"end":return e.stop()}},e)})),oa.apply(this,arguments)}function sa(e,t,n){return ca.apply(this,arguments)}function ca(){return ca=b(y().mark(function e(t,n,a){var i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i="select distinct ?city, ?state, ?country, ?homepage, ?logo, ?lat, ?long, WHERE {\n OPTIONAL { <".concat(a,"> <http://dbpedia.org/ontology/city> ?city }\n OPTIONAL { ").concat(a," <http://dbpedia.org/ontology/state> ?state }\n OPTIONAL { ").concat(a," <http://dbpedia.org/ontology/country> ?country }\n OPTIONAL { ").concat(a," foaf:homepage ?homepage }\n OPTIONAL { ").concat(a," foaf:lat ?lat; foaf:long ?long }\n OPTIONAL { ").concat(a," <http://dbpedia.org/ontology/country> ?country }\n }"),e.next=1,Qn(i,On);case 1:r=e.sent,qn(t,a,r,a.doc()),Y.Rm("Finished getDbpediaDetails.");case 2:case"end":return e.stop()}},e)})),ca.apply(this,arguments)}function la(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ua(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ua(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function pa(e,t){e.style.display=t?"":"none"}function da(e,t,n,a){return ma.apply(this,arguments)}function ma(){return ma=b(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p,d,m,f,h,v,x,g,k,C,E,A,_,j,S,T,L,R,N,B,I,O,D,F,P,U,M,z;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(A=function(){n.currentObject?(U.value=n.currentName?n.currentName.value:"??? wot no name for "+n.currentObject,I=n.currentName,R=n.currentName?n.currentName.value:void 0,O=n.currentObject):(U.value="",R=void 0,O=void 0),a.deleteButton&&pa(a.deleteButton,!!n.currentObject),a.acceptButton&&pa(a.acceptButton,!1),a.editButton&&pa(a.editButton,!0),a.cancelButton&&pa(a.cancelButton,!1),T=!1,f()},E=function(){return E=b(y().mark(function e(){var n,a,i,r,o,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=function(e,t){return t.name.value>e.name.value?1:t.name.name<e.name.value?-1:0},n=function(e){var n=t.createElement("tr");_e.setStyle(n,"autocompleteRowStyle"),n.setAttribute("style","padding: 0.3em;"),n.style.color=L?"#080":"#088",n.textContent=e.name.value;var a=zn(e.subject),i=zn(e.name);return n.addEventListener("click",function(){var e=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Y.Rm(" click row textContent: "+n.textContent),Y.Rm(" click name: "+i.value),a&&i&&s(a,i);case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),n},!T){e.next=1;break}return Y.Rm('Ignoring "'.concat(U.value,'" because of lock ')),e.abrupt("return");case 1:return Y.Rm('Setting lock at "'.concat(U.value,'"')),T=!0,e.next=2,_n();case 2:if(i=e.sent,!((r=U.value.trim().toLowerCase()).length<4)){e.next=3;break}f(),N=20,e.next=6;break;case 3:if(L&&R&&r.startsWith(R)){e.next=5;break}return Y.Rm(' Querying database at "'.concat(r,'" cf last "').concat(R,'".')),e.next=4,x(r,i);case 4:j=e.sent;case 5:o=k(r,j),S&&o.length<=40&&(N=o.length),L=S&&o.length<=N,Y.Rm(' Filter:"'.concat(r,'" lastBindings: ').concat(j.length,", slimmed to ").concat(o.length,"; rows: ").concat(N,", Enough? ").concat(S,", All displayed? ").concat(L)),(c=o.slice(0,N)).sort(a),f(),l=la(c);try{for(l.s();!(u=l.n()).done;)p=u.value,D.appendChild(n(p))}catch(e){l.e(e)}finally{l.f()}1===o.length&&s(zn(o[0].subject),zn(o[0].name));case 6:T=!1;case 7:case"end":return e.stop()}},e)})),E.apply(this,arguments)},C=function(){return E.apply(this,arguments)},k=function(e,t){return t.filter(function(t){return m(e,t.name.value)})},g=function(){return(g=b(y().mark(function e(t,a){var i,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,Jn(t,_,a||kn,n.queryParams);case 1:i=e.sent,e.next=3;break;case 2:return e.prev=2,s=e.catch(0),r("Error querying db of organizations: "+s),T=!1,e.abrupt("return");case 3:return S=i.length<Tn,R=S?t:void 0,f(),o=Sn(i,a),e.abrupt("return",o);case 4:case"end":return e.stop()}},e,null,[[0,2]])}))).apply(this,arguments)},x=function(e,t){return g.apply(this,arguments)},v=function(){return(v=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:pa(a.cancelButton,!0),C();case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},h=function(e){return v.apply(this,arguments)},f=function(){for(;D.children.length>1;)D.removeChild(D.lastChild)},m=function(e,t){for(var n=e.split(" "),a=0;a<n.length;a++){var i=n[a];if(t.toLowerCase().indexOf(i)<0)return!1}return!0},d=function(){return(d=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Y.Rm("Auto complete: Canceled by user! "),n.permanent?A():B.parentNode&&B.parentNode.removeChild(B);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},p=function(e){return d.apply(this,arguments)},u=function(){return(u=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:I&&U.value===I.value&&o(O,I);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(e){return u.apply(this,arguments)},c=function(){return(c=b(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.acceptButton){e.next=1;break}return a.acceptButton.disbaled=!1,pa(a.acceptButton,!0),U.value=n.value,I=n,O=t,Y.Rm("Auto complete: name: "+n),Y.Rm("Auto complete: waiting for accept "+t),f(),e.abrupt("return");case 1:pa(a.cancelButton,!0),o(t,n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},s=function(e,t){return c.apply(this,arguments)},o=function(e,t){Y.Rm("Auto complete: finish! "+e),"Literal"===e.termType&&n.queryParams.objectURIBase&&(e=w.store.sym(n.queryParams.objectURIBase.value+e.value)),f(),i(e,t)},r=function(e){var n=D.appendChild(t.createElement("tr"));Y.Rm(e);var a=new Error(e);n.appendChild(ct(t,a,"pink")),_e.setStyle(n,"autocompleteRowStyle"),n.style.padding="1em"},_=n.targetClass){e.next=1;break}throw new Error("renderAutoComplete: missing targetClass");case 1:return a.acceptButton&&a.acceptButton.addEventListener("click",l,!1),a.cancelButton&&a.cancelButton.addEventListener("click",p,!1),S=!1,T=!1,L=!1,R=void 0,N=20,B=t.createElement("div"),I=void 0,O=void 0,(D=B.appendChild(t.createElement("table"))).setAttribute("data-testid","autocomplete-table"),D.setAttribute("style","max-width: 30em; margin: 0.5em;"),F=D.appendChild(t.createElement("tr")),_e.setStyle(F,"autocompleteRowStyle"),P=F.appendChild(t.createElement("td")),(U=P.appendChild(t.createElement("input"))).setAttribute("type","text"),A(),M=n.size||Ae.textInputSize||20,U.setAttribute("size",M),U.setAttribute("data-testid","autocomplete-input"),z=_e.textInputStyle||"border: 0.1em solid #444; border-radius: 0.5em; width: 100%; font-size: 100%; padding: 0.1em 0.6em",U.setAttribute("style",z),U.addEventListener("keyup",function(e){13===e.keyCode&&l(e)},!1),U.addEventListener("input",h),e.abrupt("return",B);case 2:case"end":return e.stop()}},e)})),ma.apply(this,arguments)}function fa(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var va=Re.Pt.iconBase+"noun_34653_green.svg",xa=Re.Pt.iconBase+"noun_Search_875351.svg",ba=Re.Pt.iconBase+"noun_253504.svg";function ga(e,t,n,a,i,r){return ya.apply(this,arguments)}function ya(){return ya=b(y().mark(function e(t,n,a,i,r,o){var s,c,l,u,p,d,m,f,h,x,g,k,C,E,A,_,j,S,T,L,R,N;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(T=function(){S?(pa(j,!1),pa(k,!1),pa(C,!1)):(pa(j,!0),pa(k,!1),pa(C,!1))},g=function(){return(g=b(y().mark(function e(t){var a,i,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=fa(t),e.prev=1,a.s();case 2:if((i=a.n()).done){e.next=4;break}return o=i.value,e.next=3,r(n,o);case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,s=e.catch(1),a.e(s);case 6:return e.prev=6,a.f(),e.finish(6);case 7:case"end":return e.stop()}},e,null,[[1,5,6,7]])}))).apply(this,arguments)},x=function(e){return g.apply(this,arguments)},h=function(){return(h=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!R){e.next=1;break}N.removeChild(R),R=void 0,e.next=2;break;case 1:return e.next=2,d();case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},f=function(e){return h.apply(this,arguments)},m=function(){return(m=b(y().mark(function e(){var n;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(R=t.createElement("div")).setAttribute("style","display: flex; flex-flow: wrap;"),n=R,e.next=1,da(t,i,L,s);case 1:n.appendChild.call(n,e.sent),R.appendChild(k),R.appendChild(C),R.appendChild(j),R.appendChild(E),N.appendChild(R);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},d=function(){return m.apply(this,arguments)},p=function(){R&&(N.removeChild(R),R=void 0)},u=function(){return(u=b(y().mark(function e(a){var i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Ft(t,w.store,N,v.vcard("url"),void 0,"Solid ID");case 1:if(i=e.sent){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",r(n,i));case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(e){return u.apply(this,arguments)},c=function(){return(c=b(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i.permanent?(pa(j,!0),pa(k,!1),pa(C,!1)):p(),e.abrupt("return",r(t,n));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},s=function(e,t){return c.apply(this,arguments)},(k=Dt(t)).setAttribute("data-testid","accept-button"),(C=Ot(t)).setAttribute("data-testid","cancel-button"),E=t.createElement("div"),A=i.targetClass?Z(i.targetClass):"item",(_=Bt(t,E,A,o)).setAttribute("data-testid","delete-button"),(j=It(t,ba,"Edit",function(e){S=!S,T()})).setAttribute("data-testid","edit-button"),S=!0,L={acceptButton:k,cancelButton:C,editButton:j,deleteButton:_},R=void 0,(N=t.createElement("div")).style.display="flex",N.style.flexDirection="row",!i.permanent&&!i.currentObject){e.next=1;break}return e.next=1,d();case 1:return a.editable&&(N.style.width="100%",a.manualURIEntry&&je(N.appendChild(It(t,va,a.idNoun,l)),x,void 0),!a.dbLookup||i.currentObject||i.permanent||N.appendChild(It(t,xa,a.idNoun,f))),T(),e.abrupt("return",N);case 2:case"end":return e.stop()}},e)})),ya.apply(this,arguments)}function wa(e){return function(e){if(Array.isArray(e))return we(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ke(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}
23
+ var t,n,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.toStringTag||"@@toStringTag";function c(e,i,r,o){var s=i&&i.prototype instanceof u?i:u,c=Object.create(s.prototype);return a(c,"_invoke",function(e,a,i){var r,o,s,c=0,u=i||[],p=!1,d={p:0,n:0,v:t,a:m,f:m.bind(t,4),d:function(e,n){return r=e,o=0,s=t,d.n=n,l}};function m(e,a){for(o=e,s=a,n=0;!p&&c&&!i&&n<u.length;n++){var i,r=u[n],m=d.p,f=r[2];e>3?(i=f===a)&&(s=r[(o=r[4])?5:(o=3,3)],r[4]=r[5]=t):r[0]<=m&&((i=e<2&&m<r[1])?(o=0,d.v=a,d.n=r[1]):m<f&&(i=e<3||r[0]>a||a>f)&&(r[4]=e,r[5]=a,d.n=f,o=0))}if(i||e>1)return l;throw p=!0,a}return function(i,u,f){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&m(u,f),o=u,s=f;(n=o<2?t:s)||!p;){r||(o?o<3?(o>1&&(d.n=-1),m(o,s)):d.n=s:d.v=s);try{if(c=2,r){if(o||(i="next"),n=r[i]){if(!(n=n.call(r,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,o<2&&(o=0)}else 1===o&&(n=r.return)&&n.call(r),o<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),o=1);r=t}else if((n=(p=d.n<0)?s:e.call(a,d))!==l)break}catch(e){r=t,o=1,s=e}finally{c=1}}return{value:n,done:p}}}(e,r,o),!0),c}var l={};function u(){}function p(){}function d(){}n=Object.getPrototypeOf;var m=[][o]?n(n([][o]())):(a(n={},o,function(){return this}),n),f=d.prototype=u.prototype=Object.create(m);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,a(e,s,"GeneratorFunction")),e.prototype=Object.create(f),e}return p.prototype=d,a(f,"constructor",d),a(d,"constructor",p),p.displayName="GeneratorFunction",a(d,s,"GeneratorFunction"),a(f),a(f,s,"Generator"),a(f,o,function(){return this}),a(f,"toString",function(){return"[object Generator]"}),(e.exports=i=function(){return{w:c,m:h}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={id:e,loaded:!1,exports:{}};return n[e](r,r.exports,i),r.loaded=!0,r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";i.r(r),i.d(r,{acl:()=>$i,aclControl:()=>Qi,create:()=>Ki,createTypes:()=>d,dom:()=>cu,icons:()=>Re.Pt,infiniteMessageArea:()=>fl,initFooter:()=>iu,initHeader:()=>Gl,language:()=>n,log:()=>e,login:()=>o,matrix:()=>Xi,media:()=>ar,messageArea:()=>Er,ns:()=>v,pad:()=>l,participation:()=>c,preferences:()=>u,style:()=>_e,table:()=>_l,tabs:()=>p,utils:()=>t,widgets:()=>s});var e={};i.r(e),i.d(e,{LogLevel:()=>T,alert:()=>z,clear:()=>q,debug:()=>F,dumpHTML:()=>G,error:()=>U,escapeForXML:()=>J,info:()=>P,logAscending:()=>V,logDescending:()=>W,msg:()=>O,setInternals:()=>$,setLevel:()=>H,success:()=>M,warn:()=>D});var t={};i.r(t),i.d(t,{AJARImage:()=>Ke,RDFComparePredicateObject:()=>rt,RDFComparePredicateSubject:()=>ot,addLoadEvent:()=>$e,ancestor:()=>Ge,beep:()=>De,clearVariableNames:()=>Oe,emptyNode:()=>qe,escapeForXML:()=>tt,findPos:()=>Qe,genUuid:()=>Pe,getAbout:()=>Ve,getEyeFocus:()=>Ze,getTarget:()=>He,getTerm:()=>We,hashColor:()=>Fe,include:()=>Je,label:()=>Z,labelForXML:()=>nt,labelWithOntology:()=>et,newVariableName:()=>Ie,ontologyLabel:()=>Xe,predParentOf:()=>st,predicateLabel:()=>it,predicateLabelForXML:()=>at,shortName:()=>Ye,stackString:()=>ze,syncTableToArray:()=>Ue,syncTableToArrayReOrdered:()=>Me});var n={};i.r(n),i.d(n,{addDefaults:()=>Cn,defaultPreferredLanguages:()=>kn,filterByLanguage:()=>Sn,getPreferredLanguages:()=>_n,getPreferredLanguagesFor:()=>En,languageCodeURIBase:()=>wn});var a={};i.r(a),i.d(a,{AUTOCOMPLETE_LIMIT:()=>Tn,ESCOResultToBindings:()=>Hn,bindingToTerm:()=>zn,dbPediaTypeMap:()=>Dn,dbpediaParameters:()=>On,escoParameters:()=>In,fetcherOptionsJsonPublicData:()=>Bn,getDbpediaDetails:()=>sa,getWikidataDetails:()=>ta,getWikidataDetailsOld:()=>aa,getWikidataLocation:()=>ra,instituteDetailsWikidataQuery:()=>Nn,loadFromBindings:()=>qn,loadPublicDataThing:()=>Xn,queryESCODataByName:()=>Gn,queryPublicDataByName:()=>Jn,queryPublicDataConstruct:()=>Kn,queryPublicDataSelect:()=>Qn,variableNameToPredicateMap:()=>Mn,wikidataClasses:()=>Rn,wikidataIncomingClassMap:()=>Un,wikidataOutgoingClassMap:()=>Fn,wikidataParameters:()=>Pn});var o={};i.r(o),i.d(o,{ensureLoadedPreferences:()=>li,ensureLoadedProfile:()=>pi,ensureLoggedIn:()=>ci,filterAvailablePanes:()=>ji,findAppInstances:()=>mi,getUserRoles:()=>Ai,loginStatusBox:()=>ki,newAppInstance:()=>Ei,registrationControl:()=>vi,registrationList:()=>gi,renderScopeHeadingRow:()=>bi,renderSignInPopup:()=>wi,scopeLabel:()=>hi,selectWorkspace:()=>Ci});var s={};i.r(s),i.d(s,{Group:()=>xr,GroupBuilder:()=>br,GroupPicker:()=>vr,PeoplePicker:()=>hr,Person:()=>gr,addStyleSheet:()=>en,allClassURIs:()=>Jt,appendForm:()=>Ia,askName:()=>Ft,attachmentList:()=>Gt,basicField:()=>yn,buildCheckboxForm:()=>Ja,button:()=>It,cancelButton:()=>Ot,clearElement:()=>bt,complain:()=>xt,continueButton:()=>Dt,createLinkDiv:()=>zt,createLinkForURI:()=>mt,createNameDiv:()=>Mt,defaultAnnotationStore:()=>Wt,deleteButtonWithCheck:()=>Bt,editFormButton:()=>Ba,errorMessageBlock:()=>ct,extractLogURI:()=>gt,faviconOrDefault:()=>Nt,field:()=>dn,fieldFunction:()=>fn,fieldLabel:()=>bn,fieldParams:()=>un,fieldStore:()=>gn,fileUploadButtonDiv:()=>rn,findClosest:()=>Da,findImage:()=>Tt,findImageFromURI:()=>St,formatDateTime:()=>wt,formsFor:()=>Fa,iconForClass:()=>_t,imagesOf:()=>At,index:()=>Xt,isAudio:()=>tn,isImage:()=>an,isVideo:()=>nn,linkButton:()=>Qt,linkIcon:()=>dt,makeDescription:()=>qa,makeDraggable:()=>Se,makeDropTarget:()=>je,makeSelectForCategory:()=>Va,makeSelectForChoice:()=>Qa,makeSelectForClassifierOptions:()=>Ha,makeSelectForNestedCategory:()=>Wa,makeSelectForOptions:()=>Ga,mostSpecificClassURI:()=>mn,newButton:()=>Ma,newThing:()=>$a,openHrefInOutlineMode:()=>Vt,personTR:()=>Pt,promptForNew:()=>za,propertiesForClass:()=>Oa,propertyTriage:()=>$t,publicData:()=>a,refreshTree:()=>Ht,removeButton:()=>Zt,renderAsDiv:()=>qt,renderAsRow:()=>Ut,renderAutoComplete:()=>da,renderAutocompleteControl:()=>ga,renderNameValuePair:()=>xn,selectorPanel:()=>Kt,selectorPanelRefresh:()=>Yt,setImage:()=>Rt,setName:()=>Et,setVisible:()=>pa,shortDate:()=>yt,shortTime:()=>Ct,sortByLabel:()=>Ua,sortBySequence:()=>Pa,timestamp:()=>kt,uploadFiles:()=>Te});var c={};i.r(c),i.d(c,{manageParticipation:()=>yc,participationObject:()=>bc,recordParticipation:()=>gc,renderParticipants:()=>xc});var l={};i.r(l),i.d(l,{getChunks:()=>Ac,lightColorHash:()=>Cc,manageParticipation:()=>yc,notepad:()=>Ec,notepadToHTML:()=>jc,participationObject:()=>bc,recordParticipation:()=>gc,renderParticipants:()=>xc,xmlEncode:()=>_c});var u={};i.r(u),i.d(u,{get:()=>bl,getPreferencesForClass:()=>El,recordPersonalDefaults:()=>wl,recordSharedPreferences:()=>yl,renderPreferencesForm:()=>kl,set:()=>gl,value:()=>xl});var p={};i.r(p),i.d(p,{TabWidgetElement:()=>Il,tabWidget:()=>Dl});var d={};i.r(d);var m=i(386),f=i.n(m),h=i(264);const v=f()(h);function x(e,t,n,a,i,r,o){try{var s=e[r](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,i)}function b(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var r=e.apply(t,n);function o(e){x(r,a,i,o,s,"next",e)}function s(e){x(r,a,i,o,s,"throw",e)}o(void 0)})}}var g=i(756),y=i.n(g),w=i(663),k=1,C=2,E=4,A=8,_=16,j=32,S=63,T=function(e){return e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Message=4]="Message",e[e.Success=8]="Success",e[e.Info=16]="Info",e[e.Debug=32]="Debug",e[e.All=63]="All",e}({}),L=k+C+E,R=!1,N=document,B=window;function I(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mesg";if(L&(arguments.length>1&&void 0!==arguments[1]?arguments[1]:E))if(void 0!==N){var n=N.getElementById("status");if(!n)return;var a=N.createElement("span");a.setAttribute("class",t);var i=new Date;a.innerHTML="".concat(i.getHours(),":").concat(i.getMinutes(),":").concat(i.getSeconds()," [").concat(t,"] ").concat(J(e),"<br/>"),R?n.insertBefore(a,n.firstChild):n.appendChild(a)}else"undefined"!=typeof console&&console.log(e)}function O(e){I(e)}function D(e){I(e,C,"warn")}function F(e){I(e,j,"dbug")}function P(e){I(e,_,"info")}function U(e){I(e,k,"eror")}function M(e){I(e,A,"good")}function z(e){B&&void 0!==B.alert?B.alert(e):D(e)}function q(){var e,t=null===(e=N)||void 0===e?void 0:e.getElementById("status");t&&(t.innerHTML="")}function H(e){L=S,F("Log level is now "+e),L=e}function G(){var e;if(N){var t=L;L=S,F((null===(e=N)||void 0===e||null===(e=e.body)||void 0===e?void 0:e.innerHTML)||""),L=t}}function V(){R=!0}function W(){R=!1}function J(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function $(e,t){B=e,N=t}var Q={log:e,ns:v,rdf:h};function Z(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(e){return t?e.slice(0,1).toUpperCase()+e.slice(1):e}function a(e){var t="";"/"===e.slice(-1)&&(e=e.slice(0,-1));for(var a=0;a<e.length;a++)"_"!==e[a]&&"-"!==e[a]?(t+=e[a],a+1<e.length&&e[a].toUpperCase()!==e[a]&&e[a+1].toLowerCase()!==e[a+1]&&(t+=" ")):t+=" ";return"has "===t.slice(0,4)&&(t=t.slice(4)),n(t)}var i=function(e){return w.store.any(e,Q.ns.ui("label"))||w.store.any(e,Q.ns.link("message"))||w.store.any(e,Q.ns.vcard("fn"))||w.store.any(e,Q.ns.foaf("name"))||w.store.any(e,Q.ns.dct("title"))||w.store.any(e,Q.ns.dc("title"))||w.store.any(e,Q.ns.rss("title"))||w.store.any(e,Q.ns.contact("fullName"))||w.store.any(e,w.store.sym("http://www.w3.org/2001/04/roadmap/org#name"))||w.store.any(e,Q.ns.cal("summary"))||w.store.any(e,Q.ns.foaf("nick"))||w.store.any(e,Q.ns.as("name"))||w.store.any(e,Q.ns.schema("name"))||w.store.any(e,Q.ns.rdfs("label"))||w.store.any(e,w.store.sym("http://www.w3.org/2004/02/skos/core#prefLabel"))}(e);if(i)return n(i.value);if("BlankNode"===e.termType)return"...";if("Collection"===e.termType)return"("+e.elements.length+")";var r=e.uri;if(void 0===r)return e.toString();try{r=r.split("/").map(decodeURIComponent).join("/")}catch(e){for(var o=r.length-3;o>0;o--)for(var s="0123456789abcefABCDEF";"%"===r[o]&&s.indexOf(r[o+1])>=0&&s.indexOf(r[o+2])>=0;)r=r.slice(0,o)+String.fromCharCode(parseInt(r.slice(o+1,o+3),16))+r.slice(o+3)}r=K(r,"/profile/card#me"),r=K(r,"#this");var c=(r=K(r,"#me")).indexOf("#");if(c>=0)return a(r.slice(c+1));var l=r.lastIndexOf("/",r.length-2);return l>=0&&l<e.uri.length?a(r.slice(l+1)):n(decodeURIComponent(e.uri))}function K(e,t){var n=-1*t.length;return e.slice(n)===t?e.slice(0,n):e}var Y=i(423),X=w.solidLogicSingleton.store;function ee(e,t,n,a){var i=v.acl,r="/"===e.uri.slice(-1),o=X.each(void 0,i("default"),n,a).concat(X.each(void 0,i("defaultForNew"),n,a)).reduce(function(t,n){return t.concat(X.statementsMatching(n,v.rdf("type"),i("Authorization"),a)).concat(X.statementsMatching(n,i("agent"),void 0,a)).concat(X.statementsMatching(n,i("agentClass"),void 0,a)).concat(X.statementsMatching(n,i("agentGroup"),void 0,a)).concat(X.statementsMatching(n,i("origin"),void 0,a)).concat(X.statementsMatching(n,i("originClass"),void 0,a)).concat(X.statementsMatching(n,i("mode"),void 0,a)).concat((0,h.st)(n,i("accessTo"),e,a)).concat(r?(0,h.st)(n,i("default"),e,a):[])},[]),s=(0,h.graph)();return o.forEach(function(e){return s.add(c(e.subject),c(e.predicate),c(e.object),(0,h.sym)(t.uri))}),s;function c(e){var n=a.uri.length;return(0,h.sym)(e.uri.slice(0,n)===a.uri?t.uri+e.uri.slice(n):e.uri)}}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:X,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?function(t,n){return t.each(void 0,n.acl("default"),e).concat(t.each(void 0,n.acl("defaultForNew"),e))}(n,v):n.each(void 0,v.acl("accessTo"),e),i=v.acl,r={agent:{},agentClass:{},agentGroup:{},origin:{},originClass:{}};return Object.keys(r).forEach(function(e){a.forEach(function(t){n.each(t,i("mode")).forEach(function(a){n.each(t,i(e)).forEach(function(n){r[e][n.uri]=r[e][n.uri]||{},r[e][n.uri][a.uri]=t})})})}),r}function ne(e,t){var n=function(e,t){for(var n in{agent:!0,agentClass:!0,agentGroup:!0,origin:!0,originClass:!0})if(e[n])for(var a in e[n])for(var i in e[n][a])if(!t[n][a]||!t[n][a][i])return!1;return!0};return n(e,t)&&n(t,e)}function ae(e){for(var t,n,a=e[0],i=function(i){["agent","agentClass","agentGroup","origin","originClass"].forEach(function(r){if((t=e[i])[r])for(n in t[r])for(var o in t[r][n])a[r][n]||(a[r][n]=[]),a[r][n][o]=!0})},r=1;r<e.length;r++)i(r);return a}function ie(e,t){var n=[],a=function(e){e.length?de(e.shift().doc(),function(i,r,o,s,c,l){var u=!r;if(!i||!c||!l)return t(i,s);var p=u?te(c,l):te(o,s);n.push(p),a(e.slice(1))}):t(!0,ae(n))};a(e)}function re(e){var t={};return["agent","agentClass","agentGroup","origin","originClass"].forEach(function(n){for(var a in e[n]){var i=[];for(var r in e[n][a])i.push(r);i.sort();var o=i.join("\n");t[o]||(t[o]=[]),t[o].push([n,a])}}),t}function oe(e,t,n,a){return se(e,t,re(n),a)}function se(e,t,n,a,i,r){var o=v.acl;for(var s in n){var c=n[s];if(c.length){var l=s.split("\n"),u=l.map(function(e){return e.split("#")[1]}).join("");r&&!i&&(u+="Default");var p=e.sym(a.uri+"#"+u);e.add(p,v.rdf("type"),o("Authorization"),a),i&&e.add(p,o("accessTo"),t,a),r&&e.add(p,o("default"),t,a);for(var d=0;d<l.length;d++)e.add(p,o("mode"),e.sym(l[d]),a);for(var m=0;m<c.length;m++){var f=c[m][0],h=c[m][1];e.add(p,o(f),e.sym(h),a)}}}}function ce(e){var t="";for(var n in e){t+=n.split("\n").map(function(e){return e.split("#")[1][0]}).join("")+":";for(var a=e[n],i=0;i<a.length;i++){var r=a[i][0],o=(0,h.sym)(a[i][1]);t+="agent"===r?"@":"",t+=o.sameTerm(v.foaf("Agent"))?"*":Z(o),i<a.length-1&&(t+=",")}t+=";"}return"{"+t.slice(0,-1)+"}"}function le(e,t,n,a,i){return ue(e,t,re(n),a,i)}function ue(e,t,n,a,i){var r,o=(0,h.graph)();se(o,t,n,a,!0),null===(r=e.updater)||void 0===r||r.put(a,o.statementsMatching(void 0,void 0,void 0,a),"text/turtle",function(r,o,s){var c;o?(null===(c=e.fetcher)||void 0===c||c.unload(a),se(e,t,n,a,!0),e.fetcher.requested[a.uri]="done",i(o)):i(o,s)})}function pe(e,t,n,a){n=n||Y.Rm;var i=e.doc();de(i,function(r,o,s,c,l,u){if(!r||!l||!u)return a(!1,c);var p=o?te(s,c):te(l,u);ie(t,function(t,r){if(!t)return a(!1,r);ne(r,p)?n("Nice - same ACL. no change "+Z(e)+" "+i):(n("Group ACLs differ for "+Z(e)+" "+i),le(X,s,r,c,a))})})}function de(e,t){me(e,function(n,a,i,r){var o=v.acl;if(!n)return t(!1,!1,a,r);var s=function(n){"/"===n.slice(-1)&&(n=n.slice(0,-1));var a=n.lastIndexOf("/");if(n.indexOf("/",n.indexOf("//")+2)>a)return t(!1,!0,404,"Found no ACL resource");n=n.slice(0,a+1);var r=(0,h.sym)(n);me(r,function(a,c,l){if(!a)return t(!1,!0,c,"( No ACL pointer ".concat(n," ").concat(c,")").concat(l));if(403===c)return t(!1,!0,c,"( default ACL file FORBIDDEN. Stop.".concat(n,")"));if(404===c)return s(n);if(200!==c)return t(!1,!0,c,"Error status '".concat(c,"' searching for default for ").concat(r));if(!X.each(void 0,o("default"),X.sym(n),l).concat(X.each(void 0,o("defaultForNew"),X.sym(n),l)).length)return s(n);var u=X.sym(n);return t(!0,!1,e,i,u,l)})};return n?404!==a?403===a?t(!1,!1,a,"(Sharing not available to you)".concat(r)):200!==a?t(!1,!1,a,"Error ".concat(a," accessing Access Control information for ").concat(e,": ").concat(r)):t(!0,!0,e,i):void s(e.uri):t(!1,!1,a,"Error accessing Access Control information for ".concat(e,") ").concat(r))})}function me(e,t){if(!X.fetcher)throw new Error("kb has no fetcher");X.fetcher.nowOrWhenFetched(e,void 0,function(n,a){if(!n)return t(n,"Can't get headers to find ACL for ".concat(e,": ").concat(a));var i=X.any(e,w.ACL_LINK);if(i){if(!X.fetcher)throw new Error("kb has no fetcher");if(X.fetcher.nonexistent[i.value])return t(!0,404,i,"ACL file ".concat(i," does not exist."));X.fetcher.nowOrWhenFetched(i,void 0,function(e,n,a){e?t(!0,200,i):t(!0,a.status,i,"Can't read Access Control File ".concat(i,": ").concat(n))})}else t(!1,900,"No Link rel=ACL header for ".concat(e))})}function fe(e){return he.apply(this,arguments)}function he(){return(he=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,n){return de((0,h.sym)(t),function(a,i,r,o,s){return a?e(i?r:s):n(new Error("Error loading ".concat(t)))})}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e){return xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xe(e)}function be(e){var t=function(e,t){if("object"!=xe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=xe(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xe(t)?t:t+""}function ge(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,be(a.key),a)}}function ye(e,t,n){return t&&ge(e.prototype,t),n&&ge(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ke(e,t){if(e){if("string"==typeof e)return we(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?we(e,t):void 0}}function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,s=[],c=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(e,t)||ke(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ee=i(49);const Ae={highlightColor:"#7C4DFF",formBorderColor:"#888888",formHeadingColor:"#888888",lowProfileLinkColor:"#3B5998",formFieldNameBoxWidth:"8em",mediaModuleCanvasWidth:"640",mediaModuleCanvasHeight:"480",textInputSize:20,tabBorderRadius:"0.2em",textInputBackgroundColor:"#eef",textInputBackgroundColorUneditable:"#fff",textInputColor:"#000",textInputColorPending:"#888",defaultErrorBackgroundColor:"#fee",participationDefaultBackground:"white",basicMaxLength:"4096"};var _e={checkboxStyle:"color: black; font-size: 100%; padding-left: 0.5 em; padding-right: 0.5 em;",checkboxInputStyle:"font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; border-radius:0.2em; margin: 0.1em;",fieldLabelStyle:"color: #3B5998; text-decoration: none;",formSelectStyle:"background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;",textInputStyle:"background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;",textInputStyleUneditable:"background-color: white; padding: 0.5em; border: .05em solid white; border-radius:0.2em; font-size: 100%; margin:0.4em;",buttonStyle:"background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;",commentStyle:"padding: 0.7em; border: none; font-size: 100%; white-space: pre-wrap;",iconStyle:"width: 3em; height: 3em; margin: 0.1em; border-radius: 1em;",smallButtonStyle:"margin: 0.2em; width: 1em; height:1em;",classIconStyle:"width: 3em; height: 3em; margin: 0.1em; border-radius: 0.2em; border: 0.1em solid green; padding: 0.2em; background-color: #efe;",confirmPopupStyle:"padding: 0.7em; border-radius: 0.2em; border: 0.1em solid orange; background-color: white; box-shadow: 0.5em 0.9em #888;",messageBodyStyle:"white-space: pre-wrap; width: 99%; font-size:100%; border: 0.07em solid #eee; border-radius:0.2em; padding: .3em 0.5em; margin: 0.1em;",pendingeditModifier:"color: #bbb;",personaBarStyle:"width: 100%; height: 4em; background-color: #eee; vertical-align: middle;",searchInputStyle:"border: 0.1em solid #444; border-radius: 0.2em; width: 100%; font-size: 100%; padding: 0.1em 0.6em; margin 0.2em;",autocompleteRowStyle:"border: 0.2em solid straw;",signInAndUpButtonStyle:"padding: 1em; border-radius:0.2em; font-size: 100%;",headerBannerLoginInput:"margin: 0.75em 0 0.75em 0.5em !important; padding: 0.5em !important;",signUpBackground:"background-color: #eef;",signInBackground:"background-color: #efe;",heading1Style:"font-size: 180%; font-weight: bold; color: #888888; padding: 0.5em; margin: 0.7em 0.0m;",heading2Style:"font-size: 130%; font-weight: bold; color: #888888; padding: 0.4em; margin: 0.7em 0.0em;",heading3Style:"font-size: 120%; font-weight: bold; color: #888888; padding: 0.3em; margin: 0.7em 0.0em;",heading4Style:"font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;",formHeadingStyle:"font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;",formTextInput:"font-size: 100%; margin: 0.1em; padding: 0.1em;",formGroupStyle:["padding-left: 0em; border: 0.0em solid ".concat(Ae.formBorderColor,"; border-radius: 0.2em;"),"padding-left: 2em; border: 0.05em solid ".concat(Ae.formBorderColor,"; border-radius: 0.2em;"),"padding-left: 2em; border: 0.1em solid ".concat(Ae.formBorderColor,"; border-radius: 0.2em;"),"padding-left: 2em; border: 0.2em solid ".concat(Ae.formBorderColor,"; border-radius: 0.2em;")],formFieldLabelStyle:"color: ".concat(Ae.lowProfileLinkColor,"; text-decoration: none;"),formFieldNameBoxStyle:"padding: 0.3em; vertical-align: middle; width:".concat(Ae.formFieldNameBoxWidth,";"),multilineTextInputStyle:"font-size:100%; white-space: pre-wrap; background-color: #eef; border: 0.07em solid gray; padding: 1em 0.5em; margin: 1em 1em;",renderAsDivStyle:"display: flex; align-items: center; justify-content: space-between; height: 2.5em; padding: 1em;",imageDivStyle:"width:2.5em; padding:0.5em; height: 2.5em;",linkDivStyle:"width:2em; padding:0.5em; height: 4em;",aclControlBoxContainer:"margin: 1em;",aclControlBoxHeader:"font-size: 120%; margin: 0 0 1rem;",aclControlBoxStatus:"display: none; margin: 1rem 0;",aclControlBoxStatusRevealed:"display: block;",aclGroupContent:"maxWidth: 650;",accessGroupList:"display: grid; grid-template-columns: 1fr; margin: 1em; width: 100%;",accessGroupListItem:"display: grid; grid-template-columns: 100px auto 30%;",defaultsController:"display: flex;",defaultsControllerNotice:"color: #888; flexGrow: 1; fontSize: 80%;",bigButton:"background-color: white; border: 0.1em solid #888; border-radius: 0.3em; max-width: 50%; padding-bottom: 1em; padding-top: 1em;",group:"color: #888;",group1:"color: green;",group2:"color: #cc0;",group3:"color: orange;",group5:"color: red;",group9:"color: blue;",group13:"color: purple;",trustedAppAddApplicationsTable:"background-color: #eee;",trustedAppCancelButton:"float: right;",trustedAppControllerI:"border-color: orange; border-radius: 1em; border-width: 0.1em;",temporaryStatusInit:"background: green;",temporaryStatusEnd:"background: transparent; transition: background 5s linear;",headerUserMenuLink:"background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none;",headerUserMenuLinkHover:"background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%);",headerUserMenuTrigger:"background: none; border: 0; cursor: pointer; width: 60px; height: 60px;",headerUserMenuTriggerImg:"border-radius: 50%; height: 56px; width: 28px !important;",headerUserMenuButton:"background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%;",headerUserMenuButtonHover:"background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%);",headerUserMenuList:"list-style: none; margin: 0; padding: 0;",headerUserMenuListDisplay:"list-style: none; margin: 0; padding: 0; display:true;",headerUserMenuNavigationMenu:"background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: true;",headerUserMenuNavigationMenuNotDisplayed:"background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: none;",headerUserMenuListItem:"border-bottom: solid 1px #000000;",headerUserMenuPhoto:"border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: cover; height: 50px; width: 50px;",headerBanner:"box-shadow: 0px 1px 4px #000000; display: flex; justify-content: space-between; padding: 0 1.5em; margin-bottom: 4px;",headerBannerLink:"display: block;",headerBannerRightMenu:"display: flex;",headerBannerLogin:"margin-left: auto;",allChildrenVisible:"display:true;",headerBannerUserMenu:"border-left: solid 1px #000000; margin-left: auto;",headerBannerHelpMenu:"border-left: solid 1px #000000; margin-left: auto;",headerBannerIcon:"background-size: 65px 60px !important; height: 60px !important; width: 65px !important;",footer:"border-top: solid 1px $divider-color; font-size: 0.9em; padding: 0.5em 1.5em;",primaryButton:"background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;",primaryButtonHover:"background-color: #9f7dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;",primaryButtonNoBorder:"background-color: #ffffff; color: #7c4dff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;",primaryButtonNoBorderHover:"background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;",secondaryButton:"background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;",secondaryButtonHover:"background-color: #37cde6; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;",secondaryButtonNoBorder:"background-color: #ffffff; color: #01c9ea; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;",secondaryButtonNoBorderHover:"background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out;",controlStyle:"border-radius: 0.5em; margin: 0.8em; width:".concat(Ae.mediaModuleCanvasWidth,"; height:").concat(Ae.mediaModuleCanvasHeight,";"),dragEvent:"background-color: #ccc; border: 0.25em dashed black; border-radius: 0.3em;",dropEvent:"background-color: white; border: 0em solid black;",restoreStyle:"background-color: white;",errorCancelButton:"width: 2em; height: 2em; align: right;",errorMessageBlockStyle:"margin: 0.1em; padding: 0.5em; border: 0.05em solid gray; color:black;",notepadStyle:"padding: 1em; overflow: auto; resize: horizontal; min-width: 40em;",upstreamStatus:"width: 50%;",downstreamStatus:"width: 50%;",baseStyle:"font-size: 100%; font-family: monospace; width: 100%; border: none; white-space: pre-wrap;",headingCore:"font-family: sans-serif; font-weight: bold; border: none;",headingStyle:["font-size: 110%; padding-top: 0.5em; padding-bottom: 0.5em; width: 100%;","font-size: 120%; padding-top: 1em; padding-bottom: 1em; width: 100%;","font-size: 150%; padding-top: 1em; padding-bottom: 1em; width: 100%;"],participantsStyle:"margin: 0.8em;",participantsBlock:"height: 1.5em; width: 1.5em; margin: 0.3em; border 0.01em solid #888;",personTableTD:"vertical-align: middle;",tabsNavElement:"margin: 0;",tabsRootElement:"display: flex; height: 100%; width: 100%;",tabsMainElement:"margin: 0; width:100%; height: 100%;",tabContainer:"list-style-type: none; display: flex; height: 100%; width: 100%; margin: 0; padding: 0;",makeNewSlot:"background: none; border: none; font: inherit; cursor: pointer;",ellipsis:"position: absolute; right: 0; bottom: 0; width: 20%; background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit;"};function je(e,t,n){var a=function(e){e.preventDefault(),e.dataTransfer.dropEffect="copy"},i=function(e){Y.Rm("dragenter event dropEffect: "+e.dataTransfer.dropEffect),this.localStyle&&(this.savedStyle||(this.savedStyle=_e.dragEvent)),e.dataTransfer.dropEffect="link",Y.Rm("dragenter event dropEffect 2: "+e.dataTransfer.dropEffect)},r=function(e){Y.Rm("dragleave event dropEffect: "+e.dataTransfer.dropEffect),this.savedStyle?this.localStyle=this.savedStyle:this.localStyle=_e.dropEvent},o=function(e){e.preventDefault&&e.preventDefault(),Y.Rm("Drop event. dropEffect: "+e.dataTransfer.dropEffect),Y.Rm("Drop event. types: "+(e.dataTransfer.types?e.dataTransfer.types.join(", "):"NOPE"));var a,i=null;if(e.dataTransfer.types){for(var r=0;r<e.dataTransfer.types.length;r++){var o=e.dataTransfer.types[r];if("text/uri-list"===o)i=e.dataTransfer.getData(o).split("\n"),Y.Rm("Dropped text/uri-list: "+i);else if("text/plain"===o)a=e.dataTransfer.getData(o);else if("Files"===o&&n){for(var s=e.dataTransfer.files,c=0;s[c];c++){var l=s[c];Y.Rm("Filename: "+l.name+", type: "+(l.type||"n/a")+" size: "+l.size+" bytes, last modified: "+(l.lastModifiedDate?l.lastModifiedDate.toLocaleDateString():"n/a"))}n(s)}}null===i&&a&&"http"===a.slice(0,4)&&(i=a,Y.Rm("Waring: Poor man's drop: using text for URI"))}else i=[e.dataTransfer.getData("Text")],Y.Rm("WARNING non-standard drop event: "+i[0]);return Y.Rm("Dropped URI list (2): "+i),i&&t(i),this.localStyle=_e.restoreStyle,!1};!function(e){e||Y.Rm("@@@ addTargetListeners: ele "+e),e.addEventListener("dragover",a),e.addEventListener("dragenter",i),e.addEventListener("dragleave",r),e.addEventListener("drop",o)}(e)}function Se(e,t){e.setAttribute("draggable","true"),e.addEventListener("dragstart",function(n){e.style.fontWeight="bold",n.dataTransfer.setData("text/uri-list",t.uri),n.dataTransfer.setData("text/plain",t.uri),n.dataTransfer.setData("text/html",e.outerHTML),Y.Rm("Dragstart: "+e+" -> "+t+"de: "+n.dataTransfer.dropEffect)},!1),e.addEventListener("drag",function(e){e.preventDefault(),e.stopPropagation()},!1),e.addEventListener("dragend",function(n){e.style.fontWeight="normal",Y.Rm("Dragend dropeffect: "+n.dataTransfer.dropEffect),Y.Rm("Dragend: "+e+" -> "+t)},!1)}function Te(e,t,n,a,i){for(var r=0;t[r];r++){var o=t[r];Y.Rm(" dropped: Filename: "+o.name+", type: "+(o.type||"n/a")+" size: "+o.size+" bytes, last modified: "+(o.lastModifiedDate?o.lastModifiedDate.toLocaleDateString():"n/a"));var s=new FileReader;s.onload=function(t){return function(r){var o=r.target.result,s="";Y.Rm(" File read byteLength : "+o.byteLength);var c=t.type;if(t.type&&""!==t.type){var l=Ee.extension(t.type);l&&"false"!==l&&!t.name.endsWith("."+l)&&t.type!==Ee.lookup(t.name)&&(s="_."+l)}else if(!(c=Ee.lookup(t.name))){var u="Filename needs to have an extension which gives a type we know: "+t.name;throw Y.Rm(u),alert(u),new Error(u)}var p=t.type.startsWith("image/")&&a||n,d=p+(p.endsWith("/")?"":"/")+encodeURIComponent(t.name)+s;e.webOperation("PUT",d,{data:o,contentType:c}).then(function(e){Y.Rm(" Upload: put OK: "+d),i(t,d)},function(e){var t=" Upload: FAIL "+d+", Error: "+e;throw Y.Rm(t),alert(t),new Error(t)})}}(o),s.readAsArrayBuffer(o)}}_e.setStyle=function(e,t){e.style=_e[t]};var Le,Re=i(378),Ne={log:e,ns:v,rdf:h},Be=0;function Ie(){return"v"+Be++}function Oe(){Be=0}function De(){if(Le){var e=new Le;return function(t,n,a,i){t=+(t||.3),a=a||"sine","function"!=typeof i&&(i=function(){});var r=e.createOscillator();r.type=a,r.frequency.value=n||256,r.connect(e.destination),r.start(0),r.stop(t)}}}function Fe(e){e=e.uri||e;var t;return"#"+(16777215&(t=e,t.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0))|12632256).toString(16)}function Pe(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function Ue(e,t,n){var a,i,r;for(r=0;r<e.children.length;r++)(i=e.children[r]).trashMe=!0;for(var o=0;o<t.length;o++){var s=t[o];for(a=!1,r=0;r<e.children.length;r++)if((i=e.children[r]).subject&&i.subject.sameTerm(s)){i.trashMe=!1,a=!0;break}if(!a){var c=n(s);if(o>=e.children.length)e.appendChild(c);else{var l=e.children[o];e.insertBefore(c,l)}c.subject=s}}for(r=0;r<e.children.length;r++)(i=e.children[r]).trashMe&&e.removeChild(i)}function Me(e,t,n){for(var a={},i=0;i<e.children.length;i++){var r=e.children[i];a[r.subject.toNT()]=r}for(var o=0;o<t.length;o++){var s=t[o];if(o>=e.children.length){var c=n(s);c.subject=s,e.appendChild(c)}else{var l=e.children[o];if(l.subject.sameTerm(s));else{var u=a[s.toNT()];if(u)e.removeChild(u),e.insertBefore(u,l);else{var p=n(s);l.before(p),p.subject=s}}}}for(;e.children.length>t.length;)e.removeChild(e.children[e.children.length-1])}function ze(e){var t,n=e+"\n";if(!e.stack)return n+"No stack available.\n";var a=e.stack.toString().split("\n"),i=[];for(t=0;t<a.length;t++){var r=a[t];if(r.indexOf("ecmaunit.js")>-1)break;"("===r.charAt(0)&&(r="function"+r);var o=r.split("@");i.push(o)}for(t=0;t<i.length;t++)n+=" "+i[t][1]+"\n "+i[t][0];return n}function qe(e){for(var t=e.childNodes,n=t.length-1;n>=0;n--)e.removeChild(t[n]);return e}function He(e){var t;return(e=e||window.event).target?t=e.target:e.srcElement&&(t=e.srcElement),3===t.nodeType&&(t=t.parentNode),t}function Ge(e,t){var n;for(n=e;n;n=n.parentNode)try{if(n.tagName===t)return n}catch(e){return}}function Ve(e,t){var n,a;for(n=t;n&&1===n.nodeType;n=n.parentNode)if(a=n.getAttribute("about"))return e.fromNT(a);Ne.log.debug("getAbout: No about found")}function We(e){var t=e.parentNode,n=t?t.AJAR_statement:void 0;switch(n?e.className:""){case"pred":case"pred selected":return n.predicate;case"obj":case"obj selected":return t.AJAR_inverse?n.subject:n.object;case"":case"selected":return Ve(w.store,e);case"undetermined selected":return e.nextSibling?n.predicate:t.AJAR_inverse?n.subject:n.object}}function Je(e,t){var n=e.createElement("script");return n.setAttribute("type","text/javascript"),n.setAttribute("src",t),n}function $e(e){var t=window.onload;"function"!=typeof window.onload?window.onload=e:window.onload=function(){t(),e()}}function Qe(e){var t=e.ownerDocument.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return[n.left-t.left,n.top-t.top]}function Ze(e,t,n,a){a||(a=window);var i=Qe(e)[1],r=window.SolidAppContext||{},o=i-(r&&r.scroll||52)-a.scrollY;if(t)return n?void a.scrollBy(0,i+e.clientHeight-(a.scrollY+a.innerHeight)):void a.scrollBy(0,o);var s=a.setInterval(function(){a.scrollBy(0,o/10),10===++c&&a.clearInterval(s)},50),c=0}function Ke(e,t,n,a){a||(a=document);var i=a.createElement("img");return i.setAttribute("src",e),i.addEventListener("copy",function(e){e.clipboardData.setData("text/plain",""),e.clipboardData.setData("text/html",""),e.preventDefault()}),void 0!==n&&i.setAttribute("title",n),i}function Ye(e){var t=e;"#/".indexOf(t[t.length-1])>=0&&(t=t.slice(0,-1));var n,a=[];for(var i in this.prefixes)a[this.prefixes[i]]=i;var r,o=function(e){return"ns"!==e&&(n=e,!0)},s=t.lastIndexOf("#");for(s>=0&&(t=t.slice(s-1));;){var c=t.lastIndexOf("/");for(c>=0&&(t=t.slice(c+1)),r=0;r<t.length&&this.prefixchars.indexOf(t[r]);)r++;if((t=t.slice(0,r)).length<6&&o(t))return n;if(o(t.slice(0,3)))return n;if(o(t.slice(0,2)))return n;if(o(t.slice(0,4)))return n;if(o(t.slice(0,1)))return n;if(o(t.slice(0,5)))return n;for(r=0;;r++)if(o(t.slice(0,3)+r))return n}}function Xe(e){if(void 0===e.uri)return"??";var t,n=e.uri,a=[],i=n.lastIndexOf("#");if(i>=0)n=n.slice(0,i+1);else{if(!((i=n.lastIndexOf("/"))>=0))return e.uri+"?!";n=n.slice(0,i+1)}for(var r in Ne.ns)a[Ne.ns[r]]=r;try{return a[n]}catch(e){}for(n=n.slice(0,-1);n;){if(!((i=n.lastIndexOf("/"))>=0))return e.uri+"!?";if(t=n.slice(i+1),n=n.slice(0,i),"ns"!==t&&"0123456789".indexOf(t[0])<0)return t}}function et(e,t){var n=w.store.findTypeURIs(e);return n[Ne.ns.rdf("Predicate").uri]||n[Ne.ns.rdfs("Class").uri]?Z(e,t)+" ("+Xe(e)+")":Z(e,t)}function tt(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;")}function nt(e){return tt(Z(e))}function at(e,t){return tt(it(e,t))}function it(e,t){var n=Z(e);if(t){var a=w.store.any(e,Ne.ns.owl("inverseOf"))||w.store.any(void 0,Ne.ns.owl("inverseOf"),e);return a?Z(a):"type"===n?"...":"is "+n+" of"}return n}function rt(e,t){var n=e.predicate.compareTerm(t.predicate);return 0!==n?n:e.object.compareTerm(t.object)}function ot(e,t){var n=e.predicate.compareTerm(t.predicate);return 0!==n?n:e.subject.compareTerm(t.subject)}function st(e){for(var t=e;;){if(t.getAttribute("predTR"))return t;if(!t.previousSibling||"TR"!==t.previousSibling.nodeName)return Ne.log.error("Could not find predParent"),e;t=t.previousSibling}}function ct(e,t,n,a){var i=e.createElement("div"),r=a||t instanceof Error?t:null;return r?(console.error("errorMessageBlock: ".concat(r," at: ").concat(r.stack||"??"),r),i.textContent=r.message):i.textContent=t,i.appendChild(Ot(e,function(){i.parentNode&&i.parentNode.removeChild(i)})).style=_e.errorCancelButton,i.setAttribute("style",_e.errorMessageBlockStyle),i.style.backgroundColor=n||Ae.defaultErrorBackgroundColor,i}"undefined"!=typeof AudioContext?Le=AudioContext:"undefined"!=typeof window&&(Le=window.AudioContext||window.webkitAudioContext);var lt=function(e,t,n){var a=e.createElement("tr");return a.appendChild(e.createElement("td")).appendChild(t),a.subject=n,a},ut=function(e,t){e.addEventListener("click",t)},pt=function(e,t,n){var a=t.appendChild(e.createElement("div"));a.setAttribute("style",_e.imageDivStyle),a.appendChild(n),n.setAttribute("draggable","false")};function dt(e,t,n){var a=e.createElement("a");a.setAttribute("href",t.uri),t.uri.startsWith("http")&&a.setAttribute("target","_blank");var i=a.appendChild(e.createElement("img"));return i.setAttribute("src",n||Re.i1+"go-to-this.png"),i.setAttribute("style","margin: 0.3em;"),a}var mt=function(e,t,n){var a=dt(e,n);t.appendChild(a).classList.add("HoverControlHide"),t.appendChild(e.createElement("br"))},ft=Re.Pt.iconBase,ht=ft+"noun_1180156.svg",vt=ft+"noun_1180158.svg";function xt(e,t){if(t){var n=function(e){var t=e&&e.statusArea||e&&e.div||null;if(t)return t;var n=e&&e.dom;if(n||"undefined"==typeof document||(n=document),n){var a=n.getElementsByTagName("body")[0];return t=n.createElement("div"),a.insertBefore(t,a.firstElementChild),e&&(e.statusArea=t),t}return null}(e);Y.Rm("Complaint: "+t),n?n.appendChild(ct(e&&e.dom||document,t)):alert(t)}}function bt(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function gt(e){var t=e.search(/logFile=/),n=e.search(/&rulesFile=/);return e.substring(t+8,n)}function yt(e,t){if(!e)return"???";try{var n=(new Date).toISOString();return e.slice(0,10)!==n.slice(0,10)||t?e.slice(0,4)===n.slice(0,4)?["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][parseInt(e.slice(5,7),10)-1]+" "+parseInt(e.slice(8,10),10):e.slice(0,10):e.slice(11,16)}catch(e){return"shortdate:"+e}}function wt(e,t){return t.split("{").map(function(t){var n=t.split("}")[0];return t?("000"+(e["get"+n]()+({Month:1}[n]||0))).slice(-({Milliseconds:3,FullYear:4}[n]||2))+t.split("}")[1]:""}).join("")}function kt(){return wt(new Date,"{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}")}function Ct(){return wt(new Date,"{Hours}:{Minutes}:{Seconds}.{Milliseconds}")}function Et(e,t){var n=w.store,a=function(e){var t=n.any(e,v.vcard("fn"))||n.any(e,v.foaf("name"))||n.any(e,v.vcard("organization-name"));return t?t.value:null},i=t.sameTerm(v.foaf("Agent"))?"Everyone":a(t);if(e.textContent=i||Z(t),!i&&t.uri){if(!n.fetcher)throw new Error("kb has no fetcher");n.fetcher.nowOrWhenFetched(t.doc(),void 0,function(n){e.textContent=a(t)||Z(t)})}}function At(e,t){return t.each(e,v.sioc("avatar")).concat(t.each(e,v.foaf("img"))).concat(t.each(e,v.vcard("logo"))).concat(t.each(e,v.vcard("hasPhoto"))).concat(t.each(e,v.vcard("photo"))).concat(t.each(e,v.foaf("depiction")))}var _t={"solid:AppProviderClass":"noun_144.svg","solid:AppProvider":"noun_15177.svg","solid:Pod":"noun_Cabinet_1434380.svg","vcard:Group":"noun_339237.svg","vcard:Organization":"noun_143899.svg","vcard:Individual":"noun_15059.svg","schema:Person":"noun_15059.svg","foaf:Person":"noun_15059.svg","foaf:Agent":"noun_98053.svg","acl:AuthenticatedAgent":"noun_99101.svg","prov:SoftwareAgent":"noun_Robot_849764.svg","vcard:AddressBook":"noun_15695.svg","trip:Trip":"noun_581629.svg","meeting:LongChat":"noun_1689339.svg","meeting:Meeting":"noun_66617.svg","meeting:Project":"noun_1036577.svg","ui:Form":"noun_122196.svg","rdfs:Class":"class-rectangle.svg","rdf:Property":"property-diamond.svg","owl:Ontology":"noun_classification_1479198.svg","wf:Tracker":"noun_122196.svg","wf:Task":"noun_17020_gray-tick.svg","wf:Open":"noun_17020_sans-tick.svg","wf:Closed":"noun_17020.svg"};function jt(e){var t=e.uri.split("#")[0],n=t.indexOf("//");if(n<0)throw new Error("This URI does not have a web site part (origin)");var a=t.indexOf("/",n+2);return a<0?t.slice(0)+"/":t.slice(0,a+1)}function St(e){var t=ft;return"string"!=typeof e&&e.uri?4!==e.uri.split("/").length||e.uri.split("/")[1]||e.uri.split("/")[3]?e.uri.startsWith("message:")||e.uri.startsWith("mid:")?t+"noun_480183.svg":e.uri.startsWith("mailto:")?t+"noun_567486.svg":e.uri.startsWith("https:")&&e.uri.indexOf("#")<0?jt(e)+"favicon.ico":null:t+"noun_15177.svg":t+"noun_10636_grey.svg"}function Tt(e){var t=w.store,n=ft;if(e.sameTerm(v.foaf("Agent"))||e.sameTerm(v.rdf("Resource")))return n+"noun_98053.svg";var a=t.any(e,v.sioc("avatar"))||t.any(e,v.foaf("img"))||t.any(e,v.vcard("logo"))||t.any(e,v.vcard("hasPhoto"))||t.any(e,v.vcard("photo"))||t.any(e,v.foaf("depiction"));return a?a.uri:null}function Lt(e,t,n){var a=w.store,i=Tt(t);if(i)return e.setAttribute("src",i),!0;var r=n[t.uri];if(r)return e.setAttribute("src",r),e.style=_e.classIconStyle,!0;var o=St(t);if(o)return e.setAttribute("src",o),!0;var s=a.findTypeURIs(t);for(var c in s)if(n[c])return e.setAttribute("src",n[c]),!1;return e.setAttribute("src",ft+"noun_10636_grey.svg"),!1}function Rt(e,t){var n=w.store,a={};for(var i in _t){var r=i.split(":")[0],o=i.split(":")[1],s=v[r](o);a[s.uri]=h.uri.join(_t[i],ft)}if(!Lt(e,t,a)&&t.uri){if(!n.fetcher)throw new Error("kb has no fetcher");n.fetcher.nowOrWhenFetched(t.doc(),void 0,function(n){n&&Lt(e,t,a)})}}function Nt(e,t){var n=e.createElement("img");n.style=_e.iconStyle;if(n.setAttribute("src",ft+(function(e){if(!e.uri)return!1;var t=e.uri.split("/");return 3===t.length||4===t.length&&""===t[3]}(t)?"noun_15177.svg":"noun_681601.svg")),t.uri&&t.uri.startsWith("https:")&&t.uri.indexOf("#")<0){var a=e.createElement("object");return a.setAttribute("data",jt(t)+"favicon.ico"),a.setAttribute("type","image/x-icon"),a.appendChild(n),a}return Rt(n,t),n}function Bt(e,t,n,a){var i=ft+"noun_2188_red.svg",r=e.createElement("img");r.setAttribute("src",i),r.setAttribute("style",_e.smallButtonStyle),r.style.float="right";var o="Remove this "+n;return r.title=o,r.classList.add("hoverControlHide"),r.addEventListener("click",function(){var n=e.createElement("div");t.insertBefore(n,r),n.style.position="relative",n.appendChild(function(e,t,n,a){function i(){t.parentElement.removeChild(t)}function r(){i(),a()}var o=e.createElement("div");o.style=_e.confirmPopupStyle,o.style.position="absolute",o.style.top="-1em",o.style.display="grid",o.style.gridTemplateColumns="auto auto";var s=e.createElement("div");s.style.gridColumn="1/2",s.style.gridRow="1";var c=e.createElement("div");c.style.gridColumn="1/2",c.style.gridRow="2";var l=Ot(e,i);o.appendChild(l),l.style.gridColumn="1",l.style.gridRow="2";var u=o.appendChild(e.createElement("button"));u.style=_e.buttonStyle,u.style.gridRow="2",u.style.gridColumn="2",u.textContent="Cancel";var p=It(e,Re.Pt.iconBase+"noun_925021.svg","Delete it");o.appendChild(p),p.style.gridRow="1",p.style.gridColumn="1";var d=o.appendChild(e.createElement("button"));return d.style=_e.buttonStyle,d.style.gridRow="1",d.style.gridColumn="2",d.textContent=n,o.appendChild(d),p.addEventListener("click",r),d.addEventListener("click",r),u.addEventListener("click",i),o}(e,n,o,a))}),t.classList.add("hoverControl"),t.appendChild(r),r.setAttribute("data-testid","deleteButtonWithCheck"),r}function It(e,t,n,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{buttonColor:"Primary",needsBorder:!1},r=e.createElement("button");if(r.setAttribute("type","button"),t){var o=r.appendChild(e.createElement("img"));o.setAttribute("src",t),o.setAttribute("style","width: 2em; height: 2em;"),o.title=n,r.setAttribute("style",_e.buttonStyle)}else r.textContent=n.toLocaleUpperCase(),r.onmouseover=function(){"Secondary"===i.buttonColor?i.needsBorder?r.setAttribute("style",_e.secondaryButtonNoBorderHover):r.setAttribute("style",_e.secondaryButtonHover):i.needsBorder?r.setAttribute("style",_e.primaryButtonNoBorderHover):r.setAttribute("style",_e.primaryButtonHover)},r.onmouseout=function(){"Secondary"===i.buttonColor?i.needsBorder?r.setAttribute("style",_e.secondaryButtonNoBorder):r.setAttribute("style",_e.secondaryButton):i.needsBorder?r.setAttribute("style",_e.primaryButtonNoBorder):r.setAttribute("style",_e.primaryButton)},"Secondary"===i.buttonColor?i.needsBorder?r.setAttribute("style",_e.secondaryButtonNoBorder):r.setAttribute("style",_e.secondaryButton):i.needsBorder?r.setAttribute("style",_e.primaryButtonNoBorder):r.setAttribute("style",_e.primaryButton);return a&&r.addEventListener("click",a,!1),r}function Ot(e,t){var n=It(e,ht,"Cancel",t);return n.firstChild&&(n.firstChild.style.opacity="0.3"),n}function Dt(e,t){return It(e,vt,"Continue",t)}function Ft(e,t,n,a,i,r){return new Promise(function(t,o){var s=e.createElement("div");a=a||v.foaf("name");var c=(r=r||(i?Z(i):" "))+" "+Z(a)+": ";s.appendChild(e.createElement("p")).textContent=c;var l=e.createElement("input");function u(){s.parentNode.removeChild(s),t(l.value.trim())}l.setAttribute("type","text"),l.setAttribute("size","100"),l.setAttribute("maxLength","2048"),l.setAttribute("style",_e.textInputStyle),l.select(),s.appendChild(l),n.appendChild(s),l.addEventListener("keyup",function(e){13===e.keyCode&&u()},!1),s.appendChild(e.createElement("br")),s.appendChild(Ot(e,function(e){s.parentNode.removeChild(s),t(null)})),s.appendChild(Dt(e,function(e){u()})),l.focus()})}var Pt=Ut;function Ut(e,t,n,a){var i=e.createElement("tr");a=a||{};var r=i.appendChild(e.createElement("td")),o=i.appendChild(e.createElement("td")),s=i.appendChild(e.createElement("td")),c=a.image||Nt(e,n);if(r.setAttribute("style","vertical-align: middle; width:2.5em; padding:0.5em; height: 2.5em;"),o.setAttribute("style","vertical-align: middle; text-align:left;"),s.setAttribute("style","vertical-align: middle; width:2em; padding:0.5em; height: 4em;"),r.appendChild(c),a.title?o.textContent=a.title:Et(o,n),a.deleteFunction&&Bt(e,s,a.noun||"one",a.deleteFunction),n.uri){if(!1!==a.link)s.appendChild(dt(e,n)).classList.add("HoverControlHide"),s.appendChild(e.createElement("br"));!1!==a.draggable&&(c.setAttribute("draggable","false"),Se(i,n))}return i.subject=n,i}function Mt(e,t,n,a){var i=t.appendChild(e.createElement("div"));n?i.textContent=n:Et(i,a)}function zt(e,t,n,a){var i=t.appendChild(e.createElement("div"));i.setAttribute("style",_e.linkDivStyle),a.deleteFunction&&Bt(e,i,a.noun||"one",a.deleteFunction),n.uri&&(!1!==a.link&&mt(e,i,n),Se(t,n))}function qt(e,t,n){var a=e.createElement("div");a.setAttribute("style",_e.renderAsDivStyle);var i=(n=n||{}).image||Nt(e,t);return pt(e,a,i),Mt(e,a,n.title,t),zt(e,a,t,n),n.clickable&&n.onClickFunction&&ut(a,n.onClickFunction),n.wrapInATR?lt(e,a,t):a}function Ht(e){if(e.refresh)e.refresh();else for(var t=0;t<e.children.length;t++)Ht(e.children[t])}function Gt(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};function i(n){var a=n,i={noun:d};return l&&(i.deleteFunction=function(){!function(e){if(!m.updater)throw new Error("kb has no updater");m.updater.update((0,h.st)(t,p,e,c),[],function(e,t,n,a){t?r():xt(void 0,"Error deleting one: "+n)})}(a)}),Pt(e,p,n,i)}var r=function(){var e=m.each(t,p);e.sort(),Ue(g,e,i)};function o(e){var n=[];if(e.forEach(function(e){var a=(0,h.sym)(e);Y.Rm("Dropped on attachemnt "+e),n.push((0,h.st)(t,p,a,c))}),!m.updater)throw new Error("kb has no updater");m.updater.update([],n,function(e,t,n,a){t?r():xt(void 0,"Error adding one: "+n)})}function s(e){var n,i;Te(m.fetcher,e,null===(n=a.uploadFolder)||void 0===n?void 0:n.uri,null===(i=a.uploadFolder)||void 0===i?void 0:i.uri,function(e,n){var a=[(0,h.st)(t,p,m.sym(n),c)];if(!m.updater)throw new Error("kb has no updater");m.updater.update([],a,function(e,t,n,a){t?r():xt(void 0,"Error adding link to uploaded file: "+n)})})}var c=a.doc||t.doc();void 0===a.modify&&(a.modify=!0);var l=a.modify,u=a.promptIcon||ft+"noun_748003.svg",p=a.predicate||v.wf("attachment"),d=a.noun||"attachment",m=w.store,f=n.appendChild(e.createElement("table"));f.setAttribute("style","margin-top: 1em; margin-bottom: 1em;");var x=f.appendChild(e.createElement("tr")),b=x.appendChild(e.createElement("td")),g=x.appendChild(e.createElement("td")).appendChild(e.createElement("table"));if(g.appendChild(e.createElement("tr")),f.refresh=r,r(),l){var y=It(e,u,"Drop attachments here");b.appendChild(y);var k=a.uploadFolder?s:null;if(je(y,o,k),je(b,o,k),a.uploadFolder){var C=rn(e,s);b.appendChild(C)}}return f}function Vt(e){e.preventDefault(),e.stopPropagation();var t=He(e).getAttribute("href");if(!t)return Y.Rm("openHrefInOutlineMode: No href found!\n");var n=window.document;n.outlineManager?n.outlineManager.GotoSubject(w.store.sym(t),!0,void 0,!0,void 0):window&&window.panes&&window.panes.getOutliner?window.panes.getOutliner().GotoSubject(w.store.sym(t),!0,void 0,!0,void 0):Y.Rm("ERROR: Can't access outline manager in this config")}function Wt(e){if(void 0!==e.uri){var t=e.uri;if("http://"===t.slice(0,7)){var n=(t=t.slice(7)).indexOf("#");if(n>=0)t=t.slice(0,n);else{var a=t.lastIndexOf("/");if(a<0)return;t=t.slice(0,a)}return w.store.sym("http://tabulator.org/wiki/annnotation/"+t)}}}function Jt(){var e={};return w.store.statementsMatching(void 0,v.rdf("type"),void 0).forEach(function(t){t.object.value&&(e[t.object.value]=!0)}),w.store.statementsMatching(void 0,v.rdfs("subClassOf"),void 0).forEach(function(t){t.object.value&&(e[t.object.value]=!0),t.subject.value&&(e[t.subject.value]=!0)}),w.store.each(void 0,v.rdf("type"),v.rdfs("Class")).forEach(function(t){t.value&&(e[t.value]=!0)}),e}function $t(e){var t={},n={},a={},i=0,r=0,o=0,s=e.predicateIndex;for(var c in s){"Literal"===s[c][0].object.termType?(n[c]=!0,r++):(a[c]=!0,i++)}for(var l=e.each(void 0,v.rdf("type"),v.rdf("Property")),u=0;u<l.length;u++){var p=l[u].toNT();a[p]||n[p]||(n[p]=!0,a[p]=!0,o++)}return t.op=a,t.dp=n,P("propertyTriage: ".concat(i," non-lit, ").concat(r," literal. ").concat(o," unknown.")),t}function Qt(e,t){var n=e.createElement("button");return n.setAttribute("type","button"),n.textContent="Goto "+Z(t),n.addEventListener("click",function(n){e.outlineManager.GotoSubject(t,!0,void 0,!0,void 0)},!0),n}function Zt(e,t){var n=e.createElement("button");return n.setAttribute("type","button"),n.textContent="✕",n.addEventListener("click",function(e){t.parentNode.removeChild(t)},!0),n}function Kt(e,t,n,a,i,r,o,s,c){return Yt(e.createElement("div"),e,t,n,a,i,r,o,s,c)}function Yt(e,t,n,a,i,r,o,s,c,l){var u="border: 0.1em solid #ddd; border-bottom: none; width: 95%; height: 2em; padding: 0.5em;",p=null;e.innerHTML="";for(var d=function(e,o){var d,m,f=function(){var e=r?n.each(void 0,i,o):n.each(o,i);b.setAttribute("class",0===e.length?"hideTillHover":""),m.setAttribute("src",s.connectIcon||ft+"noun_25830.svg"),m.setAttribute("title",e.length?e.length:"attach")},h=Xt.twoLine.widgetForClass(a);(d=h(t,o)).setAttribute("style",u);var v=t.createElement("div");v.setAttribute("class","hideTillHover"),v.setAttribute("style","float:right; width:10%");var x=t.createElement("a");x.setAttribute("href",o.uri),x.setAttribute("style","float:right"),v.appendChild(x).textContent=">",e.appendChild(v);var b=t.createElement("div");return b.setAttribute("style",(r?"float:left;":"float:right;")+" width:30px;"),m=t.createElement("img"),f(),b.appendChild(m),e.appendChild(b),d.addEventListener("click",function(e){p===d?(d.setAttribute("style",u),p=null):(p&&p.setAttribute("style",u),d.setAttribute("style",u+"background-color: #ccc; color:black;"),p=d),c(o,e,p===d),f()},!1),m.addEventListener("click",function(e){l(o,e,r,f)},!1),e.appendChild(d),e},m=0;m<o.length;m++){var f=t.createElement("div");e.appendChild(f),d(f,o[m])}return e}var Xt={};function en(e,t){for(var n=e.querySelectorAll("link"),a=0;a<n.length;a++)if("stylesheet"===(n[a].getAttribute("rel")||"")&&(n[a].getAttribute("href")||"")===t)return;var i=e.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href",t),e.getElementsByTagName("head")[0].appendChild(i)}function tn(e){return an(e,"audio")}function nn(e){return an(e,"video")}function an(e,t){var n=t||"image",a=w.store.findTypeURIs(e),i=h.Util.mediaTypeClass(n+"/*").uri.split("*")[0];for(var r in a)if(r.startsWith(i))return!0;return{audio:"http://purl.org/dc/dcmitype/Sound",image:"http://purl.org/dc/dcmitype/Image",video:"http://purl.org/dc/dcmitype/MovingImage"}[n]in a}function rn(e,t){var n=e.createElement("div"),a=n.appendChild(e.createElement("input"));return a.setAttribute("type","file"),a.setAttribute("multiple","true"),a.addEventListener("change",function(e){Y.Rm("File drop event: ",e),e.files?t(e.files):e.target&&e.target.files?t(e.target.files):alert("Sorry no files .. internal error?")},!1),a.style="display:none",je(n.appendChild(It(e,ft+"noun_Upload_76574_000000.svg","Upload files",function(e){a.click()})),null,t),n}function on(e,t,n){return(t=be(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Xt={line:{},twoLine:{"":function(e,t){var n=e.createElement("div");return n.textContent=Z(t),n},"http://www.w3.org/2000/10/swap/pim/qif#Transaction":function(e,t){var n="",a=function(e){var a=w.store.any(t,v.qu(e));return a||(n+="@@ No value for "+e+"! "),a?tt(a.value):"?"},i=e.createElement("table");return i.innerHTML='\n <tr>\n <td colspan="2"> '.concat(a("payee"),"</td>\n < /tr>\n < tr >\n <td>").concat(a("date").slice(0,10),'</td>\n <td style = "text-align: right;">').concat(a("amount"),"</td>\n </tr>"),n&&(i.innerHTML='\n <tr>\n <td><a href="'.concat(tt(t.uri),'">').concat(tt(n),"</a></td>\n </tr>")),i},"http://www.w3.org/ns/pim/trip#Trip":function(e,t){var n=function(e){var n=w.store.any(t,e);return n?tt(n.value):"?"},a=e.createElement("table");return a.innerHTML='\n <tr>\n <td colspan="2">'.concat(n(v.dc("title")),'</td>\n </tr>\n <tr style="color: #777">\n <td>').concat(n(v.cal("dtstart")),"</td>\n <td>").concat(n(v.cal("dtend")),"</td>\n </tr>"),a},widgetForClass:function(e){var t=Xt.twoLine[e.uri],n=w.store;if(t)return t;var a=n.findSuperClassesNT(e);for(var i in a)if(t=Xt.twoLine[n.fromNT(i).uri])return t;return Xt.twoLine[""]}}};const sn={authEndpoint:"",fallbackAuthEndpoint:"https://databox.me/",signupEndpoint:"https://solidproject.org/get_a_pod",signupWindowHeight:600,signupWindowWidth:1024,key:"",cert:""};function cn(e){this.config=e||sn}var ln;cn.prototype.listen=function(){return new Promise(function(e,t){var n=window.addEventListener?"addEventListener":"attachEvent";(0,window[n])("attachEvent"===n?"onmessage":"message",function(n){var a=n.data;if("User:"===a.slice(0,5)){var i=a.slice(5,a.length);return i&&i.length>0&&"http"===i.slice(0,4)?e(i):t(i)}},!0)})},cn.prototype.signup=function(e){e=e||this.config.signupEndpoint;var t=this.config.signupWindowWidth,n=this.config.signupWindowHeight,a=window.screen.width/2-(t/2+10),i=window.screen.height/2-(n/2+50),r=e+"?origin="+encodeURIComponent(window.location.origin),o="resizable,scrollbars,status,width="+t+",height="+n+",left="+a+",top="+i;window.open(r,"Solid signup",o);var s=this;return new Promise(function(e){s.listen().then(function(t){return e(t)})})};var un=(on(on(on(on(on(on(on(on(on(on(ln={},v.ui("ColorField").uri,{size:9,type:"color",style:"height: 3em;",dt:"color",pattern:/^\s*#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]([0-9a-f][0-9a-f])?\s*$/}),v.ui("DateField").uri,{size:20,type:"date",dt:"date",pattern:/^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?Z?\s*$/}),v.ui("DateTimeField").uri,{size:20,type:"datetime-local",dt:"dateTime",pattern:/^\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?(T[0-2][0-9]:[0-5][0-9](:[0-5][0-9])?)?Z?\s*$/}),v.ui("TimeField").uri,{size:10,type:"time",dt:"time",pattern:/^\s*([0-2]?[0-9]:[0-5][0-9](:[0-5][0-9])?)\s*$/}),v.ui("IntegerField").uri,{size:12,style:"text-align: right;",dt:"integer",pattern:/^\s*-?[0-9]+\s*$/}),v.ui("DecimalField").uri,{size:12,style:"text-align: right;",dt:"decimal",pattern:/^\s*-?[0-9]*(\.[0-9]*)?\s*$/}),v.ui("FloatField").uri,{size:12,style:"text-align: right;",dt:"float",pattern:/^\s*-?[0-9]*(\.[0-9]*)?((e|E)-?[0-9]*)?\s*$/}),v.ui("SingleLineTextField").uri,{}),v.ui("NamedNodeURIField").uri,{namedNode:!0}),v.ui("TextField").uri,{}),on(on(on(on(on(ln,v.ui("PhoneField").uri,{size:20,uriPrefix:"tel:",pattern:/^\+?[\d-]+[\d]*$/}),v.ui("EmailField").uri,{size:30,uriPrefix:"mailto:",pattern:/^\s*.*@.*\..*\s*$/}),v.ui("Group").uri,{style:_e.formGroupStyle}),v.ui("Comment").uri,{element:"p",style:_e.commentStyle}),v.ui("Heading").uri,{element:"h3",style:_e.formHeadingStyle})),pn=w.solidLogicSingleton.store,dn={};function mn(e){var t=pn,n=t.findTypeURIs(e),a=t.bottomTypeURIs(n),i=[];for(var r in a)i.push(r);return i[0]}function fn(e,t){var n=mn(t),a=dn[n];return F("paneUtils: Going to implement field "+t+" of type "+n),a||function(e,a){var i=ct(e,"No handler for field "+t+" of type "+n);return a&&a.appendChild(i),i}}var hn="https://www.w3.org/ns/css#";var vn=w.solidLogicSingleton.store;function xn(e,t,n,a,i){n.style.display="flex",n.style.flexDirection="row";var r=n.appendChild(e.createElement("div"));r.style.width=Ae.formFieldNameBoxWidth;var o=n.appendChild(e.createElement("div"));return r.setAttribute("class","formFieldName"),r.setAttribute("style",_e.formFieldNameBoxStyle),o.setAttribute("class","formFieldValue"),i?r.appendChild(e.createTextNode(i)):t.any(a,v.ui("property"))?r.appendChild(bn(e,t.any(a,v.ui("property")),a)):(o.appendChild(ct(e,"No property or label given for form field: "+a)),r.appendChild(e.createTextNode("???"))),o}function bn(e,t,n){var a=vn.any(n,v.ui("label"));if(a||(a=Z(t,!0)),void 0===t)return e.createTextNode("@@Internal error: undefined property");var i=e.createElement("a");return t.uri&&i.setAttribute("href",t.uri),i.setAttribute("style","color: #3B5998; text-decoration: none;"),i.textContent=a,i}function gn(e,t,n){var a=vn.statementsMatching(e,t);if(0===a.length)return n;if(!vn.updater)throw new Error("Store has no updater");return a.length>0&&a[0].why.value&&vn.updater.editable(a[0].why.value,vn)?vn.sym(a[0].why.value):n}function yn(e,t,n,a,i,r,o){var s=vn,c=i.doc?i.doc():null,l=e.createElement("div"),u=s.any(i,v.ui("property"));if(t&&t.appendChild(l),!u)return l.appendChild(ct(e,"Error: No property given for text field: "+i));var p=xn(e,s,l,i),d=s.anyJS(i,v.ui("suppressEmptyUneditable"),null,c),m=mn(i),f=un[m];void 0===f&&(f={style:""});var x=f.style||"",b=_e.textInputStyle+x,g=e.createElement("input");g.style=b,p.appendChild(g),g.setAttribute("type",f.type?f.type:"text");var y=s.anyJS(i,v.ui("size"))||Ae.textInputSize||20;g.setAttribute("size",y);var w=s.any(i,v.ui("maxLength"));g.setAttribute("maxLength",w?""+w:Ae.basicMaxLength),r=r||gn(a,u,r);var k=s.any(a,u,void 0,r);if(k||(k=s.any(i,v.ui("default"))),k&&k.value&&f.uriPrefix?g.value=decodeURIComponent(k.value.replace(f.uriPrefix,"")).replace(/ /g,""):k&&(g.value=k.value||k.value||""),g.setAttribute("style",b),!s.updater)throw new Error("kb has no updater");return s.updater.editable(r.uri)?(g.addEventListener("keyup",function(e){f.pattern&&g.setAttribute("style",b+(g.value.match(f.pattern)?"color: green;":"color: red;"))},!0),g.addEventListener("change",function(t){if(!f.pattern||g.value.match(f.pattern)){g.disabled=!0,g.setAttribute("style",b+"color: gray;");var n,i=s.statementsMatching(a,u);f.namedNode?n=s.sym(g.value):f.uriPrefix?(n=encodeURIComponent(g.value.replace(/ /g,"")),n=s.sym(f.uriPrefix+g.value)):n=f.dt?new h.Literal(g.value.trim(),void 0,v.xsd(f.dt)):new h.Literal(g.value);var c=i.map(function(e){return(0,h.st)(e.subject,e.predicate,n,e.why)});0===c.length&&(c=[(0,h.st)(a,u,n,r)]),function e(t,n,a){var i=[];if(n.forEach(function(e){i.includes(e.why.uri)||i.push(e.why.uri)}),t.forEach(function(e){i.includes(e.why.uri)||i.push(e.why.uri)}),0===i.length)throw new Error("updateMany has no docs to patch");if(!s.updater)throw new Error("kb has no updater");if(1===i.length)return s.updater.update(t,n,a);var r=i.pop(),o=n.filter(function(e){return e.why.uri===r}),c=n.filter(function(e){return e.why.uri!==r}),l=t.filter(function(e){return e.why.uri===r}),u=t.filter(function(e){return e.why.uri!==r});s.updater.update(l,o,function(t,n,i){n?e(u,c,a):a(t,n,i)})}(i,c,function(t,n,a){n?(g.disabled=!1,g.setAttribute("style",b)):l.appendChild(ct(e,a)),o(n,a)})}},!0),l):(g.readOnly=!0,g.style=_e.textInputStyleUneditable+x,d&&""===g.value&&(l.style.display="none"),l)}var wn="https://www.w3.org/ns/iana/language-code/",kn=["en","fr","de","it","ar"];function Cn(e){return e||(e=[]),e.concat(kn.filter(function(t){return!e.includes(t)}))}function En(e){return An.apply(this,arguments)}function An(){return(An=b(y().mark(function e(t){var n,a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.doc(),e.next=1,null===(n=w.store.fetcher)||void 0===n?void 0:n.load(a);case 1:if(i=w.store.any(t,v.schema("knowsLanguage"),null,a)){e.next=2;break}return e.abrupt("return",kn);case 2:if(r=[],i.elements.forEach(function(e){var t=w.store.any(e,v.solid("publicId"),null,a);if(t)if(t.value.startsWith(wn)){var n=t.value.slice(wn.length);r.push(n)}else console.error("What should be a language code ".concat(t.value," does not start with ").concat(wn));else console.warn("getPreferredLanguages: No publiID of language.")}),!(r.length>0)){e.next=3;break}return console.log(' User knows languages with codes: "'.concat(r.join(","),'"')),e.abrupt("return",Cn(r));case 3:return e.abrupt("return",null);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function _n(){return jn.apply(this,arguments)}function jn(){return(jn=b(y().mark(function e(){var t,n;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.authn.currentUser();case 1:if(!(t=e.sent)){e.next=3;break}return e.next=2,En(t);case 2:if(!(n=e.sent)){e.next=3;break}return e.abrupt("return",n);case 3:if("undefined"==typeof navigator){e.next=5;break}if(!navigator.languages){e.next=4;break}return e.abrupt("return",Cn(navigator.languages.map(function(e){return e.split("-")[0]})));case 4:if(!navigator.language){e.next=5;break}return e.abrupt("return",Cn([navigator.language.split("-")[0]]));case 5:return e.abrupt("return",kn);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Sn(e,t){var n={};e.forEach(function(e){var t=e.subject.value;n[t]=n[t]||[],n[t].push(e)});var a=t||kn;a.reverse();var i=[];for(var r in n){var o=n[r].map(function(e){var t=e.name["xml:lang"];return[a.indexOf(t),e]});o.sort(),o.reverse(),i.push(o[0][1])}return Y.Rm(" Filter by language: ".concat(e.length," -> ").concat(i.length)),i}var Tn=200,Ln=/\$\(subject\)/g,Rn={Corporation:"http://www.wikidata.org/entity/Q6881511",EducationalOrganization:"http://www.wikidata.org/entity/Q178706",GovernmentOrganization:"http://www.wikidata.org/entity/Q327333",MedicalOrganization:"http://www.wikidata.org/entity/Q4287745",MusicGroup:"http://www.wikidata.org/entity/Q32178211",NGO:"http://www.wikidata.org/entity/Q163740",Occupation:"http://www.wikidata.org/entity/Q28640",Project:"http://www.wikidata.org/entity/Q170584",ResearchOrganization:"http://www.wikidata.org/entity/Q31855",SportsOrganization:"http://www.wikidata.org/entity/Q4438121"},Nn='prefix vcard: <http://www.w3.org/2006/vcard/ns#>\nCONSTRUCT\n{ wd:Q49108 vcard:fn ?itemLabel.\nwd:Q49108 rdf:type ?klass. ?klass rdfs:label ?klassLabel; rdfs:comment ?klassDescription .\nwd:Q49108 schema:logo ?logo;\n schema:image ?image;\n schema:logo ?sealImage;\n schema:subOrganization ?subsidiary .\n ?subsidiary rdfs:label ?subsidiaryLabel .\n ?supersidiary schema:subOrganization wd:Q49108 .\n ?supersidiary rdfs:label ?supersidiaryLabel .\n wd:Q49108 schema:location ?location .\n ?location schema:elevation ?elevation .\n ?location wdt:P131 ?region . ?region rdfs:label ?regionLabel .\n ?location wdt:P625 ?coordinates .\n ?location schema:country ?country . ?country rdfs:label ?countryLabel .\n}\nWHERE\n{ optional {wd:Q49108 rdfs:label ?itemLabel} .\n optional {wd:Q49108 wdt:P154 ?logo .}\n optional {wd:Q49108 wdt:P31 ?klass .}\n optional {wd:Q49108 wdt:P158 ?sealImage .}\n optional {wd:Q49108 wdt:P18 ?image .}\n\n optional { wd:Q49108 wdt:P355 ?subsidiary . }\n optional { ?supersidiary wdt:P355 wd:Q49108. }\n\n optional { wd:Q49108 wdt:P276 ?location .\n\n optional { ?location schema:eleveation ?elevation }\n optional { ?location wdt:P131 ?region }\n optional { ?location wdt:P625 ?coordinates }\n optional { ?location wdt:P17 ?country }\n }\n SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it". }\n}',Bn={credentials:"omit",headers:new Headers({Accept:"application/json"})},In={label:"ESCO",logo:w.store.sym("https://ec.europa.eu/esco/portal/static_resource2/images/logo/logo_en.gif"),searchByNameURI:"https://ec.europa.eu/esco/api/search?language=$(language)&type=occupation&text=$(name)"},On={label:"DBPedia",logo:w.store.sym("https://upload.wikimedia.org/wikipedia/commons/thumb/7/73/DBpediaLogo.svg/263px-DBpediaLogo.svg.png"),searchByNameQuery:'select distinct ?subject, ?name where {\n ?subject a $(targetClass); rdfs:label ?name\n FILTER regex(?name, "$(name)", "i")\n } LIMIT $(limit)',endpoint:"https://dbpedia.org/sparql/"},Dn={AcademicInsitution:"http://umbel.org/umbel/rc/EducationalOrganization"},Fn={AcademicInsitution:"http://www.wikidata.org/entity/Q4671277",Enterprise:"http://www.wikidata.org/entity/Q6881511",Business:"http://www.wikidata.org/entity/Q4830453",NGO:"http://www.wikidata.org/entity/Q79913",CharitableOrganization:"http://www.wikidata.org/entity/Q708676",Insitute:"http://www.wikidata.org/entity/Q1664720"},Pn={label:"WikiData",limit:3e3,logo:w.store.sym("https://www.wikimedia.org/static/images/project-logos/wikidatawiki.png"),endpoint:"https://query.wikidata.org/sparql",searchByNameQuery:'SELECT ?subject ?name\n WHERE {\n ?klass wdt:P279* $(targetClass) .\n ?subject wdt:P31 ?klass .\n ?subject rdfs:label ?name.\n FILTER regex(?name, "$(name)", "i")\n } LIMIT $(limit) ',insitituteDetailsQuery:'CONSTRUCT\n{ wd:Q49108 schema:name ?itemLabel;\n schema:logo ?logo;\n schema:logo ?sealImage;\n schema:subOrganization ?subsidiary .\n ?subsidiary schema:name ?subsidiaryLabel .\n}\nWHERE\n{\n wd:Q49108 # rdfs:label ?itemLabel ;\n wdt:P154 ?logo;\n wdt:P158 ?sealImage ;\n wdt:P355 ?subsidiary .\n # ?subsidiary rdfs:label ?subsidiaryLabel .\n\n SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE], fr". }\n}'},Un={"http://www.wikidata.org/entity/Q15936437":v.schema("CollegeOrUniversity"),"http://www.wikidata.org/entity/Q1664720":v.schema("EducationalOrganization"),"http://www.wikidata.org/entity/Q43229":v.schema("Organization"),"http://www.wikidata.org/entity/Q3918":v.schema("CollegeOrUniversity"),"http://www.wikidata.org/entity/Q170584":v.schema("Project"),"http://www.wikidata.org/entity/Q327333":v.schema("GovernmentOrganization"),"http://www.wikidata.org/entity/Q2221906":v.schema("Place"),"http://www.wikidata.org/entity/Q167037":v.schema("Corporation")},Mn={targetClass:v.rdf("type"),sealImage:v.schema("logo"),shortName:v.foaf("nick"),subsidiary:v.schema("subOrganization"),city:v.vcard("locality"),state:v.vcard("region"),country:v.vcard("country-name"),homepage:v.foaf("homepage"),lat:v.schema("latitude"),long:v.schema("longitude")};function zn(e){var t=e.type.toLowerCase();if("uri"===t||"iri"===t)return w.store.sym(e.value);if("literal"===t)return e["xml:lang"]?new h.Literal(e.value,e["xml:lang"]):new h.Literal(e.value);throw new Error('bindingToTerm: Unexpected type "'.concat(e.type,'" in sparql binding}'))}function qn(e,t,n,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Mn,r={};Y.Rm("loadFromBindings: subject: ".concat(t)),Y.Rm(" doc: ".concat(a)),n.forEach(function(e){for(var t in e){var n=e[t],a=JSON.stringify(n);r[t]=r[t]||new Set,r[t].add(a)}});var o=function(n){var o=r[n];Y.Rm(" results ".concat(n," -> ").concat(o)),o.forEach(function(r){var o,s=JSON.parse(r),c=s.type,l=s.value;if("uri"===c)o=e.sym(l);else{if("literal"!==c)throw new Error("loadFromBindings: unexpected type: ".concat(c));o=new h.Literal(l,s.language,s.datatype)}if("type"===n)Un[l]?o=Un[l]:Y.R8("Unmapped Wikidata Class: "+l);else if("coordinates"===n){Y.Rm(" @@@ hey a point: "+l);var u=/.*\(([-0-9.-]*) ([-0-9.-]*)\)/.exec(l);if(u){var p=v.xsd("float"),d=new h.Literal(u[1],null,p),m=new h.Literal(u[2],null,p);e.add(t,v.schema("longitude"),m,a),e.add(t,v.schema("latitude"),d,a)}else Y.Rm("Bad coordinates syntax: "+l)}else{var f=i[n]||v.schema(n);e.add(t,f,o,a),Y.Rm(" public data ".concat(f," ").concat(o,"."))}})};for(var s in r)o(s)}function Hn(e){return e._embedded.results.map(function(e){return{name:{value:e.title,type:"literal"},subject:{type:"IRI",value:e.uri}}})}function Gn(e,t,n){return Vn.apply(this,arguments)}function Vn(){return(Vn=b(y().mark(function e(t,n,a){var i,r,o,s,c,l;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a.searchByNameURI){e.next=1;break}throw new Error("Missing queryTarget.searchByNameURI on queryESCODataByName");case 1:return r=a.limit||Tn,o=a.searchByNameURI.replace("$(name)",t).replace("$(limit)",""+r).replace("$(targetClass)",n.toNT()),Y.Rm("Querying ESCO data - uri: "+o),e.next=2,null===(i=w.store.fetcher)||void 0===i?void 0:i.webOperation("GET",o,Bn);case 2:if(s=e.sent,c=(null==s?void 0:s.responseText)||"",Y.Rm(" Query result text"+c.slice(0,500)+"..."),0!==c.length){e.next=3;break}throw new Error("Wot no text back from ESCO query "+o);case 3:return l=JSON.parse(c),Y.Rm(" ESCO Query result JSON"+JSON.stringify(l,null,4).slice(0,500)+"..."),e.abrupt("return",Hn(l));case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Wn(e){var t=e.indexOf("SPARQL-QUERY");if(t<0)return e;Y.R8(" ### Fixing JSON with wikidata error code injection "+e.slice(t,t+200));var n=e.lastIndexOf("}, {");return e.slice(0,n)+" } ] } } "}function Jn(e,t,n,a){return $n.apply(this,arguments)}function $n(){return($n=b(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p,d,m,f,h,v;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=function(e){var a=i.limit||Tn;return e.replace("$(name)",t).replace("$(limit)",""+a).replace("$(language)",o).replace("$(targetClass)",n.toNT())},n){e.next=1;break}throw new Error("queryPublicDataByName: No class provided");case 1:return e.next=2,_n();case 2:if(h=e.sent){e.next=3;break}h=kn;case 3:if(o=h[0]||"en",!i.searchByNameQuery){e.next=4;break}return s=r(i.searchByNameQuery),Y.Rm("Querying public data - sparql: "+s),e.abrupt("return",Qn(s,i));case 4:if(!i.searchByNameURI){e.next=13;break}return c=r(i.searchByNameURI),e.prev=5,e.next=6,null===(u=w.store.fetcher)||void 0===u?void 0:u.webOperation("GET",c,Bn);case 6:l=e.sent,e.next=8;break;case 7:throw e.prev=7,v=e.catch(5),new Error("Exception when trying to fetch ".concat(c," \n ").concat(v));case 8:if(p=l.responseText||"",200===l.status){e.next=9;break}throw new Error("HTTP error status ".concat(l.status," trying to fetch ").concat(c," "));case 9:if(Y.Rm(" Query result text"+p.slice(0,500)+"..."),0!==p.length){e.next=10;break}throw new Error("queryPublicDataByName: No text back from public data query "+c);case 10:if(d=Wn(p),m=JSON.parse(d),Y.Rm(" API Query result JSON"+JSON.stringify(m,null,4).slice(0,500)+"..."),!m._embedded){e.next=11;break}return Y.Rm(" Looks like ESCO"),f=Hn(m),e.abrupt("return",f);case 11:throw alert("Code me: unrecognized API return format"),new Error("*** Need to add code to parse unrecognized API JSON return\n".concat(JSON.stringify(m,null,4)));case 12:e.next=14;break;case 13:throw new Error("Query source must have either rest API or SPARQL endpoint.");case 14:case"end":return e.stop()}},e,null,[[5,7]])}))).apply(this,arguments)}function Qn(e,t){return Zn.apply(this,arguments)}function Zn(){return(Zn=b(y().mark(function e(t,n){var a,i,r,o,s,c,l,u,p,d;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.endpoint){e.next=1;break}throw new Error("Missing queryTarget.endpoint required for queryPublicDataSelect");case 1:return(i=new URL(n.endpoint)).searchParams.append("query",t),r=i.href,Y.Rm(" queryPublicDataSelect uri: "+r),(o=new Headers).append("Accept","application/json"),s={credentials:"omit",headers:o},e.next=2,null===(a=w.store.fetcher)||void 0===a?void 0:a.webOperation("GET",r,s);case 2:if(c=e.sent,0!==(l=(null==c?void 0:c.responseText)||"").length){e.next=3;break}throw new Error("No text back from query "+r);case 3:return u=Wn(l),p=JSON.parse(u),Y.Rm(" Query result JSON"+JSON.stringify(p,null,4).slice(0,100)+"..."),d=p.results.bindings,e.abrupt("return",d);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Kn(e,t,n){return Yn.apply(this,arguments)}function Yn(){return(Yn=b(y().mark(function e(t,n,a){var i,r,o,s,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Y.Rm("queryPublicDataConstruct: sparql:",t),a.endpoint){e.next=1;break}throw new Error("Missing queryTarget.endpoint required for queryPublicDataConstruct");case 1:return(r=new URL(a.endpoint)).searchParams.append("query",t),o=r.href,Y.Rm(" queryPublicDataConstruct uri: "+o),(s=new Headers).append("Accept","text/turtle"),c={credentials:"omit",headers:s},e.next=2,null===(i=w.store.fetcher)||void 0===i?void 0:i.webOperation("GET",o,c);case 2:if(l=e.sent,u=(null==l?void 0:l.responseText)||"No response text?",p=u.length>500?u.slice(0,200)+" ... "+u.slice(-200):u,Y.Rm(" queryPublicDataConstruct result text:"+p),0!==u.length){e.next=3;break}throw new Error("queryPublicDataConstruct: No text back from construct query:"+o);case 3:(0,h.parse)(u,w.store,n.uri,"text/turtle");case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Xn(e,t,n){return ea.apply(this,arguments)}function ea(){return ea=b(y().mark(function e(t,n,a){var i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.uri.startsWith("https://dbpedia.org/resource/")){e.next=1;break}return e.abrupt("return",sa(t,n,a));case 1:if(!a.uri.match(/^https?:\/\/www\.wikidata\.org\/entity\/.*/)){e.next=3;break}return e.next=2,ta(t,n,a);case 2:e.next=4;break;case 3:return i=a.uri.startsWith("http:")?t.sym("https:"+a.uri.slice(5)):a,(r=new Headers).append("Accept","text/turtle"),e.abrupt("return",t.fetcher.load(i,{credentials:"omit",headers:r}));case 4:case"end":return e.stop()}},e)})),ea.apply(this,arguments)}function ta(e,t,n){return na.apply(this,arguments)}function na(){return(na=b(y().mark(function e(t,n,a){var i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=/wd:Q49108/g,r=Nn.replace(i,a.toNT()),e.next=1,Kn(r,a,Pn);case 1:Y.Rm("getWikidataDetails: loaded.",a);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function aa(e,t,n){return ia.apply(this,arguments)}function ia(){return ia=b(y().mark(function e(t,n,a){var i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i='select distinct * where {\n optional { $(subject) wdt:P31 ?targetClass } # instance of\n optional { $(subject) wdt:P154 ?logo }\n optional { $(subject) wdt:P158 ?sealImage }\n# optional { $(subject) wdt:P159 ?headquartersLocation }\n\noptional { $(subject) wdt:P17 ?country }\noptional { $(subject) wdt:P18 ?image }\noptional { $(subject) wdt:P1813 ?shortName }\n\noptional { $(subject) wdt:P355 ?subsidiary }\n# SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it" }\n}'.replace(Ln,a.toNT()),e.next=1,Qn(i,Pn);case 1:r=e.sent,qn(t,a,r,a.doc());case 2:case"end":return e.stop()}},e)})),ia.apply(this,arguments)}function ra(e,t,n){return oa.apply(this,arguments)}function oa(){return oa=b(y().mark(function e(t,n,a){var i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i='select distinct * where {\n\n $(subject) wdt:P276 ?location .\n\n optional { ?location wdt:P2044 ?elevation }\n optional { ?location wdt:P131 ?region }\n optional { ?location wdt:P625 ?coordinates }\noptional { ?location wdt:P17 ?country }\n\n# SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,de,it" }\n}'.replace(Ln,a.toNT()),Y.Rm(" location query sparql:"+i),e.next=1,Qn(i,Pn);case 1:r=e.sent,Y.Rm(" location query bindings:",r),qn(t,a,r,a.doc());case 2:case"end":return e.stop()}},e)})),oa.apply(this,arguments)}function sa(e,t,n){return ca.apply(this,arguments)}function ca(){return ca=b(y().mark(function e(t,n,a){var i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i="select distinct ?city, ?state, ?country, ?homepage, ?logo, ?lat, ?long, WHERE {\n OPTIONAL { <".concat(a,"> <http://dbpedia.org/ontology/city> ?city }\n OPTIONAL { ").concat(a," <http://dbpedia.org/ontology/state> ?state }\n OPTIONAL { ").concat(a," <http://dbpedia.org/ontology/country> ?country }\n OPTIONAL { ").concat(a," foaf:homepage ?homepage }\n OPTIONAL { ").concat(a," foaf:lat ?lat; foaf:long ?long }\n OPTIONAL { ").concat(a," <http://dbpedia.org/ontology/country> ?country }\n }"),e.next=1,Qn(i,On);case 1:r=e.sent,qn(t,a,r,a.doc()),Y.Rm("Finished getDbpediaDetails.");case 2:case"end":return e.stop()}},e)})),ca.apply(this,arguments)}function la(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ua(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ua(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function pa(e,t){e.style.display=t?"":"none"}function da(e,t,n,a){return ma.apply(this,arguments)}function ma(){return ma=b(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p,d,m,f,h,v,x,g,k,C,E,A,_,j,S,T,L,R,N,B,I,O,D,F,P,U,M,z;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(A=function(){n.currentObject?(U.value=n.currentName?n.currentName.value:"??? wot no name for "+n.currentObject,I=n.currentName,R=n.currentName?n.currentName.value:void 0,O=n.currentObject):(U.value="",R=void 0,O=void 0),a.deleteButton&&pa(a.deleteButton,!!n.currentObject),a.acceptButton&&pa(a.acceptButton,!1),a.editButton&&pa(a.editButton,!0),a.cancelButton&&pa(a.cancelButton,!1),T=!1,f()},E=function(){return E=b(y().mark(function e(){var n,a,i,r,o,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=function(e,t){return t.name.value>e.name.value?1:t.name.name<e.name.value?-1:0},n=function(e){var n=t.createElement("tr");_e.setStyle(n,"autocompleteRowStyle"),n.setAttribute("style","padding: 0.3em;"),n.style.color=L?"#080":"#088",n.textContent=e.name.value;var a=zn(e.subject),i=zn(e.name);return n.addEventListener("click",function(){var e=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Y.Rm(" click row textContent: "+n.textContent),Y.Rm(" click name: "+i.value),a&&i&&s(a,i);case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),n},!T){e.next=1;break}return Y.Rm('Ignoring "'.concat(U.value,'" because of lock ')),e.abrupt("return");case 1:return Y.Rm('Setting lock at "'.concat(U.value,'"')),T=!0,e.next=2,_n();case 2:if(i=e.sent,!((r=U.value.trim().toLowerCase()).length<4)){e.next=3;break}f(),N=20,e.next=6;break;case 3:if(L&&R&&r.startsWith(R)){e.next=5;break}return Y.Rm(' Querying database at "'.concat(r,'" cf last "').concat(R,'".')),e.next=4,x(r,i);case 4:j=e.sent;case 5:o=k(r,j),S&&o.length<=40&&(N=o.length),L=S&&o.length<=N,Y.Rm(' Filter:"'.concat(r,'" lastBindings: ').concat(j.length,", slimmed to ").concat(o.length,"; rows: ").concat(N,", Enough? ").concat(S,", All displayed? ").concat(L)),(c=o.slice(0,N)).sort(a),f(),l=la(c);try{for(l.s();!(u=l.n()).done;)p=u.value,D.appendChild(n(p))}catch(e){l.e(e)}finally{l.f()}1===o.length&&s(zn(o[0].subject),zn(o[0].name));case 6:T=!1;case 7:case"end":return e.stop()}},e)})),E.apply(this,arguments)},C=function(){return E.apply(this,arguments)},k=function(e,t){return t.filter(function(t){return m(e,t.name.value)})},g=function(){return(g=b(y().mark(function e(t,a){var i,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,Jn(t,_,a||kn,n.queryParams);case 1:i=e.sent,e.next=3;break;case 2:return e.prev=2,s=e.catch(0),r("Error querying db of organizations: "+s),T=!1,e.abrupt("return");case 3:return S=i.length<Tn,R=S?t:void 0,f(),o=Sn(i,a),e.abrupt("return",o);case 4:case"end":return e.stop()}},e,null,[[0,2]])}))).apply(this,arguments)},x=function(e,t){return g.apply(this,arguments)},v=function(){return(v=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:pa(a.cancelButton,!0),C();case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},h=function(e){return v.apply(this,arguments)},f=function(){for(;D.children.length>1;)D.removeChild(D.lastChild)},m=function(e,t){for(var n=e.split(" "),a=0;a<n.length;a++){var i=n[a];if(t.toLowerCase().indexOf(i)<0)return!1}return!0},d=function(){return(d=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Y.Rm("Auto complete: Canceled by user! "),n.permanent?A():B.parentNode&&B.parentNode.removeChild(B);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},p=function(e){return d.apply(this,arguments)},u=function(){return(u=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:I&&U.value===I.value&&o(O,I);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(e){return u.apply(this,arguments)},c=function(){return(c=b(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.acceptButton){e.next=1;break}return a.acceptButton.disbaled=!1,pa(a.acceptButton,!0),U.value=n.value,I=n,O=t,Y.Rm("Auto complete: name: "+n),Y.Rm("Auto complete: waiting for accept "+t),f(),e.abrupt("return");case 1:pa(a.cancelButton,!0),o(t,n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},s=function(e,t){return c.apply(this,arguments)},o=function(e,t){Y.Rm("Auto complete: finish! "+e),"Literal"===e.termType&&n.queryParams.objectURIBase&&(e=w.store.sym(n.queryParams.objectURIBase.value+e.value)),f(),i(e,t)},r=function(e){var n=D.appendChild(t.createElement("tr"));Y.Rm(e);var a=new Error(e);n.appendChild(ct(t,a,"pink")),_e.setStyle(n,"autocompleteRowStyle"),n.style.padding="1em"},_=n.targetClass){e.next=1;break}throw new Error("renderAutoComplete: missing targetClass");case 1:return a.acceptButton&&a.acceptButton.addEventListener("click",l,!1),a.cancelButton&&a.cancelButton.addEventListener("click",p,!1),S=!1,T=!1,L=!1,R=void 0,N=20,B=t.createElement("div"),I=void 0,O=void 0,(D=B.appendChild(t.createElement("table"))).setAttribute("data-testid","autocomplete-table"),D.setAttribute("style","max-width: 30em; margin: 0.5em;"),F=D.appendChild(t.createElement("tr")),_e.setStyle(F,"autocompleteRowStyle"),P=F.appendChild(t.createElement("td")),(U=P.appendChild(t.createElement("input"))).setAttribute("type","text"),A(),M=n.size||Ae.textInputSize||20,U.setAttribute("size",M),U.setAttribute("data-testid","autocomplete-input"),z=_e.textInputStyle||"border: 0.1em solid #444; border-radius: 0.5em; width: 100%; font-size: 100%; padding: 0.1em 0.6em",U.setAttribute("style",z),U.addEventListener("keyup",function(e){13===e.keyCode&&l(e)},!1),U.addEventListener("input",h),e.abrupt("return",B);case 2:case"end":return e.stop()}},e)})),ma.apply(this,arguments)}function fa(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var va=Re.Pt.iconBase+"noun_34653_green.svg",xa=Re.Pt.iconBase+"noun_Search_875351.svg",ba=Re.Pt.iconBase+"noun_253504.svg";function ga(e,t,n,a,i,r){return ya.apply(this,arguments)}function ya(){return ya=b(y().mark(function e(t,n,a,i,r,o){var s,c,l,u,p,d,m,f,h,x,g,k,C,E,A,_,j,S,T,L,R,N;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(T=function(){S?(pa(j,!1),pa(k,!1),pa(C,!1)):(pa(j,!0),pa(k,!1),pa(C,!1))},g=function(){return(g=b(y().mark(function e(t){var a,i,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=fa(t),e.prev=1,a.s();case 2:if((i=a.n()).done){e.next=4;break}return o=i.value,e.next=3,r(n,o);case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,s=e.catch(1),a.e(s);case 6:return e.prev=6,a.f(),e.finish(6);case 7:case"end":return e.stop()}},e,null,[[1,5,6,7]])}))).apply(this,arguments)},x=function(e){return g.apply(this,arguments)},h=function(){return(h=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!R){e.next=1;break}N.removeChild(R),R=void 0,e.next=2;break;case 1:return e.next=2,d();case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},f=function(e){return h.apply(this,arguments)},m=function(){return(m=b(y().mark(function e(){var n;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(R=t.createElement("div")).setAttribute("style","display: flex; flex-flow: wrap;"),n=R,e.next=1,da(t,i,L,s);case 1:n.appendChild.call(n,e.sent),R.appendChild(k),R.appendChild(C),R.appendChild(j),R.appendChild(E),N.appendChild(R);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},d=function(){return m.apply(this,arguments)},p=function(){R&&(N.removeChild(R),R=void 0)},u=function(){return(u=b(y().mark(function e(a){var i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Ft(t,w.store,N,v.vcard("url"),void 0,"Solid ID");case 1:if(i=e.sent){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",r(n,i));case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(e){return u.apply(this,arguments)},c=function(){return(c=b(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i.permanent?(pa(j,!0),pa(k,!1),pa(C,!1)):p(),e.abrupt("return",r(t,n));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},s=function(e,t){return c.apply(this,arguments)},(k=Dt(t)).setAttribute("data-testid","accept-button"),(C=Ot(t)).setAttribute("data-testid","cancel-button"),E=t.createElement("div"),A=i.targetClass?Z(i.targetClass):"item",(_=Bt(t,E,A,o)).setAttribute("data-testid","delete-button"),(j=It(t,ba,"Edit",function(e){S=!S,T()})).setAttribute("data-testid","edit-button"),S=!0,L={acceptButton:k,cancelButton:C,editButton:j,deleteButton:_},R=void 0,(N=t.createElement("div")).style.display="flex",N.style.flexDirection="row",!i.permanent&&!i.currentObject){e.next=1;break}return e.next=1,d();case 1:return a.editable&&(N.style.width="100%",a.manualURIEntry&&je(N.appendChild(It(t,va,a.idNoun,l)),x,void 0),!a.dbLookup||i.currentObject||i.permanent||N.appendChild(It(t,xa,a.idNoun,f))),T(),e.abrupt("return",N);case 2:case"end":return e.stop()}},e)})),ya.apply(this,arguments)}function wa(e){return function(e){if(Array.isArray(e))return we(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ke(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}
24
24
  /**
25
25
  * @version IconicMultiSelect v0.7.0
26
26
  * @licence MIT
@@ -35,5 +35,5 @@ const Go=BigInt(0),Vo=BigInt(1);function Wo(e,t){const n=t.negate();return e?n:t
35
35
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
36
36
  const is=(e,t)=>(e+(e>=0?t:-t)/cs)/t;function rs(e,t,n){const[[a,i],[r,o]]=t,s=is(o*e,n),c=is(-i*e,n);let l=e-s*a-c*r,u=-s*i-c*o;const p=l<os,d=u<os;p&&(l=-l),d&&(u=-u);const m=ho(Math.ceil(function(e){let t;for(t=0;e>io;e>>=ro,t+=1);return t}(n)/2))+ss;if(l<os||l>=m||u<os||u>=m)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:p,k1:l,k2neg:d,k2:u}}Error;const os=BigInt(0),ss=BigInt(1),cs=BigInt(2),ls=BigInt(3),us=BigInt(4);function ps(e,t={}){const n=function(e,t,n={},a){if(void 0===a&&(a="edwards"===e),!t||"object"!=typeof t)throw new Error(`expected valid ${e} CURVE object`);for(const e of["p","n","h"]){const n=t[e];if(!("bigint"==typeof n&&n>Go))throw new Error(`CURVE.${e} must be positive bigint`)}const i=ns(t.p,n.Fp,a),r=ns(t.n,n.Fn,a),o=["Gx","Gy","a","weierstrass"===e?"b":"d"];for(const e of o)if(!i.isValid(t[e]))throw new Error(`CURVE.${e} must be valid field element of CURVE.Fp`);return{CURVE:t=Object.freeze(Object.assign({},t)),Fp:i,Fn:r}}("weierstrass",e,t),{Fp:a,Fn:i}=n;let r=n.CURVE;const{h:o,n:s}=r;vo(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object"});const{endo:c}=t;if(c&&(!a.is0(r.a)||"bigint"!=typeof c.beta||!Array.isArray(c.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const l=ms(a,i);function u(){if(!a.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}const p=t.toBytes||function(e,t,n){const{x:i,y:r}=t.toAffine(),o=a.toBytes(i);if(oo(n,"isCompressed"),n){u();return Vr(ds(!a.isOdd(r)),o)}return Vr(Uint8Array.of(4),o,a.toBytes(r))},d=t.fromBytes||function(e){Tr(e,void 0,"Point");const{publicKey:t,publicKeyUncompressed:n}=l,i=e.length,r=e[0],o=e.subarray(1);if(i!==t||2!==r&&3!==r){if(i===n&&4===r){const e=a.BYTES,t=a.fromBytes(o.subarray(0,e)),n=a.fromBytes(o.subarray(e,2*e));if(!f(t,n))throw new Error("bad point: is not on curve");return{x:t,y:n}}throw new Error(`bad point: got length ${i}, expected compressed=${t} or uncompressed=${n}`)}{const e=a.fromBytes(o);if(!a.isValid(e))throw new Error("bad point: is not on curve, wrong x");const t=m(e);let n;try{n=a.sqrt(t)}catch(e){const t=e instanceof Error?": "+e.message:"";throw new Error("bad point: is not on curve, sqrt error"+t)}u();return!(1&~r)!==a.isOdd(n)&&(n=a.neg(n)),{x:e,y:n}}};function m(e){const t=a.sqr(e),n=a.mul(t,e);return a.add(a.add(n,a.mul(e,r.a)),r.b)}function f(e,t){const n=a.sqr(t),i=m(e);return a.eql(n,i)}if(!f(r.Gx,r.Gy))throw new Error("bad curve params: generator point");const h=a.mul(a.pow(r.a,ls),us),v=a.mul(a.sqr(r.b),BigInt(27));if(a.is0(a.add(h,v)))throw new Error("bad curve params: a or b");function x(e,t,n=!1){if(!a.isValid(t)||n&&a.is0(t))throw new Error(`bad point coordinate ${e}`);return t}function b(e){if(!(e instanceof C))throw new Error("Weierstrass Point expected")}function g(e){if(!c||!c.basises)throw new Error("no endo");return rs(e,c.basises,i.ORDER)}const y=xo((e,t)=>{const{X:n,Y:i,Z:r}=e;if(a.eql(r,a.ONE))return{x:n,y:i};const o=e.is0();null==t&&(t=o?a.ONE:a.inv(r));const s=a.mul(n,t),c=a.mul(i,t),l=a.mul(r,t);if(o)return{x:a.ZERO,y:a.ZERO};if(!a.eql(l,a.ONE))throw new Error("invZ was invalid");return{x:s,y:c}}),w=xo(e=>{if(e.is0()){if(t.allowInfinityPoint&&!a.is0(e.Y))return;throw new Error("bad point: ZERO")}const{x:n,y:i}=e.toAffine();if(!a.isValid(n)||!a.isValid(i))throw new Error("bad point: x or y not field elements");if(!f(n,i))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function k(e,t,n,i,r){return n=new C(a.mul(n.X,e),n.Y,n.Z),t=Wo(i,t),n=Wo(r,n),t.add(n)}class C{static BASE=new C(r.Gx,r.Gy,a.ONE);static ZERO=new C(a.ZERO,a.ONE,a.ZERO);static Fp=a;static Fn=i;X;Y;Z;constructor(e,t,n){this.X=x("x",e),this.Y=x("y",t,!0),this.Z=x("z",n),Object.freeze(this)}static CURVE(){return r}static fromAffine(e){const{x:t,y:n}=e||{};if(!e||!a.isValid(t)||!a.isValid(n))throw new Error("invalid affine point");if(e instanceof C)throw new Error("projective point not allowed");return a.is0(t)&&a.is0(n)?C.ZERO:new C(t,n,a.ONE)}static fromBytes(e){const t=C.fromAffine(d(Tr(e,void 0,"point")));return t.assertValidity(),t}static fromHex(e){return C.fromBytes(Gr(e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return A.createCache(this,e),t||this.multiply(ls),this}assertValidity(){w(this)}hasEvenY(){const{y:e}=this.toAffine();if(!a.isOdd)throw new Error("Field doesn't support isOdd");return!a.isOdd(e)}equals(e){b(e);const{X:t,Y:n,Z:i}=this,{X:r,Y:o,Z:s}=e,c=a.eql(a.mul(t,s),a.mul(r,i)),l=a.eql(a.mul(n,s),a.mul(o,i));return c&&l}negate(){return new C(this.X,a.neg(this.Y),this.Z)}double(){const{a:e,b:t}=r,n=a.mul(t,ls),{X:i,Y:o,Z:s}=this;let c=a.ZERO,l=a.ZERO,u=a.ZERO,p=a.mul(i,i),d=a.mul(o,o),m=a.mul(s,s),f=a.mul(i,o);return f=a.add(f,f),u=a.mul(i,s),u=a.add(u,u),c=a.mul(e,u),l=a.mul(n,m),l=a.add(c,l),c=a.sub(d,l),l=a.add(d,l),l=a.mul(c,l),c=a.mul(f,c),u=a.mul(n,u),m=a.mul(e,m),f=a.sub(p,m),f=a.mul(e,f),f=a.add(f,u),u=a.add(p,p),p=a.add(u,p),p=a.add(p,m),p=a.mul(p,f),l=a.add(l,p),m=a.mul(o,s),m=a.add(m,m),p=a.mul(m,f),c=a.sub(c,p),u=a.mul(m,d),u=a.add(u,u),u=a.add(u,u),new C(c,l,u)}add(e){b(e);const{X:t,Y:n,Z:i}=this,{X:o,Y:s,Z:c}=e;let l=a.ZERO,u=a.ZERO,p=a.ZERO;const d=r.a,m=a.mul(r.b,ls);let f=a.mul(t,o),h=a.mul(n,s),v=a.mul(i,c),x=a.add(t,n),g=a.add(o,s);x=a.mul(x,g),g=a.add(f,h),x=a.sub(x,g),g=a.add(t,i);let y=a.add(o,c);return g=a.mul(g,y),y=a.add(f,v),g=a.sub(g,y),y=a.add(n,i),l=a.add(s,c),y=a.mul(y,l),l=a.add(h,v),y=a.sub(y,l),p=a.mul(d,g),l=a.mul(m,v),p=a.add(l,p),l=a.sub(h,p),p=a.add(h,p),u=a.mul(l,p),h=a.add(f,f),h=a.add(h,f),v=a.mul(d,v),g=a.mul(m,g),h=a.add(h,v),v=a.sub(f,v),v=a.mul(d,v),g=a.add(g,v),f=a.mul(h,g),u=a.add(u,f),f=a.mul(y,g),l=a.mul(x,l),l=a.sub(l,f),f=a.mul(x,h),p=a.mul(y,p),p=a.add(p,f),new C(l,u,p)}subtract(e){return this.add(e.negate())}is0(){return this.equals(C.ZERO)}multiply(e){const{endo:n}=t;if(!i.isValidNot0(e))throw new Error("invalid scalar: out of range");let a,r;const o=e=>A.cached(this,e,e=>Jo(C,e));if(n){const{k1neg:t,k1:i,k2neg:s,k2:c}=g(e),{p:l,f:u}=o(i),{p,f:d}=o(c);r=u.add(d),a=k(n.beta,l,p,t,s)}else{const{p:t,f:n}=o(e);a=t,r=n}return Jo(C,[a,r])[0]}multiplyUnsafe(e){const{endo:n}=t,a=this;if(!i.isValid(e))throw new Error("invalid scalar: out of range");if(e===os||a.is0())return C.ZERO;if(e===ss)return a;if(A.hasCache(this))return this.multiply(e);if(n){const{k1neg:t,k1:i,k2neg:r,k2:o}=g(e),{p1:s,p2:c}=function(e,t,n,a){let i=t,r=e.ZERO,o=e.ZERO;for(;n>Go||a>Go;)n&Vo&&(r=r.add(i)),a&Vo&&(o=o.add(i)),i=i.double(),n>>=Vo,a>>=Vo;return{p1:r,p2:o}}(C,a,i,o);return k(n.beta,s,c,t,r)}return A.unsafe(a,e)}toAffine(e){return y(this,e)}isTorsionFree(){const{isTorsionFree:e}=t;return o===ss||(e?e(C,this):A.unsafe(this,s).is0())}clearCofactor(){const{clearCofactor:e}=t;return o===ss?this:e?e(C,this):this.multiplyUnsafe(o)}isSmallOrder(){return this.multiplyUnsafe(o).is0()}toBytes(e=!0){return oo(e,"isCompressed"),this.assertValidity(),p(C,this,e)}toHex(e=!0){return Dr(this.toBytes(e))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}const E=i.BITS,A=new ts(C,t.endo?Math.ceil(E/2):E);return C.BASE.precompute(8),C}function ds(e){return Uint8Array.of(e?2:3)}function ms(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}
37
37
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
38
- const fs={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},hs={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},vs=BigInt(0),xs=BigInt(2);const bs=zo(fs.p,{sqrt:function(e){const t=fs.p,n=BigInt(3),a=BigInt(6),i=BigInt(11),r=BigInt(22),o=BigInt(23),s=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,p=To(u,n,t)*u%t,d=To(p,n,t)*u%t,m=To(d,xs,t)*l%t,f=To(m,i,t)*m%t,h=To(f,r,t)*f%t,v=To(h,s,t)*h%t,x=To(v,c,t)*v%t,b=To(x,s,t)*h%t,g=To(b,n,t)*u%t,y=To(g,o,t)*f%t,w=To(y,a,t)*l%t,k=To(w,xs,t);if(!bs.eql(bs.sqr(k),e))throw new Error("Cannot find square root");return k}}),gs=ps(fs,{Fp:bs,endo:hs}),ys={};function ws(e,...t){let n=ys[e];if(void 0===n){const t=ao((a=e,Uint8Array.from(a,(e,t)=>{const n=e.charCodeAt(0);if(1!==e.length||n>127)throw new Error(`string contains non-ASCII character "${a[t]}" with code ${n} at position ${t}`);return n})));n=Vr(t,t),ys[e]=n}var a;return ao(Vr(n,...t))}const ks=e=>e.toBytes(!0).slice(1),Cs=e=>e%xs===vs;function Es(e){const{Fn:t,BASE:n}=gs,a=t.fromBytes(e),i=n.multiply(a);return{scalar:Cs(i.y)?a:t.neg(a),bytes:ks(i)}}function As(e){const t=bs;if(!t.isValidNot0(e))throw new Error("invalid x: Fail if x ≥ p");const n=t.create(e*e),a=t.create(n*e+BigInt(7));let i=t.sqrt(a);Cs(i)||(i=t.neg(i));const r=gs.fromAffine({x:e,y:i});return r.assertValidity(),r}const _s=lo;function js(...e){return gs.Fn.create(_s(ws("BIP0340/challenge",...e)))}function Ss(e){return Es(e).bytes}function Ts(e,t,n=Jr(32)){const{Fn:a}=gs,i=Tr(e,void 0,"message"),{bytes:r,scalar:o}=Es(t),s=Tr(n,32,"auxRand"),c=a.toBytes(o^_s(ws("BIP0340/aux",s))),l=ws("BIP0340/nonce",c,r,i),{bytes:u,scalar:p}=Es(l),d=js(u,r,i),m=new Uint8Array(64);if(m.set(u,0),m.set(a.toBytes(a.create(p+d*o)),32),!Ls(m,i,r))throw new Error("sign: Invalid signature produced");return m}function Ls(e,t,n){const{Fp:a,Fn:i,BASE:r}=gs,o=Tr(e,64,"signature"),s=Tr(t,void 0,"message"),c=Tr(n,32,"publicKey");try{const e=As(_s(c)),t=_s(o.subarray(0,32));if(!a.isValidNot0(t))return!1;const n=_s(o.subarray(32,64));if(!i.isValidNot0(n))return!1;const l=js(i.toBytes(t),ks(e),s),u=r.multiplyUnsafe(n).add(e.multiplyUnsafe(i.neg(l))),{x:p,y:d}=u.toAffine();return!(u.is0()||!Cs(d)||p!==t)}catch(e){return!1}}const Rs=(()=>{const e=(e=Jr(48))=>Ho(e,fs.n);return{keygen:as(e,Ss),getPublicKey:Ss,sign:Ts,verify:Ls,Point:gs,utils:{randomSecretKey:e,taggedHash:ws,lift_x:As,pointToBytes:ks},lengths:{secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48}}})();new TextDecoder("utf-8");var Ns=new TextEncoder,Bs="https://w3id.org/security#";function Is(){return{id:"",created:"",dateDeleted:"",content:"",maker:"",sig:""}}function Os(e){var t=ao(Ns.encode(function(e){return JSON.stringify(e)}(e)));return Dr(t)}function Ds(e,t,n){return Rs.verify(Gr(e),Gr(Os(t)),Gr(n))}function Fs(e,t){return Dr(Rs.sign(Gr(Os(e)),Gr(t)))}var Ps=function(e){var t,n,a=null===(t=w.store.any(e,v.space("preferencesFile"),null,e.doc()))||void 0===t?void 0:t.value;if(!(a=null===(n=a)||void 0===n?void 0:n.split("/").slice(0,-2).join("/")))throw new Error("prefererencesFile is expected to exist in ".concat(e));return a},Us=function(e){var t;try{var n=Ps(e);t="".concat(n,"/profile/keys/publicKey.ttl")}catch(e){Y.z3(e)}return t},Ms=function(e){var t;try{var n=Ps(e);t="".concat(n,"/settings/keys/privateKey.ttl")}catch(e){Y.z3(e)}return t};function zs(e,t){return qs.apply(this,arguments)}function qs(){return(qs=b(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Vs(t,n,"publicKey");case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Hs(e,t){return Gs.apply(this,arguments)}function Gs(){return(Gs=b(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Vs(t,n,"privateKey");case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Vs(e,t,n){return Ws.apply(this,arguments)}function Ws(){return(Ws=b(y().mark(function e(t,n,a){var i,r,o;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,w.store.fetcher.load(n);case 1:return i=w.store.any(t,v.solid(a)),e.abrupt("return",null==i?void 0:i.value);case 2:if(e.prev=2,404!==(r=e.catch(0)).response.status){e.next=7;break}return Y.Rm("createIfNotExists: doc does NOT exist, will create... "+n),e.prev=3,e.next=4,w.store.fetcher.webOperation("PUT",n,{data:"",contentType:"text/turtle"});case 4:e.next=6;break;case 5:throw e.prev=5,o=e.catch(3),Y.Rm("createIfNotExists doc FAILED: "+n+": "+o),o;case 6:return delete w.store.fetcher.requested[n],e.abrupt("return",void 0);case 7:throw Y.Rm("createIfNotExists doc FAILED: "+n+": "+r),r;case 8:case"end":return e.stop()}},e,null,[[0,2],[3,5]])}))).apply(this,arguments)}function Js(e,t){return $s.apply(this,arguments)}function $s(){return($s=b(y().mark(function e(t,n){var a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t);case 1:if(a=w.store.any(w.store.sym(t),w.store.sym("http://www.iana.org/assignments/link-relations/acl"))){e.next=2;break}throw new Error("Key ACL doc not found!");case 2:return e.prev=2,e.next=3,w.store.fetcher.webOperation("PUT",a.value,{data:n,contentType:"text/turtle"});case 3:e.next=6;break;case 4:if(e.prev=4,404===(null==(r=e.catch(2))||null===(i=r.response)||void 0===i?void 0:i.status)){e.next=5;break}throw new Error(r);case 5:Y.Rm("delete "+a.value+" "+r.response.status);case 6:case"end":return e.stop()}},e,null,[[2,4]])}))).apply(this,arguments)}var Qs=function(e){return"\n@prefix : <#>.\n@prefix acl: <http://www.w3.org/ns/auth/acl#>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix key: <./>.\n\n:ReadWrite\n a acl:Authorization;\n acl:accessTo key:;\n acl:default key:;\n acl:agent <".concat(e,">;\n acl:mode acl:Read, acl:Write.\n")},Zs=function(e,t){var n="acl:agentClass foaf:Agent";return null!=t&&t.length&&(n="acl:agent <".concat(t,">")),"\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix acl: <http://www.w3.org/ns/auth/acl#>.\n<#Read>\n a acl:Authorization;\n ".concat(n,";\n acl:accessTo <").concat(e.split("/").pop(),">;\n acl:mode acl:Read.\n")};function Ks(){return Dr(Rs.utils.randomSecretKey())}function Ys(e){return Dr(Rs.getPublicKey(Gr(e)))}function Xs(e){return ec.apply(this,arguments)}function ec(){return(ec=b(y().mark(function e(t){var n,a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t);case 1:return e.next=2,Us(t);case 2:return n=e.sent,e.prev=3,e.next=4,w.store.fetcher.load(n);case 4:return a=w.store.any(t,v.solid("publicKey")),e.abrupt("return",null==a?void 0:a.value);case 5:return e.prev=5,e.catch(3),e.abrupt("return",void 0);case 6:case"end":return e.stop()}},e,null,[[3,5]])}))).apply(this,arguments)}function tc(e){return nc.apply(this,arguments)}function nc(){return nc=b(y().mark(function e(t){var n,a,i,r,o,s,c,l,u;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t);case 1:return e.next=2,Us(t);case 2:return n=e.sent,e.next=3,Ms(t);case 3:return a=e.sent,e.next=4,zs(t,n);case 4:return i=e.sent,e.next=5,Hs(t,a);case 5:if(r=e.sent,o=!0,r&&i!==Ys(r)&&confirm("This is strange the publicKey is not valid for\n"+(null==t?void 0:t.uri)+"'shall we repair keeping the private key ?")&&(o=!1),r&&i&&o){e.next=8;break}if(s=[],c=[],r){e.next=6;break}return r=Ks(),c=[h.st(t,v.solid("privateKey"),h.literal(r),w.store.sym(a))],e.next=6,ic(a,[],c,t.uri);case 6:if(i&&o){e.next=7;break}return s=[],i&&(s=[h.st(t,v.solid("publicKey"),h.lit(i),w.store.sym(n))],Y.Rm("delete invalid publicKey "+s)),l=Ys(r),c=[h.st(t,v.solid("publicKey"),h.literal(l),w.store.sym(n))],e.next=7,ic(n,s,c);case 7:return u=a.substring(0,a.lastIndexOf("/")+1),e.next=8,Js(u,Qs(t.uri));case 8:return e.abrupt("return",r);case 9:case"end":return e.stop()}},e)})),nc.apply(this,arguments)}var ac=function(){var e=b(y().mark(function e(t){var n,a,i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t);case 1:if(!(n=w.store.any(w.store.sym(t),w.store.sym("http://www.iana.org/assignments/link-relations/acl")))){e.next=6;break}return e.prev=2,e.next=3,w.store.fetcher.webOperation("DELETE",n.value);case 3:a=e.sent,Y.Rm("delete keyAcl"+n.value+" "+a.status),e.next=6;break;case 4:if(e.prev=4,404===(i=e.catch(2)).response.status){e.next=5;break}throw new Error(i);case 5:Y.Rm("delete keyAcl"+n.value+" "+i.response.status);case 6:case"end":return e.stop()}},e,null,[[2,4]])}));return function(t){return e.apply(this,arguments)}}();function ic(e,t,n){return rc.apply(this,arguments)}function rc(){return rc=b(y().mark(function e(t,n,a){var i,r,o=arguments;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.length>3&&void 0!==o[3]?o[3]:"",e.next=1,ac(t);case 1:return e.next=2,w.store.updater.updateMany(n,a);case 2:return r=Zs(t,i),e.next=3,Js(t,r);case 3:case"end":return e.stop()}},e)})),rc.apply(this,arguments)}var oc=function(){return ye(function e(t,n){ve(this,e),this.channel=t,this.channelRoot=t.doc(),this.options=n,this.dateFolder=new jr(this.channelRoot,"chat.ttl"),this.div=null},[{key:"createMessage",value:(a=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.updateMessage(t));case 1:case"end":return e.stop()}},e,this)})),function(e){return a.apply(this,arguments)})},{key:"updateMessage",value:(n=b(y().mark(function e(t){var n,a,i,r,o,s,c,l,u,p,d,m,f,x,b,g,k,C,E,A=arguments;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=A.length>1&&void 0!==A[1]?A[1]:null,a=A.length>2?A[2]:void 0,i=A.length>3&&void 0!==A[3]?A[3]:null,r=[],o=new Date,s=""+o.getTime(),c=h.term(o),l=n?n.doc():this.dateFolder.leafDocumentFromDate(o),u=w.store.sym(l.uri+"#Msg"+s),p=w.authn.currentUser(),(d=Is()).id=u.uri,!n){e.next=4;break}if((m=w.store.any(n,v.foaf("maker"))).uri!==p.uri){e.next=2;break}return e.next=1,pc(n);case 1:f=e.sent,r.push(h.st(f,v.dct("isReplacedBy"),u,l)),(x=w.store.any(f,v.sioc("has_reply")))&&r.push(h.st(u,v.sioc("has_reply"),x,l)),a&&r.push(h.st(u,v.schema("dateDeleted"),c,l)),e.next=3;break;case 2:throw b="Error you cannot delete/edit a message from someone else : \n"+m.uri,Y.R8(b),alert(b),new Error(b);case 3:e.next=5;break;case 4:r.push(h.st(this.channel,v.wf("message"),u,l));case 5:if(r.push(h.st(u,v.sioc("content"),w.store.literal(t),l)),d.content=t,r.push(h.st(u,v.dct("created"),c,l)),d.created=c.value,!p){e.next=7;break}return r.push(h.st(u,v.foaf("maker"),p,l)),d.maker=p.uri,e.next=6,tc(p);case 6:g=e.sent,k=Fs(d,g),r.push(h.st(u,h.sym("".concat(Bs,"proofValue")),h.lit(k),l));case 7:return i&&(r.push(h.st(i,v.sioc("has_member"),u,l)),i.doc().sameTerm(u.doc())||r.push(h.st(i,v.sioc("has_member"),u,i.doc()))),e.prev=8,e.next=9,w.store.updater.updateMany([],r);case 9:e.next=11;break;case 10:throw e.prev=10,E=e.catch(8),C="Error saving chat message: "+E,Y.R8(C),alert(C),new Error(C);case 11:return e.abrupt("return",u);case 12:case"end":return e.stop()}},e,this,[[8,10]])})),function(e){return n.apply(this,arguments)})},{key:"deleteMessage",value:(t=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.updateMessage("(message deleted)",t,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"createThread",value:(e=b(y().mark(function e(t){var n,a,i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=w.store.each(t,v.sioc("has_reply"),null,t.doc()).filter(function(e){return w.store.holds(e,v.rdf("type"),v.sioc("Thread"),e.doc())}),!(n.length>0)){e.next=1;break}return e.abrupt("return",n[0]);case 1:return a=h.sym(t.uri+"-thread"),i=[h.st(a,v.rdf("type"),v.sioc("Thread"),a.doc()),h.st(t,v.sioc("has_reply"),a,a.doc())],e.next=2,w.store.updater.update([],i);case 2:return e.abrupt("return",a);case 3:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)})}]);var e,t,n,a}();function sc(e){return cc.apply(this,arguments)}function cc(){return(cc=b(y().mark(function e(t){var n,a,i,r,o;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=[t],(a={})[t.uri]=!0,i=t;case 1:if((r=w.store.any(null,v.dct("isReplacedBy"),i,i.doc()))&&!a[r.uri]){e.next=2;break}return e.abrupt("continue",4);case 2:return e.next=3,w.store.fetcher.load(r);case 3:n.unshift(r),a[r.uri]=!0,i=r,e.next=1;break;case 4:i=t;case 5:if((o=w.store.any(i,v.dct("isReplacedBy"),null,i.doc()))&&!a[o.uri]){e.next=6;break}return e.abrupt("continue",7);case 6:n.push(o),a[o.uri]=!0,i=o,e.next=5;break;case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}function lc(e){return uc.apply(this,arguments)}function uc(){return uc=b(y().mark(function e(t){var n,a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t,a={};case 1:if(!n){e.next=4;break}if(!a[n.uri]){e.next=2;break}return Y.z3("originalVersion: verion loop"+t),e.abrupt("return",t);case 2:return a[n.uri]=!0,t=n,e.next=3,w.store.fetcher.load(t);case 3:n=w.store.any(null,v.dct("isReplacedBy"),t,t.doc()),e.next=1;break;case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}},e)})),uc.apply(this,arguments)}function pc(e){return dc.apply(this,arguments)}function dc(){return dc=b(y().mark(function e(t){var n,a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t,a={};case 1:if(!n){e.next=4;break}if(!a[n.uri]){e.next=2;break}return Y.z3("mostRecentVersion: verion loop"+t),e.abrupt("return",t);case 2:return a[n.uri]=!0,t=n,e.next=3,w.store.fetcher.load(t);case 3:n=w.store.any(t,v.dct("isReplacedBy"),null,t.doc()),e.next=1;break;case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}},e)})),dc.apply(this,arguments)}function mc(e){return w.store.holds(e,v.schema("dateDeleted"),null,e.doc())}function fc(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return hc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function hc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var vc=w.solidLogicSingleton.store;function xc(e,t,n,a,i,r){t.setAttribute("style",_e.participantsStyle);var o=function(n){var a,i=vc.any(n,v.wf("participant"));if(!i)return(a=e.createElement("tr")).textContent="???",a;var o=vc.anyValue(n,v.ui("backgroundColor"))||Ae.participationDefaultBackground,s=e.createElement("div");s.setAttribute("style",_e.participantsBlock),s.style.backgroundColor=o,a=Pt(e,null,i,r),t.appendChild(a);var c=e.createElement("td");return c.setAttribute("style",_e.personTableTD),c.appendChild(s),a.insertBefore(c,a.firstChild),a},s=function(){var e=vc.each(a,v.wf("participation")).map(function(e){return(0,Y.Rm)("in participants"),[vc.anyValue(e,v.cal("dtstart"))||"9999-12-31",e]});e.sort();var n=e.map(function(e){return e[1]});Ue(t,n,o)};return t.refresh=s,s(),t}function bc(e,t,n){return new Promise(function(a,i){if(!n)throw new Error("No user id");var r=vc.each(e,v.wf("participation")).filter(function(e){return vc.holds(e,v.wf("participant"),n)});if(r.length>1){var o,s=[],c=fc(r);try{for(c.s();!(o=c.n()).done;){var l=o.value,u=vc.anyValue(l,v.cal("dtstart"));u&&s.push([u,l])}}catch(e){c.e(e)}finally{c.f()}s.sort(),Y.R8("Multiple participation objects, picking earliest, in "+t),a(s[0][1])}if(r.length)a(r[0]);else{var p=$a(t),d=[(0,h.st)(e,v.wf("participation"),p,t),(0,h.st)(p,v.wf("participant"),n,t),(0,h.st)(p,v.cal("dtstart"),new Date,t),(0,h.st)(p,v.ui("backgroundColor"),Cc(n),t)];vc.updater.update([],d,function(e,t,n){t?a(p):i(new Error("Error recording your participation: "+n))}),a(p)}})}function gc(e,t,n){var a=w.authn.currentUser();if(a){var i=vc.each(e,v.wf("participation")).filter(function(e){return vc.holds(e,v.wf("participant"),a)});if(i.length>1)throw new Error("Multiple records of your participation");if(i.length)return i[0];if(!vc.updater.editable(t))return Y.Rm("Not recording participation, as no write access as "+a+" to "+t),null;var r=$a(t),o=[(0,h.st)(e,v.wf("participation"),r,t),(0,h.st)(r,v.wf("participant"),a,t),(0,h.st)(r,v.cal("dtstart"),new Date,t),(0,h.st)(r,v.ui("backgroundColor"),Cc(a),t)];return vc.updater.update([],o,function(e,t,a){if(!t)throw new Error("Error recording your participation: "+a);n&&n.refresh&&n.refresh()}),r}}function yc(e,t,n,a,i,r){var o=e.createElement("table");t.appendChild(o),xc(e,o,0,a,0,r);try{gc(a,n,o)}catch(n){t.appendChild(ct(e,"Error recording your participation: "+n))}return o}var wc=w.solidLogicSingleton.store,kc=(0,h.Namespace)("http://www.w3.org/ns/pim/pad#");function Cc(e){var t;return e&&e.uri?"#"+(16777215&(t=e.uri,t.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0))|12632256).toString(16):"#ffffff"}function Ec(e,t,n,a,i){var r=(i=i||{}).exists,o=e.createElement("table"),s=wc;if(a&&!a.uri)throw new Error("UI.pad.notepad: Invalid userid");var c=wc.updater,l=(0,h.Namespace)("http://www.w3.org/ns/pim/pad#");o.setAttribute("style",_e.notepadStyle);var u=null,p=null;if(i.statusArea){var d=i.statusArea.appendChild(e.createElement("table")).appendChild(e.createElement("tr"));u=d.appendChild(e.createElement("td")),p=d.appendChild(e.createElement("td")),u&&u.setAttribute("style",_e.upstreamStatus),p&&p.setAttribute("style",_e.downstreamStatus)}var m=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,Y.Rm)(t),i.statusArea&&(n?u:p).appendChild(ct(e,t,"pink"))},f=function(e){i.statusArea&&(i.statusArea.innerHTML="")},x=function(e,t,n){var a=e.subject;t=t||"";var i=_e.baseStyle,r=_e.headingCore,o=_e.headingStyle,c=s.any(a,v.dc("author"));!t&&c&&(t="color: "+(n?"#888":"black")+"; background-color: "+Cc(c)+";");var u=s.any(a,l("indent")),p=(u=u?u.value:0)>=0?i+"text-indent: "+3*u+"em;":r+o[-1-u];e.setAttribute("style",p+t)},b=function(e){var a=e.subject;if(!a)throw new Error("No chunk for line to be deleted!");var i=s.any(void 0,l("next"),a),r=s.any(a,l("next"));if(i.sameTerm(n)&&r.sameTerm(n))(0,Y.Rm)("You can't delete the only line.");else{var o=s.statementsMatching(a,void 0,void 0,t).concat(s.statementsMatching(void 0,void 0,a,t)),u=[(0,h.st)(i,l("next"),r,t)];if(a instanceof h.NamedNode){var p=a.uri.slice(-4);(0,Y.Rm)("Deleting line "+p)}if(!c)throw new Error("have no updater");c.update(o,u,function(t,n,i,r){if(n){var s=e.parentNode;if(s){var c=s.previousSibling;s.parentNode&&s.parentNode.removeChild(s),c&&c.firstChild&&c.firstChild.focus()}}else if(r&&409===r.status)x(e,"color: black; background-color: #ffd;"),e.state=0,De(),setTimeout(function(){_()},1e3);else{(0,Y.Rm)(" removePart FAILED "+a+": "+i),(0,Y.Rm)(" removePart was deleteing :'"+o),x(e,"color: black; background-color: #fdd;");var l=r?r.status:" [no response field] ";m("Error "+l+" saving changes: "+i.true)}})}},g=function(e,n){e.addEventListener("keydown",function(a){if(!c)throw new Error("no updater");var i,r;switch(a.keyCode){case 13:var o=a.shiftKey;if((0,Y.Rm)("enter"),o?(r=s.any(void 0,l("next"),n),i="newlinesAfter"):(r=s.any(n,l("next")),i="newlinesBefore"),r[i]=r[i]||0,r[i]+=1,r[i]>1)return void(0,Y.Rm)(" queueing newline queue = "+r[i]);(0,Y.Rm)(" go ahead line before "+r[i]),w(e,o);break;case 8:if(0===e.value.length)switch((0,Y.Rm)("Delete key line "+n.uri.slice(-4)+" state "+e.state),e.state){case 1:case 2:return void(e.state=4);case 3:case 4:return;case void 0:case 0:e.state=3,b(e),a.preventDefault();break;default:throw new Error("pad: Unexpected state "+e)}break;case 9:var u=a.shiftKey?-1:1;!function(e,n,a){var i=s.statementsMatching(n,l("indent")),r=i.length?Number(i[0].object.value):0;if(!(r+a<-3)){var o=r+a,u=(0,h.st)(n,l("indent"),o,t);if(!c)throw new Error("no updater");c.update(i,u,function(n,a,i){a?x(e):((0,Y.Rm)("Indent change FAILED '"+o+"' for "+t+": "+i),x(e,"color: black; background-color: #fdd;"),c.requestDownstreamAction(t,_))})}}(e,n,u),a.preventDefault();break;case 27:(0,Y.Rm)("escape"),c.requestDownstreamAction(t,_),a.preventDefault();break;case 38:e.parentNode.previousSibling&&(e.parentNode.previousSibling.firstChild.focus(),a.preventDefault());break;case 40:e.parentNode.nextSibling&&(e.parentNode.nextSibling.firstChild.focus(),a.preventDefault())}});var a=function(e){var n=e.subject;x(e,void 0,!0);var i,r=s.any(n,v.sioc("content")).value,o=[(0,h.st)(n,v.sioc("content"),r,t)];e.value&&(i=[(0,h.st)(n,v.sioc("content"),e.value,t)]);var l=e.value;if(e.lastSent&&r!==e.lastSent)throw new Error("Out of order, last sent expected '"+r+"' but found '"+e.lastSent+"'");if(e.lastSent=l,!c)throw new Error("no updater");c.update(o,i,function(n,i,o,s){i?(f(),x(e),(0,Y.Rm)(" Patch ok '"+r+"' -> '"+l+"' "),4===e.state?(e.state=3,b(e)):3===e.state||(2===e.state?(e.state=1,a(e)):e.state=0)):((0,Y.Rm)(" patch FAILED "+s.status+" for '"+r+"' -> '"+l+"': "+o),409===s.status?(x(e,"color: black; background-color: #fdd;"),e.state=0,De(),setTimeout(function(){c.requestDownstreamAction(t,_)},1e3)):(x(e,"color: black; background-color: #fdd;"),e.state=0,m(" Error "+s.status+" sending data: "+o,!0),De()))})};e.addEventListener("input",function(t){switch(x(e,void 0,!0),(0,Y.Rm)("Input event state "+e.state+" value '"+e.value+"'"),e.state){case 3:case 4:case 2:return;case 1:return void(e.state=2);case 0:case void 0:e.state=1,a(e)}})},y=function(t,n,i){var r=s.any(n,v.sioc("content"));r=r?r.value:"";var c=e.createElement("tr");i?o.insertBefore(c,t):t&&t.nextSibling?o.insertBefore(c,t.nextSibling):o.appendChild(c);var l=c.appendChild(e.createElement("input"));return l.subject=n,l.setAttribute("type","text"),l.value=r,a?(x(l,""),g(l,n)):(x(l,"color: #222; background-color: #fff"),(0,Y.Rm)("Note can't add listeners - not logged in")),l},w=function(e,i){var r,o,s,u,p,d=wc,m=0,f=null;e?("input"!==e.tagName.toLowerCase()&&(0,Y.Rm)("return pressed when current document is: "+e.tagName),r=e.subject,m=(m=d.any(r,l("indent")))?Number(m.value):0,i?(o=d.any(void 0,l("next"),r),s=r,u=o,f="newlinesAfter"):(o=r,s=d.any(r,l("next")),u=s,f="newlinesBefore"),p=e.parentNode):(o=n,s=n,p=void 0);var b=$a(t),g=b.uri.slice(-4),k=[(0,h.st)(o,l("next"),s,t)],C=[(0,h.st)(o,l("next"),b,t),(0,h.st)(b,l("next"),s,t),(0,h.st)(b,v.dc("author"),a,t),(0,h.st)(b,v.sioc("content"),"",t)];if(m>0&&C.push((0,h.st)(b,l("indent"),m,t)),(0,Y.Rm)(" Fresh chunk "+g+" proposed"),!c)throw new Error("no updater");c.update(k,C,function(e,t,n,a){if(t){var r=y(p,b,i);x(r),r.focus(),f&&((0,Y.Rm)(" Fresh chunk "+g+" updated, queue = "+u[f]),u[f]-=1,u[f]>0&&((0,Y.Rm)(" Implementing queued newlines = "+s.newLinesBefore),w(r,i)))}else(0,Y.Rm)(" ERROR writing new line "+g+": "+n)})},k=function(){var e={},t=0;function a(e){m(e),t++}if(!s.the(n,l("next")))return a("No initial next pointer"),!1;for(var i,r=n;(i=s.the(r,l("next")))||a("No next pointer from "+r),!i.sameTerm(n);){r=i;var o=i.uri.split("#")[1];if(e[i.uri])return a("Loop!"),!1;e[i.uri]=!0;var c=s.each(i,l("next")).length;1!==c&&a("Should be 1 not "+c+" next pointer for "+o),(c=s.each(i,l("indent")).length)>1&&a("Should be 0 or 1 not "+c+" indent for "+o),1!==(c=s.each(i,v.sioc("content")).length)&&a("Should be 1 not "+c+" contents for "+o),1!==(c=s.each(i,v.dc("author")).length)&&a("Should be 1 not "+c+" author for "+o),s.statementsMatching(void 0,v.sioc("contents")).forEach(function(t){e[t.subject.value]||a("Loose chunk! "+t.subject.value)})}return!t},C=function(){if(1!==s.each(n,l("next")).length){var e="Pad: Inconsistent data - NEXT pointers: "+s.each(n,l("next")).length;return(0,Y.Rm)(e),void(i.statusArea&&(i.statusArea.textContent+=e))}for(var t,a=[],r=s.the(n,l("next"));!r.sameTerm(n);r=s.the(r,l("next")))for(var c=0;c<o.children.length;c++){var u=o.children[c];u.firstChild&&u.firstChild.subject.sameTerm(r)&&(a[r.uri]=u.firstChild)}for(var p=o.children.length-1;p>=0;p--)a[(t=o.children[p]).firstChild.subject.uri]||o.removeChild(t);t=o.firstChild;for(var d=s.the(n,l("next"));!d.sameTerm(n);d=s.the(d,l("next"))){var m=s.any(d,v.sioc("content")).value;if(t&&a[d.uri]){var f=t.firstChild;m!==f.value&&(f.value=m),x(f),f.state=0,delete f.lastSent,t=t.nextSibling}else y(t,d,!0)}},E=function(e){if(e.refresh)e.refresh();else for(var t=0;t<e.children.length;t++)E(e.children[t])},A=!1,_=function(){if(A)(0,Y.Rm)(" Already reloading - stop");else{A=!0;var e=1e3,n=function(){if((0,Y.Rm)("try reload - timeout = "+e),!c)throw new Error("no updater");c.reload(c.store,t,function(a,i,r){A=!1,a?((0,Y.Rm)(" reloaded OK"),f(),k()?E(o):m("CONSISTENCY CHECK FAILED")):0===r.status?(m("Network error refreshing the pad. Retrying in "+e/1e3),A=!0,e*=2,setTimeout(n,e)):m("Error "+r.status+"refreshing the pad:"+i+". Stopped. "+t)})};n()}};if(o.refresh=C,o.reloadAndSync=_,a||(0,Y.Rm)("Warning: must be logged in for pad to be edited"),r)(0,Y.Rm)("Existing pad."),k()?(C(),s.holds(n,l("next"),n)&&w()):(0,Y.Rm)(o.textContent="Inconsistent data. Abort");else{(0,Y.Rm)("No pad exists - making new one.");var j=[(0,h.st)(n,v.rdf("type"),l("Notepad"),t),(0,h.st)(n,v.dc("author"),a,t),(0,h.st)(n,v.dc("created"),new Date,t),(0,h.st)(n,l("next"),n,t)];if(!c)throw new Error("no updater");c.update([],j,function(e,t,n){t?((0,Y.Rm)("Initial pad created"),w()):m(n||"")})}return o}function Ac(e,t){for(var n=[],a=t.the(e,kc("next"));!a.sameTerm(e);a=t.the(a,kc("next")))n.push(a);return n}function _c(e){return e.replace("&","&amp;").replace("<","&lt;").replace(">","&gt;")}function jc(e,t){var n=Ac(e,t),a="<html>\n <head>\n",i=t.anyValue(e,v.dct("title"));i&&(a+=" <title>".concat(_c(i),"</title>\n")),a+=" </head>\n <body>\n";var r=0;function o(e){for(;r>e;r--)a+="</ul>\n"}return n.forEach(function(e){var n=t.anyJS(e,kc("indent")),i=t.anyJS(e,v.sioc("content"));if(i){var s=_c(i);if(n<0){o(0);var c=n>=-3?4+n:1;a+="\n<h".concat(c,">").concat(s,"</h").concat(c,">\n")}else n>0?(o(n),function(e){for(;r<e;r++)a+="<ul>\n"}(n),a+="<li>".concat(s,"</li>\n")):(o(n),a+="<p>".concat(s,"</p>\n"))}}),o(0),a+=" </body>\n</html>\n"}var Sc={icons:Re.Pt,ns:v,media:ar,pad:l,style:_e,utils:t,widgets:s},Tc=h.Namespace("http://www.w3.org/2002/01/bookmark#"),Lc=Z,Rc=window.document||null;function Nc(e,t){return new Promise(function(n,a){w.store.updater.update(e,t,function(e,t,i){t?n():a(new Error(i))})})}function Bc(){return(Bc=b(y().mark(function e(t){var n,a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Tc("Bookmark"),a="bookmarks.ttl",e.next=1,mi(t,n,true);case 1:if(!(t.instances&&t.instances.length>0)){e.next=2;break}t.bookmarkDocument=t.instances[0],t.instances.length>1&&Y.R8("More than one bookmark file! "+t.instances),e.next=9;break;case 2:if(!t.publicProfile){e.next=8;break}return i=h.sym(t.publicProfile.dir().uri+a),e.prev=3,Y.Rm("Creating new bookmark file "+i),e.next=4,w.store.fetcher.createIfNotExists(i);case 4:e.next=6;break;case 5:return e.prev=5,r=e.catch(3),Y.R8("Can't make fresh bookmark file:"+r),e.abrupt("return",t);case 6:return e.next=7,w.createTypeIndexLogic.registerInTypeIndex(i,t.index,n);case 7:t.bookmarkDocument=i,e.next=9;break;case 8:Y.R8("You seem to have no bookmark file, nor even a profile file!");case 9:return e.abrupt("return",t);case 10:case"end":return e.stop()}},e,null,[[3,5]])}))).apply(this,arguments)}function Ic(e,t){return Oc.apply(this,arguments)}function Oc(){return Oc=b(y().mark(function e(t,n){var a,i,r,o,s,c,l,u;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a="",i=w.authn.currentUser()){e.next=1;break}throw new Error("Must be logged on to add Bookmark");case 1:return r=w.store.any(n,v.foaf("maker")),a=Lc(r)+": "+w.store.anyValue(n,v.sioc("content")).slice(0,80),o=t.bookmarkDocument,s=Sc.widgets.newThing(o,a),c=[h.st(o,Sc.ns.dct("references"),s,o),h.st(s,Sc.ns.rdf("type"),Tc("Bookmark"),o),h.st(s,Sc.ns.dct("created"),new Date,o),h.st(s,Tc("recalls"),n,o),h.st(s,Sc.ns.foaf("maker"),i,o),h.st(s,Sc.ns.dct("title"),a,o)],e.prev=2,e.next=3,Nc([],c);case 3:e.next=5;break;case 4:return e.prev=4,u=e.catch(2),l="Making bookmark: "+u,Y.R8(l),e.abrupt("return",null);case 5:return e.abrupt("return",s);case 6:case"end":return e.stop()}},e,null,[[2,4]])})),Oc.apply(this,arguments)}function Dc(e,t,n){return Fc.apply(this,arguments)}function Fc(){return(Fc=b(y().mark(function e(t,n,a){var i,r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t.bookmarkDocument);case 1:if(!(i=w.store.each(null,Tc("recalls"),n,t.bookmarkDocument)).length){e.next=9;break}if(confirm("Delete bookmark on this?"+i.length)){e.next=2;break}return e.abrupt("return");case 2:r=0;case 3:if(!(r<i.length)){e.next=8;break}return e.prev=4,e.next=5,Nc(w.store.connectedStatements(i[r]),[]);case 5:a.style.backgroundColor="white",Y.Rm("Bookmark deleted: "+i[r]),e.next=7;break;case 6:e.prev=6,s=e.catch(4),Y.z3("Cant delete bookmark:"+s),Y.R8("Cannot delete bookmark:"+s);case 7:r++,e.next=3;break;case 8:e.next=11;break;case 9:return e.next=10,Ic(t,n);case 10:o=e.sent,a.style.backgroundColor="yellow",Y.Rm("Bookmark added: "+o);case 11:case"end":return e.stop()}},e,null,[[4,6]])}))).apply(this,arguments)}function Pc(e,t){return Uc.apply(this,arguments)}function Uc(){return Uc=b(y().mark(function e(t,n){var a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=function(){return i=b(y().mark(function e(n){var a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t.bookmarkDocument);case 1:a=w.store.any(null,Tc("recalls"),n.target,t.bookmarkDocument),n.style=Sc.style.buttonStyle,a&&(n.style.backgroundColor="yellow");case 2:case"end":return e.stop()}},e)})),i.apply(this,arguments)},a=function(e){return i.apply(this,arguments)},!t.bookmarkDocument){e.next=2;break}return(r=Sc.widgets.button(Rc,Sc.icons.iconBase+"noun_45961.svg",Lc(Tc("Bookmark")),function(){Dc(t,n,r)})).target=n,e.next=1,a(r);case 1:return e.abrupt("return",r);case 2:case"end":return e.stop()}},e)})),Uc.apply(this,arguments)}var Mc=window.document,zc={};function qc(e,t){return Hc.apply(this,arguments)}function Hc(){return Hc=b(y().mark(function e(t,n){var a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=function(){return(r=b(y().mark(function e(){var i,r,o;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a.innerHTML="",!mc(t)){e.next=1;break}return e.abrupt("return",a);case 1:return e.next=2,sc(t);case 2:if(i=e.sent,0!==(r=i.map(function(e){return w.store.each(null,v.schema("target"),e,n)}).flat()).length){e.next=3;break}return e.abrupt("return",a);case 3:(o=r.map(function(e){return[w.store.any(e,v.rdf("type"),null,n),w.store.any(e,v.sioc("content"),null,n),w.store.any(e,v.schema("agent"),null,n)]})).sort(),o.forEach(function(e){var t,n=Ce(e,3),i=n[0],r=n[1],o=n[2];o?(t=Mc.createElement("a")).setAttribute("href",o.uri):t=Mc.createTextNode(""),t.textContent=r||zc[i]||"⬜️",a.appendChild(t)});case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)},i=function(){return r.apply(this,arguments)},a=Mc.createElement("span"),i().then(Y.Rm("sentimentStripLinked: sentimentStripLinked async refreshed")),a.refresh=i,e.abrupt("return",a);case 1:case"end":return e.stop()}},e)})),Hc.apply(this,arguments)}function Gc(e,t,n,a){return Vc.apply(this,arguments)}function Vc(){return Vc=b(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p,d,m,f,x,g,k,C,E,A,_,j,S;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return g=function(e,t,a,i,r,o){function s(){l.style.backgroundColor=c?"yellow":"white"}var c,l=It(Mc,a,Z(i),function(){var a=b(y().mark(function a(l){var p,d,f,x;return y().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!c){a.next=2;break}return a.next=1,m(c);case 1:c=null,s(),a.next=8;break;case 2:return c=$a(r),p=[h.st(c,v.schema("agent"),e.me,r),h.st(c,v.rdf("type"),i,r),h.st(c,v.schema("target"),t,r)],a.next=3,w.store.updater.update([],p);case 3:if(s(),!o){a.next=8;break}d=!1,f=0;case 4:if(!(f<o.length)){a.next=7;break}if(!(x=u(o[f]))){a.next=6;break}return a.next=5,m(x);case 5:d=!0;case 6:f++,a.next=4;break;case 7:d&&Ht(n);case 8:case"end":return a.stop()}},a)}));return function(e){return a.apply(this,arguments)}}());function u(n){var a=w.store.each(null,v.schema("agent"),e.me,r).filter(function(e){return w.store.holds(e,v.rdf("type"),n,r)}).filter(function(e){return w.store.holds(e,v.schema("target"),t,r)});return a.length?a[0]:null}function p(){c=u(i),s()}return l.refresh=p,p(),l},f=function(){return(f=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.updater.update(w.store.connectedStatements(t),[]);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},m=function(e){return f.apply(this,arguments)},d=function(){p.parentElement.parentElement.removeChild(p.parentElement)},u=function(){return(u=b(y().mark(function e(){var n,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,i.createThread(t);case 1:if(n=e.sent,r=a.chatOptions){e.next=2;break}throw new Error("replyInThread: missing options");case 2:r.showThread(n,r),d();case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(){return u.apply(this,arguments)},c=function(){return c=b(y().mark(function e(n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(x.value!==w.store.any(t,v.foaf("maker")).value){e.next=1;break}return d(),e.next=1,ol(n,t,i,a);case 1:case"end":return e.stop()}},e)})),c.apply(this,arguments)},s=function(e){return c.apply(this,arguments)},o=function(){return o=b(y().mark(function e(){var r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=w.store.any(t,v.foaf("maker")),x){e.next=1;break}alert("You can't delete the message, you are not logged in."),e.next=7;break;case 1:if(!x.sameTerm(r)){e.next=6;break}return e.prev=2,e.next=3,i.deleteMessage(t);case 3:e.next=5;break;case 4:e.prev=4,s=e.catch(2),o="Error deleting messaage "+s,Y.R8(o),alert(o),(a.statusArea||n.parentNode).appendChild(ct(Mc,o));case 5:n.parentNode.removeChild(n),e.next=7;break;case 6:alert("You can't delete the message, you are not logged in as the author, "+r);case 7:d();case 8:case"end":return e.stop()}},e,null,[[2,4]])})),o.apply(this,arguments)},r=function(){return o.apply(this,arguments)},p=Mc.createElement("div"),e.next=1,pc(t).value;case 1:if(E=e.sent,A=v.schema("dateDeleted").value,E!==A){e.next=2;break}return e.abrupt("return",p);case 2:if((x=w.authn.currentUser())&&w.store.holds(t,v.foaf("maker"),x)&&(p.appendChild(Bt(Mc,p,"message",r)),p.appendChild(It(Mc,Re.Pt.iconBase+"noun_253504.svg","edit",function(){return s(n)}))),Pc(a).then(function(e){e&&p.appendChild(e)}),x=w.authn.currentUser(),!(_=x)){e.next=4;break}return e.next=3,pc(t).value;case 3:j=e.sent,S=v.schema("dateDeleted").value,_=j!==S;case 4:if(!_){e.next=5;break}k={me:x,dom:Mc,div:p},p.appendChild(g(k,t,Re.Pt.iconBase+"noun_1384132.svg",v.schema("AgreeAction"),t.doc(),[v.schema("DisagreeAction")])),p.appendChild(g(k,t,Re.Pt.iconBase+"noun_1384135.svg",v.schema("DisagreeAction"),t.doc(),[v.schema("AgreeAction")]));case 5:return w.store.any(t,v.dct("created"))&&p.appendChild(It(Mc,Re.Pt.iconBase+"noun-reply-5506924.svg","Reply in thread",b(y().mark(function e(){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,l();case 1:case"end":return e.stop()}},e)})))),(C=p.appendChild(Ot(Mc))).style.float="right",C.firstChild.style.opacity="0.3",C.addEventListener("click",d),e.abrupt("return",p);case 6:case"end":return e.stop()}},e)})),Vc.apply(this,arguments)}function Wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(n),!0).forEach(function(t){on(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Qc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function Qc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}zc[v.schema("AgreeAction")]="👍",zc[v.schema("DisagreeAction")]="👎",zc[v.schema("EndorseAction")]="⭐️",zc[v.schema("LikeAction")]="❤️";var Zc=window.document,Kc=_e.messageBodyStyle,Yc=Z;function Xc(e,t){var n=Zc.createElement("img"),a="10";t.inlineImageHeightEms&&(a=(""+t.inlineImageHeightEms).trim()),n.setAttribute("style","max-height: "+a+"em; border-radius: 1em; margin: 0.7em;"),e&&n.setAttribute("src",e);var i=Zc.createElement("a");return i.setAttribute("href",e),i.setAttribute("target","images"),i.appendChild(n),Se(n,$rdf.sym(e)),i}var el=function(e,t){var n=Zc.createElement("a");return t&&t.uri&&(n.setAttribute("href",t.uri),n.addEventListener("click",Vt,!0),n.setAttribute("style","color: #3B5998; text-decoration: none; ")),n.textContent=e,n};function tl(e){var t=w.store.any(e,v.foaf("nick"));return t?""+t.value:""+Yc(e)}function nl(e,t,n,a){var i=e.appendChild(el(tl(t),t));t.uri&&w.store.fetcher.nowOrWhenFetched(t.doc(),void 0,function(e,n){i.textContent=tl(t)}),e.appendChild(Zc.createElement("br")),e.appendChild(el(n,a))}function al(e,t,n,a){var i=e.appendChild(el(Yc(t),t));t.uri&&w.store.fetcher.nowOrWhenFetched(t.doc(),void 0,function(e,n){i.textContent=tl(t)});var r=e.appendChild(el(n,a));r.style.fontSize="80%",r.style.marginLeft="1em",e.appendChild(Zc.createElement("br"))}function il(e,t,n,a,i){return rl.apply(this,arguments)}function rl(){return rl=b(y().mark(function e(t,n,a,i,r){var o,s,c,l,u,p,d,m,f,h,x,g,k,C,E,A,_,j,S,T,L,R,N,B,I,O,D,F,P,U,M,z,q,H,G;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return z=function(e){return e?"#e8ffe8":"white"},o=!1,s="1"===i.colorizeByAuthor||!0===i.colorizeByAuthor,c=w.store.any(n,v.foaf("maker")),l=w.store.any(n,v.dct("created")),e.next=1,pc(n);case 1:return u=e.sent,p=w.store.any(u,v.foaf("maker")),d=c.uri===(null==p?void 0:p.uri)?u:n,m=w.store.any(d,v.sioc("content")),e.next=2,sc(d);case 2:(f=e.sent).length>1&&Y.Rm("renderMessageRow versions: ",f.join(", ")),h=f.map(function(e){return w.store.each(e,v.sioc("has_reply"))}).flat(),x=null,g=[],k=$c(h);try{for(k.s();!(C=k.n()).done;)E=C.value,w.store.holds(E,v.rdf("type"),v.sioc("Thread"))?(x=E,Y.Rm("renderMessageRow: found thread: "+x)):g.push(E)}catch(e){k.e(e)}finally{k.f()}return g.length>1&&Y.Rm("renderMessageRow: found normal replies: ",g),x||(x=w.store.any(null,v.sioc("has_member"),n)),A=w.store.any(d,$rdf.sym("".concat(Bs,"proofValue"))),(_=Is()).id=d.uri,_.created=w.store.any(d,v.dct("created")).value,_.content=m.value,_.maker=c.uri,null!=A&&A.value?Xs(c).then(function(e){e||Y.R8("message is signed but "+c.uri+" is missing publicKey");null!=e&&e.match(/[0-9A-Fa-f]{6}/g)?null!=A&&A.value&&!Ds(null==A?void 0:A.value,_,e)&&Y.R8("invalid signature\n"+_.id):Y.R8("invalid publicKey hex string\n"+c.uri+"\n"+e)}):(o=!0,Y.R8(d.uri+" is unsigned")),e.next=3,lc(n);case 3:return j=e.sent,S=!n.sameTerm(j),T=w.store.the(j,v.dct("created"),null,j.doc())||w.store.the(n,v.dct("created"),null,n.doc()),L=Zc.createElement("tr"),o&&L.setAttribute("style","background-color: red"),L.AJAR_date=T.value,L.AJAR_subject=n,R=Zc.createElement("td"),L.appendChild(R),i.authorDateOnLeft?nl(R,c,yt(T.value),n):((N=Zc.createElement("img")).setAttribute("style","max-height: 2.5em; max-width: 2.5em; border-radius: 0.5em; margin: auto;"),Rt(N,c),R.appendChild(N)),B=yt(T.value),S&&(B+=" ... "+yt(l.value)),I=L.appendChild(Zc.createElement("td")),i.authorDateOnLeft||al(I,c,B,n),O=m?m.value.trim():"??? no content?",D=/^https?:\/[^ <>]*$/i.test(O),F=null,D?/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(O)&&i.expandImagesInline?(P=Xc(O,i),I.appendChild(P)):(U=I.appendChild(Zc.createElement("a")),F=U.appendChild(Zc.createElement("p")),U.href=O,F.textContent=O,I.appendChild(U)):(F=Zc.createElement("p"),I.appendChild(F),F.textContent=O),F&&(M=s?Cc(c):z(a),F.setAttribute("style",Kc+"background-color: "+M+";")),e.next=4,qc(n,n.doc());case 4:return(q=e.sent).children.length&&(I.appendChild(Zc.createElement("br")),I.appendChild(q)),H=Zc.createElement("td"),L.appendChild(H),G=It(Zc,Re.Pt.iconBase+"noun_243787.svg","..."),H.appendChild(G),G.addEventListener("click",function(){var e=b(y().mark(function e(a){var o,s,c;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!L.toolTR){e.next=1;break}return L.parentNode.removeChild(L.toolTR),delete L.toolTR,e.abrupt("return");case 1:return o=Zc.createElement("tr"),e.next=2,Gc(n,L,Jc(Jc({},r),{},{chatOptions:i}),t);case 2:(s=e.sent).style="border: 0.05em solid #888; border-radius: 0 0 0.7em 0.7em; border-top: 0; height:3.5em; background-color: #fff;",L.nextSibling?L.parentElement.insertBefore(o,L.nextSibling):L.parentElement.appendChild(o),L.toolTR=o,o.appendChild(Zc.createElement("td")),c=o.appendChild(Zc.createElement("td")),o.appendChild(Zc.createElement("td")),c.appendChild(s);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),x&&i.showThread&&H.appendChild(It(Zc,Re.Pt.iconBase+"noun_1180164.svg","see thread",function(e){i.showThread(x,i)})),e.abrupt("return",L);case 5:case"end":return e.stop()}},e)})),rl.apply(this,arguments)}function ol(e,t,n,a){return sl.apply(this,arguments)}function sl(){return(sl=b(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.parentNode,s=cl,c=a,l=r,u=i,p=a.options,e.next=1,pc(n);case 1:o=s(c,l,u,p,e.sent),r.insertBefore(o,t),o.originalRow=t,t.style.visibility="hidden";case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function cl(e,t,n,a,i){function r(e){return o.apply(this,arguments)}function o(){return(o=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,s(m.value,!0);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function s(e,t){return c.apply(this,arguments)}function c(){return c=b(y().mark(function r(o,s){var c,l,u,p;return y().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return l=function(){return l=b(y().mark(function r(o,c){var l;return y().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=1,dl(e,t,o,!1,a,n);case 1:i?((l=h.originalRow).parentNode?l.parentNode.removeChild(l):(Y.R8("No parentNode on old message "+l.textContent),l.style.backgroundColor="#fee",l.style.visibility="hidden"),h.parentNode.removeChild(h)):s&&(m.value="",m.setAttribute("style",Kc),m.disabled=!1,m.scrollIntoView(a.newestFirst),m.focus(),m.select());case 2:case"end":return r.stop()}},r)})),l.apply(this,arguments)},c=function(e,t){return l.apply(this,arguments)},s&&(m.setAttribute("style",Kc+"color: #bbb;"),m.disabled=!0),r.prev=1,r.next=2,e.updateMessage(o,i,null,a.thread);case 2:u=r.sent,r.next=4;break;case 3:return r.prev=3,p=r.catch(1),(n.statusArea||h).appendChild(ct(Zc,"Error writing message: "+p)),r.abrupt("return");case 4:return r.next=5,c(u,o);case 5:case"end":return r.stop()}},r,null,[[1,3]])})),c.apply(this,arguments)}function l(e){var n=t.chatDocument.dir().uri;Te(w.store.fetcher,e,n+"Files",n+"Pictures",function(){var e=b(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,s(n);case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}())}var u,p,d=function(){var e=b(y().mark(function e(t){var n,a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=$c(t),e.prev=1,n.s();case 2:if((a=n.n()).done){e.next=4;break}return i=a.value,e.next=3,s(i);case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,r=e.catch(1),n.e(r);case 6:return e.prev=6,n.f(),e.finish(6);case 7:case"end":return e.stop()}},e,null,[[1,5,6,7]])}));return function(t){return e.apply(this,arguments)}}();i?(u=w.store.anyValue(i,v.dct("created"),null,i.doc()),p=Re.Pt.iconBase+"noun_1180158.svg"):(p=Re.Pt.iconBase+"noun_383448.svg",u="9999-01-01T00:00:00Z");var m,f,h=Zc.createElement("tr"),x=Zc.createElement("td"),g=Zc.createElement("td"),k=Zc.createElement("td");return h.appendChild(x),h.appendChild(g),h.appendChild(k),h.AJAR_date=u,ci({div:g,dom:Zc}).then(function(t){!function(){function t(){return(t=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=1;break}return e.next=1,s(t.uri);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}if(a.menuHandler){var n=It(Zc,Re.Pt.iconBase+"noun_243787.svg","More");n.setAttribute("style",_e.buttonStyle+"float: right;"),k.appendChild(n)}a.menuHandler;var o=w.authn.currentUser();if(nl(x,o,"",null),m=Zc.createElement("textarea"),g.innerHTML="",g.appendChild(m),m.rows=3,i&&(m.value=w.store.anyValue(i,v.sioc("content"),null,i.doc())),m.setAttribute("style",Kc+"background-color: #eef;"),m.addEventListener("keydown",function(){var e=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("Enter"!==t.code){e.next=1;break}if(!(!t.shiftKey&&!a.shiftEnterSendsMessage||t.shiftKey&&a.shiftEnterSendsMessage)){e.next=1;break}return e.next=1,r(t);case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),!1),je(m,d,l),k.innerHTML="",(f=It(Zc,p,"Send")).style.float="right",f.addEventListener("click",function(e){return r()},!1),k.appendChild(f),i){var c=k.appendChild(Ot(Zc));c.style.float="left",c.addEventListener("click",function(e){return function(e){e.originalRow.style.visibility="visible",e.parentNode.removeChild(e)}(h)},!1),k.appendChild(c)}var u=e.dateFolder.leafDocumentFromDate(new Date);g.appendChild(ar.cameraButton(Zc,w.store,function(){return $rdf.sym(u.dir().uri+"Image_"+Date.now()+".png")},function(e){return t.apply(this,arguments)})),gc(e.channel,e.channel.doc())}(),Object.assign(t,n),function(e){return Bc.apply(this,arguments)}(t).then(function(e){})}),h}function ll(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ul(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ul(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function ul(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function pl(e){"Notification"in window?"granted"===Notification.permission?new Notification(e):"denied"!==Notification.permission&&Notification.requestPermission().then(function(t){"granted"===t&&new Notification(e)}):Y.R8("This browser does no t support desktop notification")}function dl(e,t,n,a,i,r){return ml.apply(this,arguments)}function ml(){return(ml=b(y().mark(function e(t,n,a,i,r,o){var s,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,il(t,a,i,r,o);case 1:s=e.sent,r.selectedMessage&&r.selectedMessage.sameTerm(a)&&(s.style.backgroundColor="yellow",r.selectedElement=s,n.selectedElement=s),c=!1,l=n.firstChild;case 2:if(l){e.next=3;break}return e.abrupt("continue",5);case 3:if(u=!0===r.newestfirst,!((p=s.AJAR_date)>l.AJAR_date&&u||p<l.AJAR_date&&!u)){e.next=4;break}return n.insertBefore(s,l),c=!0,e.abrupt("continue",5);case 4:l=l.nextSibling,e.next=2;break;case 5:c||n.appendChild(s);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function fl(e,t,n,a){return hl.apply(this,arguments)}function hl(){return hl=b(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p,d,m,f,x,g,k,C,E,A,_,j,S,T,L,R,N,B,I,O,D,F,P,U,M,z;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return S=function(){return(S=b(y().mark(function e(){var t,n,a,r,o,s,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(){i.selectedElement?i.selectedElement.scrollIntoView({block:"center"}):O.inputRow.scrollIntoView&&O.inputRow.scrollIntoView(T)},t=function(){u&&u.selectedElement&&u.selectedElement.scrollIntoView({block:"center"})},i.selectedMessage&&(r=i.selectedMessage.doc()),D&&(o=D.doc()),(s=r||o)&&(c=new Date,l=R.leafDocumentFromDate(c),a=l.sameTerm(s)),!s||a){e.next=2;break}return p=R.dateFromLeafDocument(s),e.next=1,d(p,a);case 1:u=e.sent,N.appendChild(u),F.messageTable=u,P.messageTable=u,t(),setTimeout(t,1e3),e.next=4;break;case 2:return e.next=3,C();case 3:F.messageTable=O,P.messageTable=O;case 4:return e.next=5,A(null,n);case 5:N.addEventListener("scroll",A),i.solo&&document.body.addEventListener("scroll",A);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)},j=function(){return S.apply(this,arguments)},_=function(){return(_=b(y().mark(function e(t,n){var a,r,o,s,c;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!z){e.next=1;break}return e.abrupt("return");case 1:z=!0,a=!n,r=150;case 2:if(!(N.scrollTop<r&&F.messageTable&&!F.messageTable.initial&&F.messageTable.extendBackwards)){e.next=6;break}if(0!==N.scrollHeight){e.next=3;break}return setTimeout(A,2e3),z=!1,e.abrupt("return");case 3:return s=N.scrollHeight-N.scrollTop,e.next=4,F.messageTable.extendBackwards();case 4:if(o=e.sent,a&&(N.scrollTop=N.scrollHeight-s),n&&n(),!o){e.next=5;break}return e.abrupt("continue",6);case 5:e.next=2;break;case 6:if(!(i.selectedMessage&&N.scrollHeight-N.scrollTop-N.clientHeight<r&&P.messageTable&&!P.messageTable.final&&P.messageTable.extendForwards)){e.next=9;break}return c=N.scrollTop,e.next=7,P.messageTable.extendForwards();case 7:if(o=e.sent,a&&(N.scrollTop=c),n&&n(),!o){e.next=8;break}return e.abrupt("continue",9);case 8:e.next=6;break;case 9:z=!1;case 10:case"end":return e.stop()}},e)}))).apply(this,arguments)},A=function(e,t){return _.apply(this,arguments)},E=function(){return(E=b(y().mark(function e(){var t,n,i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Date,n=R.leafDocumentFromDate(t),e.next=1,d(t,!0);case 1:return i=e.sent,N.appendChild(i),N.refresh=b(y().mark(function e(){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,g(new Date);case 1:return e.next=2,r(a,i);case 2:pl(a);case 3:case"end":return e.stop()}},e)})),w.store.updater.addDownstreamChangeListener(n,N.refresh),O=i,P.messageTable=O,e.abrupt("return",i);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},C=function(){return E.apply(this,arguments)},k=function(){return(k=b(y().mark(function e(){var t,n,a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((t=R.leafDocumentFromDate(new Date)).sameTerm(P.messageTable.chatDocument)){e.next=2;break}return O.inputRow&&(O.removeChild(O.inputRow),delete O.inputRow),n=P.messageTable.chatDocument,e.next=1,C();case 1:if(!w.store.holds(n,v.rdfs("seeAlso"),t,n)){a=[h.st(n,v.rdfs("seeAlso"),t,n)];try{w.store.updater.update([],a)}catch(e){alert("Unable to link old chat file to new one:"+e)}}case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},g=function(){return k.apply(this,arguments)},x=function(){return x=b(y().mark(function e(n,a){var r,o,c,u,d,m,f,h,x,g,k,C,E,A,_,j,S,B,D,F;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:x=function(){return(x=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!g.extendedForwards){e.next=1;break}p(!1,g),g.extendedForwards=!1,h(),e.next=3;break;case 1:return e.next=2,m();case 2:P.messageTable.scrollIntoView(T);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)},h=function(){if(o){var e=g.extendedForwards?!T:T,t=g.final?"noun_T-Block_1114657_000000.svg":function(e){return e?"noun_1369237.svg":"noun_1369241.svg"}(e);o.firstChild.setAttribute("src",Re.Pt.iconBase+t)}},f=function(){return(f=b(y().mark(function e(){var t;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,l(!1);case 1:return t=e.sent,e.abrupt("return",t);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},m=function(){return f.apply(this,arguments)},d=function(){if(r){var e=g.extendedBack?!T:T,t=g.initial?"noun_T-Block_1114655_000000.svg":function(e){return e?"noun_1369241.svg":"noun_1369237.svg"}(e);r.firstChild.setAttribute("src",Re.Pt.iconBase+t)}},u=function(){return(u=b(y().mark(function e(){var t;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,l(!0);case 1:return(t=e.sent)?(r&&(r.firstChild.setAttribute("src",Re.Pt.iconBase+"noun_T-Block_1114655_000000.svg"),r.disabled=!0),g.initial=!0):g.extendedBack=!0,d(),e.abrupt("return",t);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},c=function(){return u.apply(this,arguments)},r=null,o=null,(g=t.createElement("table")).style.width="100%",g.extendBackwards=c,g.extendForwards=m,g.date=n,k=R.leafDocumentFromDate(n),g.chatDocument=k,g.fresh=!1,g.setAttribute("style","width: 100%;"),a&&(g.final=!0,O=g,P.messageTable=g,C=cl(L,g,I,i),T?g.insertBefore(C,g.firstChild):g.appendChild(C),g.inputRow=C),E=t.createElement("tr"),(A=E.appendChild(t.createElement("td"))).style="text-align: center; vertical-align: middle; color: #888; font-style: italic;",A.textContent=yt(n.toISOString(),!0),_=E.appendChild(t.createElement("td")),i.includeRemoveButton&&_.appendChild(Ot(t,function(e){N.parentNode.removeChild(N)})),g.extendedForwards=!1,T?g.appendChild(E):g.insertBefore(E,g.firstChild),j=w.store.statementsMatching(null,v.wf("message"),null,k),!a&&j.length,S=ll(j),e.prev=1,S.s();case 2:if((B=S.n()).done){e.next=4;break}return D=B.value,e.next=3,s(D.object,g);case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,F=e.catch(1),S.e(F);case 6:return e.prev=6,S.f(),e.finish(6);case 7:return g.fresh=!0,e.abrupt("return",g);case 8:case"end":return e.stop()}},e,null,[[1,5,6,7]])})),x.apply(this,arguments)},f=function(e,t){return x.apply(this,arguments)},m=function(){return(m=b(y().mark(function e(n,a){var i,r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=R.leafDocumentFromDate(n),e.prev=1,e.next=2,w.store.fetcher.createIfNotExists(i);case 2:e.next=7;break;case 3:if(e.prev=3,s=e.catch(1),r=t.createElement("table"),o=r.appendChild(t.createElement("tr")),!s.response||!s.response.status||404!==s.response.status){e.next=5;break}return e.next=4,f(n,a);case 4:return e.abrupt("return",e.sent);case 5:Y.Rm("*** Error NON 404 for chat file "+i),o.appendChild(ct(t,s,"pink"));case 6:return e.abrupt("return",o);case 7:return e.next=8,f(n,a);case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}},e,null,[[1,3]])}))).apply(this,arguments)},d=function(e,t){return m.apply(this,arguments)},p=function(e,t){if(e?T:!T)for(;t.nextSibling;)N.removeChild(t.nextSibling);else for(;t.previousSibling;)N.removeChild(t.previousSibling);(e?F:P).messageTable=t},u=function(){return(u=b(y().mark(function e(t){var n,a,i,r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=(n=t?F:P).messageTable.date,!(t&&F.limit&&a<=F.limit)){e.next=2;break}if(O){e.next=1;break}return e.next=1,C();case 1:return e.abrupt("return",!0);case 2:return e.next=3,R.loadPrevious(a,t);case 3:if((a=e.sent)||t||O){e.next=4;break}return e.next=4,C();case 4:if(a){e.next=5;break}return e.abrupt("return",!0);case 5:return i=!1,t||(r=R.leafDocumentFromDate(new Date),o=R.leafDocumentFromDate(a),i=o.sameTerm(r)),e.next=6,d(a,i);case 6:return s=e.sent,n.messageTable=s,(t?T:!T)?N.appendChild(s):N.insertBefore(s,N.firstChild),e.abrupt("return",i);case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(e){return u.apply(this,arguments)},c=function(){return c=b(y().mark(function e(t,n){var a,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!mc(t)||i.showDeletedMessages){e.next=1;break}return e.abrupt("return");case 1:if(a=w.store.any(null,v.sioc("has_member"),t,t.doc()),(r=w.store.any(t,v.sioc("id"),null,t.doc()))&&!a&&(a=w.store.any(null,v.sioc("has_member"),r,t.doc())),!i.thread){e.next=5;break}if(!w.store.holds(t,v.sioc("has_reply"),i.thread)){e.next=2;break}e.next=4;break;case 2:if(!a||!a.sameTerm(i.thread)){e.next=3;break}e.next=4;break;case 3:return e.abrupt("return");case 4:e.next=6;break;case 5:if(!a){e.next=6;break}return e.abrupt("return");case 6:if(n.fresh){e.next=7;break}return e.next=7,dl(L,n,t,n.fresh,i,I);case 7:case"end":return e.stop()}},e)})),c.apply(this,arguments)},s=function(e,t){return c.apply(this,arguments)},o=function(){return o=b(y().mark(function e(t,n){var a,i,r,o,c,l,u,p,d;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(a={},i=n.firstChild;i;i=i.nextSibling)i.AJAR_subject&&(a[i.AJAR_subject.uri]=!0);o=w.store.each(t,v.wf("message"),null,n.chatDocument),c={},l=ll(o),e.prev=1,l.s();case 2:if((u=l.n()).done){e.next=4;break}if(p=u.value,c[p.uri]=!0,a[p.uri]){e.next=3;break}return e.next=3,s(p,n);case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,d=e.catch(1),l.e(d);case 6:return e.prev=6,l.f(),e.finish(6);case 7:for(i=n.firstChild;i;)r=i.nextSibling,i.AJAR_subject&&!c[i.AJAR_subject.uri]&&n.removeChild(i),i=r;for(i=n.firstChild;i;i=i.nextSibling)i.AJAR_subject&&Ht(i);case 8:case"end":return e.stop()}},e,null,[[1,5,6,7]])})),o.apply(this,arguments)},r=function(e,t){return o.apply(this,arguments)},(i=i||{}).authorDateOnLeft=!1,T="1"===i.newestFirst||!0===i.newestFirst,L=new oc(a,i),R=L.dateFolder,N=t.createElement("div"),L.div=N,B=N.appendChild(t.createElement("div")),I={dom:t,statusArea:B,div:B},F={messageTable:null},P={messageTable:null},i.thread&&(U=i.thread,(D=w.store.any(null,v.sioc("has_reply"),U,U.doc()))&&(M=w.store.any(D,v.dct("created"),null,D.doc()))&&(F.limit=new Date(M.value))),z=!1,e.next=1,j();case 1:return e.abrupt("return",N);case 2:case"end":return e.stop()}},e)})),hl.apply(this,arguments)}var vl=w.store,xl=[];function bl(e){return xl[e]}function gl(e,t){if("string"!=typeof t)throw Y.Rm("Non-string value of preference "+e+": "+t),new Error("Non-string value of preference "+e+": "+t);this.value[e]=t}function yl(e,t){return new Promise(function(n,a){var i=vl.any(e,v.ui("sharedPreferences"));if(i)t.sharedPreferences=i,n(t);else{vl.updater.editable(e.doc())||(Y.Rm(" Cant make shared preferences, may not change ".concat(e.doc)),n(t));var r=h.sym(e.doc().uri+"#SharedPreferences"),o=[h.st(e,v.ui("sharedPreferences"),r,e.doc())];Y.Rm("Creating shared preferences "+r),vl.updater.update([],o,function(e,i,o){i?(t.sharedPreferences=r,n(t)):a(new Error("Error creating shared prefs: "+o))})}})}function wl(e,t){return new Promise(function(n,a){li(t).then(function(t){if(t.preferencesFile){var i,r,o=vl.each(null,v.solid("forClass"),e,t.preferencesFile),s=[];if(o.length){if(o.forEach(function(e){i=i||vl.any(e,v.solid("personalDefaults"))}),i)return t.personalDefaults=i,void n(t);i=$a(t.preferencesFile),r=o[0]}else r=$a(t.preferencesFile),s=[h.st(r,v.rdf("type"),v.solid("TypeRegistration"),t.preferencesFile),h.st(r,v.solid("forClass"),e,t.preferencesFile)];i=$a(t.preferencesFile),s.push(h.st(r,v.solid("personalDefaults"),i,t.preferencesFile)),vl.updater.update([],s,function(r,o,s){o?(t.personalDefaults=i,n(t)):a(new Error("Setting preferences for "+e+": "+s))})}else Y.Rm("Not doing private class preferences as no access to preferences file. "+t.preferencesFileError)},function(e){a(e)})})}function kl(e,t,n,a){var i=a.dom.createElement("div");return bc(e,e.doc(),a.me).then(function(r){var o=a.dom;function s(e){i.appendChild(o.createElement("h5")).textContent=e}s("My view of this "+a.noun),Ia(o,i,{},r,n,e.doc(),function(e,t){e||xt(a,t)}),s("Everyone's view of this "+a.noun),yl(e,a).then(function(a){var r=a.sharedPreferences;Ia(o,i,{},r,n,e.doc(),function(e,t){e||xt(a,t)}),s("My default view of any "+a.noun),wl(t,a).then(function(e){Ia(o,i,{},e.personalDefaults,n,e.preferencesFile,function(t,n){t||xt(e,n)})},function(e){xt(a,e)})})},function(e){i.appendChild(ct(a.dom,e))}),i}function Cl(e){return e.datatype?e.datatype.equals(v.xsd("boolean"))?"1"===e.value:e.datatype.equals(v.xsd("dateTime"))||e.datatype.equals(v.xsd("date"))?new Date(e.value):e.datatype.equals(v.xsd("integer"))||e.datatype.equals(v.xsd("float"))||e.datatype.equals(v.xsd("decimal"))?Number(e.value):e.value:e}function El(e,t,n,a){return new Promise(function(i,r){yl(e,a).then(function(a){var o=a.sharedPreferences;if(a.me)bc(e,e.doc(),a.me).then(function(e){wl(t,a).then(function(t){var a=[],r=t.personalDefaults;n.forEach(function(t){var n=vl.any(e,t)||vl.any(o,t)||vl.any(r,t);n&&(a[t.uri]=Cl(n))}),i(a)},r)},r);else{var s=[];n.forEach(function(e){var t=vl.any(o,e);t&&(s[e.uri]=Cl(t))}),i(s)}})})}var Al={icons:Re.Pt,log:e,ns:v,utils:t,widgets:s};function _l(e,t){var n,a,i,r,o=t.sourceDocument,s=t.tableClass,c=t.query,l=Al.ns,u=w.store,p={},d={"http://www.w3.org/2002/07/owl#sameAs":!0,"http://www.w3.org/1999/02/22-rdf-syntax-ns#type":!0},m={"http://www.w3.org/2001/XMLSchema#decimal":!0,"http://www.w3.org/2001/XMLSchema#float":!0,"http://www.w3.org/2001/XMLSchema#double":!0,"http://www.w3.org/2001/XMLSchema#integer":!0,"http://www.w3.org/2001/XMLSchema#nonNegativeInteger":!0,"http://www.w3.org/2001/XMLSchema#positiveInteger":!0,"http://www.w3.org/2001/XMLSchema#nonPositiveInteger":!0,"http://www.w3.org/2001/XMLSchema#negativeInteger":!0,"http://www.w3.org/2001/XMLSchema#long":!0,"http://www.w3.org/2001/XMLSchema#int":!0,"http://www.w3.org/2001/XMLSchema#short":!0,"http://www.w3.org/2001/XMLSchema#byte":!0,"http://www.w3.org/2001/XMLSchema#unsignedLong":!0,"http://www.w3.org/2001/XMLSchema#unsignedInt":!0,"http://www.w3.org/2001/XMLSchema#unsignedShort":!0,"http://www.w3.org/2001/XMLSchema#unsignedByte":!0},f={"http://www.w3.org/2001/XMLSchema#dateTime":!0,"http://www.w3.org/2001/XMLSchema#date":!0},v={"http://xmlns.com/foaf/0.1/Image":!0,"http://purl.org/dc/terms/Image":!0},x=t.keyVariable||"?_row",b=0,g=null,y=null,k=e.createElement("div");k.className="tableViewPane",k.appendChild(function(){var t=e.createElement("table");t.setAttribute("class","toolbar");var n=e.createElement("tr");return i=e.createElement("td"),n.appendChild(i),r=e.createElement("td"),n.appendChild(r),t.appendChild(n),t}());var C,E=e.createElement("div");if(k.appendChild(E),k.refresh=function(){X(C.query,C.logicalRows,C.columns,C)},c)C=ne(c),E.appendChild(C);else{var A=function(){var e,t,n=function(){for(var e={},t=u.statementsMatching(void 0,Al.ns.rdf("type"),s,o),n={},a=0;a<t.length;++a){var i=t[a].object;if("NamedNode"===i.termType){var r=I(e,i);i.uri in n||(n[i.uri]=[]),n[i.uri].push(t[a].subject),r.addUse()}}return[n,e]}();for(var a in e=n[0],t=n[1],e){var i=e[a];D(t[a],i)}var r=new T(null);return[r,R(t)]}();n=A[0],a=A[1],s||i.appendChild(function(t,n){var a=e.createElement("div");a.appendChild(e.createTextNode("Select type: "));var i=e.createElement("select");for(var r in i.appendChild(N("All types","null")),n)i.appendChild(N(n[r].getLabel(),r));return i.addEventListener("click",function(){var e;e="null"===i.value?t:n[i.value],j(e)},!1),a.appendChild(i),a}(n,a)),y=function(e){var t,n=-1,a=null;for(t in e){var i=e[t];i.useCount>n&&(a=i,n=i.useCount)}return a}(a),j(y||n)}return k;function _(e){var t=new h.Query,n=u.variable(x.slice(1));return function(e,t){for(var n=t.getColumns(),a=0;a<n.length;++a){var i=u.variable("_col"+a);e.vars.push(i),n[a].setVariable(i)}}(t,e),function(e,t,n){var a=n.type;a||(a=u.variable("_any")),e.pat.add(t,Al.ns.rdf("type"),a)}(t,n,e),function(e,t,n){for(var a=n.getColumns(),i=0;i<a.length;++i){var r=a[i],o=u.formula();o.add(t,r.predicate,r.getVariable()),e.pat.optional.push(o)}}(t,n,e),t}function j(t){S(r),r.appendChild(function(t){var n=e.createElement("div"),a=t.getUnusedColumns();if(a.sort(function(e,t){var n=e.sortKey(),a=t.sortKey();return(n>a)-(n<a)}),a.length>0){n.appendChild(e.createTextNode("Add column: "));var i=e.createElement("select");i.appendChild(N("","-1"));for(var r=0;r<a.length;++r){var o=a[r];i.appendChild(N(o.getLabel(),""+r))}n.appendChild(i),i.addEventListener("click",function(){var e=Number(i.value);e>=0&&(t.addColumn(a[e]),j(t))},!1)}return n}(t)),function(e,t){g&&(g.running=!1);var n=ne(e,t);S(E),E.appendChild(n),g=e}(_(t),t)}function S(e){for(;e.childNodes.length>0;)e.removeChild(e.childNodes[0])}function T(e){this.type=e,this.columns=null,this.allColumns=[],this.useCount=0,this.getAllColumns=function(){return this.allColumns},this.getColumns=function(){if(!this.columns){var e=this.getAllColumns();this.columns=e.slice(0,7)}return this.columns},this.getUnusedColumns=function(){for(var e=this.getAllColumns(),t=this.getColumns(),n=[],a=0;a<e.length;++a)-1===t.indexOf(e[a])&&n.push(e[a]);return n},this.addColumn=function(e){this.columns.push(e)},this.removeColumn=function(e){this.columns=this.columns.filter(function(t){return t!==e})},this.getLabel=function(){return Z(this.type)},this.addUse=function(){this.useCount+=1}}function L(){this.useCount=0,this.checkedAnyValues=!1,this.possiblyLiteral=!0,this.possiblyNumber=!0,this.constraints=[],this.checkValue=function(e){var t=e.termType;if(this.possiblyLiteral&&"Literal"!==t&&"NamedNode"!==t)this.possiblyNumber=!1,this.possiblyLiteral=!1;else if(this.possiblyNumber){if("Literal"!==t)this.possiblyNumber=!1;else e.value.match(/^-?\d+(\.\d*)?$/)||(this.possiblyNumber=!1)}this.checkedAnyValues=!0},this.getVariable=function(){return this.variable},this.setVariable=function(e){this.variable=e},this.getKey=function(){return this.variable.toString()},this.addUse=function(){this.useCount+=1},this.getHints=function(){return t&&t.hints&&this.variable&&t.hints[this.variable.toNT()]?t.hints[this.variable.toNT()]:{}},this.getLabel=function(){return this.getHints().label?this.getHints().label:this.predicate?this.predicate.sameTerm(l.rdf("type"))&&this.superClass?Z(this.superClass,!0):Z(this.predicate):this.variable?this.variable.toString():"unlabeled column?"},this.setPredicate=function(e,t,n){t?(this.inverse=e,this.constraints=this.constraints.concat(u.each(e,Al.ns.rdfs("domain"))),e.sameTerm(l.rdfs("subClassOf"))&&"NamedNode"===n.termType&&(this.superClass=n,this.alternatives=u.each(void 0,l.rdfs("subClassOf"),n))):(this.predicate=e,this.constraints=this.constraints.concat(u.each(e,Al.ns.rdfs("range"))))},this.getConstraints=function(){return this.constraints},this.filterFunction=function(){return!0},this.sortKey=function(){return this.getLabel().toLowerCase()},this.isImageColumn=function(){for(var e=0;e<this.constraints.length;e++)if(this.constraints[e].uri in v)return!0;return!1}}function R(e,t){var n=[];for(var a in e){var i=e[a];t&&!t(a,i)||n.push(i)}return n}function N(t,n){var a=e.createElement("option");return a.setAttribute("value",n),a.appendChild(e.createTextNode(t)),a}function B(e,t){var n;return t.uri in e?n=e[t.uri]:((n=new L).setPredicate(t),e[t.uri]=n),n}function I(e,t){var n;return t.uri in e?n=e[t.uri]:(n=new T(t),e[t.uri]=n),n}function O(e,t){for(var n=u.statementsMatching(e,void 0,void 0,o),a={},i=0;i<n.length;++i){var r=n[i].predicate;if(!(r.uri in d)){var s=B(t,r);s.checkValue(n[i].object),a[r.uri]=s}}return a}function D(e,t){for(var n={},a=0;a<t.length;++a){var i=O(t[a],n);for(var r in i){i[r].addUse()}}var o=R(n);!function(e){function t(e,t){return(e.useCount<t.useCount)-(e.useCount>t.useCount)}e.sort(t)}(o),e.allColumns=o}function F(t,n){var a=e.createElement("a");return a.appendChild(e.createTextNode("[x]")),a.addEventListener("click",function(){t.removeColumn(n),j(t)},!1),a}function P(e,t){for(var n=!0,a=0;a<t.length;++a){var i=t[a],r=i.getKey(),o=null;if(r in e.values&&(o=e.values[r][0]),!i.filterFunction(o)){n=!1;break}}var s=e._htmlRow;s.style.display=n?"":"none"}function U(e,t){for(var n=0;n<e.length;++n){P(e[n],t)}}function M(e,t,n){function a(e){return e?"Literal"===e.termType?e.value.toLowerCase():"NamedNode"===e.termType?Z(e).toLowerCase():e.value.toLowerCase():""}!function(e,t,n,a){var i=t.getKey();if(e.sort(function(e,t){var r=null,o=null;i in e.values&&(r=e.values[i][0]),i in t.values&&(o=t.values[i][0]);var s=n(r,o);return a?-s:s}),e.length){for(var r=e[0]._htmlRow.parentNode,o=0;o<e.length;++o)r.removeChild(e[o]._htmlRow);for(var s=0;s<e.length;++s)r.appendChild(e[s]._htmlRow)}}(e,t,function(e,t){var n=a(e),i=a(t);return n<i?-1:n>i?1:0},n)}function z(t,n,a){var i=e.createElement("div"),r=e.createElement("input");r.setAttribute("type","text"),r.style.width="70%",i.appendChild(r);var o=e.createElement("span");o.appendChild(e.createTextNode("▼")),o.addEventListener("click",function(){M(t,a,!1)},!1),i.appendChild(o);var s=e.createElement("span");s.appendChild(e.createTextNode("▲")),s.addEventListener("click",function(){M(t,a,!0)},!1),i.appendChild(s);var c=null;return a.filterFunction=function(e){return!c||!!e&&("Literal"===e.termType?e.value:"NamedNode"===e.termType?Z(e):"").toLowerCase().indexOf(c)>=0},r.addEventListener("keyup",function(){c=""!==r.value?r.value.toLowerCase():null,U(t,n)},!1),i}function q(t,n,a,i){for(var r=e.createElement("div"),o=e.createElement("select"),s={},c=0;c<i.length;++c){var l=i[c];s[l.uri]=!0}var u=W(a).initialSelection;u&&(s=u),o.setAttribute("multiple","true");for(var p=0;p<i.length;++p){var d=i[p],m=N(Z(d),p);s[d.uri]&&(m.selected=!0),o.appendChild(m)}return r.appendChild(o),a.filterFunction=function(e){return!s||e&&s[e.uri]},o.addEventListener("click",function(){s={};for(var e=o.options,a=0;a<e.length;a++){var r=e[a],c=Number(r.value);e[a].selected&&(s[i[c].uri]=!0)}U(t,n)},!0),r}function H(t,n,a){var i=e.createElement("div"),r=e.createElement("input");r.setAttribute("type","text"),r.style.width="40px",i.appendChild(r);var o=e.createElement("input");o.setAttribute("type","text"),o.style.width="40px",i.appendChild(o);var s=null,c=null;function l(){s=""===r.value?null:Number(r.value),c=""===o.value?null:Number(o.value),U(t,n)}return a.filterFunction=function(e){return e&&(e=Number(e)),!(s&&(!e||e<s))&&!(c&&(!e||e>c))},r.addEventListener("keyup",l,!1),o.addEventListener("keyup",l,!1),i}function G(e,t,n){if(n.superClass&&n.alternatives.length>0)return q(e,t,n,n.alternatives);for(var a,i=n.getConstraints(),r=0;r<i.length;r++){if(a=i[r],n.checkedAnyValues&&n.possiblyNumber||a.uri in m)return H(e,t,n);if("http://www.w3.org/2000/01/rdf-schema#Literal"===a.uri)return z(e,t,n);var o=u.each(a,Al.ns.owl("oneOf"));if(o.length>0)return q(e,t,n,o.elements)}return function(e,t,n){return n.checkedAnyValues&&n.possiblyNumber?H(e,t,n):n.possiblyLiteral?z(e,t,n):null}(e,t,n)}function V(t,n,a){a=a||{};var i=e.createElement("a"),r=a.linkFunction;return i.setAttribute("href",t),i.appendChild(e.createTextNode(n)),r?i.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation();var t=He(e).getAttribute("href");t||Y.Rm("No href found \n"),r(t)},!0):i.addEventListener("click",Al.widgets.openHrefInOutlineMode,!0),i}function W(e){return t&&t.hints&&e.variable&&t.hints[e.variable.toNT()]?t.hints[e.variable.toNT()]:{}}function J(t,n){var a=W(n),i=a.cellFormat;if(!i){if("Literal"===t.termType){if(t.datatype){if(f[t.datatype.uri])return e.createTextNode(Al.widgets.shortDate(t.value));if(m[t.datatype.uri]){var r=e.createElement("span");return r.textContent=t.value,r.setAttribute("style","text-align: right"),r}}return e.createTextNode(t.value)}if("NamedNode"===t.termType&&n.isImageColumn())return function(t){var n=e.createElement("img");return n.setAttribute("src",t.uri),n.style.height="40px",n}(t);if("NamedNode"===t.termType||"BlankNode"===t.termType)return function(e,t){var n=!1;return e.uri&&(n=e.uri.match(/^mailto:(.*)/)),V(e.uri,n?n[1]:Z(e),t)}(t,a);if("Collection"===t.termType){var o=e.createElement("span");return o.appendChild(e.createTextNode("[")),t.elements.forEach(function(t){o.appendChild(J(t,n)),o.appendChild(e.createTextNode(", "))}),o.removeChild(o.lastChild),o.appendChild(e.createTextNode("]")),o}return e.createTextNode("unknown termtype '"+t.termType+"'!")}if("shortDate"===i)return e.createTextNode(Al.widgets.shortDate(t.value))}function $(e,t){var n,a=null;if("Literal"===e.termType)a="value";else{if("NamedNode"!==e.termType)return t.indexOf(e)>=0;a="uri"}for(n=0;n<t.length;++n)if(t[n].termType===e.termType&&t[n][a]===e[a])return!0;return!1}function Q(t,n,a){var i,r=!1;for(i in a){var o=a[i];i in t.values||(t.values[i]=[]),$(o,t.values[i])||(t.values[i].push(o),r=!0)}r&&(S(t._htmlRow),function(t,n,a){var i=e.createElement("td");n._subject&&"uri"in n._subject&&i.appendChild(V(n._subject.uri,"→")),t.appendChild(i);for(var r=0;r<a.length;++r){var o=a[r],s=e.createElement("td"),c=void 0,l=o.getKey();if(l in n.values){var u=n.values[l],p=!1;n.originalValues&&n.originalValues[l]&&u.length!==n.originalValues[l].length&&(p=!0);for(var d=0;d<u.length;++d){var m=u[d];n.originalValues&&n.originalValues[l]&&n.originalValues[l].length>d&&(c=n.originalValues[l][d],m.toString()!==c.toString()&&(p=!0)),s.appendChild(J(m,o)),d!==u.length-1&&s.appendChild(e.createTextNode(",\n")),p&&(s.style.background="#efe")}}t.appendChild(s)}n._htmlRow=t}(t._htmlRow,t,n)),P(t,n)}function K(e){if("uri"in e)return e.uri;if("_subject_id"in e)return e._subject_id;var t=""+b;return e._subject_id=t,++b,t}function X(n,a,i,r){n.running=!0;var o=Date.now(),s=e.createElement("tr");r.appendChild(s),s.textContent="Loading ...";for(var c=0;c<a.length;c++)a[c].original=!0,a[c].originalValues||(a[c].originalValues=a[c].values),a[c].values={};u.query(n,function(t){if(n.running){s.textContent+=".";var o,c=null,l=null;if(x in t&&(o=K(l=t[x]))in p&&(c=p[o]),!c){var u=e.createElement("tr");r.appendChild(u),c={_htmlRow:u,_subject:l,values:{}},a.push(c),l&&(p[o]=c)}delete c.original,Q(c,i,t)}},void 0,function(){s&&s.parentNode&&s.parentNode.removeChild&&(s.parentNode.removeChild(s),s=null);var e=Date.now()-o;Y.Rm("Query done: "+a.length+" rows, "+e+"ms");for(var n=a.length-1;n>=0;n--)if(a[n].original){Y.Rm(" deleting row "+a[n]._subject);var r=a[n]._htmlRow;r.parentNode.removeChild(r),delete p[K(a[n]._subject)],a.splice(n,1)}if(t.sortBy){var c=function(e,t){for(var n in e){var a=e[n];if(a.variable.toNT()===t)return a}throw new Error("getColumnForVariable: no column for variable ".concat(t))}(i,t.sortBy);M(a,c,t.sortReverse)}t.onDone&&t.onDone(k)})}function ee(e,t){Al.log.debug(">> processing formula");for(var n=0;n<t.statements.length;++n){var a=t.statements[n];if("NamedNode"===a.predicate.termType&&"Variable"===a.object.termType){var i=a.object.toString();if(i in e)e[i].setPredicate(a.predicate,!1,a.subject)}if("NamedNode"===a.predicate.termType&&"Variable"===a.subject.termType){var r=a.subject.toString();if(r in e)e[r].setPredicate(a.predicate,!0,a.object)}}for(var o=0;o<t.optional.length;++o)Al.log.debug("recurse to optional subformula "+o),ee(e,t.optional[o]);Al.log.debug("<< finished processing formula")}function te(e){for(var t=[],n={},a=0;a<e.vars.length;++a){var i=new L,r=e.vars[a];Al.log.debug("column "+a+" : "+r),i.setVariable(r),n[r]=i,t.push(i)}return ee(n,e.pat),t}function ne(t,n){var a;a=c?te(t):n.getColumns();var i=[],r=e.createElement("table");return r.appendChild(function(t,n){var a=e.createElement("tr"),i=e.createElement("th");a.appendChild(i);for(var r=0;r<t.length;++r){var o=e.createElement("th"),s=t[r];o.appendChild(e.createTextNode(s.getLabel())),n&&o.appendChild(F(n,s)),a.appendChild(o)}return a}(a,n)),r.appendChild(function(t,n){var a=e.createElement("tr");a.className="selectors",a.appendChild(e.createElement("td"));for(var i=0;i<n.length;++i){var r=e.createElement("td"),o=G(t,n,n[i]);o&&r.appendChild(o),a.appendChild(r)}return a}(i,a)),r.logicalRows=i,r.columns=a,r.query=t,X(t,i,a,r),r}}function jl(e,t){if(t&&("object"==xe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Sl(e){return Sl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sl(e)}function Tl(e,t){return Tl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tl(e,t)}function Ll(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ll=function(){return!!e})()}function Rl(e){var t="function"==typeof Map?new Map:void 0;return Rl=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Ll())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var i=new(e.bind.apply(e,a));return n&&Tl(i,n.prototype),i}(e,arguments,Sl(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Tl(n,e)},Rl(e)}function Nl(e,t,n){return t=Sl(t),jl(e,Bl()?Reflect.construct(t,n||[],Sl(e).constructor):t.apply(e,n))}function Bl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Bl=function(){return!!e})()}var Il=function(e){function t(){return ve(this,t),Nl(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tl(e,t)}(t,e),ye(t)}(Rl(HTMLElement)),Ol="#ddddcc";function Dl(e){var t=e.subject,n=e.dom||document,a=parseInt(e.orientation||"0"),i=e.backgroundColor||Ol,r=2&a,o=1&a,s=e.onClose,c=function(e){return function(e){for(var t=0,n=0;n<3;n++)t+=parseInt(e.slice(2*n+1,2*n+3),16);return t>384}(e)?[Fl(e,"#ffffff",.3),"#000000"]:[Fl(e,"#000000",.3),"#ffffff"]}(i),l=Ce(c,2),u=l[0],p=l[1],d="flex: 2; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(u,"; padding: 1em;"),m=n.createElement("div");m.setAttribute("style",_e.tabsRootElement),m.style.flexDirection=(o?"row":"column")+(r?"-reverse":"");var f=m.appendChild(n.createElement("nav"));f.setAttribute("style",_e.tabsNavElement);var h=m.appendChild(n.createElement("main"));h.setAttribute("style",_e.tabsMainElement);var v=f.appendChild(n.createElement("ul"));v.setAttribute("style",_e.tabContainer),v.style.flexDirection="".concat(o?"column":"row");var x=h;m.tabContainer=v,m.bodyContainer=x;var b=["0.2em","0.2em","0","0"],g=b.concat(b).slice(a,a+4),y="border-radius: ".concat(g.join(" "),";"),k=["0.3em","0.3em","0","0.3em"],C=k.concat(k).slice(a,a+4),E="margin: ".concat(C.join(" "),";"),A="padding: ".concat(C.join(" "),";"),_=y+"position: relative; padding: 0.7em; max-width: 20em; color: ".concat(p,";"),j="".concat(_+E," opacity: 50%; background-color: ").concat(i,";"),S="".concat(_+E," background-color: ").concat(u,";"),T="height: 100%; width: 100%;",L=T+"display: none;";if(m.refresh=D,D(),!e.startEmpty&&v.children.length&&e.selectedTab){var R=Array.from(v.children).map(function(e){return e.firstChild}).find(function(t){return t.dataset.name===e.selectedTab}),N=e.selectedTab.uri,B=Array.from(v.children).find(function(e){return e.subject&&e.subject.uri&&e.subject.uri===N}),I=(B||R||v.children[0]).firstChild;I&&I.click()}else e.startEmpty||v.children[0].firstChild.click();return m;function O(t){var a=n.createElement("li");a.setAttribute("style",j),a.subject=t;var i=a.appendChild(n.createElement("button"));if(i.setAttribute("style",_e.makeNewSlot),i.onclick=function(){if(F(),P(),a.setAttribute("style",S),a.bodyTR){a.bodyTR.setAttribute("style",T);var n=o(a);e.renderMain&&a.subject&&!1!==n.asSettings&&(n.innerHTML="loading item ..."+t,e.renderMain(n,a.subject),n.asSettings=!1)}},e.renderTabSettings&&a.subject){var r=n.createElement("button");r.textContent="...",r.setAttribute("style",_e.ellipsis),r.onclick=function(){if(F(),P(),a.setAttribute("style",S),a.bodyTR){a.bodyTR.setAttribute("style",T);var n=o(a);e.renderTabSettings&&a.subject&&!0!==n.asSettings&&(n.innerHTML="loading settings ..."+t,e.renderTabSettings(n,a.subject),n.asSettings=!0)}},a.appendChild(r)}return e.renderTab?e.renderTab(i,t):i.innerHTML=Z(t),a;function o(e){var t,a=null===(t=e.bodyTR)||void 0===t?void 0:t.children[0];if(a)return a;var i=e.bodyTR.appendChild(n.createElement("main"));return i.setAttribute("style",d),i}}function D(){var a,i,r,o,c,l=e.items?e.items:!1!==e.ordered?w.store.the(t,e.predicate).elements:w.store.each(t,e.predicate),u=!1;for(o=0;o<v.children.length;o++)if(a=v.children[o],o>=l.length||a.subject&&!a.subject.sameTerm(l[o])){u=!0;break}if(u||l.length!==v.children.length){for(c=v.children.length-1;c>=0&&(a=v.children[c],r=c-v.children.length+l.length,!a.subject||a.subject.sameTerm(l[r]));c--);for(var p=l.slice(o,c-v.children.length+l.length+1);c>=o;)v.removeChild(v.children[o]),x.removeChild(x.children[o]),c-=1;for(i=0;i<p.length;i++){var d=O(p[i]),m=n.createElement("div");d.bodyTR=m,o===v.children.length?(v.appendChild(d),x.appendChild(m)):(v.insertBefore(d,v.children[o+i]),x.insertBefore(m,x.children[o+i]))}s&&function(e){if(e.dataset.onCloseSet){var t=e.querySelector(".unstyled");e.removeChild(t)}var a=n.createElement("li");a.classList.add("unstyled");var i=Ot(n,s);i.setAttribute("style",i.getAttribute("style")+A),a.appendChild(i),e.appendChild(a),e.dataset.onCloseSet="true"}(v)}}function F(){for(var e=0;e<v.children.length;e++){var t=v.children[e];t.classList.contains("unstyled")||t.setAttribute("style",j)}}function P(){for(var e=0;e<x.children.length;e++)x.children[e].setAttribute("style",L)}}function Fl(e,t,n){for(var a,i,r="#",o="0123456789abcdef",s=0;s<3;s++){a=parseInt(e.slice(2*s+1,2*s+3),16),i=parseInt(t.slice(2*s+1,2*s+3),16);var c=parseInt((""+(a*(1-n)+i*n)).split(".")[0]),l=parseInt((""+c/16).split(".")[0]),u=parseInt((""+c%16).split(".")[0]);r+=o[l]+o[u]}return r}var Pl='\n<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 26 26" fill="none">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13 25C19.6274 25 25 19.6274 25 13C25 6.37258 19.6274 1 13 1C6.37258 1 1 6.37258 1 13C1 19.6274 6.37258 25 13 25Z" fill="#D8D8D8" stroke="#8B8B8B"/>\n <mask id="mask0" mask-type="alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="26" height="26">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13 25C19.6274 25 25 19.6274 25 13C25 6.37258 19.6274 1 13 1C6.37258 1 1 6.37258 1 13C1 19.6274 6.37258 25 13 25Z" fill="white" stroke="white"/>\n </mask>\n <g mask="url(#mask0)">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M17.0468 10.4586C17.0468 14.4979 15.4281 16.9214 12.9999 16.9214C10.5718 16.9214 8.95298 14.4979 8.95298 10.4586C8.95298 6.41931 12.9999 6.41931 12.9999 6.41931C12.9999 6.41931 17.0468 6.41931 17.0468 10.4586ZM4.09668 23.3842C6.52483 17.7293 12.9999 17.7293 12.9999 17.7293C12.9999 17.7293 19.475 17.7293 21.9031 23.3842C21.9031 23.3842 17.8481 25 12.9999 25C8.15169 25 4.09668 23.3842 4.09668 23.3842Z" fill="#8B8B8B"/>\n </g>\n</svg>';function Ul(){return(0,h.sym)(document.location.origin).site()}function Ml(e,t){return zl.apply(this,arguments)}function zl(){return(zl=b(y().mark(function e(t,n){var a,i,r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n.any(t,null,v.ldp("Container"),t)){e.next=2;break}return e.next=1,n.fetcher.webOperation("GET",t.uri,n.fetcher.initFetchOptions(t.uri,{headers:{accept:"text/turtle"}}));case 1:a=e.sent,i=a.responseText,(0,h.parse)(i,n,t.uri,"text/turtle");case 2:e.next=4;break;case 3:return e.prev=3,s=e.catch(0),console.error("Error loading pod "+t+": "+s),e.abrupt("return",null);case 4:if(n.holds(t,v.rdf("type"),v.space("Storage"),t)){e.next=5;break}return console.warn("Pod "+t+" does not declare itself as a space:Storage"),e.abrupt("return",null);case 5:if(!(r=n.any(t,v.solid("owner"),null,t)||n.any(null,v.space("storage"),t,t))){e.next=10;break}return e.prev=6,e.next=7,n.fetcher.load(r.doc());case 7:e.next=9;break;case 8:return e.prev=8,e.catch(6),console.warn("Unable to load profile of pod owner "+r),e.abrupt("return",null);case 9:return n.holds(r,v.space("storage"),t,r.doc())||console.warn("Pod owner ".concat(r," does NOT list pod ").concat(t," as their storage")),e.abrupt("return",r);case 10:return o=(0,h.sym)("".concat(t.uri,"profile/card#me")),e.prev=11,e.next=12,n.fetcher.load(o);case 12:e.next=14;break;case 13:return e.prev=13,e.catch(11),console.error("Ooops. Guessed wrong pod owner webid {$guess} : can't load it."),e.abrupt("return",null);case 14:if(!n.holds(o,v.space("storage"),t,o.doc())){e.next=15;break}return console.warn("Using guessed pod owner webid but it links back."),e.abrupt("return",o);case 15:return e.abrupt("return",null);case 16:case"end":return e.stop()}},e,null,[[0,3],[6,8],[11,13]])}))).apply(this,arguments)}function ql(e,t){var n,a,i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=null,s=0,c=function(){s=r.leading?Date.now():0,o=null,i=e.apply(n,a),o||(n=a=null)};return function(){var l=Date.now();s||r.leading||(s=l);var u=t-(l-s);return n=this,a=arguments,u<=0||u>t?(o&&(clearTimeout(o),o=null),s=l,i=e.apply(n,a),o||(n=a=null)):o||!1===r.trailing||(o=setTimeout(c,u)),i}}var Hl=Re.Pt.iconBase+"noun_help.svg";function Gl(e,t,n){return Vl.apply(this,arguments)}function Vl(){return(Vl=b(y().mark(function e(t,n,a){var i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=document.getElementById("PageHeader")){e.next=1;break}return e.abrupt("return");case 1:r=Ul(),Wl(i,t,r,n,a)(),w.authSession.events.on("logout",Wl(i,t,r,n,a)),w.authSession.events.on("login",Wl(i,t,r,n,a));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Wl(e,t,n,a,i){return b(y().mark(function r(){var o,s;return y().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=w.authn.currentUser(),e.innerHTML="",s=e,r.next=1,Jl(t,n,o,a,i);case 1:s.appendChild.call(s,r.sent);case 2:case"end":return r.stop()}},r)}))}function Jl(e,t,n,a,i){return $l.apply(this,arguments)}function $l(){return($l=b(y().mark(function e(t,n,a,i,r){var o,s,c,l,u,p,d;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((o=document.createElement("a")).href=n.uri,o.setAttribute("style",_e.headerBannerLink),s=document.createElement("img"),r&&(s.src=r.logo?r.logo:"https://solidproject.org/assets/img/solid-emblem.svg"),s.setAttribute("style",_e.headerBannerIcon),o.appendChild(s),!a){e.next=2;break}return e.next=1,Xl(t,a,i);case 1:d=e.sent,e.next=3;break;case 2:d=Zl();case 3:return c=d,(l=document.createElement("div")).setAttribute("style",_e.headerBanner),l.appendChild(o),(u=document.createElement("div")).setAttribute("style",_e.headerBannerRightMenu),u.appendChild(c),r&&r.helpMenuList&&(p=Ql(r,r.helpMenuList),u.appendChild(p)),l.appendChild(u),e.abrupt("return",l);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Ql(e,t){if(t){var n=document.createElement("ul");n.setAttribute("style",_e.headerUserMenuList),t.forEach(function(e){"url"===(e.url?"url":"onclick")?n.appendChild(tu(Yl(e.label,e.url,e.target))):n.appendChild(tu(Kl(e.label,e.onclick)))});var a=document.createElement("nav");a.setAttribute("style",_e.headerUserMenuNavigationMenuNotDisplayed),a.setAttribute("aria-hidden","true"),a.setAttribute("id","helperNav"),a.appendChild(n);var i=document.createElement("div");i.setAttribute("style",_e.headerBannerUserMenu),i.appendChild(a);var r=document.createElement("button");r.setAttribute("style",_e.headerUserMenuTrigger),r.type="button";var o=document.createElement("img");o.src=e&&e.helpIcon?e.helpIcon:Re.Pt.iconBase+Hl,o.setAttribute("style",_e.headerUserMenuTriggerImg),i.appendChild(r),r.appendChild(o);var s=ql(function(e){return au(e,r,a)},50);r.addEventListener("click",s);var c=setTimeout(function(){return null},0);return i.addEventListener("mouseover",function(e){clearTimeout(c),s(e);var t=document.getElementById("helperNav");null==t||t.setAttribute("style",_e.headerUserMenuNavigationMenu)}),i.addEventListener("mouseout",function(e){c=setTimeout(function(){return s(e)},200);var t=document.getElementById("helperNav");null==t||t.setAttribute("style",_e.headerUserMenuNavigationMenuNotDisplayed)}),i}}function Zl(){var e=document.createElement("div");return e.setAttribute("style",_e.headerBannerLogin),e.appendChild(ki(document,null,{})),e}function Kl(e,t){var n=document.createElement("button");return n.setAttribute("style",_e.headerUserMenuButton),n.onmouseover=function(){n.setAttribute("style",_e.headerUserMenuButtonHover)},n.onmouseout=function(){n.setAttribute("style",_e.headerUserMenuButton)},n.addEventListener("click",t),n.innerText=e,n}function Yl(e,t,n){var a=document.createElement("a");return a.setAttribute("style",_e.headerUserMenuLink),a.onmouseover=function(){a.setAttribute("style",_e.headerUserMenuLinkHover)},a.onmouseout=function(){a.setAttribute("style",_e.headerUserMenuLink)},a.href=t,a.innerText=e,n&&(a.target=n),a}function Xl(e,t,n){return eu.apply(this,arguments)}function eu(){return(eu=b(y().mark(function e(t,n,a){var i,r,o,s,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(i=t.fetcher)){e.next=1;break}return e.next=1,i.load(n);case 1:return(r=document.createElement("ul")).setAttribute("style",_e.headerUserMenuList),a&&a.forEach(function(e){"url"===(e.url?"url":"onclick")?r.appendChild(tu(Yl(e.label,e.url,e.target))):r.appendChild(tu(Kl(e.label,e.onclick)))}),(o=document.createElement("nav")).setAttribute("style",_e.headerUserMenuNavigationMenuNotDisplayed),o.setAttribute("aria-hidden","true"),o.setAttribute("id","loggedInNav"),o.appendChild(r),(s=document.createElement("button")).setAttribute("style",_e.headerUserMenuTrigger),s.type="button","string"==typeof(c=nu(t,n))?s.innerHTML=c:s.appendChild(c),(l=document.createElement("div")).setAttribute("style",_e.headerBannerUserMenuNotDisplayed),l.appendChild(s),l.appendChild(o),u=ql(function(e){return au(e,s,o)},50),s.addEventListener("click",u),p=setTimeout(function(){return null},0),l.addEventListener("mouseover",function(e){clearTimeout(p),u(e);var t=document.getElementById("loggedInNav");null==t||t.setAttribute("style",_e.headerUserMenuNavigationMenu)}),l.addEventListener("mouseout",function(e){p=setTimeout(function(){return u(e)},200);var t=document.getElementById("loggedInNav");null==t||t.setAttribute("style",_e.headerUserMenuNavigationMenuNotDisplayed)}),e.abrupt("return",l);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function tu(e){var t=document.createElement("li");return t.setAttribute("style",_e.headerUserMenuListItem),t.appendChild(e),t}function nu(e,t){var n=null;try{if(!(n=Tt(t)))return Pl}catch(e){return Pl}var a=document.createElement("div");return a.setAttribute("style",_e.headerUserMenuPhoto),a.style.backgroundImage="url(".concat(n,")"),a}function au(e,t,n){var a="true"===t.getAttribute("aria-expanded"),i="mouseover"===e.type,r="mouseout"===e.type;a&&i||!a&&r||(t.setAttribute("aria-expanded",(!a).toString()),n.setAttribute("aria-hidden",a.toString()))}function iu(e,t){return ru.apply(this,arguments)}function ru(){return(ru=b(y().mark(function e(t,n){var a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=document.getElementById("PageFooter")){e.next=1;break}return e.abrupt("return");case 1:return i=Ul(),e.next=2,Ml(i,t);case 2:r=e.sent,ou(a,t,i,r,n)(),w.authSession.events.on("login",ou(a,t,i,r,n)),w.authSession.events.on("logout",ou(a,t,i,r,n));case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ou(e,t,n,a,i){return b(y().mark(function r(){var o,s;return y().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=w.authn.currentUser(),e.innerHTML="",s=e,r.next=1,su(t,o,n,a,i);case 1:s.appendChild.call(s,r.sent);case 2:case"end":return r.stop()}},r)}))}function su(e,t,n,a,i){var r=document.createElement("div");if(!n||!a||t&&t.equals(a))return r;r.setAttribute("style",_e.footer);var o=document.createElement("span");o.innerText="You're visiting ";var s=document.createElement("a");s.href=n.uri,s.innerText="the Pod";var c=document.createElement("span");c.innerText=" controlled by ";var l=document.createElement("a");l.href=a.uri,l.innerText=function(e,t){return e.anyValue(t,v.vcard("fn"),null,t.doc())||e.anyValue(t,v.foaf("name"),null,t.doc())||t.uri}(e,a);var u=document.createElement("span");u.innerText=". For more info, check out ";var p=document.createElement("a");p.href=i&&i.solidProjectUrl?i.solidProjectUrl:"https://solidproject.org",p.innerText=i&&i.solidProjectName?i.solidProjectName:"solidproject.org";var d=document.createElement("span");return d.innerText=".",r.appendChild(o),r.appendChild(s),r.appendChild(c),r.appendChild(l),r.appendChild(u),r.appendChild(p),r.appendChild(d),r}var cu=window?window.document:null;"undefined"!=typeof window&&(window.UI={ns:v,acl:$i,aclControl:Qi,create:Ki,createTypes:d,dom:cu,icons:Re.Pt,language:n,log:e,login:o,matrix:Xi,media:ar,messageArea:Er,infiniteMessageArea:fl,pad:l,participation:c,preferences:u,style:_e,table:_l,tabs:p,utils:t,widgets:s,initHeader:Gl,initFooter:iu})})(),r})());
38
+ const fs={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},hs={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},vs=BigInt(0),xs=BigInt(2);const bs=zo(fs.p,{sqrt:function(e){const t=fs.p,n=BigInt(3),a=BigInt(6),i=BigInt(11),r=BigInt(22),o=BigInt(23),s=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,p=To(u,n,t)*u%t,d=To(p,n,t)*u%t,m=To(d,xs,t)*l%t,f=To(m,i,t)*m%t,h=To(f,r,t)*f%t,v=To(h,s,t)*h%t,x=To(v,c,t)*v%t,b=To(x,s,t)*h%t,g=To(b,n,t)*u%t,y=To(g,o,t)*f%t,w=To(y,a,t)*l%t,k=To(w,xs,t);if(!bs.eql(bs.sqr(k),e))throw new Error("Cannot find square root");return k}}),gs=ps(fs,{Fp:bs,endo:hs}),ys={};function ws(e,...t){let n=ys[e];if(void 0===n){const t=ao((a=e,Uint8Array.from(a,(e,t)=>{const n=e.charCodeAt(0);if(1!==e.length||n>127)throw new Error(`string contains non-ASCII character "${a[t]}" with code ${n} at position ${t}`);return n})));n=Vr(t,t),ys[e]=n}var a;return ao(Vr(n,...t))}const ks=e=>e.toBytes(!0).slice(1),Cs=e=>e%xs===vs;function Es(e){const{Fn:t,BASE:n}=gs,a=t.fromBytes(e),i=n.multiply(a);return{scalar:Cs(i.y)?a:t.neg(a),bytes:ks(i)}}function As(e){const t=bs;if(!t.isValidNot0(e))throw new Error("invalid x: Fail if x ≥ p");const n=t.create(e*e),a=t.create(n*e+BigInt(7));let i=t.sqrt(a);Cs(i)||(i=t.neg(i));const r=gs.fromAffine({x:e,y:i});return r.assertValidity(),r}const _s=lo;function js(...e){return gs.Fn.create(_s(ws("BIP0340/challenge",...e)))}function Ss(e){return Es(e).bytes}function Ts(e,t,n=Jr(32)){const{Fn:a}=gs,i=Tr(e,void 0,"message"),{bytes:r,scalar:o}=Es(t),s=Tr(n,32,"auxRand"),c=a.toBytes(o^_s(ws("BIP0340/aux",s))),l=ws("BIP0340/nonce",c,r,i),{bytes:u,scalar:p}=Es(l),d=js(u,r,i),m=new Uint8Array(64);if(m.set(u,0),m.set(a.toBytes(a.create(p+d*o)),32),!Ls(m,i,r))throw new Error("sign: Invalid signature produced");return m}function Ls(e,t,n){const{Fp:a,Fn:i,BASE:r}=gs,o=Tr(e,64,"signature"),s=Tr(t,void 0,"message"),c=Tr(n,32,"publicKey");try{const e=As(_s(c)),t=_s(o.subarray(0,32));if(!a.isValidNot0(t))return!1;const n=_s(o.subarray(32,64));if(!i.isValidNot0(n))return!1;const l=js(i.toBytes(t),ks(e),s),u=r.multiplyUnsafe(n).add(e.multiplyUnsafe(i.neg(l))),{x:p,y:d}=u.toAffine();return!(u.is0()||!Cs(d)||p!==t)}catch(e){return!1}}const Rs=(()=>{const e=(e=Jr(48))=>Ho(e,fs.n);return{keygen:as(e,Ss),getPublicKey:Ss,sign:Ts,verify:Ls,Point:gs,utils:{randomSecretKey:e,taggedHash:ws,lift_x:As,pointToBytes:ks},lengths:{secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48}}})();new TextDecoder("utf-8");var Ns=new TextEncoder,Bs="https://w3id.org/security#";function Is(){return{id:"",created:"",dateDeleted:"",content:"",maker:"",sig:""}}function Os(e){var t=ao(Ns.encode(function(e){return JSON.stringify(e)}(e)));return Dr(t)}function Ds(e,t,n){return Rs.verify(Gr(e),Gr(Os(t)),Gr(n))}function Fs(e,t){return Dr(Rs.sign(Gr(Os(e)),Gr(t)))}var Ps=function(e){var t,n,a=null===(t=w.store.any(e,v.space("preferencesFile"),null,e.doc()))||void 0===t?void 0:t.value;if(!(a=null===(n=a)||void 0===n?void 0:n.split("/").slice(0,-2).join("/")))throw new Error("prefererencesFile is expected to exist in ".concat(e));return a},Us=function(e){var t;try{var n=Ps(e);t="".concat(n,"/profile/keys/publicKey.ttl")}catch(e){Y.z3(e)}return t},Ms=function(e){var t;try{var n=Ps(e);t="".concat(n,"/settings/keys/privateKey.ttl")}catch(e){Y.z3(e)}return t};function zs(e,t){return qs.apply(this,arguments)}function qs(){return(qs=b(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Vs(t,n,"publicKey");case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Hs(e,t){return Gs.apply(this,arguments)}function Gs(){return(Gs=b(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Vs(t,n,"privateKey");case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Vs(e,t,n){return Ws.apply(this,arguments)}function Ws(){return(Ws=b(y().mark(function e(t,n,a){var i,r,o;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,w.store.fetcher.load(n);case 1:return i=w.store.any(t,v.solid(a)),e.abrupt("return",null==i?void 0:i.value);case 2:if(e.prev=2,404!==(r=e.catch(0)).response.status){e.next=7;break}return Y.Rm("createIfNotExists: doc does NOT exist, will create... "+n),e.prev=3,e.next=4,w.store.fetcher.webOperation("PUT",n,{data:"",contentType:"text/turtle"});case 4:e.next=6;break;case 5:throw e.prev=5,o=e.catch(3),Y.Rm("createIfNotExists doc FAILED: "+n+": "+o),o;case 6:return delete w.store.fetcher.requested[n],e.abrupt("return",void 0);case 7:throw Y.Rm("createIfNotExists doc FAILED: "+n+": "+r),r;case 8:case"end":return e.stop()}},e,null,[[0,2],[3,5]])}))).apply(this,arguments)}function Js(e,t){return $s.apply(this,arguments)}function $s(){return($s=b(y().mark(function e(t,n){var a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t);case 1:if(a=w.store.any(w.store.sym(t),w.store.sym("http://www.iana.org/assignments/link-relations/acl"))){e.next=2;break}throw new Error("Key ACL doc not found!");case 2:return e.prev=2,e.next=3,w.store.fetcher.webOperation("PUT",a.value,{data:n,contentType:"text/turtle"});case 3:e.next=6;break;case 4:if(e.prev=4,404===(null==(r=e.catch(2))||null===(i=r.response)||void 0===i?void 0:i.status)){e.next=5;break}throw new Error(r);case 5:Y.Rm("delete "+a.value+" "+r.response.status);case 6:case"end":return e.stop()}},e,null,[[2,4]])}))).apply(this,arguments)}var Qs=function(e){return"\n@prefix : <#>.\n@prefix acl: <http://www.w3.org/ns/auth/acl#>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix key: <./>.\n\n:ReadWrite\n a acl:Authorization;\n acl:accessTo key:;\n acl:default key:;\n acl:agent <".concat(e,">;\n acl:mode acl:Read, acl:Write.\n")},Zs=function(e,t){var n="acl:agentClass foaf:Agent";return null!=t&&t.length&&(n="acl:agent <".concat(t,">")),"\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix acl: <http://www.w3.org/ns/auth/acl#>.\n<#Read>\n a acl:Authorization;\n ".concat(n,";\n acl:accessTo <").concat(e.split("/").pop(),">;\n acl:mode acl:Read.\n")};function Ks(){return Dr(Rs.utils.randomSecretKey())}function Ys(e){return Dr(Rs.getPublicKey(Gr(e)))}function Xs(e){return ec.apply(this,arguments)}function ec(){return(ec=b(y().mark(function e(t){var n,a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t);case 1:return e.next=2,Us(t);case 2:return n=e.sent,e.prev=3,e.next=4,w.store.fetcher.load(n);case 4:return a=w.store.any(t,v.solid("publicKey")),e.abrupt("return",null==a?void 0:a.value);case 5:return e.prev=5,e.catch(3),e.abrupt("return",void 0);case 6:case"end":return e.stop()}},e,null,[[3,5]])}))).apply(this,arguments)}function tc(e){return nc.apply(this,arguments)}function nc(){return nc=b(y().mark(function e(t){var n,a,i,r,o,s,c,l,u;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t);case 1:return e.next=2,Us(t);case 2:return n=e.sent,e.next=3,Ms(t);case 3:return a=e.sent,e.next=4,zs(t,n);case 4:return i=e.sent,e.next=5,Hs(t,a);case 5:if(r=e.sent,o=!0,r&&i!==Ys(r)&&confirm("This is strange the publicKey is not valid for\n"+(null==t?void 0:t.uri)+"'shall we repair keeping the private key ?")&&(o=!1),r&&i&&o){e.next=8;break}if(s=[],c=[],r){e.next=6;break}return r=Ks(),c=[h.st(t,v.solid("privateKey"),h.literal(r),w.store.sym(a))],e.next=6,ic(a,[],c,t.uri);case 6:if(i&&o){e.next=7;break}return s=[],i&&(s=[h.st(t,v.solid("publicKey"),h.lit(i),w.store.sym(n))],Y.Rm("delete invalid publicKey "+s)),l=Ys(r),c=[h.st(t,v.solid("publicKey"),h.literal(l),w.store.sym(n))],e.next=7,ic(n,s,c);case 7:return u=a.substring(0,a.lastIndexOf("/")+1),e.next=8,Js(u,Qs(t.uri));case 8:return e.abrupt("return",r);case 9:case"end":return e.stop()}},e)})),nc.apply(this,arguments)}var ac=function(){var e=b(y().mark(function e(t){var n,a,i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t);case 1:if(!(n=w.store.any(w.store.sym(t),w.store.sym("http://www.iana.org/assignments/link-relations/acl")))){e.next=6;break}return e.prev=2,e.next=3,w.store.fetcher.webOperation("DELETE",n.value);case 3:a=e.sent,Y.Rm("delete keyAcl"+n.value+" "+a.status),e.next=6;break;case 4:if(e.prev=4,404===(i=e.catch(2)).response.status){e.next=5;break}throw new Error(i);case 5:Y.Rm("delete keyAcl"+n.value+" "+i.response.status);case 6:case"end":return e.stop()}},e,null,[[2,4]])}));return function(t){return e.apply(this,arguments)}}();function ic(e,t,n){return rc.apply(this,arguments)}function rc(){return rc=b(y().mark(function e(t,n,a){var i,r,o=arguments;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.length>3&&void 0!==o[3]?o[3]:"",e.next=1,ac(t);case 1:return e.next=2,w.store.updater.updateMany(n,a);case 2:return r=Zs(t,i),e.next=3,Js(t,r);case 3:case"end":return e.stop()}},e)})),rc.apply(this,arguments)}var oc=function(){return ye(function e(t,n){ve(this,e),this.channel=t,this.channelRoot=t.doc(),this.options=n,this.dateFolder=new jr(this.channelRoot,"chat.ttl"),this.div=null},[{key:"createMessage",value:(a=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.updateMessage(t));case 1:case"end":return e.stop()}},e,this)})),function(e){return a.apply(this,arguments)})},{key:"updateMessage",value:(n=b(y().mark(function e(t){var n,a,i,r,o,s,c,l,u,p,d,m,f,x,b,g,k,C,E,A=arguments;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=A.length>1&&void 0!==A[1]?A[1]:null,a=A.length>2?A[2]:void 0,i=A.length>3&&void 0!==A[3]?A[3]:null,r=[],o=new Date,s=""+o.getTime(),c=h.term(o),l=n?n.doc():this.dateFolder.leafDocumentFromDate(o),u=w.store.sym(l.uri+"#Msg"+s),p=w.authn.currentUser(),(d=Is()).id=u.uri,!n){e.next=4;break}if((m=w.store.any(n,v.foaf("maker"))).uri!==p.uri){e.next=2;break}return e.next=1,pc(n);case 1:f=e.sent,r.push(h.st(f,v.dct("isReplacedBy"),u,l)),(x=w.store.any(f,v.sioc("has_reply")))&&r.push(h.st(u,v.sioc("has_reply"),x,l)),a&&r.push(h.st(u,v.schema("dateDeleted"),c,l)),e.next=3;break;case 2:throw b="Error you cannot delete/edit a message from someone else : \n"+m.uri,Y.R8(b),alert(b),new Error(b);case 3:e.next=5;break;case 4:r.push(h.st(this.channel,v.wf("message"),u,l));case 5:if(r.push(h.st(u,v.sioc("content"),w.store.literal(t),l)),d.content=t,r.push(h.st(u,v.dct("created"),c,l)),d.created=c.value,!p){e.next=7;break}return r.push(h.st(u,v.foaf("maker"),p,l)),d.maker=p.uri,e.next=6,tc(p);case 6:g=e.sent,k=Fs(d,g),r.push(h.st(u,h.sym("".concat(Bs,"proofValue")),h.lit(k),l));case 7:return i&&(r.push(h.st(i,v.sioc("has_member"),u,l)),i.doc().sameTerm(u.doc())||r.push(h.st(i,v.sioc("has_member"),u,i.doc()))),e.prev=8,e.next=9,w.store.updater.updateMany([],r);case 9:e.next=11;break;case 10:throw e.prev=10,E=e.catch(8),C="Error saving chat message: "+E,Y.R8(C),alert(C),new Error(C);case 11:return e.abrupt("return",u);case 12:case"end":return e.stop()}},e,this,[[8,10]])})),function(e){return n.apply(this,arguments)})},{key:"deleteMessage",value:(t=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.updateMessage("(message deleted)",t,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"createThread",value:(e=b(y().mark(function e(t){var n,a,i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=w.store.each(t,v.sioc("has_reply"),null,t.doc()).filter(function(e){return w.store.holds(e,v.rdf("type"),v.sioc("Thread"),e.doc())}),!(n.length>0)){e.next=1;break}return e.abrupt("return",n[0]);case 1:return a=h.sym(t.uri+"-thread"),i=[h.st(a,v.rdf("type"),v.sioc("Thread"),a.doc()),h.st(t,v.sioc("has_reply"),a,a.doc())],e.next=2,w.store.updater.update([],i);case 2:return e.abrupt("return",a);case 3:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)})}]);var e,t,n,a}();function sc(e){return cc.apply(this,arguments)}function cc(){return(cc=b(y().mark(function e(t){var n,a,i,r,o;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=[t],(a={})[t.uri]=!0,i=t;case 1:if((r=w.store.any(null,v.dct("isReplacedBy"),i,i.doc()))&&!a[r.uri]){e.next=2;break}return e.abrupt("continue",4);case 2:return e.next=3,w.store.fetcher.load(r);case 3:n.unshift(r),a[r.uri]=!0,i=r,e.next=1;break;case 4:i=t;case 5:if((o=w.store.any(i,v.dct("isReplacedBy"),null,i.doc()))&&!a[o.uri]){e.next=6;break}return e.abrupt("continue",7);case 6:n.push(o),a[o.uri]=!0,i=o,e.next=5;break;case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}function lc(e){return uc.apply(this,arguments)}function uc(){return uc=b(y().mark(function e(t){var n,a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t,a={};case 1:if(!n){e.next=4;break}if(!a[n.uri]){e.next=2;break}return Y.z3("originalVersion: verion loop"+t),e.abrupt("return",t);case 2:return a[n.uri]=!0,t=n,e.next=3,w.store.fetcher.load(t);case 3:n=w.store.any(null,v.dct("isReplacedBy"),t,t.doc()),e.next=1;break;case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}},e)})),uc.apply(this,arguments)}function pc(e){return dc.apply(this,arguments)}function dc(){return dc=b(y().mark(function e(t){var n,a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t,a={};case 1:if(!n){e.next=4;break}if(!a[n.uri]){e.next=2;break}return Y.z3("mostRecentVersion: verion loop"+t),e.abrupt("return",t);case 2:return a[n.uri]=!0,t=n,e.next=3,w.store.fetcher.load(t);case 3:n=w.store.any(t,v.dct("isReplacedBy"),null,t.doc()),e.next=1;break;case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}},e)})),dc.apply(this,arguments)}function mc(e){return w.store.holds(e,v.schema("dateDeleted"),null,e.doc())}function fc(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return hc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function hc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var vc=w.solidLogicSingleton.store;function xc(e,t,n,a,i,r){t.setAttribute("style",_e.participantsStyle);var o=function(n){var a,i=vc.any(n,v.wf("participant"));if(!i)return(a=e.createElement("tr")).textContent="???",a;var o=vc.anyValue(n,v.ui("backgroundColor"))||Ae.participationDefaultBackground,s=e.createElement("div");s.setAttribute("style",_e.participantsBlock),s.style.backgroundColor=o,a=Pt(e,null,i,r),t.appendChild(a);var c=e.createElement("td");return c.setAttribute("style",_e.personTableTD),c.appendChild(s),a.insertBefore(c,a.firstChild),a},s=function(){var e=vc.each(a,v.wf("participation")).map(function(e){return(0,Y.Rm)("in participants"),[vc.anyValue(e,v.cal("dtstart"))||"9999-12-31",e]});e.sort();var n=e.map(function(e){return e[1]});Ue(t,n,o)};return t.refresh=s,s(),t}function bc(e,t,n){return new Promise(function(a,i){if(!n)throw new Error("No user id");var r=vc.each(e,v.wf("participation")).filter(function(e){return vc.holds(e,v.wf("participant"),n)});if(r.length>1){var o,s=[],c=fc(r);try{for(c.s();!(o=c.n()).done;){var l=o.value,u=vc.anyValue(l,v.cal("dtstart"));u&&s.push([u,l])}}catch(e){c.e(e)}finally{c.f()}s.sort(),Y.R8("Multiple participation objects, picking earliest, in "+t),a(s[0][1])}if(r.length)a(r[0]);else{var p=$a(t),d=[(0,h.st)(e,v.wf("participation"),p,t),(0,h.st)(p,v.wf("participant"),n,t),(0,h.st)(p,v.cal("dtstart"),new Date,t),(0,h.st)(p,v.ui("backgroundColor"),Cc(n),t)];vc.updater.update([],d,function(e,t,n){t?a(p):i(new Error("Error recording your participation: "+n))}),a(p)}})}function gc(e,t,n){var a=w.authn.currentUser();if(a){var i=vc.each(e,v.wf("participation")).filter(function(e){return vc.holds(e,v.wf("participant"),a)});if(i.length>1)throw new Error("Multiple records of your participation");if(i.length)return i[0];if(!vc.updater.editable(t))return Y.Rm("Not recording participation, as no write access as "+a+" to "+t),null;var r=$a(t),o=[(0,h.st)(e,v.wf("participation"),r,t),(0,h.st)(r,v.wf("participant"),a,t),(0,h.st)(r,v.cal("dtstart"),new Date,t),(0,h.st)(r,v.ui("backgroundColor"),Cc(a),t)];return vc.updater.update([],o,function(e,t,a){if(!t)throw new Error("Error recording your participation: "+a);n&&n.refresh&&n.refresh()}),r}}function yc(e,t,n,a,i,r){var o=e.createElement("table");t.appendChild(o),xc(e,o,0,a,0,r);try{gc(a,n,o)}catch(n){t.appendChild(ct(e,"Error recording your participation: "+n))}return o}var wc=w.solidLogicSingleton.store,kc=(0,h.Namespace)("http://www.w3.org/ns/pim/pad#");function Cc(e){var t;return e&&e.uri?"#"+(16777215&(t=e.uri,t.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0))|12632256).toString(16):"#ffffff"}function Ec(e,t,n,a,i){var r=(i=i||{}).exists,o=e.createElement("table"),s=wc;if(a&&!a.uri)throw new Error("UI.pad.notepad: Invalid userid");var c=wc.updater,l=(0,h.Namespace)("http://www.w3.org/ns/pim/pad#");o.setAttribute("style",_e.notepadStyle);var u=null,p=null;if(i.statusArea){var d=i.statusArea.appendChild(e.createElement("table")).appendChild(e.createElement("tr"));u=d.appendChild(e.createElement("td")),p=d.appendChild(e.createElement("td")),u&&u.setAttribute("style",_e.upstreamStatus),p&&p.setAttribute("style",_e.downstreamStatus)}var m=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,Y.Rm)(t),i.statusArea&&(n?u:p).appendChild(ct(e,t,"pink"))},f=function(e){i.statusArea&&(i.statusArea.innerHTML="")},x=function(e,t,n){var a=e.subject;t=t||"";var i=_e.baseStyle,r=_e.headingCore,o=_e.headingStyle,c=s.any(a,v.dc("author"));!t&&c&&(t="color: "+(n?"#888":"black")+"; background-color: "+Cc(c)+";");var u=s.any(a,l("indent")),p=(u=u?u.value:0)>=0?i+"text-indent: "+3*u+"em;":r+o[-1-u];e.setAttribute("style",p+t)},b=function(e){var a=e.subject;if(!a)throw new Error("No chunk for line to be deleted!");var i=s.any(void 0,l("next"),a),r=s.any(a,l("next"));if(i.sameTerm(n)&&r.sameTerm(n))(0,Y.Rm)("You can't delete the only line.");else{var o=s.statementsMatching(a,void 0,void 0,t).concat(s.statementsMatching(void 0,void 0,a,t)),u=[(0,h.st)(i,l("next"),r,t)];if(a instanceof h.NamedNode){var p=a.uri.slice(-4);(0,Y.Rm)("Deleting line "+p)}if(!c)throw new Error("have no updater");c.update(o,u,function(t,n,i,r){if(n){var s=e.parentNode;if(s){var c=s.previousSibling;s.parentNode&&s.parentNode.removeChild(s),c&&c.firstChild&&c.firstChild.focus()}}else if(r&&409===r.status)x(e,"color: black; background-color: #ffd;"),e.state=0,De(),setTimeout(function(){_()},1e3);else{(0,Y.Rm)(" removePart FAILED "+a+": "+i),(0,Y.Rm)(" removePart was deleteing :'"+o),x(e,"color: black; background-color: #fdd;");var l=r?r.status:" [no response field] ";m("Error "+l+" saving changes: "+i.true)}})}},g=function(e,n){e.addEventListener("keydown",function(a){if(!c)throw new Error("no updater");var i,r;switch(a.keyCode){case 13:var o=a.shiftKey;if((0,Y.Rm)("enter"),o?(r=s.any(void 0,l("next"),n),i="newlinesAfter"):(r=s.any(n,l("next")),i="newlinesBefore"),r[i]=r[i]||0,r[i]+=1,r[i]>1)return void(0,Y.Rm)(" queueing newline queue = "+r[i]);(0,Y.Rm)(" go ahead line before "+r[i]),w(e,o);break;case 8:if(0===e.value.length)switch((0,Y.Rm)("Delete key line "+n.uri.slice(-4)+" state "+e.state),e.state){case 1:case 2:return void(e.state=4);case 3:case 4:return;case void 0:case 0:e.state=3,b(e),a.preventDefault();break;default:throw new Error("pad: Unexpected state "+e)}break;case 9:var u=a.shiftKey?-1:1;!function(e,n,a){var i=s.statementsMatching(n,l("indent")),r=i.length?Number(i[0].object.value):0;if(!(r+a<-3)){var o=r+a,u=(0,h.st)(n,l("indent"),o,t);if(!c)throw new Error("no updater");c.update(i,u,function(n,a,i){a?x(e):((0,Y.Rm)("Indent change FAILED '"+o+"' for "+t+": "+i),x(e,"color: black; background-color: #fdd;"),c.requestDownstreamAction(t,_))})}}(e,n,u),a.preventDefault();break;case 27:(0,Y.Rm)("escape"),c.requestDownstreamAction(t,_),a.preventDefault();break;case 38:e.parentNode.previousSibling&&(e.parentNode.previousSibling.firstChild.focus(),a.preventDefault());break;case 40:e.parentNode.nextSibling&&(e.parentNode.nextSibling.firstChild.focus(),a.preventDefault())}});var a=function(e){var n=e.subject;x(e,void 0,!0);var i,r=s.any(n,v.sioc("content")).value,o=[(0,h.st)(n,v.sioc("content"),r,t)];e.value&&(i=[(0,h.st)(n,v.sioc("content"),e.value,t)]);var l=e.value;if(e.lastSent&&r!==e.lastSent)throw new Error("Out of order, last sent expected '"+r+"' but found '"+e.lastSent+"'");if(e.lastSent=l,!c)throw new Error("no updater");c.update(o,i,function(n,i,o,s){i?(f(),x(e),(0,Y.Rm)(" Patch ok '"+r+"' -> '"+l+"' "),4===e.state?(e.state=3,b(e)):3===e.state||(2===e.state?(e.state=1,a(e)):e.state=0)):((0,Y.Rm)(" patch FAILED "+s.status+" for '"+r+"' -> '"+l+"': "+o),409===s.status?(x(e,"color: black; background-color: #fdd;"),e.state=0,De(),setTimeout(function(){c.requestDownstreamAction(t,_)},1e3)):(x(e,"color: black; background-color: #fdd;"),e.state=0,m(" Error "+s.status+" sending data: "+o,!0),De()))})};e.addEventListener("input",function(t){switch(x(e,void 0,!0),(0,Y.Rm)("Input event state "+e.state+" value '"+e.value+"'"),e.state){case 3:case 4:case 2:return;case 1:return void(e.state=2);case 0:case void 0:e.state=1,a(e)}})},y=function(t,n,i){var r=s.any(n,v.sioc("content"));r=r?r.value:"";var c=e.createElement("tr");i?o.insertBefore(c,t):t&&t.nextSibling?o.insertBefore(c,t.nextSibling):o.appendChild(c);var l=c.appendChild(e.createElement("input"));return l.subject=n,l.setAttribute("type","text"),l.value=r,a?(x(l,""),g(l,n)):(x(l,"color: #222; background-color: #fff"),(0,Y.Rm)("Note can't add listeners - not logged in")),l},w=function(e,i){var r,o,s,u,p,d=wc,m=0,f=null;e?("input"!==e.tagName.toLowerCase()&&(0,Y.Rm)("return pressed when current document is: "+e.tagName),r=e.subject,m=(m=d.any(r,l("indent")))?Number(m.value):0,i?(o=d.any(void 0,l("next"),r),s=r,u=o,f="newlinesAfter"):(o=r,s=d.any(r,l("next")),u=s,f="newlinesBefore"),p=e.parentNode):(o=n,s=n,p=void 0);var b=$a(t),g=b.uri.slice(-4),k=[(0,h.st)(o,l("next"),s,t)],C=[(0,h.st)(o,l("next"),b,t),(0,h.st)(b,l("next"),s,t),(0,h.st)(b,v.dc("author"),a,t),(0,h.st)(b,v.sioc("content"),"",t)];if(m>0&&C.push((0,h.st)(b,l("indent"),m,t)),(0,Y.Rm)(" Fresh chunk "+g+" proposed"),!c)throw new Error("no updater");c.update(k,C,function(e,t,n,a){if(t){var r=y(p,b,i);x(r),r.focus(),f&&((0,Y.Rm)(" Fresh chunk "+g+" updated, queue = "+u[f]),u[f]-=1,u[f]>0&&((0,Y.Rm)(" Implementing queued newlines = "+s.newLinesBefore),w(r,i)))}else(0,Y.Rm)(" ERROR writing new line "+g+": "+n)})},k=function(){var e={},t=0;function a(e){m(e),t++}if(!s.the(n,l("next")))return a("No initial next pointer"),!1;for(var i,r=n;(i=s.the(r,l("next")))||a("No next pointer from "+r),!i.sameTerm(n);){r=i;var o=i.uri.split("#")[1];if(e[i.uri])return a("Loop!"),!1;e[i.uri]=!0;var c=s.each(i,l("next")).length;1!==c&&a("Should be 1 not "+c+" next pointer for "+o),(c=s.each(i,l("indent")).length)>1&&a("Should be 0 or 1 not "+c+" indent for "+o),1!==(c=s.each(i,v.sioc("content")).length)&&a("Should be 1 not "+c+" contents for "+o),1!==(c=s.each(i,v.dc("author")).length)&&a("Should be 1 not "+c+" author for "+o),s.statementsMatching(void 0,v.sioc("contents")).forEach(function(t){e[t.subject.value]||a("Loose chunk! "+t.subject.value)})}return!t},C=function(){if(1!==s.each(n,l("next")).length){var e="Pad: Inconsistent data - NEXT pointers: "+s.each(n,l("next")).length;return(0,Y.Rm)(e),void(i.statusArea&&(i.statusArea.textContent+=e))}for(var t,a=[],r=s.the(n,l("next"));!r.sameTerm(n);r=s.the(r,l("next")))for(var c=0;c<o.children.length;c++){var u=o.children[c];u.firstChild&&u.firstChild.subject.sameTerm(r)&&(a[r.uri]=u.firstChild)}for(var p=o.children.length-1;p>=0;p--)a[(t=o.children[p]).firstChild.subject.uri]||o.removeChild(t);t=o.firstChild;for(var d=s.the(n,l("next"));!d.sameTerm(n);d=s.the(d,l("next"))){var m=s.any(d,v.sioc("content")).value;if(t&&a[d.uri]){var f=t.firstChild;m!==f.value&&(f.value=m),x(f),f.state=0,delete f.lastSent,t=t.nextSibling}else y(t,d,!0)}},E=function(e){if(e.refresh)e.refresh();else for(var t=0;t<e.children.length;t++)E(e.children[t])},A=!1,_=function(){if(A)(0,Y.Rm)(" Already reloading - stop");else{A=!0;var e=1e3,n=function(){if((0,Y.Rm)("try reload - timeout = "+e),!c)throw new Error("no updater");c.reload(c.store,t,function(a,i,r){A=!1,a?((0,Y.Rm)(" reloaded OK"),f(),k()?E(o):m("CONSISTENCY CHECK FAILED")):0===r.status?(m("Network error refreshing the pad. Retrying in "+e/1e3),A=!0,e*=2,setTimeout(n,e)):m("Error "+r.status+"refreshing the pad:"+i+". Stopped. "+t)})};n()}};if(o.refresh=C,o.reloadAndSync=_,a||(0,Y.Rm)("Warning: must be logged in for pad to be edited"),r)(0,Y.Rm)("Existing pad."),k()?(C(),s.holds(n,l("next"),n)&&w()):(0,Y.Rm)(o.textContent="Inconsistent data. Abort");else{(0,Y.Rm)("No pad exists - making new one.");var j=[(0,h.st)(n,v.rdf("type"),l("Notepad"),t),(0,h.st)(n,v.dc("author"),a,t),(0,h.st)(n,v.dc("created"),new Date,t),(0,h.st)(n,l("next"),n,t)];if(!c)throw new Error("no updater");c.update([],j,function(e,t,n){t?((0,Y.Rm)("Initial pad created"),w()):m(n||"")})}return o}function Ac(e,t){for(var n=[],a=t.the(e,kc("next"));!a.sameTerm(e);a=t.the(a,kc("next")))n.push(a);return n}function _c(e){return e.replace("&","&amp;").replace("<","&lt;").replace(">","&gt;")}function jc(e,t){var n=Ac(e,t),a="<html>\n <head>\n",i=t.anyValue(e,v.dct("title"));i&&(a+=" <title>".concat(_c(i),"</title>\n")),a+=" </head>\n <body>\n";var r=0;function o(e){for(;r>e;r--)a+="</ul>\n"}return n.forEach(function(e){var n=t.anyJS(e,kc("indent")),i=t.anyJS(e,v.sioc("content"));if(i){var s=_c(i);if(n<0){o(0);var c=n>=-3?4+n:1;a+="\n<h".concat(c,">").concat(s,"</h").concat(c,">\n")}else n>0?(o(n),function(e){for(;r<e;r++)a+="<ul>\n"}(n),a+="<li>".concat(s,"</li>\n")):(o(n),a+="<p>".concat(s,"</p>\n"))}}),o(0),a+=" </body>\n</html>\n"}var Sc={icons:Re.Pt,ns:v,media:ar,pad:l,style:_e,utils:t,widgets:s},Tc=h.Namespace("http://www.w3.org/2002/01/bookmark#"),Lc=Z,Rc=window.document||null;function Nc(e,t){return new Promise(function(n,a){w.store.updater.update(e,t,function(e,t,i){t?n():a(new Error(i))})})}function Bc(){return(Bc=b(y().mark(function e(t){var n,a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Tc("Bookmark"),a="bookmarks.ttl",e.next=1,mi(t,n,true);case 1:if(!(t.instances&&t.instances.length>0)){e.next=2;break}t.bookmarkDocument=t.instances[0],t.instances.length>1&&Y.R8("More than one bookmark file! "+t.instances),e.next=9;break;case 2:if(!t.publicProfile){e.next=8;break}return i=h.sym(t.publicProfile.dir().uri+a),e.prev=3,Y.Rm("Creating new bookmark file "+i),e.next=4,w.store.fetcher.createIfNotExists(i);case 4:e.next=6;break;case 5:return e.prev=5,r=e.catch(3),Y.R8("Can't make fresh bookmark file:"+r),e.abrupt("return",t);case 6:return e.next=7,w.createTypeIndexLogic.registerInTypeIndex(i,t.index,n);case 7:t.bookmarkDocument=i,e.next=9;break;case 8:Y.R8("You seem to have no bookmark file, nor even a profile file!");case 9:return e.abrupt("return",t);case 10:case"end":return e.stop()}},e,null,[[3,5]])}))).apply(this,arguments)}function Ic(e,t){return Oc.apply(this,arguments)}function Oc(){return Oc=b(y().mark(function e(t,n){var a,i,r,o,s,c,l,u;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a="",i=w.authn.currentUser()){e.next=1;break}throw new Error("Must be logged on to add Bookmark");case 1:return r=w.store.any(n,v.foaf("maker")),a=Lc(r)+": "+w.store.anyValue(n,v.sioc("content")).slice(0,80),o=t.bookmarkDocument,s=Sc.widgets.newThing(o,a),c=[h.st(o,Sc.ns.dct("references"),s,o),h.st(s,Sc.ns.rdf("type"),Tc("Bookmark"),o),h.st(s,Sc.ns.dct("created"),new Date,o),h.st(s,Tc("recalls"),n,o),h.st(s,Sc.ns.foaf("maker"),i,o),h.st(s,Sc.ns.dct("title"),a,o)],e.prev=2,e.next=3,Nc([],c);case 3:e.next=5;break;case 4:return e.prev=4,u=e.catch(2),l="Making bookmark: "+u,Y.R8(l),e.abrupt("return",null);case 5:return e.abrupt("return",s);case 6:case"end":return e.stop()}},e,null,[[2,4]])})),Oc.apply(this,arguments)}function Dc(e,t,n){return Fc.apply(this,arguments)}function Fc(){return(Fc=b(y().mark(function e(t,n,a){var i,r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t.bookmarkDocument);case 1:if(!(i=w.store.each(null,Tc("recalls"),n,t.bookmarkDocument)).length){e.next=9;break}if(confirm("Delete bookmark on this?"+i.length)){e.next=2;break}return e.abrupt("return");case 2:r=0;case 3:if(!(r<i.length)){e.next=8;break}return e.prev=4,e.next=5,Nc(w.store.connectedStatements(i[r]),[]);case 5:a.style.backgroundColor="white",Y.Rm("Bookmark deleted: "+i[r]),e.next=7;break;case 6:e.prev=6,s=e.catch(4),Y.z3("Cant delete bookmark:"+s),Y.R8("Cannot delete bookmark:"+s);case 7:r++,e.next=3;break;case 8:e.next=11;break;case 9:return e.next=10,Ic(t,n);case 10:o=e.sent,a.style.backgroundColor="yellow",Y.Rm("Bookmark added: "+o);case 11:case"end":return e.stop()}},e,null,[[4,6]])}))).apply(this,arguments)}function Pc(e,t){return Uc.apply(this,arguments)}function Uc(){return Uc=b(y().mark(function e(t,n){var a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=function(){return i=b(y().mark(function e(n){var a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.fetcher.load(t.bookmarkDocument);case 1:a=w.store.any(null,Tc("recalls"),n.target,t.bookmarkDocument),n.style=Sc.style.buttonStyle,a&&(n.style.backgroundColor="yellow");case 2:case"end":return e.stop()}},e)})),i.apply(this,arguments)},a=function(e){return i.apply(this,arguments)},!t.bookmarkDocument){e.next=2;break}return(r=Sc.widgets.button(Rc,Sc.icons.iconBase+"noun_45961.svg",Lc(Tc("Bookmark")),function(){Dc(t,n,r)})).target=n,e.next=1,a(r);case 1:return e.abrupt("return",r);case 2:case"end":return e.stop()}},e)})),Uc.apply(this,arguments)}var Mc=window.document,zc={};function qc(e,t){return Hc.apply(this,arguments)}function Hc(){return Hc=b(y().mark(function e(t,n){var a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=function(){return(r=b(y().mark(function e(){var i,r,o;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a.innerHTML="",!mc(t)){e.next=1;break}return e.abrupt("return",a);case 1:return e.next=2,sc(t);case 2:if(i=e.sent,0!==(r=i.map(function(e){return w.store.each(null,v.schema("target"),e,n)}).flat()).length){e.next=3;break}return e.abrupt("return",a);case 3:(o=r.map(function(e){return[w.store.any(e,v.rdf("type"),null,n),w.store.any(e,v.sioc("content"),null,n),w.store.any(e,v.schema("agent"),null,n)]})).sort(),o.forEach(function(e){var t,n=Ce(e,3),i=n[0],r=n[1],o=n[2];o?(t=Mc.createElement("a")).setAttribute("href",o.uri):t=Mc.createTextNode(""),t.textContent=r||zc[i]||"⬜️",a.appendChild(t)});case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)},i=function(){return r.apply(this,arguments)},a=Mc.createElement("span"),i().then(Y.Rm("sentimentStripLinked: sentimentStripLinked async refreshed")),a.refresh=i,e.abrupt("return",a);case 1:case"end":return e.stop()}},e)})),Hc.apply(this,arguments)}function Gc(e,t,n,a){return Vc.apply(this,arguments)}function Vc(){return Vc=b(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p,d,m,f,x,g,k,C,E,A,_,j,S;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return g=function(e,t,a,i,r,o){function s(){l.style.backgroundColor=c?"yellow":"white"}var c,l=It(Mc,a,Z(i),function(){var a=b(y().mark(function a(l){var p,d,f,x;return y().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!c){a.next=2;break}return a.next=1,m(c);case 1:c=null,s(),a.next=8;break;case 2:return c=$a(r),p=[h.st(c,v.schema("agent"),e.me,r),h.st(c,v.rdf("type"),i,r),h.st(c,v.schema("target"),t,r)],a.next=3,w.store.updater.update([],p);case 3:if(s(),!o){a.next=8;break}d=!1,f=0;case 4:if(!(f<o.length)){a.next=7;break}if(!(x=u(o[f]))){a.next=6;break}return a.next=5,m(x);case 5:d=!0;case 6:f++,a.next=4;break;case 7:d&&Ht(n);case 8:case"end":return a.stop()}},a)}));return function(e){return a.apply(this,arguments)}}());function u(n){var a=w.store.each(null,v.schema("agent"),e.me,r).filter(function(e){return w.store.holds(e,v.rdf("type"),n,r)}).filter(function(e){return w.store.holds(e,v.schema("target"),t,r)});return a.length?a[0]:null}function p(){c=u(i),s()}return l.refresh=p,p(),l},f=function(){return(f=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,w.store.updater.update(w.store.connectedStatements(t),[]);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},m=function(e){return f.apply(this,arguments)},d=function(){p.parentElement.parentElement.removeChild(p.parentElement)},u=function(){return(u=b(y().mark(function e(){var n,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,i.createThread(t);case 1:if(n=e.sent,r=a.chatOptions){e.next=2;break}throw new Error("replyInThread: missing options");case 2:r.showThread(n,r),d();case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(){return u.apply(this,arguments)},c=function(){return c=b(y().mark(function e(n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(x.value!==w.store.any(t,v.foaf("maker")).value){e.next=1;break}return d(),e.next=1,ol(n,t,i,a);case 1:case"end":return e.stop()}},e)})),c.apply(this,arguments)},s=function(e){return c.apply(this,arguments)},o=function(){return o=b(y().mark(function e(){var r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=w.store.any(t,v.foaf("maker")),x){e.next=1;break}alert("You can't delete the message, you are not logged in."),e.next=7;break;case 1:if(!x.sameTerm(r)){e.next=6;break}return e.prev=2,e.next=3,i.deleteMessage(t);case 3:e.next=5;break;case 4:e.prev=4,s=e.catch(2),o="Error deleting messaage "+s,Y.R8(o),alert(o),(a.statusArea||n.parentNode).appendChild(ct(Mc,o));case 5:n.parentNode.removeChild(n),e.next=7;break;case 6:alert("You can't delete the message, you are not logged in as the author, "+r);case 7:d();case 8:case"end":return e.stop()}},e,null,[[2,4]])})),o.apply(this,arguments)},r=function(){return o.apply(this,arguments)},p=Mc.createElement("div"),e.next=1,pc(t).value;case 1:if(E=e.sent,A=v.schema("dateDeleted").value,E!==A){e.next=2;break}return e.abrupt("return",p);case 2:if((x=w.authn.currentUser())&&w.store.holds(t,v.foaf("maker"),x)&&(p.appendChild(Bt(Mc,p,"message",r)),p.appendChild(It(Mc,Re.Pt.iconBase+"noun_253504.svg","edit",function(){return s(n)}))),Pc(a).then(function(e){e&&p.appendChild(e)}),x=w.authn.currentUser(),!(_=x)){e.next=4;break}return e.next=3,pc(t).value;case 3:j=e.sent,S=v.schema("dateDeleted").value,_=j!==S;case 4:if(!_){e.next=5;break}k={me:x,dom:Mc,div:p},p.appendChild(g(k,t,Re.Pt.iconBase+"noun_1384132.svg",v.schema("AgreeAction"),t.doc(),[v.schema("DisagreeAction")])),p.appendChild(g(k,t,Re.Pt.iconBase+"noun_1384135.svg",v.schema("DisagreeAction"),t.doc(),[v.schema("AgreeAction")]));case 5:return w.store.any(t,v.dct("created"))&&p.appendChild(It(Mc,Re.Pt.iconBase+"noun-reply-5506924.svg","Reply in thread",b(y().mark(function e(){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,l();case 1:case"end":return e.stop()}},e)})))),(C=p.appendChild(Ot(Mc))).style.float="right",C.firstChild.style.opacity="0.3",C.addEventListener("click",d),e.abrupt("return",p);case 6:case"end":return e.stop()}},e)})),Vc.apply(this,arguments)}function Wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(n),!0).forEach(function(t){on(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Qc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function Qc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}zc[v.schema("AgreeAction")]="👍",zc[v.schema("DisagreeAction")]="👎",zc[v.schema("EndorseAction")]="⭐️",zc[v.schema("LikeAction")]="❤️";var Zc=window.document,Kc=_e.messageBodyStyle,Yc=Z;function Xc(e,t){var n=Zc.createElement("img"),a="10";t.inlineImageHeightEms&&(a=(""+t.inlineImageHeightEms).trim()),n.setAttribute("style","max-height: "+a+"em; border-radius: 1em; margin: 0.7em;"),e&&n.setAttribute("src",e);var i=Zc.createElement("a");return i.setAttribute("href",e),i.setAttribute("target","images"),i.appendChild(n),Se(n,$rdf.sym(e)),i}var el=function(e,t){var n=Zc.createElement("a");return t&&t.uri&&(n.setAttribute("href",t.uri),n.addEventListener("click",Vt,!0),n.setAttribute("style","color: #3B5998; text-decoration: none; ")),n.textContent=e,n};function tl(e){var t=w.store.any(e,v.foaf("nick"));return t?""+t.value:""+Yc(e)}function nl(e,t,n,a){var i=e.appendChild(el(tl(t),t));t.uri&&w.store.fetcher.nowOrWhenFetched(t.doc(),void 0,function(e,n){i.textContent=tl(t)}),e.appendChild(Zc.createElement("br")),e.appendChild(el(n,a))}function al(e,t,n,a){var i=e.appendChild(el(Yc(t),t));t.uri&&w.store.fetcher.nowOrWhenFetched(t.doc(),void 0,function(e,n){i.textContent=tl(t)});var r=e.appendChild(el(n,a));r.style.fontSize="80%",r.style.marginLeft="1em",e.appendChild(Zc.createElement("br"))}function il(e,t,n,a,i){return rl.apply(this,arguments)}function rl(){return rl=b(y().mark(function e(t,n,a,i,r){var o,s,c,l,u,p,d,m,f,h,x,g,k,C,E,A,_,j,S,T,L,R,N,B,I,O,D,F,P,U,M,z,q,H,G;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return z=function(e){return e?"#e8ffe8":"white"},o=!1,s="1"===i.colorizeByAuthor||!0===i.colorizeByAuthor,c=w.store.any(n,v.foaf("maker")),l=w.store.any(n,v.dct("created")),e.next=1,pc(n);case 1:return u=e.sent,p=w.store.any(u,v.foaf("maker")),d=c.uri===(null==p?void 0:p.uri)?u:n,m=w.store.any(d,v.sioc("content")),e.next=2,sc(d);case 2:(f=e.sent).length>1&&Y.Rm("renderMessageRow versions: ",f.join(", ")),h=f.map(function(e){return w.store.each(e,v.sioc("has_reply"))}).flat(),x=null,g=[],k=$c(h);try{for(k.s();!(C=k.n()).done;)E=C.value,w.store.holds(E,v.rdf("type"),v.sioc("Thread"))?(x=E,Y.Rm("renderMessageRow: found thread: "+x)):g.push(E)}catch(e){k.e(e)}finally{k.f()}return g.length>1&&Y.Rm("renderMessageRow: found normal replies: ",g),x||(x=w.store.any(null,v.sioc("has_member"),n)),A=w.store.any(d,$rdf.sym("".concat(Bs,"proofValue"))),(_=Is()).id=d.uri,_.created=w.store.any(d,v.dct("created")).value,_.content=m.value,_.maker=c.uri,null!=A&&A.value?Xs(c).then(function(e){e||Y.R8("message is signed but "+c.uri+" is missing publicKey");null!=e&&e.match(/[0-9A-Fa-f]{6}/g)?null!=A&&A.value&&!Ds(null==A?void 0:A.value,_,e)&&Y.R8("invalid signature\n"+_.id):Y.R8("invalid publicKey hex string\n"+c.uri+"\n"+e)}):(o=!0,Y.R8(d.uri+" is unsigned")),e.next=3,lc(n);case 3:return j=e.sent,S=!n.sameTerm(j),T=w.store.the(j,v.dct("created"),null,j.doc())||w.store.the(n,v.dct("created"),null,n.doc()),L=Zc.createElement("tr"),o&&L.setAttribute("style","background-color: red"),L.AJAR_date=T.value,L.AJAR_subject=n,R=Zc.createElement("td"),L.appendChild(R),i.authorDateOnLeft?nl(R,c,yt(T.value),n):((N=Zc.createElement("img")).setAttribute("style","max-height: 2.5em; max-width: 2.5em; border-radius: 0.5em; margin: auto;"),Rt(N,c),R.appendChild(N)),B=yt(T.value),S&&(B+=" ... "+yt(l.value)),I=L.appendChild(Zc.createElement("td")),i.authorDateOnLeft||al(I,c,B,n),O=m?m.value.trim():"??? no content?",D=/^https?:\/[^ <>]*$/i.test(O),F=null,D?/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(O)&&i.expandImagesInline?(P=Xc(O,i),I.appendChild(P)):(U=I.appendChild(Zc.createElement("a")),F=U.appendChild(Zc.createElement("p")),U.href=O,F.textContent=O,I.appendChild(U)):(F=Zc.createElement("p"),I.appendChild(F),F.textContent=O),F&&(M=s?Cc(c):z(a),F.setAttribute("style",Kc+"background-color: "+M+";")),e.next=4,qc(n,n.doc());case 4:return(q=e.sent).children.length&&(I.appendChild(Zc.createElement("br")),I.appendChild(q)),H=Zc.createElement("td"),L.appendChild(H),G=It(Zc,Re.Pt.iconBase+"noun_243787.svg","..."),H.appendChild(G),G.addEventListener("click",function(){var e=b(y().mark(function e(a){var o,s,c;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!L.toolTR){e.next=1;break}return L.parentNode.removeChild(L.toolTR),delete L.toolTR,e.abrupt("return");case 1:return o=Zc.createElement("tr"),e.next=2,Gc(n,L,Jc(Jc({},r),{},{chatOptions:i}),t);case 2:(s=e.sent).style="border: 0.05em solid #888; border-radius: 0 0 0.7em 0.7em; border-top: 0; height:3.5em; background-color: #fff;",L.nextSibling?L.parentElement.insertBefore(o,L.nextSibling):L.parentElement.appendChild(o),L.toolTR=o,o.appendChild(Zc.createElement("td")),c=o.appendChild(Zc.createElement("td")),o.appendChild(Zc.createElement("td")),c.appendChild(s);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),x&&i.showThread&&H.appendChild(It(Zc,Re.Pt.iconBase+"noun_1180164.svg","see thread",function(e){i.showThread(x,i)})),e.abrupt("return",L);case 5:case"end":return e.stop()}},e)})),rl.apply(this,arguments)}function ol(e,t,n,a){return sl.apply(this,arguments)}function sl(){return(sl=b(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.parentNode,s=cl,c=a,l=r,u=i,p=a.options,e.next=1,pc(n);case 1:o=s(c,l,u,p,e.sent),r.insertBefore(o,t),o.originalRow=t,t.style.visibility="hidden";case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function cl(e,t,n,a,i){function r(e){return o.apply(this,arguments)}function o(){return(o=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,s(m.value,!0);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function s(e,t){return c.apply(this,arguments)}function c(){return c=b(y().mark(function r(o,s){var c,l,u,p;return y().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return l=function(){return l=b(y().mark(function r(o,c){var l;return y().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=1,dl(e,t,o,!1,a,n);case 1:i?((l=h.originalRow).parentNode?l.parentNode.removeChild(l):(Y.R8("No parentNode on old message "+l.textContent),l.style.backgroundColor="#fee",l.style.visibility="hidden"),h.parentNode.removeChild(h)):s&&(m.value="",m.setAttribute("style",Kc),m.disabled=!1,m.scrollIntoView(a.newestFirst),m.focus(),m.select());case 2:case"end":return r.stop()}},r)})),l.apply(this,arguments)},c=function(e,t){return l.apply(this,arguments)},s&&(m.setAttribute("style",Kc+"color: #bbb;"),m.disabled=!0),r.prev=1,r.next=2,e.updateMessage(o,i,null,a.thread);case 2:u=r.sent,r.next=4;break;case 3:return r.prev=3,p=r.catch(1),(n.statusArea||h).appendChild(ct(Zc,"Error writing message: "+p)),r.abrupt("return");case 4:return r.next=5,c(u,o);case 5:case"end":return r.stop()}},r,null,[[1,3]])})),c.apply(this,arguments)}function l(e){var n=t.chatDocument.dir().uri;Te(w.store.fetcher,e,n+"Files",n+"Pictures",function(){var e=b(y().mark(function e(t,n){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,s(n);case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}())}var u,p,d=function(){var e=b(y().mark(function e(t){var n,a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=$c(t),e.prev=1,n.s();case 2:if((a=n.n()).done){e.next=4;break}return i=a.value,e.next=3,s(i);case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,r=e.catch(1),n.e(r);case 6:return e.prev=6,n.f(),e.finish(6);case 7:case"end":return e.stop()}},e,null,[[1,5,6,7]])}));return function(t){return e.apply(this,arguments)}}();i?(u=w.store.anyValue(i,v.dct("created"),null,i.doc()),p=Re.Pt.iconBase+"noun_1180158.svg"):(p=Re.Pt.iconBase+"noun_383448.svg",u="9999-01-01T00:00:00Z");var m,f,h=Zc.createElement("tr"),x=Zc.createElement("td"),g=Zc.createElement("td"),k=Zc.createElement("td");return h.appendChild(x),h.appendChild(g),h.appendChild(k),h.AJAR_date=u,ci({div:g,dom:Zc}).then(function(t){!function(){function t(){return(t=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=1;break}return e.next=1,s(t.uri);case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}if(a.menuHandler){var n=It(Zc,Re.Pt.iconBase+"noun_243787.svg","More");n.setAttribute("style",_e.buttonStyle+"float: right;"),k.appendChild(n)}a.menuHandler;var o=w.authn.currentUser();if(nl(x,o,"",null),m=Zc.createElement("textarea"),g.innerHTML="",g.appendChild(m),m.rows=3,i&&(m.value=w.store.anyValue(i,v.sioc("content"),null,i.doc())),m.setAttribute("style",Kc+"background-color: #eef;"),m.addEventListener("keydown",function(){var e=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("Enter"!==t.code){e.next=1;break}if(!(!t.shiftKey&&!a.shiftEnterSendsMessage||t.shiftKey&&a.shiftEnterSendsMessage)){e.next=1;break}return e.next=1,r(t);case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),!1),je(m,d,l),k.innerHTML="",(f=It(Zc,p,"Send")).style.float="right",f.addEventListener("click",function(e){return r()},!1),k.appendChild(f),i){var c=k.appendChild(Ot(Zc));c.style.float="left",c.addEventListener("click",function(e){return function(e){e.originalRow.style.visibility="visible",e.parentNode.removeChild(e)}(h)},!1),k.appendChild(c)}var u=e.dateFolder.leafDocumentFromDate(new Date);g.appendChild(ar.cameraButton(Zc,w.store,function(){return $rdf.sym(u.dir().uri+"Image_"+Date.now()+".png")},function(e){return t.apply(this,arguments)})),gc(e.channel,e.channel.doc())}(),Object.assign(t,n),function(e){return Bc.apply(this,arguments)}(t).then(function(e){})}),h}function ll(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ul(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ul(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function ul(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function pl(e){"Notification"in window?"granted"===Notification.permission?new Notification(e):"denied"!==Notification.permission&&Notification.requestPermission().then(function(t){"granted"===t&&new Notification(e)}):Y.R8("This browser does no t support desktop notification")}function dl(e,t,n,a,i,r){return ml.apply(this,arguments)}function ml(){return(ml=b(y().mark(function e(t,n,a,i,r,o){var s,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,il(t,a,i,r,o);case 1:s=e.sent,r.selectedMessage&&r.selectedMessage.sameTerm(a)&&(s.style.backgroundColor="yellow",r.selectedElement=s,n.selectedElement=s),c=!1,l=n.firstChild;case 2:if(l){e.next=3;break}return e.abrupt("continue",5);case 3:if(u=!0===r.newestfirst,!((p=s.AJAR_date)>l.AJAR_date&&u||p<l.AJAR_date&&!u)){e.next=4;break}return n.insertBefore(s,l),c=!0,e.abrupt("continue",5);case 4:l=l.nextSibling,e.next=2;break;case 5:c||n.appendChild(s);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function fl(e,t,n,a){return hl.apply(this,arguments)}function hl(){return hl=b(y().mark(function e(t,n,a,i){var r,o,s,c,l,u,p,d,m,f,x,g,k,C,E,A,_,j,S,T,L,R,N,B,I,O,D,F,P,U,M,z;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return S=function(){return(S=b(y().mark(function e(){var t,n,a,r,o,s,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(){i.selectedElement?i.selectedElement.scrollIntoView({block:"center"}):O.inputRow.scrollIntoView&&O.inputRow.scrollIntoView(T)},t=function(){u&&u.selectedElement&&u.selectedElement.scrollIntoView({block:"center"})},i.selectedMessage&&(r=i.selectedMessage.doc()),D&&(o=D.doc()),(s=r||o)&&(c=new Date,l=R.leafDocumentFromDate(c),a=l.sameTerm(s)),!s||a){e.next=2;break}return p=R.dateFromLeafDocument(s),e.next=1,d(p,a);case 1:u=e.sent,N.appendChild(u),F.messageTable=u,P.messageTable=u,t(),setTimeout(t,1e3),e.next=4;break;case 2:return e.next=3,C();case 3:F.messageTable=O,P.messageTable=O;case 4:return e.next=5,A(null,n);case 5:N.addEventListener("scroll",A),i.solo&&document.body.addEventListener("scroll",A);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)},j=function(){return S.apply(this,arguments)},_=function(){return(_=b(y().mark(function e(t,n){var a,r,o,s,c;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!z){e.next=1;break}return e.abrupt("return");case 1:z=!0,a=!n,r=150;case 2:if(!(N.scrollTop<r&&F.messageTable&&!F.messageTable.initial&&F.messageTable.extendBackwards)){e.next=6;break}if(0!==N.scrollHeight){e.next=3;break}return setTimeout(A,2e3),z=!1,e.abrupt("return");case 3:return s=N.scrollHeight-N.scrollTop,e.next=4,F.messageTable.extendBackwards();case 4:if(o=e.sent,a&&(N.scrollTop=N.scrollHeight-s),n&&n(),!o){e.next=5;break}return e.abrupt("continue",6);case 5:e.next=2;break;case 6:if(!(i.selectedMessage&&N.scrollHeight-N.scrollTop-N.clientHeight<r&&P.messageTable&&!P.messageTable.final&&P.messageTable.extendForwards)){e.next=9;break}return c=N.scrollTop,e.next=7,P.messageTable.extendForwards();case 7:if(o=e.sent,a&&(N.scrollTop=c),n&&n(),!o){e.next=8;break}return e.abrupt("continue",9);case 8:e.next=6;break;case 9:z=!1;case 10:case"end":return e.stop()}},e)}))).apply(this,arguments)},A=function(e,t){return _.apply(this,arguments)},E=function(){return(E=b(y().mark(function e(){var t,n,i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Date,n=R.leafDocumentFromDate(t),e.next=1,d(t,!0);case 1:return i=e.sent,N.appendChild(i),N.refresh=b(y().mark(function e(){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,g(new Date);case 1:return e.next=2,r(a,i);case 2:pl(a);case 3:case"end":return e.stop()}},e)})),w.store.updater.addDownstreamChangeListener(n,N.refresh),O=i,P.messageTable=O,e.abrupt("return",i);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},C=function(){return E.apply(this,arguments)},k=function(){return(k=b(y().mark(function e(){var t,n,a;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((t=R.leafDocumentFromDate(new Date)).sameTerm(P.messageTable.chatDocument)){e.next=2;break}return O.inputRow&&(O.removeChild(O.inputRow),delete O.inputRow),n=P.messageTable.chatDocument,e.next=1,C();case 1:if(!w.store.holds(n,v.rdfs("seeAlso"),t,n)){a=[h.st(n,v.rdfs("seeAlso"),t,n)];try{w.store.updater.update([],a)}catch(e){alert("Unable to link old chat file to new one:"+e)}}case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},g=function(){return k.apply(this,arguments)},x=function(){return x=b(y().mark(function e(n,a){var r,o,c,u,d,m,f,h,x,g,k,C,E,A,_,j,S,B,D,F;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:x=function(){return(x=b(y().mark(function e(t){return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!g.extendedForwards){e.next=1;break}p(!1,g),g.extendedForwards=!1,h(),e.next=3;break;case 1:return e.next=2,m();case 2:P.messageTable.scrollIntoView(T);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)},h=function(){if(o){var e=g.extendedForwards?!T:T,t=g.final?"noun_T-Block_1114657_000000.svg":function(e){return e?"noun_1369237.svg":"noun_1369241.svg"}(e);o.firstChild.setAttribute("src",Re.Pt.iconBase+t)}},f=function(){return(f=b(y().mark(function e(){var t;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,l(!1);case 1:return t=e.sent,e.abrupt("return",t);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},m=function(){return f.apply(this,arguments)},d=function(){if(r){var e=g.extendedBack?!T:T,t=g.initial?"noun_T-Block_1114655_000000.svg":function(e){return e?"noun_1369241.svg":"noun_1369237.svg"}(e);r.firstChild.setAttribute("src",Re.Pt.iconBase+t)}},u=function(){return(u=b(y().mark(function e(){var t;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,l(!0);case 1:return(t=e.sent)?(r&&(r.firstChild.setAttribute("src",Re.Pt.iconBase+"noun_T-Block_1114655_000000.svg"),r.disabled=!0),g.initial=!0):g.extendedBack=!0,d(),e.abrupt("return",t);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)},c=function(){return u.apply(this,arguments)},r=null,o=null,(g=t.createElement("table")).style.width="100%",g.extendBackwards=c,g.extendForwards=m,g.date=n,k=R.leafDocumentFromDate(n),g.chatDocument=k,g.fresh=!1,g.setAttribute("style","width: 100%;"),a&&(g.final=!0,O=g,P.messageTable=g,C=cl(L,g,I,i),T?g.insertBefore(C,g.firstChild):g.appendChild(C),g.inputRow=C),E=t.createElement("tr"),(A=E.appendChild(t.createElement("td"))).style="text-align: center; vertical-align: middle; color: #888; font-style: italic;",A.textContent=yt(n.toISOString(),!0),_=E.appendChild(t.createElement("td")),i.includeRemoveButton&&_.appendChild(Ot(t,function(e){N.parentNode.removeChild(N)})),g.extendedForwards=!1,T?g.appendChild(E):g.insertBefore(E,g.firstChild),j=w.store.statementsMatching(null,v.wf("message"),null,k),!a&&j.length,S=ll(j),e.prev=1,S.s();case 2:if((B=S.n()).done){e.next=4;break}return D=B.value,e.next=3,s(D.object,g);case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,F=e.catch(1),S.e(F);case 6:return e.prev=6,S.f(),e.finish(6);case 7:return g.fresh=!0,e.abrupt("return",g);case 8:case"end":return e.stop()}},e,null,[[1,5,6,7]])})),x.apply(this,arguments)},f=function(e,t){return x.apply(this,arguments)},m=function(){return(m=b(y().mark(function e(n,a){var i,r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=R.leafDocumentFromDate(n),e.prev=1,e.next=2,w.store.fetcher.createIfNotExists(i);case 2:e.next=7;break;case 3:if(e.prev=3,s=e.catch(1),r=t.createElement("table"),o=r.appendChild(t.createElement("tr")),!s.response||!s.response.status||404!==s.response.status){e.next=5;break}return e.next=4,f(n,a);case 4:return e.abrupt("return",e.sent);case 5:Y.Rm("*** Error NON 404 for chat file "+i),o.appendChild(ct(t,s,"pink"));case 6:return e.abrupt("return",o);case 7:return e.next=8,f(n,a);case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}},e,null,[[1,3]])}))).apply(this,arguments)},d=function(e,t){return m.apply(this,arguments)},p=function(e,t){if(e?T:!T)for(;t.nextSibling;)N.removeChild(t.nextSibling);else for(;t.previousSibling;)N.removeChild(t.previousSibling);(e?F:P).messageTable=t},u=function(){return(u=b(y().mark(function e(t){var n,a,i,r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=(n=t?F:P).messageTable.date,!(t&&F.limit&&a<=F.limit)){e.next=2;break}if(O){e.next=1;break}return e.next=1,C();case 1:return e.abrupt("return",!0);case 2:return e.next=3,R.loadPrevious(a,t);case 3:if((a=e.sent)||t||O){e.next=4;break}return e.next=4,C();case 4:if(a){e.next=5;break}return e.abrupt("return",!0);case 5:return i=!1,t||(r=R.leafDocumentFromDate(new Date),o=R.leafDocumentFromDate(a),i=o.sameTerm(r)),e.next=6,d(a,i);case 6:return s=e.sent,n.messageTable=s,(t?T:!T)?N.appendChild(s):N.insertBefore(s,N.firstChild),e.abrupt("return",i);case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(e){return u.apply(this,arguments)},c=function(){return c=b(y().mark(function e(t,n){var a,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!mc(t)||i.showDeletedMessages){e.next=1;break}return e.abrupt("return");case 1:if(a=w.store.any(null,v.sioc("has_member"),t,t.doc()),(r=w.store.any(t,v.sioc("id"),null,t.doc()))&&!a&&(a=w.store.any(null,v.sioc("has_member"),r,t.doc())),!i.thread){e.next=5;break}if(!w.store.holds(t,v.sioc("has_reply"),i.thread)){e.next=2;break}e.next=4;break;case 2:if(!a||!a.sameTerm(i.thread)){e.next=3;break}e.next=4;break;case 3:return e.abrupt("return");case 4:e.next=6;break;case 5:if(!a){e.next=6;break}return e.abrupt("return");case 6:if(n.fresh){e.next=7;break}return e.next=7,dl(L,n,t,n.fresh,i,I);case 7:case"end":return e.stop()}},e)})),c.apply(this,arguments)},s=function(e,t){return c.apply(this,arguments)},o=function(){return o=b(y().mark(function e(t,n){var a,i,r,o,c,l,u,p,d;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(a={},i=n.firstChild;i;i=i.nextSibling)i.AJAR_subject&&(a[i.AJAR_subject.uri]=!0);o=w.store.each(t,v.wf("message"),null,n.chatDocument),c={},l=ll(o),e.prev=1,l.s();case 2:if((u=l.n()).done){e.next=4;break}if(p=u.value,c[p.uri]=!0,a[p.uri]){e.next=3;break}return e.next=3,s(p,n);case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,d=e.catch(1),l.e(d);case 6:return e.prev=6,l.f(),e.finish(6);case 7:for(i=n.firstChild;i;)r=i.nextSibling,i.AJAR_subject&&!c[i.AJAR_subject.uri]&&n.removeChild(i),i=r;for(i=n.firstChild;i;i=i.nextSibling)i.AJAR_subject&&Ht(i);case 8:case"end":return e.stop()}},e,null,[[1,5,6,7]])})),o.apply(this,arguments)},r=function(e,t){return o.apply(this,arguments)},(i=i||{}).authorDateOnLeft=!1,T="1"===i.newestFirst||!0===i.newestFirst,L=new oc(a,i),R=L.dateFolder,N=t.createElement("div"),L.div=N,B=N.appendChild(t.createElement("div")),I={dom:t,statusArea:B,div:B},F={messageTable:null},P={messageTable:null},i.thread&&(U=i.thread,(D=w.store.any(null,v.sioc("has_reply"),U,U.doc()))&&(M=w.store.any(D,v.dct("created"),null,D.doc()))&&(F.limit=new Date(M.value))),z=!1,e.next=1,j();case 1:return e.abrupt("return",N);case 2:case"end":return e.stop()}},e)})),hl.apply(this,arguments)}var vl=w.store,xl=[];function bl(e){return xl[e]}function gl(e,t){if("string"!=typeof t)throw Y.Rm("Non-string value of preference "+e+": "+t),new Error("Non-string value of preference "+e+": "+t);this.value[e]=t}function yl(e,t){return new Promise(function(n,a){var i=vl.any(e,v.ui("sharedPreferences"));if(i)t.sharedPreferences=i,n(t);else{vl.updater.editable(e.doc())||(Y.Rm(" Cant make shared preferences, may not change ".concat(e.doc)),n(t));var r=h.sym(e.doc().uri+"#SharedPreferences"),o=[h.st(e,v.ui("sharedPreferences"),r,e.doc())];Y.Rm("Creating shared preferences "+r),vl.updater.update([],o,function(e,i,o){i?(t.sharedPreferences=r,n(t)):a(new Error("Error creating shared prefs: "+o))})}})}function wl(e,t){return new Promise(function(n,a){li(t).then(function(t){if(t.preferencesFile){var i,r,o=vl.each(null,v.solid("forClass"),e,t.preferencesFile),s=[];if(o.length){if(o.forEach(function(e){i=i||vl.any(e,v.solid("personalDefaults"))}),i)return t.personalDefaults=i,void n(t);i=$a(t.preferencesFile),r=o[0]}else r=$a(t.preferencesFile),s=[h.st(r,v.rdf("type"),v.solid("TypeRegistration"),t.preferencesFile),h.st(r,v.solid("forClass"),e,t.preferencesFile)];i=$a(t.preferencesFile),s.push(h.st(r,v.solid("personalDefaults"),i,t.preferencesFile)),vl.updater.update([],s,function(r,o,s){o?(t.personalDefaults=i,n(t)):a(new Error("Setting preferences for "+e+": "+s))})}else Y.Rm("Not doing private class preferences as no access to preferences file. "+t.preferencesFileError)},function(e){a(e)})})}function kl(e,t,n,a){var i=a.dom.createElement("div");return bc(e,e.doc(),a.me).then(function(r){var o=a.dom;function s(e){i.appendChild(o.createElement("h5")).textContent=e}s("My view of this "+a.noun),Ia(o,i,{},r,n,e.doc(),function(e,t){e||xt(a,t)}),s("Everyone's view of this "+a.noun),yl(e,a).then(function(a){var r=a.sharedPreferences;Ia(o,i,{},r,n,e.doc(),function(e,t){e||xt(a,t)}),s("My default view of any "+a.noun),wl(t,a).then(function(e){Ia(o,i,{},e.personalDefaults,n,e.preferencesFile,function(t,n){t||xt(e,n)})},function(e){xt(a,e)})})},function(e){i.appendChild(ct(a.dom,e))}),i}function Cl(e){return e.datatype?e.datatype.equals(v.xsd("boolean"))?"1"===e.value:e.datatype.equals(v.xsd("dateTime"))||e.datatype.equals(v.xsd("date"))?new Date(e.value):e.datatype.equals(v.xsd("integer"))||e.datatype.equals(v.xsd("float"))||e.datatype.equals(v.xsd("decimal"))?Number(e.value):e.value:e}function El(e,t,n,a){return new Promise(function(i,r){yl(e,a).then(function(a){var o=a.sharedPreferences;if(a.me)bc(e,e.doc(),a.me).then(function(e){wl(t,a).then(function(t){var a=[],r=t.personalDefaults;n.forEach(function(t){var n=vl.any(e,t)||vl.any(o,t)||vl.any(r,t);n&&(a[t.uri]=Cl(n))}),i(a)},r)},r);else{var s=[];n.forEach(function(e){var t=vl.any(o,e);t&&(s[e.uri]=Cl(t))}),i(s)}})})}var Al={icons:Re.Pt,log:e,ns:v,utils:t,widgets:s};function _l(e,t){var n,a,i,r,o=t.sourceDocument,s=t.tableClass,c=t.query,l=Al.ns,u=w.store,p={},d={"http://www.w3.org/2002/07/owl#sameAs":!0,"http://www.w3.org/1999/02/22-rdf-syntax-ns#type":!0},m={"http://www.w3.org/2001/XMLSchema#decimal":!0,"http://www.w3.org/2001/XMLSchema#float":!0,"http://www.w3.org/2001/XMLSchema#double":!0,"http://www.w3.org/2001/XMLSchema#integer":!0,"http://www.w3.org/2001/XMLSchema#nonNegativeInteger":!0,"http://www.w3.org/2001/XMLSchema#positiveInteger":!0,"http://www.w3.org/2001/XMLSchema#nonPositiveInteger":!0,"http://www.w3.org/2001/XMLSchema#negativeInteger":!0,"http://www.w3.org/2001/XMLSchema#long":!0,"http://www.w3.org/2001/XMLSchema#int":!0,"http://www.w3.org/2001/XMLSchema#short":!0,"http://www.w3.org/2001/XMLSchema#byte":!0,"http://www.w3.org/2001/XMLSchema#unsignedLong":!0,"http://www.w3.org/2001/XMLSchema#unsignedInt":!0,"http://www.w3.org/2001/XMLSchema#unsignedShort":!0,"http://www.w3.org/2001/XMLSchema#unsignedByte":!0},f={"http://www.w3.org/2001/XMLSchema#dateTime":!0,"http://www.w3.org/2001/XMLSchema#date":!0},v={"http://xmlns.com/foaf/0.1/Image":!0,"http://purl.org/dc/terms/Image":!0},x=t.keyVariable||"?_row",b=0,g=null,y=null,k=e.createElement("div");k.className="tableViewPane",k.appendChild(function(){var t=e.createElement("table");t.setAttribute("class","toolbar");var n=e.createElement("tr");return i=e.createElement("td"),n.appendChild(i),r=e.createElement("td"),n.appendChild(r),t.appendChild(n),t}());var C,E=e.createElement("div");if(k.appendChild(E),k.refresh=function(){X(C.query,C.logicalRows,C.columns,C)},c)C=ne(c),E.appendChild(C);else{var A=function(){var e,t,n=function(){for(var e={},t=u.statementsMatching(void 0,Al.ns.rdf("type"),s,o),n={},a=0;a<t.length;++a){var i=t[a].object;if("NamedNode"===i.termType){var r=I(e,i);i.uri in n||(n[i.uri]=[]),n[i.uri].push(t[a].subject),r.addUse()}}return[n,e]}();for(var a in e=n[0],t=n[1],e){var i=e[a];D(t[a],i)}var r=new T(null);return[r,R(t)]}();n=A[0],a=A[1],s||i.appendChild(function(t,n){var a=e.createElement("div");a.appendChild(e.createTextNode("Select type: "));var i=e.createElement("select");for(var r in i.appendChild(N("All types","null")),n)i.appendChild(N(n[r].getLabel(),r));return i.addEventListener("click",function(){var e;e="null"===i.value?t:n[i.value],j(e)},!1),a.appendChild(i),a}(n,a)),y=function(e){var t,n=-1,a=null;for(t in e){var i=e[t];i.useCount>n&&(a=i,n=i.useCount)}return a}(a),j(y||n)}return k;function _(e){var t=new h.Query,n=u.variable(x.slice(1));return function(e,t){for(var n=t.getColumns(),a=0;a<n.length;++a){var i=u.variable("_col"+a);e.vars.push(i),n[a].setVariable(i)}}(t,e),function(e,t,n){var a=n.type;a||(a=u.variable("_any")),e.pat.add(t,Al.ns.rdf("type"),a)}(t,n,e),function(e,t,n){for(var a=n.getColumns(),i=0;i<a.length;++i){var r=a[i],o=u.formula();o.add(t,r.predicate,r.getVariable()),e.pat.optional.push(o)}}(t,n,e),t}function j(t){S(r),r.appendChild(function(t){var n=e.createElement("div"),a=t.getUnusedColumns();if(a.sort(function(e,t){var n=e.sortKey(),a=t.sortKey();return(n>a)-(n<a)}),a.length>0){n.appendChild(e.createTextNode("Add column: "));var i=e.createElement("select");i.appendChild(N("","-1"));for(var r=0;r<a.length;++r){var o=a[r];i.appendChild(N(o.getLabel(),""+r))}n.appendChild(i),i.addEventListener("click",function(){var e=Number(i.value);e>=0&&(t.addColumn(a[e]),j(t))},!1)}return n}(t)),function(e,t){g&&(g.running=!1);var n=ne(e,t);S(E),E.appendChild(n),g=e}(_(t),t)}function S(e){for(;e.childNodes.length>0;)e.removeChild(e.childNodes[0])}function T(e){this.type=e,this.columns=null,this.allColumns=[],this.useCount=0,this.getAllColumns=function(){return this.allColumns},this.getColumns=function(){if(!this.columns){var e=this.getAllColumns();this.columns=e.slice(0,7)}return this.columns},this.getUnusedColumns=function(){for(var e=this.getAllColumns(),t=this.getColumns(),n=[],a=0;a<e.length;++a)-1===t.indexOf(e[a])&&n.push(e[a]);return n},this.addColumn=function(e){this.columns.push(e)},this.removeColumn=function(e){this.columns=this.columns.filter(function(t){return t!==e})},this.getLabel=function(){return Z(this.type)},this.addUse=function(){this.useCount+=1}}function L(){this.useCount=0,this.checkedAnyValues=!1,this.possiblyLiteral=!0,this.possiblyNumber=!0,this.constraints=[],this.checkValue=function(e){var t=e.termType;if(this.possiblyLiteral&&"Literal"!==t&&"NamedNode"!==t)this.possiblyNumber=!1,this.possiblyLiteral=!1;else if(this.possiblyNumber){if("Literal"!==t)this.possiblyNumber=!1;else e.value.match(/^-?\d+(\.\d*)?$/)||(this.possiblyNumber=!1)}this.checkedAnyValues=!0},this.getVariable=function(){return this.variable},this.setVariable=function(e){this.variable=e},this.getKey=function(){return this.variable.toString()},this.addUse=function(){this.useCount+=1},this.getHints=function(){return t&&t.hints&&this.variable&&t.hints[this.variable.toNT()]?t.hints[this.variable.toNT()]:{}},this.getLabel=function(){return this.getHints().label?this.getHints().label:this.predicate?this.predicate.sameTerm(l.rdf("type"))&&this.superClass?Z(this.superClass,!0):Z(this.predicate):this.variable?this.variable.toString():"unlabeled column?"},this.setPredicate=function(e,t,n){t?(this.inverse=e,this.constraints=this.constraints.concat(u.each(e,Al.ns.rdfs("domain"))),e.sameTerm(l.rdfs("subClassOf"))&&"NamedNode"===n.termType&&(this.superClass=n,this.alternatives=u.each(void 0,l.rdfs("subClassOf"),n))):(this.predicate=e,this.constraints=this.constraints.concat(u.each(e,Al.ns.rdfs("range"))))},this.getConstraints=function(){return this.constraints},this.filterFunction=function(){return!0},this.sortKey=function(){return this.getLabel().toLowerCase()},this.isImageColumn=function(){for(var e=0;e<this.constraints.length;e++)if(this.constraints[e].uri in v)return!0;return!1}}function R(e,t){var n=[];for(var a in e){var i=e[a];t&&!t(a,i)||n.push(i)}return n}function N(t,n){var a=e.createElement("option");return a.setAttribute("value",n),a.appendChild(e.createTextNode(t)),a}function B(e,t){var n;return t.uri in e?n=e[t.uri]:((n=new L).setPredicate(t),e[t.uri]=n),n}function I(e,t){var n;return t.uri in e?n=e[t.uri]:(n=new T(t),e[t.uri]=n),n}function O(e,t){for(var n=u.statementsMatching(e,void 0,void 0,o),a={},i=0;i<n.length;++i){var r=n[i].predicate;if(!(r.uri in d)){var s=B(t,r);s.checkValue(n[i].object),a[r.uri]=s}}return a}function D(e,t){for(var n={},a=0;a<t.length;++a){var i=O(t[a],n);for(var r in i){i[r].addUse()}}var o=R(n);!function(e){function t(e,t){return(e.useCount<t.useCount)-(e.useCount>t.useCount)}e.sort(t)}(o),e.allColumns=o}function F(t,n){var a=e.createElement("a");return a.appendChild(e.createTextNode("[x]")),a.addEventListener("click",function(){t.removeColumn(n),j(t)},!1),a}function P(e,t){for(var n=!0,a=0;a<t.length;++a){var i=t[a],r=i.getKey(),o=null;if(r in e.values&&(o=e.values[r][0]),!i.filterFunction(o)){n=!1;break}}var s=e._htmlRow;s.style.display=n?"":"none"}function U(e,t){for(var n=0;n<e.length;++n){P(e[n],t)}}function M(e,t,n){function a(e){return e?"Literal"===e.termType?e.value.toLowerCase():"NamedNode"===e.termType?Z(e).toLowerCase():e.value.toLowerCase():""}!function(e,t,n,a){var i=t.getKey();if(e.sort(function(e,t){var r=null,o=null;i in e.values&&(r=e.values[i][0]),i in t.values&&(o=t.values[i][0]);var s=n(r,o);return a?-s:s}),e.length){for(var r=e[0]._htmlRow.parentNode,o=0;o<e.length;++o)r.removeChild(e[o]._htmlRow);for(var s=0;s<e.length;++s)r.appendChild(e[s]._htmlRow)}}(e,t,function(e,t){var n=a(e),i=a(t);return n<i?-1:n>i?1:0},n)}function z(t,n,a){var i=e.createElement("div"),r=e.createElement("input");r.setAttribute("type","text"),r.style.width="70%",i.appendChild(r);var o=e.createElement("span");o.appendChild(e.createTextNode("▼")),o.addEventListener("click",function(){M(t,a,!1)},!1),i.appendChild(o);var s=e.createElement("span");s.appendChild(e.createTextNode("▲")),s.addEventListener("click",function(){M(t,a,!0)},!1),i.appendChild(s);var c=null;return a.filterFunction=function(e){return!c||!!e&&("Literal"===e.termType?e.value:"NamedNode"===e.termType?Z(e):"").toLowerCase().indexOf(c)>=0},r.addEventListener("keyup",function(){c=""!==r.value?r.value.toLowerCase():null,U(t,n)},!1),i}function q(t,n,a,i){for(var r=e.createElement("div"),o=e.createElement("select"),s={},c=0;c<i.length;++c){var l=i[c];s[l.uri]=!0}var u=W(a).initialSelection;u&&(s=u),o.setAttribute("multiple","true");for(var p=0;p<i.length;++p){var d=i[p],m=N(Z(d),p);s[d.uri]&&(m.selected=!0),o.appendChild(m)}return r.appendChild(o),a.filterFunction=function(e){return!s||e&&s[e.uri]},o.addEventListener("click",function(){s={};for(var e=o.options,a=0;a<e.length;a++){var r=e[a],c=Number(r.value);e[a].selected&&(s[i[c].uri]=!0)}U(t,n)},!0),r}function H(t,n,a){var i=e.createElement("div"),r=e.createElement("input");r.setAttribute("type","text"),r.style.width="40px",i.appendChild(r);var o=e.createElement("input");o.setAttribute("type","text"),o.style.width="40px",i.appendChild(o);var s=null,c=null;function l(){s=""===r.value?null:Number(r.value),c=""===o.value?null:Number(o.value),U(t,n)}return a.filterFunction=function(e){return e&&(e=Number(e)),!(s&&(!e||e<s))&&!(c&&(!e||e>c))},r.addEventListener("keyup",l,!1),o.addEventListener("keyup",l,!1),i}function G(e,t,n){if(n.superClass&&n.alternatives.length>0)return q(e,t,n,n.alternatives);for(var a,i=n.getConstraints(),r=0;r<i.length;r++){if(a=i[r],n.checkedAnyValues&&n.possiblyNumber||a.uri in m)return H(e,t,n);if("http://www.w3.org/2000/01/rdf-schema#Literal"===a.uri)return z(e,t,n);var o=u.each(a,Al.ns.owl("oneOf"));if(o.length>0)return q(e,t,n,o.elements)}return function(e,t,n){return n.checkedAnyValues&&n.possiblyNumber?H(e,t,n):n.possiblyLiteral?z(e,t,n):null}(e,t,n)}function V(t,n,a){a=a||{};var i=e.createElement("a"),r=a.linkFunction;return i.setAttribute("href",t),i.appendChild(e.createTextNode(n)),r?i.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation();var t=He(e).getAttribute("href");t||Y.Rm("No href found \n"),r(t)},!0):i.addEventListener("click",Al.widgets.openHrefInOutlineMode,!0),i}function W(e){return t&&t.hints&&e.variable&&t.hints[e.variable.toNT()]?t.hints[e.variable.toNT()]:{}}function J(t,n){var a=W(n),i=a.cellFormat;if(!i){if("Literal"===t.termType){if(t.datatype){if(f[t.datatype.uri])return e.createTextNode(Al.widgets.shortDate(t.value));if(m[t.datatype.uri]){var r=e.createElement("span");return r.textContent=t.value,r.setAttribute("style","text-align: right"),r}}return e.createTextNode(t.value)}if("NamedNode"===t.termType&&n.isImageColumn())return function(t){var n=e.createElement("img");return n.setAttribute("src",t.uri),n.style.height="40px",n}(t);if("NamedNode"===t.termType||"BlankNode"===t.termType)return function(e,t){var n=!1;return e.uri&&(n=e.uri.match(/^mailto:(.*)/)),V(e.uri,n?n[1]:Z(e),t)}(t,a);if("Collection"===t.termType){var o=e.createElement("span");return o.appendChild(e.createTextNode("[")),t.elements.forEach(function(t){o.appendChild(J(t,n)),o.appendChild(e.createTextNode(", "))}),o.removeChild(o.lastChild),o.appendChild(e.createTextNode("]")),o}return e.createTextNode("unknown termtype '"+t.termType+"'!")}if("shortDate"===i)return e.createTextNode(Al.widgets.shortDate(t.value))}function $(e,t){var n,a=null;if("Literal"===e.termType)a="value";else{if("NamedNode"!==e.termType)return t.indexOf(e)>=0;a="uri"}for(n=0;n<t.length;++n)if(t[n].termType===e.termType&&t[n][a]===e[a])return!0;return!1}function Q(t,n,a){var i,r=!1;for(i in a){var o=a[i];i in t.values||(t.values[i]=[]),$(o,t.values[i])||(t.values[i].push(o),r=!0)}r&&(S(t._htmlRow),function(t,n,a){var i=e.createElement("td");n._subject&&"uri"in n._subject&&i.appendChild(V(n._subject.uri,"→")),t.appendChild(i);for(var r=0;r<a.length;++r){var o=a[r],s=e.createElement("td"),c=void 0,l=o.getKey();if(l in n.values){var u=n.values[l],p=!1;n.originalValues&&n.originalValues[l]&&u.length!==n.originalValues[l].length&&(p=!0);for(var d=0;d<u.length;++d){var m=u[d];n.originalValues&&n.originalValues[l]&&n.originalValues[l].length>d&&(c=n.originalValues[l][d],m.toString()!==c.toString()&&(p=!0)),s.appendChild(J(m,o)),d!==u.length-1&&s.appendChild(e.createTextNode(",\n")),p&&(s.style.background="#efe")}}t.appendChild(s)}n._htmlRow=t}(t._htmlRow,t,n)),P(t,n)}function K(e){if("uri"in e)return e.uri;if("_subject_id"in e)return e._subject_id;var t=""+b;return e._subject_id=t,++b,t}function X(n,a,i,r){n.running=!0;var o=Date.now(),s=e.createElement("tr");r.appendChild(s),s.textContent="Loading ...";for(var c=0;c<a.length;c++)a[c].original=!0,a[c].originalValues||(a[c].originalValues=a[c].values),a[c].values={};u.query(n,function(t){if(n.running){s.textContent+=".";var o,c=null,l=null;if(x in t&&(o=K(l=t[x]))in p&&(c=p[o]),!c){var u=e.createElement("tr");r.appendChild(u),c={_htmlRow:u,_subject:l,values:{}},a.push(c),l&&(p[o]=c)}delete c.original,Q(c,i,t)}},void 0,function(){s&&s.parentNode&&s.parentNode.removeChild&&(s.parentNode.removeChild(s),s=null);var e=Date.now()-o;Y.Rm("Query done: "+a.length+" rows, "+e+"ms");for(var n=a.length-1;n>=0;n--)if(a[n].original){Y.Rm(" deleting row "+a[n]._subject);var r=a[n]._htmlRow;r.parentNode.removeChild(r),delete p[K(a[n]._subject)],a.splice(n,1)}if(t.sortBy){var c=function(e,t){for(var n in e){var a=e[n];if(a.variable.toNT()===t)return a}throw new Error("getColumnForVariable: no column for variable ".concat(t))}(i,t.sortBy);M(a,c,t.sortReverse)}t.onDone&&t.onDone(k)})}function ee(e,t){Al.log.debug(">> processing formula");for(var n=0;n<t.statements.length;++n){var a=t.statements[n];if("NamedNode"===a.predicate.termType&&"Variable"===a.object.termType){var i=a.object.toString();if(i in e)e[i].setPredicate(a.predicate,!1,a.subject)}if("NamedNode"===a.predicate.termType&&"Variable"===a.subject.termType){var r=a.subject.toString();if(r in e)e[r].setPredicate(a.predicate,!0,a.object)}}for(var o=0;o<t.optional.length;++o)Al.log.debug("recurse to optional subformula "+o),ee(e,t.optional[o]);Al.log.debug("<< finished processing formula")}function te(e){for(var t=[],n={},a=0;a<e.vars.length;++a){var i=new L,r=e.vars[a];Al.log.debug("column "+a+" : "+r),i.setVariable(r),n[r]=i,t.push(i)}return ee(n,e.pat),t}function ne(t,n){var a;a=c?te(t):n.getColumns();var i=[],r=e.createElement("table");return r.appendChild(function(t,n){var a=e.createElement("tr"),i=e.createElement("th");a.appendChild(i);for(var r=0;r<t.length;++r){var o=e.createElement("th"),s=t[r];o.appendChild(e.createTextNode(s.getLabel())),n&&o.appendChild(F(n,s)),a.appendChild(o)}return a}(a,n)),r.appendChild(function(t,n){var a=e.createElement("tr");a.className="selectors",a.appendChild(e.createElement("td"));for(var i=0;i<n.length;++i){var r=e.createElement("td"),o=G(t,n,n[i]);o&&r.appendChild(o),a.appendChild(r)}return a}(i,a)),r.logicalRows=i,r.columns=a,r.query=t,X(t,i,a,r),r}}function jl(e,t){if(t&&("object"==xe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Sl(e){return Sl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sl(e)}function Tl(e,t){return Tl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tl(e,t)}function Ll(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ll=function(){return!!e})()}function Rl(e){var t="function"==typeof Map?new Map:void 0;return Rl=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Ll())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var i=new(e.bind.apply(e,a));return n&&Tl(i,n.prototype),i}(e,arguments,Sl(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Tl(n,e)},Rl(e)}function Nl(e,t,n){return t=Sl(t),jl(e,Bl()?Reflect.construct(t,n||[],Sl(e).constructor):t.apply(e,n))}function Bl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Bl=function(){return!!e})()}var Il=function(e){function t(){return ve(this,t),Nl(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tl(e,t)}(t,e),ye(t)}(Rl(HTMLElement)),Ol="#ddddcc";function Dl(e){var t=e.subject,n=e.dom||document,a=parseInt(e.orientation||"0"),i=e.backgroundColor||Ol,r=2&a,o=1&a,s=e.onClose,c=function(e){return function(e){for(var t=0,n=0;n<3;n++)t+=parseInt(e.slice(2*n+1,2*n+3),16);return t>384}(e)?[Fl(e,"#ffffff",.3),"#000000"]:[Fl(e,"#000000",.3),"#ffffff"]}(i),l=Ce(c,2),u=l[0],p=l[1],d="flex: 2; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(u,"; padding: 1em;"),m=n.createElement("div");m.setAttribute("style",_e.tabsRootElement),m.style.flexDirection=(o?"row":"column")+(r?"-reverse":"");var f=m.appendChild(n.createElement("nav"));f.setAttribute("style",_e.tabsNavElement);var h=m.appendChild(n.createElement("main"));h.setAttribute("style",_e.tabsMainElement);var v=f.appendChild(n.createElement("ul"));v.setAttribute("style",_e.tabContainer),v.style.flexDirection="".concat(o?"column":"row");var x=h;m.tabContainer=v,m.bodyContainer=x;var b=["0.2em","0.2em","0","0"],g=b.concat(b).slice(a,a+4),y="border-radius: ".concat(g.join(" "),";"),k=["0.3em","0.3em","0","0.3em"],C=k.concat(k).slice(a,a+4),E="margin: ".concat(C.join(" "),";"),A="padding: ".concat(C.join(" "),";"),_=y+"position: relative; padding: 0.7em; max-width: 20em; color: ".concat(p,";"),j="".concat(_+E," opacity: 50%; background-color: ").concat(i,";"),S="".concat(_+E," background-color: ").concat(u,";"),T="height: 100%; width: 100%;",L=T+"display: none;";if(m.refresh=U,U(),!e.startEmpty&&v.children.length&&e.selectedTab){var R=Array.from(v.children).map(function(e){return e.firstChild}).find(function(t){return t.dataset.name===e.selectedTab}),N=e.selectedTab.uri,B=Array.from(v.children).find(function(e){return e.subject&&e.subject.uri&&e.subject.uri===N}),I=B||R||v.children[0],O=I.firstChild;null!=O&&O.click?O.click():I instanceof HTMLElement&&I.click()}else if(!e.startEmpty){var D=v.children[0],F=null==D?void 0:D.firstChild;null!=F&&F.click?F.click():D instanceof HTMLElement&&D.click()}return m;function P(t){var a=n.createElement("li");a.setAttribute("style",j),a.subject=t;var i=a.appendChild(n.createElement("button"));if(i.setAttribute("style",_e.makeNewSlot),i.onclick=function(){if(M(),z(),a.setAttribute("style",S),a.bodyTR){a.bodyTR.setAttribute("style",T);var n=o(a);e.renderMain&&a.subject&&!1!==n.asSettings&&(n.innerHTML="loading item ..."+t,e.renderMain(n,a.subject),n.asSettings=!1)}},e.renderTabSettings&&a.subject){var r=n.createElement("button");r.textContent="...",r.setAttribute("style",_e.ellipsis),r.onclick=function(){if(M(),z(),a.setAttribute("style",S),a.bodyTR){a.bodyTR.setAttribute("style",T);var n=o(a);e.renderTabSettings&&a.subject&&!0!==n.asSettings&&(n.innerHTML="loading settings ..."+t,e.renderTabSettings(n,a.subject),n.asSettings=!0)}},a.appendChild(r)}return e.renderTab?e.renderTab(i,t):i.innerHTML=Z(t),a;function o(e){var t,a=null===(t=e.bodyTR)||void 0===t?void 0:t.children[0];if(a)return a;var i=e.bodyTR.appendChild(n.createElement("main"));return i.setAttribute("style",d),i}}function U(){var a,i,r,o,c,l=e.items?e.items:!1!==e.ordered?w.store.the(t,e.predicate).elements:w.store.each(t,e.predicate),u=!1;for(o=0;o<v.children.length;o++)if(a=v.children[o],o>=l.length||a.subject&&!a.subject.sameTerm(l[o])){u=!0;break}if(u||l.length!==v.children.length){for(c=v.children.length-1;c>=0&&(a=v.children[c],r=c-v.children.length+l.length,!a.subject||a.subject.sameTerm(l[r]));c--);for(var p=l.slice(o,c-v.children.length+l.length+1);c>=o;)v.removeChild(v.children[o]),x.removeChild(x.children[o]),c-=1;for(i=0;i<p.length;i++){var d=P(p[i]),m=n.createElement("div");d.bodyTR=m,o===v.children.length?(v.appendChild(d),x.appendChild(m)):(v.insertBefore(d,v.children[o+i]),x.insertBefore(m,x.children[o+i]))}s&&function(e){if(e.dataset.onCloseSet){var t=e.querySelector(".unstyled");e.removeChild(t)}var a=n.createElement("li");a.classList.add("unstyled");var i=Ot(n,s);i.setAttribute("style",i.getAttribute("style")+A),a.appendChild(i),e.appendChild(a),e.dataset.onCloseSet="true"}(v)}}function M(){for(var e=0;e<v.children.length;e++){var t=v.children[e];t.classList.contains("unstyled")||t.setAttribute("style",j)}}function z(){for(var e=0;e<x.children.length;e++)x.children[e].setAttribute("style",L)}}function Fl(e,t,n){for(var a,i,r="#",o="0123456789abcdef",s=0;s<3;s++){a=parseInt(e.slice(2*s+1,2*s+3),16),i=parseInt(t.slice(2*s+1,2*s+3),16);var c=parseInt((""+(a*(1-n)+i*n)).split(".")[0]),l=parseInt((""+c/16).split(".")[0]),u=parseInt((""+c%16).split(".")[0]);r+=o[l]+o[u]}return r}var Pl='\n<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 26 26" fill="none">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13 25C19.6274 25 25 19.6274 25 13C25 6.37258 19.6274 1 13 1C6.37258 1 1 6.37258 1 13C1 19.6274 6.37258 25 13 25Z" fill="#D8D8D8" stroke="#8B8B8B"/>\n <mask id="mask0" mask-type="alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="26" height="26">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13 25C19.6274 25 25 19.6274 25 13C25 6.37258 19.6274 1 13 1C6.37258 1 1 6.37258 1 13C1 19.6274 6.37258 25 13 25Z" fill="white" stroke="white"/>\n </mask>\n <g mask="url(#mask0)">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M17.0468 10.4586C17.0468 14.4979 15.4281 16.9214 12.9999 16.9214C10.5718 16.9214 8.95298 14.4979 8.95298 10.4586C8.95298 6.41931 12.9999 6.41931 12.9999 6.41931C12.9999 6.41931 17.0468 6.41931 17.0468 10.4586ZM4.09668 23.3842C6.52483 17.7293 12.9999 17.7293 12.9999 17.7293C12.9999 17.7293 19.475 17.7293 21.9031 23.3842C21.9031 23.3842 17.8481 25 12.9999 25C8.15169 25 4.09668 23.3842 4.09668 23.3842Z" fill="#8B8B8B"/>\n </g>\n</svg>';function Ul(){return(0,h.sym)(document.location.origin).site()}function Ml(e,t){return zl.apply(this,arguments)}function zl(){return(zl=b(y().mark(function e(t,n){var a,i,r,o,s;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n.any(t,null,v.ldp("Container"),t)){e.next=2;break}return e.next=1,n.fetcher.webOperation("GET",t.uri,n.fetcher.initFetchOptions(t.uri,{headers:{accept:"text/turtle"}}));case 1:a=e.sent,i=a.responseText,(0,h.parse)(i,n,t.uri,"text/turtle");case 2:e.next=4;break;case 3:return e.prev=3,s=e.catch(0),console.error("Error loading pod "+t+": "+s),e.abrupt("return",null);case 4:if(n.holds(t,v.rdf("type"),v.space("Storage"),t)){e.next=5;break}return console.warn("Pod "+t+" does not declare itself as a space:Storage"),e.abrupt("return",null);case 5:if(!(r=n.any(t,v.solid("owner"),null,t)||n.any(null,v.space("storage"),t,t))){e.next=10;break}return e.prev=6,e.next=7,n.fetcher.load(r.doc());case 7:e.next=9;break;case 8:return e.prev=8,e.catch(6),console.warn("Unable to load profile of pod owner "+r),e.abrupt("return",null);case 9:return n.holds(r,v.space("storage"),t,r.doc())||console.warn("Pod owner ".concat(r," does NOT list pod ").concat(t," as their storage")),e.abrupt("return",r);case 10:return o=(0,h.sym)("".concat(t.uri,"profile/card#me")),e.prev=11,e.next=12,n.fetcher.load(o);case 12:e.next=14;break;case 13:return e.prev=13,e.catch(11),console.error("Ooops. Guessed wrong pod owner webid {$guess} : can't load it."),e.abrupt("return",null);case 14:if(!n.holds(o,v.space("storage"),t,o.doc())){e.next=15;break}return console.warn("Using guessed pod owner webid but it links back."),e.abrupt("return",o);case 15:return e.abrupt("return",null);case 16:case"end":return e.stop()}},e,null,[[0,3],[6,8],[11,13]])}))).apply(this,arguments)}function ql(e,t){var n,a,i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=null,s=0,c=function(){s=r.leading?Date.now():0,o=null,i=e.apply(n,a),o||(n=a=null)};return function(){var l=Date.now();s||r.leading||(s=l);var u=t-(l-s);return n=this,a=arguments,u<=0||u>t?(o&&(clearTimeout(o),o=null),s=l,i=e.apply(n,a),o||(n=a=null)):o||!1===r.trailing||(o=setTimeout(c,u)),i}}var Hl=Re.Pt.iconBase+"noun_help.svg";function Gl(e,t,n){return Vl.apply(this,arguments)}function Vl(){return(Vl=b(y().mark(function e(t,n,a){var i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=document.getElementById("PageHeader")){e.next=1;break}return e.abrupt("return");case 1:r=Ul(),Wl(i,t,r,n,a)(),w.authSession.events.on("logout",Wl(i,t,r,n,a)),w.authSession.events.on("login",Wl(i,t,r,n,a));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Wl(e,t,n,a,i){return b(y().mark(function r(){var o,s;return y().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=w.authn.currentUser(),e.innerHTML="",s=e,r.next=1,Jl(t,n,o,a,i);case 1:s.appendChild.call(s,r.sent);case 2:case"end":return r.stop()}},r)}))}function Jl(e,t,n,a,i){return $l.apply(this,arguments)}function $l(){return($l=b(y().mark(function e(t,n,a,i,r){var o,s,c,l,u,p,d;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((o=document.createElement("a")).href=n.uri,o.setAttribute("style",_e.headerBannerLink),s=document.createElement("img"),r&&(s.src=r.logo?r.logo:"https://solidproject.org/assets/img/solid-emblem.svg"),s.setAttribute("style",_e.headerBannerIcon),o.appendChild(s),!a){e.next=2;break}return e.next=1,Xl(t,a,i);case 1:d=e.sent,e.next=3;break;case 2:d=Zl();case 3:return c=d,(l=document.createElement("div")).setAttribute("style",_e.headerBanner),l.appendChild(o),(u=document.createElement("div")).setAttribute("style",_e.headerBannerRightMenu),u.appendChild(c),r&&r.helpMenuList&&(p=Ql(r,r.helpMenuList),u.appendChild(p)),l.appendChild(u),e.abrupt("return",l);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Ql(e,t){if(t){var n=document.createElement("ul");n.setAttribute("style",_e.headerUserMenuList),t.forEach(function(e){"url"===(e.url?"url":"onclick")?n.appendChild(tu(Yl(e.label,e.url,e.target))):n.appendChild(tu(Kl(e.label,e.onclick)))});var a=document.createElement("nav");a.setAttribute("style",_e.headerUserMenuNavigationMenuNotDisplayed),a.setAttribute("aria-hidden","true"),a.setAttribute("id","helperNav"),a.appendChild(n);var i=document.createElement("div");i.setAttribute("style",_e.headerBannerUserMenu),i.appendChild(a);var r=document.createElement("button");r.setAttribute("style",_e.headerUserMenuTrigger),r.type="button";var o=document.createElement("img");o.src=e&&e.helpIcon?e.helpIcon:Re.Pt.iconBase+Hl,o.setAttribute("style",_e.headerUserMenuTriggerImg),i.appendChild(r),r.appendChild(o);var s=ql(function(e){return au(e,r,a)},50);r.addEventListener("click",s);var c=setTimeout(function(){return null},0);return i.addEventListener("mouseover",function(e){clearTimeout(c),s(e);var t=document.getElementById("helperNav");null==t||t.setAttribute("style",_e.headerUserMenuNavigationMenu)}),i.addEventListener("mouseout",function(e){c=setTimeout(function(){return s(e)},200);var t=document.getElementById("helperNav");null==t||t.setAttribute("style",_e.headerUserMenuNavigationMenuNotDisplayed)}),i}}function Zl(){var e=document.createElement("div");return e.setAttribute("style",_e.headerBannerLogin),e.appendChild(ki(document,null,{})),e}function Kl(e,t){var n=document.createElement("button");return n.setAttribute("style",_e.headerUserMenuButton),n.onmouseover=function(){n.setAttribute("style",_e.headerUserMenuButtonHover)},n.onmouseout=function(){n.setAttribute("style",_e.headerUserMenuButton)},n.addEventListener("click",t),n.innerText=e,n}function Yl(e,t,n){var a=document.createElement("a");return a.setAttribute("style",_e.headerUserMenuLink),a.onmouseover=function(){a.setAttribute("style",_e.headerUserMenuLinkHover)},a.onmouseout=function(){a.setAttribute("style",_e.headerUserMenuLink)},a.href=t,a.innerText=e,n&&(a.target=n),a}function Xl(e,t,n){return eu.apply(this,arguments)}function eu(){return(eu=b(y().mark(function e(t,n,a){var i,r,o,s,c,l,u,p;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(i=t.fetcher)){e.next=1;break}return e.next=1,i.load(n);case 1:return(r=document.createElement("ul")).setAttribute("style",_e.headerUserMenuList),a&&a.forEach(function(e){"url"===(e.url?"url":"onclick")?r.appendChild(tu(Yl(e.label,e.url,e.target))):r.appendChild(tu(Kl(e.label,e.onclick)))}),(o=document.createElement("nav")).setAttribute("style",_e.headerUserMenuNavigationMenuNotDisplayed),o.setAttribute("aria-hidden","true"),o.setAttribute("id","loggedInNav"),o.appendChild(r),(s=document.createElement("button")).setAttribute("style",_e.headerUserMenuTrigger),s.type="button","string"==typeof(c=nu(t,n))?s.innerHTML=c:s.appendChild(c),(l=document.createElement("div")).setAttribute("style",_e.headerBannerUserMenuNotDisplayed),l.appendChild(s),l.appendChild(o),u=ql(function(e){return au(e,s,o)},50),s.addEventListener("click",u),p=setTimeout(function(){return null},0),l.addEventListener("mouseover",function(e){clearTimeout(p),u(e);var t=document.getElementById("loggedInNav");null==t||t.setAttribute("style",_e.headerUserMenuNavigationMenu)}),l.addEventListener("mouseout",function(e){p=setTimeout(function(){return u(e)},200);var t=document.getElementById("loggedInNav");null==t||t.setAttribute("style",_e.headerUserMenuNavigationMenuNotDisplayed)}),e.abrupt("return",l);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function tu(e){var t=document.createElement("li");return t.setAttribute("style",_e.headerUserMenuListItem),t.appendChild(e),t}function nu(e,t){var n=null;try{if(!(n=Tt(t)))return Pl}catch(e){return Pl}var a=document.createElement("div");return a.setAttribute("style",_e.headerUserMenuPhoto),a.style.backgroundImage="url(".concat(n,")"),a}function au(e,t,n){var a="true"===t.getAttribute("aria-expanded"),i="mouseover"===e.type,r="mouseout"===e.type;a&&i||!a&&r||(t.setAttribute("aria-expanded",(!a).toString()),n.setAttribute("aria-hidden",a.toString()))}function iu(e,t){return ru.apply(this,arguments)}function ru(){return(ru=b(y().mark(function e(t,n){var a,i,r;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=document.getElementById("PageFooter")){e.next=1;break}return e.abrupt("return");case 1:return i=Ul(),e.next=2,Ml(i,t);case 2:r=e.sent,ou(a,t,i,r,n)(),w.authSession.events.on("login",ou(a,t,i,r,n)),w.authSession.events.on("logout",ou(a,t,i,r,n));case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ou(e,t,n,a,i){return b(y().mark(function r(){var o,s;return y().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=w.authn.currentUser(),e.innerHTML="",s=e,r.next=1,su(t,o,n,a,i);case 1:s.appendChild.call(s,r.sent);case 2:case"end":return r.stop()}},r)}))}function su(e,t,n,a,i){var r=document.createElement("div");if(!n||!a||t&&t.equals(a))return r;r.setAttribute("style",_e.footer);var o=document.createElement("span");o.innerText="You're visiting ";var s=document.createElement("a");s.href=n.uri,s.innerText="the Pod";var c=document.createElement("span");c.innerText=" controlled by ";var l=document.createElement("a");l.href=a.uri,l.innerText=function(e,t){return e.anyValue(t,v.vcard("fn"),null,t.doc())||e.anyValue(t,v.foaf("name"),null,t.doc())||t.uri}(e,a);var u=document.createElement("span");u.innerText=". For more info, check out ";var p=document.createElement("a");p.href=i&&i.solidProjectUrl?i.solidProjectUrl:"https://solidproject.org",p.innerText=i&&i.solidProjectName?i.solidProjectName:"solidproject.org";var d=document.createElement("span");return d.innerText=".",r.appendChild(o),r.appendChild(s),r.appendChild(c),r.appendChild(l),r.appendChild(u),r.appendChild(p),r.appendChild(d),r}var cu=window?window.document:null;"undefined"!=typeof window&&(window.UI={ns:v,acl:$i,aclControl:Qi,create:Ki,createTypes:d,dom:cu,icons:Re.Pt,language:n,log:e,login:o,matrix:Xi,media:ar,messageArea:Er,infiniteMessageArea:fl,pad:l,participation:c,preferences:u,style:_e,table:_l,tabs:p,utils:t,widgets:s,initHeader:Gl,initFooter:iu})})(),r})());
39
39
  //# sourceMappingURL=solid-ui.min.js.map