diff --git a/asset-manifest.json b/asset-manifest.json index d4f52b3a..ebe95ab2 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,16 +1,16 @@ { "files": { "main.css": "/metadata-entry-form/static/css/main.27bb419d.css", - "main.js": "/metadata-entry-form/static/js/main.7b2d96a3.js", + "main.js": "/metadata-entry-form/static/js/main.4634a5ac.js", "static/media/emlTemplate.j2": "/metadata-entry-form/static/media/emlTemplate.c7cac6e90d63ddf2962e.j2", "static/media/spritesheet.svg": "/metadata-entry-form/static/media/spritesheet.a4e0eb7ad904a4858361.svg", "static/media/emlCoverage.j2": "/metadata-entry-form/static/media/emlCoverage.ba6b51994dacf1f20971.j2", "index.html": "/metadata-entry-form/index.html", "main.27bb419d.css.map": "/metadata-entry-form/static/css/main.27bb419d.css.map", - "main.7b2d96a3.js.map": "/metadata-entry-form/static/js/main.7b2d96a3.js.map" + "main.4634a5ac.js.map": "/metadata-entry-form/static/js/main.4634a5ac.js.map" }, "entrypoints": [ "static/css/main.27bb419d.css", - "static/js/main.7b2d96a3.js" + "static/js/main.4634a5ac.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 64224375..70efabe4 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -CIOOS Metadata intake form
\ No newline at end of file +CIOOS Metadata intake form
\ No newline at end of file diff --git a/static/js/main.7b2d96a3.js b/static/js/main.4634a5ac.js similarity index 98% rename from static/js/main.7b2d96a3.js rename to static/js/main.4634a5ac.js index 74339813..0f537528 100644 --- a/static/js/main.7b2d96a3.js +++ b/static/js/main.4634a5ac.js @@ -1,3 +1,3 @@ -/*! For license information please see main.7b2d96a3.js.LICENSE.txt */ -(()=>{var e={8660:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Cite:()=>lt,logger:()=>z,plugins:()=>v,util:()=>b,version:()=>on});var r={};n.r(r),n.d(r,{currentVersion:()=>T,retrieveLastVersion:()=>S,retrieveVersion:()=>C,save:()=>O,undo:()=>k});var i={};n.r(i),n.d(i,{defaultOptions:()=>N,options:()=>D});var o={};n.r(o),n.d(o,{dataTypeOf:()=>B,typeOf:()=>M});var a={};n.r(a),n.d(a,{applyGraph:()=>Q,removeGraph:()=>U});var s={};n.r(s),n.d(s,{DataParser:()=>ne,FormatParser:()=>re,TypeParser:()=>te});var l={};n.r(l),n.d(l,{clean:()=>he});var c={};n.r(c),n.d(c,{add:()=>Le,addDataParser:()=>Oe,addTypeParser:()=>K,chain:()=>ve,chainAsync:()=>ye,chainLink:()=>be,chainLinkAsync:()=>_e,data:()=>ke,dataAsync:()=>Se,get:()=>Re,has:()=>De,hasDataParser:()=>Ae,hasTypeParser:()=>Y,list:()=>Me,listDataParser:()=>Pe,listTypeParser:()=>J,remove:()=>Ne,removeDataParser:()=>je,removeTypeParser:()=>Z,treeTypeParser:()=>X,type:()=>$,typeMatcher:()=>ee,util:()=>Be});var u={};n.r(u),n.d(u,{add:()=>Ue,addAsync:()=>Fe,reset:()=>He,set:()=>ze,setAsync:()=>qe});var d={};n.r(d),n.d(d,{sort:()=>Ke});var p={};n.r(p),n.d(p,{async:()=>Ye,validateOptions:()=>R,validateOutputOptions:()=>L});var h={};n.r(h),n.d(h,{add:()=>Xe,format:()=>rt,has:()=>tt,list:()=>nt,register:()=>Je,remove:()=>et});var f={};n.r(f),n.d(f,{format:()=>ot,get:()=>at,getIds:()=>it});var m={};n.r(m),n.d(m,{add:()=>ut,get:()=>ft,has:()=>pt,htmlDict:()=>mt,list:()=>ht,register:()=>ct,remove:()=>dt,textDict:()=>gt});var g={};n.r(g),n.d(g,{add:()=>bt,get:()=>yt,has:()=>_t,list:()=>wt,remove:()=>xt});var v={};n.r(v),n.d(v,{add:()=>Ct,config:()=>g,dict:()=>m,has:()=>St,input:()=>c,list:()=>Ot,output:()=>h,remove:()=>kt});var b={};n.r(b),n.d(b,{Grammar:()=>zt,Register:()=>Ze,TokenStack:()=>Ft,Translator:()=>Wt,deepCopy:()=>me,fetchFile:()=>Mt,fetchFileAsync:()=>Bt,fetchId:()=>Qe,setUserAgent:()=>Qt});var y={};n.r(y),n.d(y,{parse:()=>Gt});var _={};n.r(_),n.d(_,{parse:()=>Mt,parseAsync:()=>Bt});var x={};n.r(x),n.d(x,{default:()=>$t,parse:()=>$t});var w={};n.r(w),n.d(w,{parse:()=>Kt});var E={};n.r(E),n.d(E,{parse:()=>Yt});const T=function(){return this.log.length},C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(e<=0||e>this.currentVersion())return null;{const[t,n]=this.log[e-1],r=new lt(JSON.parse(t),JSON.parse(n));return r.log=this.log.slice(0,e),r}},k=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.retrieveVersion(this.currentVersion()-e)},S=function(){return this.retrieveVersion(this.currentVersion())},O=function(){return this.log.push([JSON.stringify(this.data),JSON.stringify(this._options)]),this},A=["real","string"],j=["json","html","string","rtf"],P=["csl","bibtex","bibtxt","citation-*","ris","ndjson"],I=["string","function"];function L(e){if("object"!==typeof e)throw new TypeError("Options not an object!");const{format:t,type:n,style:r,lang:i,append:o,prepend:a}=e;if(t&&!A.includes(t))throw new TypeError('Option format ("'.concat(t,'") should be one of: ').concat(A));if(n&&!j.includes(n))throw new TypeError('Option type ("'.concat(n,'") should be one of: ').concat(j));if(r&&!P.includes(r)&&!/^citation/.test(r))throw new TypeError('Option style ("'.concat(r,'") should be one of: ').concat(P));if(i&&"string"!==typeof i)throw new TypeError("Option lang should be a string, but is a ".concat(typeof i));if(a&&!I.includes(typeof a))throw new TypeError("Option prepend should be a string or a function, but is a ".concat(typeof a));if(o&&!I.includes(typeof o))throw new TypeError("Option append should be a string or a function, but is a ".concat(typeof o));if(/^citation/.test(r)&&"json"===n)throw new Error("Combination type/style of json/citation-* is not valid: ".concat(n,"/").concat(r));return!0}function R(e){if("object"!==typeof e)throw new TypeError("Options should be an object");if(e.output)L(e.output);else{if(e.maxChainLength&&"number"!==typeof e.maxChainLength)throw new TypeError("Option maxChainLength should be a number");if(e.forceType&&"string"!==typeof e.forceType)throw new TypeError("Option forceType should be a string");if(null!=e.generateGraph&&"boolean"!==typeof e.generateGraph)throw new TypeError("Option generateGraph should be a boolean");if(null!=e.strict&&"boolean"!==typeof e.strict)throw new TypeError("Option strict should be a boolean");if(null!=e.target&&"string"!==typeof e.target)throw new TypeError("Option target should be a boolean")}return!0}const N={format:"real",type:"json",style:"csl",lang:"en-US"},D=function(e,t){return L(e),t&&this.save(),Object.assign(this._options,e),this},M=e=>{switch(e){case void 0:return"Undefined";case null:return"Null";default:return e.constructor.name}},B=e=>{switch(typeof e){case"string":return"String";case"object":if(Array.isArray(e))return"Array";if("Object"===M(e))return"SimpleObject";if("Null"!==M(e))return"ComplexObject";default:return"Primitive"}},Q=(e,t)=>{if(e._graph){const n=t.findIndex((e=>{let{type:t}=e;return"@else/list+object"===t}));-1!==n&&t.splice(n+1,0,...e._graph.slice(0,-1))}return e._graph=t,e},U=e=>(delete e._graph,e),F={_output(e,t,n){this._log.push(t,n),this._levels.indexOf(e)1?t-1:0),r=1;r{switch(t){case"Array":return 0===e.length||e.every((e=>"@csl/object"===$(e)))?"@csl/list+object":"@else/list+object";case"SimpleObject":case"ComplexObject":return"@csl/object";default:return"@invalid"}},V=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;for(const n of e)if(q[n].predicate(t))return V(q[n].extensions,t)||n},$=e=>{const t=B(e);if("Array"===t&&0===e.length)return G(e,t);return V(H[t],e)||G(e,t)},K=(e,t)=>{let{dataType:n,predicate:r,extends:i}=t,o=[];e in W&&(o=W[e],delete W[e],z.debug("[core]",'Subclasses "'.concat(o,'" finally registered to parent type "').concat(e,'"')));const a={predicate:r,extensions:o};if(q[e]=a,i){const t=q[i];t?t.extensions.push(e):(W[i]||(W[i]=[]),W[i].push(e),z.debug("[core]",'Subclass "'.concat(e,'" is waiting on parent type "').concat(i,'"')))}else{(H[n]||(H[n]=[])).push(e)}},Y=e=>Object.prototype.hasOwnProperty.call(q,e),Z=e=>{delete q[e];const t=[...Object.keys(H).map((e=>H[e])),...Object.keys(q).map((e=>q[e].extensions)).filter((e=>e.length>0))];t.forEach((t=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)}))},J=()=>Object.keys(q),X=()=>{const e=t=>({name:t,children:q[t].extensions.map(e)});return{name:"Type tree",children:Object.keys(H).map((t=>({name:t,children:H[t].map(e)})))}},ee=/^(?:@(.+?))(?:\/(?:(.+?)\+)?(?:(.+)))?$/;class te{constructor(e){var t,n,r;r=["String","Array","SimpleObject","ComplexObject","Primitive"],(n="validDataTypes")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this.data=e}validateDataType(){const e=this.data.dataType;if(e&&!this.validDataTypes.includes(e))throw new RangeError("dataType was ".concat(e,"; expected one of ").concat(this.validDataTypes))}validateParseType(){const e=this.data.predicate;if(e&&!(e instanceof RegExp||"function"===typeof e))throw new TypeError("predicate was ".concat(typeof e,"; expected RegExp or function"))}validateTokenList(){const e=this.data.tokenList;if(e&&"object"!==typeof e)throw new TypeError("tokenList was ".concat(typeof e,"; expected object or RegExp"))}validatePropertyConstraint(){const e=this.data.propertyConstraint;if(e&&"object"!==typeof e)throw new TypeError("propertyConstraint was ".concat(typeof e,"; expected array or object"))}validateElementConstraint(){const e=this.data.elementConstraint;if(e&&"string"!==typeof e)throw new TypeError("elementConstraint was ".concat(typeof e,"; expected string"))}validateExtends(){const e=this.data.extends;if(e&&"string"!==typeof e)throw new TypeError("extends was ".concat(typeof e,"; expected string"))}validate(){if(null===this.data||"object"!==typeof this.data)throw new TypeError("typeParser was ".concat(typeof this.data,"; expected object"));this.validateDataType(),this.validateParseType(),this.validateTokenList(),this.validatePropertyConstraint(),this.validateElementConstraint(),this.validateExtends()}parseTokenList(){let e=this.data.tokenList;if(!e)return[];e instanceof RegExp&&(e={token:e});const{token:t,split:n=/\s+/,trim:r=!0,every:i=!0}=e,o=i?"every":"some";return[e=>(e=>r?e.trim():e)(e).split(n)[o]((e=>t.test(e)))]}parsePropertyConstraint(){return[].concat(this.data.propertyConstraint||[]).map((e=>{let{props:t,match:n,value:r}=e;switch(t=[].concat(t),n){case"any":case"some":return e=>t.some((t=>t in e&&(!r||r(e[t]))));case"none":return e=>!t.some((t=>t in e&&(!r||r(e[t]))));default:return e=>t.every((t=>t in e&&(!r||r(e[t]))))}}))}parseElementConstraint(){const e=this.data.elementConstraint;return e?[t=>t.every((t=>$(t)===e))]:[]}parsePredicate(){return this.data.predicate instanceof RegExp?[this.data.predicate.test.bind(this.data.predicate)]:this.data.predicate?[this.data.predicate]:[]}getCombinedPredicate(){const e=[...this.parsePredicate(),...this.parseTokenList(),...this.parsePropertyConstraint(),...this.parseElementConstraint()];return 0===e.length?()=>!0:1===e.length?e[0]:t=>e.every((e=>e(t)))}getDataType(){return this.data.dataType?this.data.dataType:this.data.predicate instanceof RegExp||this.data.tokenList?"String":this.data.elementConstraint?"Array":"Primitive"}get dataType(){return this.getDataType()}get predicate(){return this.getCombinedPredicate()}get extends(){return this.data.extends}}class ne{constructor(e){let{async:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.parser=e,this.async=t}validate(){const e=this.parser;if("function"!==typeof e)throw new TypeError("parser was ".concat(typeof e,"; expected function"))}}class re{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.format=e,t.parseType&&(this.typeParser=new te(t.parseType)),t.parse&&(this.dataParser=new ne(t.parse,{async:!1})),t.parseAsync&&(this.asyncDataParser=new ne(t.parseAsync,{async:!0}))}validateFormat(){const e=this.format;if(!ee.test(e))throw new TypeError('format name was "'.concat(e,"\"; didn't match expected pattern"))}validate(){this.validateFormat(),this.typeParser&&this.typeParser.validate(),this.dataParser&&this.dataParser.validate(),this.asyncDataParser&&this.asyncDataParser.validate()}}var ie=n(6112);function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t"number"===typeof e))?e:!t||e.some((e=>isNaN(parseInt(e))))?void 0:e.map((e=>parseInt(e)))},pe=function(e,t,n){const r=[].concat(ce[e]);switch(ce[e]){case 1:return ue(t,n);case 2:return function(e,t){if(e instanceof Array){const n=e.map((e=>ue(e,t))).filter(Boolean);return n.length?n:void 0}}(t,n);case 3:return function(e,t){const n="date-parts";if("object"===typeof e&&null!==e){if(e[n]instanceof Array&&e[n].every((e=>e instanceof Array))){const r=e[n].map((e=>de(e,t))).filter(Boolean);return r.length?ae(ae({},e),{},{"date-parts":r}):void 0}if(e instanceof Array&&e.every((e=>e[n]instanceof Array))){const r=e.map((e=>de(e[n],t))).filter(Boolean);return r.length?{"date-parts":r}:void 0}if(e[n]instanceof Array){const r=de(e[n],t);return r&&{"date-parts":[r]}}return"literal"in e||"raw"in e?e:void 0}}(t,n);case 4:return function(e,t){return e=pe("language",e,t),!0===le[e]?e:t&&e in le?le[e]:void 0}(t,n)}if(/^_/.test(e))return t;if(n){if("string"===typeof t&&r.includes("number")&&!r.includes("string")&&!isNaN(+t))return parseFloat(t);if("number"===typeof t&&r.includes("string")&&!r.includes("number"))return t.toString();if(Array.isArray(t)&&t.length)return pe(e,t[0],n)}return r.includes(typeof t)?t:void 0},he=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.map((function(e){const n={};for(const r in e){const i=pe(r,e[r],t);void 0!==i&&(n[r]=i)}return n}))};function fe(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if("object"!==typeof e||null===e||e.constructor!==Object&&e.constructor!==Array)return e;if(n.has(e))throw new TypeError("Recursively copying circular structure");if(n.add(e),e.constructor===Array)t=e.map((e=>fe(e,n)));else{const r={};for(const t in e)r[t]=fe(e[t],n);t=r}return n.delete(e),t}const me=fe;class ge{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.options=Object.assign({generateGraph:!0,forceType:$(e),maxChainLength:10,strict:!0,target:"@csl/list+object"},t),this.type=this.options.forceType,this.data="object"===typeof e?me(e):e,this.graph=[{type:this.type,data:e}],this.iteration=0}iterate(){if(0!==this.iteration){const e=Re(this.type);e&&e.outputs?this.type=e.outputs:this.type=$(this.data),this.graph.push({type:this.type})}return!this.error&&this.type!==this.options.target&&(this.iteration>=this.options.maxChainLength?(this.error=new RangeError("Max. number of parsing iterations reached (".concat(this.graph.reduce(((e,t)=>{const n=e[e.length-1];return n&&n.type===t.type?n.count=n.count+1||2:e.push(t),e}),[]).map((e=>(e.count>1?e.count+"x ":"")+e.type)).join(" -> "),")")),!1):(this.iteration++,!0))}end(){if(this.error){if(z.error("[core]",this.error.message),!1!==this.options.strict)throw this.error;return[]}return"@csl/list+object"===this.options.target?this.data.map(this.options.generateGraph?e=>Q(e,this.graph):U):this.data}}const ve=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=$(e),n=t.match(/array|object/)?me(e):e;return ke(n,t)},ye=async function(){for(var e=arguments.length,t=new Array(e),n=0;n{r.error=e}));return r.end()},_e=async e=>{const t=$(e),n=t.match(/array|object/)?me(e):e;return Se(n,t)},xe=e=>[].concat(...e),we={},Ee={},Te={"@csl/object":e=>[e],"@csl/list+object":e=>e,"@else/list+object":e=>xe(e.map(ve)),"@invalid":()=>{throw new Error("This format is not supported or recognized")}},Ce={"@else/list+object":async e=>xe(await Promise.all(e.map(ye)))},ke=(e,t)=>{if("function"===typeof we[t])return we[t](e);if("function"===typeof Te[t])return Te[t](e);throw new TypeError("No synchronous parser found for ".concat(t))},Se=async(e,t)=>{if("function"===typeof Ee[t])return Ee[t](e);if("function"===typeof Ce[t])return Ce[t](e);if(Ae(t,!1))return ke(e,t);throw new TypeError("No parser found for ".concat(t))},Oe=(e,t)=>{let{parser:n,async:r}=t;r?Ee[e]=n:we[e]=n},Ae=(e,t)=>t?Ee[e]||Ce[e]:we[e]||Te[e],je=(e,t)=>{delete(t?Ee:we)[e]},Pe=e=>Object.keys(e?Ee:we),Ie={},Le=(e,t)=>{const n=new re(e,t);n.validate();const r=Ie[e]||(Ie[e]={});n.typeParser&&(K(e,n.typeParser),r.type=!0),n.dataParser&&(Oe(e,n.dataParser),r.data=!0),n.asyncDataParser&&(Oe(e,n.asyncDataParser),r.asyncData=!0),t.outputs&&(r.outputs=t.outputs)},Re=e=>Ie[e],Ne=e=>{const t=Ie[e];t&&(t.type&&Z(e),t.data&&je(e),t.asyncData&&je(e,!0),delete Ie[e])},De=e=>e in Ie,Me=()=>Object.keys(Ie),Be=Object.assign({},o,a,s,l),Qe=function(e,t){let n;for(;void 0===n||e.includes(n);)n="".concat(t).concat(Math.random().toString().slice(2));return n},Ue=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!0!==t&&!0!==(arguments.length>2&&void 0!==arguments[2]&&arguments[2])||this.save(),this.data.push(...ve(e,t)),this.data.filter((e=>!Object.prototype.hasOwnProperty.call(e,"id"))).forEach((e=>{e.id=Qe(this.getIds(),"temp_id_")})),this},Fe=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!0!==t&&!0!==(arguments.length>2&&void 0!==arguments[2]&&arguments[2])||this.save(),this.data.push(...await ye(e,t)),this.data.filter((e=>!Object.prototype.hasOwnProperty.call(e,"id"))).forEach((e=>{e.id=Qe(this.getIds(),"temp_id_")})),this},ze=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!0!==t&&!0!==(arguments.length>2&&void 0!==arguments[2]&&arguments[2])||this.save(),this.data=[],"boolean"!==typeof t?this.add(e,t):this.add(e)},qe=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!0!==t&&!0!==(arguments.length>2&&void 0!==arguments[2]&&arguments[2])||this.save(),this.data=[],"boolean"!==typeof t?this.addAsync(e,t):this.addAsync(e)},He=function(e){return e&&this.save(),this.data=[],this._options={},this},We=e=>{if("citation-label"in e)return e["citation-label"];let t="";return e.author&&(t+=e.author[0].family||e.author[0].literal),e.issued&&e.issued["date-parts"]&&e.issued["date-parts"][0]&&(t+=e.issued["date-parts"][0][0]),e["year-suffix"]?t+=e["year-suffix"]:e.title&&(t+=e.title.replace(/<\/?.*?>/g,"").match(/^(?:(?:the|a|an)\s+)?(\S+)/i)[1]),t},Ge={label:e=>e.reduce(((e,t)=>(e[t.id]=We(t),e)),{})},Ve=function(e,t){let n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label"===t)?We(e):e[t];switch(t){case"author":case"editor":return n.map((e=>e.literal||e.family||(0,ie.format)(e)));case"accessed":case"issued":return n["date-parts"][0];case"page":return n.split("-").map((e=>parseInt(e)));case"edition":case"issue":case"volume":return n=parseInt(n),isNaN(n)?-1/0:n;default:return n||-1/0}},$e=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:/^!/.test(n);n=n.replace(/^!/,"");const i=Ve(e,n),o=Ve(t,n);return(r?-1:1)*(i>o?1:i0&&void 0!==arguments[0]?arguments[0]:[];return(arguments.length>1?arguments[1]:void 0)&&this.save(),this.data.sort("function"===typeof e?e:function(){for(var e=arguments.length,t=new Array(e),n=0;n{const r=t.slice();let i=0;for(;!i&&r.length;)i=$e(e,n,r.shift());return i}}(...e,"label")),this},Ye=function(e,t,n){"function"!==typeof t||n||(n=t,t=void 0);const r=lt().setAsync(e,t);return"function"===typeof n?void r.then(n):r};const Ze=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.data=e}set(e,t){return this.data[e]=t,this}add(){return this.set(...arguments)}delete(e){return delete this.data[e],this}remove(){return this.delete(...arguments)}get(e){return this.data[e]}has(e){return Object.prototype.hasOwnProperty.call(this.data,e)}list(){return Object.keys(this.data)}},Je=new Ze,Xe=(e,t)=>{((e,t)=>{if("string"!==typeof e)throw new TypeError("Invalid output format name, expected string, got ".concat(typeof e));if("function"!==typeof t)throw new TypeError("Invalid formatter, expected function, got ".concat(typeof t))})(e,t),Je.set(e,t)},et=e=>{Je.remove(e)},tt=e=>Je.has(e),nt=()=>Je.list(),rt=function(e,t){if(!Je.has(e))throw new Error('Output format "'.concat(e,'" unavailable'));for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;ie.id))}function ot(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{};L(e);const t=Object.assign({},this.defaultOptions,this._options.output,e),{type:n,style:r}=t,[i,o]=r.split("-"),a="citation"===i?"bibliography":"csl"===i?"data":i,s="string"===n?"text":"json"===n?"object":n;let l;switch(a){case"bibliography":{const{lang:e,append:n,prepend:r}=t;l={template:o,lang:e,format:s,append:n,prepend:r};break}case"data":case"bibtex":case"bibtxt":case"ndjson":case"ris":l={type:s};break;default:throw new Error('Invalid style "'.concat(a,'"'))}const c=this.format(a,Object.assign(l,e._newOptions)),{format:u}=t;if("real"===u&&"html"===s&&"undefined"!==typeof document&&"function"===typeof document.createElement){const e=document.createElement("div");return e.innerHTML=c,e.firstChild}return"string"===u&&"object"===typeof c?JSON.stringify(c):c}function st(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this instanceof st?(this._options=t,this.log=[],this.data=[],this.set(e,t),this.options(t),this):new st(e,t)}Object.assign(st.prototype,r,i,u,d,f),st.prototype[Symbol.iterator]=function*(){yield*this.data},Object.assign(st,p);const lt=st,ct=new Ze({html:{bibliographyContainer:['
',"
"],entry:['
',"
"],list:['
    ',"
"],listItem:["
  • ","
  • "]},text:{bibliographyContainer:["","\n"],entry:["","\n"],list:["\n",""],listItem:["\t","\n"]}}),ut=(e,t)=>{((e,t)=>{if("string"!==typeof e)throw new TypeError("Invalid dict name, expected string, got ".concat(typeof e));if("object"!==typeof t)throw new TypeError("Invalid dict, expected object, got ".concat(typeof t));for(const n in t){const e=t[n];if(!Array.isArray(e)||e.some((e=>"string"!==typeof e)))throw new TypeError('Invalid dict entry "'.concat(n,'", expected array of strings'))}})(e,t),ct.set(e,t)},dt=e=>{ct.remove(e)},pt=e=>ct.has(e),ht=()=>ct.list(),ft=e=>{if(!ct.has(e))throw new Error('Dict "'.concat(e,'" unavailable'));return ct.get(e)},mt={wr_start:'
    ',wr_end:"
    ",en_start:'
    ',en_end:"
    ",ul_start:'
      ',ul_end:"
    ",li_start:"
  • ",li_end:"
  • "},gt={wr_start:"",wr_end:"\n",en_start:"",en_end:"\n",ul_start:"\n",ul_end:"",li_start:"\t",li_end:"\n"},vt={},bt=(e,t)=>{vt[e]=t},yt=e=>vt[e],_t=e=>Object.prototype.hasOwnProperty.call(vt,e),xt=e=>{delete vt[e]},wt=()=>Object.keys(vt),Et={input:c,output:h,dict:m,config:g},Tt={},Ct=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Tt[e]={};for(const r in t){if("config"===r){n.config={[e]:t.config},Et.config.add(e,t.config);continue}const i=n[r]={},o=t[r];for(const e in o){const t=o[e];i[e]=!0,Et[r].add(e,t)}}},kt=e=>{const t=Tt[e];for(const n in t){const e=t[n];for(const t in e)Et[n].remove(t)}delete Tt[e]},St=e=>e in Tt,Ot=()=>Object.keys(Tt);var At=n(5296),jt=n.n(At),Pt=(n(3256),n(6144));const It="undefined"!==typeof location&&"undefined"!==typeof document;let Lt=It?"":"Citation.js/".concat(Pt.version," Node.js/").concat(process.version);function Rt(e){const t={},n=e instanceof Headers||e instanceof jt().Headers?Array.from(e):Object.entries(e);for(const[r,i]of n)t[r.toLowerCase()]=i.toString();return t}function Nt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={headers:{accept:"*/*"},method:"GET",checkContentType:e.checkContentType};if(Lt&&!It&&(t.headers["user-agent"]=Lt),e.body){t.method="POST";const n="string"!==typeof e.body;t.body=n?JSON.stringify(e.body):e.body,t.headers["content-type"]=n?"application/json":"text/plain"}return e.headers&&Object.assign(t.headers,Rt(e.headers)),t}function Dt(e,t){const{status:n,headers:r}=e;let i;if(n>=400?i=new Error("Server responded with status code ".concat(n)):!0!==t.checkContentType||function(e,t){if(!e.accept||"*/*"===e.accept||!t["content-type"])return!0;const[n,r]=t["content-type"].split(";")[0].trim().split("/");return e.accept.split(",").map((e=>e.split(";")[0].trim().split("/"))).some((e=>{let[t,i]=e;return(t===n||"*"===t)&&(i===r||"*"===i)}))}(t.headers,Rt(r))||(i=new Error("Server responded with content-type ".concat(r.get("content-type")))),i)throw i.status=n,i.headers=r,i.body=e.body,i;return e}function Mt(e,t){const n=Nt(t);z.http("[core]",n.method,e,n);return Dt(jt()(e,n),n).text()}async function Bt(e,t){const n=Nt(t);return z.http("[core]",n.method,e,n),fetch(e,n).then((e=>Dt(e,n))).then((e=>e.text()))}function Qt(e){Lt=e}class Ut{constructor(e){this.stack=e,this.index=0,this.current=this.stack[this.index]}static getPatternText(e){return'"'.concat(e instanceof RegExp?e.source:e,'"')}static getMatchCallback(e){if(Array.isArray(e)){const t=e.map(Ut.getMatchCallback);return e=>t.some((t=>t(e)))}return e instanceof Function?e:e instanceof RegExp?t=>e.test(t):t=>e===t}tokensLeft(){return this.stack.length-this.index}matches(e){return Ut.getMatchCallback(e)(this.current,this.index,this.stack)}matchesSequence(e){const t=this.stack.slice(this.index,this.index+e.length).join("");return"string"===typeof e?t===e:e.every(((e,n)=>Ut.getMatchCallback(e)(t[n])))}consumeToken(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:/^[\s\S]$/,{inverse:t=!1,spaced:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n&&this.consumeWhitespace();const r=this.current;if(!Ut.getMatchCallback(e)(r,this.index,this.stack))throw new SyntaxError("Unexpected token at index ".concat(this.index,": Expected ").concat(Ut.getPatternText(e),', got "').concat(r,'"'));return this.current=this.stack[++this.index],n&&this.consumeWhitespace(),r}consumeWhitespace(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:/^\s$/,{optional:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.consume(e,{min:+!t})}consumeN(e){if(this.tokensLeft()0&&void 0!==arguments[0]?arguments[0]:/^[\s\S]$/,{min:t=0,max:n=1/0,inverse:r=!1,tokenMap:i,tokenFilter:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=this.index,s=Ut.getMatchCallback(e);for(;s(this.current,this.index,this.stack)!==r;)this.current=this.stack[++this.index];let l=this.stack.slice(a,this.index);if(l.lengthn)throw new SyntaxError("Too many ".concat(Ut.getPatternText(e)));return i&&(l=l.map(i)),o&&(l=l.filter(o)),l.join("")}}const Ft=Ut;class zt{constructor(e,t){this.rules=e,this.defaultState=t,this.mainRule=Object.keys(e)[0],this.log=[]}parse(e,t){return this.lexer=e,this.token=this.lexer.next(),this.state=fe(this.defaultState),this.log=[],this.consumeRule(t||this.mainRule)}matchEndOfFile(){return!this.token}matchToken(e){return this.token&&e===this.token.type}consumeToken(e,t){const n=this.token;if(!e||n&&n.type===e)return this.token=this.lexer.next(),n;if(!t){const t=n?'"'.concat(n.type,'"'):"EOF",r=new SyntaxError(this.lexer.formatError(n,'expected "'.concat(e,'", got ').concat(t)));throw r.message+=" (".concat(this.log.join("->"),")"),r}}consumeRule(e){this.log.push(e);const t=this.rules[e].call(this);return this.log.pop(),t}}function qt(e,t){let n,r,i,o;if("string"===typeof e)n=r=e;else{if(!e)return null;n=t?e.target:e.source,r=t?e.source:e.target,e.convert&&(i=t?e.convert.toSource:e.convert.toTarget),e.when&&(o=t?e.when.target:e.when.source,null!=o&&(o=function(e){return function(t){return"boolean"===typeof e?e:Object.keys(e).every((n=>{const r=e[n];return!0===r?n in t:!1===r?!(n in t):"function"===typeof r?r(t[n]):Array.isArray(r)?r.includes(t[n]):t[n]===r}))}}(o)))}return n=[].concat(n).filter(Boolean),r=[].concat(r).filter(Boolean),{inputProp:n,outputProp:r,convert:i,condition:o}}function Ht(e,t){return t=t===Wt.CONVERT_TO_SOURCE,e=e.map((e=>qt(e,t))).filter(Boolean),function(t){const n={};for(const{inputProp:i,outputProp:o,convert:a,condition:s}of e){if(0===o.length)continue;if(s&&!s(t))continue;if(0!==i.length&&i.every((e=>!(e in t))))continue;let e=i.map((e=>t[e]));if(a)try{const n=a.apply(t,e);e=1===o.length?[n]:n}catch(r){throw new Error("Failed to convert ".concat(i," to ").concat(o),{cause:r})}o.forEach(((t,r)=>{const i=e[r];void 0!==i&&(n[t]=i)}))}return n}}class Wt{constructor(e){this.convertToSource=Ht(e,Wt.CONVERT_TO_SOURCE),this.convertToTarget=Ht(e,Wt.CONVERT_TO_TARGET)}}Wt.CONVERT_TO_SOURCE=Symbol("convert to source"),Wt.CONVERT_TO_TARGET=Symbol("convert to target");const Gt=()=>[],Vt=[[/((?:\[|:|,)\s*)'((?:\\'|[^'])*?[^\\])?'(?=\s*(?:\]|}|,))/g,'$1"$2"'],[/((?:(?:"|]|}|\/[gmiuys]|\.|(?:\d|\.|-)*\d)\s*,|{)\s*)(?:"([^":\n]+?)"|'([^":\n]+?)'|([^":\n]+?))(\s*):/g,'$1"$2$3$4"$5:']],$t=function(e){if("string"!==typeof e)return JSON.parse(e);try{return JSON.parse(e)}catch(t){return z.debug("[plugin-common]","Invalid JSON, switching to experimental parser"),Vt.forEach((t=>{let[n,r]=t;e=e.replace(n,r)})),JSON.parse(e)}};function Kt(e){return e.val()||e.text()||e.html()}function Yt(e){return e.value||e.textContent}const Zt={"@empty/text":{parse:Gt,parseType:{dataType:"String",predicate:e=>""===e}},"@empty/whitespace+text":{parse:Gt,parseType:{dataType:"String",predicate:/^\s+$/}},"@empty":{parse:Gt,parseType:{dataType:"Primitive",predicate:e=>null==e}},"@else/json":{parse:$t,parseType:{dataType:"String",predicate:/^\s*(\{[\S\s]*\}|\[[\S\s]*\])\s*$/}},"@else/url":{parse:Mt,parseAsync:Bt,parseType:{dataType:"String",predicate:/^https?:\/\/(([\w-]+\.)*[\w-]+)(:\d+)?(\/[^?/]*)*(\?[^#]*)?(#.*)?$/i}},"@else/jquery":{parse:Kt,parseType:{dataType:"ComplexObject",predicate:e=>"undefined"!==typeof jQuery&&e instanceof jQuery}},"@else/html":{parse:Yt,parseType:{dataType:"ComplexObject",predicate:e=>"undefined"!==typeof HTMLElement&&e instanceof HTMLElement}}},Jt=(e,t,n)=>e+(ten(e,t))):Object.keys(e).filter((t=>JSON.stringify(e[t]))).map((n=>'"'.concat(n,'": ').concat(en(e[n],t)))),r=r.map(Jt).map((e=>t.listItem.join(e))),r=t.list.join(r.join("")),n?"[".concat(r,"]"):"{".concat(r,"}")},en=function(e,t){return"object"===typeof e&&null!==e?0===e.length?"[]":0===Object.keys(e).length?"{}":Xt(e,t):JSON.stringify(e)},tn=function(e,t){let n=e.map((e=>Xt(e,t)));return n=n.map(Jt).map((e=>t.entry.join(e))),n=n.join(""),t.bibliographyContainer.join("[".concat(n,"]"))};const nn={data(e){let{type:t,format:n=t||"text"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"object"===n?me(e):"text"===n?JSON.stringify(e,null,2):(z.warn("[core]","This feature (JSON output with special formatting) is unstable. See https://github.com/larsgw/citation.js/issues/144"),tn(e,ft(n)))},ndjson:e=>e.map((e=>JSON.stringify(e))).join("\n")},rn=Object.assign({},nn,Ge);Ct("@else",{input:Zt,output:rn});const on=Pt.version},6116:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n={_output(e,t,n){this._log.push(t,n),this._levels.indexOf(e)1?t-1:0),o=1;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;t.parse=()=>[]},8968:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e){return e.value||e.textContent}},7767:(e,t,n)=>{"use strict";t.a8=void 0;var r=c(n(2169)),i=c(n(68)),o=c(n(2956)),a=c(n(8788)),s=c(n(8968));function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}const u={empty:r,url:i,json:o,jquery:a,html:s};t.a8=u;r.parse,r.parse,r.parse,o.parse,i.parse,i.parseAsync,a.parse,s.parse},8788:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e){return e.val()||e.text()||e.html()}},2956:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.default=void 0;var r,i=(r=n(6116))&&r.__esModule?r:{default:r};const o=[[/((?:\[|:|,)\s*)'((?:\\'|[^'])*?[^\\])?'(?=\s*(?:\]|}|,))/g,'$1"$2"'],[/((?:(?:"|]|}|\/[gmiuys]|\.|(?:\d|\.|-)*\d)\s*,|{)\s*)(?:"([^":\n]+?)"|'([^":\n]+?)'|([^":\n]+?))(\s*):/g,'$1"$2$3$4"$5:']];t.default=t.parse=function(e){if("string"!==typeof e)return JSON.parse(e);try{return JSON.parse(e)}catch(t){return i.default.debug("[plugin-common]","Invalid JSON, switching to experimental parser"),o.forEach((t=>{let[n,r]=t;e=e.replace(n,r)})),JSON.parse(e)}}},68:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return r.fetchFile}}),Object.defineProperty(t,"parseAsync",{enumerable:!0,get:function(){return r.fetchFileAsync}});var r=n(4320)},6532:(e,t,n)=>{"use strict";t.c=void 0;var r=o(n(2032)),i=o(n(5796));function o(e){return e&&e.__esModule?e:{default:e}}var a=Object.assign({},r.default,i.default);t.c=a},2032:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getJsonWrapper=function(e){return p(e,i.dict.get("html"))};var r,i=l(n(7252)),o=l(n(4320)),a=(r=n(6116))&&r.__esModule?r:{default:r};function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}const c=(e,t,n)=>e+(td(e,t))):Object.keys(e).filter((t=>JSON.stringify(e[t]))).map((n=>'"'.concat(n,'": ').concat(d(e[n],t)))),r=r.map(c).map((e=>t.listItem.join(e))),r=t.list.join(r.join("")),n?"[".concat(r,"]"):"{".concat(r,"}")},d=function(e,t){return"object"===typeof e&&null!==e?0===e.length?"[]":0===Object.keys(e).length?"{}":u(e,t):JSON.stringify(e)},p=function(e,t){let n=e.map((e=>u(e,t)));return n=n.map(c).map((e=>t.entry.join(e))),n=n.join(""),t.bibliographyContainer.join("[".concat(n,"]"))};var h={data(e){let{type:t,format:n=t||"text"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"object"===n?o.deepCopy(e):"text"===n?JSON.stringify(e,null,2):(a.default.warn("[core]","This feature (JSON output with special formatting) is unstable. See https://github.com/larsgw/citation.js/issues/144"),p(e,i.dict.get(n)))},ndjson:e=>e.map((e=>JSON.stringify(e))).join("\n")};t.default=h},5796:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLabel=t.default=void 0;const n=e=>{if("citation-label"in e)return e["citation-label"];let t="";return e.author&&(t+=e.author[0].family||e.author[0].literal),e.issued&&e.issued["date-parts"]&&e.issued["date-parts"][0]&&(t+=e.issued["date-parts"][0][0]),e["year-suffix"]?t+=e["year-suffix"]:e.title&&(t+=e.title.replace(/<\/?.*?>/g,"").match(/^(?:(?:the|a|an)\s+)?(\S+)/i)[1]),t};t.getLabel=n;var r={label:e=>e.reduce(((e,t)=>(e[t.id]=n(t),e)),{})};t.default=r},1624:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.remove=t.list=t.has=t.get=t.add=void 0;const n={};t.add=(e,t)=>{n[e]=t};t.get=e=>n[e];t.has=e=>Object.prototype.hasOwnProperty.call(n,e);t.remove=e=>{delete n[e]};t.list=()=>Object.keys(n)},2040:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.textDict=t.remove=t.register=t.list=t.htmlDict=t.has=t.get=t.add=void 0;var r,i=(r=n(8060))&&r.__esModule?r:{default:r};const o=new i.default({html:{bibliographyContainer:['
    ',"
    "],entry:['
    ',"
    "],list:['
      ',"
    "],listItem:["
  • ","
  • "]},text:{bibliographyContainer:["","\n"],entry:["","\n"],list:["\n",""],listItem:["\t","\n"]}});t.register=o;t.add=(e,t)=>{((e,t)=>{if("string"!==typeof e)throw new TypeError("Invalid dict name, expected string, got ".concat(typeof e));if("object"!==typeof t)throw new TypeError("Invalid dict, expected object, got ".concat(typeof t));for(const n in t){const e=t[n];if(!Array.isArray(e)||e.some((e=>"string"!==typeof e)))throw new TypeError('Invalid dict entry "'.concat(n,'", expected array of strings'))}})(e,t),o.set(e,t)};t.remove=e=>{o.remove(e)};t.has=e=>o.has(e);t.list=()=>o.list();t.get=e=>{if(!o.has(e))throw new Error('Dict "'.concat(e,'" unavailable'));return o.get(e)};t.htmlDict={wr_start:'
    ',wr_end:"
    ",en_start:'
    ',en_end:"
    ",ul_start:'
      ',ul_end:"
    ",li_start:"
  • ",li_end:"
  • "};t.textDict={wr_start:"",wr_end:"\n",en_start:"",en_end:"\n",ul_start:"\n",ul_end:"",li_start:"\t",li_end:"\n"}},7252:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.remove=t.output=t.list=t.input=t.has=t.dict=t.config=t.add=void 0;var r=l(n(6440));t.input=r;var i=l(n(548));t.output=i;var o=l(n(2040));t.dict=o;var a=l(n(1624));function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}t.config=a;const c={input:r,output:i,dict:o,config:a},u={};t.add=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=u[e]={};for(const r in t){if("config"===r){n.config={[e]:t.config},c.config.add(e,t.config);continue}const i=n[r]={},o=t[r];for(const e in o){const t=o[e];i[e]=!0,c[r].add(e,t)}}};t.remove=e=>{const t=u[e];for(const n in t){const e=t[n];for(const t in e)c[n].remove(t)}delete u[e]};t.has=e=>e in u;t.list=()=>Object.keys(u)},3300:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chainLinkAsync=t.chainLink=t.chainAsync=t.chain=void 0;var r=c(n(1964)),i=c(n(6116)),o=n(8904),a=n(9624),s=n(9320),l=n(2704);function c(e){return e&&e.__esModule?e:{default:e}}class u{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.options=Object.assign({generateGraph:!0,forceType:(0,a.type)(e),maxChainLength:10,strict:!0,target:"@csl/list+object"},t),this.type=this.options.forceType,this.data="object"===typeof e?(0,r.default)(e):e,this.graph=[{type:this.type,data:e}],this.iteration=0}iterate(){if(0!==this.iteration){const e=(0,o.get)(this.type);e&&e.outputs?this.type=e.outputs:this.type=(0,a.type)(this.data),this.graph.push({type:this.type})}return!this.error&&this.type!==this.options.target&&(this.iteration>=this.options.maxChainLength?(this.error=new RangeError("Max. number of parsing iterations reached (".concat(this.graph.reduce(((e,t)=>{const n=e[e.length-1];return n&&n.type===t.type?n.count=n.count+1||2:e.push(t),e}),[]).map((e=>(e.count>1?e.count+"x ":"")+e.type)).join(" -> "),")")),!1):(this.iteration++,!0))}end(){if(this.error){if(i.default.error("[core]",this.error.message),!1!==this.options.strict)throw this.error;return[]}return"@csl/list+object"===this.options.target?this.data.map(this.options.generateGraph?e=>(0,l.applyGraph)(e,this.graph):l.removeGraph):this.data}}t.chain=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=(0,a.type)(e),n=t.match(/array|object/)?(0,r.default)(e):e;return(0,s.data)(n,t)};t.chainAsync=async function(){for(var e=arguments.length,t=new Array(e),n=0;n{r.error=e}));return r.end()};t.chainLinkAsync=async e=>{const t=(0,a.type)(e),n=t.match(/array|object/)?(0,r.default)(e):e;return(0,s.dataAsync)(n,t)}},5888:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clean=void 0;var r=n(6112);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t"number"===typeof e))?e:!t||e.some((e=>isNaN(parseInt(e))))?void 0:e.map((e=>parseInt(e)))},d=function(e,t,n){const r=[].concat(l[e]);switch(l[e]){case 1:return c(t,n);case 2:return function(e,t){if(e instanceof Array){const n=e.map((e=>c(e,t))).filter(Boolean);return n.length?n:void 0}}(t,n);case 3:return function(e,t){const n="date-parts";if("object"===typeof e&&null!==e){if(e[n]instanceof Array&&e[n].every((e=>e instanceof Array))){const r=e[n].map((e=>u(e,t))).filter(Boolean);return r.length?o(o({},e),{},{"date-parts":r}):void 0}if(e instanceof Array&&e.every((e=>e[n]instanceof Array))){const r=e.map((e=>u(e[n],t))).filter(Boolean);return r.length?{"date-parts":r}:void 0}if(e[n]instanceof Array){const r=u(e[n],t);return r&&{"date-parts":[r]}}return"literal"in e||"raw"in e?e:void 0}}(t,n);case 4:return function(e,t){return e=d("language",e,t),!0===s[e]?e:t&&e in s?s[e]:void 0}(t,n)}if(/^_/.test(e))return t;if(n){if("string"===typeof t&&r.includes("number")&&!r.includes("string")&&!isNaN(+t))return parseFloat(t);if("number"===typeof t&&r.includes("string")&&!r.includes("number"))return t.toString();if(Array.isArray(t)&&t.length)return d(e,t[0],n)}return r.includes(typeof t)?t:void 0};t.clean=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.map((function(e){const n={};for(const r in e){const i=d(r,e[r],t);void 0!==i&&(n[r]=i)}return n}))}},9320:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeDataParser=t.listDataParser=t.hasDataParser=t.dataAsync=t.data=t.addDataParser=void 0;var r=n(3300);const i=e=>[].concat(...e),o={},a={},s={"@csl/object":e=>[e],"@csl/list+object":e=>e,"@else/list+object":e=>i(e.map(r.chain)),"@invalid":()=>{throw new Error("This format is not supported or recognized")}},l={"@else/list+object":async e=>i(await Promise.all(e.map(r.chainAsync)))},c=(e,t)=>{if("function"===typeof o[t])return o[t](e);if("function"===typeof s[t])return s[t](e);throw new TypeError("No synchronous parser found for ".concat(t))};t.data=c;t.dataAsync=async(e,t)=>{if("function"===typeof a[t])return a[t](e);if("function"===typeof l[t])return l[t](e);if(u(t,!1))return c(e,t);throw new TypeError("No parser found for ".concat(t))};t.addDataParser=(e,t)=>{let{parser:n,async:r}=t;r?a[e]=n:o[e]=n};const u=(e,t)=>t?a[e]||l[e]:o[e]||s[e];t.hasDataParser=u;t.removeDataParser=(e,t)=>{delete(t?a:o)[e]};t.listDataParser=e=>Object.keys(e?a:o)},4040:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeOf=t.dataTypeOf=void 0;const n=e=>{switch(e){case void 0:return"Undefined";case null:return"Null";default:return e.constructor.name}};t.typeOf=n;t.dataTypeOf=e=>{switch(typeof e){case"string":return"String";case"object":if(Array.isArray(e))return"Array";if("Object"===n(e))return"SimpleObject";if("Null"!==n(e))return"ComplexObject";default:return"Primitive"}}},2704:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeGraph=t.applyGraph=void 0;t.applyGraph=(e,t)=>{if(e._graph){const n=t.findIndex((e=>{let{type:t}=e;return"@else/list+object"===t}));-1!==n&&t.splice(n+1,0,...e._graph.slice(0,-1))}return e._graph=t,e};t.removeGraph=e=>(delete e._graph,e)},6440:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={util:!0};t.util=void 0;var i=h(n(4040)),o=h(n(2704)),a=h(n(5944)),s=h(n(5888)),l=n(8904);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=n(3300);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=n(9624);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var d=n(9320);function p(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function h(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));const f=Object.assign({},i,o,a,s);t.util=f},5944:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeParser=t.FormatParser=t.DataParser=void 0;var r=n(9624);class i{constructor(e){var t,n,r;r=["String","Array","SimpleObject","ComplexObject","Primitive"],(n="validDataTypes")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this.data=e}validateDataType(){const e=this.data.dataType;if(e&&!this.validDataTypes.includes(e))throw new RangeError("dataType was ".concat(e,"; expected one of ").concat(this.validDataTypes))}validateParseType(){const e=this.data.predicate;if(e&&!(e instanceof RegExp||"function"===typeof e))throw new TypeError("predicate was ".concat(typeof e,"; expected RegExp or function"))}validateTokenList(){const e=this.data.tokenList;if(e&&"object"!==typeof e)throw new TypeError("tokenList was ".concat(typeof e,"; expected object or RegExp"))}validatePropertyConstraint(){const e=this.data.propertyConstraint;if(e&&"object"!==typeof e)throw new TypeError("propertyConstraint was ".concat(typeof e,"; expected array or object"))}validateElementConstraint(){const e=this.data.elementConstraint;if(e&&"string"!==typeof e)throw new TypeError("elementConstraint was ".concat(typeof e,"; expected string"))}validateExtends(){const e=this.data.extends;if(e&&"string"!==typeof e)throw new TypeError("extends was ".concat(typeof e,"; expected string"))}validate(){if(null===this.data||"object"!==typeof this.data)throw new TypeError("typeParser was ".concat(typeof this.data,"; expected object"));this.validateDataType(),this.validateParseType(),this.validateTokenList(),this.validatePropertyConstraint(),this.validateElementConstraint(),this.validateExtends()}parseTokenList(){let e=this.data.tokenList;if(!e)return[];e instanceof RegExp&&(e={token:e});const{token:t,split:n=/\s+/,trim:r=!0,every:i=!0}=e,o=i?"every":"some";return[e=>(e=>r?e.trim():e)(e).split(n)[o]((e=>t.test(e)))]}parsePropertyConstraint(){return[].concat(this.data.propertyConstraint||[]).map((e=>{let{props:t,match:n,value:r}=e;switch(t=[].concat(t),n){case"any":case"some":return e=>t.some((t=>t in e&&(!r||r(e[t]))));case"none":return e=>!t.some((t=>t in e&&(!r||r(e[t]))));default:return e=>t.every((t=>t in e&&(!r||r(e[t]))))}}))}parseElementConstraint(){const e=this.data.elementConstraint;return e?[t=>t.every((t=>(0,r.type)(t)===e))]:[]}parsePredicate(){return this.data.predicate instanceof RegExp?[this.data.predicate.test.bind(this.data.predicate)]:this.data.predicate?[this.data.predicate]:[]}getCombinedPredicate(){const e=[...this.parsePredicate(),...this.parseTokenList(),...this.parsePropertyConstraint(),...this.parseElementConstraint()];return 0===e.length?()=>!0:1===e.length?e[0]:t=>e.every((e=>e(t)))}getDataType(){return this.data.dataType?this.data.dataType:this.data.predicate instanceof RegExp||this.data.tokenList?"String":this.data.elementConstraint?"Array":"Primitive"}get dataType(){return this.getDataType()}get predicate(){return this.getCombinedPredicate()}get extends(){return this.data.extends}}t.TypeParser=i;class o{constructor(e){let{async:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.parser=e,this.async=t}validate(){const e=this.parser;if("function"!==typeof e)throw new TypeError("parser was ".concat(typeof e,"; expected function"))}}t.DataParser=o;t.FormatParser=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.format=e,t.parseType&&(this.typeParser=new i(t.parseType)),t.parse&&(this.dataParser=new o(t.parse,{async:!1})),t.parseAsync&&(this.asyncDataParser=new o(t.parseAsync,{async:!0}))}validateFormat(){const e=this.format;if(!r.typeMatcher.test(e))throw new TypeError('format name was "'.concat(e,"\"; didn't match expected pattern"))}validate(){this.validateFormat(),this.typeParser&&this.typeParser.validate(),this.dataParser&&this.dataParser.validate(),this.asyncDataParser&&this.asyncDataParser.validate()}}},8904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.remove=t.list=t.has=t.get=t.add=void 0;var r=n(5944),i=n(9624),o=n(9320);const a={};t.add=(e,t)=>{const n=new r.FormatParser(e,t);n.validate();const s=a[e]||(a[e]={});n.typeParser&&((0,i.addTypeParser)(e,n.typeParser),s.type=!0),n.dataParser&&((0,o.addDataParser)(e,n.dataParser),s.data=!0),n.asyncDataParser&&((0,o.addDataParser)(e,n.asyncDataParser),s.asyncData=!0),t.outputs&&(s.outputs=t.outputs)};t.get=e=>a[e];t.remove=e=>{const t=a[e];t&&(t.type&&(0,i.removeTypeParser)(e),t.data&&(0,o.removeDataParser)(e),t.asyncData&&(0,o.removeDataParser)(e,!0),delete a[e])};t.has=e=>e in a;t.list=()=>Object.keys(a)},9624:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeMatcher=t.type=t.treeTypeParser=t.removeTypeParser=t.listTypeParser=t.hasTypeParser=t.addTypeParser=void 0;var r,i=(r=n(6116))&&r.__esModule?r:{default:r},o=n(4040);const a={},s={},l={},c=(e,t)=>{switch(t){case"Array":return 0===e.length||e.every((e=>"@csl/object"===d(e)))?"@csl/list+object":"@else/list+object";case"SimpleObject":case"ComplexObject":return"@csl/object";default:return"@invalid"}},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;for(const n of e)if(a[n].predicate(t))return u(a[n].extensions,t)||n},d=e=>{const t=(0,o.dataTypeOf)(e);if("Array"===t&&0===e.length)return c(e,t);return u(s[t],e)||c(e,t)};t.type=d;t.addTypeParser=(e,t)=>{let{dataType:n,predicate:r,extends:o}=t,c=[];e in l&&(c=l[e],delete l[e],i.default.debug("[core]",'Subclasses "'.concat(c,'" finally registered to parent type "').concat(e,'"')));const u={predicate:r,extensions:c};if(a[e]=u,o){const t=a[o];t?t.extensions.push(e):(l[o]||(l[o]=[]),l[o].push(e),i.default.debug("[core]",'Subclass "'.concat(e,'" is waiting on parent type "').concat(o,'"')))}else{(s[n]||(s[n]=[])).push(e)}};t.hasTypeParser=e=>Object.prototype.hasOwnProperty.call(a,e);t.removeTypeParser=e=>{delete a[e];const t=[...Object.keys(s).map((e=>s[e])),...Object.keys(a).map((e=>a[e].extensions)).filter((e=>e.length>0))];t.forEach((t=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)}))};t.listTypeParser=()=>Object.keys(a);t.treeTypeParser=()=>{const e=t=>({name:t,children:a[t].extensions.map(e)});return{name:"Type tree",children:Object.keys(s).map((t=>({name:t,children:s[t].map(e)})))}};t.typeMatcher=/^(?:@(.+?))(?:\/(?:(.+?)\+)?(?:(.+)))?$/},548:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.remove=t.register=t.list=t.has=t.format=t.add=void 0;var r,i=(r=n(8060))&&r.__esModule?r:{default:r};const o=new i.default;t.register=o;t.add=(e,t)=>{((e,t)=>{if("string"!==typeof e)throw new TypeError("Invalid output format name, expected string, got ".concat(typeof e));if("function"!==typeof t)throw new TypeError("Invalid formatter, expected function, got ".concat(typeof t))})(e,t),o.set(e,t)};t.remove=e=>{o.remove(e)};t.has=e=>o.has(e);t.list=()=>o.list();t.format=function(e,t){if(!o.has(e))throw new Error('Output format "'.concat(e,'" unavailable'));for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i{"use strict";function n(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if("object"!==typeof e||null===e||e.constructor!==Object&&e.constructor!==Array)return e;if(r.has(e))throw new TypeError("Recursively copying circular structure");if(r.add(e),e.constructor===Array)t=e.map((e=>n(e,r)));else{const i={};for(const t in e)i[t]=n(e[t],r);t=i}return r.delete(e),t}Object.defineProperty(t,"__esModule",{value:!0}),t.deepCopy=n,t.default=void 0;var r=n;t.default=r},5992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.fetchFile=p,t.fetchFileAsync=async function(e,t){const n=u(t);return i.default.http("[core]",n.method,e,n),fetch(e,n).then((e=>d(e,n))).then((e=>e.text()))},t.setUserAgent=function(e){l=e};var r=a(n(5296));n(3256);var i=a(n(6116)),o=a(n(6144));function a(e){return e&&e.__esModule?e:{default:e}}const s="undefined"!==typeof location&&"undefined"!==typeof document;let l=s?"":"Citation.js/".concat(o.default.version," Node.js/").concat(process.version);function c(e){const t={},n=e instanceof Headers||e instanceof r.default.Headers?Array.from(e):Object.entries(e);for(const[r,i]of n)t[r.toLowerCase()]=i.toString();return t}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={headers:{accept:"*/*"},method:"GET",checkContentType:e.checkContentType};if(l&&!s&&(t.headers["user-agent"]=l),e.body){t.method="POST";const n="string"!==typeof e.body;t.body=n?JSON.stringify(e.body):e.body,t.headers["content-type"]=n?"application/json":"text/plain"}return e.headers&&Object.assign(t.headers,c(e.headers)),t}function d(e,t){const{status:n,headers:r}=e;let i;if(n>=400?i=new Error("Server responded with status code ".concat(n)):!0!==t.checkContentType||function(e,t){if(!e.accept||"*/*"===e.accept||!t["content-type"])return!0;const[n,r]=t["content-type"].split(";")[0].trim().split("/");return e.accept.split(",").map((e=>e.split(";")[0].trim().split("/"))).some((e=>{let[t,i]=e;return(t===n||"*"===t)&&(i===r||"*"===i)}))}(t.headers,c(r))||(i=new Error("Server responded with content-type ".concat(r.get("content-type")))),i)throw i.status=n,i.headers=r,i.body=e.body,i;return e}function p(e,t){const n=u(t);i.default.http("[core]",n.method,e,n);return d((0,r.default)(e,n),n).text()}var h=p;t.default=h},3420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){let n;for(;void 0===n||e.includes(n);)n="".concat(t).concat(Math.random().toString().slice(2));return n};t.default=n},8704:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Grammar=void 0;var r=n(1964);t.Grammar=class{constructor(e,t){this.rules=e,this.defaultState=t,this.mainRule=Object.keys(e)[0],this.log=[]}parse(e,t){return this.lexer=e,this.token=this.lexer.next(),this.state=(0,r.deepCopy)(this.defaultState),this.log=[],this.consumeRule(t||this.mainRule)}matchEndOfFile(){return!this.token}matchToken(e){return this.token&&e===this.token.type}consumeToken(e,t){const n=this.token;if(!e||n&&n.type===e)return this.token=this.lexer.next(),n;if(!t){const t=n?'"'.concat(n.type,'"'):"EOF",r=new SyntaxError(this.lexer.formatError(n,'expected "'.concat(e,'", got ').concat(t)));throw r.message+=" (".concat(this.log.join("->"),")"),r}}consumeRule(e){this.log.push(e);const t=this.rules[e].call(this);return this.log.pop(),t}}},4320:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Grammar",{enumerable:!0,get:function(){return l.Grammar}}),Object.defineProperty(t,"Register",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"TokenStack",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Translator",{enumerable:!0,get:function(){return c.Translator}}),Object.defineProperty(t,"deepCopy",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"fetchFile",{enumerable:!0,get:function(){return i.fetchFile}}),Object.defineProperty(t,"fetchFileAsync",{enumerable:!0,get:function(){return i.fetchFileAsync}}),Object.defineProperty(t,"fetchId",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"setUserAgent",{enumerable:!0,get:function(){return i.setUserAgent}});var r=u(n(1964)),i=n(5992),o=u(n(3420)),a=u(n(3701)),s=u(n(8060)),l=n(8704),c=n(8444);function u(e){return e&&e.__esModule?e:{default:e}}},8060:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.data=e}set(e,t){return this.data[e]=t,this}add(){return this.set(...arguments)}delete(e){return delete this.data[e],this}remove(){return this.delete(...arguments)}get(e){return this.data[e]}has(e){return Object.prototype.hasOwnProperty.call(this.data,e)}list(){return Object.keys(this.data)}};t.default=n},3701:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class n{constructor(e){this.stack=e,this.index=0,this.current=this.stack[this.index]}static getPatternText(e){return'"'.concat(e instanceof RegExp?e.source:e,'"')}static getMatchCallback(e){if(Array.isArray(e)){const t=e.map(n.getMatchCallback);return e=>t.some((t=>t(e)))}return e instanceof Function?e:e instanceof RegExp?t=>e.test(t):t=>e===t}tokensLeft(){return this.stack.length-this.index}matches(e){return n.getMatchCallback(e)(this.current,this.index,this.stack)}matchesSequence(e){const t=this.stack.slice(this.index,this.index+e.length).join("");return"string"===typeof e?t===e:e.every(((e,r)=>n.getMatchCallback(e)(t[r])))}consumeToken(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:/^[\s\S]$/,{inverse:t=!1,spaced:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r&&this.consumeWhitespace();const i=this.current;if(!n.getMatchCallback(e)(i,this.index,this.stack))throw new SyntaxError("Unexpected token at index ".concat(this.index,": Expected ").concat(n.getPatternText(e),', got "').concat(i,'"'));return this.current=this.stack[++this.index],r&&this.consumeWhitespace(),i}consumeWhitespace(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:/^\s$/,{optional:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.consume(e,{min:+!t})}consumeN(e){if(this.tokensLeft()0&&void 0!==arguments[0]?arguments[0]:/^[\s\S]$/,{min:t=0,max:r=1/0,inverse:i=!1,tokenMap:o,tokenFilter:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=this.index,l=n.getMatchCallback(e);for(;l(this.current,this.index,this.stack)!==i;)this.current=this.stack[++this.index];let c=this.stack.slice(s,this.index);if(c.lengthr)throw new SyntaxError("Too many ".concat(n.getPatternText(e)));return o&&(c=c.map(o)),a&&(c=c.filter(a)),c.join("")}}var r=n;t.default=r},8444:(e,t)=>{"use strict";function n(e,t){let n,r,i,o;if("string"===typeof e)n=r=e;else{if(!e)return null;n=t?e.target:e.source,r=t?e.source:e.target,e.convert&&(i=t?e.convert.toSource:e.convert.toTarget),e.when&&(o=t?e.when.target:e.when.source,null!=o&&(o=function(e){return function(t){return"boolean"===typeof e?e:Object.keys(e).every((n=>{const r=e[n];return!0===r?n in t:!1===r?!(n in t):"function"===typeof r?r(t[n]):Array.isArray(r)?r.includes(t[n]):t[n]===r}))}}(o)))}return n=[].concat(n).filter(Boolean),r=[].concat(r).filter(Boolean),{inputProp:n,outputProp:r,convert:i,condition:o}}function r(e,t){return t=t===i.CONVERT_TO_SOURCE,e=e.map((e=>n(e,t))).filter(Boolean),function(t){const n={};for(const{inputProp:i,outputProp:o,convert:a,condition:s}of e){if(0===o.length)continue;if(s&&!s(t))continue;if(0!==i.length&&i.every((e=>!(e in t))))continue;let e=i.map((e=>t[e]));if(a)try{const n=a.apply(t,e);e=1===o.length?[n]:n}catch(r){throw new Error("Failed to convert ".concat(i," to ").concat(o),{cause:r})}o.forEach(((t,r)=>{const i=e[r];void 0!==i&&(n[t]=i)}))}return n}}Object.defineProperty(t,"__esModule",{value:!0}),t.Translator=void 0;class i{constructor(e){this.convertToSource=r(e,i.CONVERT_TO_SOURCE),this.convertToTarget=r(e,i.CONVERT_TO_TARGET)}}t.Translator=i,i.CONVERT_TO_SOURCE=Symbol("convert to source"),i.CONVERT_TO_TARGET=Symbol("convert to target")},6112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"format",{enumerable:!0,get:function(){return i.default}});var r=o(n(4504)),i=o(n(7320));function o(e){return e&&e.__esModule?e:{default:e}}},4504:(e,t)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.parse=t.types=t.scope=void 0;const r=e=>e.replace(/$|( )|(?!^)(?=[A-Z])/g,"\\.?$1"),i=e=>"(?:".concat(e.join("|"),")\\b"),o=(e,t)=>new RegExp("(?:^| )(".concat(e,"$)"),t),a=i(["mr","mrs","ms","miss","dr","herr","monsieur","hr","frau","a v m","admiraal","admiral","air cdre","air commodore","air marshal","air vice marshal","alderman","alhaji","ambassador","baron","barones","brig","brig gen","brig general","brigadier","brigadier general","brother","canon","capt","captain","cardinal","cdr","chief","cik","cmdr","coach","col","col dr","colonel","commandant","commander","commissioner","commodore","comte","comtessa","congressman","conseiller","consul","conte","contessa","corporal","councillor","count","countess","crown prince","crown princess","dame","datin","dato","datuk","datuk seri","deacon","deaconess","dean","dhr","dipl ing","doctor","dott","dott sa","dr","dr ing","dra","drs","embajador","embajadora","en","encik","eng","eur ing","exma sra","exmo sr","f o","father","first lieutient","first officer","flt lieut","flying officer","fr","frau","fraulein","fru","gen","generaal","general","governor","graaf","gravin","group captain","grp capt","h e dr","h h","h m","h r h","hajah","haji","hajim","her highness","her majesty","herr","high chief","his highness","his holiness","his majesty","hon","hr","hra","ing","ir","jonkheer","judge","justice","khun ying","kolonel","lady","lcda","lic","lieut","lieut cdr","lieut col","lieut gen","lord","m","m l","m r","madame","mademoiselle","maj gen","major","master","mevrouw","miss","mlle","mme","monsieur","monsignor","mr","mrs","ms","mstr","nti","pastor","president","prince","princess","princesse","prinses","prof","prof dr","prof sir","professor","puan","puan sri","rabbi","rear admiral","rev","rev canon","rev dr","rev mother","reverend","rva","senator","sergeant","sheikh","sheikha","sig","sig na","sig ra","sir","sister","sqn ldr","sr","sr d","sra","srta","sultan","tan sri","tan sri dato","tengku","teuku","than puying","the hon dr","the hon justice","the hon miss","the hon mr","the hon mrs","the hon ms","the hon sir","the very rev","toh puan","tun","vice admiral","viscount","viscountess","wg cdr"].map(r)),s=i(["I","II","III","IV","V","Senior","Junior","Jr","Sr","PhD","Ph\\.D","APR","RPh","PE","MD","MA","DMD","CME","BVM","CFRE","CLU","CPA","CSC","CSJ","DC","DD","DDS","DO","DVM","EdD","Esq","JD","LLD","OD","OSB","PC","Ret","RGS","RN","RNC","SHCJ","SJ","SNJM","SSMO","USA","USAF","USAFR","USAR","USCG","USMC","USMCR","USN","USNR"].map(r)),l=i(["Vere","Von","Van","De","Del","Della","Di","Da","Pietro","Vanden","Du","St.","St","La","Lo","Ter","O","O'","Mac","Fitz"]),c=new RegExp("^((?:".concat(a," )*)(.*)$"),"i"),u=o("(?:".concat(s,", )*(?:").concat(s,")"),"i"),d=o("".concat(/(?:[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1C90-\u1CBA\u1CBD-\u1CBF\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u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\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AE\uA7B0-\uA7B4\uA7B6\uA7B8\uFF21-\uFF3A]|\uD801[\uDC00-\uDC27\uDCB0-\uDCD3]|\uD803[\uDC80-\uDCB2]|\uD806[\uDCA0-\uDCBF]|\uD81B[\uDE40-\uDE5F]|\uD835[\uDC00-\uDC19\uDC34-\uDC4D\uDC68-\uDC81\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB5\uDCD0-\uDCE9\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD38\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD6C-\uDD85\uDDA0-\uDDB9\uDDD4-\uDDED\uDE08-\uDE21\uDE3C-\uDE55\uDE70-\uDE89\uDEA8-\uDEC0\uDEE2-\uDEFA\uDF1C-\uDF34\uDF56-\uDF6E\uDF90-\uDFA8\uDFCA]|\uD83A[\uDD00-\uDD21]|\uD83C[\uDD30-\uDD49\uDD50-\uDD69\uDD70-\uDD89])/.source,".*")),p=o("(?:".concat(/(?:[a-z\xAA\xB5\xBA\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02B8\u02C0\u02C1\u02E0-\u02E4\u0345\u0371\u0373\u0377\u037A-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0560-\u0588\u10D0-\u10FA\u10FD-\u10FF\u13F8-\u13FD\u1C80-\u1C88\u1D00-\u1DBF\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u2071\u207F\u2090-\u209C\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2170-\u217F\u2184\u24D0-\u24E9\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7D\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B-\uA69D\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7AF\uA7B5\uA7B7\uA7B9\uA7F8-\uA7FA\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]|\uD801[\uDC28-\uDC4F\uDCD8-\uDCFB]|\uD803[\uDCC0-\uDCF2]|\uD806[\uDCC0-\uDCDF]|\uD81B[\uDE60-\uDE7F]|\uD835[\uDC1A-\uDC33\uDC4E-\uDC54\uDC56-\uDC67\uDC82-\uDC9B\uDCB6-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDCEA-\uDD03\uDD1E-\uDD37\uDD52-\uDD6B\uDD86-\uDD9F\uDDBA-\uDDD3\uDDEE-\uDE07\uDE22-\uDE3B\uDE56-\uDE6F\uDE8A-\uDEA5\uDEC2-\uDEDA\uDEDC-\uDEE1\uDEFC-\uDF14\uDF16-\uDF1B\uDF36-\uDF4E\uDF50-\uDF55\uDF70-\uDF88\uDF8A-\uDF8F\uDFAA-\uDFC2\uDFC4-\uDFC9\uDFCB]|\uD83A[\uDD22-\uDD43])/.source,".*|").concat(l,".*|\\S*)"));t.default=t.parse=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";"string"!==typeof e&&(e+="");let t="",r="",i="";if(/[^.], /.test(e)){const n=e.split(", ");i=n.shift();const o=RegExp(s).exec(n.join(", "));t=n.splice(o&&0!==o.index?0:-1,1)[0],r=n.join(", ")}else{const n=e.split(u,2),o=n.shift().split(p,2);t=o[0],i=o[1],r=n.pop()}const o=n(t.match(c),3),a=o[1],l=o[2],h=r,f=n(i.split(d,2).reverse(),2),m=f[0],g=f[1];if(!l&&m)return m.includes(" ")?{literal:m}:{family:m};if(m){const e={"dropping-particle":a,given:l,suffix:h,"non-dropping-particle":g,family:m};return Object.keys(e).forEach((t=>{e[t]||delete e[t]})),e}return{literal:e}};t.scope="@name";t.types="@name"},7320:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=["dropping-particle","given"],r=["suffix"],i=["non-dropping-particle","family"];var o=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=t=>t.map((t=>e[t]||"")).filter(Boolean).join(" ");if(e.literal)return e.literal;if(t){const e=o(r)?", ".concat(o(r)):"",t=o(n)?", ".concat(o(n)):"";return o(i)+e+t}return"".concat(o([...n,...r,...i]))};t.default=o},5408:(e,t,n)=>{"use strict";n.r(t),n.d(t,{formats:()=>b,parsers:()=>v,ref:()=>g});var r={};n.r(r),n.d(r,{quickscrapeRecord:()=>p,record:()=>h});var i=n(2268),o=n(6112);function a(e){const{firstname:t,lastname:n,firstName:r=t,lastName:i=n}=e;return r&&i?{given:r,family:i}:e.name?(0,o.parse)(e.name):void 0}const s=["PMID","PMCID","DOI","ISBN"],l=["ISSN"];function c(e,t){const n={};for(const r in e){const i=r.toUpperCase();t.includes(i)&&(n[i]=e[r])}if(e.identifier)for(let{id:r,type:i=""}of e.identifier)i=i.toUpperCase(),t.includes(i)&&(n[i]=r);return n}const u={article:"article",book:"book",booklet:"book",proceedings:"book",mastersthesis:"thesis",inbook:"chapter",incollection:"chapter",conference:"paper-conference",inproceedings:"paper-conference",online:"website",patent:"patent",phdthesis:"thesis",techreport:"report",unpublished:"manuscript",manual:void 0,misc:void 0};function d(e){const t={type:u[e.type]||"book"};if(e.title&&(t.title=e.title),e.author&&(t.author=e.author.map(a).filter(Boolean)),e.editor&&(t.editor=e.editor.map(a).filter(Boolean)),e.reviewer&&(e.author&&(t["reviewed-author"]=t.author),t.author=e.reviewer.map(a).filter(Boolean)),Array.isArray(e.keywords)?t.keyword=e.keywords.join():e.keywords&&(t.keyword=e.keywords),e.publisher&&(t.publisher=e.publisher.name||e.publisher),e.date&&Object.keys(e.date).length>0){const n=e.date;n.submitted&&(t.submitted=(0,i.K0)(n.submitted)),n.published&&(t.issued=(0,i.K0)(n.published))}else e.year&&(t.issued={"date-parts":[[+e.year]]});if(e.journal){const n=e.journal;n.name&&(t["container-title"]=n.name),n.volume&&(t.volume=+n.volume),n.issue&&(t.issue=+n.issue),Object.assign(t,c(n,l)),n.firstpage&&(t["page-first"]=n.firstpage),n.pages?t.page=n.pages.replace("--","-"):n.firstpage&&n.lastpage&&(t.page=n.firstpage+"-"+n.lastpage)}return e.link&&"object"===typeof e.link[0]&&(t.URL=e.link[0].url),Object.assign(t,c(e,s)),e.cid?t.id=e.cid:t.DOI&&(t.id=t.DOI),t}const p=function(e){return Object.assign(d(e),{type:"article-journal"})},h=function(e){return d(e)};var f=n(8660);const m=["fulltext_html","fulltext_xml","fulltext_pdf"],g="@bibjson",v={json:r},b={"@bibjson/quickscrape+record+object":{parse:p,parseType:{propertyConstraint:{props:"link",value:e=>m.some((t=>e.find((e=>{let{type:n}=e;return n===t}))))},extends:"@bibjson/record+object"}},"@bibjson/record+object":{parse:h,parseType:{dataType:"SimpleObject",propertyConstraint:[{props:"title"},{props:["author","editor"],match:"some",value:e=>Array.isArray(e)&&e[0]&&"name"in e[0]}]}},"@bibjson/collection+object":{parse:e=>e.records,parseType:{dataType:"SimpleObject",propertyConstraint:[{props:"metadata",value:e=>"collection"in e},{props:"records",value:e=>Array.isArray(e)}]}}};f.plugins.add(g,{input:b})},2268:(e,t,n)=>{"use strict";Object.defineProperty(t,"K0",{enumerable:!0,get:function(){return r.default}});var r=o(n(9724)),i=o(n(3520));function o(e){return e&&e.__esModule?e:{default:e}}},9724:(e,t)=>{"use strict";function n(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)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(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.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n+e<0)))return null;r=+n[0]<0||+n[0]>+n[1]&&+n[1]>0?n.pop():n.shift()}return[n.pop(),r]}return null}(e)||function(e){if("string"!==typeof e)return null;const t=e.match(/^(\d+) ?(a\.?d\.?|b\.?c\.?)$/i);if(t){const e=n(t.slice(1),2);return[e[0]*("a"===e[1].toLowerCase()[0]?1:-1)]}return/^-?\d+$/.test(e)?[e]:null}(e);return t&&t.map((e=>parseInt(e)))}var d=function(e,t){const n=[],r="string"===typeof e&&function(e){return a.test(e)?e.match(a).slice(1,3):e.split(o)}(e);t?n.push(e,t):r&&2===r.length?n.push(...r):n.push(e);const i=n.map(u);return i.filter(Boolean).length===n.length?{"date-parts":i}:{raw:t?n.join("/"):e}};t.default=d},3520:(e,t)=>{"use strict";function n(e,t,n){if(e.length>=t)return e;for(;e.length1&&void 0!==arguments[1]?arguments[1]:"-";if(!e["date-parts"])return e.raw;const r=e["date-parts"][0].map((e=>e.toString()));switch(r.length){case 3:r[2]=n(r[2],2,"0");case 2:r[1]=n(r[1],2,"0");case 1:r[0]=n(r[0],4,"0")}return r.join(t)};t.default=r},3304:(e,t,n)=>{"use strict";n.r(t);var r={};n.r(r),n.d(r,{argumentCommands:()=>b,commands:()=>h,defaultStrings:()=>f,diacritics:()=>p,fieldTypes:()=>d,formatting:()=>v,formattingCommands:()=>g,formattingEnvs:()=>m,ligaturePattern:()=>y,ligatures:()=>_,mathScriptFormatting:()=>x,mathScripts:()=>w,required:()=>u,sentenceCaseLanguages:()=>E});var i=n(8660),o=n(3240),a=n.n(o);const s=JSON.parse('{"biblatex":{"article":["author","title","journaltitle",["year","date"]],"book":["author","title",["year","date"]],"mvbook":["author","title",["year","date"]],"inbook":["author","title","booktitle",["year","date"]],"booklet":[["author","editor"],"title",["year","date"]],"collection":["editor","title",["year","date"]],"mvcollection":["editor","title",["year","date"]],"incollection":["author","title","booktitle",["year","date"]],"dataset":[["author","editor"],"title",["year","date"]],"online":[["author","editor"],"title",["year","date"],["doi","eprint","url"]],"patent":["author","title","number",["year","date"]],"periodical":["editor","title",["year","date"]],"proceedings":["title",["year","date"]],"mvproceedings":["title",["year","date"]],"inproceedings":["author","title","booktitle",["year","date"]],"report":["author","title","type","institution",["year","date"]],"thesis":["author","title","type","institution",["year","date"]],"unpublished":["author","title",["year","date"]],"conference":["author","title","booktitle",["year","date"]],"electronic":[["author","editor"],"title",["year","date"],["doi","eprint","url"]],"mastersthesis":["author","title","institution",["year","date"]],"phdthesis":["author","title","institution",["year","date"]],"techreport":["author","title","institution",["year","date"]],"www":[["author","editor"],"title",["year","date"],["doi","eprint","url"]]},"bibtex":{"article":["author","title","journal","year"],"book":[["author","editor"],"title","publisher","year"],"booklet":["title"],"inbook":[["author","editor"],"title",["chapter","pages"],"publisher","year"],"incollection":["author","title","booktitle","publisher","year"],"inproceedings":["author","title","booktitle","year"],"mastersthesis":["author","title","school","year"],"phdthesis":["author","title","school","year"],"proceedings":["title","year"],"techreport":["author","title","institution","year"],"unpublished":["author","title","note"]}}'),l=JSON.parse('{"abstract":["field","literal"],"addendum":["field","literal"],"afterword":["list","name"],"annotation":["field","literal"],"annotator":["list","name"],"author":["list","name"],"authortype":["field","key"],"bookauthor":["list","name"],"bookpagination":["field","key"],"booksubtitle":["field","literal"],"booktitle":["field","title"],"booktitleaddon":["field","literal"],"chapter":["field","literal"],"commentator":["list","name"],"date":["field","date"],"doi":["field","verbatim"],"edition":["field","literal"],"editor":["list","name"],"editora":["list","name"],"editorb":["list","name"],"editorc":["list","name"],"editortype":["field","key"],"editoratype":["field","key"],"editorbtype":["field","key"],"editorctype":["field","key"],"eid":["field","literal"],"entrysubtype":["field","literal"],"eprint":["field","verbatim"],"eprintclass":["field","literal"],"eprinttype":["field","literal"],"eventdate":["field","date"],"eventtitle":["field","title"],"eventtitleaddon":["field","literal"],"file":["field","verbatim"],"foreword":["list","name"],"holder":["list","name"],"howpublished":["field","literal"],"indextitle":["field","literal"],"institution":["list","literal"],"introduction":["list","name"],"isan":["field","literal"],"isbn":["field","literal"],"ismn":["field","literal"],"isrn":["field","literal"],"issn":["field","literal"],"issue":["field","literal"],"issuesubtitle":["field","literal"],"issuetitle":["field","literal"],"iswc":["field","literal"],"journalsubtitle":["field","literal"],"journaltitle":["field","literal"],"label":["field","literal"],"language":["list","key"],"library":["field","literal"],"location":["list","literal"],"mainsubtitle":["field","literal"],"maintitle":["field","title"],"maintitleaddon":["field","literal"],"month":["field","literal"],"nameaddon":["field","literal"],"note":["field","literal"],"number":["field","literal"],"organization":["list","literal"],"origdate":["field","date"],"origlanguage":["list","key"],"origlocation":["list","literal"],"origpublisher":["list","literal"],"origtitle":["field","title"],"pages":["field","range"],"pagetotal":["field","literal"],"pagination":["field","key"],"part":["field","literal"],"publisher":["list","literal"],"pubstate":["field","key"],"reprinttitle":["field","literal"],"series":["field","title"],"shortauthor":["list","name"],"shorteditor":["list","name"],"shorthand":["field","literal"],"shorthandintro":["field","literal"],"shortjournal":["field","literal"],"shortseries":["field","literal"],"shorttitle":["field","title"],"subtitle":["field","literal"],"title":["field","title"],"titleaddon":["field","literal"],"translator":["list","name"],"type":["field","title"],"url":["field","uri"],"urldate":["field","date"],"venue":["field","literal"],"version":["field","literal"],"volume":["field","integer"],"volumes":["field","integer"],"year":["field","literal"],"crossref":["field","entry key"],"entryset":["separated","literal"],"execute":["field","code"],"gender":["field","gender"],"langid":["field","identifier"],"langidopts":["field","literal"],"ids":["separated","entry key"],"indexsorttitle":["field","literal"],"keywords":["separated","literal"],"options":["separated","options"],"presort":["field","string"],"related":["separated","literal"],"relatedoptions":["separated","literal"],"relatedtype":["field","identifier"],"relatedstring":["field","literal"],"sortkey":["field","literal"],"sortname":["list","name"],"sortshorthand":["field","literal"],"sorttitle":["field","literal"],"sortyear":["field","integer"],"xdata":["separated","entry key"],"xref":["field","entry key"],"namea":["list","name"],"nameb":["list","name"],"namec":["list","name"],"nameatype":["field","key"],"namebtype":["field","key"],"namectype":["field","key"],"lista":["list","literal"],"listb":["list","literal"],"listc":["list","literal"],"listd":["list","literal"],"liste":["list","literal"],"listf":["list","literal"],"usera":["field","literal"],"userb":["field","literal"],"userc":["field","literal"],"userd":["field","literal"],"usere":["field","literal"],"userf":["field","literal"],"verba":["field","literal"],"verbb":["field","literal"],"verbc":["field","literal"],"address":["list","literal"],"annote":["field","literal"],"archiveprefix":["field","literal"],"journal":["field","literal"],"key":["field","literal"],"pdf":["field","verbatim"],"primaryclass":["field","literal"],"school":["list","literal"],"numpages":["field","integer"],"pmid":["field","literal"],"pmcid":["field","literal"]}'),c=JSON.parse('{"a":{"`":"\u0300","\'":"\u0301","^":"\u0302","~":"\u0303","=":"\u0304","u":"\u0306",".":"\u0307","\\"":"\u0308","r":"\u030a","H":"\u030b","v":"\u030c","b":"\u0332","d":"\u0323","c":"\u0327","k":"\u0328","t":"\u0361","textcommabelow":"\u0326"},"Y":{"textquotesingle":"\'","textasciigrave":"`","textquotedbl":"\\"","textdollar":"$","textless":"<","textgreater":">","textbackslash":"\\\\","textasciicircum":"^","textunderscore":"_","textbraceleft":"{","textbar":"|","textbraceright":"}","textasciitilde":"~","textexclamdown":"\xa1","textcent":"\xa2","textsterling":"\xa3","textcurrency":"\xa4","textyen":"\xa5","textbrokenbar":"\xa6","textsection":"\xa7","textasciidieresis":"\xa8","textcopyright":"\xa9","textordfeminine":"\xaa","guillemetleft":"\xab","guillemotleft":"\xab","textlnot":"\xac","textregistered":"\xae","textasciimacron":"\xaf","textdegree":"\xb0","textpm":"\xb1","texttwosuperior":"\xb2","textthreesuperior":"\xb3","textasciiacute":"\xb4","textmu":"\xb5","textparagraph":"\xb6","textperiodcentered":"\xb7","textonesuperior":"\xb9","textordmasculine":"\xba","guillemetright":"\xbb","guillemotright":"\xbb","textonequarter":"\xbc","textonehalf":"\xbd","textthreequarters":"\xbe","textquestiondown":"\xbf","AE":"\xc6","DH":"\xd0","texttimes":"\xd7","O":"\xd8","TH":"\xde","ss":"\xdf","ae":"\xe6","dh":"\xf0","textdiv":"\xf7","o":"\xf8","th":"\xfe","DJ":"\u0110","dj":"\u0111","i":"\u0131","IJ":"\u0132","ij":"\u0133","L":"\u0141","l":"\u0142","NG":"\u014a","ng":"\u014b","OE":"\u0152","oe":"\u0153","textflorin":"\u0192","j":"\u0237","textasciicaron":"\u02c7","textasciibreve":"\u02d8","textacutedbl":"\u02dd","textgravedbl":"\u02f5","texttildelow":"\u02f7","textbaht":"\u0e3f","SS":"\u1e9e","textcompwordmark":"\u200c","textendash":"\u2013","textemdash":"\u2014","textbardbl":"\u2016","textquoteleft":"\u2018","textquoteright":"\u2019","quotesinglbase":"\u201a","textquotedblleft":"\u201c","textquotedblright":"\u201d","quotedblbase":"\u201e","textdagger":"\u2020","textdaggerdbl":"\u2021","textbullet":"\u2022","textellipsis":"\u2026","textperthousand":"\u2030","textpertenthousand":"\u2031","guilsinglleft":"\u2039","guilsinglright":"\u203a","textreferencemark":"\u203b","textinterrobang":"\u203d","textfractionsolidus":"\u2044","textlquill":"\u2045","textrquill":"\u2046","textdiscount":"\u2052","textcolonmonetary":"\u20a1","textlira":"\u20a4","textnaira":"\u20a6","textwon":"\u20a9","textdong":"\u20ab","texteuro":"\u20ac","textpeso":"\u20b1","textcelsius":"\u2103","textnumero":"\u2116","textcircledP":"\u2117","textrecipe":"\u211e","textservicemark":"\u2120","texttrademark":"\u2122","textohm":"\u2126","textmho":"\u2127","textestimated":"\u212e","textleftarrow":"\u2190","textuparrow":"\u2191","textrightarrow":"\u2192","textdownarrow":"\u2193","textminus":"\u2212","Hwithstroke":"\u0126","hwithstroke":"\u0127","textasteriskcentered":"\u2217","textsurd":"\u221a","textlangle":"\u2329","textrangle":"\u232a","textblank":"\u2422","textvisiblespace":"\u2423","textopenbullet":"\u25e6","textbigcircle":"\u25ef","textmusicalnote":"\u266a","textmarried":"\u26ad","textdivorced":"\u26ae","textinterrobangdown":"\u2e18","textcommabelow":null,"copyright":"\xa9","Gamma":"\u0393","Delta":"\u0394","Theta":"\u0398","Lambda":"\u039b","Xi":"\u039e","Pi":"\u03a0","Sigma":"\u03a3","Phi":"\u03a6","Psi":"\u03a8","Omega":"\u03a9","alpha":"\u03b1","beta":"\u03b2","gamma":"\u03b3","delta":"\u03b4","varepsilon":"\u03b5","zeta":"\u03b6","eta":"\u03b7","theta":"\u03b8","iota":"\u03b9","kappa":"\u03ba","lambda":"\u03bb","mu":"\u03bc","nu":"\u03bd","xi":"\u03be","pi":"\u03c0","rho":"\u03c1","varsigma":"\u03c2","sigma":"\u03c3","tau":"\u03c4","upsilon":"\u03c5","varphi":"\u03c6","chi":"\u03c7","psi":"\u03c8","omega":"\u03c9","vartheta":"\u03d1","Upsilon":"\u03d2","phi":"\u03d5","varpi":"\u03d6","varrho":"\u03f1","epsilon":"\u03f5"}}'),u=s,d=l,p=c.a,h=c.Y,f={jan:"01",feb:"02",mar:"03",apr:"04",may:"05",jun:"06",jul:"07",aug:"08",sep:"09",oct:"10",nov:"11",dec:"12",acmcs:"ACM Computing Surveys",acta:"Acta Informatica",cacm:"Communications of the ACM",ibmjrd:"IBM Journal of Research and Development",ibmsj:"IBM Systems Journal",ieeese:"IEEE Transactions on Software Engineering",ieeetc:"IEEE Transactions on Computers",ieeetcad:"IEEE Transactions on Computer-Aided Design of Integrated Circuits",ipl:"Information Processing Letters",jacm:"Journal of the ACM",jcss:"Journal of Computer and System Sciences",scp:"Science of Computer Programming",sicomp:"SIAM Journal on Computing",tocs:"ACM Transactions on Computer Systems",tods:"ACM Transactions on Database Systems",tog:"ACM Transactions on Graphics",toms:"ACM Transactions on Mathematical Software",toois:"ACM Transactions on Office Information Systems",toplas:"ACM Transactions on Programming Languages and Systems",tcs:"Theoretical Computer Science"},m={it:"italics",itshape:"italics",sl:"italics",slshape:"italics",em:"italics",bf:"bold",bfseries:"bold",sc:"smallcaps",scshape:"smallcaps",rm:void 0,sf:void 0,tt:void 0},g={textit:"italics",textsl:"italics",emph:"italics",mkbibitalic:"italics",mkbibemph:"italics",textbf:"bold",strong:"bold",mkbibbold:"bold",textsc:"smallcaps",textsuperscript:"superscript",textsubscript:"subscript",enquote:"quotes",mkbibquote:"quotes",textmd:void 0,textrm:void 0,textsf:void 0,texttt:void 0,textup:void 0},v={italics:["",""],bold:["",""],superscript:["",""],subscript:["",""],smallcaps:['',""],nocase:['',""],quotes:["\u201c","\u201d"]},b={ElsevierGlyph:e=>String.fromCharCode(parseInt(e,16)),href:(e,t)=>e,url:e=>e},y=/---?|''|``|~/g,_={"--":"\u2013","---":"\u2014","``":"\u201c","''":"\u201d","~":"\xa0"},x={"^":"superscript",sp:"superscript",_:"subscript",sb:"subscript",mathrm:void 0},w={"^":{0:"\u2070",1:"\xb9",2:"\xb2",3:"\xb3",4:"\u2074",5:"\u2075",6:"\u2076",7:"\u2077",8:"\u2078",9:"\u2079","+":"\u207a","-":"\u207b","=":"\u207c","(":"\u207d",")":"\u207e",i:"\u2071",n:"\u207f"},_:{0:"\u2080",1:"\u2081",2:"\u2082",3:"\u2083",4:"\u2084",5:"\u2085",6:"\u2086",7:"\u2087",8:"\u2088",9:"\u2089","+":"\u208a","-":"\u208b","=":"\u208c","(":"\u208d",")":"\u208e",a:"\u2090",e:"\u2091",o:"\u2092",x:"\u2093","\u0259":"\u2094",h:"\u2095",k:"\u2096",l:"\u2097",m:"\u2098",n:"\u2099",s:"\u209a",p:"\u209b",t:"\u209c"}},E=["american","british","canadian","english","australian","newzealand","usenglish","ukenglish","en","eng","en-au","en-bz","en-ca","en-cb","en-gb","en-ie","en-jm","en-nz","en-ph","en-tt","en-us","en-za","en-zw","anglais"];function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t{const[,t,n]=e.match(R)||[];if(t&&n){const e={type:"book",label:t,properties:{}};return n.trim().split(N).filter((e=>e)).forEach((t=>{let[n,r]=t.split(D);r&&(n=n.trim(),r=r.trim(),"type"===n?e.type=r:e.properties[n]=r)})),e}return{}},B=JSON.parse('{"source":{"article":"article-journal","book":"book","mvbook":"book","inbook":"chapter","bookinbook":"book","booklet":"book","collection":"book","mvcollection":"book","incollection":"chapter","dataset":"dataset","online":"webpage","patent":"patent","periodical":"article-journal","proceedings":"book","mvproceedings":"book","inproceedings":"paper-conference","reference":"book","mvreference":"book","inreference":"entry","report":"report","software":"book","thesis":"thesis","unpublished":"manuscript","artwork":"graphic","audio":"song","image":"figure","jurisdiction":"legal_case","legislation":"legislation","legal":"treaty","letter":"personal_communication","movie":"motion_picture","music":"musical_score","review":"review","video":"motion_picture","conference":"paper-conference","electronic":"webpage","mastersthesis":"thesis","phdthesis":"thesis","techreport":"report","www":"webpage"},"target":{"article":"article","article-journal":"article","article-magazine":"article","article-newspaper":"article","bill":"legislation","book":"book","broadcast":"audio","chapter":"inbook","dataset":"dataset","entry":"inreference","entry-dictionary":"inreference","entry-encyclopedia":"inreference","figure":"artwork","graphic":"artwork","interview":"audio","legal_case":"jurisdiction","legislation":"legislation","manuscript":"unpublished","motion_picture":"movie","musical_score":"music","paper-conference":"inproceedings","patent":"patent","personal_communication":"letter","post":"online","post-weblog":"online","report":"report","review":"review","review-book":"review","song":"music","speech":"audio","thesis":"thesis","treaty":"legal","webpage":"online"}}'),Q=JSON.parse('{"source":{"article":"article-journal","book":"book","booklet":"book","conference":"paper-conference","inbook":"chapter","incollection":"chapter","inproceedings":"paper-conference","mastersthesis":"thesis","phdthesis":"thesis","proceedings":"book","techreport":"report","unpublished":"manuscript"},"target":{"article":"article","article-journal":"article","article-magazine":"article","article-newspaper":"article","book":"book","chapter":"inbook","manuscript":"unpublished","paper-conference":"inproceedings","report":"techreport","review":"article","review-book":"article"}}'),U={constants:r,types:{biblatex:B,bibtex:Q},parse:{biblatex:!0,strict:!1,sentenceCase:"never"},format:{useIdAsLabel:!1}},F=new Set(["the","a","an"]),z=/(?:<\/?.*?>|[\u0020-\u002F\u003A-\u0040\u005B-\u005E\u0060\u007B-\u007F])+/g,q=/[^\u0020-\u007F]+/g;function H(e){return e?e.normalize("NFKD").replace(q,"").split(z).find((e=>e.length&&!F.has(e.toLowerCase()))):""}const W=new i.util.Translator([{source:"given",target:"given"},{source:"family",target:"family"},{source:"suffix",target:"suffix"},{source:"prefix",target:"non-dropping-particle"},{source:"family",target:"literal",when:{source:!1,target:{family:!1,given:!1}}}]),G=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],V="BibTeX type",$="BibTeX label",K={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12,january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12},Y={bathesis:"Bachelor's thesis",mathesis:"Master's thesis",phdthesis:"PhD thesis",candthesis:"Candidate thesis",techreport:"technical report",resreport:"research report",software:"computer software",datacd:"data cd",audiocd:"audio cd",patent:"patent",patentde:"German patent",patenteu:"European patent",patentfr:"French patent",patentuk:"British patent",patentus:"U.S. patent",patreq:"patent request",patreqde:"German patent request",patreqeu:"European patent request",patreqfr:"French patent request",patrequk:"British patent request",patrequs:"U.S. patent request"},Z=/(^(?:ISAN )?(?:[0-9a-f]{4}-){4}[0-9a-z](?:-(?:[0-9a-f]{4}-){2}[0-9a-z])?$)|(^(?:979-?0-?|M-?)(?:\d{9}|(?=[\d-]{11}$)\d+-\d+-\d)$)|(^ISRN .{1,36}$)|(^(?:ISWC )?T-?\d{9}-?\d$)/i;function J(e){if(null==e)return[];if(+e)return[parseInt(e,10)];if((e=e.trim().toLowerCase())in K)return[K[e]];const t=e.split(/\s+/);let n,r;return t[0]in K?(n=K[t[0]],r=parseInt(t[1])):t[1]in K&&(n=K[t[1]],r=parseInt(t[0])),r?[n,r]:n?[n]:[]}const X={PICK:{toTarget(){for(var e=arguments.length,t=new Array(e),n=0;n[e]},DATE:{toTarget(e){const t=e.split("/").map((e=>e&&".."!==e?function(e){const t=e.split("T")[0].replace(/[?~%]$/,"").split("-"),n=+t[0].replace(/^Y(?=-?\d{4}\d+)/,"").replace(/X/g,"0"),r=+t[1],i=+t[2];return!r||r>20?[n]:i?[n,r,i]:[n,r]}(e):void 0));return isNaN(t[0][0])?{literal:e}:{"date-parts":t}},toSource(e){if("date-parts"in e)return e["date-parts"].map((e=>e.map((e=>e.toString().padStart(2,"0"))).join("-"))).join("/")}},YEAR_MONTH:{toTarget:(e,t,n)=>isNaN(+e)?{literal:e}:isNaN(+n)||isNaN(+t)?{"date-parts":[[+e,...J(t)]]}:{"date-parts":[[+e,+t,+n]]},toSource(e){if("date-parts"in e){const[t,n,r]=e["date-parts"][0];return[t.toString(),n?r?"".concat(G[n-1]," ").concat(r):n:void 0]}return[]}},EPRINT:{toTarget(e,t){if("pubmed"===t)return e},toSource:e=>[e,"pubmed"]},HOW_PUBLISHED:{toTarget(e){if(e.startsWith("http"))return e}},KEYWORDS:{toTarget:e=>e.join(","),toSource:e=>e.split(",")},LABEL:{toTarget:e=>[e,e],toSource(e,t,n,r,i,o){let a;return a=null===e?"null":void 0===e?"undefined":e.toString().replace(z,""),U.format.useIdAsLabel?a:t&&!z.test(t)?t:function(e,t,n,r){let i="";return e&&e[0]&&(i+=H(e[0].family||e[0].literal)),t&&t["date-parts"]&&t["date-parts"][0]&&(i+=t["date-parts"][0][0]),n?i+=n:r&&(i+=H(r)),i}(n,r,i,o)||a}},NAMES:{toTarget:e=>e.map(W.convertToTarget),toSource:e=>e.map(W.convertToSource)},STANDARD_NUMBERS:{toTarget(){for(var e=arguments.length,t=new Array(e),n=0;n(t&&(e+=": "+t),e),toSource:e=>[e]}};var ee=n(1732);const te=[{source:"note",target:"accessed",when:{source:!1,target:{note:!1}},convert:{toSource:e=>"[Online; accessed ".concat((0,ee.format)(e),"]")}},{source:"numpages",target:"number-of-pages",when:{source:{pagetotal:!1},target:!1}},{source:"pmid",target:"PMID",when:{source:{eprinttype:e=>"pmid"!==e,archiveprefix:e=>"pmid"!==e},target:!1}},{source:"pmcid",target:"PMCID",when:{target:!1}}],ne=[{source:"annote",target:"annote",when:{source:{annotation:!1},target:!1}},{source:"address",target:"publisher-place",convert:X.PICK,when:{source:{location:!1},target:!1}},{source:["eprint","archiveprefix"],target:"PMID",convert:X.EPRINT,when:{source:{eprinttype:!1},target:!1}},{source:"journal",target:"container-title",when:{source:{maintitle:!1,booktitle:!1,journaltitle:!1},target:!1}},{source:"school",target:"publisher",convert:X.PICK,when:{source:{institution:!1,organization:!1,publisher:!1},target:!1}}],re=new i.util.Translator([...ne,...te,{source:"abstract",target:"abstract"},{source:"urldate",target:"accessed",convert:X.DATE},{source:"annotation",target:"annote"},{source:"author",target:"author",convert:X.NAMES},{source:"library",target:"call-number"},{source:"chapter",target:"chapter-number"},{source:"bookauthor",target:"container-author",convert:X.NAMES},{source:["maintitle","mainsubtitle","maintitleaddon"],target:"container-title",when:{source:!0,target:{"number-of-volumes":!0}},convert:X.TITLE},{source:["booktitle","booksubtitle","booktitleaddon"],target:"container-title",when:{source:{maintitle:!1},target:{"number-of-volumes":!1,type:e=>!e.startsWith("article")}},convert:X.TITLE},{source:["journaltitle","journalsubtitle","journaltitleaddon"],target:"container-title",when:{source:{[V]:"article"},target:{type:["article","article-newspaper","article-journal","article-magazine"]}},convert:X.TITLE},{source:"shortjournal",target:"container-title-short",when:{source:{[V]:"article"},target:{type:["article","article-newspaper","article-journal","article-magazine"]}}},{source:"shortjournal",target:"journalAbbreviation",when:{source:!1,target:{"container-title-short":!1}}},{source:"number",target:"collection-number",when:{source:{[V]:["book","mvbook","inbook","bookinbook","suppbook","collection","mvcollection","incollection","suppcollection","manual","suppperiodical","proceedings","mvproceedings","refererence"]},target:{type:["bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legislation","legal_case","manuscript","map","motion_picture","musical_score","pamphlet","post","post-weblog","personal_communication","review","review-book","song","speech","thesis","treaty","webpage"]}}},{source:"series",target:"collection-title"},{source:"shortseries",target:"collection-title-short"},{source:"doi",target:"DOI"},{source:"edition",target:"edition"},{source:"editor",target:"editor",convert:X.NAMES},{source:[V,"entrysubtype","type"],target:["type","genre"],convert:{toTarget:(e,t,n)=>(n||("masterthesis"===e&&(n="mathesis"),"phdthesis"===e&&(n="phdthesis"),"techreport"===e&&(n="techreport")),[B.source[e]||"book",n||t]),toSource(e,t){const n=B.target[e]||"misc";return t in Y?[n,void 0,t]:[n,t]}}},{source:V,when:{target:{type:!1}},convert:{toSource:()=>"misc"}},{source:"eventdate",target:"event-date",convert:X.DATE},{source:"venue",target:"event-place"},{source:"eventtitle",target:"event"},{source:$,target:["id","citation-label","author","issued","year-suffix","title"],convert:X.LABEL},{source:"isbn",target:"ISBN"},{source:"issn",target:"ISSN"},{source:"issue",target:"issue",when:{source:{number:!1,[V]:["article","periodical"]},target:{issue:e=>"string"===typeof e&&!e.match(/\d+/),type:["article","article-journal","article-newspaper","article-magazine"]}}},{source:"number",target:"issue",when:{source:{[V]:["article","periodical","inproceedings"]},target:{issue:e=>e&&("number"===typeof e||e.match(/\d+/)),type:["article","article-journal","article-newspaper","article-magazine","paper-conference"]}}},{source:"date",target:"issued",convert:X.DATE},{source:["year","month","day"],target:"issued",convert:X.YEAR_MONTH,when:{source:{date:!1},target:!1}},{source:"location",target:"jurisdiction",when:{source:{type:"patent"},target:{type:"patent"}}},{source:"keywords",target:"keyword",convert:X.KEYWORDS},{source:"language",target:"language",convert:X.PICK},{source:"note",target:"note"},{source:["isan","ismn","isrn","iswc"],target:"number",convert:X.STANDARD_NUMBERS,when:{source:{[V]:e=>"patent"!==e},target:{type:e=>"patent"!==e}}},{source:"number",target:"number",when:{source:{[V]:["patent","report","techreport","legislation"]},target:{type:["patent","report","legislation"]}}},{source:"origdate",target:"original-date",convert:X.DATE},{source:"origlocation",target:"original-publisher-place",convert:X.PICK},{source:"origpublisher",target:"original-publisher",convert:X.PICK},{source:"origtitle",target:"original-title"},{source:["pages","eid"],target:"page",convert:{toTarget:(e,t)=>t?t.replace(/^e?/i,"e"):e.replace(/[\u2013\u2014]/,"-"),toSource:e=>/^e/i.test(e)?[e,e]:[e.replace("-","--")]}},{source:"pagetotal",target:"number-of-pages"},{source:["eprint","eprinttype"],target:"PMID",convert:X.EPRINT},{source:"location",target:"publisher-place",convert:X.PICK},{source:"publisher",target:"publisher",convert:X.PICK,when:{source:!0,target:{type:["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","regulation","review","review-book","song","speech","treaty"]}}},{source:"organization",target:"publisher",convert:X.PICK,when:{source:{publisher:!1},target:{type:"webpage"}}},{source:"institution",target:"publisher",convert:X.PICK,when:{source:{publisher:!1,organization:!1},target:{type:["report","thesis"]}}},{source:"howpublished",target:"publisher",convert:X.PICK,when:{source:{publisher:!1,organization:!1,institution:!1},target:{type:"manuscript"}}},{source:["pages","bookpagination"],target:"section",when:{source:{bookpagination:"section"},target:{page:!1}},convert:{toTarget:e=>e,toSource:e=>[e,"section"]}},{source:"pubstate",target:"status",convert:X.STATUS},{source:"shorttitle",target:"title-short"},{source:["title","subtitle","titleaddon"],target:"title",convert:X.TITLE},{source:"translator",target:"translator",convert:X.NAMES},{source:"url",target:"URL"},{source:"howpublished",target:"URL",convert:X.HOW_PUBLISHED,when:{source:{url:!1},target:!1}},{source:"version",target:"version"},{source:"volume",target:"volume"},{source:"volumes",target:"number-of-volumes"}]),ie=new i.util.Translator([{source:"note",target:"accessed",when:{source:!1,target:{note:!1}},convert:{toSource:e=>"[Online; accessed ".concat((0,ee.format)(e),"]")}},{source:"annote",target:"annote"},{source:"address",target:"publisher-place",convert:X.PICK},{source:"author",target:"author",convert:X.NAMES},{source:"chapter",target:"chapter-number"},{source:"number",target:"collection-number",when:{source:{[V]:["book","mvbook","inbook","collection","mvcollection","incollection","suppcollection","manual","suppperiodical","proceedings","mvproceedings","refererence"]},target:{type:["bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legislation","legal_case","manuscript","map","motion_picture","musical_score","pamphlet","post","post-weblog","personal_communication","review","review-book","song","speech","thesis","treaty","webpage"]}}},{source:"series",target:"collection-title"},{source:"booktitle",target:"container-title",when:{target:{type:["chapter","paper-conference"]}}},{source:"journal",target:"container-title",when:{source:{[V]:"article"},target:{type:["article","article-newspaper","article-journal","article-magazine"]}}},{source:"edition",target:"edition"},{source:"editor",target:"editor",convert:X.NAMES},{source:$,target:["id","citation-label","author","issued","year-suffix","title"],convert:X.LABEL},{source:"number",target:"issue",when:{source:{[V]:["article","periodical","inproceedings"]},target:{issue:e=>"number"===typeof e||"string"===typeof e&&e.match(/\d+/),type:["article","article-journal","article-newspaper","article-magazine","paper-conference"]}}},{source:["year","month","day"],target:"issued",convert:X.YEAR_MONTH},{source:"note",target:"note"},{source:"number",target:"number",when:{source:{[V]:["patent","report","techreport"]},target:{type:["patent","report"]}}},{source:"pages",target:"page",convert:{toTarget:e=>e.replace(/[\u2013\u2014]/,"-"),toSource:e=>e.replace("-","--")}},{source:"publisher",target:"publisher",convert:X.PICK,when:{target:{type:["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","map","motion_picture","musical_score","pamphlet","patent","personal_communication","post","post-weblog","review","review-book","song","speech","treaty","webpage"]}}},{source:"organization",target:"publisher",convert:X.PICK,when:{source:{publisher:!1},target:{type:"paper-conference"}}},{source:"institution",target:"publisher",convert:X.PICK,when:{source:{publisher:!1,organization:!1},target:{type:"report"}}},{source:"school",target:"publisher",convert:X.PICK,when:{source:{institution:!1,organization:!1,publisher:!1},target:{type:"thesis"}}},{source:"howpublished",target:"publisher",convert:X.PICK,when:{source:{publisher:!1,organization:!1,institution:!1,school:!1},target:{type:"manuscript"}}},{source:"title",target:"title"},{source:[V,"type"],target:["type","genre"],convert:{toTarget(e,t){const n=Q.source[e]||"book";return t?[n,t]:"mastersthesis"===e?[n,"Master's thesis"]:"phdthesis"===e?[n,"PhD thesis"]:[n]},toSource(e,t){const n=Q.target[e]||"misc";return/^(master'?s|diploma) thesis$/i.test(t)?["mastersthesis"]:/^(phd|doctoral) thesis$/i.test(t)?["phdthesis"]:[n,t]}}},{source:V,when:{target:{type:!1}},convert:{toSource:()=>"misc"}},{source:"howpublished",target:"URL",convert:X.HOW_PUBLISHED,when:{target:{publisher:!1}}},{source:"volume",target:"volume"}]);function oe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ae(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ce(e,t){if(e.crossref in t){const n=t[e.crossref].properties;return n===e?e:Object.assign({},ce(n,t),e)}return e}function ue(e,t){const n={};for(const r of e)n[r.label]=r;return e.map((e=>{let{type:r,label:i,properties:o}=e;return t.convertToTarget(function(e){for(var t=1;t{const n=t.convertToSource(e),{[V]:r,[$]:i}=n;return{type:r,label:i,properties:oe(n,[V,$].map(ae))}}))}function pe(e){const t=e.toUpperCase(),n=e.toLowerCase();for(let r=0;r1;){const{value:n,hyphenated:r}=e.shift();t+=n+(r?"-":" ")}const n=t+e[0].value;return n[0]&&n}function fe(e){if(e[0][0].label){const t={};for(const[{value:n,label:r}]of e)t[r]=n;return t}const t={},[n,r,i]=function(e){const t=[],n=[];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])for(;e.length>1&&!1!==e[0].upperCase;){for(t.push(...n),n.length=0;e.length>1&&!1!==e[0].upperCase&&!e[0].hyphenated;)t.push(e.shift());for(;e.length>0&&!1!==e[0].upperCase&&e[0].hyphenated;)n.push(e.shift())}const r=[],i=[];for(;e.length>1;){for(r.push(...i),i.length=0;e.length>1&&!1===e[0].upperCase;)r.push(e.shift());for(;e.length>0&&!1!==e[0].upperCase;)i.push(e.shift())}return n.length&&i.unshift(...n),e.length&&i.push(e[0]),[he(t),he(r),he(i)]}(e[0],1===e.length);return i&&(t.family=i),r&&(t.prefix=r),3===e.length?(t.given=he(e[2]),t.suffix=he(e[1])):2===e.length?t.given=he(e[1]):n&&(t.given=n),t}function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t=1;tbe[e],value:e=>e.slice(1).trim()},lbrace:{match:"{",push:"bracedLiteral"},mathShift:{match:"$",push:"mathLiteral"},whitespace:{match:/[\s]+|~/,lineBreaks:!0,value:e=>"~"===e?"\xa0":" "}},_e=a().states({stringLiteral:ge(ge({},ye),{},{text:/[^{$}\s~\\]+/}),namesLiteral:ge(ge({and:/\s+and\s+/,comma:",",hyphen:"-",equals:"="},ye),{},{text:/[^{$}\s~\\,=-]+/}),listLiteral:ge(ge({and:/\s+and\s+/},ye),{},{text:/[^{$}\s~\\]+/}),separatedLiteral:ge(ge({comma:","},ye),{},{text:/[^{$}\s~\\,]+/}),bracedLiteral:ge(ge({},ye),{},{rbrace:{match:"}",pop:!0},text:/[^{$}\s~\\]+/}),mathLiteral:ge(ge({},ye),{},{mathShift:{match:"$",pop:!0},script:/[\^_]/,text:/[^{$}\s~\\^_]+/})});function xe(e){return e[0],e}function we(e,t){return t in v?e&&v[t].join(e):e}const Ee=new i.util.Grammar({String(){let e="";for(;!this.matchEndOfFile();)e+=this.consumeRule("Text");return xe(e)},StringNames(){const e=[];for(;;){if(this.consumeToken("whitespace",!0),e.push(this.consumeRule("Name")),this.consumeToken("whitespace",!0),this.matchEndOfFile())return e;this.consumeToken("and")}},Name(){const e=[];for(;;){if(e.push(this.consumeRule("NamePiece")),this.matchEndOfFile()||this.matchToken("and"))return fe(e);this.consumeToken("comma"),this.consumeToken("whitespace",!0)}},NamePiece(){const e=[];for(;;){const t=this.consumeRule("NameToken");if(t.label)return t.label=he([...e,{value:t.label}]),[t];if(e.push(t),this.matchEndOfFile()||this.matchToken("and")||this.matchToken("comma"))return e;for(;this.matchToken("hyphen")||this.matchToken("whitespace");)this.consumeToken()}},NameToken(){let e=null,t="";for(;;)if(null===e&&this.matchToken("text")){const n=this.consumeToken().value;t+=n,e=pe(n)}else{if(this.matchEndOfFile()||this.matchToken("and")||this.matchToken("comma")||this.matchToken("whitespace"))return{value:t,upperCase:e};if(this.matchToken("hyphen"))return{value:t,upperCase:e,hyphenated:!0};if(this.matchToken("equals")){this.consumeToken("equals");const e=this.consumeRule("NamePiece");return e[0].label&&(t+="="+e[0].label),{value:he(e),label:t}}t+=this.consumeRule("Text")}},StringList(){const e=[];for(;!this.matchEndOfFile();){let t="";for(;!this.matchEndOfFile()&&!this.matchToken("and");)t+=this.consumeRule("Text");e.push(xe(t)),this.consumeToken("and",!0)}return 1===e.length?e[0]:e},StringSeparated(){const e=[];for(;!this.matchEndOfFile();){let t="";for(;!this.matchEndOfFile()&&!this.matchToken("comma");)t+=this.consumeRule("Text");e.push(t.trim()),this.consumeToken("comma",!0),this.consumeToken("whitespace",!0)}return e},StringVerbatim(){let e="";for(;!this.matchEndOfFile();)e+=this.consumeToken().text;return xe(e)},StringUri(){const e=this.consumeRule("StringVerbatim");try{return decodeURI(e)===e?encodeURI(e):e}catch(t){return encodeURI(e)}},StringTitleCase(){this.state.sentenceCase=!0;let e="";for(;!this.matchEndOfFile();)e+=this.consumeRule("Text");return xe(e)},BracketString(){var e;let t="";this.consumeToken("lbrace");const n=this.state.sentenceCase;for(this.state.sentenceCase=n&&this.matchToken("command"),(e=this.state).partlyLowercase&&(e.partlyLowercase=this.state.sentenceCase);!this.matchToken("rbrace");)t+=this.consumeRule("Text");const r=n&&!this.state.sentenceCase&&this.state.partlyLowercase;return this.state.sentenceCase=n,this.consumeToken("rbrace"),r?we(t,"nocase"):t},MathString(){let e="";for(this.consumeToken("mathShift");!this.matchToken("mathShift");)if(this.matchToken("script")){const t=this.consumeToken("script").value,n=this.consumeRule("Text").split("");if(n.every((e=>e in w[t])))e+=n.map((e=>w[t][e])).join("");else{const r=x[t];e+=v[r].join(n.join(""))}}else{if(this.matchToken("command")){const t=this.token.value;if(t in x){this.consumeToken("command");e+=we(this.consumeRule("BracketString"),x[t]);continue}}e+=this.consumeRule("Text")}return this.consumeToken("mathShift"),e},Text(){if(this.matchToken("lbrace"))return this.consumeRule("BracketString");if(this.matchToken("mathShift"))return this.consumeRule("MathString");if(this.matchToken("whitespace"))return this.consumeToken("whitespace").value;if(this.matchToken("commandBegin"))return this.consumeRule("EnclosedEnv");if(this.matchToken("command"))return this.consumeRule("Command");const e=this.consumeToken("text").value.replace(y,(e=>_[e])),t=this.state.afterPunctuation;var n;if(this.state.afterPunctuation=/[?!.:]$/.test(e),!this.state.sentenceCase)return(n=this.state).partlyLowercase||(n.partlyLowercase=e===e.toLowerCase()&&e!==e.toUpperCase()),e;const[r,...i]=e,o=i.join(""),a=o.toLowerCase();return o!==a?e:t?r+a:e.toLowerCase()},Command(){const e=this.consumeToken("command"),t=e.value;if(t in m){return we(this.consumeRule("Env"),m[t])}if(t in g){return we(this.consumeRule("BracketString"),g[t])}if(t in h)return h[t];if(t in p&&!this.matchEndOfFile()){const e=this.consumeRule("Text");return(e[0]+p[t]).normalize("NFC")+e.slice(1)}if(t in b){const e=b[t],n=[];let r=e.length;for(;r-- >0;)this.consumeToken("whitespace",!0),n.push(this.consumeRule("BracketString"));return e(...n)}return/^[&%$#_{}]$/.test(t)?e.text.slice(1):e.text},Env(){let e="";for(;!this.matchEndOfFile()&&!this.matchToken("rbrace");)e+=this.consumeRule("Text");return e},EnclosedEnv(){this.consumeToken("commandBegin");const e=this.consumeRule("BracketString");let t="";for(;!this.matchToken("commandEnd");)t+=this.consumeRule("Text");const n=this.consumeToken("commandEnd"),r=this.consumeRule("BracketString");if(e!==r)throw new SyntaxError(this.lexer.formatError(n,'environment started with "'.concat(e,'", ended with "').concat(r,'"')));return we(t,m[e])}},{sentenceCase:!1,partlyLowercase:!1,afterPunctuation:!0});function Te(e){return E.includes(e.toLowerCase())}function Ce(e,t){if("name"===e[1])return"list"===e[0]?"StringNames":"Name";if("title"===e[1]){const e=U.parse.sentenceCase;return"always"===e||"english"===e&&function(e){return Array.isArray(e)?e.every(Te):Te(e)}(t)?"StringTitleCase":"String"}switch("field"===e[0]?e[1]:e[0]){case"list":return"StringList";case"separated":return"StringSeparated";case"verbatim":return"StringVerbatim";case"uri":return"StringUri";default:return"String"}}function ke(e){if("name"===e[1])return"namesLiteral";switch(e[0]){case"list":return"listLiteral";case"separated":return"separatedLiteral";default:return"stringLiteral"}}function Se(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=d[t]||[];return Ee.parse(_e.reset(e,{state:ke(r),line:0,col:0}),Ce(r,n))}function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ae(e){for(var t=1;te in o))?e.push(n.join("/")):"string"!==typeof n||n in o||e.push(n);e.length&&n.push([i,"missing fields: ".concat(e.join(", "))])}else n.push([i,'invalid type: "'.concat(r,'"')]);if(n.length)throw new RangeError(["Invalid entries:"].concat(n.map((e=>{let[t,n]=e;return" - ".concat(t," has ").concat(n)}))).join("\n"))}function Ie(e){const t={};"language"in e.properties&&(t.language=Se(e.properties.language,"language"));for(const n in e.properties){const r=e.properties[n];""!==r&&(t[n]=Se(r+"",n,t.language))}return Ae(Ae({},e),{},{properties:t})}function Le(e){return U.parse.strict&&Pe(e,u.biblatex),ue(e.map(Ie),re)}function Re(e){return U.parse.strict&&Pe(e,u.bibtex),ue(e.map(Ie),ie)}const Ne={"@biblatex/text":{parse:I,parseType:{dataType:"String",predicate:/@\s{0,5}[A-Za-z]{1,13}\s{0,5}\{\s{0,5}[^@{}"=,\\\s]{0,100}\s{0,5},[\s\S]*\}/}},"@biblatex/entry+object":{parse:e=>Le([e]),parseType:{dataType:"SimpleObject",propertyConstraint:{props:["type","label","properties"]}}},"@biblatex/entries+list":{parse:Le,parseType:{elementConstraint:"@biblatex/entry+object"}},"@bibtex/text":{parse:I,outputs:"@bibtex/entries+list"},"@bibtex/entry+object":{parse:e=>Re([e])},"@bibtex/entries+list":{parse:Re},"@bibtxt/text":{parse:e=>e.trim().split(L).map(M),parseType:{dataType:"String",predicate:/^\s*(\[(?!\s*[{[]).*?\]\s*(\n\s*[^[]((?!:)\S)+\s*:\s*.+?\s*)*\s*)+$/}}},De={};for(const Ye in h)De[h[Ye]]=Ye;for(const Ye in p)De[p[Ye]]=Ye;for(const Ye in _)De[_[Ye]]=Ye;const Me=/[^a-zA-Z0-9\s!"#%&'()*+,\-./:;=?@[\]{}\u0300-\u0308\u030a-\u030c\u0332\u0323\u0327\u0328\u0361\u0326]/g,Be=/.[\u0300-\u0308\u030a-\u030c\u0332\u0323\u0327\u0328\u0361\u0326]+/g,Qe={separated:",",list:" and "},Ue={i:"\\textit{",b:"\\textbf{",sc:"\\textsc{",sup:"\\textsuperscript{",sub:"\\textsubscript{",'span style="font-variant:small-caps;"':"\\textsc{",'span class="nocase"':"{"};function Fe(e){return e.normalize("NFKD").replace(Me,(e=>e in De?De[e]in _?De[e]:"\\".concat(De[e],"{}"):"")).replace(Be,(e=>Array.from(e).reduce(((e,t)=>"{\\".concat(De[t]," ").concat(e,"}")))))}function ze(e){const t=[];let n=e.split(/<(\/?(?:i|b|sc|sup|sub|span)|span .*?)>/g);return n=n.map(((e,n)=>n%2===0?Fe(e):e in Ue?(t.push("/"+e.split(" ")[0]),Ue[e]):e===t[t.length-1]?(t.pop(),"}"):"")),n.join("")}function qe(e,t){switch(t){case"title":return ze(e).split(/(:\s*)/).map(((e,t)=>t%2?e:e.replace(/(?!^)\b[a-z]*[A-Z].*?\b/g,"{$&}"))).join("");case"literal":return ze(e.toString());case"name":return function(e){if(e.family&&!e.prefix&&!e.given&!e.suffix)return e.family.includes(Qe.list)?e.family:"{".concat(e.family,"}");const t=[""];return e.prefix&&e.family&&(t[0]+=e.prefix+" "),e.family&&(t[0]+=e.family),e.suffix?(t.push(e.suffix),t.push(e.given||"")):t.push(e.given),Fe(t.join(", ").trim())}(e);case"verbatim":case"uri":return e.toString();default:return Fe(e.toString())}}function He(e,t){if(!(e in d))return qe(t,"verbatim");const[n,r]=d[e];return n in Qe?function(e,t,n){const r=Qe[n];return e.map((e=>{const n=qe(e,t);return n.includes(r)?"{".concat(n,"}"):n})).join(r)}(t,r,n):qe(t,r)}function We(e){let{type:t,label:n,properties:r}=e;const i={};for(const o in r){const e=r[o];i[o]=He(o,e)}return{type:t,label:n,properties:i}}function Ge(e){return(t=e,de(t,ie)).map(We);var t}function Ve(e,t){const n=e.map((e=>function(e,t){let{type:n,label:r,properties:i}=e;const o=Object.entries(i).map((e=>{let[n,r]=e;return t.listItem.join("".concat(n," = {").concat(r,"},"))}));return t.entry.join("@".concat(n,"{").concat(r,",").concat(t.list.join(o.join("")),"}"))}(e,t))).join("");return t.bibliographyContainer.join(n)}const $e=function(e,t){return function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:o,format:a=o||"text"}=r;if(n=e(n),"object"===a)return n;if(i.plugins.dict.has(a))return t(n,i.plugins.dict.get(a),r);throw new RangeError('Output dictionary "'.concat(a,'" not available'))}},Ke={bibtex:$e(Ge,Ve),biblatex:$e((function(e){return(t=e,de(t,re)).map(We);var t}),Ve),bibtxt:$e(Ge,(function(e,t){const n=e.map((e=>function(e,t){let{type:n,label:r,properties:i}=e;const o=Object.entries(i).concat([["type",n]]).map((e=>{let[n,r]=e;return t.listItem.join("".concat(n,": ").concat(r))}));return t.entry.join("[".concat(r,"]").concat(t.list.join(o.join(""))))}(e,t))).join("\n");return t.bibliographyContainer.join(n)}))};i.plugins.add("@bibtex",{input:Ne,output:Ke,config:U})},1364:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(480)),i=a(n(9776));function o(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function a(e){return e&&e.__esModule?e:{default:e}}var s={constants:function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(2188)),types:{biblatex:r.default,bibtex:i.default},parse:{biblatex:!0,strict:!1,sentenceCase:"never"},format:{useIdAsLabel:!1}};t.default=s},2652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.textEntry=t.text=t.parse=void 0;const n=/\n\s*(?=\[)/g,r=/^\[(.+?)\]\s*(?:\n([\s\S]+))?$/,i=/((?=.)\s)*\n\s*/g,o=/:(.*)/,a=e=>{const[,t,n]=e.match(r)||[];if(t&&n){const e={type:"book",label:t,properties:{}};return n.trim().split(i).filter((e=>e)).forEach((t=>{let[n,r]=t.split(o);r&&(n=n.trim(),r=r.trim(),"type"===n?e.type=r:e.properties[n]=r)})),e}return{}};t.textEntry=a;t.text=t.parse=e=>e.trim().split(n).map(a)},2188:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sentenceCaseLanguages=t.required=t.mathScripts=t.mathScriptFormatting=t.ligatures=t.ligaturePattern=t.formattingEnvs=t.formattingCommands=t.formatting=t.fieldTypes=t.diacritics=t.defaultStrings=t.commands=t.argumentCommands=void 0;var r=a(n(8242)),i=a(n(7064)),o=a(n(5188));function a(e){return e&&e.__esModule?e:{default:e}}const s=r.default;t.required=s;const l=i.default;t.fieldTypes=l;const c=o.default.diacritics;t.diacritics=c;const u=o.default.commands;t.commands=u;t.defaultStrings={jan:"01",feb:"02",mar:"03",apr:"04",may:"05",jun:"06",jul:"07",aug:"08",sep:"09",oct:"10",nov:"11",dec:"12",acmcs:"ACM Computing Surveys",acta:"Acta Informatica",cacm:"Communications of the ACM",ibmjrd:"IBM Journal of Research and Development",ibmsj:"IBM Systems Journal",ieeese:"IEEE Transactions on Software Engineering",ieeetc:"IEEE Transactions on Computers",ieeetcad:"IEEE Transactions on Computer-Aided Design of Integrated Circuits",ipl:"Information Processing Letters",jacm:"Journal of the ACM",jcss:"Journal of Computer and System Sciences",scp:"Science of Computer Programming",sicomp:"SIAM Journal on Computing",tocs:"ACM Transactions on Computer Systems",tods:"ACM Transactions on Database Systems",tog:"ACM Transactions on Graphics",toms:"ACM Transactions on Mathematical Software",toois:"ACM Transactions on Office Information Systems",toplas:"ACM Transactions on Programming Languages and Systems",tcs:"Theoretical Computer Science"};const d={it:"italics",itshape:"italics",sl:"italics",slshape:"italics",em:"italics",bf:"bold",bfseries:"bold",sc:"smallcaps",scshape:"smallcaps",rm:void 0,sf:void 0,tt:void 0};t.formattingEnvs=d;const p={textit:"italics",textsl:"italics",emph:"italics",mkbibitalic:"italics",mkbibemph:"italics",textbf:"bold",strong:"bold",mkbibbold:"bold",textsc:"smallcaps",textsuperscript:"superscript",textsubscript:"subscript",enquote:"quotes",mkbibquote:"quotes",textmd:void 0,textrm:void 0,textsf:void 0,texttt:void 0,textup:void 0};t.formattingCommands=p;t.formatting={italics:["",""],bold:["",""],superscript:["",""],subscript:["",""],smallcaps:['',""],nocase:['',""],quotes:["\u201c","\u201d"]};const h={ElsevierGlyph:e=>String.fromCharCode(parseInt(e,16)),href:(e,t)=>e,url:e=>e};t.argumentCommands=h;t.ligaturePattern=/---?|''|``|~/g;t.ligatures={"--":"\u2013","---":"\u2014","``":"\u201c","''":"\u201d","~":"\xa0"};const f={"^":"superscript",sp:"superscript",_:"subscript",sb:"subscript",mathrm:void 0};t.mathScriptFormatting=f;t.mathScripts={"^":{0:"\u2070",1:"\xb9",2:"\xb2",3:"\xb3",4:"\u2074",5:"\u2075",6:"\u2076",7:"\u2077",8:"\u2078",9:"\u2079","+":"\u207a","-":"\u207b","=":"\u207c","(":"\u207d",")":"\u207e",i:"\u2071",n:"\u207f"},_:{0:"\u2080",1:"\u2081",2:"\u2082",3:"\u2083",4:"\u2084",5:"\u2085",6:"\u2086",7:"\u2087",8:"\u2088",9:"\u2089","+":"\u208a","-":"\u208b","=":"\u208c","(":"\u208d",")":"\u208e",a:"\u2090",e:"\u2091",o:"\u2092",x:"\u2093","\u0259":"\u2094",h:"\u2095",k:"\u2096",l:"\u2097",m:"\u2098",n:"\u2099",s:"\u209a",p:"\u209b",t:"\u209c"}};t.sentenceCaseLanguages=["american","british","canadian","english","australian","newzealand","usenglish","ukenglish","en","eng","en-au","en-bz","en-ca","en-cb","en-gb","en-ie","en-jm","en-nz","en-ph","en-tt","en-us","en-za","en-zw","anglais"]},2892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e){i.default.parse.strict&&d(e,s.required.biblatex);return(0,o.parse)(e.map(p))},t.parseBibtex=function(e){i.default.parse.strict&&d(e,s.required.bibtex);return(0,o.parseBibtex)(e.map(p))};var r,i=(r=n(1364))&&r.__esModule?r:{default:r},o=n(3272),a=n(7440),s=n(2188);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;te in o))?e.push(n.join("/")):"string"!==typeof n||n in o||e.push(n);e.length&&n.push([i,"missing fields: ".concat(e.join(", "))])}else n.push([i,'invalid type: "'.concat(r,'"')]);if(n.length)throw new RangeError(["Invalid entries:"].concat(n.map((e=>{let[t,n]=e;return" - ".concat(t," has ").concat(n)}))).join("\n"))}function p(e){const t={};"language"in e.properties&&(t.language=(0,a.parse)(e.properties.language,"language"));for(const n in e.properties){const r=e.properties[n];""!==r&&(t[n]=(0,a.parse)(r+"",n,t.language))}return c(c({},e),{},{properties:t})}},1072:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bibtexGrammar=void 0,t.parse=function(e){return f.parse(p.reset(e))};var r,i=n(8660),o=(r=n(3240))&&r.__esModule?r:{default:r},a=n(2188);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t{"use strict";t.qy=void 0;var r=n(1072),i=n(2652),o=n(2892);const a={"@biblatex/text":{parse:r.parse,parseType:{dataType:"String",predicate:/@\s{0,5}[A-Za-z]{1,13}\s{0,5}\{\s{0,5}[^@{}"=,\\\s]{0,100}\s{0,5},[\s\S]*\}/}},"@biblatex/entry+object":{parse:e=>(0,o.parse)([e]),parseType:{dataType:"SimpleObject",propertyConstraint:{props:["type","label","properties"]}}},"@biblatex/entries+list":{parse:o.parse,parseType:{elementConstraint:"@biblatex/entry+object"}},"@bibtex/text":{parse:r.parse,outputs:"@bibtex/entries+list"},"@bibtex/entry+object":{parse:e=>(0,o.parseBibtex)([e])},"@bibtex/entries+list":{parse:o.parseBibtex},"@bibtxt/text":{parse:i.parse,parseType:{dataType:"String",predicate:/^\s*(\[(?!\s*[{[]).*?\]\s*(\n\s*[^[]((?!:)\S)+\s*:\s*.+?\s*)*\s*)+$/}}};t.qy=a},5012:(e,t)=>{"use strict";function n(e){if(0===e.length)return;let t="";for(;e.length>1;){const{value:n,hyphenated:r}=e.shift();t+=n+(r?"-":" ")}const n=t+e[0].value;return n[0]&&n}function r(e){const t=[],r=[];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])for(;e.length>1&&!1!==e[0].upperCase;){for(t.push(...r),r.length=0;e.length>1&&!1!==e[0].upperCase&&!e[0].hyphenated;)t.push(e.shift());for(;e.length>0&&!1!==e[0].upperCase&&e[0].hyphenated;)r.push(e.shift())}const i=[],o=[];for(;e.length>1;){for(i.push(...o),o.length=0;e.length>1&&!1===e[0].upperCase;)i.push(e.shift());for(;e.length>0&&!1!==e[0].upperCase;)o.push(e.shift())}return r.length&&o.unshift(...r),e.length&&o.push(e[0]),[n(t),n(i),n(o)]}Object.defineProperty(t,"__esModule",{value:!0}),t.formatNameParts=n,t.getStringCase=function(e){const t=e.toUpperCase(),n=e.toLowerCase();for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=a.fieldTypes[t]||[];return b.parse(m.reset(e,{state:_(r),line:0,col:0}),function(e,t){if("name"===e[1])return"list"===e[0]?"StringNames":"Name";if("title"===e[1]){const e=o.default.parse.sentenceCase;return"always"===e||"english"===e&&function(e){if(Array.isArray(e))return e.every(y);return y(e)}(t)?"StringTitleCase":"String"}switch("field"===e[0]?e[1]:e[0]){case"list":return"StringList";case"separated":return"StringSeparated";case"verbatim":return"StringVerbatim";case"uri":return"StringUri";default:return"String"}}(r,n))},t.valueGrammar=void 0;var r=n(8660),i=c(n(3240)),o=c(n(1364)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(2188)),s=n(5012);function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;th[e],value:e=>e.slice(1).trim()},lbrace:{match:"{",push:"bracedLiteral"},mathShift:{match:"$",push:"mathLiteral"},whitespace:{match:/[\s]+|~/,lineBreaks:!0,value:e=>"~"===e?"\xa0":" "}},m=i.default.states({stringLiteral:d(d({},f),{},{text:/[^{$}\s~\\]+/}),namesLiteral:d(d({and:/\s+and\s+/,comma:",",hyphen:"-",equals:"="},f),{},{text:/[^{$}\s~\\,=-]+/}),listLiteral:d(d({and:/\s+and\s+/},f),{},{text:/[^{$}\s~\\]+/}),separatedLiteral:d(d({comma:","},f),{},{text:/[^{$}\s~\\,]+/}),bracedLiteral:d(d({},f),{},{rbrace:{match:"}",pop:!0},text:/[^{$}\s~\\]+/}),mathLiteral:d(d({},f),{},{mathShift:{match:"$",pop:!0},script:/[\^_]/,text:/[^{$}\s~\\^_]+/})});function g(e){return e[0],e}function v(e,t){return t in a.formatting?e&&a.formatting[t].join(e):e}const b=new r.util.Grammar({String(){let e="";for(;!this.matchEndOfFile();)e+=this.consumeRule("Text");return g(e)},StringNames(){const e=[];for(;;){if(this.consumeToken("whitespace",!0),e.push(this.consumeRule("Name")),this.consumeToken("whitespace",!0),this.matchEndOfFile())return e;this.consumeToken("and")}},Name(){const e=[];for(;;){if(e.push(this.consumeRule("NamePiece")),this.matchEndOfFile()||this.matchToken("and"))return(0,s.orderNamePieces)(e);this.consumeToken("comma"),this.consumeToken("whitespace",!0)}},NamePiece(){const e=[];for(;;){const t=this.consumeRule("NameToken");if(t.label)return t.label=(0,s.formatNameParts)([...e,{value:t.label}]),[t];if(e.push(t),this.matchEndOfFile()||this.matchToken("and")||this.matchToken("comma"))return e;for(;this.matchToken("hyphen")||this.matchToken("whitespace");)this.consumeToken()}},NameToken(){let e=null,t="";for(;;)if(null===e&&this.matchToken("text")){const n=this.consumeToken().value;t+=n,e=(0,s.getStringCase)(n)}else{if(this.matchEndOfFile()||this.matchToken("and")||this.matchToken("comma")||this.matchToken("whitespace"))return{value:t,upperCase:e};if(this.matchToken("hyphen"))return{value:t,upperCase:e,hyphenated:!0};if(this.matchToken("equals")){this.consumeToken("equals");const e=this.consumeRule("NamePiece");return e[0].label&&(t+="="+e[0].label),{value:(0,s.formatNameParts)(e),label:t}}t+=this.consumeRule("Text")}},StringList(){const e=[];for(;!this.matchEndOfFile();){let t="";for(;!this.matchEndOfFile()&&!this.matchToken("and");)t+=this.consumeRule("Text");e.push(g(t)),this.consumeToken("and",!0)}return 1===e.length?e[0]:e},StringSeparated(){const e=[];for(;!this.matchEndOfFile();){let t="";for(;!this.matchEndOfFile()&&!this.matchToken("comma");)t+=this.consumeRule("Text");e.push(t.trim()),this.consumeToken("comma",!0),this.consumeToken("whitespace",!0)}return e},StringVerbatim(){let e="";for(;!this.matchEndOfFile();)e+=this.consumeToken().text;return g(e)},StringUri(){const e=this.consumeRule("StringVerbatim");try{return decodeURI(e)===e?encodeURI(e):e}catch(t){return encodeURI(e)}},StringTitleCase(){this.state.sentenceCase=!0;let e="";for(;!this.matchEndOfFile();)e+=this.consumeRule("Text");return g(e)},BracketString(){var e;let t="";this.consumeToken("lbrace");const n=this.state.sentenceCase;for(this.state.sentenceCase=n&&this.matchToken("command"),(e=this.state).partlyLowercase&&(e.partlyLowercase=this.state.sentenceCase);!this.matchToken("rbrace");)t+=this.consumeRule("Text");const r=n&&!this.state.sentenceCase&&this.state.partlyLowercase;return this.state.sentenceCase=n,this.consumeToken("rbrace"),r?v(t,"nocase"):t},MathString(){let e="";for(this.consumeToken("mathShift");!this.matchToken("mathShift");)if(this.matchToken("script")){const t=this.consumeToken("script").value,n=this.consumeRule("Text").split("");if(n.every((e=>e in a.mathScripts[t])))e+=n.map((e=>a.mathScripts[t][e])).join("");else{const r=a.mathScriptFormatting[t];e+=a.formatting[r].join(n.join(""))}}else{if(this.matchToken("command")){const t=this.token.value;if(t in a.mathScriptFormatting){this.consumeToken("command");e+=v(this.consumeRule("BracketString"),a.mathScriptFormatting[t]);continue}}e+=this.consumeRule("Text")}return this.consumeToken("mathShift"),e},Text(){if(this.matchToken("lbrace"))return this.consumeRule("BracketString");if(this.matchToken("mathShift"))return this.consumeRule("MathString");if(this.matchToken("whitespace"))return this.consumeToken("whitespace").value;if(this.matchToken("commandBegin"))return this.consumeRule("EnclosedEnv");if(this.matchToken("command"))return this.consumeRule("Command");const e=this.consumeToken("text").value.replace(a.ligaturePattern,(e=>a.ligatures[e])),t=this.state.afterPunctuation;var n;if(this.state.afterPunctuation=/[?!.:]$/.test(e),!this.state.sentenceCase)return(n=this.state).partlyLowercase||(n.partlyLowercase=e===e.toLowerCase()&&e!==e.toUpperCase()),e;const[r,...i]=e,o=i.join(""),s=o.toLowerCase();return o!==s?e:t?r+s:e.toLowerCase()},Command(){const e=this.consumeToken("command"),t=e.value;if(t in a.formattingEnvs){return v(this.consumeRule("Env"),a.formattingEnvs[t])}if(t in a.formattingCommands){return v(this.consumeRule("BracketString"),a.formattingCommands[t])}if(t in a.commands)return a.commands[t];if(t in a.diacritics&&!this.matchEndOfFile()){const e=this.consumeRule("Text");return(e[0]+a.diacritics[t]).normalize("NFC")+e.slice(1)}if(t in a.argumentCommands){const e=a.argumentCommands[t],n=[];let r=e.length;for(;r-- >0;)this.consumeToken("whitespace",!0),n.push(this.consumeRule("BracketString"));return e(...n)}return/^[&%$#_{}]$/.test(t)?e.text.slice(1):e.text},Env(){let e="";for(;!this.matchEndOfFile()&&!this.matchToken("rbrace");)e+=this.consumeRule("Text");return e},EnclosedEnv(){this.consumeToken("commandBegin");const e=this.consumeRule("BracketString");let t="";for(;!this.matchToken("commandEnd");)t+=this.consumeRule("Text");const n=this.consumeToken("commandEnd"),r=this.consumeRule("BracketString");if(e!==r)throw new SyntaxError(this.lexer.formatError(n,'environment started with "'.concat(e,'", ended with "').concat(r,'"')));return v(t,a.formattingEnvs[e])}},{sentenceCase:!1,partlyLowercase:!1,afterPunctuation:!0});function y(e){return a.sentenceCaseLanguages.includes(e.toLowerCase())}function _(e){if("name"===e[1])return"namesLiteral";switch(e[0]){case"list":return"listLiteral";case"separated":return"separatedLiteral";default:return"stringLiteral"}}t.valueGrammar=b},9264:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(8660),o=n(1732),a=(r=n(480))&&r.__esModule?r:{default:r},s=n(448);const l=[{source:"note",target:"accessed",when:{source:!1,target:{note:!1}},convert:{toSource:e=>"[Online; accessed ".concat((0,o.format)(e),"]")}},{source:"numpages",target:"number-of-pages",when:{source:{pagetotal:!1},target:!1}},{source:"pmid",target:"PMID",when:{source:{eprinttype:e=>"pmid"!==e,archiveprefix:e=>"pmid"!==e},target:!1}},{source:"pmcid",target:"PMCID",when:{target:!1}}],c=[{source:"annote",target:"annote",when:{source:{annotation:!1},target:!1}},{source:"address",target:"publisher-place",convert:s.Converters.PICK,when:{source:{location:!1},target:!1}},{source:["eprint","archiveprefix"],target:"PMID",convert:s.Converters.EPRINT,when:{source:{eprinttype:!1},target:!1}},{source:"journal",target:"container-title",when:{source:{maintitle:!1,booktitle:!1,journaltitle:!1},target:!1}},{source:"school",target:"publisher",convert:s.Converters.PICK,when:{source:{institution:!1,organization:!1,publisher:!1},target:!1}}];var u=new i.util.Translator([...c,...l,{source:"abstract",target:"abstract"},{source:"urldate",target:"accessed",convert:s.Converters.DATE},{source:"annotation",target:"annote"},{source:"author",target:"author",convert:s.Converters.NAMES},{source:"library",target:"call-number"},{source:"chapter",target:"chapter-number"},{source:"bookauthor",target:"container-author",convert:s.Converters.NAMES},{source:["maintitle","mainsubtitle","maintitleaddon"],target:"container-title",when:{source:!0,target:{"number-of-volumes":!0}},convert:s.Converters.TITLE},{source:["booktitle","booksubtitle","booktitleaddon"],target:"container-title",when:{source:{maintitle:!1},target:{"number-of-volumes":!1,type:e=>!e.startsWith("article")}},convert:s.Converters.TITLE},{source:["journaltitle","journalsubtitle","journaltitleaddon"],target:"container-title",when:{source:{[s.TYPE]:"article"},target:{type:["article","article-newspaper","article-journal","article-magazine"]}},convert:s.Converters.TITLE},{source:"shortjournal",target:"container-title-short",when:{source:{[s.TYPE]:"article"},target:{type:["article","article-newspaper","article-journal","article-magazine"]}}},{source:"shortjournal",target:"journalAbbreviation",when:{source:!1,target:{"container-title-short":!1}}},{source:"number",target:"collection-number",when:{source:{[s.TYPE]:["book","mvbook","inbook","bookinbook","suppbook","collection","mvcollection","incollection","suppcollection","manual","suppperiodical","proceedings","mvproceedings","refererence"]},target:{type:["bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legislation","legal_case","manuscript","map","motion_picture","musical_score","pamphlet","post","post-weblog","personal_communication","review","review-book","song","speech","thesis","treaty","webpage"]}}},{source:"series",target:"collection-title"},{source:"shortseries",target:"collection-title-short"},{source:"doi",target:"DOI"},{source:"edition",target:"edition"},{source:"editor",target:"editor",convert:s.Converters.NAMES},{source:[s.TYPE,"entrysubtype","type"],target:["type","genre"],convert:{toTarget:(e,t,n)=>(n||("masterthesis"===e&&(n="mathesis"),"phdthesis"===e&&(n="phdthesis"),"techreport"===e&&(n="techreport")),[a.default.source[e]||"book",n||t]),toSource(e,t){const n=a.default.target[e]||"misc";return t in s.TYPE_KEYS?[n,void 0,t]:[n,t]}}},{source:s.TYPE,when:{target:{type:!1}},convert:{toSource:()=>"misc"}},{source:"eventdate",target:"event-date",convert:s.Converters.DATE},{source:"venue",target:"event-place"},{source:"eventtitle",target:"event"},{source:s.LABEL,target:["id","citation-label","author","issued","year-suffix","title"],convert:s.Converters.LABEL},{source:"isbn",target:"ISBN"},{source:"issn",target:"ISSN"},{source:"issue",target:"issue",when:{source:{number:!1,[s.TYPE]:["article","periodical"]},target:{issue:e=>"string"===typeof e&&!e.match(/\d+/),type:["article","article-journal","article-newspaper","article-magazine"]}}},{source:"number",target:"issue",when:{source:{[s.TYPE]:["article","periodical","inproceedings"]},target:{issue:e=>e&&("number"===typeof e||e.match(/\d+/)),type:["article","article-journal","article-newspaper","article-magazine","paper-conference"]}}},{source:"date",target:"issued",convert:s.Converters.DATE},{source:["year","month","day"],target:"issued",convert:s.Converters.YEAR_MONTH,when:{source:{date:!1},target:!1}},{source:"location",target:"jurisdiction",when:{source:{type:"patent"},target:{type:"patent"}}},{source:"keywords",target:"keyword",convert:s.Converters.KEYWORDS},{source:"language",target:"language",convert:s.Converters.PICK},{source:"note",target:"note"},{source:["isan","ismn","isrn","iswc"],target:"number",convert:s.Converters.STANDARD_NUMBERS,when:{source:{[s.TYPE]:e=>"patent"!==e},target:{type:e=>"patent"!==e}}},{source:"number",target:"number",when:{source:{[s.TYPE]:["patent","report","techreport","legislation"]},target:{type:["patent","report","legislation"]}}},{source:"origdate",target:"original-date",convert:s.Converters.DATE},{source:"origlocation",target:"original-publisher-place",convert:s.Converters.PICK},{source:"origpublisher",target:"original-publisher",convert:s.Converters.PICK},{source:"origtitle",target:"original-title"},{source:["pages","eid"],target:"page",convert:{toTarget:(e,t)=>t?t.replace(/^e?/i,"e"):e.replace(/[\u2013\u2014]/,"-"),toSource:e=>/^e/i.test(e)?[e,e]:[e.replace("-","--")]}},{source:"pagetotal",target:"number-of-pages"},{source:["eprint","eprinttype"],target:"PMID",convert:s.Converters.EPRINT},{source:"location",target:"publisher-place",convert:s.Converters.PICK},{source:"publisher",target:"publisher",convert:s.Converters.PICK,when:{source:!0,target:{type:["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","regulation","review","review-book","song","speech","treaty"]}}},{source:"organization",target:"publisher",convert:s.Converters.PICK,when:{source:{publisher:!1},target:{type:"webpage"}}},{source:"institution",target:"publisher",convert:s.Converters.PICK,when:{source:{publisher:!1,organization:!1},target:{type:["report","thesis"]}}},{source:"howpublished",target:"publisher",convert:s.Converters.PICK,when:{source:{publisher:!1,organization:!1,institution:!1},target:{type:"manuscript"}}},{source:["pages","bookpagination"],target:"section",when:{source:{bookpagination:"section"},target:{page:!1}},convert:{toTarget:e=>e,toSource:e=>[e,"section"]}},{source:"pubstate",target:"status",convert:s.Converters.STATUS},{source:"shorttitle",target:"title-short"},{source:["title","subtitle","titleaddon"],target:"title",convert:s.Converters.TITLE},{source:"translator",target:"translator",convert:s.Converters.NAMES},{source:"url",target:"URL"},{source:"howpublished",target:"URL",convert:s.Converters.HOW_PUBLISHED,when:{source:{url:!1},target:!1}},{source:"version",target:"version"},{source:"volume",target:"volume"},{source:"volumes",target:"number-of-volumes"}]);t.default=u},5928:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(8660),o=n(1732),a=(r=n(9776))&&r.__esModule?r:{default:r},s=n(448);var l=new i.util.Translator([{source:"note",target:"accessed",when:{source:!1,target:{note:!1}},convert:{toSource:e=>"[Online; accessed ".concat((0,o.format)(e),"]")}},{source:"annote",target:"annote"},{source:"address",target:"publisher-place",convert:s.Converters.PICK},{source:"author",target:"author",convert:s.Converters.NAMES},{source:"chapter",target:"chapter-number"},{source:"number",target:"collection-number",when:{source:{[s.TYPE]:["book","mvbook","inbook","collection","mvcollection","incollection","suppcollection","manual","suppperiodical","proceedings","mvproceedings","refererence"]},target:{type:["bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legislation","legal_case","manuscript","map","motion_picture","musical_score","pamphlet","post","post-weblog","personal_communication","review","review-book","song","speech","thesis","treaty","webpage"]}}},{source:"series",target:"collection-title"},{source:"booktitle",target:"container-title",when:{target:{type:["chapter","paper-conference"]}}},{source:"journal",target:"container-title",when:{source:{[s.TYPE]:"article"},target:{type:["article","article-newspaper","article-journal","article-magazine"]}}},{source:"edition",target:"edition"},{source:"editor",target:"editor",convert:s.Converters.NAMES},{source:s.LABEL,target:["id","citation-label","author","issued","year-suffix","title"],convert:s.Converters.LABEL},{source:"number",target:"issue",when:{source:{[s.TYPE]:["article","periodical","inproceedings"]},target:{issue:e=>"number"===typeof e||"string"===typeof e&&e.match(/\d+/),type:["article","article-journal","article-newspaper","article-magazine","paper-conference"]}}},{source:["year","month","day"],target:"issued",convert:s.Converters.YEAR_MONTH},{source:"note",target:"note"},{source:"number",target:"number",when:{source:{[s.TYPE]:["patent","report","techreport"]},target:{type:["patent","report"]}}},{source:"pages",target:"page",convert:{toTarget:e=>e.replace(/[\u2013\u2014]/,"-"),toSource:e=>e.replace("-","--")}},{source:"publisher",target:"publisher",convert:s.Converters.PICK,when:{target:{type:["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","map","motion_picture","musical_score","pamphlet","patent","personal_communication","post","post-weblog","review","review-book","song","speech","treaty","webpage"]}}},{source:"organization",target:"publisher",convert:s.Converters.PICK,when:{source:{publisher:!1},target:{type:"paper-conference"}}},{source:"institution",target:"publisher",convert:s.Converters.PICK,when:{source:{publisher:!1,organization:!1},target:{type:"report"}}},{source:"school",target:"publisher",convert:s.Converters.PICK,when:{source:{institution:!1,organization:!1,publisher:!1},target:{type:"thesis"}}},{source:"howpublished",target:"publisher",convert:s.Converters.PICK,when:{source:{publisher:!1,organization:!1,institution:!1,school:!1},target:{type:"manuscript"}}},{source:"title",target:"title"},{source:[s.TYPE,"type"],target:["type","genre"],convert:{toTarget(e,t){const n=a.default.source[e]||"book";return t?[n,t]:"mastersthesis"===e?[n,"Master's thesis"]:"phdthesis"===e?[n,"PhD thesis"]:[n]},toSource(e,t){const n=a.default.target[e]||"misc";return/^(master'?s|diploma) thesis$/i.test(t)?["mastersthesis"]:/^(phd|doctoral) thesis$/i.test(t)?["phdthesis"]:[n,t]}}},{source:s.TYPE,when:{target:{type:!1}},convert:{toSource:()=>"misc"}},{source:"howpublished",target:"URL",convert:s.Converters.HOW_PUBLISHED,when:{target:{publisher:!1}}},{source:"volume",target:"volume"}]);t.default=l},3272:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.format=function(e){return h(e,i.default)},t.formatBibtex=function(e){return h(e,o.default)},t.parse=function(e){return p(e,i.default)},t.parseBibtex=function(e){return p(e,o.default)};var r=n(448),i=a(n(9264)),o=a(n(5928));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(e.crossref in t){const n=t[e.crossref].properties;return n===e?e:Object.assign({},d(n,t),e)}return e}function p(e,t){const n={};for(const r of e)n[r.label]=r;return e.map((e=>{let{type:i,label:o,properties:a}=e;return t.convertToTarget(function(e){for(var t=1;t{const n=t.convertToSource(e),{[r.TYPE]:i,[r.LABEL]:o}=n;return{type:i,label:o,properties:s(n,[r.TYPE,r.LABEL].map(l))}}))}},448:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TYPE_KEYS=t.TYPE=t.STANDARD_NUMBERS_PATTERN=t.MONTHS=t.LABEL=t.Converters=void 0,t.formatLabel=g,t.parseDate=f,t.parseMonth=m;var r,i=n(8660),o=(r=n(1364))&&r.__esModule?r:{default:r};const a=new Set(["the","a","an"]),s=/(?:<\/?.*?>|[\u0020-\u002F\u003A-\u0040\u005B-\u005E\u0060\u007B-\u007F])+/g,l=/[^\u0020-\u007F]+/g;function c(e){return e?e.normalize("NFKD").replace(l,"").split(s).find((e=>e.length&&!a.has(e.toLowerCase()))):""}const u=new i.util.Translator([{source:"given",target:"given"},{source:"family",target:"family"},{source:"suffix",target:"suffix"},{source:"prefix",target:"non-dropping-particle"},{source:"family",target:"literal",when:{source:!1,target:{family:!1,given:!1}}}]),d=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"];t.TYPE="BibTeX type";t.LABEL="BibTeX label";const p={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12,january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12};t.MONTHS=p;t.TYPE_KEYS={bathesis:"Bachelor's thesis",mathesis:"Master's thesis",phdthesis:"PhD thesis",candthesis:"Candidate thesis",techreport:"technical report",resreport:"research report",software:"computer software",datacd:"data cd",audiocd:"audio cd",patent:"patent",patentde:"German patent",patenteu:"European patent",patentfr:"French patent",patentuk:"British patent",patentus:"U.S. patent",patreq:"patent request",patreqde:"German patent request",patreqeu:"European patent request",patreqfr:"French patent request",patrequk:"British patent request",patrequs:"U.S. patent request"};const h=/(^(?:ISAN )?(?:[0-9a-f]{4}-){4}[0-9a-z](?:-(?:[0-9a-f]{4}-){2}[0-9a-z])?$)|(^(?:979-?0-?|M-?)(?:\d{9}|(?=[\d-]{11}$)\d+-\d+-\d)$)|(^ISRN .{1,36}$)|(^(?:ISWC )?T-?\d{9}-?\d$)/i;function f(e){const t=e.split("T")[0].replace(/[?~%]$/,"").split("-"),n=+t[0].replace(/^Y(?=-?\d{4}\d+)/,"").replace(/X/g,"0"),r=+t[1],i=+t[2];return!r||r>20?[n]:i?[n,r,i]:[n,r]}function m(e){if(null==e)return[];if(+e)return[parseInt(e,10)];if((e=e.trim().toLowerCase())in p)return[p[e]];const t=e.split(/\s+/);let n,r;return t[0]in p?(n=p[t[0]],r=parseInt(t[1])):t[1]in p&&(n=p[t[1]],r=parseInt(t[0])),r?[n,r]:n?[n]:[]}function g(e,t,n,r){let i="";return e&&e[0]&&(i+=c(e[0].family||e[0].literal)),t&&t["date-parts"]&&t["date-parts"][0]&&(i+=t["date-parts"][0][0]),n?i+=n:r&&(i+=c(r)),i}t.STANDARD_NUMBERS_PATTERN=h;const v={PICK:{toTarget(){for(var e=arguments.length,t=new Array(e),n=0;n[e]},DATE:{toTarget(e){const t=e.split("/").map((e=>e&&".."!==e?f(e):void 0));return isNaN(t[0][0])?{literal:e}:{"date-parts":t}},toSource(e){if("date-parts"in e)return e["date-parts"].map((e=>e.map((e=>e.toString().padStart(2,"0"))).join("-"))).join("/")}},YEAR_MONTH:{toTarget:(e,t,n)=>isNaN(+e)?{literal:e}:isNaN(+n)||isNaN(+t)?{"date-parts":[[+e,...m(t)]]}:{"date-parts":[[+e,+t,+n]]},toSource(e){if("date-parts"in e){const[t,n,r]=e["date-parts"][0];return[t.toString(),n?r?"".concat(d[n-1]," ").concat(r):n:void 0]}return[]}},EPRINT:{toTarget(e,t){if("pubmed"===t)return e},toSource:e=>[e,"pubmed"]},HOW_PUBLISHED:{toTarget(e){if(e.startsWith("http"))return e}},KEYWORDS:{toTarget:e=>e.join(","),toSource:e=>e.split(",")},LABEL:{toTarget:e=>[e,e],toSource(e,t,n,r,i,a){let l;return l=null===e?"null":void 0===e?"undefined":e.toString().replace(s,""),o.default.format.useIdAsLabel?l:t&&!s.test(t)?t:g(n,r,i,a)||l}},NAMES:{toTarget:e=>e.map(u.convertToTarget),toSource:e=>e.map(u.convertToSource)},STANDARD_NUMBERS:{toTarget(){for(var e=arguments.length,t=new Array(e),n=0;n(t&&(e+=": "+t),e),toSource:e=>[e]}};t.Converters=v},4248:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.format=function(e,t){const n=e.map((e=>function(e,t){let{type:n,label:r,properties:i}=e;const o=Object.entries(i).map((e=>{let[n,r]=e;return t.listItem.join("".concat(n," = {").concat(r,"},"))}));return t.entry.join("@".concat(n,"{").concat(r,",").concat(t.list.join(o.join("")),"}"))}(e,t))).join("");return t.bibliographyContainer.join(n)}},2683:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.format=function(e,t){const n=e.map((e=>function(e,t){let{type:n,label:r,properties:i}=e;const o=Object.entries(i).concat([["type",n]]).map((e=>{let[n,r]=e;return t.listItem.join("".concat(n,": ").concat(r))}));return t.entry.join("[".concat(r,"]").concat(t.list.join(o.join(""))))}(e,t))).join("\n");return t.bibliographyContainer.join(n)}},5480:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.format=function(e){return(0,r.format)(e).map(o)},t.formatBibtex=function(e){return(0,r.formatBibtex)(e).map(o)};var r=n(3272),i=n(6720);function o(e){let{type:t,label:n,properties:r}=e;const o={};for(const a in r){const e=r[a];o[a]=(0,i.format)(a,e)}return{type:t,label:n,properties:o}}},3384:(e,t,n)=>{"use strict";t.c=void 0;var r=n(8660),i=n(5480),o=n(4248),a=n(2683);const s=function(e,t){return function(n){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:o,format:a=o||"text"}=i;if(n=e(n),"object"===a)return n;if(r.plugins.dict.has(a))return t(n,r.plugins.dict.get(a),i);throw new RangeError('Output dictionary "'.concat(a,'" not available'))}};var l={bibtex:s(i.formatBibtex,o.format),biblatex:s(i.format,o.format),bibtxt:s(i.formatBibtex,a.format)};t.c=l},6720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.format=function(e,t){if(!(e in r.fieldTypes))return d(t,"verbatim");const[n,i]=r.fieldTypes[e];return n in s?function(e,t,n){const r=s[n];return e.map((e=>{const n=d(e,t);return n.includes(r)?"{".concat(n,"}"):n})).join(r)}(t,i,n):d(t,i)};var r=n(2188);const i={};for(const p in r.commands)i[r.commands[p]]=p;for(const p in r.diacritics)i[r.diacritics[p]]=p;for(const p in r.ligatures)i[r.ligatures[p]]=p;const o=/[^a-zA-Z0-9\s!"#%&'()*+,\-./:;=?@[\]{}\u0300-\u0308\u030a-\u030c\u0332\u0323\u0327\u0328\u0361\u0326]/g,a=/.[\u0300-\u0308\u030a-\u030c\u0332\u0323\u0327\u0328\u0361\u0326]+/g,s={separated:",",list:" and "},l={i:"\\textit{",b:"\\textbf{",sc:"\\textsc{",sup:"\\textsuperscript{",sub:"\\textsubscript{",'span style="font-variant:small-caps;"':"\\textsc{",'span class="nocase"':"{"};function c(e){return e.normalize("NFKD").replace(o,(e=>e in i?i[e]in r.ligatures?i[e]:"\\".concat(i[e],"{}"):"")).replace(a,(e=>Array.from(e).reduce(((e,t)=>"{\\".concat(i[t]," ").concat(e,"}")))))}function u(e){const t=[];let n=e.split(/<(\/?(?:i|b|sc|sup|sub|span)|span .*?)>/g);return n=n.map(((e,n)=>n%2===0?c(e):e in l?(t.push("/"+e.split(" ")[0]),l[e]):e===t[t.length-1]?(t.pop(),"}"):"")),n.join("")}function d(e,t){switch(t){case"title":return u(e).split(/(:\s*)/).map(((e,t)=>t%2?e:e.replace(/(?!^)\b[a-z]*[A-Z].*?\b/g,"{$&}"))).join("");case"literal":return u(e.toString());case"name":return function(e){if(e.family&&!e.prefix&&!e.given&!e.suffix)return e.family.includes(s.list)?e.family:"{".concat(e.family,"}");const t=[""];return e.prefix&&e.family&&(t[0]+=e.prefix+" "),e.family&&(t[0]+=e.family),e.suffix?(t.push(e.suffix),t.push(e.given||"")):t.push(e.given),c(t.join(", ").trim())}(e);case"verbatim":case"uri":return e.toString();default:return c(e.toString())}}},1732:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"format",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return r.default}});var r=o(n(7764)),i=o(n(2348));function o(e){return e&&e.__esModule?e:{default:e}}},7764:(e,t)=>{"use strict";function n(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)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(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.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n+e<0)))return null;r=+n[0]<0||+n[0]>+n[1]&&+n[1]>0?n.pop():n.shift()}return[n.pop(),r]}return null}(e)||function(e){if("string"!==typeof e)return null;const t=e.match(/^(\d+) ?(a\.?d\.?|b\.?c\.?)$/i);if(t){const e=n(t.slice(1),2);return[e[0]*("a"===e[1].toLowerCase()[0]?1:-1)]}return/^-?\d+$/.test(e)?[e]:null}(e);return t&&t.map((e=>parseInt(e)))}var d=function(e,t){const n=[],r="string"===typeof e&&function(e){return a.test(e)?e.match(a).slice(1,3):e.split(o)}(e);t?n.push(e,t):r&&2===r.length?n.push(...r):n.push(e);const i=n.map(u);return i.filter(Boolean).length===n.length?{"date-parts":i}:{raw:t?n.join("/"):e}};t.default=d},2348:(e,t)=>{"use strict";function n(e,t,n){if(e.length>=t)return e;for(;e.length1&&void 0!==arguments[1]?arguments[1]:"-";if(!e["date-parts"])return e.raw;const r=e["date-parts"][0].map((e=>e.toString()));switch(r.length){case 3:r[2]=n(r[2],2,"0");case 2:r[1]=n(r[1],2,"0");case 1:r[0]=n(r[0],4,"0")}return r.join(t)};t.default=r},572:(e,t,n)=>{"use strict";n.r(t);var r=n(8660);const i=JSON.parse('{"en-US":"This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License2015-10-10T23:31:02+00:00accessedandand othersanonymousanon.atavailable atbycircac.citededitioneditionsed.et al.forthcomingfromibid.inin pressinternetinterviewletterno daten.d.onlinepresented at thereferencereferencesref.refs.retrievedscaleversionADBC\u201c\u201d\u2018\u2019\u2013thstndrdthththfirstsecondthirdfourthfifthsixthseventheighthninthtenthbookbookschapterchapterscolumncolumnsfigurefiguresfoliofoliosnumbernumberslinelinesnotenotesopusoperapagepagespagepagesparagraphparagraphspartpartssectionsectionssub verbosub verbisverseverses\\nvolumevolumesbk.bks.chap.chaps.col.cols.fig.figs.fol.fols.no.nos.l.ll.n.nn.op.opp.p.pp.p.pp.para.paras.pt.pts.sec.secs.s.v.s.vv.v.vv.vol.vols.\xb6\xb6\xb6\xa7\xa7\xa7directordirectorseditoreditorseditoreditorsillustratorillustratorstranslatortranslatorseditor & translatoreditors & translatorsdir.dirs.ed.eds.ed.eds.ill.ills.tran.trans.ed. & tran.eds. & trans.bydirected byedited byedited byillustrated byinterview bytobytranslated byedited & translated bydir. byed. byed. byillus. bytrans. byed. & trans. byJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptember\\nOctoberNovemberDecemberJan.Feb.Mar.Apr.MayJun.Jul.Aug.Sep.Oct.Nov.Dec.SpringSummerAutumnWinter","nl-NL":"Rintze Zellehttp://twitter.com/rintzezelleThis work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License2012-07-04T23:31:02+00:00geraadpleegdenen anderenanoniemanon.bijbeschikbaar opdoorcircac.geciteerdeditieeditiesed.e.a.in voorbereidingvanibid.inin drukinternetinterviewbriefzonder datumz.d.onlinegepresenteerd bijreferentiereferentiesref.refs.geraadpleegdschaalversieADBC\u201c\u201d\u2018\u2019\u2013stededededededededededededededededededeeerstetweedederdevierdevijfdezesdezevendeachtstenegendetiendeboekboekenhoofdstukhoofdstukkencolumncolumnsfiguurfigurenfoliofolio\'snummernummersregelregels\\naantekeningaantekeningenopusoperapaginapagina\'spaginapagina\'sparagraafparagrafendeeldelensectiesectiessub verbosub verbisversversenvolumevolumesbk.hfdst.col.fig.f.nr.l.n.op.p.pp.p.pp.par.deelsec.s.v.s.vv.v.vv.vol.vols.\xb6\xb6\xb6\xa7\xa7\xa7regisseurregisseursredacteurredacteurenredacteurredacteurenillustratorillustratorsvertalervertalersredacteur & vertalerredacteuren & vertalersreg.reg.red.red.red.red.ill.ill.vert.vert.red. & vert.red. & vert.doorgeregisseerd doorbewerkt doorbewerkt doorge\xefllustreerd doorge\xefnterviewd doorontvangen doordoorvertaald doorbewerkt & vertaald doorgeregisseerd doorbewerkt doorbewerkt doorge\xefllustreerd doorvertaald doorbewerkt & vertaald door\\njanuarifebruarimaartaprilmeijunijuliaugustusseptemberoktobernovemberdecemberjan.feb.mrt.apr.meijun.jul.aug.sep.okt.nov.dec.lentezomerherstwinter","fr-FR":"Gr\xe9goire CollyThis work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License2012-07-04T23:31:02+00:00consult\xe9 leetet autresanonymeanon.surdisponible surparversv.cit\xe9\xe9dition\xe9ditions\xe9d.et al.\xe0 para\xeetre\xe0 l\'adresseibid.insous presseInternetentretienlettresans dates. d.en lignepr\xe9sent\xe9 \xe0r\xe9f\xe9rencer\xe9f\xe9rencesr\xe9f.r\xe9f.consult\xe9\xe9chelleversionapr. J.-C.av. J.-C.\xab  \xbb\u201c\u201d\u1d49\u02b3\u1d49\u1d49\u02b3premierdeuxi\xe8metroisi\xe8mequatri\xe8mecinqui\xe8mesixi\xe8mesepti\xe8mehuiti\xe8meneuvi\xe8medixi\xe8melivrelivreschapitrechapitrescolonnecolonnesfigurefiguresfoliofoliosnum\xe9ronum\xe9roslignelignesnotenotesopusopuspagepagespagepagesparagrapheparagraphespartiepartiessectionsections\\nsub verbosub verbisversetversetsvolumevolumesliv.chap.col.fig.f\u1d52f\u1d52\u02e2n\u1d52n\u1d52\u02e2l.n.op.p.p.p.p.paragr.part.sect.s. v.s. vv.v.v.vol.vol.\xa7\xa7\xa7\xa7r\xe9alisateurr\xe9alisateurs\xe9diteur\xe9diteursdirecteurdirecteursillustrateurillustrateurstraducteurtraducteurs\xe9diteur et traducteur\xe9diteurs et traducteursr\xe9al.r\xe9al.\xe9d.\xe9d.dir.dir.ill.ill.trad.trad.\xe9d. et trad.\xe9d. et trad.parr\xe9alis\xe9 par\xe9dit\xe9 parsous la direction deillustr\xe9 parentretien r\xe9alis\xe9 par\xe0partraduit par\xe9dit\xe9 et traduit parr\xe9al. par\xe9d. parss la dir. deill. partrad. par\xe9d. et trad. parjanvierf\xe9vriermarsavrilmaijuinjuilletao\xfbtseptembre\\noctobrenovembred\xe9cembrejanv.f\xe9vr.marsavr.maijuinjuill.ao\xfbtsept.oct.nov.d\xe9c.printemps\xe9t\xe9automnehiver","de-DE":"This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License2012-07-04T23:31:02+00:00zugegriffenundund andereohne Autoro. A.aufverf\xfcgbar untervoncircaca.zitiertAuflageAuflagenAufl.u. a.i. E.vonebd.inim DruckInternetInterviewBriefohne Datumo. J.onlinegehalten auf derReferenzReferenzenRef.Ref.abgerufenMa\xdfstabVersionn. Chr.v. Chr.\u201e\u201c\u201a\u2018\u2013.ersterzweiterdrittervierterf\xfcnftersechstersiebterachterneunterzehnterBuchB\xfccherKapitelKapitelSpalteSpaltenAbbildungAbbildungenBlattBl\xe4tterNummerNummernZeileZeilenNoteNotenOpusOperaSeiteSeitenSeiteSeitenAbsatzAbs\xe4tzeTeilTeileAbschnittAbschnittesub verbosub verbisVersVerseBandB\xe4ndeB.\\nKap.Sp.Abb.Fol.Nr.Z.N.op.S.S.S.S.Abs.TeilAbschn.s. v.s. vv.V.V.Bd.Bde.\xb6\xb6\xb6\xa7\xa7\xa7RegisseurRegisseureHerausgeberHerausgeberReihenherausgeberReihenherausgeberHerausgeberHerausgeberIllustratorIllustratoren\xdcbersetzer\xdcbersetzerHerausgeber & \xdcbersetzerHerausgeber & \xdcbersetzerReg.Reg.Hrsg.Hrsg.Hrsg.Hrsg.Hrsg.Hrsg.Ill.Ill.\xdcbers.\xdcbers.Hrsg. & \xdcbers.Hrsg. & \xdcbersvonRegie vonherausgegeben vonherausgegeben vonherausgegeben vonillustriert voninterviewt vonanvon\xfcbersetzt vonherausgegeben und \xfcbersetzt vonReg.hg. vonhg. vonhg. vonillus. von\xfcbers. vonhg. & \xfcbers. vonJanuarFebruarM\xe4rzAprilMaiJuniJuliAugustSeptemberOktoberNovemberDezemberJan.Feb.\\nM\xe4rzApr.MaiJuniJuliAug.Sep.Okt.Nov.Dez.Fr\xfchjahrSommerHerbstWinter","es-ES":"This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License2012-07-04T23:31:02+00:00accedidoyy otrosan\xf3nimoan\xf3n.endisponible endecircac.citadoedici\xf3nedicionesed.et al.previstoa partir deibid.enen imprentainternetentrevistacartasin fechas. f.en l\xedneapresentado enreferenciareferenciasref.refs.recuperadoescalaversi\xf3nd. C.a. C.\xab\xbb\u201c\u201d-.\xaaprimerasegundaterceracuartaquintasextas\xe9ptimaoctavanovenad\xe9cimalibrolibroscap\xedtulocap\xedtuloscolumnacolumnasfigurafigurasfoliofoliosn\xfameron\xfamerosl\xedneal\xedneasnotanotasopusoperap\xe1ginap\xe1ginasp\xe1ginap\xe1ginasp\xe1rrafop\xe1rrafospartepartessecci\xf3nseccionessub vocesub vocibusversoversosvolumenvol\xfameneslib.\\ncap.col.fig.f.n.\xbal.n.op.p.pp.p.pp.p\xe1rr.pt.sec.s. v.s. vv.v.vv.vol.vols.\xa7\xa7\xa7\xa7directordirectoreseditoreditoreseditoreditoresilustradorilustradorestraductortraductoreseditor y traductoreditores y traductoresdir.dirs.ed.eds.ed.eds.ilust.ilusts.trad.trads.ed. y trad.eds. y trads.dedirigido poreditado poreditado porilustrado porentrevistado poraportraducido poreditado y traducido pordir.ed.ed.ilust.trad.ed. y trad.enerofebreromarzoabrilmayojuniojulioagostoseptiembreoctubrenoviembrediciembreene.feb.mar.abr.mayjun.jul.ago.sep.oct.nov.\\ndic.primaveraveranooto\xf1oinvierno"}'),o=new r.util.Register(i),a=JSON.parse('{"apa":"","vancouver":"","harvard1":""}'),s=new r.util.Register(a);var l=n(3024),c=n.n(l);const u=Symbol.for("proxied"),d=function(e){const t=function(t,n){if(t.sys.wrapBibliographyEntry){const[e,r]=t.sys.wrapBibliographyEntry(this.system_id);n=[e,n,r].join("")}return e.call(this,t,n)};return t[u]=!0,t};for(const g in c().Output.Formats){const e=c().Output.Formats[g]["@bibliography/entry"];e&&!e[u]&&(c().Output.Formats[g]["@bibliography/entry"]=d(e))}function p(e){const t=e.replace("-","_");return o.has(e)?o.get(e):o.has(t)?o.get(t):void 0}const h={},f=function(e,t,n,r){if(!c().Output.Formats[r]||!c().Output.Formats[r]["@bibliography/entry"])throw new TypeError("Cannot find format '".concat(r,"'"));const i=e.reduce(((e,t)=>(e[t.id]=t,e)),{}),a=s.get(s.has(t)?t:"apa"),l=function(e,t,n,r,i){const o="".concat(e,"|").concat(t);let a;return h[o]instanceof c().Engine?(a=h[o],a.sys.retrieveItem=r,a.updateItems([])):a=h[o]=new(c().Engine)({retrieveLocale:i,retrieveItem:r},n,t,!0),a}(t,n=o.has(n)?n:"en-US",a,(function(e){if(Object.prototype.hasOwnProperty.call(i,e))return i[e];throw new Error("Cannot find entry with id '".concat(e,"'"))}),p);return l.setOutputFormat(r),l},m=(e,t)=>"function"===typeof t?t(e):t||"";r.plugins.add("@csl",{output:{bibliography:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{template:n="apa",lang:r="en-US",format:i="text",nosort:o=!1}=t,a=t.entry?[].concat(t.entry):e.map((e=>{let{id:t}=e;return t})),s=f(e,n,r,i),l=s.updateItems(a,o);if(t.append||t.prepend){const n=e.reduce(((e,t)=>(e[t.id]=t,e)),{});s.sys.wrapBibliographyEntry=function(e){const r=n[e];return[m(r,t.prepend),m(r,t.append)]}}else s.sys.wrapBibliographyEntry=()=>["",""];const c=s.makeBibliography(),[{bibstart:u,bibend:d},p]=c,h=p.map(((e,t)=>{return n=e,r=l[t],((e,t,n)=>e.replace(/^\s*<[a-z]+/i,"$& data-".concat(t,'="').concat(n,'"')))(n,"csl-entry-id",r);var n,r}));return t.asEntryArray?h.map(((e,t)=>[l[t],e])):u+h.join("")+d},citation:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{template:n="apa",lang:r="en-US",format:i="text"}=t,o=e.map((e=>{let{id:t}=e;return t})),a=t.entry?[].concat(t.entry):o,s=f(e,n,r,i);s.updateItems(o);const{citationsPre:l=[],citationsPost:c=[]}=t;return s.previewCitationCluster({citationItems:a.map((e=>"object"===typeof e?e:{id:e})),properties:{noteIndex:0}},l,c,i)}},config:{engine:f,locales:o,templates:s}})},376:(e,t,n)=>{"use strict";t.ig=void 0;var r,i=(r=n(3024))&&r.__esModule?r:{default:r},o=n(9400),a=n(3548);const s=Symbol.for("proxied"),l=function(e){const t=function(t,n){if(t.sys.wrapBibliographyEntry){const[e,r]=t.sys.wrapBibliographyEntry(this.system_id);n=[e,n,r].join("")}return e.call(this,t,n)};return t[s]=!0,t};for(const p in i.default.Output.Formats){const e=i.default.Output.Formats[p]["@bibliography/entry"];e&&!e[s]&&(i.default.Output.Formats[p]["@bibliography/entry"]=l(e))}function c(e){const t=e.replace("-","_");return a.locales.has(e)?a.locales.get(e):a.locales.has(t)?a.locales.get(t):void 0}const u={},d=function(e,t,n,r,o){const a="".concat(e,"|").concat(t);let s;return u[a]instanceof i.default.Engine?(s=u[a],s.sys.retrieveItem=r,s.updateItems([])):s=u[a]=new i.default.Engine({retrieveLocale:o,retrieveItem:r},n,t,!0),s};t.ig=d},3548:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locales=t.default=void 0;var r,i=n(8660),o=(r=n(9240))&&r.__esModule?r:{default:r};const a=new i.util.Register(o.default);t.locales=a;var s=e=>a.has(e)?a.get(e):a.get("en-US");t.default=s},9400:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.templates=t.default=void 0;var r,i=n(8660),o=(r=n(5832))&&r.__esModule?r:{default:r};const a=new i.util.Register(o.default);t.templates=a;var s=e=>a.has(e)?a.get(e):a.get("apa");t.default=s},3092:(e,t,n)=>{"use strict";n.r(t),n.d(t,{formats:()=>y,parsers:()=>b,ref:()=>v});var r={};n.r(r),n.d(r,{default:()=>l,parse:()=>l});var i={};n.r(i),n.d(i,{default:()=>u,parse:()=>u});var o={};n.r(o),n.d(o,{default:()=>d,parse:()=>d});var a={};n.r(a),n.d(a,{parse:()=>g,parseAsync:()=>f});var s=n(8660);function l(e){return(Array.isArray(e)?e:e.trim().split(/(?:\s+)/g)).map((e=>"https://doi.org/".concat(e)))}const c={"journal-article":"article-journal","book-chapter":"chapter","posted-content":"manuscript","proceedings-article":"paper-conference"};function u(e,t){return"posted-content"===e&&"preprint"===t.subtype?"article":c[e]||e}function d(e){const t={type:u(e.type,e)};return["submitted","issued","event-date","original-date","container","accessed"].forEach((t=>{const n=e[t];n&&n["date-parts"]&&"number"===typeof n["date-parts"][0]&&(n["date-parts"]=[n["date-parts"]])})),Object.assign({},e,t)}const p={checkContentType:!0,headers:{Accept:"application/vnd.citationstyles.csl+json"}};async function h(e){const t=await s.util.fetchFileAsync(e,p);return"[]"===t?{}:JSON.parse(t)}async function f(e){return(await Promise.all([].concat(e).map(h))).map(d)}function m(e){const t=s.util.fetchFile(e,p);return"[]"===t?{}:JSON.parse(t)}function g(e){return[].concat(e).map(m).map(d)}const v="@doi",b={id:r,api:a,json:o,type:i},y={"@doi/api":{parse:g,parseAsync:f,parseType:{dataType:"String",predicate:/^\s*(https?:\/\/(?:dx\.)?doi\.org\/(10.\d{4,9}\/[-._;()/:A-Z0-9]+))\s*$/i,extends:"@else/url"}},"@doi/id":{parse:l,parseType:{dataType:"String",predicate:/^\s*(10.\d{4,9}\/[-._;()/:A-Z0-9]+)\s*$/i}},"@doi/list+text":{parse:l,parseType:{dataType:"String",tokenList:/^10.\d{4,9}\/[-._;()/:A-Z0-9]+$/i}},"@doi/list+object":{parse:l,parseType:{dataType:"Array",elementConstraint:"@doi/id"}},"@doi/type":{parse:u}};s.plugins.add(v,{input:y})},8616:(e,t,n)=>{"use strict";n.r(t);var r=n(8660);const i=JSON.parse('{"outputSpec":"mixed"}'),o=JSON.parse('{"u":{"ABST":"article-journal","ADVS":"motion_picture","AGGR":"dataset","ANCIENT":"manuscript","ART":"graphic","BILL":"bill","BLOG":"post-weblog","BOOK":"book","CASE":"legal_case","CHAP":"chapter","CHART":"figure","CLSWK":"manuscript","COMP":"book","CONF":"paper-conference","CPAPER":"paper-conference","CTLG":"entry","DATA":"dataset","DBASE":"dataset","DICT":"entry-dictionary","EBOOK":"book","ECHAP":"chapter","EDBOOK":"book","EJOUR":"article-journal","ELEC":"webpage","ENCYC":"entry-encyclopedia","EQUA":"article","FIGURE":"figure","GEN":"book","GOVDOC":"report","GRANT":"article","HEAR":"interview","ICOMM":"personal_communication","INPR":"article-journal","JFULL":"article-journal","JOUR":"article-journal","LEGAL":"legislation","MANSCPT":"manuscript","MAP":"map","MGZN":"article-magazine","MPCT":"broadcast","MULTI":"motion_picture","MUSIC":"musical_score","NEWS":"article-newspaper","PAMP":"pamphlet","PAT":"patent","PCOMM":"personal_communication","RPRT":"report","SER":"book","SLIDE":"motion_picture","SOUND":"motion_picture","STAND":"report","STAT":"legislation","THES":"thesis","UNBILL":"manuscript","UNPB":"manuscript","VIDEO":"motion_picture","WEB":"webpage"},"a":{"article-journal":"JOUR","article-magazine":"MGZN","article-newspaper":"NEWS","article":"JOUR","bill":"BILL","book":"BOOK","broadcast":"MPCT","chapter":"CHAP","dataset":"DATA","entry":"CTLG","entry-dictionary":"DICT","entry-encyclopedia":"ENCYC","figure":"FIGURE","graphic":"ART","interview":"GEN","legal_case":"CASE","legislation":"LEGAL","manuscript":"MANSCPT","map":"MAP","motion_picture":"MPCT","musical_score":"MUSIC","pamphlet":"PAMP","paper-conference":"CONF","patent":"PAT","personal_communication":"PCOMM","post-weblog":"BLOG","post":"ICOMM","report":"RPRT","review-book":"BOOK","review":"JOUR","song":"SOUND","speech":"SOUND","thesis":"THES","treaty":"GEN","webpage":"ELEC"}}'),a=JSON.parse('[{"source":"A2","target":"editor","when":{"source":{"TY":["ANCIENT","BLOG","CHAP","CONF","CPAPER","DICT","EBOOK","ECHAP","ENCYC","MUSIC","SER"]},"target":{"type":["chapter","entry-dictionary","entry-encyclopedia","musical_score","paper-conference","post-weblog"]}}},{"source":"A2","target":"collection-editor","when":{"source":{"TY":["BOOK","CLSWK","COMP","EDBOOK","ELEC","MAP","MULTI","RPRT","UNPB"]},"target":{"type":["book","map","report","review-book","webpage"]}}},{"source":"A2","target":"reporter","when":{"source":{"TY":["CASE"]},"target":{"type":["legal_case"]}}},{"source":"A2","target":"recipient","when":{"source":{"TY":["ICOMM","PCOMM"]},"target":{"type":["personal_communication","post"]}}},{"source":"A3","target":"collection-editor","when":{"source":{"TY":["ADVS","CHAP","CONF","EBOOK","MUSIC","SER","SLIDE","SOUND","VIDEO"]},"target":{"type":["chapter","musical_score","paper-conference","song","speech"]}}},{"source":"A3","target":"illustrator","when":{"source":{"TY":["BLOG"]},"target":{"type":["post-weblog"]}}},{"source":"A3","target":"editor","when":{"source":{"TY":["BOOK"]},"target":{"type":["book","review-book"]}}},{"source":["A3","PB"],"target":"publisher","when":{"source":{"TY":["RPRT"]},"target":{"type":["report"]}}},{"source":"A4","target":"translator","when":{"source":{"TY":["ANCIENT","BOOK","CHAP","CLSWK","CTLG","DICT","EDBOOK","ENCYC","GRANT","PAMP"]},"target":{"type":["book","chapter","entry","entry-dictionary","entry-encyclopedia","pamphlet","review-book"]}}},{"source":"AB","target":"abstract","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"AU","target":"author","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BLOG","BOOK","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MULTI","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","THES","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","book","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legislation","manuscript","map","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"AU","target":"editor","when":{"source":{"TY":["EDBOOK"]},"target":false}},{"source":"AU","target":"director","when":{"source":{"TY":["MPCT"]},"target":{"type":["broadcast","motion_picture"]}}},{"source":"AU","target":"composer","when":{"source":{"TY":["MUSIC"]},"target":{"type":["musical_score"]}}},{"source":"AU","target":"reporter","when":{"source":{"TY":["NEWS"]},"target":{"type":["article-newspaper"]}}},{"source":"C1","target":"section","when":{"source":{"TY":["CHAP","ECHAP","SER"]},"target":{"type":["chapter"]}}},{"source":"C1","target":"publisher-place","when":{"source":{"TY":["CONF","CPAPER"]},"target":{"type":["paper-conference"]}}},{"source":"C1","target":"scale","when":{"source":{"TY":["MAP"]},"target":{"type":["map"]}}},{"source":"C2","target":"PMCID","when":{"source":{"TY":["ABST","INPR","JFULL","JOUR"]},"target":{"type":["article","article-journal","review"]}}},{"source":"C2","target":"issue","when":{"source":{"TY":["NEWS"]},"target":{"type":["article-newspaper"]}}},{"source":"C2","target":"number","when":{"source":{"TY":["SER"]},"target":false}},{"source":["C2","DA"],"target":"issued","when":{"source":{"TY":["CONF"]},"target":{"type":["paper-conference"]}}},{"source":["C2","DA","PY"],"target":"issued","when":{"source":{"TY":["PAT"]},"target":{"type":["patent"]}}},{"source":"C3","target":"dimensions","when":{"source":{"TY":["ADVS","MAP","SLIDE","SOUND","VIDEO"]},"target":{"type":["map","song","speech"]}}},{"source":"C3","target":"container-title","when":{"source":{"TY":["CONF"]},"target":{"type":["paper-conference"]}}},{"source":"C3","target":"PMCID","when":{"source":{"TY":["EJOUR"]},"target":false}},{"source":"C3","target":"jurisdiction","when":{"source":{"TY":["PAT"]},"target":{"type":["patent"]}}},{"source":["C3","M1"],"target":"dimensions","when":{"source":{"TY":["ART"]},"target":{"type":["graphic"]}}},{"source":"C5","target":"number","when":{"source":{"TY":["GRANT"]},"target":false}},{"source":"C5","target":"dimensions","when":{"source":{"TY":["MULTI"]},"target":false}},{"source":"C5","target":"references","when":{"source":{"TY":["PAT"]},"target":{"type":["patent"]}}},{"source":["C5","PB"],"target":"publisher","when":{"source":{"TY":["STAT"]},"target":false}},{"source":["C5","PY"],"target":"issued","when":{"source":{"TY":["EBOOK"]},"target":false}},{"source":"C6","target":"status","when":{"source":{"TY":["PAT"]},"target":{"type":["patent"]}}},{"source":"C6","target":"issue","when":{"source":{"TY":["RPRT"]},"target":{"type":["report"]}}},{"source":"C6","target":"volume","when":{"source":{"TY":["STAT"]},"target":false}},{"source":"C7","target":"number","when":{"source":{"TY":["ABST","INPR","JFULL","JOUR"]},"target":{"type":["article","article-journal","review"]}}},{"source":"C7","target":"PMCID","when":{"source":{"TY":["EBOOK","ECHAP"]},"target":false}},{"source":["C7","NV"],"target":"number","when":{"source":{"TY":["EJOUR"]},"target":false}},{"source":"CN","target":"call-number","when":{"source":{"TY":["ABST","ADVS","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CTLG","DATA","DICT","EBOOK","ECHAP","EDBOOK","ELEC","ENCYC","EQUA","FIGURE","GEN","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"CY","target":"publisher-place","when":{"source":{"TY":["ADVS","AGGR","ANCIENT","ART","BLOG","BOOK","CHAP","CHART","CLSWK","COMP","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","HEAR","ICOMM","LEGAL","MANSCPT","MAP","MGZN","MUSIC","NEWS","PAMP","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","THES","UNPB","VIDEO"]},"target":{"type":["article-magazine","article-newspaper","book","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legislation","manuscript","map","musical_score","pamphlet","personal_communication","post","post-weblog","report","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"CY","target":"event-place","when":{"source":{"TY":["CONF","CPAPER"]},"target":{"type":["paper-conference"]}}},{"source":"DA","target":"accessed","when":{"source":{"TY":["AGGR","DBASE","EBOOK","EJOUR","MULTI"]},"target":false}},{"source":["DA","PY"],"target":"issued","when":{"source":{"TY":["ABST","ADVS","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHART","CPAPER","CTLG","DATA","EDBOOK","ELEC","ENCYC","EQUA","FIGURE","GEN","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MUSIC","PAMP","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","bill","book","broadcast","dataset","entry","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":["DA","PY","Y2"],"target":"issued","when":{"source":{"TY":["STAT"]},"target":false}},{"source":["DA","Y2"],"target":"accessed","when":{"source":{"TY":["ECHAP"]},"target":false}},{"source":"DB","target":"source","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"DO","target":"DOI","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"ET","target":"edition","when":{"source":{"TY":["ADVS","ANCIENT","ART","BLOG","BOOK","CHAP","CLSWK","CONF","CTLG","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","GEN","GOVDOC","LEGAL","MAP","MGZN","MPCT","MUSIC","NEWS","PAMP","RPRT","SER","SLIDE","SOUND","VIDEO"]},"target":{"type":["article-magazine","article-newspaper","book","broadcast","chapter","entry","entry-dictionary","entry-encyclopedia","graphic","interview","legislation","map","motion_picture","musical_score","pamphlet","paper-conference","post-weblog","report","review-book","song","speech","treaty","webpage"]}}},{"source":"ET","target":"version","when":{"source":{"TY":["CHART","COMP","DATA","EQUA","FIGURE"]},"target":{"type":["dataset","figure"]}}},{"source":"ET","target":"medium","when":{"source":{"TY":["MANSCPT"]},"target":{"type":["manuscript"]}}},{"source":["ET","PY"],"target":"issued","when":{"source":{"TY":["AGGR","DBASE"]},"target":false}},{"source":"ID","target":"id"},{"source":"IS","target":"number-of-volumes","when":{"source":{"TY":["CHAP"]},"target":{"type":["chapter"]}}},{"source":"IS","target":"issue","when":{"source":{"TY":["ABST","INPR","JFULL","JOUR"]},"target":{"type":["article","article-journal","review"]}}},{"source":"J2","target":"container-title-short","when":{"source":{"TY":["ABST","ANCIENT","BOOK","CHAP","CTLG","DATA","DICT","ENCYC","GRANT","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MGZN","PAMP","PCOMM","SER","STAND","STAT","UNPB"]},"target":{"type":["article","article-journal","article-magazine","book","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","legislation","manuscript","pamphlet","personal_communication","post","review","review-book"]}}},{"source":"KW","target":"keyword","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":["L4","UR"],"target":"URL","when":{"source":{"TY":["HEAR"]},"target":false}},{"source":"LA","target":"language","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"LB","target":"citation-label","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"M1","target":"number","when":{"source":{"TY":["ADVS","AGGR","ANCIENT","BILL","CHART","DICT","EQUA","FIGURE","GEN","HEAR","SLIDE","SOUND","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["bill","entry-dictionary","figure","interview","song","speech","thesis","treaty"]}}},{"source":"M1","target":"collection-number","when":{"source":{"TY":["BOOK","CLSWK","CTLG","EDBOOK","PAMP","SER"]},"target":{"type":["book","entry","pamphlet","review-book"]}}},{"source":"M1","target":"issue","when":{"source":{"TY":["CONF","EJOUR","GOVDOC","MGZN"]},"target":{"type":["article-magazine","paper-conference"]}}},{"source":"M1","target":"chapter-number","when":{"source":{"TY":["ECHAP"]},"target":false}},{"source":"M1","target":"status","when":{"source":{"TY":["GRANT"]},"target":false}},{"source":"M1","target":"page-first","when":{"source":{"TY":["LEGAL","NEWS","STAND"]},"target":{"type":["article-newspaper","legislation"]}}},{"source":["M1","NV"],"target":"number","when":{"source":{"TY":["ICOMM","MANSCPT","PCOMM","STAT"]},"target":{"type":["manuscript","personal_communication","post"]}}},{"source":["M1","SE","SN"],"target":"number","when":{"source":{"TY":["PAT"]},"target":{"type":["patent"]}}},{"source":["M1","SN"],"target":"number","when":{"source":{"TY":["RPRT"]},"target":{"type":["report"]}}},{"source":["M1","VL"],"target":"accessed","when":{"source":{"TY":["ELEC"]},"target":{"type":["webpage"]}}},{"source":"M2","target":"page-first","when":{"source":{"TY":["ABST","INPR","JFULL","JOUR"]},"target":{"type":["article","article-journal","review"]}}},{"source":"M2","target":"number-of-pages","when":{"source":{"TY":["PAMP"]},"target":{"type":["pamphlet"]}}},{"source":"M3","target":"genre","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BOOK","CHART","CLSWK","COMP","CPAPER","CTLG","DBASE","DICT","ECHAP","EDBOOK","EJOUR","EQUA","FIGURE","GEN","GRANT","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MULTI","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","THES","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","book","entry","entry-dictionary","figure","graphic","interview","legislation","manuscript","map","pamphlet","patent","personal_communication","post","report","review","review-book","song","speech","thesis","treaty"]}}},{"source":"M3","target":"medium","when":{"source":{"TY":["BLOG","EBOOK","ELEC","MPCT","MUSIC"]},"target":{"type":["broadcast","motion_picture","musical_score","post-weblog","webpage"]}}},{"source":["N1","RN"],"target":"note","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PCOMM","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","personal_communication","post","post-weblog","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":["N1","RN","RP"],"target":"note","when":{"source":{"TY":["PAT","RPRT"]},"target":{"type":["patent","report"]}}},{"source":"NV","target":"number-of-volumes","when":{"source":{"TY":["ANCIENT","BOOK","CLSWK","CONF","DICT","ECHAP","EDBOOK","ENCYC","GEN","HEAR","MUSIC","SER"]},"target":{"type":["book","entry-dictionary","entry-encyclopedia","interview","musical_score","paper-conference","review-book","treaty"]}}},{"source":"NV","target":"number","when":{"source":{"TY":["CTLG","DATA"]},"target":{"type":["dataset","entry"]}}},{"source":"NV","target":"version","when":{"source":{"TY":["EBOOK"]},"target":false}},{"source":"NV","target":"dimensions","when":{"source":{"TY":["GRANT"]},"target":false}},{"source":"NV","target":"collection-number","when":{"source":{"TY":["RPRT"]},"target":{"type":["report"]}}},{"source":"OP","target":"original-title","when":{"source":{"TY":["ABST","AGGR","ANCIENT","BOOK","CHAP","CLSWK","CTLG","DICT","EBOOK","ECHAP","EDBOOK","ENCYC","GEN","INPR","JFULL","JOUR","MGZN","MUSIC","PAMP","SER"]},"target":{"type":["article","article-journal","article-magazine","book","chapter","entry","entry-dictionary","entry-encyclopedia","interview","musical_score","pamphlet","review","review-book","treaty"]}}},{"source":"OP","target":"references","when":{"source":{"TY":["BILL","CASE","HEAR","LEGAL","STAT","UNBILL"]},"target":{"type":["bill","legal_case","legislation"]}}},{"source":"PB","target":"publisher","when":{"source":{"TY":["ADVS","AGGR","ANCIENT","ART","BLOG","BOOK","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","LEGAL","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PCOMM","SER","SLIDE","SOUND","STAND","THES","UNPB","VIDEO"]},"target":{"type":["article-magazine","article-newspaper","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legislation","map","motion_picture","musical_score","pamphlet","paper-conference","personal_communication","post","post-weblog","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"PB","target":"authority","when":{"source":{"TY":["CASE"]},"target":{"type":["legal_case"]}}},{"source":"PB","target":"archive","when":{"source":{"TY":["MANSCPT"]},"target":{"type":["manuscript"]}}},{"source":"PY","target":"issued","when":{"source":{"TY":["CHAP","CLSWK","COMP","DICT","ECHAP","GOVDOC","MULTI","NEWS"]},"target":{"type":["article-newspaper","chapter","entry-dictionary"]}}},{"source":"PY","target":"event-date","when":{"source":{"TY":["CONF"]},"target":{"type":["paper-conference"]}}},{"source":["PY","SE"],"target":"issued","when":{"source":{"TY":["EJOUR"]},"target":false}},{"source":"RI","target":"reviewed-title","when":{"source":{"TY":["ABST","ANCIENT","CHAP","DICT","EBOOK","ECHAP","EJOUR","ENCYC","GEN","GRANT","INPR","JFULL","JOUR","MGZN","NEWS","SER"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","chapter","entry-dictionary","entry-encyclopedia","interview","review","treaty"]}}},{"source":"RI","target":"locator","when":{"source":{"TY":["STAT"]},"target":false}},{"source":"SE","target":"section","when":{"source":{"TY":["BILL","GEN","GOVDOC","MUSIC","NEWS","STAT","UNBILL"]},"target":{"type":["article-newspaper","bill","interview","musical_score","treaty"]}}},{"source":"SE","target":"number","when":{"source":{"TY":["BLOG"]},"target":{"type":["post-weblog"]}}},{"source":"SE","target":"chapter-number","when":{"source":{"TY":["CHAP","SER"]},"target":{"type":["chapter"]}}},{"source":"SE","target":"page","when":{"source":{"TY":["BOOK"]},"target":{"type":["book","review-book"]}}},{"source":"SE","target":"submitted","when":{"source":{"TY":["CASE"]},"target":{"type":["legal_case"]}}},{"source":"SE","target":"number-of-pages","when":{"source":{"TY":["CTLG"]},"target":{"type":["entry"]}}},{"source":"SE","target":"original-date","when":{"source":{"TY":["DATA"]},"target":{"type":["dataset"]}}},{"source":"SE","target":"version","when":{"source":{"TY":["DICT"]},"target":{"type":["entry-dictionary"]}}},{"source":"SE","target":"locator","when":{"source":{"TY":["STAND"]},"target":false}},{"source":"SE","target":"page-first","when":{"source":{"TY":["MANSCPT","MGZN"]},"target":{"type":["article-magazine","manuscript"]}}},{"source":["SE","T2"],"target":"locator","when":{"source":{"TY":["LEGAL"]},"target":{"type":["legislation"]}}},{"source":"SN","target":["ISBN","ISSN"],"when":{"source":{"TY":["AGGR","CLSWK","GEN"]},"target":{"type":["interview","treaty"]}}},{"source":"SN","target":"ISBN","when":{"source":{"TY":["ADVS","ANCIENT","BLOG","BOOK","CHAP","COMP","CONF","CTLG","DICT","EBOOK","ECHAP","EDBOOK","ELEC","ENCYC","HEAR","MAP","PAMP","SER","SLIDE","SOUND","VIDEO"]},"target":{"type":["book","chapter","entry","entry-dictionary","entry-encyclopedia","map","pamphlet","paper-conference","post-weblog","review-book","song","speech","webpage"]}}},{"source":"SN","target":"ISSN","when":{"source":{"TY":["ABST","DATA","EJOUR","INPR","JFULL","JOUR","MGZN","MUSIC","NEWS"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","dataset","musical_score","review"]}}},{"source":"SN","target":"number","when":{"source":{"TY":["DBASE","GOVDOC"]},"target":false}},{"source":["SN","T3"],"target":"number","when":{"source":{"TY":["LEGAL","STAND"]},"target":{"type":["legislation"]}}},{"source":"SP","target":"page","when":{"source":{"TY":["ABST","AGGR","ANCIENT","BILL","CHAP","CONF","CPAPER","CTLG","DBASE","DICT","ECHAP","EJOUR","ENCYC","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MGZN","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","STAND","STAT","UNBILL","UNPB"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","chapter","entry","entry-dictionary","entry-encyclopedia","interview","legislation","manuscript","musical_score","pamphlet","paper-conference","patent","personal_communication","post","report","review","treaty"]}}},{"source":"SP","target":"number-of-pages","when":{"source":{"TY":["BOOK","CLSWK","EBOOK","EDBOOK","THES"]},"target":{"type":["book","review-book","thesis"]}}},{"source":"SP","target":"page-first","when":{"source":{"TY":["CASE"]},"target":{"type":["legal_case"]}}},{"source":"SP","target":"dimensions","when":{"source":{"TY":["MPCT"]},"target":{"type":["broadcast","motion_picture"]}}},{"source":"ST","target":"title-short","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CLSWK","COMP","CONF","CTLG","DATA","DICT","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","GEN","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","MANSCPT","MAP","MGZN","MPCT","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","graphic","interview","legal_case","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"SV","target":"collection-number","when":{"source":{"TY":["CHAP"]},"target":{"type":["chapter"]}}},{"source":"T2","target":"collection-title","when":{"source":{"TY":["AGGR","BOOK","CLSWK","COMP","CTLG","DBASE","ELEC","MANSCPT","MAP","MPCT","MULTI","RPRT","UNPB"]},"target":{"type":["book","broadcast","entry","manuscript","map","motion_picture","report","review-book","webpage"]}}},{"source":"T2","target":"container-title","when":{"source":{"TY":["ABST","ANCIENT","BILL","BLOG","CHAP","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ENCYC","GEN","INPR","JFULL","JOUR","MGZN","MUSIC","NEWS","PAMP","PAT","SER","STAT","THES","UNBILL"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","chapter","entry-dictionary","entry-encyclopedia","interview","musical_score","pamphlet","patent","post-weblog","review","thesis","treaty"]}}},{"source":"T2","target":"event","when":{"source":{"TY":["CONF","CPAPER"]},"target":{"type":["paper-conference"]}}},{"source":"T2","target":"committee","when":{"source":{"TY":["HEAR"]},"target":false}},{"source":"T2","target":"section","when":{"source":{"TY":["STAND"]},"target":false}},{"source":"T3","target":"collection-title","when":{"source":{"TY":["ADVS","ANCIENT","CHAP","CONF","DATA","EBOOK","ECHAP","EJOUR","GEN","GOVDOC","MUSIC","SER","SLIDE","SOUND","VIDEO"]},"target":{"type":["chapter","dataset","interview","musical_score","paper-conference","song","speech","treaty"]}}},{"source":"TI","target":"title","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"TY","target":"type"},{"source":"UR","target":"URL","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"VL","target":"volume","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","BILL","BOOK","CASE","CHAP","CLSWK","CONF","CPAPER","CTLG","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ENCYC","GEN","GOVDOC","INPR","JFULL","JOUR","LEGAL","MANSCPT","MGZN","MUSIC","NEWS","RPRT","SER","SLIDE","SOUND","STAND","UNBILL","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","chapter","entry","entry-dictionary","entry-encyclopedia","interview","legal_case","legislation","manuscript","musical_score","paper-conference","report","review","review-book","song","speech","treaty"]}}},{"source":"VL","target":"dimensions","when":{"source":{"TY":["CHART","EQUA","FIGURE"]},"target":{"type":["figure"]}}},{"source":"VL","target":"edition","when":{"source":{"TY":["COMP"]},"target":false}},{"source":"VL","target":"number","when":{"source":{"TY":["PAMP"]},"target":{"type":["pamphlet"]}}},{"source":"VL","target":"version","when":{"source":{"TY":["PAT"]},"target":{"type":["patent"]}}},{"source":["VL","Y2"],"target":"accessed","when":{"source":{"TY":["BLOG"]},"target":{"type":["post-weblog"]}}},{"source":"Y2","target":"accessed","when":{"source":{"TY":["ABST","ADVS","ANCIENT","ART","BILL","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DICT","EDBOOK","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","report","review","review-book","song","speech","thesis","treaty"]}}},{"source":"C4","target":"author","when":{"source":{"TY":["BOOK","CHAP","EBOOK","ECHAP","EJOUR"]},"target":{"reviewed-author":true,"type":["book","chapter","review-book","review"]}}},{"source":"AU","target":"reviewed-author","when":{"source":{"C4":true,"TY":["BOOK","CHAP","EBOOK","ECHAP","EJOUR"]},"target":{"type":["book","chapter","review-book","review"]}}},{"source":"TA","target":"author","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"original-author":true,"translator":true,"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"AU","target":"original-author","when":{"source":{"TA":true,"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"translator":true,"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"TT","target":"title","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"original-author":true,"translator":true,"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"TI","target":"original-title","when":{"source":{"TT":true,"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"translator":true,"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}}]');var s=n(9136);const l=/^\d{4}-\d{4}$/,c=/10(?:\.[0-9]{4,})?\/[^\s]*[^\s.,]/,u={ANY:{toTarget(){for(var e=arguments.length,t=new Array(e),n=0;n[e]},PAGE:{keepAll:!0,toTarget:(e,t)=>[e,t].filter(Boolean).join("-"),toSource:e=>e.replace(/[-\u2013\u2014]/g,"-")},ISBN:{toTarget:e=>l.test(e)?[e]:[void 0,e],toSource(){for(var e=arguments.length,t=new Array(e),n=0;ne&&(0,s.K0)(e.split("/").slice(0,3).filter(Boolean).join("/")),toSource(e){const t=Array(4).fill("");return e["date-parts"][0].forEach(((e,n)=>{t[n]=e})),e.season&&(t[3]=e.season),t.join("/")}},NAME:{toTarget:e=>e&&[].concat(e).map((e=>{const t=e.split(/, ?/),[n,r,i]=t;switch(t.length){case 3:return{family:n,given:r,suffix:i};case 2:return{family:n,given:r};case 1:if(n.indexOf(" ")>-1)return{family:n};default:return{literal:e}}})),toSource:e=>e.map((e=>{let{family:t,given:n,suffix:r,literal:i}=e;const o=[t,n,r].filter(Boolean);return o.length?o.join(", "):i}))},KEYWORD:{toTarget:e=>(e=[].concat(e)).join(","),toSource:e=>e.split(",")},ID:{toSource:e=>e.slice(0,20)},TYPE:{toTarget:e=>o.u[e],toSource:e=>o.a[e]},DOI:{toTarget:e=>e.match(c)[0],toSource:e=>e.match(c)[0]}},d=[{source:"TY",target:"type"},{source:"ID",target:"id"},{source:["T1","TI","CT"],target:"title"},{source:"BT",target:"title",when:{source:{type:["BOOK","UNPB"],T1:!1,TI:!1,CT:!1},target:!1}},{source:"T2",target:"container-title",when:{target:{type:["bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{source:"BT",target:"container-title",when:{source:{type:["ABST","ADVS","ART","BILL","CASE","CHAP","COMP","CONF","CTLG","DATA","ELEC","GEN","HEAR","ICOMM","INPR","JFULL","JOUR","MAP","MGZN","MPCT","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAT","THES","UNBILL","VIDEO"],T2:!1},target:!1}},{source:"T3",target:"collection-title"},{source:["A1","AU"],target:"author"},{source:["A2","ED"],target:"editor"},{source:"A3",target:"collection-editor"},{source:["Y1","PY"],target:"issued"},{source:"Y2",target:"event-date",convert:u.DATE,when:{source:{type:["CONF","CPAPER"]},target:{type:["paper-conference"]}}},{source:"Y2",target:"submitted",convert:u.DATE,when:{source:{type:["PAT"]},target:{type:"patent"}}},{source:["AB","N1"],target:"note"},{source:"N2",target:"abstract"},{source:"KW",target:"keyword"},{source:["JF","JO"],target:"container-title",convert:u.ANY,when:{target:{type:["article","article-journal","article-magazine","article-newspaper"]}}},{source:["JA","J1","J2"],target:"container-title-short"},{source:"VL",target:"volume"},{source:["IS","CP"],target:"issue"},{source:"SP",target:"page-first"},{source:["SP","EP"],target:"page",convert:u.PAGE,when:{source:{SP:!0,EP:!0}}},{source:"CY",target:"publisher-place"},{source:"PB",target:"publisher"},{source:"SN",target:["ISSN","ISBN"]},{source:"AV",target:"archive_location"},{source:"UR",target:"URL"}],p=JSON.parse('[{"source":["T1","BT"],"target":"title","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"],"TI":false},"target":false}},{"source":"A1","target":"author","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BLOG","BOOK","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MULTI","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","THES","UNPB","VIDEO"],"AU":false},"target":false}},{"source":"Y1","target":"issued","when":{"source":{"TY":["CONF"],"C2":false,"DA":false},"target":false}},{"source":"Y1","target":"issued","when":{"source":{"TY":["PAT"],"C2":false,"DA":false,"PY":false},"target":false}},{"source":"Y1","target":"issued","when":{"source":{"TY":["EBOOK"],"C5":false,"PY":false},"target":false}},{"source":"Y1","target":"issued","when":{"source":{"TY":["ABST","ADVS","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHART","CPAPER","CTLG","DATA","EDBOOK","ELEC","ENCYC","EQUA","FIGURE","GEN","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MUSIC","PAMP","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","THES","UNBILL","UNPB","VIDEO"],"DA":false,"PY":false},"target":false}},{"source":"Y1","target":"issued","when":{"source":{"TY":["STAT"],"DA":false,"PY":false,"Y2":false},"target":false}},{"source":"Y1","target":"issued","when":{"source":{"TY":["AGGR","DBASE"],"ET":false,"PY":false},"target":false}},{"source":"Y1","target":"issued","when":{"source":{"TY":["CHAP","CLSWK","COMP","DICT","ECHAP","GOVDOC","MULTI","NEWS"],"PY":false},"target":false}},{"source":"Y1","target":"issued","when":{"source":{"TY":["EJOUR"],"PY":false,"SE":false},"target":false}},{"source":["JO","JF","J1"],"target":"container-title","when":{"source":{"TY":["CONF"],"C3":false},"target":false}},{"source":["JO","JF","J1"],"target":"container-title","when":{"source":{"TY":["ABST","ANCIENT","BILL","BLOG","CHAP","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ENCYC","GEN","INPR","JFULL","JOUR","MGZN","MUSIC","NEWS","PAMP","PAT","SER","STAT","THES","UNBILL"],"T2":false},"target":false}},{"source":"JA","target":"container-title-short","when":{"source":{"TY":["ABST","ANCIENT","BOOK","CHAP","CTLG","DATA","DICT","ENCYC","GRANT","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MGZN","PAMP","PCOMM","SER","STAND","STAT","UNPB"],"J2":false},"target":false}},{"source":"N2","target":"abstract","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"],"AB":false},"target":false}},{"source":["SP","EP"],"target":"page","when":{"source":{"TY":["BOOK"],"SE":false},"target":false}},{"source":["SP","EP"],"target":"page","when":{"source":{"TY":["ABST","AGGR","ANCIENT","BILL","CHAP","CONF","CPAPER","CTLG","DBASE","DICT","ECHAP","EJOUR","ENCYC","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MGZN","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","STAND","STAT","UNBILL","UNPB"],"EP":true},"target":false}},{"source":"AV","target":"archive_location","when":{"target":false}},{"source":"LK","target":"URL","when":{"source":{"TY":["HEAR"],"L4":false,"UR":false},"target":false}},{"source":"LK","target":"URL","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"],"UR":false},"target":false}},{"source":"IS","target":"issue","when":{"source":{"TY":"MGZN","M1":false},"target":false}}]'),h=a.concat(p),f={new:a,old:d,mixed:h},m=JSON.parse('{"author":"NAME","collection-editor":"NAME","composer":"NAME","container-author":"NAME","director":"NAME","editor":"NAME","editorial-director":"NAME","interviewer":"NAME","illustrator":"NAME","original-author":"NAME","recipient":"NAME","reviewed-author":"NAME","translator":"NAME","accessed":"DATE","container":"DATE","event-date":"DATE","issued":"DATE","original-date":"DATE","submitted":"DATE","id":"ID","ISSN,ISBN":"ISBN","keyword":"KEYWORD","page":"PAGE","type":"TYPE","DOI":"DOI"}'),g=/^[A-Z][A-Z0-9] {2}-( |$)/,v=/ {2}-(?: |$)/,b=new Map;function y(e){if(!b.has(e)){for(const t of e)if(t.target in m&&(t.convert=u[m[t.target]]),(!t.convert||!0!==t.convert.keepAll)&&Array.isArray(t.source))if(t.convert){const{toSource:e,toTarget:n}=t.convert;t.convert={toTarget(){return n(u.ANY.toTarget(...arguments))},toSource(){return u.ANY.toSource(e(...arguments))}}}else t.convert=u.ANY;b.set(e,new r.util.Translator(e))}return b.get(e)}const _=["A1","AV","BT","CP","ED","EP","ID","J1","JA","JF","JO","L2","L3","N2","T1","U1","U2","U3","U4","U5","U6","Y1"],x=["A4","AD","AN","C1","C2","C3","C4","C5","C6","C7","C8","CA","CN","DA","DB","DO","DP","ET","LA","LB","NV","OP","PY","RI","RN","SE","ST","SV","TA","TT"];r.plugins.add("@ris",{input:{"@ris/file":{parse:function(e){const t=[];let n,r;for(let i of e.split(/\r?\n/)){if(i=i.trim(),!g.test(i)){n&&r&&(n[r]+=" "+i);continue}const[e,o]=i.split(v);switch(e){case"ER":n=void 0,r=void 0;break;case"TY":n={},t.push(n);default:Array.isArray(n[e])?n[e].push(o):n[e]=n[e]?[n[e],o]:o,r=e}}return t},parseType:{dataType:"String",predicate:/^TY {2}- /m}},"@ris/record":{parse:function(e){return y(f.mixed).convertToTarget(e)},parseType:{dataType:"SimpleObject",propertyConstraint:{props:["TY"]}}},"@ris/new+record":{parse:function(e){return y(f.new).convertToTarget(e)},parseType:{extends:"@ris/record",propertyConstraint:[{props:x,match:"some"},{props:_,match:"none"}]}},"@ris/old+record":{parse:function(e){return y(f.old).convertToTarget(e)},parseType:{extends:"@ris/record",propertyConstraint:[{props:_,match:"some"},{props:x,match:"none"}]}}},config:i,output:{ris:function(e){let{type:t,format:n=t||"text",spec:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=r||i.outputSpec,a=e.map(y(f[o]).convertToSource);return"object"===n?a:a.map((e=>{const t=[];for(const n in e)"TY"!==n&&t.push(...[].concat(e[n]).map((e=>"".concat(n," - ").concat(e.toString().replace(/(.{70})/g,"$1\n")))));return t.unshift("TY - ".concat(e.TY)),t.push("ER - "),t.join("\n")})).join("\n")}}})},9136:(e,t,n)=>{"use strict";Object.defineProperty(t,"K0",{enumerable:!0,get:function(){return r.default}});var r=o(n(5208)),i=o(n(7412));function o(e){return e&&e.__esModule?e:{default:e}}},5208:(e,t)=>{"use strict";function n(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)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(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.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n+e<0)))return null;r=+n[0]<0||+n[0]>+n[1]&&+n[1]>0?n.pop():n.shift()}return[n.pop(),r]}return null}(e)||function(e){if("string"!==typeof e)return null;const t=e.match(/^(\d+) ?(a\.?d\.?|b\.?c\.?)$/i);if(t){const e=n(t.slice(1),2);return[e[0]*("a"===e[1].toLowerCase()[0]?1:-1)]}return/^-?\d+$/.test(e)?[e]:null}(e);return t&&t.map((e=>parseInt(e)))}var d=function(e,t){const n=[],r="string"===typeof e&&function(e){return a.test(e)?e.match(a).slice(1,3):e.split(o)}(e);t?n.push(e,t):r&&2===r.length?n.push(...r):n.push(e);const i=n.map(u);return i.filter(Boolean).length===n.length?{"date-parts":i}:{raw:t?n.join("/"):e}};t.default=d},7412:(e,t)=>{"use strict";function n(e,t,n){if(e.length>=t)return e;for(;e.length1&&void 0!==arguments[1]?arguments[1]:"-";if(!e["date-parts"])return e.raw;const r=e["date-parts"][0].map((e=>e.toString()));switch(r.length){case 3:r[2]=n(r[2],2,"0");case 2:r[1]=n(r[1],2,"0");case 1:r[0]=n(r[0],4,"0")}return r.join(t)};t.default=r},9156:(e,t,n)=>{"use strict";n.r(t),n.d(t,{formats:()=>te,parsers:()=>ee,ref:()=>X});var r={};n.r(r),n.d(r,{default:()=>p,parse:()=>p});var i={};n.r(i),n.d(i,{parse:()=>m,parseAsync:()=>g});var o={};n.r(o),n.d(o,{default:()=>z,getLabel:()=>H,parse:()=>z,parseProp:()=>z,parseType:()=>q});var a={};n.r(a),n.d(a,{default:()=>Z,parse:()=>Z,parseAsync:()=>Y,parseEntities:()=>Z,parseEntitiesAsync:()=>Y,parseEntity:()=>K});var s={};n.r(s),n.d(s,{parse:()=>J});var l=n(8660),c=n(1168),u=n.n(c);const d={langs:["en"]},p=function(e,t){const n=[].concat(e);return[].concat(u().getManyEntities(n,t||d.langs))},{fetchFile:h,fetchFileAsync:f}=l.util;function m(e){return[].concat(e).map(h)}function g(e){return Promise.all([].concat(e).map(f))}const v={keepQualifiers:!0,timeConverter:"simple-day"},b={P17:null},y={P740:b,P159:b},_={P50:null,P57:null,P86:null,P98:null,P110:null,P655:null,P1817:null,P921:{P50:null},P407:null,P364:null,P123:y,P629:{P50:null,P123:y},P437:null,P186:null,P179:{P98:null},P1433:{P4745:{P276:b}},P361:{P50:null}};function x(e,t){return e.push(...t),e}function w(e,t){return t?(e._needed=Object.assign(e._needed||{},t),Object.keys(e.claims).filter((e=>e in t)).map((t=>e.claims[t].map((e=>{let{value:t}=e;return t.id||t})))).reduce(x,[])):[]}function E(e,t){if(!t){const t=[];for(const n in e){const r=w(e[n],_);for(const e of r)t.includes(e)||t.push(e)}return t}const n=[];for(const r of t){const t=e[r];if(t._needed){for(const r in t.claims)if(r in t._needed)for(const i of t.claims[r])i.value&&i.value.id||(i.value=e[i.value],n.push(...w(i.value,t._needed[r])));delete t._needed}}return n}function T(e){return c.simplify.entities(e,v)}function C(e,t){return{needed:E(t),incomplete:Object.keys(e)}}function k(e,t){const n=e.filter(((n,r)=>!(n in t)&&e.indexOf(n)===r));return p(n)}function S(e,t){const{entities:n}=JSON.parse(e);Object.assign(t,T(n))}function O(e,t){return{needed:E(t,e.incomplete),incomplete:e.needed}}function A(e,t){return Object.keys(e).map((e=>t[e]))}function j(e){const t=function(e){const t=T(e);let n=C(e,t);for(;n.needed.length;)k(n.needed,t).map((e=>S(m(e),t))),n=O(n,t);return t}(e);return A(e,t)}async function P(e){const t=await async function(e){const t=T(e);let n=C(e,t);for(;n.needed.length;){const e=k(n.needed,t);await Promise.all(e.map((async e=>S(await g(e),t)))),n=O(n,t)}return t}(e);return A(e,t)}var I=n(6112),L=n(6908);const R=JSON.parse('{"Q191067":"article","Q1266946":"thesis","Q187685":"thesis","Q265158":"review","Q1172284":"dataset","Q2352616":"dataset","Q367035":"dataset","Q4006":"map","Q133792":"map","Q842617":"map","Q1425895":"map","Q2334719":"legal_case","Q36774":"webpage","Q15474042":"webpage","Q58494026":"webpage","Q17379835":"webpage","Q17442446":"webpage","Q21281405":"webpage","Q16222597":"webpage","Q653848":"map","Q21944833":"map","Q11424":"motion_picture","Q157443":"motion_picture","Q571":"book","Q87167":"manuscript","Q131569":"treaty","Q216665":"book","Q686822":"bill","Q10870555":"report","Q3099732":"report","Q252550":"treaty","Q3536928":"treaty","Q5707594":"article-newspaper","Q59908":"article","Q1164267":"book","Q18011172":"motion_picture","Q19389637":"article","Q11578774":"broadcast","Q15416":"broadcast","Q1555508":"broadcast","Q26260507":"broadcast","Q580922":"article","Q651270":"article","Q759838":"article","Q1580166":"entry-dictionary","Q1809676":"article","Q2106255":"article","Q1004391":"report","Q2438528":"article","Q6646525":"article","Q7216866":"post","Q7318358":"article","Q7582241":"article","Q10389811":"entry","Q13442814":"article-journal","Q17518557":"article","Q19917774":"article","Q30070590":"article-magazine","Q37974534":"article","Q637866":"review-book","Q5196473":"review","Q5251247":"review","Q42350535":"article","Q51282711":"thesis","Q51282766":"thesis","Q51282798":"thesis","Q51282875":"thesis","Q51282918":"thesis","Q51282969":"thesis","Q51282999":"thesis","Q51283026":"thesis","Q51283053":"thesis","Q51283145":"thesis","Q51283327":"thesis","Q55399605":"thesis","Q58010711":"article","Q60559362":"article","Q480498":"legal_case","Q697327":"legal_case","Q1469824":"dataset","Q2055205":"legal_case","Q162827":"map","Q460214":"map","Q2259701":"map","Q253623":"patent","Q22909582":"review","Q1172480":"dataset","Q45941145":"dataset","Q56515249":"review","Q61992233":"review","Q16968990":"book","Q21191270":"broadcast","Q26225677":"motion_picture","Q56753859":"map","Q57933693":"book","Q2823677":"legal_case","Q2865639":"legal_case","Q7307130":"legal_case","Q8016240":"legal_case","Q11827307":"legal_case","Q16738832":"legal_case","Q18146819":"legal_case","Q18536127":"legal_case","Q20917517":"legal_case","Q7366":"song","Q7302866":"song","Q25203386":"song","Q30637971":"legal_case","Q52768654":"map","Q56123235":"song","Q56612794":"song","Q60566516":"song","Q60809954":"song","Q61221204":"legal_case","Q24634210":"broadcast","Q61855877":"broadcast","Q1006160":"dataset","Q1980247":"chapter","Q19692072":"legal_case","Q23927052":"paper-conference","Q178651":"interview","Q861911":"speech","Q216526":"map","Q2940514":"map","Q3391101":"map","Q55089312":"dataset","Q56704157":"legal_case","Q26205359":"webpage","Q28326484":"webpage","Q28326490":"webpage","Q57312861":"webpage","Q106833":"book","Q128093":"book","Q20540385":"book","Q7433672":"book","Q193495":"book","Q3831846":"book","Q203490":"book","Q254554":"book","Q448980":"book","Q604219":"book","Q605076":"book","Q642946":"book","Q48498":"manuscript","Q727715":"book","Q747381":"book","Q855753":"book","Q890239":"book","Q913554":"book","Q918038":"book","Q922203":"book","Q944359":"book","Q1009641":"book","Q1631107":"dataset","Q26876682":"dataset","Q47114558":"dataset","Q1050259":"book","Q1062404":"book","Q1106827":"book","Q1173065":"book","Q1184488":"book","Q1238720":"book","Q1414013":"book","Q1415108":"book","Q162206":"map","Q191072":"map","Q320228":"map","Q352416":"map","Q441903":"map","Q573980":"map","Q602481":"map","Q715789":"map","Q728502":"map","Q1403728":"map","Q1410020":"map","Q1496857":"book","Q1528894":"book","Q1609706":"book","Q1616547":"book","Q1650727":"book","Q1760610":"book","Q1785330":"book","Q1870591":"book","Q1883939":"book","Q1977520":"book","Q1986787":"book","Q2069066":"book","Q2072218":"book","Q2104296":"book","Q2122442":"book","Q2128336":"book","Q2135225":"book","Q2208044":"book","Q2314679":"book","Q2331348":"book","Q2363145":"book","Q2374324":"book","Q2377289":"book","Q2396513":"book","Q2514954":"book","Q2537127":"book","Q2787237":"book","Q2831984":"book","Q3045706":"book","Q3831821":"book","Q3831847":"book","Q3915339":"book","Q4067007":"book","Q4224691":"book","Q4515179":"book","Q4677625":"book","Q4686085":"book","Q4931288":"book","Q5073531":"book","Q5093328":"book","Q5159310":"book","Q6675210":"book","Q8275050":"book","Q10666342":"book","Q11396303":"book","Q11750596":"book","Q12308638":"book","Q12410152":"book","Q12731131":"book","Q13137339":"book","Q13430107":"book","Q13636757":"book","Q13751595":"book","Q16046027":"book","Q16385949":"book","Q16507688":"book","Q16736578":"book","Q17134316":"book","Q21598767":"book","Q21662746":"book","Q22988237":"book","Q25679217":"book","Q12912091":"motion_picture","Q1453402":"map","Q1502030":"map","Q1664468":"map","Q1783108":"map","Q1787111":"dataset","Q1875628":"map","Q2089517":"map","Q2127425":"map","Q2353983":"map","Q2368091":"map","Q2426254":"map","Q2470969":"map","Q2471702":"map","Q2620815":"map","Q2656361":"map","Q2940478":"map","Q3509676":"map","Q3515498":"map","Q4505959":"map","Q4845530":"map","Q26267321":"book","Q26271823":"book","Q27560760":"book","Q29154430":"book","Q29586870":"book","Q31946409":"book","Q38143661":"book","Q52005090":"book","Q52153485":"book","Q55610842":"book","Q56552233":"book","Q57790812":"book","Q58142059":"book","Q58211632":"book","Q58807269":"book","Q60226001":"book","Q60475414":"book","Q60475468":"book","Q60627667":"book","Q61696018":"book","Q5047387":"map","Q5177325":"map","Q5434353":"map","Q6017843":"map","Q6664848":"map","Q7104865":"map","Q10544122":"map","Q11426259":"map","Q11618908":"map","Q14321585":"map","Q15877105":"map","Q17047956":"map","Q21935483":"map","Q22125384":"map","Q59457513":"map","Q60054914":"map","Q846662":"broadcast","Q5778924":"motion_picture","Q8513":"dataset","Q178376":"dataset","Q1675302":"map","Q267628":"article","Q871232":"article","Q3694604":"article","Q3719255":"article","Q19375673":"article","Q442919":"interview","Q850171":"interview","Q1384479":"interview","Q1477475":"interview","Q1067324":"motion_picture","Q1941707":"motion_picture","Q3055290":"interview","Q3055291":"interview","Q450873":"patent","Q681875":"patent","Q913351":"patent","Q5465504":"patent","Q2049275":"manuscript","Q213924":"manuscript","Q274076":"manuscript","Q597695":"manuscript","Q720106":"manuscript","Q865595":"manuscript","Q1067768":"manuscript","Q1266076":"manuscript","Q2209578":"manuscript","Q2217259":"manuscript","Q2531964":"manuscript","Q2816501":"manuscript","Q19787436":"patent","Q19787437":"patent","Q35639987":"patent","Q43305660":"patent","Q59818481":"dataset","Q1949797":"legal_case","Q18918145":"article-journal","Q2782326":"article-journal","Q3149408":"legal_case","Q18342738":"speech","Q3228788":"speech","Q3731370":"legal_case","Q17123524":"book","Q336144":"motion_picture","Q867242":"book","Q1093720":"treaty","Q193170":"treaty","Q625298":"treaty","Q837144":"treaty","Q864737":"treaty","Q931855":"treaty","Q1242841":"treaty","Q1414340":"treaty","Q1414472":"treaty","Q1498487":"treaty","Q1646218":"treaty","Q1671773":"treaty","Q1711115":"treaty","Q2290707":"treaty","Q2300991":"treaty","Q2465017":"treaty","Q3125472":"manuscript","Q3220177":"manuscript","Q3240926":"manuscript","Q3252544":"manuscript","Q3560324":"manuscript","Q3749265":"manuscript","Q3824506":"treaty","Q3960554":"manuscript","Q4426710":"treaty","Q4475654":"manuscript","Q4872029":"treaty","Q4985043":"treaty","Q7012086":"manuscript","Q7452368":"manuscript","Q9026959":"manuscript","Q11613006":"manuscript","Q13430250":"manuscript","Q17143154":"manuscript","Q21089188":"manuscript","Q22669850":"manuscript","Q22948347":"manuscript","Q25351420":"manuscript","Q31078443":"manuscript","Q33308141":"manuscript","Q11122":"treaty","Q451584":"legal_case","Q876477":"bill","Q1006544":"bill","Q1288220":"legal_case","Q2206565":"legal_case","Q2783852":"legal_case","Q5500839":"legal_case","Q7246224":"bill","Q7257705":"bill","Q7885007":"bill","Q859161":"dataset","Q1650567":"webpage","Q11439":"webpage","Q16602140":"bill","Q16821677":"bill","Q28457660":"bill","Q2261569":"webpage","Q2641220":"webpage","Q2737701":"webpage","Q14204246":"webpage","Q21025364":"webpage","Q23691297":"webpage","Q58040463":"webpage","Q44873079":"interview","Q4202018":"interview","Q4317093":"interview","Q7256239":"interview","Q7625207":"interview","Q8776455":"interview","Q45933791":"interview","Q60723716":"interview","Q6908053":"treaty","Q6934728":"treaty","Q6944158":"treaty","Q9160460":"treaty","Q9557810":"treaty","Q11455760":"treaty","Q11637357":"treaty","Q16567729":"treaty","Q19357149":"book","Q184528":"speech","Q203737":"speech","Q261197":"speech","Q554211":"speech","Q749054":"speech","Q787020":"speech","Q805093":"speech","Q960189":"speech","Q1346967":"speech","Q1840948":"speech","Q1980740":"speech","Q2183050":"speech","Q2895132":"speech","Q3030189":"speech","Q3040417":"speech","Q4329077":"speech","Q4388316":"speech","Q5152362":"speech","Q200092":"motion_picture","Q224700":"motion_picture","Q248583":"motion_picture","Q457832":"motion_picture","Q622548":"motion_picture","Q624771":"motion_picture","Q16835935":"treaty","Q16956642":"treaty","Q19958750":"treaty","Q27768121":"treaty","Q29526855":"treaty","Q29527278":"treaty","Q29527544":"treaty","Q29883540":"treaty","Q30921722":"treaty","Q38653134":"treaty","Q39234269":"treaty","Q41535471":"treaty","Q50192946":"treaty","Q57205857":"treaty","Q1194534":"dataset","Q7979513":"speech","Q11261492":"speech","Q11496736":"speech","Q11504413":"speech","Q13611058":"speech","Q13632631":"speech","Q15853847":"speech","Q18907443":"speech","Q19776345":"speech","Q28472611":"speech","Q56191193":"speech","Q56192445":"speech","Q60061482":"speech","Q60780612":"speech","Q47123453":"report","Q1054574":"motion_picture","Q860626":"motion_picture","Q959790":"motion_picture","Q1788980":"motion_picture","Q2331945":"motion_picture","Q188473":"motion_picture","Q2678111":"motion_picture","Q2991560":"motion_picture","Q2484376":"motion_picture","Q16950433":"motion_picture","Q18331260":"motion_picture","Q19952560":"motion_picture","Q5428822":"broadcast","Q13582719":"song","Q388480":"song","Q950683":"book","Q39825":"dataset","Q49918":"dataset","Q82753":"dataset","Q186588":"dataset","Q15706459":"article-journal","Q59387148":"report","Q6960620":"book","Q7094076":"dataset","Q367680":"dataset","Q857354":"dataset","Q1503133":"book","Q3219655":"dataset","Q3304360":"dataset","Q5227330":"dataset","Q7943567":"dataset","Q17305522":"dataset","Q18814183":"dataset","Q21264512":"dataset","Q43570203":"dataset","Q44106130":"dataset","Q50826803":"dataset","Q55387750":"dataset","Q593744":"dataset","Q83790":"book","Q539662":"dataset","Q605175":"dataset","Q550089":"dataset","Q36524":"dataset","Q1673963":"dataset","Q17152639":"dataset","Q20088085":"entry-dictionary","Q15633587":"webpage","Q15138389":"webpage","Q20088089":"entry-dictionary","Q5398426":"broadcast","Q1259759":"broadcast","Q7724161":"broadcast","Q21664088":"broadcast","Q234262":"chapter","Q21481766":"chapter","Q26989423":"chapter","Q29154515":"chapter","Q43148525":"chapter","Q43180447":"chapter","Q53460949":"chapter","Q327349":"dataset","Q1394657":"dataset","Q1988927":"dataset","Q201456":"dataset","Q220393":"dataset","Q3071343":"dataset","Q254213":"dataset","Q319949":"dataset","Q672598":"dataset","Q780605":"dataset","Q815410":"dataset","Q819688":"dataset","Q854459":"dataset","Q897682":"dataset","Q1114135":"dataset","Q1147639":"dataset","Q1400059":"dataset","Q1665882":"dataset","Q1754061":"dataset","Q1915979":"dataset","Q1991865":"dataset","Q2038458":"dataset","Q2249973":"dataset","Q2597555":"dataset","Q3346024":"dataset","Q5141544":"dataset","Q5146094":"dataset","Q5962346":"dataset","Q6941730":"dataset","Q7096331":"dataset","Q10413470":"dataset","Q15194024":"dataset","Q11722865":"dataset","Q273057":"dataset","Q16832380":"dataset","Q20820424":"dataset","Q22692845":"dataset","Q52666561":"dataset","Q59209277":"dataset","Q59977151":"dataset","Q60686104":"dataset","Q2262868":"dataset","Q7449052":"dataset","Q596138":"motion_picture","Q3464665":"broadcast","Q24862":"motion_picture","Q7751682":"motion_picture","Q187044":"article-newspaper","Q22812458":"broadcast","Q170238":"broadcast","Q309481":"article-newspaper","Q2495037":"article-newspaper","Q2602337":"article-newspaper","Q5149212":"article-newspaper","Q17628188":"article-newspaper","Q17633526":"article-newspaper","Q17928402":"post-weblog","Q50081413":"webpage","Q20136634":"article","Q43290228":"article","Q57988118":"post","Q40745":"legal_case","Q245072":"legal_case","Q321568":"legal_case","Q375727":"legal_case","Q699735":"report","Q836925":"report","Q788874":"legal_case","Q830689":"report","Q1668727":"report","Q1498464":"legal_case","Q1926270":"report","Q2070370":"legal_case","Q2145003":"legal_case","Q2307704":"report","Q2309880":"report","Q2677586":"report","Q3000100":"report","Q3922396":"legal_case","Q4343952":"report","Q4690599":"report","Q6451276":"report","Q7968600":"legal_case","Q7918438":"report","Q12038591":"legal_case","Q13433827":"entry","Q15629444":"report","Q17090395":"report","Q17329259":"entry-encyclopedia","Q19355445":"report","Q61704031":"broadcast","Q27027169":"report","Q41274869":"report","Q47126552":"report","Q56013707":"report","Q58089619":"legal_case","Q157394":"motion_picture","Q207601":"broadcast","Q1504425":"article-journal","Q1241826":"broadcast","Q2155186":"broadcast","Q2435927":"broadcast","Q2774197":"article-journal","Q3588923":"broadcast","Q5177022":"broadcast","Q7316896":"article-journal","Q7551315":"motion_picture","Q10709386":"broadcast","Q622812":"broadcast","Q11079003":"broadcast","Q10885494":"article-journal","Q11293915":"broadcast","Q11325507":"broadcast","Q11334197":"broadcast","Q11351206":"broadcast","Q11378697":"broadcast","Q187947":"musical_score","Q11451968":"broadcast","Q11483878":"broadcast","Q11491683":"broadcast","Q12183006":"article-journal","Q18458820":"broadcast","Q56478376":"article-journal","Q58038936":"article-journal","Q58898396":"article-journal","Q58900805":"article-journal","Q58901470":"article-journal","Q58902427":"article-journal","Q59458414":"article-journal","Q4249087":"legal_case","Q5710433":"legal_case","Q60456691":"legal_case","Q17074865":"map","Q18609332":"legal_case","Q29197":"broadcast","Q18011171":"motion_picture","Q506240":"motion_picture","Q653916":"motion_picture","Q240862":"motion_picture","Q914242":"motion_picture","Q5287435":"broadcast","Q5338721":"motion_picture","Q13359539":"broadcast","Q21191265":"broadcast","Q26225765":"motion_picture","Q29555881":"broadcast","Q50062923":"broadcast","Q50914552":"broadcast","Q61220733":"broadcast","Q1924747":"dataset","Q26868375":"dataset","Q61782522":"dataset","Q2033233":"dataset","Q39086821":"review","Q595971":"dataset","Q3539533":"dataset","Q276":"broadcast","Q182415":"broadcast","Q336181":"broadcast","Q356055":"broadcast","Q358942":"broadcast","Q431102":"broadcast","Q661436":"broadcast","Q677466":"motion_picture","Q854995":"broadcast","Q986699":"broadcast","Q1261214":"broadcast","Q1358344":"broadcast","Q1366112":"broadcast","Q1407240":"broadcast","Q1407245":"broadcast","Q1472288":"broadcast","Q1619206":"broadcast","Q1684600":"broadcast","Q1819008":"broadcast","Q1962634":"broadcast","Q1857766":"broadcast","Q1924371":"broadcast","Q1948292":"broadcast","Q2081003":"broadcast","Q2231383":"broadcast","Q2304946":"broadcast","Q3744532":"broadcast","Q5455086":"broadcast","Q6626746":"broadcast","Q7697093":"broadcast","Q14623351":"broadcast","Q3511312":"broadcast","Q10676514":"broadcast","Q202866":"motion_picture","Q1107":"motion_picture","Q581714":"broadcast","Q21191019":"broadcast","Q11086742":"motion_picture","Q11504513":"broadcast","Q14942329":"broadcast","Q15836186":"broadcast","Q16068806":"broadcast","Q16206641":"broadcast","Q17145545":"broadcast","Q18640746":"broadcast","Q19845560":"broadcast","Q19973797":"broadcast","Q21217315":"broadcast","Q25090976":"broadcast","Q27912070":"broadcast","Q28664032":"broadcast","Q34682961":"broadcast","Q46706005":"broadcast","Q118171":"dataset","Q192588":"dataset","Q193351":"dataset","Q212805":"dataset","Q333761":"dataset","Q702448":"dataset","Q1869909":"motion_picture","Q29982285":"broadcast","Q780524":"dataset","Q989016":"dataset","Q1172362":"dataset","Q1235236":"dataset","Q1373925":"dataset","Q1391125":"dataset","Q1393704":"dataset","Q1414426":"dataset","Q1494224":"dataset","Q1519460":"dataset","Q1787017":"dataset","Q1957894":"dataset","Q2599456":"dataset","Q2274762":"dataset","Q2302053":"dataset","Q2404903":"dataset","Q2532732":"dataset","Q2881060":"dataset","Q2912944":"dataset","Q3133368":"dataset","Q3454922":"dataset","Q4117139":"dataset","Q4501235":"dataset","Q4677551":"dataset","Q5062195":"dataset","Q5322831":"dataset","Q5473309":"dataset","Q5572370":"dataset","Q7246853":"dataset","Q7702836":"dataset","Q9067653":"dataset","Q14806568":"dataset","Q15097084":"dataset","Q15100572":"dataset","Q16155335":"dataset","Q17014602":"dataset","Q22811662":"dataset","Q24579448":"dataset","Q28146196":"dataset","Q33270056":"dataset","Q36570165":"dataset","Q45028176":"dataset","Q54933017":"dataset","Q55341040":"dataset","Q59157251":"dataset","Q13406463":"webpage","Q60856733":"dataset","Q521414":"dataset","Q883895":"dataset","Q986756":"dataset","Q1345528":"dataset","Q3404855":"dataset","Q3405306":"dataset","Q3518943":"dataset","Q3664416":"dataset","Q4127466":"dataset","Q4350734":"dataset","Q60557971":"dataset","Q4350735":"dataset","Q4350754":"dataset","Q5058966":"dataset","Q5058970":"dataset","Q5058971":"dataset","Q5058968":"dataset","Q5058969":"dataset","Q5058974":"dataset","Q5058975":"dataset","Q5058972":"dataset","Q5058978":"dataset","Q5058977":"dataset","Q5058981":"dataset","Q5058989":"dataset","Q5334384":"dataset","Q7015254":"dataset","Q10497456":"dataset","Q12058091":"dataset","Q16056280":"dataset","Q19894430":"dataset","Q24934691":"dataset","Q25383554":"dataset","Q26207721":"dataset","Q28730356":"dataset","Q29795177":"dataset","Q8025448":"book","Q1114458":"book","Q3027814":"book","Q3268307":"book","Q3491290":"book","Q4955683":"book","Q5197887":"book","Q6071891":"book","Q5296":"webpage","Q57819011":"legal_case","Q57821094":"legal_case","Q218013":"dataset","Q283579":"dataset","Q426674":"dataset","Q479833":"dataset","Q721795":"dataset","Q838281":"dataset","Q843670":"dataset","Q877809":"dataset","Q900856":"dataset","Q949532":"dataset","Q1265166":"dataset","Q1571814":"dataset","Q2025786":"book","Q2250844":"book","Q4034405":"book","Q5227352":"dataset","Q2115":"dataset","Q14679":"dataset","Q577697":"map","Q5150048":"map","Q16840211":"book","Q21032630":"book","Q8034663":"book","Q11191558":"book","Q13769783":"dataset","Q14902318":"dataset","Q24063789":"dataset","Q25975660":"dataset","Q26260540":"dataset","Q11266439":"webpage","Q26267864":"dataset","Q26987229":"dataset","Q27198004":"dataset","Q28948553":"dataset","Q29053519":"dataset","Q29694587":"dataset","Q41709380":"dataset","Q47459830":"dataset","Q57936091":"book","Q58902997":"book","Q7572716":"dataset","Q59913845":"song","Q2143665":"motion_picture","Q1957385":"motion_picture","Q5769663":"motion_picture","Q5855976":"motion_picture","Q1441669":"broadcast","Q1441929":"broadcast","Q16943561":"broadcast","Q19858063":"broadcast","Q19858074":"broadcast","Q19858077":"broadcast","Q19858082":"broadcast","Q19858080":"broadcast","Q19858086":"broadcast","Q19858087":"broadcast","Q19858088":"broadcast","Q19858095":"broadcast","Q19858093":"broadcast","Q19858098":"broadcast","Q19858107":"broadcast","Q19858110":"broadcast","Q19858108":"broadcast","Q19858123":"broadcast","Q19858126":"broadcast","Q19858124":"broadcast","Q19858125":"broadcast","Q19858142":"broadcast","Q19858143":"broadcast","Q19858140":"broadcast","Q19858141":"broadcast","Q19859744":"broadcast","Q19859780":"broadcast","Q1271915":"dataset","Q2250805":"map","Q2359829":"map","Q2415383":"map","Q2869471":"map","Q4816871":"map","Q5135690":"map","Q11025270":"map","Q21936815":"map","Q21938018":"map","Q26885495":"map","Q333779":"map","Q640492":"map","Q690851":"manuscript","Q1105486":"manuscript","Q1501880":"map","Q1501945":"map","Q1550537":"map","Q1974665":"map","Q2915844":"map","Q54298448":"map","Q21188110":"broadcast","Q918098":"broadcast","Q4765080":"broadcast","Q17113138":"broadcast","Q856314":"manuscript","Q928128":"manuscript","Q19969434":"manuscript","Q5647631":"manuscript","Q1190781":"manuscript","Q1620808":"manuscript","Q1675712":"manuscript","Q3637297":"manuscript","Q18558914":"manuscript","Q492264":"musical_score","Q10590726":"motion_picture","Q60259696":"manuscript","Q60323106":"manuscript","Q60325498":"manuscript","Q60363009":"manuscript","Q2552822":"musical_score","Q7452061":"musical_score","Q3962157":"map","Q16825889":"map","Q1826720":"map","Q3935817":"dataset","Q18616720":"dataset","Q7601206":"dataset","Q7620972":"map","Q1353555":"dataset","Q22961568":"book","Q93204":"motion_picture","Q7832972":"motion_picture","Q312083":"map","Q322943":"treaty","Q459435":"motion_picture","Q587240":"manuscript","Q595819":"treaty","Q850950":"dataset","Q1003870":"treaty","Q1688818":"map","Q1048515":"map","Q1473669":"manuscript","Q1667520":"map","Q2723202":"map","Q2941628":"dataset","Q2981686":"manuscript","Q2981685":"manuscript","Q7551149":"motion_picture","Q2933856":"book","Q266680":"map","Q1702772":"map","Q2035351":"map","Q2073537":"manuscript","Q2204393":"map","Q2325507":"map","Q5469880":"report","Q5469893":"report","Q5469912":"report","Q10438653":"map","Q42793629":"speech","Q2678443":"dataset","Q1923776":"book","Q2981450":"book","Q1413174":"dataset","Q185529":"motion_picture","Q16254232":"motion_picture","Q31803237":"treaty","Q32945468":"dataset","Q59825643":"dataset","Q934552":"dataset","Q200562":"broadcast","Q303064":"broadcast","Q1484397":"broadcast","Q2049337":"broadcast","Q2123557":"broadcast","Q2308891":"report","Q2665960":"report","Q5227671":"broadcast","Q18030695":"report","Q18385907":"broadcast","Q21190411":"broadcast","Q47512784":"report","Q56330488":"book","Q33111614":"motion_picture","Q484692":"song","Q1033831":"song","Q1497584":"book","Q19705":"book","Q628080":"book","Q1535505":"book","Q2333573":"book","Q3357101":"book","Q12041885":"book","Q5151497":"motion_picture","Q7999883":"article","Q18398246":"motion_picture","Q56309057":"manuscript","Q61314299":"dataset","Q234280":"chapter","Q234300":"chapter","Q862334":"book","Q2973181":"motion_picture","Q3072049":"motion_picture","Q1747837":"motion_picture","Q12029612":"dataset","Q50380591":"book","Q51881567":"book","Q60029764":"book","Q914229":"article","Q5465451":"article","Q20135338":"motion_picture","Q1541065":"report","Q2594143":"dataset","Q16664076":"report","Q441261":"dataset","Q457843":"dataset","Q783287":"dataset","Q1115961":"dataset","Q1713174":"dataset","Q3327521":"dataset","Q151":"dataset","Q17123180":"motion_picture","Q15982056":"article-newspaper","Q59191021":"dataset","Q59248059":"dataset","Q59248072":"dataset","Q1371849":"dataset","Q17438413":"dataset","Q61914117":"dataset","Q3352071":"motion_picture","Q25051296":"webpage","Q25054829":"dataset","Q267136":"dataset","Q488053":"book","Q914881":"book","Q1397073":"dataset","Q1662581":"dataset","Q2268965":"dataset","Q3292731":"book","Q3406872":"dataset","Q5033354":"dataset","Q5227322":"dataset","Q5532670":"dataset","Q7515656":"book","Q7598341":"dataset","Q7995661":"dataset","Q14523803":"book","Q17146953":"dataset","Q25110279":"book","Q30008669":"book","Q30009376":"book","Q41623316":"dataset","Q38647918":"book","Q249697":"speech","Q1428914":"dataset","Q255135":"book","Q471894":"book","Q586744":"book","Q956165":"book","Q1569753":"book","Q2939758":"book","Q12040484":"book","Q13583784":"book","Q59351530":"book","Q61020892":"book","Q17086104":"map","Q17147147":"map","Q19393521":"map","Q58884":"broadcast","Q2635894":"broadcast","Q193842":"map","Q261468":"map","Q943929":"song","Q1123037":"song","Q336822":"song","Q336371":"map","Q459798":"map","Q831939":"map","Q865144":"map","Q889561":"map","Q1152543":"map","Q1187667":"broadcast","Q1281814":"map","Q1674401":"map","Q1742009":"broadcast","Q1778220":"map","Q1800237":"map","Q2126801":"map","Q2125867":"broadcast","Q2298569":"map","Q2940627":"map","Q4903803":"map","Q5687679":"map","Q10480692":"map","Q10604395":"map","Q10916116":"book","Q11960416":"map","Q12008992":"map","Q58901209":"dataset","Q19969268":"broadcast","Q20741385":"book","Q21009694":"book","Q24879310":"dataset","Q56028349":"book","Q56240541":"broadcast","Q56697520":"book","Q60586493":"dataset","Q183169":"webpage","Q825914":"book","Q1391116":"dataset","Q1516252":"book","Q1569406":"dataset","Q1609353":"dataset","Q1609504":"dataset","Q1862738":"book","Q2110197":"dataset","Q3237931":"broadcast","Q3956369":"broadcast","Q3962380":"dataset","Q4769616":"dataset","Q4804740":"book","Q5051330":"dataset","Q5615468":"dataset","Q6822329":"dataset","Q6912943":"broadcast","Q7144753":"dataset","Q10688394":"book","Q12331427":"dataset","Q15961983":"broadcast","Q18311760":"broadcast","Q1499601":"dataset","Q5374928":"map","Q7444356":"motion_picture","Q6729489":"motion_picture","Q7444692":"map","Q8036547":"map","Q1383152":"dataset","Q3564515":"speech","Q3890208":"dataset","Q21050458":"dataset","Q21050912":"dataset","Q26721650":"dataset","Q31841013":"dataset","Q1865123":"dataset","Q206290":"dataset","Q1088118":"dataset","Q7502102":"dataset","Q17121221":"map","Q23888763":"book","Q46992920":"speech","Q52506277":"dataset","Q51719975":"broadcast","Q19364663":"book","Q22938710":"book","Q193977":"motion_picture","Q59032066":"song","Q1989725":"song","Q2135500":"manuscript","Q3153927":"speech","Q526877":"broadcast","Q742157":"article-newspaper","Q6899707":"map","Q725377":"book","Q10541153":"book","Q21198407":"book","Q369074":"dataset","Q3249257":"motion_picture","Q4373044":"motion_picture","Q172067":"motion_picture","Q1046788":"motion_picture","Q24886171":"broadcast","Q53746253":"broadcast","Q16709869":"book","Q16960707":"book","Q19941906":"book","Q21660824":"book","Q21818614":"book","Q57987419":"interview","Q57987455":"interview","Q57987589":"interview","Q61725752":"book","Q225672":"book","Q263790":"book","Q284465":"book","Q431193":"book","Q608971":"book","Q634123":"book","Q817063":"book","Q833590":"book","Q1027825":"book","Q1385360":"book","Q1754581":"book","Q2114246":"book","Q2144117":"book","Q2732056":"book","Q2955456":"book","Q4203401":"book","Q7163040":"book","Q7603925":"broadcast","Q12765421":"book","Q15276670":"book","Q15627042":"book","Q6548306":"book","Q12046416":"map","Q472298":"legal_case","Q1261319":"map","Q5563391":"map","Q26644852":"broadcast","Q29167422":"dataset","Q7211":"dataset","Q48473":"dataset","Q217327":"legal_case","Q951437":"dataset","Q636033":"dataset","Q672593":"dataset","Q739047":"dataset","Q891854":"legal_case","Q1207369":"dataset","Q1391014":"dataset","Q1642648":"dataset","Q2859990":"dataset","Q3307317":"dataset","Q4330194":"dataset","Q6813020":"legal_case","Q6901292":"legal_case","Q7251471":"dataset","Q18711682":"legal_case","Q20057286":"dataset","Q23015465":"dataset","Q24243801":"dataset","Q24249534":"dataset","Q25917186":"legal_case","Q27214933":"dataset","Q28934204":"legal_case","Q39740866":"dataset","Q59495116":"dataset","Q60208424":"dataset","Q61037469":"legal_case","Q40426579":"map","Q43037778":"map","Q47008743":"map","Q26225493":"book","Q29043181":"dataset","Q55850593":"song","Q55850643":"song","Q58885732":"song","Q58885754":"song","Q927803":"song","Q430010":"song","Q2292588":"song","Q2499178":"dataset","Q2560570":"dataset","Q3077240":"dataset","Q3491832":"dataset","Q1235234":"dataset","Q7096323":"dataset","Q7831478":"song","Q1564816":"legal_case","Q2698974":"legal_case","Q20089346":"motion_picture","Q5366020":"motion_picture","Q11526166":"speech","Q4167410":"webpage","Q845159":"motion_picture","Q1003021":"dataset","Q4167836":"webpage","Q1249224":"report","Q11382506":"webpage","Q15475226":"webpage","Q15475319":"webpage","Q1991869":"book","Q11690026":"book","Q31209114":"webpage","Q35243371":"webpage","Q48781895":"motion_picture","Q56005592":"webpage","Q17586363":"book","Q20043999":"book","Q59738577":"webpage","Q61033232":"webpage","Q61033736":"dataset","Q61034350":"webpage","Q29573701":"dataset","Q645928":"motion_picture","Q3209941":"report","Q5165404":"bill","Q11078958":"report","Q45182324":"article-journal","Q56119332":"post-weblog","Q60797":"speech","Q1474597":"speech","Q2069352":"book","Q2983424":"motion_picture","Q19359000":"report","Q24067746":"post-weblog","Q51844620":"dataset","Q51539995":"webpage","Q55422400":"broadcast","Q130232":"motion_picture","Q635115":"dataset","Q1553078":"dataset","Q1784036":"book","Q1813223":"book","Q2326951":"book","Q2500820":"book","Q3423635":"dataset","Q4363806":"book","Q14605760":"webpage","Q21875313":"book","Q24633474":"broadcast","Q28136925":"broadcast","Q28135032":"broadcast","Q28472638":"speech","Q28472722":"speech","Q1011299":"broadcast","Q3276244":"broadcast","Q29883647":"treaty","Q42214612":"treaty","Q60215679":"broadcast","Q60215966":"broadcast","Q7033567":"treaty","Q8576":"treaty","Q3257212":"book","Q5166307":"treaty","Q7865023":"treaty","Q8187836":"treaty","Q16923948":"treaty","Q17211914":"treaty","Q20874666":"treaty","Q39233713":"treaty","Q8041497":"patent","Q50823049":"report","Q61715571":"book","Q193934":"book","Q193955":"book","Q990683":"book","Q12047175":"book","Q1250520":"dataset","Q2334774":"song","Q22001389":"dataset","Q61782519":"dataset","Q112762":"song","Q177771":"song","Q178122":"song","Q207683":"song","Q216860":"song","Q261434":"song","Q318894":"song","Q319448":"song","Q380233":"song","Q493169":"song","Q502658":"song","Q523896":"song","Q591990":"song","Q608253":"song","Q744327":"song","Q758422":"song","Q783874":"song","Q784074":"song","Q820119":"song","Q844450":"song","Q873000":"song","Q944800":"song","Q959583":"song","Q988502":"song","Q1009280":"song","Q2281713":"song","Q1033810":"song","Q1033813":"song","Q1151663":"song","Q1195253":"song","Q1195630":"song","Q1228189":"song","Q20477577":"dataset","Q1972954":"dataset","Q842256":"motion_picture","Q643684":"motion_picture","Q1033573":"dataset","Q1205607":"dataset","Q1971947":"dataset","Q2145124":"dataset","Q2819247":"dataset","Q4685824":"dataset","Q7002108":"dataset","Q7200622":"dataset","Q8267601":"dataset","Q9732903":"webpage","Q11002482":"webpage","Q12096573":"webpage","Q16059585":"webpage","Q16059613":"webpage","Q16059624":"webpage","Q19208935":"webpage","Q21450877":"webpage","Q31936067":"dataset","Q47500192":"dataset","Q1229479":"song","Q1232283":"song","Q1236108":"song","Q1288193":"song","Q1372064":"song","Q1382036":"song","Q1779217":"song","Q1779319":"song","Q1899706":"song","Q1905727":"song","Q1942905":"song","Q1956166":"song","Q1963108":"song","Q1966622":"song","Q2038845":"song","Q2058312":"song","Q2108499":"song","Q2165184":"song","Q2235992":"song","Q2298624":"song","Q2312959":"song","Q2358279":"song","Q2544997":"song","Q2707688":"song","Q2737175":"song","Q2891357":"song","Q2894096":"song","Q2956164":"song","Q2956172":"song","Q3033130":"song","Q3246270":"song","Q3299089":"song","Q3482281":"song","Q3562031":"song","Q3843655":"song","Q3889661":"song","Q3918025":"song","Q4056436":"song","Q4130112":"song","Q4528554":"song","Q4770819":"song","Q4797274":"song","Q5031532":"song","Q5037289":"song","Q5747946":"song","Q5766029":"song","Q6109162":"song","Q7148059":"song","Q7314000":"song","Q7561608":"song","Q7824869":"song","Q8053529":"song","Q8261762":"song","Q10677514":"song","Q21653344":"song","Q56572789":"song","Q503354":"song","Q11214531":"song","Q12115862":"song","Q12135013":"song","Q12313565":"song","Q13829124":"song","Q15810872":"song","Q15907187":"song","Q16084298":"song","Q16194930":"song","Q16912992":"song","Q17118203":"song","Q17150323":"song","Q18012876":"song","Q18406550":"song","Q19607140":"song","Q20087039":"song","Q20107778":"song","Q20980372":"song","Q21127215":"song","Q22086714":"song","Q23072435":"song","Q25022242":"song","Q27981708":"song","Q27981857":"song","Q29051387":"song","Q37731261":"song","Q42681239":"song","Q46863086":"song","Q55596270":"song","Q56425213":"song","Q56425237":"song","Q61688673":"song","Q229390":"motion_picture","Q319221":"motion_picture","Q369747":"motion_picture","Q370630":"motion_picture","Q421719":"motion_picture","Q430525":"motion_picture","Q455315":"motion_picture","Q459290":"motion_picture","Q505119":"motion_picture","Q517386":"motion_picture","Q652256":"motion_picture","Q663106":"motion_picture","Q790192":"motion_picture","Q848512":"motion_picture","Q1060398":"motion_picture","Q1146335":"motion_picture","Q1200678":"motion_picture","Q1251417":"motion_picture","Q1320115":"motion_picture","Q1361932":"motion_picture","Q1397462":"motion_picture","Q1933746":"motion_picture","Q1935609":"motion_picture","Q2125170":"motion_picture","Q2156835":"motion_picture","Q2165644":"motion_picture","Q2301591":"motion_picture","Q4382232":"broadcast","Q2321734":"motion_picture","Q2553613":"motion_picture","Q2903140":"motion_picture","Q3072043":"motion_picture","Q3250548":"motion_picture","Q3585697":"motion_picture","Q3648909":"motion_picture","Q3677141":"motion_picture","Q3677185":"motion_picture","Q3745400":"motion_picture","Q3745430":"motion_picture","Q4220915":"motion_picture","Q4484381":"motion_picture","Q5145881":"motion_picture","Q5378150":"motion_picture","Q7130449":"motion_picture","Q7858343":"motion_picture","Q9259727":"motion_picture","Q12309044":"motion_picture","Q12377598":"motion_picture","Q16721823":"motion_picture","Q16909344":"motion_picture","Q19799105":"motion_picture","Q19799133":"motion_picture","Q20442589":"motion_picture","Q20650540":"motion_picture","Q21182682":"motion_picture","Q24887738":"motion_picture","Q28735856":"motion_picture","Q29017630":"motion_picture","Q30070675":"motion_picture","Q30897819":"motion_picture","Q33373157":"motion_picture","Q43079104":"motion_picture","Q54086290":"motion_picture","Q54344007":"motion_picture","Q56192069":"motion_picture","Q58415294":"motion_picture","Q58903570":"motion_picture","Q61283808":"motion_picture","Q219557":"motion_picture","Q226730":"motion_picture","Q24865":"motion_picture","Q24869":"motion_picture","Q31235":"motion_picture","Q3956596":"book","Q20012720":"book","Q27070652":"book","Q738826":"speech","Q2623953":"speech","Q2781658":"speech","Q3479856":"speech","Q7454995":"speech","Q735478":"motion_picture","Q124922":"motion_picture","Q472637":"motion_picture","Q1092621":"motion_picture","Q1323308":"motion_picture","Q1352102":"motion_picture","Q1464369":"motion_picture","Q1474387":"motion_picture","Q1480924":"motion_picture","Q1760864":"motion_picture","Q1800833":"motion_picture","Q2084909":"motion_picture","Q27697957":"motion_picture","Q2670855":"motion_picture","Q3566966":"motion_picture","Q4765076":"motion_picture","Q20732395":"motion_picture","Q1684595":"dataset","Q7168625":"motion_picture","Q8192124":"motion_picture","Q5008290":"dataset","Q220399":"dataset","Q285745":"dataset","Q542475":"motion_picture","Q846544":"motion_picture","Q3072039":"motion_picture","Q23739":"broadcast","Q338632":"broadcast","Q288608":"broadcast","Q3421644":"broadcast","Q5465514":"broadcast","Q5812300":"broadcast","Q18340550":"webpage","Q21232614":"broadcast","Q1224870":"dataset","Q79715":"broadcast","Q278425":"dataset","Q548206":"motion_picture","Q632149":"motion_picture","Q996838":"motion_picture","Q1147986":"motion_picture","Q2258523":"map","Q2514870":"dataset","Q2559958":"broadcast","Q4342538":"map","Q15518544":"broadcast","Q15518777":"broadcast","Q20707560":"dataset","Q20871935":"motion_picture","Q55960075":"motion_picture","Q1224984":"dataset","Q5227308":"dataset","Q12328550":"dataset","Q20089094":"motion_picture","Q21040941":"dataset","Q668312":"motion_picture","Q30047053":"dataset","Q18493502":"legal_case","Q1067692":"motion_picture","Q18655723":"motion_picture","Q844993":"song","Q4763437":"book","Q19894488":"book","Q262533":"speech","Q591055":"speech","Q1851305":"speech","Q3588034":"speech","Q20669604":"speech","Q29642901":"dataset","Q1061420":"map","Q2914518":"map","Q186286":"broadcast","Q940462":"broadcast","Q15823625":"map","Q54328426":"broadcast","Q1713326":"motion_picture","Q4453959":"motion_picture","Q5905221":"musical_score","Q23368955":"motion_picture","Q55848868":"motion_picture","Q3072024":"motion_picture","Q965136":"map","Q3546572":"broadcast","Q5449041":"motion_picture","Q6645282":"broadcast","Q25360500":"broadcast","Q376820":"dataset","Q2422383":"dataset","Q14552560":"article-newspaper","Q219897":"dataset","Q787397":"map","Q14943256":"book","Q15715669":"map","Q3196335":"book","Q4700148":"book","Q11669289":"map","Q56683168":"map","Q6749508":"dataset","Q13039854":"dataset","Q19354904":"legal_case","Q25917154":"legal_case","Q25456031":"dataset","Q47484674":"dataset","Q948454":"dataset","Q1734165":"dataset","Q5441632":"book","Q7321644":"book","Q7890265":"book","Q28406796":"dataset","Q46130774":"dataset","Q54820068":"book","Q17146139":"map","Q23691":"song","Q54251760":"motion_picture","Q851995":"map","Q25336664":"dataset","Q11310550":"dataset","Q18086661":"dataset","Q18086666":"dataset","Q18086667":"dataset","Q18086665":"dataset","Q18086671":"dataset","Q18089574":"dataset","Q18089575":"dataset","Q18099930":"dataset","Q18100125":"dataset","Q18889352":"dataset","Q18922463":"dataset","Q20005020":"dataset","Q798134":"thesis","Q1414362":"thesis","Q30749496":"thesis","Q46629343":"thesis","Q51282441":"thesis","Q52823264":"thesis","Q58210330":"thesis","Q1907875":"thesis","Q23745":"broadcast","Q399811":"broadcast","Q775344":"broadcast","Q1658957":"broadcast","Q1786567":"broadcast","Q4783297":"broadcast","Q5219865":"broadcast","Q7185299":"broadcast","Q7731786":"broadcast","Q7892363":"broadcast","Q11086745":"broadcast","Q20986817":"broadcast","Q60393504":"broadcast","Q16342":"dataset","Q632285":"dataset","Q1751819":"dataset","Q2560532":"dataset","Q6517465":"dataset","Q1898445":"map","Q41436524":"book","Q50310598":"dataset","Q5366501":"broadcast","Q9018710":"broadcast","Q11935070":"broadcast","Q688869":"manuscript","Q962741":"manuscript","Q7797194":"dataset","Q1662452":"motion_picture","Q4499034":"song","Q6009879":"book","Q595801":"book","Q894351":"map","Q1352815":"broadcast","Q1569955":"dataset","Q2538131":"book","Q3348148":"dataset","Q5535082":"dataset","Q7574095":"dataset","Q47214765":"broadcast","Q61990518":"broadcast","Q2933978":"broadcast","Q6537693":"dataset","Q6888313":"book","Q12270042":"book","Q21292860":"broadcast","Q350514":"map","Q357674":"map","Q5191437":"dataset","Q24265951":"dataset","Q25110971":"book","Q29966258":"dataset","Q25894883":"dataset","Q2093973":"book","Q1711400":"broadcast","Q3071014":"broadcast","Q61029068":"webpage","Q61996773":"webpage","Q175902":"dataset","Q1295532":"webpage","Q1474116":"webpage","Q1501313":"dataset","Q1916557":"dataset","Q5333554":"dataset","Q7247749":"dataset","Q4330198":"dataset","Q5570651":"dataset","Q7251500":"dataset","Q7277178":"dataset","Q7689673":"dataset","Q15407973":"webpage","Q15647814":"webpage","Q16335141":"dataset","Q18392279":"dataset","Q15623926":"webpage","Q22808320":"webpage","Q24571879":"webpage","Q24574745":"webpage","Q17362920":"webpage","Q28065731":"webpage","Q28208970":"dataset","Q30432511":"webpage","Q54662266":"webpage","Q56428020":"webpage","Q58036154":"webpage","Q58181524":"webpage","Q58423626":"webpage","Q59541917":"webpage","Q59542487":"webpage","Q5227321":"dataset","Q178840":"broadcast","Q482612":"broadcast","Q662197":"broadcast","Q1054760":"broadcast","Q1273568":"broadcast","Q1676730":"broadcast","Q1802588":"broadcast","Q2388283":"broadcast","Q3189895":"broadcast","Q3951815":"broadcast","Q5778915":"broadcast","Q7050677":"broadcast","Q7135559":"broadcast","Q9335577":"broadcast","Q9671105":"broadcast","Q20061443":"broadcast","Q20220309":"broadcast","Q20267837":"broadcast","Q21233490":"broadcast","Q21191068":"broadcast","Q27868077":"broadcast","Q30939244":"broadcast","Q55082620":"broadcast","Q56320653":"broadcast","Q45787211":"dataset","Q1799894":"broadcast","Q19220511":"dataset","Q7841716":"motion_picture","Q5987970":"book","Q7864671":"motion_picture","Q21504449":"broadcast","Q61896850":"motion_picture","Q61911910":"motion_picture","Q15184295":"webpage","Q29581299":"book","Q3507630":"dataset","Q5571730":"webpage","Q13231199":"webpage","Q15851373":"webpage","Q19692233":"webpage","Q2921195":"book","Q20009925":"webpage","Q21167233":"webpage","Q25456482":"webpage","Q26884324":"webpage","Q28197061":"webpage","Q30032916":"webpage","Q33532284":"webpage","Q37152856":"webpage","Q19887878":"webpage","Q30044873":"report","Q11664270":"broadcast","Q1852859":"map","Q2297927":"motion_picture","Q2188827":"manuscript","Q4922471":"broadcast","Q16247289":"broadcast","Q25381170":"book","Q25696292":"dataset","Q11398":"dataset","Q210918":"dataset","Q267474":"dataset","Q1062352":"dataset","Q548492":"dataset","Q732744":"dataset","Q1520859":"dataset","Q1744559":"dataset","Q2748242":"dataset","Q3445240":"dataset","Q3518464":"dataset","Q3546241":"dataset","Q5172500":"dataset","Q6857882":"dataset","Q7398671":"dataset","Q22808060":"song","Q22298551":"dataset","Q22935148":"dataset","Q23014490":"dataset","Q23015153":"dataset","Q185867":"motion_picture","Q192625":"dataset","Q784969":"dataset","Q917904":"dataset","Q3546232":"dataset","Q4382932":"dataset","Q2357684":"dataset","Q2490652":"dataset","Q562667":"treaty","Q11510761":"treaty","Q39234115":"treaty","Q39235586":"treaty","Q39236188":"treaty","Q39236506":"treaty","Q39237589":"treaty","Q691836":"dataset","Q2299775":"dataset","Q2584888":"dataset","Q934210":"dataset","Q16355541":"dataset","Q57560929":"song","Q59826893":"dataset","Q478216":"dataset","Q1138178":"dataset","Q2621880":"dataset","Q2859969":"dataset","Q2964498":"dataset","Q4223049":"dataset","Q4421014":"dataset","Q16549505":"dataset","Q21441341":"dataset","Q26975748":"dataset","Q5366097":"motion_picture","Q1137588":"song","Q6022825":"broadcast","Q15977715":"broadcast","Q24906243":"broadcast","Q471839":"motion_picture","Q1794431":"motion_picture","Q3080071":"broadcast","Q6942568":"motion_picture","Q11900986":"motion_picture","Q16677772":"motion_picture","Q17517379":"motion_picture","Q20667187":"motion_picture","Q29168811":"motion_picture","Q34487266":"broadcast","Q47486001":"motion_picture","Q57780531":"motion_picture","Q223770":"motion_picture","Q4836991":"motion_picture","Q212781":"motion_picture","Q41270":"song","Q383904":"song","Q564848":"song","Q721644":"song","Q5158512":"song","Q6037387":"song","Q3962943":"motion_picture","Q21759196":"motion_picture","Q60630702":"motion_picture","Q222639":"motion_picture","Q1033891":"motion_picture","Q1535153":"motion_picture","Q1740789":"motion_picture","Q1776156":"motion_picture","Q1894374":"motion_picture","Q2421031":"motion_picture","Q332564":"motion_picture","Q853630":"motion_picture","Q909586":"motion_picture","Q987831":"motion_picture","Q1341051":"motion_picture","Q1342372":"motion_picture","Q1696148":"motion_picture","Q2584671":"motion_picture","Q4174664":"motion_picture","Q883179":"motion_picture","Q4925568":"motion_picture","Q5551875":"motion_picture","Q13377551":"motion_picture","Q16247268":"motion_picture","Q18089587":"motion_picture","Q18355406":"motion_picture","Q18648407":"motion_picture","Q4840473":"motion_picture","Q20656232":"motion_picture","Q23044991":"motion_picture","Q25110269":"motion_picture","Q27959357":"motion_picture","Q28968258":"motion_picture","Q28968511":"motion_picture","Q43911809":"motion_picture","Q1276148":"dataset","Q3546236":"dataset","Q819652":"motion_picture","Q1433443":"motion_picture","Q2096633":"motion_picture","Q10654943":"motion_picture","Q15898171":"motion_picture","Q1502766":"motion_picture","Q22981906":"motion_picture","Q33218678":"dataset","Q33219080":"dataset","Q1502102":"dataset","Q290066":"dataset","Q21473954":"dataset","Q884257":"map","Q1136047":"song","Q3442060":"motion_picture","Q6722594":"motion_picture","Q22802898":"dataset","Q1147354":"song","Q541947":"song","Q762917":"song","Q896981":"song","Q1329536":"song","Q1523875":"song","Q1802243":"song","Q4666464":"song","Q5419334":"song","Q5956747":"song","Q5956766":"song","Q10288496":"song","Q13142456":"song","Q54932319":"broadcast","Q16523070":"book","Q1345076":"dataset","Q1331138":"dataset","Q4984974":"motion_picture","Q5442753":"motion_picture","Q59688552":"motion_picture","Q1030329":"motion_picture","Q2560052":"motion_picture","Q50306849":"dataset","Q9351310":"dataset","Q17093751":"motion_picture","Q55616422":"motion_picture","Q5400070":"motion_picture","Q7097859":"motion_picture","Q2518205":"motion_picture","Q39774781":"song","Q40039114":"song","Q496523":"motion_picture","Q586250":"motion_picture","Q658334":"song","Q1206090":"song","Q2642760":"motion_picture","Q2956178":"song","Q3656521":"song","Q4184716":"song","Q4400497":"song","Q5897543":"motion_picture","Q10743749":"song","Q11989328":"song","Q12623540":"song","Q19367312":"motion_picture","Q47011432":"broadcast","Q61057707":"broadcast","Q1192644":"broadcast","Q1193356":"broadcast","Q1193877":"broadcast","Q1193889":"broadcast","Q1198546":"broadcast","Q1200102":"broadcast","Q1200891":"broadcast","Q1203502":"broadcast","Q1328971":"broadcast","Q15548228":"broadcast","Q18611586":"broadcast","Q27986339":"broadcast","Q16984663":"motion_picture","Q535518":"motion_picture","Q583768":"motion_picture","Q1377546":"motion_picture","Q2254193":"motion_picture","Q2292320":"motion_picture","Q3677202":"motion_picture","Q4044177":"motion_picture","Q4075563":"motion_picture","Q731194":"motion_picture","Q5578091":"motion_picture","Q5768328":"motion_picture","Q6926334":"motion_picture","Q7116678":"motion_picture","Q2527949":"dataset","Q6410349":"song","Q58006100":"dataset","Q1065413":"dataset","Q1334294":"dataset","Q5281480":"dataset","Q14806579":"dataset","Q21629439":"broadcast","Q27965091":"broadcast","Q27965088":"broadcast","Q27965089":"broadcast","Q1117103":"motion_picture","Q15077373":"song","Q21848887":"song","Q42525933":"song","Q1246452":"song","Q1564657":"song","Q1786016":"song","Q4138449":"song","Q26211803":"dataset","Q28107644":"dataset","Q438958":"dataset","Q893182":"dataset","Q1361620":"dataset","Q1744558":"dataset","Q2558761":"broadcast","Q3663344":"dataset","Q5837451":"dataset","Q17080472":"dataset","Q18762344":"dataset","Q22936940":"dataset","Q51282626":"thesis","Q51283070":"thesis","Q51283092":"thesis","Q51283110":"thesis","Q51283164":"thesis","Q51283181":"thesis","Q51283199":"thesis","Q51283219":"thesis","Q51283231":"thesis","Q51283362":"thesis","Q1789476":"dataset","Q1741854":"broadcast","Q11396323":"motion_picture","Q1428162":"song","Q4440575":"song","Q2137852":"motion_picture","Q20443008":"motion_picture","Q9049284":"song","Q2976573":"dataset","Q7247163":"dataset","Q18327786":"dataset","Q18327800":"dataset","Q28444881":"song","Q47009776":"motion_picture","Q4078107":"song","Q12242979":"broadcast","Q1308255":"dataset","Q828962":"dataset","Q2976602":"dataset","Q881912":"broadcast","Q16861376":"dataset","Q59784758":"broadcast","Q829147":"song","Q6457531":"motion_picture","Q28030321":"broadcast","Q28225717":"broadcast","Q4663261":"webpage","Q15145755":"webpage","Q18707678":"webpage","Q18711811":"webpage","Q20160182":"webpage","Q20870830":"webpage","Q22676729":"webpage","Q26214208":"webpage","Q28801937":"webpage","Q30279428":"webpage","Q55510433":"webpage","Q59259626":"webpage","Q20769287":"webpage","Q23894233":"webpage","Q24046192":"webpage","Q24514938":"webpage","Q30330522":"webpage","Q38084761":"webpage","Q58118449":"webpage","Q2886579":"dataset","Q21623879":"webpage","Q28092864":"webpage","Q52147067":"webpage","Q18043430":"webpage","Q18810260":"dataset","Q18889371":"dataset","Q18889411":"dataset","Q20893947":"legal_case","Q43096126":"motion_picture","Q56876503":"webpage","Q58408484":"webpage","Q58492747":"webpage","Q61984657":"webpage","Q3309896":"motion_picture","Q5864844":"motion_picture","Q6190581":"webpage","Q25826840":"webpage","Q220898":"motion_picture","Q2513417":"dataset","Q56885002":"webpage","Q179600":"dataset","Q714750":"dataset","Q15101896":"dataset","Q56558180":"song","Q845648":"webpage","Q58310010":"book","Q16937368":"song","Q28135297":"song","Q50309914":"dataset","Q57560968":"song","Q61740934":"song","Q61729725":"song","Q1047299":"motion_picture","Q2281511":"motion_picture","Q4292083":"motion_picture","Q11446446":"motion_picture","Q11464558":"motion_picture","Q11620244":"motion_picture","Q11673786":"motion_picture","Q16000226":"motion_picture","Q43069510":"motion_picture","Q8066387":"motion_picture","Q16824564":"motion_picture","Q52631698":"song","Q20589414":"song","Q20621902":"song","Q19659229":"song","Q2997685":"song","Q5124548":"song","Q512410":"song","Q23978249":"song","Q6647160":"webpage","Q18170752":"song","Q5881246":"song","Q1723850":"motion_picture","Q169672":"motion_picture","Q622310":"motion_picture","Q3072042":"motion_picture","Q5104880":"motion_picture","Q193605":"song","Q20818018":"dataset","Q1065444":"motion_picture","Q5258881":"motion_picture","Q856638":"dataset","Q5769583":"motion_picture","Q5769580":"motion_picture","Q5769586":"motion_picture","Q5769589":"motion_picture","Q5769592":"motion_picture","Q34848596":"motion_picture","Q2145099":"motion_picture","Q43082648":"broadcast","Q21441352":"dataset","Q2976563":"dataset","Q4680764":"dataset","Q4936202":"dataset","Q4992609":"dataset","Q5281190":"dataset","Q5281191":"dataset","Q5281189":"dataset","Q5281192":"dataset","Q5281193":"dataset","Q5465786":"dataset","Q5575198":"dataset","Q7133628":"dataset","Q7133619":"dataset","Q7133626":"dataset","Q7133625":"dataset","Q7133631":"dataset","Q7133632":"dataset","Q7133633":"dataset","Q7135076":"dataset","Q7136196":"dataset","Q7532102":"dataset","Q7539622":"dataset","Q7539620":"dataset","Q7992082":"dataset","Q7992083":"dataset","Q7992119":"dataset","Q7992116":"dataset","Q7992128":"dataset","Q7992164":"dataset","Q17145514":"dataset","Q28130146":"dataset","Q28130147":"dataset","Q28130145":"dataset","Q28134034":"dataset","Q28134060":"dataset","Q28134100":"dataset","Q28134126":"dataset","Q4179738":"song","Q26829682":"webpage","Q22870229":"webpage","Q22875692":"webpage","Q22876063":"webpage","Q22876332":"webpage","Q25737003":"webpage","Q25830508":"webpage","Q57971242":"webpage","Q5611964":"webpage","Q5613278":"webpage","Q5615491":"webpage","Q5618337":"webpage","Q5620523":"webpage","Q5621344":"webpage","Q5622928":"webpage","Q5624848":"webpage","Q5626725":"webpage","Q5636579":"webpage","Q5827463":"webpage","Q5904431":"webpage","Q5911510":"webpage","Q6072180":"webpage","Q6232685":"webpage","Q6305829":"webpage","Q6372354":"webpage","Q6419146":"webpage","Q6499145":"webpage","Q6584170":"webpage","Q6584434":"webpage","Q6606549":"webpage","Q6622740":"webpage","Q6632234":"webpage","Q7241821":"webpage","Q7485705":"webpage","Q8784047":"webpage","Q10560362":"webpage","Q10584970":"webpage","Q10712699":"webpage","Q10730006":"webpage","Q10805463":"webpage","Q10992965":"webpage","Q11011669":"webpage","Q11052053":"webpage","Q11223110":"webpage","Q11839555":"webpage","Q12930680":"webpage","Q13383621":"webpage","Q13394564":"webpage","Q13492790":"webpage","Q13512760":"webpage","Q13763959":"webpage","Q14335223":"webpage","Q14336297":"webpage","Q14336339":"webpage","Q14358273":"webpage","Q14358335":"webpage","Q14358826":"webpage","Q14358898":"webpage","Q14358899":"webpage","Q14396951":"webpage","Q14404469":"webpage","Q14445515":"webpage","Q22867433":"webpage","Q15709178":"webpage","Q17615621":"webpage","Q18340985":"webpage","Q18881752":"webpage","Q22668105":"webpage","Q22706969":"webpage","Q22830149":"webpage","Q22834716":"webpage","Q22834726":"webpage","Q22838914":"webpage","Q22844738":"webpage","Q22846593":"webpage","Q22846942":"webpage","Q22846954":"webpage","Q22846964":"webpage","Q22858302":"webpage","Q22862005":"webpage","Q22867722":"webpage","Q22869003":"webpage","Q33130924":"motion_picture","Q30415057":"webpage","Q55648788":"webpage","Q4663903":"webpage","Q21528878":"webpage","Q22247630":"webpage","Q249083":"dataset","Q1750705":"dataset","Q955185":"dataset","Q1326107":"dataset","Q1520639":"dataset","Q2943040":"dataset","Q6404298":"dataset","Q7248117":"dataset","Q7674850":"dataset","Q29057009":"webpage","Q35250433":"webpage","Q35779580":"webpage","Q47382471":"webpage","Q47524402":"webpage","Q54734643":"webpage","Q58573615":"webpage","Q61866692":"webpage","Q8615872":"webpage","Q21286738":"webpage","Q21469493":"webpage","Q21479588":"webpage","Q23841178":"webpage","Q24571886":"webpage","Q26211786":"dataset","Q28368760":"webpage","Q28373483":"webpage","Q849666":"motion_picture","Q18089617":"motion_picture","Q18889701":"dataset","Q20010800":"webpage","Q163126":"dataset","Q1967745":"dataset","Q2122972":"dataset","Q2565860":"dataset","Q3516420":"dataset","Q13331174":"webpage","Q15088954":"dataset","Q15885744":"dataset","Q16069643":"dataset","Q17146890":"dataset","Q18435139":"dataset","Q20107258":"dataset","Q23894246":"webpage","Q57733325":"dataset","Q17175676":"motion_picture","Q26196748":"motion_picture","Q21484471":"webpage","Q265147":"song","Q56558213":"song","Q627181":"song","Q1151259":"song","Q7023411":"song","Q190635":"dataset","Q526334":"dataset","Q1982918":"dataset","Q2362354":"dataset","Q22842824":"webpage","Q3129804":"motion_picture","Q22677515":"webpage","Q48552277":"webpage","Q56876519":"webpage","Q11753321":"webpage","Q15671253":"webpage","Q20769160":"webpage","Q24731821":"webpage","Q26142649":"webpage","Q36330215":"webpage","Q6306272":"webpage","Q14385296":"webpage","Q14403646":"webpage","Q20107493":"dataset","Q20743001":"webpage","Q14460829":"webpage","Q11643859":"song","Q16141944":"song","Q17990546":"song","Q20043946":"song","Q44292661":"webpage","Q29075123":"webpage","Q40218570":"webpage","Q910144":"dataset","Q5622823":"webpage","Q13565583":"webpage","Q19648608":"webpage","Q19915239":"dataset","Q21278897":"webpage","Q21441359":"dataset","Q21441363":"dataset","Q23841351":"webpage","Q26932615":"webpage","Q26961029":"webpage","Q27949687":"webpage","Q27949697":"webpage","Q28858528":"webpage","Q29075121":"webpage","Q922853":"song","Q3879286":"song","Q3368338":"dataset","Q10997407":"webpage","Q19842659":"webpage","Q56062113":"webpage"}'),N=e=>{let{P1545:t}=e;return t?parseInt(t[0]):-1},D=e=>{let{value:t,qualifiers:n}=e,[r]=(e=>[].concat(...[e.P1932,e.P1810].filter(Boolean)))(n);return r||(r="string"===typeof t?t:H(t)),r=r?(0,I.parse)(r):{literal:r},r._ordinal=N(n),r},M=e=>e.map(D).sort(((e,t)=>e._ordinal-t._ordinal)),B=e=>{const t=e.claims.P17[0].value,n=t.claims.P1813.filter((e=>{let{qualifiers:{P31:t}}=e;return!t||"Q28840786"!==t[0]}));return H(e)+", "+(n[0]||t.claims.P1448[0]).value},Q=e=>e.claims.P1476?e.claims.P1476[0].value:H(e),U=e=>e.map((e=>{let{value:t}=e;return H(t)})).join(","),F=e=>({"date-parts":e.map((e=>(0,L.K0)(e.value))).filter((e=>e&&e["date-parts"])).map((e=>e["date-parts"][0]))});function z(e,t,n){switch(e){case"type":return q(t);case"author":case"director":case"container-author":case"collection-editor":case"composer":case"editor":case"illustrator":case"original-author":case"recipient":case"reviewed-author":case"translator":return M(t);case"issued":case"original-date":return(0,L.K0)(t);case"event-date":return F(t);case"keyword":return U(t);case"container-title":case"collection-title":case"event":case"medium":case"publisher":case"original-publisher":return Q(t);case"event-place":case"original-publisher-place":case"publisher-place":return B(t);case"collection-number":return N(t[0].qualifiers);case"number-of-volumes":return t.length;default:return t}}function q(e){return R[e]?R[e]:(l.logger.unmapped("[plugin-wikidata]","publication type",e),"book")}function H(e){if(!e)return;const t=d.langs.find((t=>e.labels[t]));return e.labels[t]}const W=JSON.parse('{"author":{"values":"all","props":["P50","P2093"]},"composer":{"values":"all","props":["P86"]},"collection-editor":{"values":"all","props":["P179.P98"]},"collection-number":{"values":"all","props":["P179"]},"collection-title":"P179","container-author":{"values":"all","props":["P1433.P50","P1433.P2093","P361.P50","P361.P2093"]},"container-title":{"values":"any","props":["P1433","P361"]},"container-title-short":{"values":"any","props":["P1433.P1813","P1433.P1160"]},"director":{"values":"all","props":["P57"]},"DOI":"P356","edition":"P393","editor":{"values":"all","props":["P98"]},"event":"P1433.P4745","event-date":{"values":"all","props":["P1433.P4745.P580","P1433.P4745.P582"]},"event-place":"P1433.P4745.P276","illustrator":{"values":"all","props":["P110"]},"ISBN":{"values":"any","props":["P212","P957"]},"ISSN":"P1433.P236","issue":"P433","issued":"P577","journalAbbreviation":{"values":"any","props":["P1433.P1813","P1433.P1160"]},"keyword":{"values":"all","props":["P921"]},"language":{"values":"any","props":["P407.P218","P364.P218"]},"medium":{"values":"any","props":["P437","P186"]},"number-of-pages":"P1104","number-of-volumes":{"values":"all","props":["P179.P527"]},"original-author":{"values":"all","props":["P629.P50","P629.P2093"]},"original-date":"P629.P577","original-publisher":"P629.P123","original-publisher-place":{"values":"any","props":["P629.P123.P740","P629.P123.P159"]},"original-title":"P629.P1476","page":"P304","PMID":"P698","PMCID":"P932","publisher":"P123","publisher-place":{"values":"any","props":["P123.P740","P123.P159"]},"recipient":{"values":"all","props":["P1817"]},"reviewed-title":"P921.P1476","reviewed-author":{"values":"all","props":["P921.P50","P921.P2093"]},"scale":"P1752","title":"P1476","translator":{"values":"all","props":["P655"]},"type":"P31","version":"P348","volume":"P478","URL":{"values":"any","props":["P856","P953","P973","P2699"]}}'),G=JSON.parse('{"P2860":"Cites","P921":"Main subject","P3181":"OpenCitations bibliographic resource ID","P364":"Original language of work"}');function V(e,t,n){const r=e.split(".");return n.delete(r[0]),function e(t,n){let[r,...i]=t,{claims:o}=n;return i.length?o[r]&&o[r].length?e(i,o[r][0].value):void 0:o[r]}(r,t)}function $(e,t,n){if("object"!==typeof e){const r=V(e,t,n);return r&&r[0].value}const r=[].concat(...e.props.map((e=>V(e,t,n))).filter(Boolean));return"all"===e.values?r[0]&&r:r[0]&&r[0].value}function K(e){const t={id:e.id,_wikiId:e.id,source:"Wikidata"},n=new Set(Object.keys(e.claims));for(const r in W){const i=$(W[r],e,n);if(i){const e=z(r,i);e&&(t[r]=e)}}for(const r of n)r in G||l.logger.unmapped("[plugin-wikidata]","property",r);return t.title||(t.title=H(e)),(t["reviewed-title"]||t["reviewed-author"])&&("review"!==t.type.slice(0,6)&&(t.type="review"),delete t.keyword),t.recipient&&(t.type="personal_communication"),t.event&&(t.type="paper-conference"),t}async function Y(e){let{entities:t}=e;return(await P(t)).map(K)}function Z(e){let{entities:t}=e;return j(t).map(K)}const J=e=>e.match(/\/(Q\d+)(?:[#?/]|\s*$)/)[1],X="@wikidata",ee={id:r,entity:a,prop:o,url:s,api:i},te={"@wikidata/id":{parse:p,parseType:{dataType:"String",predicate:/^Q\d+$/}},"@wikidata/list+text":{parse:e=>e.trim().split(/(?:[\s,]\s*)/g),parseType:{dataType:"String",predicate:/^\s*((?:Q\d+(?:[\s,]\s*))*Q\d+)\s*$/}},"@wikidata/api":{parse:m,parseAsync:g,parseType:{dataType:"String",predicate:/^(https?:\/\/(?:www\.)?wikidata.org\/w\/api\.php(?:\?.*)?)$/,extends:"@else/url"}},"@wikidata/array+api":{parse:m,parseAsync:g,parseType:{dataType:"Array",elementConstraint:"@wikidata/api"}},"@wikidata/url":{parse:J,parseType:{dataType:"String",predicate:/\/(Q\d+)(?:[#?/]|\s*$)/,extends:"@else/url"}},"@wikidata/list+object":{parse:p,parseType:{dataType:"Array",elementConstraint:"@wikidata/id"}},"@wikidata/object":{parse:Z,parseAsync:Y,parseType:{dataType:"SimpleObject",propertyConstraint:{props:"entities"}}},"@wikidata/array+object":{parse:e=>e.reduce(((e,t)=>{let{success:n,entities:r}=t;return e.success&=n,Object.assign(e.entities,r),e}),{}),parseType:{dataType:"Array",elementConstraint:"@wikidata/object"},outputs:"@wikidata/object"},"@wikidata/prop":{parse:z},"@wikidata/type":{parse:q}};l.plugins.add(X,{input:te,config:d})},6908:(e,t,n)=>{"use strict";Object.defineProperty(t,"K0",{enumerable:!0,get:function(){return r.default}});var r=o(n(112)),i=o(n(3688));function o(e){return e&&e.__esModule?e:{default:e}}},112:(e,t)=>{"use strict";function n(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)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(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.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n+e<0)))return null;r=+n[0]<0||+n[0]>+n[1]&&+n[1]>0?n.pop():n.shift()}return[n.pop(),r]}return null}(e)||function(e){if("string"!==typeof e)return null;const t=e.match(/^(\d+) ?(a\.?d\.?|b\.?c\.?)$/i);if(t){const e=n(t.slice(1),2);return[e[0]*("a"===e[1].toLowerCase()[0]?1:-1)]}return/^-?\d+$/.test(e)?[e]:null}(e);return t&&t.map((e=>parseInt(e)))}var d=function(e,t){const n=[],r="string"===typeof e&&function(e){return a.test(e)?e.match(a).slice(1,3):e.split(o)}(e);t?n.push(e,t):r&&2===r.length?n.push(...r):n.push(e);const i=n.map(u);return i.filter(Boolean).length===n.length?{"date-parts":i}:{raw:t?n.join("/"):e}};t.default=d},3688:(e,t)=>{"use strict";function n(e,t,n){if(e.length>=t)return e;for(;e.length1&&void 0!==arguments[1]?arguments[1]:"-";if(!e["date-parts"])return e.raw;const r=e["date-parts"][0].map((e=>e.toString()));switch(r.length){case 3:r[2]=n(r[2],2,"0");case 2:r[1]=n(r[1],2,"0");case 1:r[0]=n(r[0],4,"0")}return r.join(t)};t.default=r},4484:(e,t,n)=>{"use strict";n.d(t,{c:()=>u});var r=n(5984),i=n(2540),o=n(1468),a=n(5504),s=n(1512),l=n(3620),c=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,u=e.color,d=void 0===u?"inherit":u,p=e.component,h=void 0===p?"svg":p,f=e.fontSize,m=void 0===f?"medium":f,g=e.htmlColor,v=e.titleAccess,b=e.viewBox,y=void 0===b?"0 0 24 24":b,_=(0,i.c)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(h,(0,r.c)({className:(0,a.c)(s.root,c,"inherit"!==d&&s["color".concat((0,l.c)(d))],"default"!==m&&"medium"!==m&&s["fontSize".concat((0,l.c)(m))]),focusable:"false",viewBox:y,color:g,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:t},_),n,v?o.createElement("title",null,v):null)}));c.muiName="SvgIcon";const u=(0,s.c)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(c)},9816:(e,t,n)=>{"use strict";n.d(t,{IV:()=>h,OM:()=>s,SS:()=>u,W4:()=>d,ct:()=>c,sP:()=>p});var r=n(1856);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.c)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function l(e){var t="hsl"===(e=o(e)).type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),a({type:c,values:u})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return l(e)>.5?p(e,t):h(e,t)}function u(e,t){return d(e,t)}function d(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function p(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function h(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},78:(e,t,n)=>{"use strict";n.d(t,{c:()=>R});var r=n(2540),i=n(8384),o=n(5984),a=["xs","sm","md","lg","xl"];var s=n(2312);function l(e,t,n){var r;return(0,o.c)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,o.c)({paddingLeft:t(2),paddingRight:t(2)},n,(0,s.c)({},e.up("sm"),(0,o.c)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,s.c)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,s.c)(r,e.up("sm"),{minHeight:64}),r)},n)}var c=n(1856);const u={black:"#000",white:"#fff"};const d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};const p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};const h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};const f={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};const m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};const g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};const v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var b=n(9816),y={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:u.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},_={text:{primary:u.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:u.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function x(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,b.IV)(e.main,i):"dark"===t&&(e.dark=(0,b.sP)(e.main,o)))}function w(e){return Math.round(1e5*e)/1e5}function E(e){return w(e)}var T={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function k(e,t){var n="function"===typeof t?t(e):t,a=n.fontFamily,s=void 0===a?C:a,l=n.fontSize,c=void 0===l?14:l,u=n.fontWeightLight,d=void 0===u?300:u,p=n.fontWeightRegular,h=void 0===p?400:p,f=n.fontWeightMedium,m=void 0===f?500:f,g=n.fontWeightBold,v=void 0===g?700:g,b=n.htmlFontSize,y=void 0===b?16:b,_=n.allVariants,x=n.pxToRem,k=(0,r.c)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var S=c/14,O=x||function(e){return"".concat(e/y*S,"rem")},A=function(e,t,n,r,i){return(0,o.c)({fontFamily:s,fontWeight:e,fontSize:O(t),lineHeight:n},s===C?{letterSpacing:"".concat(w(r/t),"em")}:{},i,_)},j={h1:A(d,96,1.167,-1.5),h2:A(d,60,1.2,-.5),h3:A(h,48,1.167,0),h4:A(h,34,1.235,.25),h5:A(h,24,1.334,0),h6:A(m,20,1.6,.15),subtitle1:A(h,16,1.75,.15),subtitle2:A(m,14,1.57,.1),body1:A(h,16,1.5,.15),body2:A(h,14,1.43,.15),button:A(m,14,1.75,.4,T),caption:A(h,12,1.66,.4),overline:A(h,12,2.66,1,T)};return(0,i.c)((0,o.c)({htmlFontSize:y,pxToRem:O,round:E,fontFamily:s,fontSize:c,fontWeightLight:d,fontWeightRegular:h,fontWeightMedium:m,fontWeightBold:v},j),k,{clone:!1})}function S(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const O=["none",S(0,2,1,-1,0,1,1,0,0,1,3,0),S(0,3,1,-2,0,2,2,0,0,1,5,0),S(0,3,3,-2,0,3,4,0,0,1,8,0),S(0,2,4,-1,0,4,5,0,0,1,10,0),S(0,3,5,-1,0,5,8,0,0,1,14,0),S(0,3,5,-1,0,6,10,0,0,1,18,0),S(0,4,5,-2,0,7,10,1,0,2,16,1),S(0,5,5,-3,0,8,10,1,0,3,14,2),S(0,5,6,-3,0,9,12,1,0,3,16,2),S(0,6,6,-3,0,10,14,1,0,4,18,3),S(0,6,7,-4,0,11,15,1,0,4,20,3),S(0,7,8,-4,0,12,17,2,0,5,22,4),S(0,7,8,-4,0,13,19,2,0,5,24,4),S(0,7,9,-4,0,14,21,2,0,5,26,4),S(0,8,9,-5,0,15,22,2,0,6,28,5),S(0,8,10,-5,0,16,24,2,0,6,30,5),S(0,8,11,-5,0,17,26,2,0,6,32,5),S(0,9,11,-5,0,18,28,2,0,7,34,6),S(0,9,12,-6,0,19,29,2,0,7,36,6),S(0,10,13,-6,0,20,31,3,0,8,38,7),S(0,10,13,-6,0,21,33,3,0,8,40,7),S(0,10,14,-6,0,22,35,3,0,8,42,7),S(0,11,14,-7,0,23,36,3,0,9,44,8),S(0,11,15,-7,0,24,38,3,0,9,46,8)];const A={borderRadius:4};var j=n(6304);var P=n(4880),I=n(8848);function L(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,s=e.mixins,w=void 0===s?{}:s,E=e.palette,T=void 0===E?{}:E,C=e.spacing,S=e.typography,L=void 0===S?{}:S,R=(0,r.c)(e,["breakpoints","mixins","palette","spacing","typography"]),N=function(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,a=e.secondary,s=void 0===a?{light:h.A200,main:h.A400,dark:h.A700}:a,l=e.error,w=void 0===l?{light:f[300],main:f[500],dark:f[700]}:l,E=e.warning,T=void 0===E?{light:m[300],main:m[500],dark:m[700]}:E,C=e.info,k=void 0===C?{light:g[300],main:g[500],dark:g[700]}:C,S=e.success,O=void 0===S?{light:v[300],main:v[500],dark:v[700]}:S,A=e.type,j=void 0===A?"light":A,P=e.contrastThreshold,I=void 0===P?3:P,L=e.tonalOffset,R=void 0===L?.2:L,N=(0,r.c)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function D(e){return(0,b.OM)(e,_.text.primary)>=I?_.text.primary:y.text.primary}var M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,o.c)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,c.c)(4,t));if("string"!==typeof e.main)throw new Error((0,c.c)(5,JSON.stringify(e.main)));return x(e,"light",n,R),x(e,"dark",r,R),e.contrastText||(e.contrastText=D(e.main)),e},B={dark:_,light:y};return(0,i.c)((0,o.c)({common:u,type:j,primary:M(n),secondary:M(s,"A400","A200","A700"),error:M(w),warning:M(T),info:M(k),success:M(O),grey:d,contrastThreshold:I,getContrastText:D,augmentColor:M,tonalOffset:R},B[j]),N)}(T),D=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,i=e.unit,s=void 0===i?"px":i,l=e.step,c=void 0===l?5:l,u=(0,r.c)(e,["values","unit","step"]);function d(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=a.indexOf(t);return r===a.length-1?d(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[a[r+1]]?n[a[r+1]]:t)-c/100).concat(s,")")}return(0,o.c)({keys:a,values:n,up:d,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?d("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-c/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return n[e]}},u)}(n),M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,j.I)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r1?Q-1:0),F=1;F{"use strict";n.d(t,{c:()=>r});const r=(0,n(78).c)()},4880:(e,t,n)=>{"use strict";n.d(t,{cp:()=>s,rV:()=>o});var r=n(2540),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}const s={easing:i,duration:o,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?o.standard:n,l=t.easing,c=void 0===l?i.easeInOut:l,u=t.delay,d=void 0===u?0:u;(0,r.c)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:a(s)," ").concat(c," ").concat("string"===typeof d?d:a(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},1512:(e,t,n)=>{"use strict";n.d(t,{c:()=>h});var r=n(5984),i=n(2540),o=n(1468),a=n(9996),s=n.n(a),l=n(3236),c=n(4328),u=n(2200);const d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,d=t.withTheme,p=void 0!==d&&d,h=t.name,f=(0,i.c)(t,["defaultTheme","withTheme","name"]);var m=h,g=(0,l.c)(e,(0,r.c)({defaultTheme:a,Component:n,name:h||n.displayName,classNamePrefix:m},f)),v=o.forwardRef((function(e,t){e.classes;var s,l=e.innerRef,d=(0,i.c)(e,["classes","innerRef"]),f=g((0,r.c)({},n.defaultProps,e)),m=d;return("string"===typeof h||p)&&(s=(0,u.c)()||a,h&&(m=(0,c.c)({theme:s,name:h,props:d})),p&&!m.theme&&(m.theme=s)),o.createElement(n,(0,r.c)({ref:l||t,classes:f},m))}));return s()(v,n),v}};var p=n(3376);const h=function(e,t){return d(e,(0,r.c)({defaultTheme:p.c},t))}},8848:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},3620:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(1856);function i(e){if("string"!==typeof e)throw new Error((0,r.c)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},2656:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;nr})},5696:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(5984),i=n(1468),o=n(4484);function a(e,t){var n=function(t,n){return i.createElement(o.c,(0,r.c)({ref:n},t),e)};return n.muiName=o.c.muiName,i.memo(i.forwardRef(n))}},664:(e,t,n)=>{"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;or})},8148:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>r.c,createChainedFunction:()=>i.c,createSvgIcon:()=>o.c,debounce:()=>a.c,deprecatedPropType:()=>s,isMuiElement:()=>l.c,ownerDocument:()=>c.c,ownerWindow:()=>u.c,requirePropFactory:()=>d,setRef:()=>p.c,unstable_useId:()=>v.c,unsupportedProp:()=>h,useControlled:()=>f.c,useEventCallback:()=>m.c,useForkRef:()=>g.c,useIsFocusVisible:()=>b.c});var r=n(3620),i=n(2656),o=n(5696),a=n(664);function s(e,t){return function(){return null}}var l=n(168),c=n(7376),u=n(6804);function d(e){return function(){return null}}var p=n(9184);function h(e,t,n,r,i){return null}var f=n(6960),m=n(9568),g=n(576),v=n(5064),b=n(2880)},168:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(1468);function i(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},7376:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{c:()=>r})},6804:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(7376);function i(e){return(0,r.c)(e).defaultView||window}},9184:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{c:()=>r})},5064:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(1468);function i(e){var t=r.useState(e),n=t[0],i=t[1],o=e||n;return r.useEffect((function(){null==n&&i("mui-".concat(Math.round(1e5*Math.random())))}),[n]),o}},6960:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(1468);function i(e){var t=e.controlled,n=e.default,i=(e.name,e.state,r.useRef(void 0!==t).current),o=r.useState(n),a=o[0],s=o[1];return[i?t:a,r.useCallback((function(e){i||s(e)}),[])]}},9568:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(1468),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function o(e){var t=r.useRef(e);return i((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},576:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(1468),i=n(9184);function o(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,i.c)(e,n),(0,i.c)(t,n)}}),[e,t])}},2880:(e,t,n)=>{"use strict";n.d(t,{c:()=>f});var r=n(1468),i=n(4840),o=!0,a=!1,s=null,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function u(){o=!1}function d(){"hidden"===this.visibilityState&&a&&(o=!0)}function p(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return o||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function h(){a=!0,window.clearTimeout(s),s=window.setTimeout((function(){a=!1}),100)}function f(){return{isFocusVisible:p,onBlurVisible:h,ref:r.useCallback((function(e){var t,n=i.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[])}}},3564:(e,t,n)=>{"use strict";var r=n(5272),i=n(6536);t.c=void 0;var o=i(n(1468)),a=(0,r(n(1204)).default)(o.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");t.c=a},5140:(e,t,n)=>{"use strict";var r=n(5272),i=n(6536);t.c=void 0;var o=i(n(1468)),a=(0,r(n(1204)).default)(o.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");t.c=a},6212:(e,t,n)=>{"use strict";var r=n(5272),i=n(6536);t.c=void 0;var o=i(n(1468)),a=(0,r(n(1204)).default)(o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");t.c=a},6968:(e,t,n)=>{"use strict";var r=n(5272),i=n(6536);t.c=void 0;var o=i(n(1468)),a=(0,r(n(1204)).default)(o.createElement("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}),"DragHandle");t.c=a},3651:(e,t,n)=>{"use strict";var r=n(5272),i=n(6536);t.c=void 0;var o=i(n(1468)),a=(0,r(n(1204)).default)(o.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.c=a},4968:(e,t,n)=>{"use strict";var r=n(5272),i=n(6536);t.c=void 0;var o=i(n(1468)),a=(0,r(n(1204)).default)(o.createElement("path",{d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"}),"Translate");t.c=a},1204:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(8148)},9928:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__"},4328:(e,t,n)=>{"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}n.d(t,{c:()=>r})},3236:(e,t,n)=>{"use strict";n.d(t,{c:()=>cn});var r=n(2540),i=n(5984),o=n(1468),a="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};const s="object"===("undefined"===typeof window?"undefined":a(window))&&"object"===("undefined"===typeof document?"undefined":a(document))&&9===document.nodeType;var l=n(4816),c=n(5776),u=n(4316),d=n(1632),p={}.constructor;function h(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(h);if(e.constructor!==p)return e;var t={};for(var n in e)t[n]=h(e[n]);return t}function f(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=h(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var m=function(e,t){for(var n="",r=0;r<+~=|^:(),"'`\s])/g,x="undefined"!==typeof CSS&&CSS.escape,w=function(e){return x?x(e):e.replace(_,"\\$1")},E=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),T=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l((0,u.c)((0,u.c)(i)),s),i.selectorText="."+w(i.id)),i}(0,c.c)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=g(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,i.c)({},e,{allowEmpty:!0}):e;return y(this.selectorText,this.style,n)},(0,l.c)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(E),C={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new T(e,t,n)}},k={indent:1,children:!0},S=/@([\w-]+)/,O=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(S);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new J((0,i.c)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=k);var t=v(e).linebreak;if(null==e.indent&&(e.indent=k.indent),null==e.children&&(e.children=k.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),A=/@container|@media|@supports\s+/,j={onCreateRule:function(e,t,n){return A.test(e)?new O(e,t,n):null}},P={indent:1,children:!0},I=/@keyframes\s+([\w-]+)/,L=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(I);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,a=n.sheet,s=n.generateId;for(var l in this.id=!1===o?this.name:w(s(this,a)),this.rules=new J((0,i.c)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,i.c)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=P);var t=v(e).linebreak;if(null==e.indent&&(e.indent=P.indent),null==e.children&&(e.children=P.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),R=/@keyframes\s+/,N=/\$([\w-]+)/g,D=function(e,t){return"string"===typeof e?e.replace(N,(function(e,n){return n in t?t[n]:e})):e},M=function(e,t,n){var r=e[t],i=D(r,n);i!==r&&(e[t]=i)},B={onCreateRule:function(e,t,n){return"string"===typeof e&&R.test(e)?new L(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&M(e,"animation-name",n.keyframes),"animation"in e&&M(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return D(e,r.keyframes);default:return e}}},Q=function(e){function t(){return e.apply(this,arguments)||this}return(0,c.c)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,i.c)({},e,{allowEmpty:!0}):e;return y(this.key,this.style,n)},t}(E),U={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Q(e,t,n):null}},F=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=v(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r=this.index)t.push(e);else for(var r=0;rn)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,d.c)(t,["attached"]),i=v(r).linebreak,o="",a=0;a-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(a){return!1}return!0},ue=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},de=function(e,t){return e.selectorText=t,e.selectorText===t},pe=se((function(){return document.querySelector("head")}));function he(e){var t=ne.registry;if(t.length>0){var n=function(e,t){for(var n=0;nt.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var i=function(e){for(var t=pe(),n=0;nn?n:t},ve=function(){function e(e){this.getPropertyValue=le,this.setProperty=ce,this.removeProperty=ue,this.setSelector=de,this.hasInsertedRules=!1,this.cssRules=[],e&&ne.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=fe();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=he(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else pe().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n-1){var i=Nt[e];if(!Array.isArray(i))return ht.js+yt(i)in t&&ht.css+i;if(!r)return!1;for(var o=0;ot?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Oe.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Se.c]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(i).concat(c())}}(),nn={disableGeneration:!1,generateClassName:tn,jss:en,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},rn=o.createContext(nn);var on=-1e9;var an=n(8384);const sn={};function ln(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,a=e.stylesCreator,s=e.name;if(!o.disableGeneration){var l=Ce.get(o.sheetsManager,a,r);l||(l={refs:0,staticSheet:null,dynamicStyles:null},Ce.set(o.sheetsManager,a,r,l));var c=(0,i.c)({},a.options,o,{theme:r,flip:"boolean"===typeof o.flip?o.flip:"rtl"===r.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var u=o.sheetsRegistry;if(0===l.refs){var d;o.sheetsCache&&(d=Ce.get(o.sheetsCache,a,r));var p=a.create(r,s);d||((d=o.jss.createStyleSheet(p,(0,i.c)({link:!1},c))).attach(),o.sheetsCache&&Ce.set(o.sheetsCache,a,r,d)),u&&u.add(d),l.staticSheet=d,l.dynamicStyles=we(p)}if(l.dynamicStyles){var h=o.jss.createStyleSheet(l.dynamicStyles,(0,i.c)({link:!0},c));h.update(t),h.attach(),n.dynamicSheet=h,n.classes=(0,Ee.c)({baseClasses:l.staticSheet.classes,newClasses:h.classes}),u&&u.add(h)}else n.classes=l.staticSheet.classes;l.refs+=1}}function cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,s=t.Component,l=t.defaultTheme,c=void 0===l?sn:l,u=(0,r.c)(t,["name","classNamePrefix","Component","defaultTheme"]),d=function(e){var t="function"===typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(l){throw l}if(!r||!n.overrides||!n.overrides[r])return o;var a=n.overrides[r],s=(0,i.c)({},o);return Object.keys(a).forEach((function(e){s[e]=(0,an.c)(s[e],a[e])})),s},options:{}}}(e),p=n||a||"makeStyles";d.options={index:on+=1,name:n,meta:p,classNamePrefix:p};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,ke.c)()||c,r=(0,i.c)({},o.useContext(rn),u),a=o.useRef(),l=o.useRef();!function(e,t){var n,r=o.useRef([]),i=o.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),o.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var i={name:n,state:{},stylesCreator:d,stylesOptions:r,theme:t};return ln(i,e),l.current=!1,a.current=i,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=Ce.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(Ce.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(i)}}),[t,d]),o.useEffect((function(){l.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(a.current,e),l.current=!0}));var p=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=(0,Ee.c)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(a.current,e.classes,s);return p}}},4928:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(5984);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var i=(0,r.c)({},t);return Object.keys(n).forEach((function(e){n[e]&&(i[e]="".concat(t[e]," ").concat(n[e]))})),i}},7792:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=n(1468).createContext(null)},2200:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(1468),i=n(7792);function o(){return r.useContext(i.c)}},1880:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var r=n(2784),i={xs:0,sm:600,md:960,lg:1280,xl:1920},o={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(i[e],"px)")}};function a(e,t,n){if(Array.isArray(t)){var i=e.theme.breakpoints||o;return t.reduce((function(e,r,o){return e[i.up(i.keys[o])]=n(t[o]),e}),{})}if("object"===(0,r.c)(t)){var a=e.theme.breakpoints||o;return Object.keys(t).reduce((function(e,r){return e[a.up(r)]=n(t[r]),e}),{})}return n(t)}},208:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(8384);const i=function(e,t){return t?(0,r.c)(e,t,{clone:!1}):e}},6304:(e,t,n)=>{"use strict";n.d(t,{I:()=>d,c:()=>f});var r=n(5376),i=n(1880),o=n(208);var a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!l[e])return[e];e=l[e]}var t=e.split(""),n=(0,r.c)(t,2),i=n[0],o=n[1],c=a[i],u=s[o]||"";return Array.isArray(u)?u.map((function(e){return c+e})):[c+u]})),u=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function d(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function p(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function h(e){var t=d(e.theme);return Object.keys(e).map((function(n){if(-1===u.indexOf(n))return null;var r=p(c(n),t),o=e[n];return(0,i.l)(e,o,r)})).reduce(o.c,{})}h.propTypes={},h.filterProps=u;const f=h},8384:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(5984),i=n(2784);function o(e){return e&&"object"===(0,i.c)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?(0,r.c)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(o(t[r])&&r in e?i[r]=a(e[r],t[r],n):i[r]=t[r])})),i}},1856:(e,t,n)=>{"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;nr})},9112:(e,t,n)=>{"use strict";n.d(t,{wp:()=>h,ud:()=>v,WS:()=>g,m2:()=>f});var r=n(8992),i=n(4156),o=n(4184),a=n(1276),s=n(5016),l=n(3104),c=n(4756),u=n(5980),d=function(){function e(e){this.errors=0,this.sid=(0,i.OW)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=c.G.Ok,e&&this.update(e)}return e.prototype.update=function(e){void 0===e&&(e={}),e.user&&(e.user.ip_address&&(this.ipAddress=e.user.ip_address),e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Date.now(),e.sid&&(this.sid=32===e.sid.length?e.sid:(0,i.OW)()),e.did&&(this.did=""+e.did),"number"===typeof e.started&&(this.started=e.started),"number"===typeof e.duration?this.duration=e.duration:this.duration=this.timestamp-this.started,e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),e.ipAddress&&(this.ipAddress=e.ipAddress),e.userAgent&&(this.userAgent=e.userAgent),"number"===typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===c.G.Ok?this.update({status:c.G.Exited}):this.update()},e.prototype.toJSON=function(){return(0,u.Sy)({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"===typeof this.did||"string"===typeof this.did?""+this.did:void 0,duration:this.duration,attrs:(0,u.Sy)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),p=3,h=function(){function e(e,t,n){void 0===t&&(t=new l.k),void 0===n&&(n=p),this._version=n,this._stack=[{}],this.getStackTop().scope=t,this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version{"use strict";n.d(t,{e:()=>u,k:()=>l});var r=n(8992),i=n(5336),o=n(4184),a=n(5044),s=n(4156),l=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=(0,r.KQ)(t._breadcrumbs),n._tags=(0,r.C3)({},t._tags),n._extra=(0,r.C3)({},t._extra),n._contexts=(0,r.C3)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=(0,r.KQ)(t._eventProcessors)),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.setTags=function(e){return this._tags=(0,r.C3)((0,r.C3)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=(0,r.C3)((0,r.C3)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=(0,r.C3)((0,r.C3)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=(0,r.C3)((0,r.C3)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=(0,r.C3)((0,r.C3)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,i=this.getSpan();return(null===(e=i)||void 0===e?void 0:e.transaction)?null===(t=i)||void 0===t?void 0:t.transaction:(null===(r=null===(n=i)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?i.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"===typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=(0,r.C3)((0,r.C3)({},this._tags),t._tags),this._extra=(0,r.C3)((0,r.C3)({},this._extra),t._extra),this._contexts=(0,r.C3)((0,r.C3)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint)):(0,i.oF)(t)&&(this._tags=(0,r.C3)((0,r.C3)({},this._tags),t.tags),this._extra=(0,r.C3)((0,r.C3)({},this._extra),t.extra),this._contexts=(0,r.C3)((0,r.C3)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=(0,r.C3)({timestamp:(0,o.CG)()},e);return this._breadcrumbs=void 0!==t&&t>=0?(0,r.KQ)(this._breadcrumbs,[n]).slice(-t):(0,r.KQ)(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=(0,r.C3)((0,r.C3)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=(0,r.C3)((0,r.C3)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=(0,r.C3)((0,r.C3)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=(0,r.C3)((0,r.C3)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=(0,r.C3)({trace:this._span.getTraceContext()},e.contexts);var i=null===(n=this._span.transaction)||void 0===n?void 0:n.name;i&&(e.tags=(0,r.C3)({transaction:i},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=(0,r.KQ)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors((0,r.KQ)(c(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,o){var s=this;return void 0===o&&(o=0),new a.G((function(a,l){var c=e[o];if(null===t||"function"!==typeof c)a(t);else{var u=c((0,r.C3)({},t),n);(0,i.Oe)(u)?u.then((function(t){return s._notifyEventProcessors(e,t,n,o+1).then(a)})).then(null,l):s._notifyEventProcessors(e,u,n,o+1).then(a).then(null,l)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function c(){var e=(0,s.mm)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function u(e){c().push(e)}},7090:(e,t,n)=>{"use strict";n.d(t,{Mh:()=>x,Iz:()=>_});var r,i=n(8992),o=n(9112);!function(e){e.Explicit="explicitly_set",e.Sampler="client_sampler",e.Rate="client_rate",e.Inheritance="inheritance"}(r||(r={}));var a=n(1276),s=n(5016),l=n(5336),c=n(4156),u=n(3456),d=n(8888),p=n(6360);function h(){var e=(0,p.gB)();e&&(a.Q.log("[Tracing] Transaction: "+d.D.InternalError+" -> Global error occured"),e.setStatus(d.D.InternalError))}var f=n(9916),m=n(8300);function g(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function v(e,t,n){var o,s,l=e.getClient(),c=l&&l.getOptions()||{};return l&&(0,p.KQ)(c)?void 0!==t.sampled?(t.tags=(0,i.C3)((0,i.C3)({},t.tags),{__sentry_samplingMethod:r.Explicit}),t):("function"===typeof c.tracesSampler?(s=c.tracesSampler(n),t.tags=(0,i.C3)((0,i.C3)({},t.tags),{__sentry_samplingMethod:r.Sampler,__sentry_sampleRate:String(Number(s))})):void 0!==n.parentSampled?(s=n.parentSampled,t.tags=(0,i.C3)((0,i.C3)({},t.tags),{__sentry_samplingMethod:r.Inheritance})):(s=c.tracesSampleRate,t.tags=(0,i.C3)((0,i.C3)({},t.tags),{__sentry_samplingMethod:r.Rate,__sentry_sampleRate:String(Number(s))})),function(e){if(isNaN(e)||"number"!==typeof e&&"boolean"!==typeof e)return a.Q.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(e)+" of type "+JSON.stringify(typeof e)+"."),!1;if(e<0||e>1)return a.Q.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+e+"."),!1;return!0}(s)?s?(t.sampled=Math.random(){"use strict";n.d(t,{Y1:()=>c,if:()=>d});var r=n(8992),i=n(4184),o=n(1276),a=n(2696),s=n(8888),l=n(8300),c=1e3,u=function(e){function t(t,n,r,i){void 0===r&&(r="");var o=e.call(this,i)||this;return o._pushActivity=t,o._popActivity=n,o.transactionSpanId=r,o}return(0,r.ct)(t,e),t.prototype.add=function(t){var n=this;t.spanId!==this.transactionSpanId&&(t.finish=function(e){t.endTimestamp="number"===typeof e?e:(0,i.gb)(),n._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),e.prototype.add.call(this,t)},t}(a.U),d=function(e){function t(t,n,r,i){void 0===r&&(r=c),void 0===i&&(i=!1);var a=e.call(this,t,n)||this;return a._idleHub=n,a._idleTimeout=r,a._onScope=i,a.activities={},a._heartbeatTimer=0,a._heartbeatCounter=0,a._finished=!1,a._beforeFinishCallbacks=[],n&&i&&(p(n),o.Q.log("Setting idle transaction on scope. Span ID: "+a.spanId),n.configureScope((function(e){return e.setSpan(a)}))),a}return(0,r.ct)(t,e),t.prototype.finish=function(t){var n,a,l=this;if(void 0===t&&(t=(0,i.gb)()),this._finished=!0,this.activities={},this.spanRecorder){o.Q.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);try{for(var c=(0,r.gR)(this._beforeFinishCallbacks),u=c.next();!u.done;u=c.next()){(0,u.value)(this,t)}}catch(d){n={error:d}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(e){if(e.spanId===l.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus(s.D.Cancelled),o.Q.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));var n=e.startTimestamp=3?(o.Q.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus(s.D.DeadlineExceeded),this.setTag("heartbeat","failed"),this.finish()):this._pingHeartbeat()}},t.prototype._pingHeartbeat=function(){var e=this;o.Q.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),this._heartbeatTimer=setTimeout((function(){e._beat()}),5e3)},t}(l.I);function p(e){if(e){var t=e.getScope();if(t)t.getTransaction()&&t.setSpan(void 0)}}},7416:(e,t,n)=>{"use strict";n.d(t,{g:()=>c});var r=n(8992),i=n(5016),o=n(1276),a=n(5980);e=n.hmd(e);var s=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],l={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]},c=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._operations=Array.isArray(e.operations)?e.operations:s,this._describeOperations=!("describeOperations"in e)||e.describeOperations}return t.prototype.setupOnce=function(t,n){var r;try{r=(0,i.iq)(e,"mongodb").Collection}catch(a){return void o.Q.error("Mongo Integration was unable to require `mongodb` package.")}this._instrumentOperations(r,this._operations,n)},t.prototype._instrumentOperations=function(e,t,n){var r=this;t.forEach((function(t){return r._patchOperation(e,t,n)}))},t.prototype._patchOperation=function(e,t,n){if(t in e.prototype){var i=this._getSpanContextFromOperationArguments.bind(this);(0,a.ym)(e.prototype,t,(function(e){return function(){for(var o,a,s,l=[],c=0;c",i[a[1]]="string"===typeof d?d:d.name||""}else for(var p=0;p{"use strict";n.d(t,{W:()=>a});var r=n(5016),i=n(1276),o=n(5980);e=n.hmd(e);var a=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(t,n){var a;try{a=(0,r.iq)(e,"mysql/lib/Connection.js")}catch(s){return void i.Q.error("Mysql Integration was unable to require `mysql` package.")}(0,o.ym)(a.prototype,"query",(function(e){return function(t,r,i){var o,a,s=null===(a=null===(o=n().getScope())||void 0===o?void 0:o.getSpan())||void 0===a?void 0:a.startChild({description:"string"===typeof t?t:t.sql,op:"db"});return"function"===typeof i?e.call(this,t,r,(function(e,t,n){var r;null===(r=s)||void 0===r||r.finish(),i(e,t,n)})):"function"===typeof r?e.call(this,t,(function(e,t,n){var i;null===(i=s)||void 0===i||i.finish(),r(e,t,n)})):e.call(this,t,r,i)}}))},t.id="Mysql",t}()},3160:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var r=n(5016),i=n(1276),o=n(5980);e=n.hmd(e);var a=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(t,n){var a;try{a=(0,r.iq)(e,"pg").Client}catch(s){return void i.Q.error("Postgres Integration was unable to require `pg` package.")}(0,o.ym)(a.prototype,"query",(function(e){return function(t,r,i){var o,a,s=null===(a=null===(o=n().getScope())||void 0===o?void 0:o.getSpan())||void 0===a?void 0:a.startChild({description:"string"===typeof t?t:t.text,op:"db"});return"function"===typeof i?e.call(this,t,r,(function(e,t){var n;null===(n=s)||void 0===n||n.finish(),i(e,t)})):"function"===typeof r?e.call(this,t,(function(e,t){var n;null===(n=s)||void 0===n||n.finish(),r(e,t)})):e.call(this,t,r).then((function(e){var t;return null===(t=s)||void 0===t||t.finish(),e}))}}))},t.id="Postgres",t}()},2696:(e,t,n)=>{"use strict";n.d(t,{C:()=>c,U:()=>l});var r=n(8992),i=n(4156),o=n(4184),a=n(5980),s=n(8888),l=function(){function e(e){void 0===e&&(e=1e3),this.spans=[],this._maxlen=e}return e.prototype.add=function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)},e}(),c=function(){function e(e){if(this.traceId=(0,i.OW)(),this.spanId=(0,i.OW)().substring(16),this.startTimestamp=(0,o.gb)(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return e.prototype.child=function(e){return this.startChild(e)},e.prototype.startChild=function(t){var n=new e((0,r.C3)((0,r.C3)({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},e.prototype.setTag=function(e,t){var n;return this.tags=(0,r.C3)((0,r.C3)({},this.tags),((n={})[e]=t,n)),this},e.prototype.setData=function(e,t){var n;return this.data=(0,r.C3)((0,r.C3)({},this.data),((n={})[e]=t,n)),this},e.prototype.setStatus=function(e){return this.status=e,this},e.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var t=s.D.fromHttpCode(e);return t!==s.D.UnknownError&&this.setStatus(t),this},e.prototype.isSuccess=function(){return this.status===s.D.Ok},e.prototype.finish=function(e){this.endTimestamp="number"===typeof e?e:(0,o.gb)()},e.prototype.toTraceparent=function(){var e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},e.prototype.getTraceContext=function(){return(0,a.Sy)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},e.prototype.toJSON=function(){return(0,a.Sy)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},e}()},8888:(e,t,n)=>{"use strict";var r;n.d(t,{D:()=>r}),function(e){e.Ok="ok",e.DeadlineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}(r||(r={})),function(e){e.fromHttpCode=function(t){if(t<400)return e.Ok;if(t>=400&&t<500)switch(t){case 401:return e.Unauthenticated;case 403:return e.PermissionDenied;case 404:return e.NotFound;case 409:return e.AlreadyExists;case 413:return e.FailedPrecondition;case 429:return e.ResourceExhausted;default:return e.InvalidArgument}if(t>=500&&t<600)switch(t){case 501:return e.Unimplemented;case 503:return e.Unavailable;case 504:return e.DeadlineExceeded;default:return e.InternalError}return e.UnknownError}}(r||(r={}))},8300:(e,t,n)=>{"use strict";n.d(t,{I:()=>l});var r=n(8992),i=n(9112),o=n(5336),a=n(1276),s=n(2696),l=function(e){function t(t,n){var r=e.call(this,t)||this;return r._measurements={},r._hub=(0,i.WS)(),(0,o.aG)(n,i.wp)&&(r._hub=n),r.name=t.name?t.name:"",r._trimEnd=t.trimEnd,r.transaction=r,r}return(0,r.ct)(t,e),t.prototype.setName=function(e){this.name=e},t.prototype.initSpanRecorder=function(e){void 0===e&&(e=1e3),this.spanRecorder||(this.spanRecorder=new s.U(e)),this.spanRecorder.add(this)},t.prototype.setMeasurements=function(e){this._measurements=(0,r.C3)({},e)},t.prototype.finish=function(t){var n=this;if(void 0===this.endTimestamp){if(this.name||(a.Q.warn("Transaction has no name, falling back to ``."),this.name=""),e.prototype.finish.call(this,t),!0===this.sampled){var r=this.spanRecorder?this.spanRecorder.spans.filter((function(e){return e!==n&&e.endTimestamp})):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e})).endTimestamp);var i={contexts:{trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction"};return Object.keys(this._measurements).length>0&&(a.Q.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),this._hub.captureEvent(i)}a.Q.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.")}},t}(s.C)},6360:(e,t,n)=>{"use strict";n.d(t,{Cg:()=>a,GW:()=>c,KQ:()=>o,gB:()=>s,kV:()=>l});var r=n(9112),i=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function o(e){return"tracesSampleRate"in e||"tracesSampler"in e}function a(e){var t=e.match(i);if(t){var n=void 0;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}}function s(e){var t,n;return void 0===e&&(e=(0,r.WS)()),null===(n=null===(t=e)||void 0===t?void 0:t.getScope())||void 0===n?void 0:n.getTransaction()}function l(e){return e/1e3}function c(e){return 1e3*e}},4756:(e,t,n)=>{"use strict";var r;n.d(t,{G:()=>r}),function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(r||(r={}))},8972:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var r=n(5336);function i(e){try{for(var t=e,n=[],r=0,i=0,a=void 0;t&&r++<5&&!("html"===(a=o(t))||r>1&&i+3*n.length+a.length>=80);)n.push(a),i+=a.length,t=t.parentNode;return n.reverse().join(" > ")}catch(s){return""}}function o(e){var t,n,i,o,a,s=e,l=[];if(!s||!s.tagName)return"";if(l.push(s.tagName.toLowerCase()),s.id&&l.push("#"+s.id),(t=s.className)&&(0,r.ct)(t))for(n=t.split(/\s+/),a=0;a{"use strict";n.d(t,{c:()=>m});var r,i=n(8992),o=n(5336),a=n(1276),s=n(4156),l=n(5980),c=n(1496),u=n(648),d=(0,s.mm)(),p={},h={};function f(e){if(!h[e])switch(h[e]=!0,e){case"console":!function(){if(!("console"in d))return;["debug","info","warn","error","log","assert"].forEach((function(e){e in d.console&&(0,l.ym)(d.console,e,(function(t){return function(){for(var n=[],r=0;r2?t[2]:void 0;if(i){var o=r,a=String(i);r=a,g("history",{from:o,to:a})}return e.apply(this,t)}}d.onpopstate=function(){for(var t=[],n=0;n{"use strict";function r(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return m(e,Error)}}function i(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function o(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function a(e){return"[object DOMException]"===Object.prototype.toString.call(e)}function s(e){return"[object String]"===Object.prototype.toString.call(e)}function l(e){return null===e||"object"!==typeof e&&"function"!==typeof e}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e){return"undefined"!==typeof Event&&m(e,Event)}function d(e){return"undefined"!==typeof Element&&m(e,Element)}function p(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function h(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function f(e){return c(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function m(e,t){try{return e instanceof t}catch(n){return!1}}n.d(t,{K7:()=>f,KI:()=>d,Oe:()=>h,QX:()=>p,Qn:()=>a,SO:()=>u,Sc:()=>o,aG:()=>m,ct:()=>s,cz:()=>i,eU:()=>r,oF:()=>c,od:()=>l})},1276:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});var r=n(4156),i=(0,r.mm)(),o="Sentry Logger ",a=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t{"use strict";n.d(t,{Mt:()=>f,NP:()=>u,OW:()=>a,QD:()=>c,UX:()=>s,mm:()=>o,qW:()=>d,s5:()=>p,y_:()=>l});var r=n(5016),i={};function o(){return(0,r.ao)()?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:i}function a(){var e=o(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function s(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function l(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||""}return e.event_id||""}function c(e){var t=o();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var i=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),i}function u(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function d(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(n){}}function p(){try{return document.location.href}catch(e){return""}}var h=6e4;function f(e,t){if(!t)return h;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?h:r-e}},5016:(e,t,n)=>{"use strict";n.d(t,{Kw:()=>l,ao:()=>o,iq:()=>a});var r=n(5336),i=n(5980);function o(){return"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function a(e,t){return e.require(t)}e=n.hmd(e);var s=["cookies","data","headers","method","query_string","url"];function l(t,n){if(void 0===n&&(n=s),!o())throw new Error("Can't get node request data outside of a node environment");var l={},c=t.headers||t.header||{},u=t.method,d=t.hostname||t.host||c.host||"",p="https"===t.protocol||t.secure||(t.socket||{}).encrypted?"https":"http",h=t.originalUrl||t.url||"",f=p+"://"+d+h;return n.forEach((function(n){switch(n){case"headers":l.headers=c;break;case"method":l.method=u;break;case"url":l.url=f;break;case"cookies":l.cookies=t.cookies||a(e,"cookie").parse(c.cookie||"");break;case"query_string":l.query_string=a(e,"url").parse(h||"",!1).query;break;case"data":if("GET"===u||"HEAD"===u)break;void 0!==t.body&&(l.data=(0,r.ct)(t.body)?t.body:JSON.stringify((0,i.Cs)(t.body)));break;default:({}).hasOwnProperty.call(t,n)&&(l[n]=t[n])}})),l}},5980:(e,t,n)=>{"use strict";n.d(t,{Sy:()=>b,yq:()=>v,ym:()=>c,Cs:()=>g,yY:()=>h,OW:()=>u});var r=n(8992),i=n(8972),o=n(5336),a=function(){function e(){this._hasWeakSet="function"===typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t"}try{s.currentTarget=(0,o.KI)(a.currentTarget)?(0,i.I)(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(l){s.currentTarget=""}for(var r in"undefined"!==typeof CustomEvent&&(0,o.aG)(e,CustomEvent)&&(s.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,r)&&(s[r]=a);return s}return e}function p(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function h(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=g(e,t);return p(r)>n?h(e,t-1,n):r}function f(e,t){return"domain"===t&&e&&"object"===typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!==typeof n.g&&e===n.g?"[Global]":"undefined"!==typeof window&&e===window?"[Window]":"undefined"!==typeof document&&e===document?"[Document]":(0,o.K7)(e)?"[SyntheticEvent]":"number"===typeof e&&e!==e?"[NaN]":void 0===e?"[undefined]":"function"===typeof e?"[Function: "+(0,s.k)(e)+"]":"symbol"===typeof e?"["+String(e)+"]":"bigint"===typeof e?"[BigInt: "+String(e)+"]":e}function m(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new a),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"===typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=f(e);return(0,o.od)(n)?n:t}(t);if(null!==t&&void 0!==t&&"function"===typeof t.toJSON)return t.toJSON();var i=f(t,e);if((0,o.od)(i))return i;var s=d(t),l=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(l[c]=m(c,s[c],n-1,r));return r.unmemoize(t),l}function g(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return m(e,n,t)})))}catch(n){return"**non-serializable**"}}function v(e,t){void 0===t&&(t=40);var n=Object.keys(d(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,l.E3)(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:(0,l.E3)(i,t)}return""}function b(e){var t,n;if((0,o.oF)(e)){var i=e,a={};try{for(var s=(0,r.gR)(Object.keys(i)),l=s.next();!l.done;l=s.next()){var c=l.value;"undefined"!==typeof i[c]&&(a[c]=b(i[c]))}}catch(u){t={error:u}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return a}return Array.isArray(e)?e.map(b):e}},1496:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r="";function i(e){try{return e&&"function"===typeof e&&e.name||r}catch(t){return r}}},8776:(e,t,n)=>{"use strict";n.d(t,{AU:()=>a,E3:()=>i,Y9:()=>o});var r=n(5336);function i(e,t){return void 0===t&&(t=0),"string"!==typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function o(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r{"use strict";n.d(t,{Gk:()=>o,Ix:()=>c,K4:()=>l,T0:()=>s});var r=n(1276),i=n(4156);function o(){if(!("fetch"in(0,i.mm)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function s(){if(!o())return!1;var e=(0,i.mm)();if(a(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"===typeof n.createElement)try{var s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s),s.contentWindow&&s.contentWindow.fetch&&(t=a(s.contentWindow.fetch)),n.head.removeChild(s)}catch(l){r.Q.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",l)}return t}function l(){if(!o())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}function c(){var e=(0,i.mm)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}},5044:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var r,i=n(5336);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(r||(r={}));var o=function(){function e(e){var t=this;this._state=r.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(r.RESOLVED,e)},this._reject=function(e){t._setResult(r.REJECTED,e)},this._setResult=function(e,n){t._state===r.PENDING&&((0,i.Oe)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==r.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===r.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===r.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var i=t.length,o=[];t.forEach((function(t,a){e.resolve(t).then((function(e){o[a]=e,0===(i-=1)&&n(o)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,i){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(r){return void i(r)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(r){return void i(r)}else i(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var i,o;return n.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){o?r(i):e(i)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}()},4184:(e,t,n)=>{"use strict";n.d(t,{CG:()=>l,W2:()=>u,gb:()=>c});var r=n(4156),i=n(5016);e=n.hmd(e);var o={nowSeconds:function(){return Date.now()/1e3}};var a=(0,i.ao)()?function(){try{return(0,i.iq)(e,"perf_hooks").performance}catch(t){return}}():function(){var e=(0,r.mm)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},l=o.nowSeconds.bind(o),c=s.nowSeconds.bind(s),u=function(){var e=(0,r.mm)().performance;if(e)return e.timeOrigin?e.timeOrigin:e.timing&&e.timing.navigationStart||Date.now()}()},6248:e=>{"use strict";const t=(e,t,n)=>{const r=t<0?e.length+t:t;if(r>=0&&r(e=[...e],t(e,n,r),e),e.exports.mutate=t},8364:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],l=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,d=l>0?a-4:a;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,c=r-i;sc?c:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},3344:(e,t,n)=>{"use strict";const r=n(8364),i=n(924),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Sn=l,t.ZK=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|f(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||Y(e.length)?s(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|f(e))}function p(e){const t=e.length<0?0:0|f(e.length),n=s(t);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(i)return r?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128===(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128===(192&n)&&128===(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n);for(let l=0;l>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":case"latin1":case"binary":return w(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const S=4096;function O(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let o=t;on)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function R(e,t,n,r,i){z(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function N(e,t,n,r,i){z(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function D(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,o){return t=+t,n>>>=0,o||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,o){return t=+t,n>>>=0,o||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=J((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=J((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||I(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){L(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!r){L(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=J((function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=J((function(e){return N(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=J((function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=J((function(e){return N(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function z(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?">= 0".concat(r," and < 2").concat(r," ** ").concat(8*(o+1)).concat(r):">= -(2".concat(r," ** ").concat(8*(o+1)-1).concat(r,") and < 2 ** ")+"".concat(8*(o+1)-1).concat(r):">= ".concat(t).concat(r," and <= ").concat(n).concat(r),new Q.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||H(t,e.length-(n+1))}(r,i,o)}function q(e,t){if("number"!==typeof e)throw new Q.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,n){if(Math.floor(e)!==e)throw q(e,n),new Q.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new Q.ERR_BUFFER_OUT_OF_BOUNDS;throw new Q.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,n){let r='The value of "'.concat(e,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=F(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=F(i)),i+="n"),r+=" It must be ".concat(t,". Received ").concat(i),r}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function G(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function $(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!==e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function J(e){return"undefined"===typeof BigInt?X:e}function X(){throw new Error("BigInt not supported")}},3616:(e,t,n)=>{const r=n(8660);n(5408),n(3304),n(572),n(3092),n(8616),n(9156);const i=n(3024),o=n(6112),a=n(6576);const s={getAttributedEntry:(e,t,n)=>e.replace(/^\s*<[a-z]+/i,"$& data-".concat(t,'="').concat(n,'"')),getPrefixedEntry:(e,t)=>s.getAttributedEntry(e,"csl-entry-id",t),getWrappedEntry(e,t,n){const r=(e,t)=>"function"===typeof t?t(e):null==t?t:"";if(null==n.prepend&&null==n.append)return e;const i=r(t,n.prepend),o=r(t,n.append);let a="",s="";const l=e.match(/^([^>]+>)([\s\S]+)(<[^<]+)$/i);return l&&(a=l[1],e=l[2],s=l[3]),a+i+e+o+s}};function l(e,t){if(!(this instanceof l))return new l(e,t);const n=new r.Cite(e,t);this._options=n._options,this.log=n.log,this.data=n.data}l.prototype=Object.create(r.Cite.prototype),l.async=r.Cite.async,l.validateOptions=r.Cite.validateOptions,l.validateOutputOptions=r.Cite.validateOutputOptions,l.input=r.plugins.input.chain,l.inputAsync=r.plugins.input.chainAsync,l.util=Object.assign({attr:s},r.util),l.version={cite:r.version,citeproc:i.PROCESSOR_VERSION};const c=r.plugins.config.get("@csl");var u,d,p,h,f,m;l.CSL={engine:n(376).ig,item:e=>t=>e.find((e=>e.id===t)),locale:e=>c.styles.get(c.styles.has(e)?e:"en-US"),style:e=>c.templates.get(c.templates.has(e)?e:"apa"),register:{addTemplate:c.templates.add.bind(c.templates),getTemplate:c.templates.get.bind(c.templates),hasTemplate:c.templates.has.bind(c.templates),addLocale:c.locales.add.bind(c.locales),getLocale:c.locales.get.bind(c.locales),hasLocale:c.locales.has.bind(c.locales)}},l.plugins=function e(t){const n={};for(const r in t)n[r]="object"===typeof t[r]?e(t[r]):t[r];return n}(r.plugins),delete l.plugins.input.util.clean,l.parse=Object.assign({input:{chain:r.plugins.input.chain,chainAsync:r.plugins.input.chainAsync,chainLink:r.plugins.input.chainLink,chainLinkAsync:r.plugins.input.chainLinkAsync,data:r.plugins.input.data,dataAsync:r.plugins.input.dataAsync,type:r.plugins.input.type,async:{chain:r.plugins.input.chainAsync,chainLink:r.plugins.input.chainLinkAsync,data:r.plugins.input.dataAsync}},name:o.parse,date:a.parse,csl:r.plugins.input.util.clean,bibjson:n(5408).parsers.json.record,bibtex:(h=n(940).qy,f=n(2892),m=n(9776).target,{json:e=>e.parse([].concat(e)),prop(e,t){const n=f.parse([{type:"book",properties:{[e]:t}}])[0],r=Object.keys(n).find((e=>{let[t]=e;return"type"!==t}));return[r,n[r]]},text:e=>h["@biblatex/text"].parse(e),type:e=>m[e]||"book"}),bibtxt:(p=n(2652),{text:p.parse,textEntry:p.textEntry}),doi:(d=n(3092),{api:d.parsers.api.parse,id:d.parsers.id.parse,async:{api:d.parsers.api.parseAsync}}),json:n(7767).a8.json.parse,wikidata:(u=n(9156),{json:u.parsers.entity.parse,list:u.parsers.id.parse,prop:u.parsers.prop.parse,type:u.parsers.prop.parseType,async:{json:u.parsers.entity.parseAsync,prop(){for(var e=arguments.length,t=new Array(e),n=0;n({json:e=>t.formatBibtex([e])[0],label(e){let{id:t,"citation-label":r,author:i,issued:o,"year-suffix":a,title:s}=e;return n.LABEL.toSource(t,r,i,o,a,s)},text:(t,n)=>e.bibtex(t,{format:n?"html":"text"}),type:e=>r[e]||"misc"}))(n(3384).c,n(5480),n(448).Converters,n(9776).target),bibtxt:n(2683).format,json:n(6532).c.data,label:n(6532).c.label},l.plugins.output),e.exports=l},6576:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"format",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return r.default}});var r=o(n(1920)),i=o(n(7600));function o(e){return e&&e.__esModule?e:{default:e}}},1920:(e,t)=>{"use strict";function n(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)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(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.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n+e<0)))return null;r=+n[0]<0||+n[0]>+n[1]&&+n[1]>0?n.pop():n.shift()}return[n.pop(),r]}return null}(e)||function(e){if("string"!==typeof e)return null;const t=e.match(/^(\d+) ?(a\.?d\.?|b\.?c\.?)$/i);if(t){const e=n(t.slice(1),2);return[e[0]*("a"===e[1].toLowerCase()[0]?1:-1)]}return/^-?\d+$/.test(e)?[e]:null}(e);return t&&t.map((e=>parseInt(e)))}var d=function(e,t){const n=[],r="string"===typeof e&&function(e){return a.test(e)?e.match(a).slice(1,3):e.split(o)}(e);t?n.push(e,t):r&&2===r.length?n.push(...r):n.push(e);const i=n.map(u);return i.filter(Boolean).length===n.length?{"date-parts":i}:{raw:t?n.join("/"):e}};t.default=d},7600:(e,t)=>{"use strict";function n(e,t,n){if(e.length>=t)return e;for(;e.length1&&void 0!==arguments[1]?arguments[1]:"-";if(!e["date-parts"])return e.raw;const r=e["date-parts"][0].map((e=>e.toString()));switch(r.length){case 3:r[2]=n(r[2],2,"0");case 2:r[1]=n(r[1],2,"0");case 1:r[0]=n(r[0],4,"0")}return r.join(t)};t.default=r},3024:e=>{"use strict";var t={PROCESSOR_VERSION:"1.4.61",error:function(e){throw"undefined"===typeof Error?new Error("citeproc-js error: "+e):"citeproc-js error: "+e},debug:function(e){"undefined"===typeof console?dump("CSL: "+e+"\n"):console.log("citeproc-js warning: "+e)},toLocaleUpperCase(e){var t=this.tmp.lang_array;try{e=e.toLocaleUpperCase(t)}catch(n){e=e.toUpperCase()}return e},toLocaleLowerCase(e){var t=this.tmp.lang_array;try{e=e.toLocaleLowerCase(t)}catch(n){e=e.toLowerCase()}return e},LOCATOR_LABELS_REGEXP:new RegExp("^((vrs|sv|subpara|op|subch|add|amend|annot|app|art|bibliog|bk|ch|cl|col|cmt|dec|dept|div|ex|fig|fld|fol|n|hypo|illus|intro|l|no|p|pp|para|pt|pmbl|princ|pub|r|rn|sched|sec|ser|subdiv|subsec|supp|tbl|tit|vol)\\.)\\s+(.*)"),STATUTE_SUBDIV_PLAIN_REGEX:/(?:(?:^| )(?:vrs|sv|subpara|op|subch|add|amend|annot|app|art|bibliog|bk|ch|cl|col|cmt|dec|dept|div|ex|fig|fld|fol|n|hypo|illus|intro|l|no|p|pp|para|pt|pmbl|princ|pub|r|rn|sched|sec|ser|subdiv|subsec|supp|tbl|tit|vol)\. *)/,STATUTE_SUBDIV_PLAIN_REGEX_FRONT:/(?:^\s*[.,;]*\s*(?:vrs|sv|subpara|op|subch|add|amend|annot|app|art|bibliog|bk|ch|cl|col|cmt|dec|dept|div|ex|fig|fld|fol|n|hypo|illus|intro|l|no|p|pp|para|pt|pmbl|princ|pub|r|rn|sched|sec|ser|subdiv|subsec|supp|tbl|tit|vol)\. *)/,STATUTE_SUBDIV_STRINGS:{"vrs.":"verse","sv.":"sub-verbo","subpara.":"subparagraph","op.":"opus","subch.":"subchapter","add.":"addendum","amend.":"amendment","annot.":"annotation","app.":"appendix","art.":"article","bibliog.":"bibliography","bk.":"book","ch.":"chapter","cl.":"clause","col.":"column","cmt.":"comment","dec.":"decision","dept.":"department","ex.":"example","fig.":"figure","fld.":"field","fol.":"folio","n.":"note","hypo.":"hypothetical","illus.":"illustration","intro.":"introduction","l.":"line","no.":"issue","p.":"page","pp.":"page","para.":"paragraph","pt.":"part","pmbl.":"preamble","princ.":"principle","pub.":"publication","r.":"rule","rn.":"randnummer","sched.":"schedule","sec.":"section","ser.":"series,","subdiv.":"subdivision","subsec.":"subsection","supp.":"supplement","tbl.":"table","tit.":"title","vol.":"volume"},STATUTE_SUBDIV_STRINGS_REVERSE:{verse:"vrs.","sub-verbo":"sv.","sub verbo":"sv.",subparagraph:"subpara.",opus:"op.",subchapter:"subch.",addendum:"add.",amendment:"amend.",annotation:"annot.",appendix:"app.",article:"art.",bibliography:"bibliog.",book:"bk.",chapter:"ch.",clause:"cl.",column:"col.",comment:"cmt.",decision:"dec.",department:"dept.",example:"ex.",figure:"fig.",field:"fld.",folio:"fol.",note:"n.",hypothetical:"hypo.",illustration:"illus.",introduction:"intro.",line:"l.",issue:"no.",page:"p.",paragraph:"para.",part:"pt.",preamble:"pmbl.",principle:"princ.",publication:"pub.",rule:"r.",randnummer:"rn.",schedule:"sched.",section:"sec.","series,":"ser.",subdivision:"subdiv.",subsection:"subsec.",supplement:"supp.",table:"tbl.",title:"tit.",volume:"vol."},LOCATOR_LABELS_MAP:{vrs:"verse",sv:"sub-verbo",subpara:"subparagraph",op:"opus",subch:"subchapter",add:"addendum",amend:"amendment",annot:"annotation",app:"appendix",art:"article",bibliog:"bibliography",bk:"book",ch:"chapter",cl:"clause",col:"column",cmt:"comment",dec:"decision",dept:"department",ex:"example",fig:"figure",fld:"field",fol:"folio",n:"note",hypo:"hypothetical",illus:"illustration",intro:"introduction",l:"line",no:"issue",p:"page",pp:"page",para:"paragraph",pt:"part",pmbl:"preamble",princ:"principle",pub:"publication",r:"rule",rn:"randnummer",sched:"schedule",sec:"section",ser:"series,",subdiv:"subdivision",subsec:"subsection",supp:"supplement",tbl:"table",tit:"title",vol:"volume"},MODULE_MACROS:{"juris-pretitle":!0,"juris-title":!0,"juris-pretitle-short":!0,"juris-title-short":!0,"juris-main":!0,"juris-main-short":!0,"juris-tail":!0,"juris-tail-short":!0,"juris-locator":!0},MODULE_TYPES:{legal_case:!0,legislation:!0,bill:!0,hearing:!0,gazette:!0,report:!0,regulation:!0,standard:!0,patent:!0,locator:!0},checkNestedBrace:function(e){"note"===e.opt.xclass?(this.depth=0,this.update=function(e){for(var t=(e=e||"").split(/([\(\)])/),n=1,r=t.length;n-1;a--)if(e.opt.availableAbbrevDomains[t].indexOf(o[a])>-1){r=o[a];break}if(!r&&i)for(a=i.length-1;a>-1;a--)if(e.opt.availableAbbrevDomains[t].indexOf(i[a])>-1){r=i[a];break}}return r},FIELD_CATEGORY_REMAP:{title:"title","container-title":"container-title","collection-title":"collection-title",country:"place",number:"number",place:"place",archive:"container-title","title-short":"title",genre:"title",event:"title",medium:"title","archive-place":"place","publisher-place":"place","event-place":"place",jurisdiction:"place","language-name":"place","language-name-original":"place","call-number":"number","chapter-number":"number","collection-number":"number",edition:"number",page:"number",issue:"number",locator:"number","locator-extra":"number","number-of-pages":"number","number-of-volumes":"number",volume:"number","citation-number":"number",publisher:"institution-part"},parseLocator:function(e){if(this.opt.development_extensions.locator_date_and_revision&&e.locator){e.locator=""+e.locator;var t=e.locator.indexOf("|");if(t>-1){var n=e.locator;e.locator=n.slice(0,t);var r=(n=n.slice(t+1)).match(/^([0-9]{4}-[0-9]{2}-[0-9]{2}).*/);r&&(e["locator-date"]=this.fun.dateparser.parseDateToObject(r[1]),n=n.slice(r[1].length)),e["locator-extra"]=n.replace(/^\s+/,"").replace(/\s+$/,"")}}return e.locator&&(e.locator=(""+e.locator).replace(/\s+$/,"")),e},normalizeLocaleStr:function(e){if(e){var t=e.split("-");return t[0]=t[0].toLowerCase(),t[1]&&(t[1]=t[1].toUpperCase()),t.join("-")}},parseNoteFieldHacks:function(e,n,r){if("string"===typeof e.note){for(var i=[],o=e.note.split("\n"),a=0,s=o.length;a0||u>1)||i[u-1].match(t.NOTE_FIELD_REGEXP));u+=2)i[u]="\n"+i[u].slice(2,-1).trim()+"\n";o[a]=i.join("")}}var p=0,h={};for(a=0,s=(o=o.join("\n").split("\n")).length;a-1)e[g]&&!r||(e[g]=t.DateParser.parseDateToArray(v),(!n||n[g]&&this.isDateString(v))&&(o[a]=""));else if(!e[g]){if(t.NAME_VARIABLES.indexOf(g.replace(/^alt-/,""))>-1){h[g]||(h[g]=[]);var b=v.split(/\s*\|\|\s*/);if(1===b.length)h[g].push({literal:b[0]});else if(2===b.length){var y={family:b[0],given:b[1]};t.parseParticles(y),h[g].push(y)}}else e[g]=v;n&&!n[g]||(o[a]="")}}}for(var g in h)e[g]=h[g];if(n){o[p].trim()&&(o[p]="\n"+o[p]);for(a=p-1;a>-1;a--)o[a].trim()||(o=o.slice(0,a).concat(o.slice(a+1)))}e.note=o.join("\n").trim()}},checkPrefixSpaceAppend:function(e,n){n||(n="");var r="",i=n.replace(/<[^>]+>/g,"").replace(/["'\u201d\u2019\u00bb\u202f\u00a0 ]+$/g,""),o=i.slice(-1);return(i.match(t.ENDSWITH_ROMANESQUE_REGEXP)||t.TERMINAL_PUNCTUATION.slice(0,-1).indexOf(o)>-1||o.match(/[\)\],0-9]/))&&(r=" "),n=(n+r).replace(/\s+/g," ")},checkIgnorePredecessor:function(e,n){var r=n.replace(/<[^>]+>/g,"").replace(/["'\u201d\u2019\u00bb\u202f\u00a0 ]+$/g,"").slice(-1);return t.TERMINAL_PUNCTUATION.slice(0,-1).indexOf(r)>-1&&n.trim().indexOf(" ")>-1&&(e.tmp.term_predecessor=!1,!0)},checkSuffixSpacePrepend:function(e,n){return n?((n.match(t.STARTSWITH_ROMANESQUE_REGEXP)||["[","("].indexOf(n.slice(0,1))>-1)&&(n=" "+n),n):""},GENDERS:["masculine","feminine"],ERROR_NO_RENDERED_FORM:1,PREVIEW:"Just for laughs.",ASSUME_ALL_ITEMS_REGISTERED:2,START:0,END:1,SINGLETON:2,SEEN:6,SUCCESSOR:3,SUCCESSOR_OF_SUCCESSOR:4,SUPPRESS:5,SINGULAR:0,PLURAL:1,LITERAL:!0,BEFORE:1,AFTER:2,DESCENDING:1,ASCENDING:2,PRIMARY:1,SECONDARY:2,POSITION_FIRST:0,POSITION_SUBSEQUENT:1,POSITION_IBID:2,POSITION_IBID_WITH_LOCATOR:3,POSITION_CONTAINER_SUBSEQUENT:4,POSITION_MAP:{0:0,4:1,1:2,2:3,3:4},POSITION_TEST_VARS:["position","first-reference-note-number","near-note"],AREAS:["citation","citation_sort","bibliography","bibliography_sort","intext"],CITE_FIELDS:["first-reference-note-number","first-container-reference-note-number","locator","locator-extra"],SWAPPING_PUNCTUATION:[".","!","?",":",","],TERMINAL_PUNCTUATION:[":",".",";","!","?"," "],NONE:0,NUMERIC:1,POSITION:2,TRIGRAPH:3,DATE_PARTS:["year","month","day"],DATE_PARTS_ALL:["year","month","day","season"],DATE_PARTS_INTERNAL:["year","month","day","year_end","month_end","day_end"],NAME_PARTS:["non-dropping-particle","family","given","dropping-particle","suffix","literal"],DISAMBIGUATE_OPTIONS:["disambiguate-add-names","disambiguate-add-givenname","disambiguate-add-year-suffix"],GIVENNAME_DISAMBIGUATION_RULES:["all-names","all-names-with-initials","primary-name","primary-name-with-initials","by-cite"],NAME_ATTRIBUTES:["and","delimiter-precedes-last","delimiter-precedes-et-al","initialize-with","initialize","name-as-sort-order","sort-separator","et-al-min","et-al-use-first","et-al-subsequent-min","et-al-subsequent-use-first","form","prefix","suffix","delimiter"],LOOSE:0,STRICT:1,TOLERANT:2,PREFIX_PUNCTUATION:/[.;:]\s*$/,SUFFIX_PUNCTUATION:/^\s*[.;:,\(\)]/,NUMBER_REGEXP:/(?:^\d+|\d+$)/,NAME_INITIAL_REGEXP:/^([A-Z\u0e01-\u0e5b\u00c0-\u017f\u0400-\u042f\u0590-\u05d4\u05d6-\u05ff\u0600-\u06ff\u0370\u0372\u0376\u0386\u0388-\u03ab\u03e2\u03e4\u03e6\u03e8\u03ea\u03ec\u03ee\u03f4\u03f7\u03fd-\u03ff])([a-zA-Z\u0e01-\u0e5b\u00c0-\u017f\u0400-\u052f\u0600-\u06ff\u0370-\u03ff\u1f00-\u1fff]*|)(\.)*/,ROMANESQUE_REGEXP:/[-0-9a-zA-Z\u0e01-\u0e5b\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]/,ROMANESQUE_NOT_REGEXP:/[^a-zA-Z\u0e01-\u0e5b\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]/g,STARTSWITH_ROMANESQUE_REGEXP:/^[&a-zA-Z\u0e01-\u0e5b\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]/,ENDSWITH_ROMANESQUE_REGEXP:/[.;:&a-zA-Z\u0e01-\u0e5b\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]$/,ALL_ROMANESQUE_REGEXP:/^[a-zA-Z\u0e01-\u0e5b\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]+$/,VIETNAMESE_SPECIALS:/[\u00c0-\u00c3\u00c8-\u00ca\u00cc\u00cd\u00d2-\u00d5\u00d9\u00da\u00dd\u00e0-\u00e3\u00e8-\u00ea\u00ec\u00ed\u00f2-\u00f5\u00f9\u00fa\u00fd\u0101\u0103\u0110\u0111\u0128\u0129\u0168\u0169\u01a0\u01a1\u01af\u01b0\u1ea0-\u1ef9]/,VIETNAMESE_NAMES:/^(?:(?:[.AaBbCcDdEeGgHhIiKkLlMmNnOoPpQqRrSsTtUuVvXxYy \u00c0-\u00c3\u00c8-\u00ca\u00cc\u00cd\u00d2-\u00d5\u00d9\u00da\u00dd\u00e0-\u00e3\u00e8-\u00ea\u00ec\u00ed\u00f2-\u00f5\u00f9\u00fa\u00fd\u0101\u0103\u0110\u0111\u0128\u0129\u0168\u0169\u01a0\u01a1\u01af\u01b0\u1ea0-\u1ef9]{2,6})(\s+|$))+$/,NOTE_FIELDS_REGEXP:/\{:(?:[\-_a-z]+|[A-Z]+):[^\}]+\}/g,NOTE_FIELD_REGEXP:/^([\-_a-z]+|[A-Z]+):\s*([^\}]+)$/,PARTICLE_GIVEN_REGEXP:/^([^ ]+(?:\u02bb |\u2019 | |\' ) *)(.+)$/,PARTICLE_FAMILY_REGEXP:/^([^ ]+(?:\-|\u02bb|\u2019| |\') *)(.+)$/,DISPLAY_CLASSES:["block","left-margin","right-inline","indent"],NAME_VARIABLES:["author","chair","collection-editor","compiler","composer","container-author","contributor","curator","director","editor","editor-translator","editorial-director","executive-producer","guest","host","illustrator","interviewer","narrator","organizer","original-author","performer","producer","recipient","reviewed-author","script-writer","series-creator","translator","commenter"],CREATORS:["author","chair","collection-editor","compiler","composer","container-author","contributor","curator","director","editor","editor-translator","editorial-director","executive-producer","guest","host","illustrator","interviewer","narrator","organizer","original-author","performer","producer","recipient","reviewed-author","script-writer","series-creator","translator","commenter"],NUMERIC_VARIABLES:["call-number","chapter-number","collection-number","division","edition","page","issue","locator","locator-extra","number","number-of-pages","number-of-volumes","part-number","printing-number","section","supplement-number","version","volume","supplement","citation-number"],DATE_VARIABLES:["locator-date","issued","event-date","accessed","original-date","publication-date","available-date","submitted","alt-issued","alt-event"],VARIABLES_WITH_SHORT_FORM:["title","container-title"],TITLE_FIELD_SPLITS:function(e){for(var t=["title","short","main","sub","subjoin"],n={},r=0,i=t.length;r-1&&r.indexOf(t[o].toLowerCase())>-1;o+=-1)i.push(t.pop());t.reverse();var a=t.join(" "),s=i.join(" ");"drop"!==n&&s?"demote"===n&&(t=[a,s].join(", ")):t=a}return t},extractTitleAndSubtitle:function(e,n){var r=n?"\u202f":"",i=[""];this.opt.development_extensions.split_container_title&&i.push("container-");for(var o=0,a=i.length;o-1&&(h[l.subjoin]=r+": "),(h[l.subjoin].indexOf("-")>-1||h[l.subjoin].indexOf("\u2014")>-1)&&(h[l.subjoin]="\u2014")),u)for(var _ in h)e.multi._keys[_]||(e.multi._keys[_]={}),e.multi._keys[_][u]=h[_];else for(var _ in h)e[_]=h[_]}}},titlecaseSentenceOrNormal:function(e,n,r,i,o){var a=t.TITLE_FIELD_SPLITS(r),s={};if(i&&n.multi?(n.multi._keys[a.title]&&(s[a.title]=n.multi._keys[a.title][i]),n.multi._keys[a.main]&&(s[a.main]=n.multi._keys[a.main][i]),n.multi._keys[a.sub]&&(s[a.sub]=n.multi._keys[a.sub][i]),n.multi._keys[a.subjoin]&&(s[a.subjoin]=n.multi._keys[a.subjoin][i])):(s[a.title]=n[a.title],s[a.main]=n[a.main],s[a.sub]=n[a.sub],s[a.subjoin]=n[a.subjoin]),s[a.main]&&s[a.sub]){var l=s[a.main],c=s[a.subjoin],u=s[a.sub];return o?(l=t.Output.Formatters.sentence(e,l),u=t.Output.Formatters.sentence(e,u)):e.opt.development_extensions.uppercase_subtitles&&(u=t.Output.Formatters["capitalize-first"](e,u)),[l,c,u].join("")}if(s[a.title]){if(o)return t.Output.Formatters.sentence(e,s[a.title]);if(e.opt.development_extensions.uppercase_subtitles){for(var d=t.TITLE_SPLIT(s[a.title]),p=0,h=d.length;p-1||d[p].indexOf("\u2014")>-1)&&(d[p]="\u2014")}return s[a.title]=d.join(""),s[a.title]}return s[a.title]}return""},getSafeEscape:function(e){if(["bibliography","citation"].indexOf(e.tmp.area)>-1){var n=[];return e.opt.development_extensions.thin_non_breaking_space_html_hack&&"html"===e.opt.mode&&n.push((function(e){return e.replace(/\u202f/g,'')})),n.length?function(r){for(var i=0,o=n.length;i"@vertical-align"===e[0])).length>0||r&&r.strings.suffix?e.tmp.just_did_number=!1:t&&(t.match(/[0-9]$/)?e.tmp.just_did_number=!0:e.tmp.just_did_number=!1)}},EVALUATE_GROUP_CONDITION:function(e,n){if(e.opt.use_context_condition){var r,i="comma-safe-numbers-only"===n.condition.test;if("empty-label"===n.condition.test)r=!n.condition.termtxt;else if("empty-label-no-decor"===n.condition.test)r=!n.condition.termtxt||n.condition.termtxt.indexOf("%s")>-1;else if(["comma-safe","comma-safe-numbers-only"].indexOf(n.condition.test)>-1){var o=n.condition.termtxt,a=!1;n.condition.termtxt&&(a=n.condition.termtxt.slice(0,1).match(t.ALL_ROMANESQUE_REGEXP)),r=e.tmp.just_did_number?n.condition.valueTerm?!i:!o||(a?!i:["always","after-number"].indexOf(e.opt.require_comma_on_symbol)>-1):!n.condition.valueTerm&&(!!o&&(a?!i:"always"===e.opt.require_comma_on_symbol))}if(r)var s=!1;else s=!0;return n.condition.not&&(s=!s),s}},SYS_OPTIONS:["prioritize_disambiguate_condition","csl_reverse_lookup_support","main_title_from_short_title","uppercase_subtitles","force_short_title_casing_alignment","implicit_short_title","split_container_title"],TITLE_SPLIT_REGEXP:function(){var e=["\\.\\s+","\\!\\s+","\\?\\s+","\\s*::*\\s+","\\s*\u2014\\s*","\\s+\\-\\s+","\\s*\\-\\-\\-*\\s*"];return{match:new RegExp("("+e.join("|")+")","g"),matchfirst:new RegExp("^("+e.join("|")+")"),split:new RegExp("(?:"+e.join("|")+")")}}(),TITLE_SPLIT:function(e){if(!e)return e;for(var n=e.match(t.TITLE_SPLIT_REGEXP.match),r=e.split(t.TITLE_SPLIT_REGEXP.split),i=r.length-2;i>-1;i--)r[i]=r[i].trim(),r[i]&&r[i].slice(-1).toLowerCase()!==r[i].slice(-1)?(r[i]=r[i]+n[i]+r[i+1],r=r.slice(0,i+1).concat(r.slice(i+2))):r=r.slice(0,i+1).concat([n[i]]).concat(r.slice(i+1));return r},GET_COURT_CLASS:function(e,t,n){var r="",i=null,o=t.jurisdiction?t.jurisdiction.split(":")[0]:null,a="court_condition_classes";return n&&(a="court_key_classes"),o&&t.authority&&("string"===typeof t.authority?i=t.authority:t.authority[0]&&t.authority[0].literal&&(i=t.authority[0].literal)),i&&(this.lang&&e.locale[this.lang].opts[a]&&e.locale[this.lang].opts[a][o]&&e.locale[this.lang].opts[a][o][i]?r=e.locale[this.lang].opts[a][o][i]:e.locale[e.opt["default-locale"][0]].opts[a]&&e.locale[e.opt["default-locale"][0]].opts[a][o]&&e.locale[e.opt["default-locale"][0]].opts[a][o][i]&&(r=e.locale[e.opt["default-locale"][0]].opts[a][o][i])),r},SET_COURT_CLASSES:function(e,t,n,r){for(var i=n.getNodesByName(r,"court-class"),o=0,a=n.numberofnodes(i);o-1)||e.children[r].attrs.prefix||e.children[r].attrs.suffix){t=!1;break}n=n.slice(0,o).concat(n.slice(o+1))}t&&!n.length&&(e.attrs["has-publisher-and-publisher-place"]=!0)}for(r=0,i=e.children.length;r0){var t=e.slice();return"substitute"===t.pop()||this.isChildOfSubstitute(t)}return!1},t.XmlJSON.prototype.addMissingNameNodes=function(e,t){if(t||(t=[]),"names"===e.name&&!this.isChildOfSubstitute(t)){for(var n=!0,r=0,i=e.children.length;r-1){var c=this.nodeCopy(this.institution);for(i=0,o=t.INSTITUTION_KEYS.length;i/,"")).replace(//g,"")).replace(/^\s+/g,"")).replace(/\s+$/g,""):e},t.parseXml=function(e){var t={children:[]},n=[t.children];function r(e){return e.split("&").join("&").split(""").join('"').split(">").join(">").split("<").join("<").replace(/&#([0-9]{1,6});/gi,(function(e,t){var n=parseInt(t,10);return String.fromCharCode(n)})).replace(/&#x([a-f0-9]{1,6});/gi,(function(e,t){var n=parseInt(t,16);return String.fromCharCode(n)}))}function i(e,t){var n=RegExp("^.*[\t ]+"+t+"=(\"(?:[^\"]*)\"|'(?:[^']*)').*$"),r=e.match(n);return r?r[1].slice(1,-1):null}function o(e){var t=RegExp("^<([^\t />]+)"),n=e.match(t);return n?n[1]:null}function a(e){var t={};t.name=o(e),t.attrs={};var n=function(e){var t=e.match(/([^\'\"=\x09 ]+)=(?:\"[^\"]*\"|\'[^\']*\')/g);if(t)for(var n=0,r=t.length;n([^<]*)<.*$/)[1])}function l(e){n.slice(-1)[0].push(e)}function c(e){var t;e.slice(1).indexOf("<")>-1?((t=a(e.slice(0,e.indexOf(">")+1))).children=[s(e)],l(t)):"/>"===e.slice(-2)?(t=a(e),"term"===o(e)&&t.children.push(""),l(t)):"[\x09 ]+<").replace(/<\!--.*?-->/g,"")).split("><"),n=null,r=0,i=t.length;r0&&(t[r]="<"+t[r]),r"),"number"!=typeof n&&("","vancouver":"","harvard1":""}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.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),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/metadata-entry-form/",(()=>{"use strict";var e={};n.r(e),n.d(e,{Express:()=>Ze,Mongo:()=>tt.g,Mysql:()=>et.W,Postgres:()=>Xe.a});var t={};n.r(t),n.d(t,{hasBrowserEnv:()=>lM,hasStandardBrowserEnv:()=>cM,hasStandardBrowserWebWorkerEnv:()=>dM});var r,i=n(1468),o=n(4840),a=n(8992),s=n(3104),l=n(9112),c=n(1276),u=n(4156),d=n(8776),p=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],h=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){(0,s.e)((function(t){var n=(0,l.WS)();if(!n)return t;var r=n.getIntegration(e);if(r){var i=n.getClient(),o=i?i.getOptions():{},a=r._mergeOptions(o);if(r._shouldDropEvent(t,a))return null}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(c.Q.warn("Event dropped due to being internal Sentry Error.\nEvent: "+(0,u.y_)(e)),!0):this._isIgnoredError(e,t)?(c.Q.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,u.y_)(e)),!0):this._isDeniedUrl(e,t)?(c.Q.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,u.y_)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(c.Q.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,u.y_)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(n){return!1}},e.prototype._isIgnoredError=function(e,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return(0,d.AU)(e,t)}))}))},e.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.denyUrls.some((function(e){return(0,d.AU)(n,e)}))},e.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.allowUrls.some((function(e){return(0,d.AU)(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:(0,a.KQ)(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:(0,a.KQ)(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:(0,a.KQ)(this._options.ignoreErrors||[],e.ignoreErrors||[],p),ignoreInternal:"undefined"===typeof this._options.ignoreInternal||this._options.ignoreInternal}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,i=t.value,o=void 0===i?"":i;return[""+o,r+": "+o]}catch(a){return c.Q.error("Cannot extract message for event "+(0,u.y_)(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(r){return c.Q.error("Cannot extract url for event "+(0,u.y_)(e)),null}},e.id="InboundFilters",e}(),f=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){r=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t1&&(d=h.slice(0,-1).join("/"),p=h.pop()),p){var f=p.match(/^\d+/);f&&(p=f[0])}this._fromComponents({host:l,pass:s,path:d,projectId:p,port:u,protocol:r,user:i})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach((function(t){if(!e[t])throw new v(y+": "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new v(y+": Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new v(y+": Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new v(y+": Invalid port "+this.port)},e}(),x=n(5336),w=n(5044),E=n(4184),T=n(5980),C=[];function k(e){var t={};return function(e){var t=e.defaultIntegrations&&(0,a.KQ)(e.defaultIntegrations)||[],n=e.integrations,r=[];if(Array.isArray(n)){var i=n.map((function(e){return e.name})),o=[];t.forEach((function(e){-1===i.indexOf(e.name)&&-1===o.indexOf(e.name)&&(r.push(e),o.push(e.name))})),n.forEach((function(e){-1===o.indexOf(e.name)&&(r.push(e),o.push(e.name))}))}else"function"===typeof n?(r=n(t),r=Array.isArray(r)?r:[r]):r=(0,a.KQ)(t);var s=r.map((function(e){return e.name})),l="Debug";return-1!==s.indexOf(l)&&r.push.apply(r,(0,a.KQ)(r.splice(s.indexOf(l),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===C.indexOf(e.name)&&(e.setupOnce(s.e,l.WS),C.push(e.name),c.Q.log("Integration installed: "+e.name))}(e)})),t}var S,O=function(){function e(e,t){this._integrations={},this._processing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new _(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this,i=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){i=e}))),i},e.prototype.captureMessage=function(e,t,n,r){var i=this,o=n&&n.event_id,a=(0,x.od)(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then((function(e){return i._captureEvent(e,n,r)})).then((function(e){o=e}))),o},e.prototype.captureEvent=function(e,t,n){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){r=e}))),r},e.prototype.captureSession=function(e){e.release?this._sendSession(e):c.Q.warn("Discarded session because of missing release")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(n){return t._getBackend().getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=k(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return c.Q.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,i,o=!1,s=!1,l=t.exception&&t.exception.values;if(l){s=!0;try{for(var c=(0,a.gR)(l),u=c.next();!u.done;u=c.next()){var d=u.value.mechanism;if(d&&!1===d.handled){o=!0;break}}}catch(g){n={error:g}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}var p=t.user;if(!e.userAgent){var h=t.request?t.request.headers:{};for(var f in h)if("user-agent"===f.toLowerCase()){i=h[f];break}}e.update((0,a.C3)((0,a.C3)({},o&&{status:m.G.Crashed}),{user:p,userAgent:i,errors:e.errors+Number(s||o)}))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientProcessing=function(e){var t=this;return new w.G((function(n){var r=0,i=setInterval((function(){0==t._processing?(clearInterval(i),n(!0)):(r+=1,e&&r>=e&&(clearInterval(i),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,i=this.getOptions().normalizeDepth,o=void 0===i?3:i,l=(0,a.C3)((0,a.C3)({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:(0,u.OW)()),timestamp:e.timestamp||(0,E.CG)()});this._applyClientOptions(l),this._applyIntegrationsMetadata(l);var c=t;n&&n.captureContext&&(c=s.k.clone(c).update(n.captureContext));var d=w.G.resolve(l);return c&&(d=c.applyToEvent(l,n)),d.then((function(e){return"number"===typeof o&&o>0?r._normalizeEvent(e,o):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=(0,a.C3)((0,a.C3)((0,a.C3)((0,a.C3)((0,a.C3)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return(0,a.C3)((0,a.C3)({},e),e.data&&{data:(0,T.Cs)(e.data,t)})}))}),e.user&&{user:(0,T.Cs)(e.user,t)}),e.contexts&&{contexts:(0,T.Cs)(e.contexts,t)}),e.extra&&{extra:(0,T.Cs)(e.extra,t)});return e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace),n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,i=t.dist,o=t.maxValueLength,a=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,d.E3)(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,d.E3)(s.value,a));var l=e.request;l&&l.url&&(l.url=(0,d.E3)(l.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=e.sdk,n=Object.keys(this._integrations);t&&n.length>0&&(t.integrations=n)},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){c.Q.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate;if(!this._isEnabled())return w.G.reject(new v("SDK not enabled, will not send event."));var s="transaction"===e.type;return!s&&"number"===typeof a&&Math.random()>a?w.G.reject(new v("Discarding event because it's not included in the random sample (sampling rate = "+a+")")):this._prepareEvent(e,n,t).then((function(e){if(null===e)throw new v("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||s||!o)return e;var n=o(e,t);if("undefined"===typeof n)throw new v("`beforeSend` method has to return `null` or a valid event.");return(0,x.Oe)(n)?n.then((function(e){return e}),(function(e){throw new v("beforeSend rejected with "+e)})):n})).then((function(e){if(null===e)throw new v("`beforeSend` returned `null`, will not send event.");var t=n&&n.getSession&&n.getSession();return!s&&t&&r._updateSessionFromEvent(t,e),r._sendEvent(e),e})).then(null,(function(e){if(e instanceof v)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new v("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._processing+=1,e.then((function(e){return t._processing-=1,e}),(function(e){return t._processing-=1,e}))},e}();!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(S||(S={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(S||(S={}));var A,j=function(){function e(){}return e.prototype.sendEvent=function(e){return w.G.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:S.Skipped})},e.prototype.close=function(e){return w.G.resolve(!0)},e}(),P=function(){function e(e){this._options=e,this._options.dsn||c.Q.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new v("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new v("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){c.Q.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){c.Q.error("Error while sending session: "+e)})):c.Q.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new j},e}();!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(A||(A={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;default:return e.Log}}}(A||(A={}));var I=n(648),L="?",R=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,N=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,D=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,M=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,B=/\((\S*)(?::(\d+))(?::(\d+))\)/,Q=/Minified React error #\d+;/i;function U(e){var t=null,n=0;e&&("number"===typeof e.framesToPop?n=e.framesToPop:Q.test(e.message)&&(n=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=e.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=n.split("\n"),a=[],s=0;s eval")>-1&&(t=M.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==a||n[5]||void 0===e.columnNumber||(i[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||L,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=L),i.push(r)}if(!i.length)return null;return{message:z(e),name:e.name,stack:i}}(e),t)return F(t,n)}catch(r){}return{message:z(e),name:e&&e.name,stack:[],failed:!0}}function F(e,t){try{return(0,a.C3)((0,a.C3)({},e),{stack:e.stack.slice(t)})}catch(n){return e}}function z(e){var t=e&&e.message;return t?t.error&&"string"===typeof t.error.message?t.error.message:t:"No error message"}var q=50;function H(e){var t=G(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function W(e){return{exception:{values:[H(e)]}}}function G(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,q).map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).reverse()}function V(e,t,n){var r;if(void 0===n&&(n={}),(0,x.cz)(e)&&e.error)return r=W(U(e=e.error));if((0,x.Sc)(e)||(0,x.Qn)(e)){var i=e,o=i.name||((0,x.Sc)(i)?"DOMError":"DOMException"),s=i.message?o+": "+i.message:o;return r=$(s,t,n),(0,u.NP)(r,s),"code"in i&&(r.tags=(0,a.C3)((0,a.C3)({},r.tags),{"DOMException.code":""+i.code})),r}return(0,x.eU)(e)?r=W(U(e)):(0,x.oF)(e)||(0,x.SO)(e)?(r=function(e,t,n){var r={exception:{values:[{type:(0,x.SO)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+(0,T.yq)(e)}]},extra:{__serialized__:(0,T.yY)(e)}};if(t){var i=G(U(t).stack);r.stacktrace={frames:i}}return r}(e,t,n.rejection),(0,u.qW)(r,{synthetic:!0}),r):(r=$(e,t,n),(0,u.NP)(r,""+e,void 0),(0,u.qW)(r,{synthetic:!0}),r)}function $(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var i=G(U(t).stack);r.stacktrace={frames:i}}return r}function K(e,t){return{body:JSON.stringify({sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(e),type:"session",url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function Y(e,t){var n=e.tags||{},r=n.__sentry_samplingMethod,i=n.__sentry_sampleRate,o=(0,a.sX)(n,["__sentry_samplingMethod","__sentry_sampleRate"]);e.tags=o;var s="transaction"===e.type,l={body:JSON.stringify(e),type:e.type||"event",url:s?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(s){var c=JSON.stringify({event_id:e.event_id,sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:e.type,sample_rates:[{id:r,rate:i}]})+"\n"+l.body;l.body=c}return l}var Z=function(){function e(e){this.dsn=e,this._dsnObject=new _(e)}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getBaseApiEndpoint=function(){var e=this._dsnObject,t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"},e.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject,r=["Sentry sentry_version=7"];return r.push("sentry_client="+e+"/"+t),r.push("sentry_key="+n.user),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var i in r.push("dsn="+t.toString()),e)if("dsn"!==i)if("user"===i){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return r.length?n+"?"+r.join("&"):n},e.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(e){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+e+"/"},e.prototype._encodedAuth=function(){var e={sentry_key:this._dsnObject.user,sentry_version:"7"};return(0,T.OW)(e)},e}(),J=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()0&&n(!1)}),e);w.G.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),X=function(){function e(e){this.options=e,this._buffer=new J(30),this._rateLimits={},this._api=new Z(this.options.dsn),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new v("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,i=e.resolve,o=e.reject,a=S.fromHttpCode(n.status);this._handleRateLimit(r)&&c.Q.warn("Too many requests, backing off until: "+this._disabledUntil(t)),a!==S.Success?o(n):i({status:a})},e.prototype._disabledUntil=function(e){return this._rateLimits[e]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,r,i,o=Date.now(),s=e["x-sentry-rate-limits"],l=e["retry-after"];if(s){try{for(var c=(0,a.gR)(s.trim().split(",")),d=c.next();!d.done;d=c.next()){var p=d.value.split(":",2),h=parseInt(p[0],10),f=1e3*(isNaN(h)?60:h);try{for(var m=(r=void 0,(0,a.gR)(p[1].split(";"))),g=m.next();!g.done;g=m.next()){var v=g.value;this._rateLimits[v||"all"]=new Date(o+f)}}catch(b){r={error:b}}finally{try{g&&!g.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}}}catch(y){t={error:y}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return!0}return!!l&&(this._rateLimits.all=new Date(o+(0,u.Mt)(o,l)),!0)},e}(),ee=(0,u.mm)(),te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.ct)(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(Y(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(K(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:(0,I.K4)()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add(new w.G((function(t,i){ee.fetch(e.url,r).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:o,resolve:t,reject:i})})).catch(i)})))},t}(X),ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.ct)(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(Y(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(K(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429}):this._buffer.add(new w.G((function(t,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:i,headers:o,resolve:t,reject:r})}},i.open("POST",e.url),n.options.headers)n.options.headers.hasOwnProperty(o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(e.body)})))},t}(X),re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.ct)(t,e),t.prototype.eventFromException=function(e,t){return function(e,t,n){var r=V(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return(0,u.qW)(r,{handled:!0,type:"generic"}),r.level=A.Error,n&&n.event_id&&(r.event_id=n.event_id),w.G.resolve(r)}(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=A.Info),function(e,t,n,r){void 0===n&&(n=A.Info);var i=$(t,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),w.G.resolve(i)}(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=(0,a.C3)((0,a.C3)({},this._options.transportOptions),{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):(0,I.Gk)()?new te(t):new ne(t)},t}(P);function ie(e){for(var t=[],n=1;n0}function le(e,t,n){if(void 0===t&&(t={}),"function"!==typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(o){return e}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);var i=r.map((function(e){return le(e,t)}));return e.handleEvent?e.handleEvent.apply(this,i):e.apply(this,i)}catch(o){throw ae+=1,setTimeout((function(){ae-=1})),ie("withScope",(function(e){e.addEventProcessor((function(e){var n=(0,a.C3)({},e);return t.mechanism&&((0,u.NP)(n,void 0,void 0),(0,u.qW)(n,t.mechanism)),n.extra=(0,a.C3)((0,a.C3)({},n.extra),{arguments:r}),n})),oe(o)})),o}};try{for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch(s){}e.prototype=e.prototype||{},r.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(s){}return r}function ce(e){if(void 0===e&&(e={}),e.eventId)if(e.dsn){var t=document.createElement("script");t.async=!0,t.src=new Z(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad),(document.head||document.body).appendChild(t)}else c.Q.error("Missing dsn option in showReportDialog call");else c.Q.error("Missing eventId option in showReportDialog call")}var ue=n(3456),de=n(8972),pe=function(){function e(t){this.name=e.id,this._options=(0,a.C3)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&(0,l.WS)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,u.y_)(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&(0,ue.c)({callback:function(){for(var t=[],n=0;n"}0!==t.length&&(0,l.WS)().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,i=t.status_code,o=t.body;(0,l.WS)().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:i},type:"http"},{xhr:e.xhr,input:o})}else;},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?(0,l.WS)().addBreadcrumb({category:"fetch",data:e.fetchData,level:A.Error,type:"http"},{data:e.error,input:e.args}):(0,l.WS)().addBreadcrumb({category:"fetch",data:(0,a.C3)((0,a.C3)({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=(0,u.mm)(),n=e.from,r=e.to,i=(0,u.UX)(t.location.href),o=(0,u.UX)(n),a=(0,u.UX)(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),(0,l.WS)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.id="Breadcrumbs",e}(),he="5.30.0",fe=function(e){function t(t){return void 0===t&&(t={}),e.call(this,re,t)||this}return(0,a.ct)(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),(0,u.mm)().document&&(this._isEnabled()?ce((0,a.C3)((0,a.C3)({},e),{dsn:e.dsn||this.getDsn()})):c.Q.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",t.sdk=(0,a.C3)((0,a.C3)({},t.sdk),{name:"sentry.javascript.browser",packages:(0,a.KQ)(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:he}]),version:he}),e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(pe);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(O),me=n(1496),ge=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],ve=function(){function e(t){this.name=e.id,this._options=(0,a.C3)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=(0,u.mm)();(this._options.setTimeout&&(0,T.ym)(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&(0,T.ym)(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&(0,T.ym)(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&(0,T.ym)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget)&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:ge).forEach(this._wrapEventTarget.bind(this))},e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n0?t:(0,u.s5)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:i,filename:a,function:"?",in_app:!0,lineno:o}),e},e.id="GlobalHandlers",e}(),ye=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){(0,s.e)((function(t,n){var r=(0,l.WS)().getIntegration(e);return r?r._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!e.exception||!e.exception.values||!t||!(0,x.aG)(t.originalException,Error))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=(0,a.KQ)(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!(0,x.aG)(e[t],Error)||n.length+1>=this._limit)return n;var r=H(U(e[t]));return this._walkErrorTree(e[t],t,(0,a.KQ)([r],n))},e.id="LinkedErrors",e}(),_e=(0,u.mm)(),xe=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){(0,s.e)((function(t){var n,r,i;if((0,l.WS)().getIntegration(e)){if(!_e.navigator&&!_e.location&&!_e.document)return t;var o=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(r=_e.location)||void 0===r?void 0:r.href),s=(_e.document||{}).referrer,c=(_e.navigator||{}).userAgent,u=(0,a.C3)((0,a.C3)((0,a.C3)({},null===(i=t.request)||void 0===i?void 0:i.headers),s&&{Referer:s}),c&&{"User-Agent":c}),d=(0,a.C3)((0,a.C3)({},o&&{url:o}),{headers:u});return(0,a.C3)((0,a.C3)({},t),{request:d})}return t}))},e.id="UserAgent",e}(),we=[new h,new f,new ve,new pe,new be,new ye,new xe];var Ee=n(7090),Te=n(9916),Ce=n(8888),ke=n(6360),Se=(0,u.mm)();var Oe,Ae,je=function(e,t,n,r){var i;return function(){n&&t.isFinal&&n.disconnect(),t.value>=0&&(r||t.isFinal||"hidden"===document.visibilityState)&&(t.delta=t.value-(i||0),(t.delta||t.isFinal||void 0===i)&&(e(t),i=t.value))}},Pe=function(e,t){return void 0===t&&(t=-1),{name:e,value:t,delta:0,entries:[],id:Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12),isFinal:!1}},Ie=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(r){}},Le=!1,Re=!1,Ne=function(e){Le=!e.persisted},De=function(e,t){void 0===t&&(t=!1),Re||(addEventListener("pagehide",Ne),addEventListener("beforeunload",(function(){})),Re=!0),addEventListener("visibilitychange",(function(t){var n=t.timeStamp;"hidden"===document.visibilityState&&e({timeStamp:n,isUnloading:Le})}),{capture:!0,once:t})},Me=function(){return void 0===Oe&&(Oe="hidden"===document.visibilityState?0:1/0,De((function(e){var t=e.timeStamp;return Oe=t}),!0)),{get timeStamp(){return Oe}}},Be=function(e,t){void 0===t&&(t=!1);var n,r=Pe("LCP"),i=Me(),o=function(e){var t=e.startTime;t-1&&(r=f)}})),void 0!==r&&void 0!==i&&He(e,{description:"evaluation",endTimestamp:i,op:"script",startTimestamp:r}),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(e),"pageload"===e.op){var s=(0,ke.kV)(E.W2);["fcp","fp","lcp","ttfb"].forEach((function(n){if(t._measurements[n]&&!(s>=e.startTimestamp)){var r=t._measurements[n].value,i=s+(0,ke.kV)(r),o=Math.abs(1e3*(i-e.startTimestamp)),a=o-r;c.Q.log("[Measurements] Normalized "+n+" from "+r+" to "+o+" ("+a+")"),t._measurements[n].value=o}})),this._measurements["mark.fid"]&&this._measurements.fid&&He(e,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+(0,ke.kV)(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),e.setMeasurements(this._measurements)}}},e.prototype._trackCLS=function(){var e=this;!function(e,t){void 0===t&&(t=!1);var n,r=Pe("CLS",0),i=function(e){e.hadRecentInput||(r.value+=e.value,r.entries.push(e),n())},o=Ie("layout-shift",i);o&&(n=je(e,r,o,t),De((function(e){var t=e.isUnloading;o.takeRecords().map(i),t&&(r.isFinal=!0),n()})))}((function(t){t.entries.pop()&&(c.Q.log("[Measurements] Adding CLS"),e._measurements.cls={value:t.value})}))},e.prototype._trackNavigator=function(e){var t=Fe.navigator;if(t){var n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),We(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),We(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),We(t.deviceMemory)&&e.setTag("deviceMemory",String(t.deviceMemory)),We(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}},e.prototype._trackLCP=function(){var e=this;Be((function(t){var n=t.entries.pop();if(n){var r=(0,ke.kV)(performance.timeOrigin),i=(0,ke.kV)(n.startTime);c.Q.log("[Measurements] Adding LCP"),e._measurements.lcp={value:t.value},e._measurements["mark.lcp"]={value:r+i}}}))},e.prototype._trackFID=function(){var e=this;!function(e){var t=Pe("FID"),n=Me(),r=function(e){e.startTimen&&(e.startTimestamp=n),e.startChild((0,a.C3)({startTimestamp:n},r))}function We(e){return"number"===typeof e&&isFinite(e)}var Ge={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function Ve(e){var t=(0,a.C3)((0,a.C3)({},Ge),e),n=t.traceFetch,r=t.traceXHR,i=t.tracingOrigins,o=t.shouldCreateSpanForRequest,s={},c=function(e){if(s[e])return s[e];var t=i;return s[e]=t.some((function(t){return(0,d.AU)(e,t)}))&&!(0,d.AU)(e,"sentry_key"),s[e]},u=c;"function"===typeof o&&(u=function(e){return c(e)&&o(e)});var p={};n&&(0,ue.c)({callback:function(e){!function(e,t,n){var r,i=null===(r=(0,l.WS)().getClient())||void 0===r?void 0:r.getOptions();if(!i||!(0,ke.KQ)(i)||!e.fetchData||!t(e.fetchData.url))return;if(e.endTimestamp&&e.fetchData.__span){if(c=n[e.fetchData.__span]){var o=e.response;o&&c.setHttpStatus(o.status),c.finish(),delete n[e.fetchData.__span]}return}var s=(0,ke.gB)();if(s){var c=s.startChild({data:(0,a.C3)((0,a.C3)({},e.fetchData),{type:"fetch"}),description:e.fetchData.method+" "+e.fetchData.url,op:"http"});e.fetchData.__span=c.spanId,n[c.spanId]=c;var u=e.args[0]=e.args[0],d=e.args[1]=e.args[1]||{},p=d.headers;(0,x.aG)(u,Request)&&(p=u.headers),p?"function"===typeof p.append?p.append("sentry-trace",c.toTraceparent()):p=Array.isArray(p)?(0,a.KQ)(p,[["sentry-trace",c.toTraceparent()]]):(0,a.C3)((0,a.C3)({},p),{"sentry-trace":c.toTraceparent()}):p={"sentry-trace":c.toTraceparent()},d.headers=p}}(e,u,p)},type:"fetch"}),r&&(0,ue.c)({callback:function(e){!function(e,t,n){var r,i=null===(r=(0,l.WS)().getClient())||void 0===r?void 0:r.getOptions();if(!i||!(0,ke.KQ)(i)||!(e.xhr&&e.xhr.__sentry_xhr__&&t(e.xhr.__sentry_xhr__.url))||e.xhr.__sentry_own_request__)return;var o=e.xhr.__sentry_xhr__;if(e.endTimestamp&&e.xhr.__sentry_xhr_span_id__){return void((c=n[e.xhr.__sentry_xhr_span_id__])&&(c.setHttpStatus(o.status_code),c.finish(),delete n[e.xhr.__sentry_xhr_span_id__]))}var s=(0,ke.gB)();if(s){var c=s.startChild({data:(0,a.C3)((0,a.C3)({},o.data),{type:"xhr",method:o.method,url:o.url}),description:o.method+" "+o.url,op:"http"});if(e.xhr.__sentry_xhr_span_id__=c.spanId,n[e.xhr.__sentry_xhr_span_id__]=c,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",c.toTraceparent())}catch(u){}}}(e,u,p)},type:"xhr"})}var $e=(0,u.mm)();var Ke=(0,a.C3)({idleTimeout:Te.Y1,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:function(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=!0),$e&&$e.location){var r,i=$e.location.href;t&&(r=e({name:$e.location.pathname,op:"pageload"})),n&&(0,ue.c)({callback:function(t){var n=t.to,o=t.from;void 0===o&&i&&-1!==i.indexOf(n)?i=void 0:o!==n&&(i=void 0,r&&(c.Q.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=e({name:$e.location.pathname,op:"navigation"}))},type:"history"})}else c.Q.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},Ge),Ye=function(){function e(t){this.name=e.id,this._metrics=new ze,this._emitOptionsWarning=!1;var n=Ge.tracingOrigins;t&&t.tracingOrigins&&Array.isArray(t.tracingOrigins)&&0!==t.tracingOrigins.length?n=t.tracingOrigins:this._emitOptionsWarning=!0,this.options=(0,a.C3)((0,a.C3)((0,a.C3)({},Ke),t),{tracingOrigins:n})}return e.prototype.setupOnce=function(e,t){var n=this;this._getCurrentHub=t,this._emitOptionsWarning&&(c.Q.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),c.Q.warn("[Tracing] We added a reasonable default for you: "+Ge.tracingOrigins));var r=this.options,i=r.routingInstrumentation,o=r.startTransactionOnLocationChange,a=r.startTransactionOnPageLoad,s=r.markBackgroundTransactions,l=r.traceFetch,u=r.traceXHR,d=r.tracingOrigins,p=r.shouldCreateSpanForRequest;i((function(e){return n._createRouteTransaction(e)}),a,o),s&&(Se&&Se.document?Se.document.addEventListener("visibilitychange",(function(){var e=(0,ke.gB)();Se.document.hidden&&e&&(c.Q.log("[Tracing] Transaction: "+Ce.D.Cancelled+" -> since tab moved to the background, op: "+e.op),e.status||e.setStatus(Ce.D.Cancelled),e.setTag("visibilitychange","document.hidden"),e.finish())})):c.Q.warn("[Tracing] Could not set up background tab detection due to lack of global document")),Ve({traceFetch:l,traceXHR:u,tracingOrigins:d,shouldCreateSpanForRequest:p})},e.prototype._createRouteTransaction=function(e){var t=this;if(this._getCurrentHub){var n=this.options,r=n.beforeNavigate,i=n.idleTimeout,o=n.maxTransactionDuration,s="pageload"===e.op?function(){var e=function(e){var t=document.querySelector("meta[name="+e+"]");return t?t.getAttribute("content"):null}("sentry-trace");if(e)return(0,ke.Cg)(e);return}():void 0,l=(0,a.C3)((0,a.C3)((0,a.C3)({},e),s),{trimEnd:!0}),u="function"===typeof r?r(l):l,d=void 0===u?(0,a.C3)((0,a.C3)({},l),{sampled:!1}):u;!1===d.sampled&&c.Q.log("[Tracing] Will not send "+d.op+" transaction because of beforeNavigate.");var p=this._getCurrentHub(),h=(0,Ee.Iz)(p,d,i,!0);return c.Q.log("[Tracing] Starting "+d.op+" transaction on scope"),h.registerBeforeFinishCallback((function(e,n){t._metrics.addPerformanceEntries(e),function(e,t,n){var r=n-t.startTimestamp,i=n&&(r>e||r<0);i&&(t.setStatus(Ce.D.DeadlineExceeded),t.setTag("maxTransactionDurationExceeded","true"))}((0,ke.GW)(o),e,n)})),h}c.Q.warn("[Tracing] Did not create "+e.op+" transaction because _getCurrentHub is invalid.")},e.id="BrowserTracing",e}();var Ze=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}return e.prototype.setupOnce=function(){this._router?function(e,t){void 0===t&&(t=[]);t.forEach((function(t){return function(e,t){var n=e[t];return e[t]=function(){for(var e=[],r=0;r=0;u--){var d=i[u];"."===d?lt(i,u):".."===d?(lt(i,u),c++):c&&(lt(i,u),c--)}if(!s)for(;c--;c)i.unshift("..");!s||""===i[0]||i[0]&&st(i[0])||i.unshift("");var p=i.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function ut(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const dt=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=ut(t),i=ut(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var pt=!0,ht="Invariant failed";function ft(e,t){if(!e){if(pt)throw new Error(ht);var n="function"===typeof t?t():t,r=n?"".concat(ht,": ").concat(n):ht;throw new Error(r)}}function mt(e){return"/"===e.charAt(0)?e:"/"+e}function gt(e){return"/"===e.charAt(0)?e.substr(1):e}function vt(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function bt(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function yt(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function _t(e,t,n,r){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=(0,at.c)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=ct(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function xt(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return(0,Sn.c)(e,(0,at.c)({defaultTheme:On.c},t))};var jn=n(2200);function Pn(){return(0,jn.c)()||On.c}var In=n(5696);const Ln=(0,In.c)(i.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),Rn=(0,In.c)(i.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Nn=(0,In.c)(i.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Dn=(0,In.c)(i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"}),"AccountCircle"),Mn=(0,In.c)(i.createElement("path",{d:"M19 5v14H5V5h14m1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9zM11 7h6v2h-6V7zm0 4h6v2h-6v-2zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt"),Bn=(0,In.c)(i.createElement("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-2 14l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"}),"AssignmentTurnedIn"),Qn=(0,In.c)(i.createElement("path",{d:"M20 0H4v2h16V0zM4 24h16v-2H4v2zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 2.75c1.24 0 2.25 1.01 2.25 2.25s-1.01 2.25-2.25 2.25S9.75 10.24 9.75 9 10.76 6.75 12 6.75zM17 17H7v-1.5c0-1.67 3.33-2.5 5-2.5s5 .83 5 2.5V17z"}),"Contacts"),Un=(0,In.c)(i.createElement("path",{d:"M23 6H1v12h22V6zm-2 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z"}),"StraightenSharp"),Fn=(0,In.c)(i.createElement("path",{d:"M20 21c-1.39 0-2.78-.47-4-1.32-2.44 1.71-5.56 1.71-8 0C6.78 20.53 5.39 21 4 21H2v2h2c1.38 0 2.74-.35 4-.99 2.52 1.29 5.48 1.29 8 0 1.26.65 2.62.99 4 .99h2v-2h-2zM3.95 19H4c1.6 0 3.02-.88 4-2 .98 1.12 2.4 2 4 2s3.02-.88 4-2c.98 1.12 2.4 2 4 2h.05l2.18-7.65-2.23-.73V4h-5V1H9v3H4v6.62l-2.23.73L3.95 19zM6 6h12v3.97L12 8 6 9.97V6z"}),"DirectionsBoatSharp"),zn=(0,In.c)(i.createElement("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2v1z"}),"FolderShared"),qn=(0,In.c)(i.createElement("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14H6zm12 0h-7.5l2-2H18v2z"}),"RateReview"),Hn=(0,In.c)(i.createElement("path",{d:"M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7C15.12 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5C7.34 5 6 6.34 6 8s1.34 3 3 3zm7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75zM9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"}),"SupervisorAccount"),Wn=(0,In.c)(i.createElement("path",{d:"M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"ExitToApp");var Gn=n(1512),Vn={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},$n=function(e){return(0,at.c)({color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}})};const Kn=(0,Gn.c)((function(e){return{"@global":{html:Vn,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,at.c)({margin:0},$n(e),{"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"})((function(e){var t=e.children,n=void 0===t?null:t;return e.classes,i.createElement(i.Fragment,null,n)}));var Yn=n(2540),Zn=n(3620),Jn=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,a=void 0===o?"div":o,s=e.square,l=void 0!==s&&s,c=e.elevation,u=void 0===c?1:c,d=e.variant,p=void 0===d?"elevation":d,h=(0,Yn.c)(e,["classes","className","component","square","elevation","variant"]);return i.createElement(a,(0,at.c)({className:(0,kn.c)(n.root,r,"outlined"===p?n.outlined:n["elevation".concat(u)],!l&&n.rounded),ref:t},h))}));const Xn=(0,Gn.c)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,at.c)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(Jn);var er=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,a=void 0===o?"primary":o,s=e.position,l=void 0===s?"fixed":s,c=(0,Yn.c)(e,["classes","className","color","position"]);return i.createElement(Xn,(0,at.c)({square:!0,component:"header",elevation:4,className:(0,kn.c)(n.root,n["position".concat((0,Zn.c)(l))],n["color".concat((0,Zn.c)(a))],r,"fixed"===l&&"mui-fixed"),ref:t},c))}));const tr=(0,Gn.c)((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}}),{name:"MuiAppBar"})(er);var nr=n(2312),rr=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,a=void 0===o?"div":o,s=e.disableGutters,l=void 0!==s&&s,c=e.variant,u=void 0===c?"regular":c,d=(0,Yn.c)(e,["classes","className","component","disableGutters","variant"]);return i.createElement(a,(0,at.c)({className:(0,kn.c)(n.root,n[u],r,!l&&n.gutters),ref:t},d))}));const ir=(0,Gn.c)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:(0,nr.c)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(rr);var or=n(9816),ar=n(576),sr=n(9568),lr=n(2880),cr=n(3188),ur=n(4316);const dr=i.createContext(null);function pr(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function hr(e,t,n){return null!=n[t]?n[t]:e.props[t]}function fr(e,t,n){var r=pr(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&h.current)h.current=!1;else{"touchstart"===e.type&&(h.current=!0);var u,d,p,b=c?null:g.current,y=b?b.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(y.width/2),d=Math.round(y.height/2);else{var _=e.touches?e.touches[0]:e,x=_.clientX,w=_.clientY;u=Math.round(x-y.left),d=Math.round(w-y.top)}if(s)(p=Math.sqrt((2*Math.pow(y.width,2)+Math.pow(y.height,2))/3))%2===0&&(p+=1);else{var E=2*Math.max(Math.abs((b?b.clientWidth:0)-u),u)+2,T=2*Math.max(Math.abs((b?b.clientHeight:0)-d),d)+2;p=Math.sqrt(Math.pow(E,2)+Math.pow(T,2))}e.touches?null===m.current&&(m.current=function(){v({pulsate:o,rippleX:u,rippleY:d,rippleSize:p,cb:n})},f.current=setTimeout((function(){m.current&&(m.current(),m.current=null)}),80)):v({pulsate:o,rippleX:u,rippleY:d,rippleSize:p,cb:n})}}),[r,v]),y=i.useCallback((function(){b({},{pulsate:!0})}),[b]),_=i.useCallback((function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&m.current)return e.persist(),m.current(),m.current=null,void(f.current=setTimeout((function(){_(e,t)})));m.current=null,u((function(e){return e.length>0?e.slice(1):e})),p.current=t}),[]);return i.useImperativeHandle(t,(function(){return{pulsate:y,start:b,stop:_}}),[y,b,_]),i.createElement("span",(0,at.c)({className:(0,kn.c)(o.root,a),ref:g},s),i.createElement(vr,{component:null,exit:!0},c))}));const xr=(0,Gn.c)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(i.memo(_r));var wr=i.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,a=e.centerRipple,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,p=void 0===d?"button":d,h=e.disabled,f=void 0!==h&&h,m=e.disableRipple,g=void 0!==m&&m,v=e.disableTouchRipple,b=void 0!==v&&v,y=e.focusRipple,_=void 0!==y&&y,x=e.focusVisibleClassName,w=e.onBlur,E=e.onClick,T=e.onFocus,C=e.onFocusVisible,k=e.onKeyDown,S=e.onKeyUp,O=e.onMouseDown,A=e.onMouseLeave,j=e.onMouseUp,P=e.onTouchEnd,I=e.onTouchMove,L=e.onTouchStart,R=e.onDragLeave,N=e.tabIndex,D=void 0===N?0:N,M=e.TouchRippleProps,B=e.type,Q=void 0===B?"button":B,U=(0,Yn.c)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=i.useRef(null);var z=i.useRef(null),q=i.useState(!1),H=q[0],W=q[1];f&&H&&W(!1);var G=(0,lr.c)(),V=G.isFocusVisible,$=G.onBlurVisible,K=G.ref;function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;return(0,sr.c)((function(r){return t&&t(r),!n&&z.current&&z.current[e](r),!0}))}i.useImperativeHandle(n,(function(){return{focusVisible:function(){W(!0),F.current.focus()}}}),[]),i.useEffect((function(){H&&_&&!g&&z.current.pulsate()}),[g,_,H]);var Z=Y("start",O),J=Y("stop",R),X=Y("stop",j),ee=Y("stop",(function(e){H&&e.preventDefault(),A&&A(e)})),te=Y("start",L),ne=Y("stop",P),re=Y("stop",I),ie=Y("stop",(function(e){H&&($(e),W(!1)),w&&w(e)}),!1),oe=(0,sr.c)((function(e){F.current||(F.current=e.currentTarget),V(e)&&(W(!0),C&&C(e)),T&&T(e)})),ae=function(){var e=o.findDOMNode(F.current);return p&&"button"!==p&&!("A"===e.tagName&&e.href)},se=i.useRef(!1),le=(0,sr.c)((function(e){_&&!se.current&&H&&z.current&&" "===e.key&&(se.current=!0,e.persist(),z.current.stop(e,(function(){z.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!f&&(e.preventDefault(),E&&E(e))})),ce=(0,sr.c)((function(e){_&&" "===e.key&&z.current&&H&&!e.defaultPrevented&&(se.current=!1,e.persist(),z.current.stop(e,(function(){z.current.pulsate(e)}))),S&&S(e),E&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&E(e)})),ue=p;"button"===ue&&U.href&&(ue="a");var de={};"button"===ue?(de.type=Q,de.disabled=f):("a"===ue&&U.href||(de.role="button"),de["aria-disabled"]=f);var pe=(0,ar.c)(r,t),he=(0,ar.c)(K,F),fe=(0,ar.c)(pe,he),me=i.useState(!1),ge=me[0],ve=me[1];i.useEffect((function(){ve(!0)}),[]);var be=ge&&!g&&!f;return i.createElement(ue,(0,at.c)({className:(0,kn.c)(c.root,u,H&&[c.focusVisible,x],f&&c.disabled),onBlur:ie,onClick:E,onFocus:oe,onKeyDown:le,onKeyUp:ce,onMouseDown:Z,onMouseLeave:ee,onMouseUp:X,onDragLeave:J,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:fe,tabIndex:f?-1:D},de,U),l,be?i.createElement(xr,(0,at.c)({ref:z,center:s},M)):null)}));const Er=(0,Gn.c)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(wr);var Tr=i.forwardRef((function(e,t){var n=e.edge,r=void 0!==n&&n,o=e.children,a=e.classes,s=e.className,l=e.color,c=void 0===l?"default":l,u=e.disabled,d=void 0!==u&&u,p=e.disableFocusRipple,h=void 0!==p&&p,f=e.size,m=void 0===f?"medium":f,g=(0,Yn.c)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return i.createElement(Er,(0,at.c)({className:(0,kn.c)(a.root,s,"default"!==c&&a["color".concat((0,Zn.c)(c))],d&&a.disabled,"small"===m&&a["size".concat((0,Zn.c)(m))],{start:a.edgeStart,end:a.edgeEnd}[r]),centerRipple:!0,focusRipple:!h,disabled:d,ref:t},g),i.createElement("span",{className:a.label},o))}));const Cr=(0,Gn.c)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,or.W4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,or.W4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,or.W4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(Tr);var kr={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Sr=i.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,a=e.className,s=e.color,l=void 0===s?"initial":s,c=e.component,u=e.display,d=void 0===u?"initial":u,p=e.gutterBottom,h=void 0!==p&&p,f=e.noWrap,m=void 0!==f&&f,g=e.paragraph,v=void 0!==g&&g,b=e.variant,y=void 0===b?"body1":b,_=e.variantMapping,x=void 0===_?kr:_,w=(0,Yn.c)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),E=c||(v?"p":x[y]||kr[y])||"span";return i.createElement(E,(0,at.c)({className:(0,kn.c)(o.root,a,"inherit"!==y&&o[y],"initial"!==l&&o["color".concat((0,Zn.c)(l))],m&&o.noWrap,h&&o.gutterBottom,v&&o.paragraph,"inherit"!==r&&o["align".concat((0,Zn.c)(r))],"initial"!==d&&o["display".concat((0,Zn.c)(d))]),ref:t},w))}));const Or=(0,Gn.c)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Sr);var Ar=n(4928),jr=n(5376),Pr=n(2784),Ir=n(1856),Lr=(n(52),n(7376)),Rr=n(664),Nr=n(6804),Dr=n(2656),Mr=n(4328),Br=n(9184);var Qr="undefined"!==typeof window?i.useLayoutEffect:i.useEffect;const Ur=i.forwardRef((function(e,t){var n=e.children,r=e.container,a=e.disablePortal,s=void 0!==a&&a,l=e.onRendered,c=i.useState(null),u=c[0],d=c[1],p=(0,ar.c)(i.isValidElement(n)?n.ref:null,t);return Qr((function(){s||d(function(e){return e="function"===typeof e?e():e,o.findDOMNode(e)}(r)||document.body)}),[r,s]),Qr((function(){if(u&&!s)return(0,Br.c)(t,u),function(){(0,Br.c)(t,null)}}),[t,u,s]),Qr((function(){l&&(u||s)&&l()}),[l,u,s]),s?i.isValidElement(n)?i.cloneElement(n,{ref:p}):n:u?o.createPortal(n,u):u}));var Fr=n(8848);function zr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var qr=n(4816);function Hr(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function Wr(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Gr(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Vr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat((0,cr.c)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&Wr(e,i)}))}function $r(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Kr(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,Lr.c)(e);return t.body===e?(0,Nr.c)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=Hr();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(Gr(o)+a,"px"),n=(0,Lr.c)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(Gr(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var Yr=function(){function e(){zr(this,e),this.modals=[],this.containers=[]}return(0,qr.c)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Wr(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Vr(t,e.mountNode,e.modalRef,r,!0);var i=$r(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=$r(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Kr(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=$r(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&Wr(e.modalRef,!0),Vr(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&Wr(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();const Zr=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,a=e.disableEnforceFocus,s=void 0!==a&&a,l=e.disableRestoreFocus,c=void 0!==l&&l,u=e.getDoc,d=e.isEnabled,p=e.open,h=i.useRef(),f=i.useRef(null),m=i.useRef(null),g=i.useRef(),v=i.useRef(null),b=i.useCallback((function(e){v.current=o.findDOMNode(e)}),[]),y=(0,ar.c)(t.ref,b),_=i.useRef();return i.useEffect((function(){_.current=p}),[p]),!_.current&&p&&"undefined"!==typeof window&&(g.current=u().activeElement),i.useEffect((function(){if(p){var e=(0,Lr.c)(v.current);r||!v.current||v.current.contains(e.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex",-1),v.current.focus());var t=function(){null!==v.current&&(e.hasFocus()&&!s&&d()&&!h.current?v.current&&!v.current.contains(e.activeElement)&&v.current.focus():h.current=!1)},n=function(t){!s&&d()&&9===t.keyCode&&e.activeElement===v.current&&(h.current=!0,t.shiftKey?m.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),c||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[r,s,c,d,p]),i.createElement(i.Fragment,null,i.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),i.cloneElement(t,{ref:y}),i.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelEnd"}))};var Jr={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};const Xr=i.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,a=(0,Yn.c)(e,["invisible","open"]);return o?i.createElement("div",(0,at.c)({"aria-hidden":!0,ref:t},a,{style:(0,at.c)({},Jr.root,r?Jr.invisible:{},a.style)})):null}));var ei=new Yr;const ti=i.forwardRef((function(e,t){var n=(0,jn.c)(),r=(0,Mr.c)({name:"MuiModal",props:(0,at.c)({},e),theme:n}),a=r.BackdropComponent,s=void 0===a?Xr:a,l=r.BackdropProps,c=r.children,u=r.closeAfterTransition,d=void 0!==u&&u,p=r.container,h=r.disableAutoFocus,f=void 0!==h&&h,m=r.disableBackdropClick,g=void 0!==m&&m,v=r.disableEnforceFocus,b=void 0!==v&&v,y=r.disableEscapeKeyDown,_=void 0!==y&&y,x=r.disablePortal,w=void 0!==x&&x,E=r.disableRestoreFocus,T=void 0!==E&&E,C=r.disableScrollLock,k=void 0!==C&&C,S=r.hideBackdrop,O=void 0!==S&&S,A=r.keepMounted,j=void 0!==A&&A,P=r.manager,I=void 0===P?ei:P,L=r.onBackdropClick,R=r.onClose,N=r.onEscapeKeyDown,D=r.onRendered,M=r.open,B=(0,Yn.c)(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Q=i.useState(!0),U=Q[0],F=Q[1],z=i.useRef({}),q=i.useRef(null),H=i.useRef(null),W=(0,ar.c)(H,t),G=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),V=function(){return(0,Lr.c)(q.current)},$=function(){return z.current.modalRef=H.current,z.current.mountNode=q.current,z.current},K=function(){I.mount($(),{disableScrollLock:k}),H.current.scrollTop=0},Y=(0,sr.c)((function(){var e=function(e){return e="function"===typeof e?e():e,o.findDOMNode(e)}(p)||V().body;I.add($(),e),H.current&&K()})),Z=i.useCallback((function(){return I.isTopModal($())}),[I]),J=(0,sr.c)((function(e){q.current=e,e&&(D&&D(),M&&Z()?K():Wr(H.current,!0))})),X=i.useCallback((function(){I.remove($())}),[I]);if(i.useEffect((function(){return function(){X()}}),[X]),i.useEffect((function(){M?Y():G&&d||X()}),[M,X,G,d,Y]),!j&&!M&&(!G||U))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:Fr.c}),te={};return void 0===c.props.tabIndex&&(te.tabIndex=c.props.tabIndex||"-1"),G&&(te.onEnter=(0,Dr.c)((function(){F(!1)}),c.props.onEnter),te.onExited=(0,Dr.c)((function(){F(!0),d&&X()}),c.props.onExited)),i.createElement(Ur,{ref:J,container:p,disablePortal:w},i.createElement("div",(0,at.c)({ref:W,onKeyDown:function(e){"Escape"===e.key&&Z()&&(N&&N(e),_||(e.stopPropagation(),R&&R(e,"escapeKeyDown")))},role:"presentation"},B,{style:(0,at.c)({},ee.root,!M&&U?ee.hidden:{},B.style)}),O?null:i.createElement(s,(0,at.c)({open:M,onClick:function(e){e.target===e.currentTarget&&(L&&L(e),!g&&R&&R(e,"backdropClick"))}},l)),i.createElement(Zr,{disableEnforceFocus:b,disableAutoFocus:f,disableRestoreFocus:T,getDoc:V,isEnabled:Z,open:M},i.cloneElement(c,te))))})),ni=!1;var ri=function(e){return e.scrollTop},ii="unmounted",oi="exited",ai="entering",si="entered",li="exiting",ci=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=oi,r.appearStatus=ai):i=si:i=t.unmountOnExit||t.mountOnEnter?ii:oi,r.state={status:i},r.nextCallback=null,r}(0,rt.c)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ii?{status:oi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ai&&n!==si&&(t=ai):n!==ai&&n!==si||(t=li)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ai){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this);n&&ri(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===oi&&this.setState({status:ii})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[o.findDOMNode(this),r],a=i[0],s=i[1],l=this.getTimeouts(),c=r?l.appear:l.enter;!e&&!n||ni?this.safeSetState({status:si},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,s),this.safeSetState({status:ai},(function(){t.props.onEntering(a,s),t.onTransitionEnd(c,(function(){t.safeSetState({status:si},(function(){t.props.onEntered(a,s)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:o.findDOMNode(this);t&&!ni?(this.props.onExit(r),this.safeSetState({status:li},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:oi},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:oi},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],s=i[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ii)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,Mt.c)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(dr.Provider,{value:null},"function"===typeof n?n(e,r):i.cloneElement(i.Children.only(n),r))},t}(i.Component);function ui(){}ci.contextType=dr,ci.propTypes={},ci.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ui,onEntering:ui,onEntered:ui,onExit:ui,onExiting:ui,onExited:ui},ci.UNMOUNTED=ii,ci.EXITED=oi,ci.ENTERING=ai,ci.ENTERED=si,ci.EXITING=li;const di=ci;var pi=function(e){return e.scrollTop};function hi(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}function fi(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var mi={entering:{opacity:1,transform:fi(1)},entered:{opacity:1,transform:"none"}},gi=i.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,a=e.in,s=e.onEnter,l=e.onEntered,c=e.onEntering,u=e.onExit,d=e.onExited,p=e.onExiting,h=e.style,f=e.timeout,m=void 0===f?"auto":f,g=e.TransitionComponent,v=void 0===g?di:g,b=(0,Yn.c)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),y=i.useRef(),_=i.useRef(),x=Pn(),w=x.unstable_strictMode&&!o,E=i.useRef(null),T=(0,ar.c)(n.ref,t),C=(0,ar.c)(w?E:void 0,T),k=function(e){return function(t,n){if(e){var r=w?[E.current,t]:[t,n],i=(0,jr.c)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},S=k(c),O=k((function(e,t){pi(e);var n,r=hi({style:h,timeout:m},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===m?(n=x.transitions.getAutoHeightDuration(e.clientHeight),_.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),s&&s(e,t)})),A=k(l),j=k(p),P=k((function(e){var t,n=hi({style:h,timeout:m},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===m?(t=x.transitions.getAutoHeightDuration(e.clientHeight),_.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=fi(.75),u&&u(e)})),I=k(d);return i.useEffect((function(){return function(){clearTimeout(y.current)}}),[]),i.createElement(v,(0,at.c)({appear:!0,in:a,nodeRef:w?E:void 0,onEnter:O,onEntered:A,onEntering:S,onExit:P,onExited:I,onExiting:j,addEndListener:function(e,t){var n=w?e:t;"auto"===m&&(y.current=setTimeout(n,_.current||0))},timeout:"auto"===m?null:m},b),(function(e,t){return i.cloneElement(n,(0,at.c)({style:(0,at.c)({opacity:0,transform:fi(.75),visibility:"exited"!==e||a?void 0:"hidden"},mi[e],h,n.props.style),ref:C},t))}))}));gi.muiSupportAuto=!0;const vi=gi;function bi(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function yi(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function _i(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function xi(e){return"function"===typeof e?e():e}var wi=i.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,a=e.anchorOrigin,s=void 0===a?{vertical:"top",horizontal:"left"}:a,l=e.anchorPosition,c=e.anchorReference,u=void 0===c?"anchorEl":c,d=e.children,p=e.classes,h=e.className,f=e.container,m=e.elevation,g=void 0===m?8:m,v=e.getContentAnchorEl,b=e.marginThreshold,y=void 0===b?16:b,_=e.onEnter,x=e.onEntered,w=e.onEntering,E=e.onExit,T=e.onExited,C=e.onExiting,k=e.open,S=e.PaperProps,O=void 0===S?{}:S,A=e.transformOrigin,j=void 0===A?{vertical:"top",horizontal:"left"}:A,P=e.TransitionComponent,I=void 0===P?vi:P,L=e.transitionDuration,R=void 0===L?"auto":L,N=e.TransitionProps,D=void 0===N?{}:N,M=(0,Yn.c)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),B=i.useRef(),Q=i.useCallback((function(e){if("anchorPosition"===u)return l;var t=xi(r),n=(t&&1===t.nodeType?t:(0,Lr.c)(B.current).body).getBoundingClientRect(),i=0===e?s.vertical:"center";return{top:n.top+bi(n,i),left:n.left+yi(n,s.horizontal)}}),[r,s.horizontal,s.vertical,l,u]),U=i.useCallback((function(e){var t=0;if(v&&"anchorEl"===u){var n=v(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[s.vertical,u,v]),F=i.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:bi(e,j.vertical)+t,horizontal:yi(e,j.horizontal)}}),[j.horizontal,j.vertical]),z=i.useCallback((function(e){var t=U(e),n={width:e.offsetWidth,height:e.offsetHeight},i=F(n,t);if("none"===u)return{top:null,left:null,transformOrigin:_i(i)};var o=Q(t),a=o.top-i.vertical,s=o.left-i.horizontal,l=a+n.height,c=s+n.width,d=(0,Nr.c)(xi(r)),p=d.innerHeight-y,h=d.innerWidth-y;if(ap){var m=l-p;a-=m,i.vertical+=m}if(sh){var v=c-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:_i(i)}}),[r,u,Q,U,F,y]),q=i.useCallback((function(){var e=B.current;if(e){var t=z(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[z]),H=i.useCallback((function(e){B.current=o.findDOMNode(e)}),[]);i.useEffect((function(){k&&q()})),i.useImperativeHandle(n,(function(){return k?{updatePosition:function(){q()}}:null}),[k,q]),i.useEffect((function(){if(k){var e=(0,Rr.c)((function(){q()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[k,q]);var W=R;"auto"!==R||I.muiSupportAuto||(W=void 0);var G=f||(r?(0,Lr.c)(xi(r)).body:void 0);return i.createElement(ti,(0,at.c)({container:G,open:k,ref:t,BackdropProps:{invisible:!0},className:(0,kn.c)(p.root,h)},M),i.createElement(I,(0,at.c)({appear:!0,in:k,onEnter:_,onEntered:x,onExit:E,onExited:T,onExiting:C,timeout:W},D,{onEntering:(0,Dr.c)((function(e,t){w&&w(e,t),q()}),D.onEntering)}),i.createElement(Xn,(0,at.c)({elevation:g,ref:H},O,{className:(0,kn.c)(p.paper,O.className)}),d)))}));const Ei=(0,Gn.c)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(wi);const Ti=i.createContext({});var Ci=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.component,s=void 0===a?"ul":a,l=e.dense,c=void 0!==l&&l,u=e.disablePadding,d=void 0!==u&&u,p=e.subheader,h=(0,Yn.c)(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=i.useMemo((function(){return{dense:c}}),[c]);return i.createElement(Ti.Provider,{value:f},i.createElement(s,(0,at.c)({className:(0,kn.c)(r.root,o,c&&r.dense,!d&&r.padding,p&&r.subheader),ref:t},h),p,n))}));const ki=(0,Gn.c)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Ci);function Si(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Oi(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ai(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function ji(e,t,n,r,i,o){for(var a=!1,s=i(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var l=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Ai(s,o)&&!l)return void s.focus();s=i(e,s,n)}}var Pi="undefined"===typeof window?i.useEffect:i.useLayoutEffect,Ii=i.forwardRef((function(e,t){var n=e.actions,r=e.autoFocus,a=void 0!==r&&r,s=e.autoFocusItem,l=void 0!==s&&s,c=e.children,u=e.className,d=e.disabledItemsFocusable,p=void 0!==d&&d,h=e.disableListWrap,f=void 0!==h&&h,m=e.onKeyDown,g=e.variant,v=void 0===g?"selectedMenu":g,b=(0,Yn.c)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),y=i.useRef(null),_=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Pi((function(){a&&y.current.focus()}),[a]),i.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!y.current.style.width;if(e.clientHeight0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var s=r&&!i.repeating&&Ai(r,i);i.previousKeyMatched&&(s||ji(t,r,!1,p,Si,i))?e.preventDefault():i.previousKeyMatched=!1}m&&m(e)},tabIndex:a?0:-1},b),T)}));const Li=Ii;var Ri={vertical:"top",horizontal:"right"},Ni={vertical:"top",horizontal:"left"},Di=i.forwardRef((function(e,t){var n=e.autoFocus,r=void 0===n||n,a=e.children,s=e.classes,l=e.disableAutoFocusItem,c=void 0!==l&&l,u=e.MenuListProps,d=void 0===u?{}:u,p=e.onClose,h=e.onEntering,f=e.open,m=e.PaperProps,g=void 0===m?{}:m,v=e.PopoverClasses,b=e.transitionDuration,y=void 0===b?"auto":b,_=e.TransitionProps,x=(_=void 0===_?{}:_).onEntering,w=(0,Yn.c)(_,["onEntering"]),E=e.variant,T=void 0===E?"selectedMenu":E,C=(0,Yn.c)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),k=Pn(),S=r&&!c&&f,O=i.useRef(null),A=i.useRef(null),j=-1;i.Children.map(a,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("menu"!==T&&e.props.selected||-1===j)&&(j=t))}));var P=i.Children.map(a,(function(e,t){return t===j?i.cloneElement(e,{ref:function(t){A.current=o.findDOMNode(t),(0,Br.c)(e.ref,t)}}):e}));return i.createElement(Ei,(0,at.c)({getContentAnchorEl:function(){return A.current},classes:v,onClose:p,TransitionProps:(0,at.c)({onEntering:function(e,t){O.current&&O.current.adjustStyleForScrollbar(e,k),h&&h(e,t),x&&x(e,t)}},w),anchorOrigin:"rtl"===k.direction?Ri:Ni,transformOrigin:"rtl"===k.direction?Ri:Ni,PaperProps:(0,at.c)({},g,{classes:(0,at.c)({},g.classes,{root:s.paper})}),open:f,ref:t,transitionDuration:y},C),i.createElement(Li,(0,at.c)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),p&&p(e,"tabKeyDown"))},actions:O,autoFocus:r&&(-1===j||c),autoFocusItem:S,variant:T},d,{className:(0,kn.c)(s.list,d.className)}),P))}));const Mi=(0,Gn.c)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(Di);function Bi(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Qi(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Bi(e.value)&&""!==e.value||t&&Bi(e.defaultValue)&&""!==e.defaultValue)}var Ui=n(6960);function Fi(e,t){return"object"===(0,Pr.c)(t)&&null!==t?e===t:String(e)===String(t)}var zi=i.forwardRef((function(e,t){var n=e["aria-label"],r=e.autoFocus,o=e.autoWidth,a=e.children,s=e.classes,l=e.className,c=e.defaultValue,u=e.disabled,d=e.displayEmpty,p=e.IconComponent,h=e.inputRef,f=e.labelId,m=e.MenuProps,g=void 0===m?{}:m,v=e.multiple,b=e.name,y=e.onBlur,_=e.onChange,x=e.onClose,w=e.onFocus,E=e.onOpen,T=e.open,C=e.readOnly,k=e.renderValue,S=e.SelectDisplayProps,O=void 0===S?{}:S,A=e.tabIndex,j=(e.type,e.value),P=e.variant,I=void 0===P?"standard":P,L=(0,Yn.c)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),R=(0,Ui.c)({controlled:j,default:c,name:"Select"}),N=(0,jr.c)(R,2),D=N[0],M=N[1],B=i.useRef(null),Q=i.useState(null),U=Q[0],F=Q[1],z=i.useRef(null!=T).current,q=i.useState(),H=q[0],W=q[1],G=i.useState(!1),V=G[0],$=G[1],K=(0,ar.c)(t,h);i.useImperativeHandle(K,(function(){return{focus:function(){U.focus()},node:B.current,value:D}}),[U,D]),i.useEffect((function(){r&&U&&U.focus()}),[r,U]),i.useEffect((function(){if(U){var e=(0,Lr.c)(U).getElementById(f);if(e){var t=function(){getSelection().isCollapsed&&U.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[f,U]);var Y,Z,J=function(e,t){e?E&&E(t):x&&x(t),z||(W(o?null:U.clientWidth),$(e))},X=i.Children.toArray(a),ee=function(e){return function(t){var n;if(v||J(!1,t),v){n=Array.isArray(D)?D.slice():[];var r=D.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),D!==n&&(M(n),_&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:b}}),_(t,e)))}},te=null!==U&&(z?T:V);delete L["aria-invalid"];var ne=[],re=!1;(Qi({value:D})||d)&&(k?Y=k(D):re=!0);var ie=X.map((function(e){if(!i.isValidElement(e))return null;var t;if(v){if(!Array.isArray(D))throw new Error((0,Ir.c)(2));(t=D.some((function(t){return Fi(t,e.props.value)})))&&re&&ne.push(e.props.children)}else(t=Fi(D,e.props.value))&&re&&(Z=e.props.children);return t&&!0,i.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:ee(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));re&&(Y=v?ne.join(", "):Z);var oe,ae=H;!o&&z&&U&&(ae=U.clientWidth),oe="undefined"!==typeof A?A:u?null:0;var se=O.id||(b?"mui-component-select-".concat(b):void 0);return i.createElement(i.Fragment,null,i.createElement("div",(0,at.c)({className:(0,kn.c)(s.root,s.select,s.selectMenu,s[I],l,u&&s.disabled),ref:F,tabIndex:oe,role:"button","aria-disabled":u?"true":void 0,"aria-expanded":te?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[f,se].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!C){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),J(!0,e))}},onMouseDown:u||C?null:function(e){0===e.button&&(e.preventDefault(),U.focus(),J(!0,e))},onBlur:function(e){!te&&y&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:b}}),y(e))},onFocus:w},O,{id:se}),function(e){return null==e||"string"===typeof e&&!e.trim()}(Y)?i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):Y),i.createElement("input",(0,at.c)({value:Array.isArray(D)?D.join(","):D,name:b,ref:B,"aria-hidden":!0,onChange:function(e){var t=X.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=X[t];M(n.props.value),_&&_(e,n)}},tabIndex:-1,className:s.nativeInput,autoFocus:r},L)),i.createElement(p,{className:(0,kn.c)(s.icon,s["icon".concat((0,Zn.c)(I))],te&&s.iconOpen,u&&s.disabled)}),i.createElement(Mi,(0,at.c)({id:"menu-".concat(b||""),anchorEl:U,open:te,onClose:function(e){J(!1,e)}},g,{MenuListProps:(0,at.c)({"aria-labelledby":f,role:"listbox",disableListWrap:!0},g.MenuListProps),PaperProps:(0,at.c)({},g.PaperProps,{style:(0,at.c)({minWidth:ae},null!=g.PaperProps?g.PaperProps.style:null)})}),ie))}));const qi=zi;function Hi(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}var Wi=i.createContext();function Gi(){return i.useContext(Wi)}const Vi=Wi;function $i(){return i.useContext(Vi)}const Ki=(0,In.c)(i.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Yi(e,t){return parseInt(e[t],10)||0}var Zi="undefined"!==typeof window?i.useLayoutEffect:i.useEffect,Ji={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},Xi=i.forwardRef((function(e,t){var n=e.onChange,r=e.rows,o=e.rowsMax,a=e.rowsMin,s=e.maxRows,l=e.minRows,c=void 0===l?1:l,u=e.style,d=e.value,p=(0,Yn.c)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),h=s||o,f=r||a||c,m=i.useRef(null!=d).current,g=i.useRef(null),v=(0,ar.c)(t,g),b=i.useRef(null),y=i.useRef(0),_=i.useState({}),x=_[0],w=_[1],E=i.useCallback((function(){var t=g.current,n=window.getComputedStyle(t),r=b.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var i=n["box-sizing"],o=Yi(n,"padding-bottom")+Yi(n,"padding-top"),a=Yi(n,"border-bottom-width")+Yi(n,"border-top-width"),s=r.scrollHeight-o;r.value="x";var l=r.scrollHeight-o,c=s;f&&(c=Math.max(Number(f)*l,c)),h&&(c=Math.min(Number(h)*l,c));var u=(c=Math.max(c,l))+("border-box"===i?o+a:0),d=Math.abs(c-s)<=1;w((function(e){return y.current<20&&(u>0&&Math.abs((e.outerHeightStyle||0)-u)>1||e.overflow!==d)?(y.current+=1,{overflow:d,outerHeightStyle:u}):e}))}),[h,f,e.placeholder]);i.useEffect((function(){var e=(0,Rr.c)((function(){y.current=0,E()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[E]),Zi((function(){E()})),i.useEffect((function(){y.current=0}),[d]);return i.createElement(i.Fragment,null,i.createElement("textarea",(0,at.c)({value:d,onChange:function(e){y.current=0,m||E(),n&&n(e)},ref:v,rows:f,style:(0,at.c)({height:x.outerHeightStyle,overflow:x.overflow?"hidden":null},u)},p)),i.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:b,tabIndex:-1,style:(0,at.c)({},Ji,u)}))}));const eo=Xi;var to="undefined"===typeof window?i.useEffect:i.useLayoutEffect,no=i.forwardRef((function(e,t){var n=e["aria-describedby"],r=e.autoComplete,o=e.autoFocus,a=e.classes,s=e.className,l=(e.color,e.defaultValue),c=e.disabled,u=e.endAdornment,d=(e.error,e.fullWidth),p=void 0!==d&&d,h=e.id,f=e.inputComponent,m=void 0===f?"input":f,g=e.inputProps,v=void 0===g?{}:g,b=e.inputRef,y=(e.margin,e.multiline),_=void 0!==y&&y,x=e.name,w=e.onBlur,E=e.onChange,T=e.onClick,C=e.onFocus,k=e.onKeyDown,S=e.onKeyUp,O=e.placeholder,A=e.readOnly,j=e.renderSuffix,P=e.rows,I=e.rowsMax,L=e.rowsMin,R=e.maxRows,N=e.minRows,D=e.startAdornment,M=e.type,B=void 0===M?"text":M,Q=e.value,U=(0,Yn.c)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),F=null!=v.value?v.value:Q,z=i.useRef(null!=F).current,q=i.useRef(),H=i.useCallback((function(e){0}),[]),W=(0,ar.c)(v.ref,H),G=(0,ar.c)(b,W),V=(0,ar.c)(q,G),$=i.useState(!1),K=$[0],Y=$[1],Z=Gi();var J=Hi({props:e,muiFormControl:Z,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});J.focused=Z?Z.focused:K,i.useEffect((function(){!Z&&c&&K&&(Y(!1),w&&w())}),[Z,c,K,w]);var X=Z&&Z.onFilled,ee=Z&&Z.onEmpty,te=i.useCallback((function(e){Qi(e)?X&&X():ee&&ee()}),[X,ee]);to((function(){z&&te({value:F})}),[F,te,z]);i.useEffect((function(){te(q.current)}),[]);var ne=m,re=(0,at.c)({},v,{ref:V});"string"!==typeof ne?re=(0,at.c)({inputRef:V,type:B},re,{ref:null}):_?!P||R||N||I||L?(re=(0,at.c)({minRows:P||N,rowsMax:I,maxRows:R},re),ne=eo):ne="textarea":re=(0,at.c)({type:B},re);return i.useEffect((function(){Z&&Z.setAdornedStart(Boolean(D))}),[Z,D]),i.createElement("div",(0,at.c)({className:(0,kn.c)(a.root,a["color".concat((0,Zn.c)(J.color||"primary"))],s,J.disabled&&a.disabled,J.error&&a.error,p&&a.fullWidth,J.focused&&a.focused,Z&&a.formControl,_&&a.multiline,D&&a.adornedStart,u&&a.adornedEnd,"dense"===J.margin&&a.marginDense),onClick:function(e){q.current&&e.currentTarget===e.target&&q.current.focus(),T&&T(e)},ref:t},U),D,i.createElement(Vi.Provider,{value:null},i.createElement(ne,(0,at.c)({"aria-invalid":J.error,"aria-describedby":n,autoComplete:r,autoFocus:o,defaultValue:l,disabled:J.disabled,id:h,onAnimationStart:function(e){te("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:x,placeholder:O,readOnly:A,required:J.required,rows:P,value:F,onKeyDown:k,onKeyUp:S},re,{className:(0,kn.c)(a.input,v.className,J.disabled&&a.disabled,_&&a.inputMultiline,J.hiddenLabel&&a.inputHiddenLabel,D&&a.inputAdornedStart,u&&a.inputAdornedEnd,"search"===B&&a.inputTypeSearch,"dense"===J.margin&&a.inputMarginDense),onBlur:function(e){w&&w(e),v.onBlur&&v.onBlur(e),Z&&Z.onBlur?Z.onBlur(e):Y(!1)},onChange:function(e){if(!z){var t=e.target||q.current;if(null==t)throw new Error((0,Ir.c)(1));te({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0?.75*a+8:.01;return i.createElement("fieldset",(0,at.c)({"aria-hidden":!0,style:(0,at.c)((0,nr.c)({},"padding".concat((0,Zn.c)(u)),8),l),className:(0,kn.c)(n.root,r),ref:t},c),i.createElement("legend",{className:n.legend,style:{width:s?d:.01}},i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))}));const mo=(0,Gn.c)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(fo);var go=i.forwardRef((function(e,t){var n=e.classes,r=e.fullWidth,o=void 0!==r&&r,a=e.inputComponent,s=void 0===a?"input":a,l=e.label,c=e.labelWidth,u=void 0===c?0:c,d=e.multiline,p=void 0!==d&&d,h=e.notched,f=e.type,m=void 0===f?"text":f,g=(0,Yn.c)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return i.createElement(ro,(0,at.c)({renderSuffix:function(e){return i.createElement(mo,{className:n.notchedOutline,label:l,labelWidth:u,notched:"undefined"!==typeof h?h:Boolean(e.startAdornment||e.filled||e.focused)})},classes:(0,at.c)({},n,{root:(0,kn.c)(n.root,n.underline),notchedOutline:null}),fullWidth:o,inputComponent:s,multiline:p,ref:t,type:m},g))}));go.muiName="Input";const vo=(0,Gn.c)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(go);var bo=lo,yo=i.createElement(oo,null),_o=i.createElement(ho,null),xo=i.forwardRef((function e(t,n){var r=t.autoWidth,o=void 0!==r&&r,a=t.children,s=t.classes,l=t.displayEmpty,c=void 0!==l&&l,u=t.IconComponent,d=void 0===u?Ki:u,p=t.id,h=t.input,f=t.inputProps,m=t.label,g=t.labelId,v=t.labelWidth,b=void 0===v?0:v,y=t.MenuProps,_=t.multiple,x=void 0!==_&&_,w=t.native,E=void 0!==w&&w,T=t.onClose,C=t.onOpen,k=t.open,S=t.renderValue,O=t.SelectDisplayProps,A=t.variant,j=void 0===A?"standard":A,P=(0,Yn.c)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),I=E?so:qi,L=Hi({props:t,muiFormControl:$i(),states:["variant"]}).variant||j,R=h||{standard:yo,outlined:i.createElement(vo,{label:m,labelWidth:b}),filled:_o}[L];return i.cloneElement(R,(0,at.c)({inputComponent:I,inputProps:(0,at.c)({children:a,IconComponent:d,variant:L,type:void 0,multiple:x},E?{id:p}:{autoWidth:o,displayEmpty:c,labelId:g,MenuProps:y,onClose:T,onOpen:C,open:k,renderValue:S,SelectDisplayProps:(0,at.c)({id:p},O)},f,{classes:f?(0,Ar.c)({baseClasses:s,newClasses:f.classes,Component:e}):s},h?h.props.inputProps:{}),ref:n},P))}));xo.muiName="Select";const wo=(0,Gn.c)(bo,{name:"MuiSelect"})(xo);var Eo=n(168),To="undefined"===typeof window?i.useEffect:i.useLayoutEffect,Co=i.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,a=e.autoFocus,s=void 0!==a&&a,l=e.button,c=void 0!==l&&l,u=e.children,d=e.classes,p=e.className,h=e.component,f=e.ContainerComponent,m=void 0===f?"li":f,g=e.ContainerProps,v=(g=void 0===g?{}:g).className,b=(0,Yn.c)(g,["className"]),y=e.dense,_=void 0!==y&&y,x=e.disabled,w=void 0!==x&&x,E=e.disableGutters,T=void 0!==E&&E,C=e.divider,k=void 0!==C&&C,S=e.focusVisibleClassName,O=e.selected,A=void 0!==O&&O,j=(0,Yn.c)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),P=i.useContext(Ti),I={dense:_||P.dense||!1,alignItems:r},L=i.useRef(null);To((function(){s&&L.current&&L.current.focus()}),[s]);var R=i.Children.toArray(u),N=R.length&&(0,Eo.c)(R[R.length-1],["ListItemSecondaryAction"]),D=i.useCallback((function(e){L.current=o.findDOMNode(e)}),[]),M=(0,ar.c)(D,t),B=(0,at.c)({className:(0,kn.c)(d.root,p,I.dense&&d.dense,!T&&d.gutters,k&&d.divider,w&&d.disabled,c&&d.button,"center"!==r&&d.alignItemsFlexStart,N&&d.secondaryAction,A&&d.selected),disabled:w},j),Q=h||"li";return c&&(B.component=h||"div",B.focusVisibleClassName=(0,kn.c)(d.focusVisible,S),Q=Er),N?(Q=B.component||h?Q:"div","li"===m&&("li"===Q?Q="div":"li"===B.component&&(B.component="div")),i.createElement(Ti.Provider,{value:I},i.createElement(m,(0,at.c)({className:(0,kn.c)(d.container,v),ref:M},b),i.createElement(Q,B,R),R.pop()))):i.createElement(Ti.Provider,{value:I},i.createElement(Q,(0,at.c)({ref:M},B),R))}));const ko=(0,Gn.c)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(Co);var So=i.forwardRef((function(e,t){var n,r=e.classes,o=e.className,a=e.component,s=void 0===a?"li":a,l=e.disableGutters,c=void 0!==l&&l,u=e.ListItemClasses,d=e.role,p=void 0===d?"menuitem":d,h=e.selected,f=e.tabIndex,m=(0,Yn.c)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==f?f:-1),i.createElement(ko,(0,at.c)({button:!0,role:p,tabIndex:n,component:s,selected:h,disableGutters:c,classes:(0,at.c)({dense:r.dense},u),className:(0,kn.c)(r.root,o,h&&r.selected,!c&&r.gutters),ref:t},m))}));const Oo=(0,Gn.c)((function(e){return{root:(0,at.c)({},e.typography.body1,(0,nr.c)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,at.c)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(So);var Ao=n(4880),jo={entering:{opacity:1},entered:{opacity:1}},Po={enter:Ao.rV.enteringScreen,exit:Ao.rV.leavingScreen},Io=i.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,a=e.in,s=e.onEnter,l=e.onEntered,c=e.onEntering,u=e.onExit,d=e.onExited,p=e.onExiting,h=e.style,f=e.TransitionComponent,m=void 0===f?di:f,g=e.timeout,v=void 0===g?Po:g,b=(0,Yn.c)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),y=Pn(),_=y.unstable_strictMode&&!o,x=i.useRef(null),w=(0,ar.c)(n.ref,t),E=(0,ar.c)(_?x:void 0,w),T=function(e){return function(t,n){if(e){var r=_?[x.current,t]:[t,n],i=(0,jr.c)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},C=T(c),k=T((function(e,t){pi(e);var n=hi({style:h,timeout:v},{mode:"enter"});e.style.webkitTransition=y.transitions.create("opacity",n),e.style.transition=y.transitions.create("opacity",n),s&&s(e,t)})),S=T(l),O=T(p),A=T((function(e){var t=hi({style:h,timeout:v},{mode:"exit"});e.style.webkitTransition=y.transitions.create("opacity",t),e.style.transition=y.transitions.create("opacity",t),u&&u(e)})),j=T(d);return i.createElement(m,(0,at.c)({appear:!0,in:a,nodeRef:_?x:void 0,onEnter:k,onEntered:S,onEntering:C,onExit:A,onExited:j,onExiting:O,timeout:v},b),(function(e,t){return i.cloneElement(n,(0,at.c)({style:(0,at.c)({opacity:0,visibility:"exited"!==e||a?void 0:"hidden"},jo[e],h,n.props.style),ref:E},t))}))}));const Lo=Io;var Ro=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.invisible,s=void 0!==a&&a,l=e.open,c=e.transitionDuration,u=e.TransitionComponent,d=void 0===u?Lo:u,p=(0,Yn.c)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return i.createElement(d,(0,at.c)({in:l,timeout:c},p),i.createElement("div",{className:(0,kn.c)(r.root,o,s&&r.invisible),"aria-hidden":!0,ref:t},n))}));const No=(0,Gn.c)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(Ro);function Do(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var i=window.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var o=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var s=n.split("(")[1].split(")")[0].split(",");o=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(o-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-o,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var Mo={enter:Ao.rV.enteringScreen,exit:Ao.rV.leavingScreen},Bo=i.forwardRef((function(e,t){var n=e.children,r=e.direction,a=void 0===r?"down":r,s=e.in,l=e.onEnter,c=e.onEntered,u=e.onEntering,d=e.onExit,p=e.onExited,h=e.onExiting,f=e.style,m=e.timeout,g=void 0===m?Mo:m,v=e.TransitionComponent,b=void 0===v?di:v,y=(0,Yn.c)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),_=Pn(),x=i.useRef(null),w=i.useCallback((function(e){x.current=o.findDOMNode(e)}),[]),E=(0,ar.c)(n.ref,w),T=(0,ar.c)(E,t),C=function(e){return function(t){e&&(void 0===t?e(x.current):e(x.current,t))}},k=C((function(e,t){Do(a,e),pi(e),l&&l(e,t)})),S=C((function(e,t){var n=hi({timeout:g,style:f},{mode:"enter"});e.style.webkitTransition=_.transitions.create("-webkit-transform",(0,at.c)({},n,{easing:_.transitions.easing.easeOut})),e.style.transition=_.transitions.create("transform",(0,at.c)({},n,{easing:_.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",u&&u(e,t)})),O=C(c),A=C(h),j=C((function(e){var t=hi({timeout:g,style:f},{mode:"exit"});e.style.webkitTransition=_.transitions.create("-webkit-transform",(0,at.c)({},t,{easing:_.transitions.easing.sharp})),e.style.transition=_.transitions.create("transform",(0,at.c)({},t,{easing:_.transitions.easing.sharp})),Do(a,e),d&&d(e)})),P=C((function(e){e.style.webkitTransition="",e.style.transition="",p&&p(e)})),I=i.useCallback((function(){x.current&&Do(a,x.current)}),[a]);return i.useEffect((function(){if(!s&&"down"!==a&&"right"!==a){var e=(0,Rr.c)((function(){x.current&&Do(a,x.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[a,s]),i.useEffect((function(){s||I()}),[s,I]),i.createElement(b,(0,at.c)({nodeRef:x,onEnter:k,onEntered:O,onEntering:S,onExit:j,onExited:P,onExiting:A,appear:!0,in:s,timeout:g},y),(function(e,t){return i.cloneElement(n,(0,at.c)({ref:T,style:(0,at.c)({visibility:"exited"!==e||s?void 0:"hidden"},f,n.props.style)},t))}))}));const Qo=Bo;var Uo={left:"right",right:"left",top:"down",bottom:"up"};var Fo={enter:Ao.rV.enteringScreen,exit:Ao.rV.leavingScreen},zo=i.forwardRef((function(e,t){var n=e.anchor,r=void 0===n?"left":n,o=e.BackdropProps,a=e.children,s=e.classes,l=e.className,c=e.elevation,u=void 0===c?16:c,d=e.ModalProps,p=(d=void 0===d?{}:d).BackdropProps,h=(0,Yn.c)(d,["BackdropProps"]),f=e.onClose,m=e.open,g=void 0!==m&&m,v=e.PaperProps,b=void 0===v?{}:v,y=e.SlideProps,_=e.TransitionComponent,x=void 0===_?Qo:_,w=e.transitionDuration,E=void 0===w?Fo:w,T=e.variant,C=void 0===T?"temporary":T,k=(0,Yn.c)(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),S=Pn(),O=i.useRef(!1);i.useEffect((function(){O.current=!0}),[]);var A=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?Uo[t]:t}(S,r),j=i.createElement(Xn,(0,at.c)({elevation:"temporary"===C?u:0,square:!0},b,{className:(0,kn.c)(s.paper,s["paperAnchor".concat((0,Zn.c)(A))],b.className,"temporary"!==C&&s["paperAnchorDocked".concat((0,Zn.c)(A))])}),a);if("permanent"===C)return i.createElement("div",(0,at.c)({className:(0,kn.c)(s.root,s.docked,l),ref:t},k),j);var P=i.createElement(x,(0,at.c)({in:g,direction:Uo[A],timeout:E,appear:O.current},y),j);return"persistent"===C?i.createElement("div",(0,at.c)({className:(0,kn.c)(s.root,s.docked,l),ref:t},k),P):i.createElement(ti,(0,at.c)({BackdropProps:(0,at.c)({},o,p,{transitionDuration:E}),BackdropComponent:No,className:(0,kn.c)(s.root,s.modal,l),open:g,onClose:f,ref:t},k,h),P)}));const qo=(0,Gn.c)((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(zo);var Ho=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=(0,Yn.c)(e,["classes","className"]),a=i.useContext(Ti);return i.createElement("div",(0,at.c)({className:(0,kn.c)(n.root,r,"flex-start"===a.alignItems&&n.alignItemsFlexStart),ref:t},o))}));const Wo=(0,Gn.c)((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Ho),Go=(0,In.c)(i.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var Vo=i.forwardRef((function(e,t){var n=e.alt,r=e.children,o=e.classes,a=e.className,s=e.component,l=void 0===s?"div":s,c=e.imgProps,u=e.sizes,d=e.src,p=e.srcSet,h=e.variant,f=void 0===h?"circular":h,m=(0,Yn.c)(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),g=null,v=function(e){var t=e.src,n=e.srcSet,r=i.useState(!1),o=r[0],a=r[1];return i.useEffect((function(){if(t||n){a(!1);var e=!0,r=new Image;return r.src=t,r.srcSet=n,r.onload=function(){e&&a("loaded")},r.onerror=function(){e&&a("error")},function(){e=!1}}}),[t,n]),o}({src:d,srcSet:p}),b=d||p,y=b&&"error"!==v;return g=y?i.createElement("img",(0,at.c)({alt:n,src:d,srcSet:p,sizes:u,className:o.img},c)):null!=r?r:b&&n?n[0]:i.createElement(Go,{className:o.fallback}),i.createElement(l,(0,at.c)({className:(0,kn.c)(o.root,o.system,o[f],a,!y&&o.colorDefault),ref:t},m),g)}));const $o=(0,Gn.c)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},circular:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}}),{name:"MuiAvatar"})(Vo);var Ko=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.disableTypography,s=void 0!==a&&a,l=e.inset,c=void 0!==l&&l,u=e.primary,d=e.primaryTypographyProps,p=e.secondary,h=e.secondaryTypographyProps,f=(0,Yn.c)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=i.useContext(Ti).dense,g=null!=u?u:n;null==g||g.type===Or||s||(g=i.createElement(Or,(0,at.c)({variant:m?"body2":"body1",className:r.primary,component:"span",display:"block"},d),g));var v=p;return null==v||v.type===Or||s||(v=i.createElement(Or,(0,at.c)({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},h),v)),i.createElement("div",(0,at.c)({className:(0,kn.c)(r.root,o,m&&r.dense,c&&r.inset,g&&v&&r.multiline),ref:t},f),g,v)}));const Yo=(0,Gn.c)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Ko);var Zo=i.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,o=e.classes,a=e.className,s=e.component,l=void 0===s?"hr":s,c=e.flexItem,u=void 0!==c&&c,d=e.light,p=void 0!==d&&d,h=e.orientation,f=void 0===h?"horizontal":h,m=e.role,g=void 0===m?"hr"!==l?"separator":void 0:m,v=e.variant,b=void 0===v?"fullWidth":v,y=(0,Yn.c)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return i.createElement(l,(0,at.c)({className:(0,kn.c)(o.root,a,"fullWidth"!==b&&o[b],r&&o.absolute,u&&o.flexItem,p&&o.light,"vertical"===f&&o.vertical),role:g,ref:t},y))}));const Jo=(0,Gn.c)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:(0,or.W4)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(Zo);var Xo=n(8384),ea="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,ta=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();var na=ea&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),ta))}};function ra(e){return e&&"[object Function]"==={}.toString.call(e)}function ia(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function oa(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function aa(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=ia(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:aa(oa(e))}function sa(e){return e&&e.referenceNode?e.referenceNode:e}var la=ea&&!(!window.MSInputMethodContext||!document.documentMode),ca=ea&&/MSIE 10/.test(navigator.userAgent);function ua(e){return 11===e?la:10===e?ca:la||ca}function da(e){if(!e)return document.documentElement;for(var t=ua(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===ia(n,"position")?da(n):n:e?e.ownerDocument.documentElement:document.documentElement}function pa(e){return null!==e.parentNode?pa(e.parentNode):e}function ha(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||da(e.firstElementChild)===e)}(a)?a:da(a);var s=pa(e);return s.host?ha(s.host,t):ha(e,pa(t).host)}function fa(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function ma(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function ga(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ua(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function va(e){var t=e.body,n=e.documentElement,r=ua(10)&&getComputedStyle(n);return{height:ga("Height",t,n,r),width:ga("Width",t,n,r)}}var ba=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=ua(10),i="HTML"===t.nodeName,o=wa(e),a=wa(t),s=aa(e),l=ia(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=xa({top:o.top-a.top-c,left:o.left-a.left-u,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var p=parseFloat(l.marginTop),h=parseFloat(l.marginLeft);d.top-=c-p,d.bottom-=c-p,d.left-=u-h,d.right-=u-h,d.marginTop=p,d.marginLeft=h}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=fa(t,"top"),i=fa(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}(d,t)),d}function Ta(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===ia(e,"position"))return!0;var n=oa(e);return!!n&&Ta(n)}function Ca(e){if(!e||!e.parentElement||ua())return document.documentElement;for(var t=e.parentElement;t&&"none"===ia(t,"transform");)t=t.parentElement;return t||document.documentElement}function ka(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?Ca(e):ha(e,sa(t));if("viewport"===r)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Ea(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:fa(n),s=t?0:fa(n,"left");return xa({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}(a,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=aa(oa(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=Ea(s,a,i);if("HTML"!==s.nodeName||Ta(a))o=l;else{var c=va(e.ownerDocument),u=c.height,d=c.width;o.top+=l.top-l.marginTop,o.bottom=u+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}}var p="number"===typeof(n=n||0);return o.left+=p?n:n.left||0,o.top+=p?n:n.top||0,o.right-=p?n:n.right||0,o.bottom-=p?n:n.bottom||0,o}function Sa(e){return e.width*e.height}function Oa(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=ka(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return _a({key:e},s[e],{area:Sa(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function Aa(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Ea(n,r?Ca(t):ha(t,sa(n)),r)}function ja(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Pa(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function Ia(e,t,n){n=n.split("-")[0];var r=ja(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[c]:t[Pa(s)],i}function La(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Ra(e,t,n){var r=void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=La(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n));return r.forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&ra(n)&&(t.offsets.popper=xa(t.offsets.popper),t.offsets.reference=xa(t.offsets.reference),t=n(t,e))})),t}function Na(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Aa(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Oa(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Ia(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Ra(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Da(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Ma(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=Ka.indexOf(e),r=Ka.slice(n+1).concat(Ka.slice(0,n));return t?r.reverse():r}var Za="flip",Ja="clockwise",Xa="counterclockwise";function es(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(La(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return c=c.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){return xa("%p"===a?n:r)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,i,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,r){Ha(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var ts={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:ya({},l,o[l]),end:ya({},l,o[l]+o[c]-a[c])};e.offsets.popper=_a({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=Ha(+n)?[+n,0]:es(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||da(e.instance.popper);e.instance.reference===n&&(n=da(n));var r=Ma("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=ka(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),ya({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=_a({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Va(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",f=ja(r)[c];s[h]-fa[h]&&(e.offsets.popper[d]+=s[d]+f-a[h]),e.offsets.popper=xa(e.offsets.popper);var m=s[d]+s[c]/2-f/2,g=ia(e.instance.popper),v=parseFloat(g["margin"+u]),b=parseFloat(g["border"+u+"Width"]),y=m-e.offsets.popper[d]-v-b;return y=Math.max(Math.min(a[c]-f,y),0),e.arrowElement=r,e.offsets.arrow=(ya(n={},d,Math.round(y)),ya(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Da(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=ka(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Pa(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Za:a=[r,i];break;case Ja:a=Ya(r);break;case Xa:a=Ya(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=Pa(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)d(u.top)||"bottom"===r&&d(c.top)d(n.right),m=d(c.top)d(n.bottom),v="left"===r&&h||"right"===r&&f||"top"===r&&m||"bottom"===r&&g,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===o&&h||b&&"end"===o&&f||!b&&"start"===o&&m||!b&&"end"===o&&g),_=!!t.flipVariationsByContent&&(b&&"start"===o&&f||b&&"end"===o&&h||!b&&"start"===o&&g||!b&&"end"===o&&m),x=y||_;(p||v||x)&&(e.flipped=!0,(p||v)&&(r=a[l+1]),x&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=_a({},e.offsets.popper,Ia(e.instance.popper,e.offsets.reference,e.placement)),e=Ra(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=Pa(t),e.offsets.popper=xa(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Va(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=La(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=na(this.update.bind(this)),this.options=_a({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(_a({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){r.options.modifiers[t]=_a({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return _a({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&ra(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return ba(e,[{key:"update",value:function(){return Na.call(this)}},{key:"destroy",value:function(){return Ba.call(this)}},{key:"enableEventListeners",value:function(){return za.call(this)}},{key:"disableEventListeners",value:function(){return qa.call(this)}}]),e}();rs.Utils=("undefined"!==typeof window?window:n.g).PopperUtils,rs.placements=$a,rs.Defaults=ns;const is=rs;function os(e){return"function"===typeof e?e():e}var as="undefined"!==typeof window?i.useLayoutEffect:i.useEffect,ss={},ls=i.forwardRef((function(e,t){var n=e.anchorEl,r=e.children,o=e.container,a=e.disablePortal,s=void 0!==a&&a,l=e.keepMounted,c=void 0!==l&&l,u=e.modifiers,d=e.open,p=e.placement,h=void 0===p?"bottom":p,f=e.popperOptions,m=void 0===f?ss:f,g=e.popperRef,v=e.style,b=e.transition,y=void 0!==b&&b,_=(0,Yn.c)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),x=i.useRef(null),w=(0,ar.c)(x,t),E=i.useRef(null),T=(0,ar.c)(E,g),C=i.useRef(T);as((function(){C.current=T}),[T]),i.useImperativeHandle(g,(function(){return E.current}),[]);var k=i.useState(!0),S=k[0],O=k[1],A=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(h,(0,jn.c)()),j=i.useState(A),P=j[0],I=j[1];i.useEffect((function(){E.current&&E.current.update()}));var L=i.useCallback((function(){if(x.current&&n&&d){E.current&&(E.current.destroy(),C.current(null));var e=function(e){I(e.placement)},t=(os(n),new is(os(n),x.current,(0,at.c)({placement:A},m,{modifiers:(0,at.c)({},s?{}:{preventOverflow:{boundariesElement:"window"}},u,m.modifiers),onCreate:(0,Dr.c)(e,m.onCreate),onUpdate:(0,Dr.c)(e,m.onUpdate)})));C.current(t)}}),[n,s,u,d,A,m]),R=i.useCallback((function(e){(0,Br.c)(w,e),L()}),[w,L]),N=function(){E.current&&(E.current.destroy(),C.current(null))};if(i.useEffect((function(){return function(){N()}}),[]),i.useEffect((function(){d||y||N()}),[d,y]),!c&&!d&&(!y||S))return null;var D={placement:P};return y&&(D.TransitionProps={in:d,onEnter:function(){O(!1)},onExited:function(){O(!0),N()}}),i.createElement(Ur,{disablePortal:s,container:o},i.createElement("div",(0,at.c)({ref:R,role:"tooltip"},_,{style:(0,at.c)({position:"fixed",top:0,left:0,display:d||!c||y?null:"none"},v)}),"function"===typeof r?r(D):r))}));const cs=ls;var us=n(5064);function ds(e){return Math.round(1e5*e)/1e5}var ps=!1,hs=null;var fs=i.forwardRef((function(e,t){var n=e.arrow,r=void 0!==n&&n,a=e.children,s=e.classes,l=e.disableFocusListener,c=void 0!==l&&l,u=e.disableHoverListener,d=void 0!==u&&u,p=e.disableTouchListener,h=void 0!==p&&p,f=e.enterDelay,m=void 0===f?100:f,g=e.enterNextDelay,v=void 0===g?0:g,b=e.enterTouchDelay,y=void 0===b?700:b,_=e.id,x=e.interactive,w=void 0!==x&&x,E=e.leaveDelay,T=void 0===E?0:E,C=e.leaveTouchDelay,k=void 0===C?1500:C,S=e.onClose,O=e.onOpen,A=e.open,j=e.placement,P=void 0===j?"bottom":j,I=e.PopperComponent,L=void 0===I?cs:I,R=e.PopperProps,N=e.title,D=e.TransitionComponent,M=void 0===D?vi:D,B=e.TransitionProps,Q=(0,Yn.c)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),U=Pn(),F=i.useState(),z=F[0],q=F[1],H=i.useState(null),W=H[0],G=H[1],V=i.useRef(!1),$=i.useRef(),K=i.useRef(),Y=i.useRef(),Z=i.useRef(),J=(0,Ui.c)({controlled:A,default:!1,name:"Tooltip",state:"open"}),X=(0,jr.c)(J,2),ee=X[0],te=X[1],ne=ee,re=(0,us.c)(_);i.useEffect((function(){return function(){clearTimeout($.current),clearTimeout(K.current),clearTimeout(Y.current),clearTimeout(Z.current)}}),[]);var ie=function(e){clearTimeout(hs),ps=!0,te(!0),O&&O(e)},oe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=a.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),V.current&&"touchstart"!==t.type||(z&&z.removeAttribute("title"),clearTimeout(K.current),clearTimeout(Y.current),m||ps&&v?(t.persist(),K.current=setTimeout((function(){ie(t)}),ps?v:m)):ie(t))}},ae=(0,lr.c)(),se=ae.isFocusVisible,le=ae.onBlurVisible,ce=ae.ref,ue=i.useState(!1),de=ue[0],pe=ue[1],he=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){z||q(t.currentTarget),se(t)&&(pe(!0),oe()(t));var n=a.props;n.onFocus&&e&&n.onFocus(t)}},fe=function(e){clearTimeout(hs),hs=setTimeout((function(){ps=!1}),800+T),te(!1),S&&S(e),clearTimeout($.current),$.current=setTimeout((function(){V.current=!1}),U.transitions.duration.shortest)},me=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=a.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),de&&(pe(!1),le())),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===z&&n.onMouseLeave(t),clearTimeout(K.current),clearTimeout(Y.current),t.persist(),Y.current=setTimeout((function(){fe(t)}),T)}},ge=function(e){V.current=!0;var t=a.props;t.onTouchStart&&t.onTouchStart(e)},ve=(0,ar.c)(q,t),be=(0,ar.c)(ce,ve),ye=i.useCallback((function(e){(0,Br.c)(be,o.findDOMNode(e))}),[be]),_e=(0,ar.c)(a.ref,ye);""===N&&(ne=!1);var xe=!ne&&!d,we=(0,at.c)({"aria-describedby":ne?re:null,title:xe&&"string"===typeof N?N:null},Q,a.props,{className:(0,kn.c)(Q.className,a.props.className),onTouchStart:ge,ref:_e}),Ee={};h||(we.onTouchStart=function(e){ge(e),clearTimeout(Y.current),clearTimeout($.current),clearTimeout(Z.current),e.persist(),Z.current=setTimeout((function(){oe()(e)}),y)},we.onTouchEnd=function(e){a.props.onTouchEnd&&a.props.onTouchEnd(e),clearTimeout(Z.current),clearTimeout(Y.current),e.persist(),Y.current=setTimeout((function(){fe(e)}),k)}),d||(we.onMouseOver=oe(),we.onMouseLeave=me(),w&&(Ee.onMouseOver=oe(!1),Ee.onMouseLeave=me(!1))),c||(we.onFocus=he(),we.onBlur=me(),w&&(Ee.onFocus=he(!1),Ee.onBlur=me(!1)));var Te=i.useMemo((function(){return(0,Xo.c)({popperOptions:{modifiers:{arrow:{enabled:Boolean(W),element:W}}}},R)}),[W,R]);return i.createElement(i.Fragment,null,i.cloneElement(a,we),i.createElement(L,(0,at.c)({className:(0,kn.c)(s.popper,w&&s.popperInteractive,r&&s.popperArrow),placement:P,anchorEl:z,open:!!z&&ne,id:we["aria-describedby"],transition:!0},Ee,Te),(function(e){var t=e.placement,n=e.TransitionProps;return i.createElement(M,(0,at.c)({timeout:U.transitions.duration.shorter},n,B),i.createElement("div",{className:(0,kn.c)(s.tooltip,s["tooltipPlacement".concat((0,Zn.c)(t.split("-")[0]))],V.current&&s.touch,r&&s.tooltipArrow)},N,r?i.createElement("span",{className:s.arrow,ref:G}):null))})))}));const ms=(0,Gn.c)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:(0,or.W4)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(ds(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:(0,or.W4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(ds(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:(0,nr.c)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:(0,nr.c)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:(0,nr.c)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:(0,nr.c)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(fs),gs=!1,vs=!1,bs="${JSCORE_VERSION}",ys=function(e,t){if(!e)throw _s(t)},_s=function(e){return new Error("Firebase Database ("+bs+") INTERNAL ASSERT FAILED: "+e)},xs=function(e){const t=[];let n=0;for(let r=0;r>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},ws={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i>2,u=(3&t)<<4|a>>4;let d=(15&a)<<2|l>>6,p=63&l;s||(p=64,o||(d=64)),r.push(n[c],n[u],n[d],n[p])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(xs(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){const o=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{const o=e[n++],a=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i>4;if(r.push(l),64!==a){const e=o<<4&240|a>>2;if(r.push(e),64!==s){const e=a<<6&192|s;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class Es extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Ts=function(e){const t=xs(e);return ws.encodeByteArray(t,!0)},Cs=function(e){return Ts(e).replace(/\./g,"")},ks=function(e){try{return ws.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function Ss(e){return Os(void 0,e)}function Os(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(const n in t)t.hasOwnProperty(n)&&As(n)&&(e[n]=Os(e[n],t[n]));return e}function As(e){return"__proto__"!==e}const js=()=>function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__,Ps=()=>{try{return js()||(()=>{if("undefined"===typeof process)return;const e={NODE_ENV:"production",PUBLIC_URL:"/metadata-entry-form",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_GOOGLE_CLOUD_API_KEY:"AIzaSyBz4kb3hJHXw0voYZgHZuAgmqGosxntMHM",REACT_APP_GOOGLE_CLOUD_API_KEY_DEV:"AIzaSyADkNENzpoqj3O7uGPsRA_4s1zQdbH708c"}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"===typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}const t=e&&ks(e[1]);return t&&JSON.parse(t)})()}catch(e){return void console.info("Unable to get __FIREBASE_DEFAULTS__ due to: ".concat(e))}},Is=e=>{var t,n;return null===(n=null===(t=Ps())||void 0===t?void 0:t.emulatorHosts)||void 0===n?void 0:n[e]},Ls=e=>{const t=Is(e);if(!t)return;const n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error("Invalid host ".concat(t," with no separate hostname and port!"));const r=parseInt(t.substring(n+1),10);return"["===t[0]?[t.substring(1,n-1),r]:[t.substring(0,n),r]},Rs=()=>{var e;return null===(e=Ps())||void 0===e?void 0:e.config},Ns=e=>{var t;return null===(t=Ps())||void 0===t?void 0:t["_".concat(e)]};class Ds{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"===typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,n))}}}function Ms(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function Bs(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ms())}function Qs(){return"object"===typeof navigator&&"ReactNative"===navigator.product}function Us(){return!0===gs||!0===vs}class Fs extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,Fs.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,zs.prototype.create)}}class zs{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e){const t=(arguments.length<=1?void 0:arguments[1])||{},n="".concat(this.service,"/").concat(e),r=this.errors[e],i=r?function(e,t){return e.replace(qs,((e,n)=>{const r=t[n];return null!=r?String(r):"<".concat(n,"?>")}))}(r,t):"Error",o="".concat(this.serviceName,": ").concat(i," (").concat(n,").");return new Fs(n,o,t)}}const qs=/\{\$([^}]+)}/g;function Hs(e){return JSON.parse(e)}function Ws(e){return JSON.stringify(e)}const Gs=function(e){let t={},n={},r={},i="";try{const o=e.split(".");t=Hs(ks(o[0])||""),n=Hs(ks(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(o){}return{header:t,claims:n,data:r,signature:i}};function Vs(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $s(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function Ks(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function Ys(e,t,n){const r={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}function Zs(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const n=e[i],o=t[i];if(Js(n)&&Js(o)){if(!Zs(n,o))return!1}else if(n!==o)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function Js(e){return null!==e&&"object"===typeof e}function Xs(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach((e=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))})):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function el(e){const t={};return e.replace(/^\?/,"").split("&").forEach((e=>{if(e){const[n,r]=e.split("=");t[decodeURIComponent(n)]=decodeURIComponent(r)}})),t}function tl(e){const t=e.indexOf("?");if(!t)return"";const n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}class nl{constructor(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(let e=1;e>>31)}let r,i,o=this.chain_[0],a=this.chain_[1],s=this.chain_[2],l=this.chain_[3],c=this.chain_[4];for(let u=0;u<80;u++){u<40?u<20?(r=l^a&(s^l),i=1518500249):(r=a^s^l,i=1859775393):u<60?(r=a&s|l&(a|s),i=2400959708):(r=a^s^l,i=3395469782);const e=(o<<5|o>>>27)+r+c+i+n[u]&4294967295;c=l,l=s,s=4294967295&(a<<30|a>>>2),a=o,o=e}this.chain_[0]=this.chain_[0]+o&4294967295,this.chain_[1]=this.chain_[1]+a&4294967295,this.chain_[2]=this.chain_[2]+s&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+c&4294967295}update(e,t){if(null==e)return;void 0===t&&(t=e.length);const n=t-this.blockSize;let r=0;const i=this.buf_;let o=this.inbuf_;for(;r=56;r--)this.buf_[r]=255&t,t/=256;this.compress_(this.buf_);let n=0;for(let r=0;r<5;r++)for(let t=24;t>=0;t-=8)e[n]=this.chain_[r]>>t&255,++n;return e}}class rl{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((()=>{e(this)})).catch((e=>{this.error(e)}))}next(e){this.forEachObserver((t=>{t.next(e)}))}error(e){this.forEachObserver((t=>{t.error(e)})),this.close(e)}complete(){this.forEachObserver((e=>{e.complete()})),this.close()}subscribe(e,t,n){let r;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");r=function(e,t){if("object"!==typeof e||null===e)return!1;for(const n of t)if(n in e&&"function"===typeof e[n])return!0;return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n},void 0===r.next&&(r.next=il),void 0===r.error&&(r.error=il),void 0===r.complete&&(r.complete=il);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch(e){}})),this.observers.push(r),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(n){"undefined"!==typeof console&&console.error&&console.error(n)}}))}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((()=>{this.observers=void 0,this.onNoObservers=void 0})))}}function il(){}function ol(e,t){return"".concat(e," failed: ").concat(t," argument ")}const al=function(e){let t=0;for(let n=0;n=55296&&r<=56319?(t+=4,n++):t+=3}return t};function sl(e){return e&&e._delegate?e._delegate:e}class ll{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const cl="[DEFAULT]";class ul{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new Ds;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(n){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),r=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error("Service ".concat(this.name," is not available"))}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error("Mismatching Component ".concat(e.name," for Provider ").concat(this.name,"."));if(this.component)throw Error("Component for ".concat(this.name," has already been provided"));if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:cl})}catch(t){}for(const[e,n]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:r});n.resolve(e)}catch(t){}}}}clearInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cl;this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cl;return this.instances.has(e)}getOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cl;return this.instancesOptions.get(e)||{}}initialize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error("".concat(this.name,"(").concat(n,") has already been initialized"));if(!this.isComponentSet())throw Error("Component ".concat(this.name," has not been registered yet"));const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[i,o]of this.instancesDeferred.entries()){n===this.normalizeInstanceIdentifier(i)&&o.resolve(r)}return r}onInit(e,t){var n;const r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);const o=this.instances.get(r);return o&&e(o,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const i of n)try{i(e,t)}catch(r){}}getOrInitializeService(e){let{instanceIdentifier:t,options:n={}}=e,r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:(i=t,i===cl?void 0:i),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch(o){}var i;return r||null}normalizeInstanceIdentifier(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cl;return this.component?this.component.multipleInstances?e:cl:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class dl{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component ".concat(e.name," has already been registered with ").concat(this.name));t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new ul(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}const pl=[];var hl;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(hl||(hl={}));const fl={debug:hl.DEBUG,verbose:hl.VERBOSE,info:hl.INFO,warn:hl.WARN,error:hl.ERROR,silent:hl.SILENT},ml=hl.INFO,gl={[hl.DEBUG]:"log",[hl.VERBOSE]:"log",[hl.INFO]:"info",[hl.WARN]:"warn",[hl.ERROR]:"error"},vl=function(e,t){if(t2?i-2:0),a=2;at.some((t=>e instanceof t));let _l,xl;const wl=new WeakMap,El=new WeakMap,Tl=new WeakMap,Cl=new WeakMap,kl=new WeakMap;let Sl={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return El.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Tl.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return jl(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Ol(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(xl||(xl=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)}));El.set(e,t)}(e),yl(e,_l||(_l=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,Sl):e)}function jl(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(jl(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)}));return t.then((t=>{t instanceof IDBCursor&&wl.set(t,e)})).catch((()=>{})),kl.set(t,e),t}(e);if(Cl.has(e))return Cl.get(e);const t=Al(e);return t!==e&&(Cl.set(e,t),kl.set(t,e)),t}const Pl=e=>kl.get(e);const Il=["get","getKey","getAll","getAllKeys","count"],Ll=["put","add","delete","clear"],Rl=new Map;function Nl(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(Rl.get(t))return Rl.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=Ll.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!Il.includes(n))return;const o=async function(e){const t=this.transaction(e,i?"readwrite":"readonly");let o=t.store;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l({...e,get:(t,n,r)=>Nl(t,n)||e.get(t,n,r),has:(t,n)=>!!Nl(t,n)||e.has(t,n)}))(Sl);class Dl{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){const t=e.getImmediate();return"".concat(t.library,"/").concat(t.version)}return null})).filter((e=>e)).join(" ")}}const Ml="@firebase/app",Bl="0.9.27",Ql=new bl("@firebase/app"),Ul="[DEFAULT]",Fl={[Ml]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},zl=new Map,ql=new Map;function Hl(e,t){try{e.container.addComponent(t)}catch(n){Ql.debug("Component ".concat(t.name," failed to register with FirebaseApp ").concat(e.name),n)}}function Wl(e){const t=e.name;if(ql.has(t))return Ql.debug("There were multiple attempts to register component ".concat(t,".")),!1;ql.set(t,e);for(const n of zl.values())Hl(n,e);return!0}function Gl(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}const Vl=new zs("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});class $l{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new ll("app",(()=>this),"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Vl.create("app-deleted",{appName:this._name})}}const Kl="10.8.0";function Yl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if("object"!==typeof t){t={name:t}}const r=Object.assign({name:Ul,automaticDataCollectionEnabled:!1},t),i=r.name;if("string"!==typeof i||!i)throw Vl.create("bad-app-name",{appName:String(i)});if(n||(n=Rs()),!n)throw Vl.create("no-options");const o=zl.get(i);if(o){if(Zs(n,o.options)&&Zs(r,o.config))return o;throw Vl.create("duplicate-app",{appName:i})}const a=new dl(i);for(const l of ql.values())a.addComponent(l);const s=new $l(n,r,a);return zl.set(i,s),s}function Zl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ul;const t=zl.get(e);if(!t&&e===Ul&&Rs())return Yl();if(!t)throw Vl.create("no-app",{appName:e});return t}function Jl(e,t,n){var r;let i=null!==(r=Fl[e])&&void 0!==r?r:e;n&&(i+="-".concat(n));const o=i.match(/\s|\//),a=t.match(/\s|\//);if(o||a){const e=['Unable to register library "'.concat(i,'" with version "').concat(t,'":')];return o&&e.push('library name "'.concat(i,'" contains illegal characters (whitespace or "/")')),o&&a&&e.push("and"),a&&e.push('version name "'.concat(t,'" contains illegal characters (whitespace or "/")')),void Ql.warn(e.join(" "))}Wl(new ll("".concat(i,"-version"),(()=>({library:i,version:t})),"VERSION"))}const Xl="firebase-heartbeat-database",ec=1,tc="firebase-heartbeat-store";let nc=null;function rc(){return nc||(nc=function(e,t){let{blocked:n,upgrade:r,blocking:i,terminated:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=indexedDB.open(e,t),s=jl(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(jl(a.result),e.oldVersion,e.newVersion,jl(a.transaction),e)})),n&&a.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{o&&e.addEventListener("close",(()=>o())),i&&e.addEventListener("versionchange",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}(Xl,ec,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(tc)}catch(n){console.warn(n)}}}).catch((e=>{throw Vl.create("idb-open",{originalErrorMessage:e.message})}))),nc}async function ic(e,t){try{const n=(await rc()).transaction(tc,"readwrite"),r=n.objectStore(tc);await r.put(t,oc(e)),await n.done}catch(n){if(n instanceof Fs)Ql.warn(n.message);else{const e=Vl.create("idb-set",{originalErrorMessage:null===n||void 0===n?void 0:n.message});Ql.warn(e.message)}}}function oc(e){return"".concat(e.name,"!").concat(e.options.appId)}class ac{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new lc(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){var e,t;const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=sc();if((null!=(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||(this._heartbeatsCache=await this._heartbeatsCachePromise,null!=(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)))&&this._heartbeatsCache.lastSentHeartbeatDate!==r&&!this._heartbeatsCache.heartbeats.some((e=>e.date===r)))return this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((e=>{const t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){var e;if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=sc(),{heartbeatsToSend:n,unsentEntries:r}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1024;const n=[];let r=e.slice();for(const i of e){const e=n.find((e=>e.agent===i.agent));if(e){if(e.dates.push(i.date),cc(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),cc(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),i=Cs(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}}function sc(){return(new Date).toISOString().substring(0,10)}class lc{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!function(){try{return"object"===typeof indexedDB}catch(e){return!1}}()&&new Promise(((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(gh){t(gh)}})).then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await rc()).transaction(tc),n=await t.objectStore(tc).get(oc(e));return await t.done,n}catch(t){if(t instanceof Fs)Ql.warn(t.message);else{const e=Vl.create("idb-get",{originalErrorMessage:null===t||void 0===t?void 0:t.message});Ql.warn(e.message)}}}(this.app);return(null===e||void 0===e?void 0:e.heartbeats)?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return ic(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return ic(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function cc(e){return Cs(JSON.stringify({version:2,heartbeats:e})).length}var uc;uc="",Wl(new ll("platform-logger",(e=>new Dl(e)),"PRIVATE")),Wl(new ll("heartbeat",(e=>new ac(e)),"PRIVATE")),Jl(Ml,Bl,uc),Jl(Ml,Bl,"esm2017"),Jl("fire-js","");function dc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r2?n-2:0),i=2;ie,"Short delay should be less than long delay!"),this.isMobile=Bs()||Qs()}get(){return Oc()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function jc(e,t){Tc(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?"".concat(n).concat(t.startsWith("/")?t.slice(1):t):n}class Pc{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!==typeof self&&"fetch"in self?self.fetch:"undefined"!==typeof globalThis&&globalThis.fetch?globalThis.fetch:"undefined"!==typeof fetch?fetch:void Ec("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!==typeof self&&"Headers"in self?self.Headers:"undefined"!==typeof globalThis&&globalThis.Headers?globalThis.Headers:"undefined"!==typeof Headers?Headers:void Ec("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!==typeof self&&"Response"in self?self.Response:"undefined"!==typeof globalThis&&globalThis.Response?globalThis.Response:"undefined"!==typeof Response?Response:void Ec("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const Ic={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},Lc=new Ac(3e4,6e4);function Rc(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function Nc(e,t,n,r){return Dc(e,arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},(async()=>{let i={},o={};r&&("GET"===t?o=r:i={body:JSON.stringify(r)});const a=Xs(Object.assign({key:e.config.apiKey},o)).slice(1),s=await e._getAdditionalHeaders();return s["Content-Type"]="application/json",e.languageCode&&(s["X-Firebase-Locale"]=e.languageCode),Pc.fetch()(Bc(e,e.config.apiHost,n,a),Object.assign({method:t,headers:s,referrerPolicy:"no-referrer"},i))}))}async function Dc(e,t,n){e._canInitEmulator=!1;const r=Object.assign(Object.assign({},Ic),t);try{const t=new Uc(e),i=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();const o=await i.json();if("needConfirmation"in o)throw Fc(e,"account-exists-with-different-credential",o);if(i.ok&&!("errorMessage"in o))return o;{const t=i.ok?o.errorMessage:o.error.message,[n,a]=t.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===n)throw Fc(e,"credential-already-in-use",o);if("EMAIL_EXISTS"===n)throw Fc(e,"email-already-in-use",o);if("USER_DISABLED"===n)throw Fc(e,"user-disabled",o);const s=r[n]||n.toLowerCase().replace(/[_\s]+/g,"-");if(a)throw yc(e,s,a);vc(e,s)}}catch(i){if(i instanceof Fs)throw i;vc(e,"network-request-failed",{message:String(i)})}}async function Mc(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const o=await Nc(e,t,n,r,i);return"mfaPendingCredential"in o&&vc(e,"multi-factor-auth-required",{_serverResponse:o}),o}function Bc(e,t,n,r){const i="".concat(t).concat(n,"?").concat(r);return e.config.emulator?jc(e.config,i):"".concat(e.config.apiScheme,"://").concat(i)}function Qc(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class Uc{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise(((e,t)=>{this.timer=setTimeout((()=>t(bc(this.auth,"network-request-failed"))),Lc.get())}))}clearNetworkTimeout(){clearTimeout(this.timer)}}function Fc(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=bc(e,t,r);return i.customData._tokenResponse=n,i}function zc(e){return void 0!==e&&void 0!==e.enterprise}class qc{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===e.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)return Qc(t.enforcementState);return null}isProviderEnabled(e){return"ENFORCE"===this.getProviderEnforcementState(e)||"AUDIT"===this.getProviderEnforcementState(e)}}async function Hc(e,t){return Nc(e,"GET","/v2/recaptchaConfig",Rc(e,t))}function Wc(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(t){}}function Gc(e){return 1e3*Number(e)}function Vc(e){const[t,n,r]=e.split(".");if(void 0===t||void 0===n||void 0===r)return gc("JWT malformed, contained fewer than 3 sections"),null;try{const e=ks(n);return e?JSON.parse(e):(gc("Failed to decode base64 JWT payload"),null)}catch(i){return gc("Caught error parsing JWT payload as JSON",null===i||void 0===i?void 0:i.toString()),null}}async function $c(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])return t;try{return await t}catch(n){throw n instanceof Fs&&function(e){let{code:t}=e;return t==="auth/".concat("user-disabled")||t==="auth/".concat("user-token-expired")}(n)&&e.auth.currentUser===e&&await e.auth.signOut(),n}}class Kc{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){var t;if(e){const e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}{this.errorBackoff=3e4;const e=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,e)}}schedule(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isRunning)return;const t=this.getInterval(e);this.timerId=setTimeout((async()=>{await this.iteration()}),t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){return void((null===e||void 0===e?void 0:e.code)==="auth/".concat("network-request-failed")&&this.schedule(!0))}this.schedule()}}class Yc{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=Wc(this.lastLoginAt),this.creationTime=Wc(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function Zc(e){var t;const n=e.auth,r=await e.getIdToken(),i=await $c(e,async function(e,t){return Nc(e,"POST","/v1/accounts:lookup",t)}(n,{idToken:r}));wc(null===i||void 0===i?void 0:i.users.length,n,"internal-error");const o=i.users[0];e._notifyReloadListener(o);const a=(null===(t=o.providerUserInfo)||void 0===t?void 0:t.length)?o.providerUserInfo.map((e=>{var{providerId:t}=e,n=dc(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}})):[];const s=function(e,t){const n=e.filter((e=>!t.some((t=>t.providerId===e.providerId))));return[...n,...t]}(e.providerData,a),l=e.isAnonymous,c=!(e.email&&o.passwordHash)&&!(null===s||void 0===s?void 0:s.length),u=!!l&&c,d={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:s,metadata:new Yc(o.createdAt,o.lastLoginAt),isAnonymous:u};Object.assign(e,d)}class Jc{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){wc(e.idToken,"internal-error"),wc("undefined"!==typeof e.idToken,"internal-error"),wc("undefined"!==typeof e.refreshToken,"internal-error");const t="expiresIn"in e&&"undefined"!==typeof e.expiresIn?Number(e.expiresIn):function(e){const t=Vc(e);return wc(t,"internal-error"),wc("undefined"!==typeof t.exp,"internal-error"),wc("undefined"!==typeof t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}async getToken(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return wc(!this.accessToken||this.refreshToken,e,"user-token-expired"),t||!this.accessToken||this.isExpired?this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null:this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){const{accessToken:n,refreshToken:r,expiresIn:i}=await async function(e,t){const n=await Dc(e,{},(async()=>{const n=Xs({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:r,apiKey:i}=e.config,o=Bc(e,r,"/v1/token","key=".concat(i)),a=await e._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",Pc.fetch()(o,{method:"POST",headers:a,body:n})}));return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}(e,t);this.updateTokensAndExpiration(n,r,Number(i))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){const{refreshToken:n,accessToken:r,expirationTime:i}=t,o=new Jc;return n&&(wc("string"===typeof n,"internal-error",{appName:e}),o.refreshToken=n),r&&(wc("string"===typeof r,"internal-error",{appName:e}),o.accessToken=r),i&&(wc("number"===typeof i,"internal-error",{appName:e}),o.expirationTime=i),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Jc,this.toJSON())}_performRefresh(){return Ec("not implemented")}}function Xc(e,t){wc("string"===typeof e||"undefined"===typeof e,"internal-error",{appName:t})}class eu{constructor(e){var{uid:t,auth:n,stsTokenManager:r}=e,i=dc(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Kc(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new Yc(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){const t=await $c(this,this.stsTokenManager.getToken(this.auth,e));return wc(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=sl(e),r=await n.getIdToken(t),i=Vc(r);wc(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const o="object"===typeof i.firebase?i.firebase:void 0,a=null===o||void 0===o?void 0:o.sign_in_provider;return{claims:i,token:r,authTime:Wc(Gc(i.auth_time)),issuedAtTime:Wc(Gc(i.iat)),expirationTime:Wc(Gc(i.exp)),signInProvider:a||null,signInSecondFactor:(null===o||void 0===o?void 0:o.sign_in_second_factor)||null}}(this,e)}reload(){return async function(e){const t=sl(e);await Zc(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}(this)}_assign(e){this!==e&&(wc(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map((e=>Object.assign({},e))),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new eu(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){wc(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await Zc(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){const e=await this.getIdToken();return await $c(this,async function(e,t){return Nc(e,"POST","/v1/accounts:delete",t)}(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map((e=>Object.assign({},e))),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var n,r,i,o,a,s,l,c;const u=null!==(n=t.displayName)&&void 0!==n?n:void 0,d=null!==(r=t.email)&&void 0!==r?r:void 0,p=null!==(i=t.phoneNumber)&&void 0!==i?i:void 0,h=null!==(o=t.photoURL)&&void 0!==o?o:void 0,f=null!==(a=t.tenantId)&&void 0!==a?a:void 0,m=null!==(s=t._redirectEventId)&&void 0!==s?s:void 0,g=null!==(l=t.createdAt)&&void 0!==l?l:void 0,v=null!==(c=t.lastLoginAt)&&void 0!==c?c:void 0,{uid:b,emailVerified:y,isAnonymous:_,providerData:x,stsTokenManager:w}=t;wc(b&&w,e,"internal-error");const E=Jc.fromJSON(this.name,w);wc("string"===typeof b,e,"internal-error"),Xc(u,e.name),Xc(d,e.name),wc("boolean"===typeof y,e,"internal-error"),wc("boolean"===typeof _,e,"internal-error"),Xc(p,e.name),Xc(h,e.name),Xc(f,e.name),Xc(m,e.name),Xc(g,e.name),Xc(v,e.name);const T=new eu({uid:b,auth:e,email:d,emailVerified:y,displayName:u,isAnonymous:_,photoURL:h,phoneNumber:p,tenantId:f,stsTokenManager:E,createdAt:g,lastLoginAt:v});return x&&Array.isArray(x)&&(T.providerData=x.map((e=>Object.assign({},e)))),m&&(T._redirectEventId=m),T}static async _fromIdTokenResponse(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=new Jc;r.updateFromServerResponse(t);const i=new eu({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await Zc(i),i}}const tu=new Map;function nu(e){Tc(e instanceof Function,"Expected a class definition");let t=tu.get(e);return t?(Tc(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,tu.set(e,t),t)}class ru{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){const t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}ru.type="NONE";const iu=ru;function ou(e,t,n){return"firebase".concat(":",e,":").concat(t,":").concat(n)}class au{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const{config:r,name:i}=this.auth;this.fullUserKey=ou(this.userKey,r.apiKey,i),this.fullPersistenceKey=ou("persistence",r.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);return e?eu._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const t=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=e,t?this.setCurrentUser(t):void 0}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"authUser";if(!t.length)return new au(nu(iu),e,n);const r=(await Promise.all(t.map((async e=>{if(await e._isAvailable())return e})))).filter((e=>e));let i=r[0]||nu(iu);const o=ou(n,e.config.apiKey,e.name);let a=null;for(const c of t)try{const t=await c._get(o);if(t){const n=eu._fromJSON(e,t);c!==i&&(a=n),i=c;break}}catch(l){}const s=r.filter((e=>e._shouldAllowMigration));return i._shouldAllowMigration&&s.length?(i=s[0],a&&await i._set(o,a.toJSON()),await Promise.all(t.map((async e=>{if(e!==i)try{await e._remove(o)}catch(l){}}))),new au(i,e,n)):new au(i,e,n)}}function su(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(du(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(lu(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(hu(t))return"Blackberry";if(fu(t))return"Webos";if(cu(t))return"Safari";if((t.includes("chrome/")||uu(t))&&!t.includes("edge/"))return"Chrome";if(pu(t))return"Android";{const t=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=e.match(t);if(2===(null===n||void 0===n?void 0:n.length))return n[1]}return"Other"}function lu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms();return/firefox\//i.test(e)}function cu(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms()).toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function uu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms();return/crios\//i.test(e)}function du(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms();return/iemobile/i.test(e)}function pu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms();return/android/i.test(e)}function hu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms();return/blackberry/i.test(e)}function fu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms();return/webos/i.test(e)}function mu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms();return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function gu(){return function(){const e=Ms();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}()&&10===document.documentMode}function vu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms();return mu(e)||pu(e)||fu(e)||hu(e)||/windows phone/i.test(e)||du(e)}function bu(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];switch(e){case"Browser":t=su(Ms());break;case"Worker":t="".concat(su(Ms()),"-").concat(e);break;default:t=e}const r=n.length?n.join(","):"FirebaseCore-web";return"".concat(t,"/","JsCore","/").concat(Kl,"/").concat(r)}class yu{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const n=t=>new Promise(((n,r)=>{try{n(e(t))}catch(i){r(i)}}));n.onAbort=t,this.queue.push(n);const r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const t=[];try{for(const n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(n){t.reverse();for(const e of t)try{e()}catch(r){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null===n||void 0===n?void 0:n.message})}}}class _u{constructor(e){var t,n,r,i;const o=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(t=o.minPasswordLength)&&void 0!==t?t:6,o.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=o.maxPasswordLength),void 0!==o.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=o.containsLowercaseCharacter),void 0!==o.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=o.containsUppercaseCharacter),void 0!==o.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=o.containsNumericCharacter),void 0!==o.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=o.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(r=null===(n=e.allowedNonAlphanumericCharacters)||void 0===n?void 0:n.join(""))&&void 0!==r?r:"",this.forceUpgradeOnSignin=null!==(i=e.forceUpgradeOnSignin)&&void 0!==i&&i,this.schemaVersion=e.schemaVersion}validatePassword(e){var t,n,r,i,o,a;const s={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,s),this.validatePasswordCharacterOptions(e,s),s.isValid&&(s.isValid=null===(t=s.meetsMinPasswordLength)||void 0===t||t),s.isValid&&(s.isValid=null===(n=s.meetsMaxPasswordLength)||void 0===n||n),s.isValid&&(s.isValid=null===(r=s.containsLowercaseLetter)||void 0===r||r),s.isValid&&(s.isValid=null===(i=s.containsUppercaseLetter)||void 0===i||i),s.isValid&&(s.isValid=null===(o=s.containsNumericCharacter)||void 0===o||o),s.isValid&&(s.isValid=null===(a=s.containsNonAlphanumericCharacter)||void 0===a||a),s}validatePasswordLengthOptions(e,t){const n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),r&&(t.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,t){let n;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let r=0;r="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,t,n,r,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}class xu{constructor(e,t,n,r){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Eu(this),this.idTokenSubscription=new Eu(this),this.beforeStateQueue=new yu(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=fc,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=nu(t)),this._initializationPromise=this.queue((async()=>{var n,r;if(!this._deleted&&(this.persistenceManager=await au.create(this,e),!this._deleted)){if(null===(n=this._popupRedirectResolver)||void 0===n?void 0:n._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(i){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null===(r=this.currentUser)||void 0===r?void 0:r.uid)||null,this._deleted||(this._isInitialized=!0)}})),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();return this.currentUser||e?this.currentUser&&e&&this.currentUser.uid===e.uid?(this._currentUser._assign(e),void await this.currentUser.getIdToken()):void await this._updateCurrentUser(e,!0):void 0}async initializeCurrentUser(e){var t;const n=await this.assertedPersistence.getCurrentUser();let r=n,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const n=null===(t=this.redirectUser)||void 0===t?void 0:t._redirectEventId,o=null===r||void 0===r?void 0:r._redirectEventId,a=await this.tryRedirectSignIn(e);n&&n!==o||!(null===a||void 0===a?void 0:a.user)||(r=a.user,i=!0)}if(!r)return this.directlySetCurrentUser(null);if(!r._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(r)}catch(o){r=n,this._popupRedirectResolver._overrideRedirectResult(this,(()=>Promise.reject(o)))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return wc(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(n){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await Zc(e)}catch(t){if((null===t||void 0===t?void 0:t.code)!=="auth/".concat("network-request-failed"))return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"===typeof navigator)return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}async updateCurrentUser(e){const t=e?sl(e):null;return t&&wc(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._deleted)return e&&wc(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue((async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()}))}async signOut(){return await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0)}setPersistence(e){return this.queue((async()=>{await this.assertedPersistence.setPersistence(nu(e))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await async function(e){return Nc(e,"GET","/v2/passwordPolicy",Rc(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}(this),t=new _u(e);null===this.tenantId?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new zs("auth","Firebase",e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}authStateReady(){return new Promise(((e,t)=>{if(this.currentUser)e();else{const n=this.onAuthStateChanged((()=>{n(),e()}),t)}}))}async revokeAccessToken(e){if(this.currentUser){const t={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:await this.currentUser.getIdToken()};null!=this.tenantId&&(t.tenantId=this.tenantId),await async function(e,t){return Nc(e,"POST","/v2/accounts:revokeToken",Rc(e,t))}(this,t)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}async _setRedirectUser(e,t){const n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&nu(e)||this._popupRedirectResolver;wc(t,this,"argument-error"),this.redirectPersistenceManager=await au.create(this,[nu(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,n;return this._isInitialized&&await this.queue((async()=>{})),(null===(t=this._currentUser)||void 0===t?void 0:t._redirectEventId)===e?this._currentUser:(null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue((async()=>this.directlySetCurrentUser(e)))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return"".concat(this.config.authDomain,":").concat(this.config.apiKey,":").concat(this.name)}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const n=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};const i="function"===typeof t?t:t.next.bind(t);let o=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(wc(a,this,"internal-error"),a.then((()=>{o||i(this.currentUser)})),"function"===typeof t){const i=e.addObserver(t,n,r);return()=>{o=!0,i()}}{const n=e.addObserver(t);return()=>{o=!0,n()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return wc(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=bu(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const n=await(null===(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getHeartbeatsHeader());n&&(t["X-Firebase-Client"]=n);const r=await this._getAppCheckToken();return r&&(t["X-Firebase-AppCheck"]=r),t}async _getAppCheckToken(){var e;const t=await(null===(e=this.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getToken());return(null===t||void 0===t?void 0:t.error)&&function(e){if(mc.logLevel<=hl.WARN){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rthis.observer=e))}get next(){return wc(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let Tu={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Cu(e){return Tu.loadJS(e)}function ku(e){return"__".concat(e).concat(Math.floor(1e6*Math.random()))}class Su{constructor(e){this.type="recaptcha-enterprise",this.auth=wu(e)}async verify(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"verify",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(t,n,r){const i=window.grecaptcha;zc(i)?i.enterprise.ready((()=>{i.enterprise.execute(t,{action:e}).then((e=>{n(e)})).catch((()=>{n("NO_RECAPTCHA")}))})):r(Error("No reCAPTCHA enterprise script loaded."))}return new Promise(((e,r)=>{(async function(e){if(!t){if(null==e.tenantId&&null!=e._agentRecaptchaConfig)return e._agentRecaptchaConfig.siteKey;if(null!=e.tenantId&&void 0!==e._tenantRecaptchaConfigs[e.tenantId])return e._tenantRecaptchaConfigs[e.tenantId].siteKey}return new Promise((async(t,n)=>{Hc(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then((r=>{if(void 0!==r.recaptchaKey){const n=new qc(r);return null==e.tenantId?e._agentRecaptchaConfig=n:e._tenantRecaptchaConfigs[e.tenantId]=n,t(n.siteKey)}n(new Error("recaptcha Enterprise site key undefined"))})).catch((e=>{n(e)}))}))})(this.auth).then((i=>{if(!t&&zc(window.grecaptcha))n(i,e,r);else{if("undefined"===typeof window)return void r(new Error("RecaptchaVerifier is only supported in browser"));let t=Tu.recaptchaEnterpriseScript;0!==t.length&&(t+=i),Cu(t).then((()=>{n(i,e,r)})).catch((e=>{r(e)}))}})).catch((e=>{r(e)}))}))}}async function Ou(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=new Su(e);let o;try{o=await i.verify(n)}catch(gh){o=await i.verify(n,!0)}const a=Object.assign({},t);return r?Object.assign(a,{captchaResp:o}):Object.assign(a,{captchaResponse:o}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}async function Au(e,t,n,r){var i;if(null===(i=e._getRecaptchaConfig())||void 0===i?void 0:i.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const i=await Ou(e,t,n,"getOobCode"===n);return r(e,i)}return r(e,t).catch((async i=>{if(i.code==="auth/".concat("missing-recaptcha-token")){console.log("".concat(n," is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow."));const i=await Ou(e,t,n,"getOobCode"===n);return r(e,i)}return Promise.reject(i)}))}function ju(e,t,n){const r=wu(e);wc(r._canInitEmulator,r,"emulator-config-failed"),wc(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const i=!!(null===n||void 0===n?void 0:n.disableWarnings),o=Pu(t),{host:a,port:s}=function(e){const t=Pu(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const e=i[1];return{host:e,port:Iu(r.substr(e.length+1))}}{const[e,t]=r.split(":");return{host:e,port:Iu(t)}}}(t),l=null===s?"":":".concat(s);r.config.emulator={url:"".concat(o,"//").concat(a).concat(l,"/")},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:a,port:s,protocol:o.replace(":",""),options:Object.freeze({disableWarnings:i})}),i||function(){function e(){const e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!==typeof console&&"function"===typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials.");"undefined"!==typeof window&&"undefined"!==typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}()}function Pu(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function Iu(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}class Lu{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return Ec("not implemented")}_getIdTokenResponse(e){return Ec("not implemented")}_linkToIdToken(e,t){return Ec("not implemented")}_getReauthenticationResolver(e){return Ec("not implemented")}}async function Ru(e,t){return Nc(e,"POST","/v1/accounts:signUp",t)}async function Nu(e,t){return Mc(e,"POST","/v1/accounts:signInWithPassword",Rc(e,t))}class Du extends Lu{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;super("password",n),this._email=e,this._password=t,this._tenantId=r}static _fromEmailAndPassword(e,t){return new Du(e,t,"password")}static _fromEmailAndCode(e,t){return new Du(e,t,"emailLink",arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e;if((null===t||void 0===t?void 0:t.email)&&(null===t||void 0===t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return Au(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",Nu);case"emailLink":return async function(e,t){return Mc(e,"POST","/v1/accounts:signInWithEmailLink",Rc(e,t))}(e,{email:this._email,oobCode:this._password});default:vc(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return Au(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Ru);case"emailLink":return async function(e,t){return Mc(e,"POST","/v1/accounts:signInWithEmailLink",Rc(e,t))}(e,{idToken:t,email:this._email,oobCode:this._password});default:vc(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}async function Mu(e,t){return Mc(e,"POST","/v1/accounts:signInWithIdp",Rc(e,t))}class Bu extends Lu{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new Bu(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):vc("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r}=t,i=dc(t,["providerId","signInMethod"]);if(!n||!r)return null;const o=new Bu(n,r);return o.idToken=i.idToken||void 0,o.accessToken=i.accessToken||void 0,o.secret=i.secret,o.nonce=i.nonce,o.pendingToken=i.pendingToken||null,o}_getIdTokenResponse(e){return Mu(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,Mu(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Mu(e,t)}buildRequest(){const e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=Xs(t)}return e}}const Qu={USER_NOT_FOUND:"user-not-found"};class Uu extends Lu{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new Uu({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new Uu({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return async function(e,t){return Mc(e,"POST","/v1/accounts:signInWithPhoneNumber",Rc(e,t))}(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return async function(e,t){const n=await Mc(e,"POST","/v1/accounts:signInWithPhoneNumber",Rc(e,t));if(n.temporaryProof)throw Fc(e,"account-exists-with-different-credential",n);return n}(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return async function(e,t){return Mc(e,"POST","/v1/accounts:signInWithPhoneNumber",Rc(e,Object.assign(Object.assign({},t),{operation:"REAUTH"})),Qu)}(e,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:r}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:r}}toJSON(){const e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"===typeof e&&(e=JSON.parse(e));const{verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}=e;return n||t||r||i?new Uu({verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}):null}}class Fu{constructor(e){var t,n,r,i,o,a;const s=el(tl(e)),l=null!==(t=s.apiKey)&&void 0!==t?t:null,c=null!==(n=s.oobCode)&&void 0!==n?n:null,u=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(r=s.mode)&&void 0!==r?r:null);wc(l&&c&&u,"argument-error"),this.apiKey=l,this.operation=u,this.code=c,this.continueUrl=null!==(i=s.continueUrl)&&void 0!==i?i:null,this.languageCode=null!==(o=s.languageCode)&&void 0!==o?o:null,this.tenantId=null!==(a=s.tenantId)&&void 0!==a?a:null}static parseLink(e){const t=function(e){const t=el(tl(e)).link,n=t?el(tl(t)).deep_link_id:null,r=el(tl(e)).deep_link_id;return(r?el(tl(r)).link:null)||r||n||t||e}(e);try{return new Fu(t)}catch(n){return null}}}class zu{constructor(){this.providerId=zu.PROVIDER_ID}static credential(e,t){return Du._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){const n=Fu.parseLink(t);return wc(n,"argument-error"),Du._fromEmailAndCode(e,n.code,n.tenantId)}}zu.PROVIDER_ID="password",zu.EMAIL_PASSWORD_SIGN_IN_METHOD="password",zu.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class qu{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}class Hu extends qu{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class Wu extends Hu{constructor(){super("facebook.com")}static credential(e){return Bu._fromParams({providerId:Wu.PROVIDER_ID,signInMethod:Wu.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Wu.credentialFromTaggedObject(e)}static credentialFromError(e){return Wu.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return Wu.credential(t.oauthAccessToken)}catch(n){return null}}}Wu.FACEBOOK_SIGN_IN_METHOD="facebook.com",Wu.PROVIDER_ID="facebook.com";class Gu extends Hu{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return Bu._fromParams({providerId:Gu.PROVIDER_ID,signInMethod:Gu.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return Gu.credentialFromTaggedObject(e)}static credentialFromError(e){return Gu.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r}=t;if(!n&&!r)return null;try{return Gu.credential(n,r)}catch(i){return null}}}Gu.GOOGLE_SIGN_IN_METHOD="google.com",Gu.PROVIDER_ID="google.com";class Vu extends Hu{constructor(){super("github.com")}static credential(e){return Bu._fromParams({providerId:Vu.PROVIDER_ID,signInMethod:Vu.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Vu.credentialFromTaggedObject(e)}static credentialFromError(e){return Vu.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return Vu.credential(t.oauthAccessToken)}catch(n){return null}}}Vu.GITHUB_SIGN_IN_METHOD="github.com",Vu.PROVIDER_ID="github.com";class $u extends Hu{constructor(){super("twitter.com")}static credential(e,t){return Bu._fromParams({providerId:$u.PROVIDER_ID,signInMethod:$u.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return $u.credentialFromTaggedObject(e)}static credentialFromError(e){return $u.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return $u.credential(n,r)}catch(i){return null}}}$u.TWITTER_SIGN_IN_METHOD="twitter.com",$u.PROVIDER_ID="twitter.com";class Ku{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=await eu._fromIdTokenResponse(e,n,r),o=Yu(n);return new Ku({user:i,providerId:o,_tokenResponse:n,operationType:t})}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,!0);const r=Yu(n);return new Ku({user:e,providerId:r,_tokenResponse:n,operationType:t})}}function Yu(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}class Zu extends Fs{constructor(e,t,n,r){var i;super(t.code,t.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,Zu.prototype),this.customData={appName:e.name,tenantId:null!==(i=e.tenantId)&&void 0!==i?i:void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,r){return new Zu(e,t,n,r)}}function Ju(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch((n=>{if(n.code==="auth/".concat("multi-factor-auth-required"))throw Zu._fromErrorAndOperation(e,n,t,r);throw n}))}async function Xu(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=await $c(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return Ku._forOperation(e,"link",r)}async function ed(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{auth:r}=e,i="reauthenticate";try{const o=await $c(e,Ju(r,i,t,e),n);wc(o.idToken,r,"internal-error");const a=Vc(o.idToken);wc(a,r,"internal-error");const{sub:s}=a;return wc(e.uid===s,r,"user-mismatch"),Ku._forOperation(e,i,o)}catch(o){throw(null===o||void 0===o?void 0:o.code)==="auth/".concat("user-not-found")&&vc(r,"user-mismatch"),o}}async function td(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r="signIn",i=await Ju(e,r,t),o=await Ku._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(o.user),o}function nd(e,t,n,r){return sl(e).onAuthStateChanged(t,n,r)}new WeakMap;const rd="__sak";class id{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(rd,"1"),this.storage.removeItem(rd),Promise.resolve(!0)):Promise.resolve(!1)}catch(e){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){const t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}class od extends id{constructor(){super((()=>window.localStorage),"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function(){const e=Ms();return cu(e)||mu(e)}()&&function(){try{return!(!window||window===window.top)}catch(e){return!1}}(),this.fallbackToPolling=vu(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const t of Object.keys(this.listeners)){const n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}onStorageEvent(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.key)return void this.forAllChangedKeys(((e,t,n)=>{this.notifyListeners(e,n)}));const n=e.key;if(t?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const r=this.storage.getItem(n);if(e.newValue!==r)null!==e.newValue?this.storage.setItem(n,e.newValue):this.storage.removeItem(n);else if(this.localCache[n]===e.newValue&&!t)return}const r=()=>{const e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},i=this.storage.getItem(n);gu()&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,10):r()}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((()=>{this.forAllChangedKeys(((e,t,n)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:n}),!0)}))}),1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){const t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}od.type="LOCAL";const ad=od;class sd extends id{constructor(){super((()=>window.sessionStorage),"SESSION")}_addListener(e,t){}_removeListener(e,t){}}sd.type="SESSION";const ld=sd;class cd{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const t=this.receivers.find((t=>t.isListeningto(e)));if(t)return t;const n=new cd(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const t=e,{eventId:n,eventType:r,data:i}=t.data,o=this.handlersMap[r];if(!(null===o||void 0===o?void 0:o.size))return;t.ports[0].postMessage({status:"ack",eventId:n,eventType:r});const a=Array.from(o).map((async e=>e(t.origin,i))),s=await function(e){return Promise.all(e.map((async e=>{try{return{fulfilled:!0,value:await e}}catch(t){return{fulfilled:!1,reason:t}}})))}(a);t.ports[0].postMessage({status:"done",eventId:n,eventType:r,response:s})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}function ud(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n="";for(let r=0;r2&&void 0!==arguments[2]?arguments[2]:50;const r="undefined"!==typeof MessageChannel?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let i,o;return new Promise(((a,s)=>{const l=ud("",20);r.port1.start();const c=setTimeout((()=>{s(new Error("unsupported_event"))}),n);o={messageChannel:r,onMessage(e){const t=e;if(t.data.eventId===l)switch(t.data.status){case"ack":clearTimeout(c),i=setTimeout((()=>{s(new Error("timeout"))}),3e3);break;case"done":clearTimeout(i),a(t.data.response);break;default:clearTimeout(c),clearTimeout(i),s(new Error("invalid_response"))}}},this.handlers.add(o),r.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[r.port2])})).finally((()=>{o&&this.removeMessageHandler(o)}))}}function pd(){return window}function hd(){return"undefined"!==typeof pd().WorkerGlobalScope&&"function"===typeof pd().importScripts}const fd="firebaseLocalStorageDb",md="firebaseLocalStorage",gd="fbase_key";class vd{constructor(e){this.request=e}toPromise(){return new Promise(((e,t)=>{this.request.addEventListener("success",(()=>{e(this.request.result)})),this.request.addEventListener("error",(()=>{t(this.request.error)}))}))}}function bd(e,t){return e.transaction([md],t?"readwrite":"readonly").objectStore(md)}function yd(){const e=indexedDB.open(fd,1);return new Promise(((t,n)=>{e.addEventListener("error",(()=>{n(e.error)})),e.addEventListener("upgradeneeded",(()=>{const t=e.result;try{t.createObjectStore(md,{keyPath:gd})}catch(r){n(r)}})),e.addEventListener("success",(async()=>{const n=e.result;n.objectStoreNames.contains(md)?t(n):(n.close(),await function(){const e=indexedDB.deleteDatabase(fd);return new vd(e).toPromise()}(),t(await yd()))}))}))}async function _d(e,t,n){const r=bd(e,!0).put({[gd]:t,value:n});return new vd(r).toPromise()}function xd(e,t){const n=bd(e,!0).delete(t);return new vd(n).toPromise()}class wd{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then((()=>{}),(()=>{}))}async _openDb(){return this.db||(this.db=await yd()),this.db}async _withRetries(e){let t=0;for(;;)try{const t=await this._openDb();return await e(t)}catch(n){if(t++>3)throw n;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return hd()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=cd._getInstance(hd()?self:null),this.receiver._subscribe("keyChanged",(async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)}))),this.receiver._subscribe("ping",(async(e,t)=>["keyChanged"]))}async initializeSender(){var e,t;if(this.activeServiceWorker=await async function(){if(!(null===navigator||void 0===navigator?void 0:navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch(e){return null}}(),!this.activeServiceWorker)return;this.sender=new dd(this.activeServiceWorker);const n=await this.sender._send("ping",{},800);n&&(null===(e=n[0])||void 0===e?void 0:e.fulfilled)&&(null===(t=n[0])||void 0===t?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(this.sender&&this.activeServiceWorker&&function(){var e;return(null===(e=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===e?void 0:e.controller)||null}()===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(t){}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await yd();return await _d(e,rd,"1"),await xd(e,rd),!0}catch(e){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite((async()=>(await this._withRetries((n=>_d(n,e,t))),this.localCache[e]=t,this.notifyServiceWorker(e))))}async _get(e){const t=await this._withRetries((t=>async function(e,t){const n=bd(e,!1).get(t),r=await new vd(n).toPromise();return void 0===r?null:r.value}(t,e)));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite((async()=>(await this._withRetries((t=>xd(t,e))),delete this.localCache[e],this.notifyServiceWorker(e))))}async _poll(){const e=await this._withRetries((e=>{const t=bd(e,!1).getAll();return new vd(t).toPromise()}));if(!e)return[];if(0!==this.pendingWrites)return[];const t=[],n=new Set;if(0!==e.length)for(const{fbase_key:r,value:i}of e)n.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(i)&&(this.notifyListeners(r,i),t.push(r));for(const r of Object.keys(this.localCache))this.localCache[r]&&!n.has(r)&&(this.notifyListeners(r,null),t.push(r));return t}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((async()=>this._poll()),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}wd.type="LOCAL";const Ed=wd;ku("rcb"),new Ac(3e4,6e4);const Td="recaptcha";async function Cd(e,t,n){var r;const i=await n.verify();try{let o;if(wc("string"===typeof i,e,"argument-error"),wc(n.type===Td,e,"argument-error"),o="string"===typeof t?{phoneNumber:t}:t,"session"in o){const t=o.session;if("phoneNumber"in o){wc("enroll"===t.type,e,"internal-error");const n=await function(e,t){return Nc(e,"POST","/v2/accounts/mfaEnrollment:start",Rc(e,t))}(e,{idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:o.phoneNumber,recaptchaToken:i}});return n.phoneSessionInfo.sessionInfo}{wc("signin"===t.type,e,"internal-error");const n=(null===(r=o.multiFactorHint)||void 0===r?void 0:r.uid)||o.multiFactorUid;wc(n,e,"missing-multi-factor-info");const a=await function(e,t){return Nc(e,"POST","/v2/accounts/mfaSignIn:start",Rc(e,t))}(e,{mfaPendingCredential:t.credential,mfaEnrollmentId:n,phoneSignInInfo:{recaptchaToken:i}});return a.phoneResponseInfo.sessionInfo}}{const{sessionInfo:t}=await async function(e,t){return Nc(e,"POST","/v1/accounts:sendVerificationCode",Rc(e,t))}(e,{phoneNumber:o.phoneNumber,recaptchaToken:i});return t}}finally{n._reset()}}class kd{constructor(e){this.providerId=kd.PROVIDER_ID,this.auth=wu(e)}verifyPhoneNumber(e,t){return Cd(this.auth,e,sl(t))}static credential(e,t){return Uu._fromVerification(e,t)}static credentialFromResult(e){const t=e;return kd.credentialFromTaggedObject(t)}static credentialFromError(e){return kd.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{phoneNumber:n,temporaryProof:r}=t;return n&&r?Uu._fromTokenResponse(n,r):null}}function Sd(e,t){return t?nu(t):(wc(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}kd.PROVIDER_ID="phone",kd.PHONE_SIGN_IN_METHOD="phone";class Od extends Lu{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Mu(e,this._buildIdpRequest())}_linkToIdToken(e,t){return Mu(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return Mu(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function Ad(e){return td(e.auth,new Od(e),e.bypassAuthState)}function jd(e){const{auth:t,user:n}=e;return wc(n,t,"internal-error"),ed(n,new Od(e),e.bypassAuthState)}async function Pd(e){const{auth:t,user:n}=e;return wc(n,t,"internal-error"),Xu(n,new Od(e),e.bypassAuthState)}class Id{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise((async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(n){this.reject(n)}}))}async onAuthEvent(e){const{urlResponse:t,sessionId:n,postBody:r,tenantId:i,error:o,type:a}=e;if(o)return void this.reject(o);const s={auth:this.auth,requestUri:t,sessionId:n,tenantId:i||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(s))}catch(l){this.reject(l)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return Ad;case"linkViaPopup":case"linkViaRedirect":return Pd;case"reauthViaPopup":case"reauthViaRedirect":return jd;default:vc(this.auth,"internal-error")}}resolve(e){Tc(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){Tc(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const Ld=new Ac(2e3,1e4);class Rd extends Id{constructor(e,t,n,r,i){super(e,t,r,i),this.provider=n,this.authWindow=null,this.pollId=null,Rd.currentPopupAction&&Rd.currentPopupAction.cancel(),Rd.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return wc(e,this.auth,"internal-error"),e}async onExecution(){Tc(1===this.filter.length,"Popup operations only handle one event");const e=ud();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch((e=>{this.reject(e)})),this.resolver._isIframeWebStorageSupported(this.auth,(e=>{e||this.reject(bc(this.auth,"web-storage-unsupported"))})),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(bc(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Rd.currentPopupAction=null}pollUserCancellation(){const e=()=>{var t,n;(null===(n=null===(t=this.authWindow)||void 0===t?void 0:t.window)||void 0===n?void 0:n.closed)?this.pollId=window.setTimeout((()=>{this.pollId=null,this.reject(bc(this.auth,"popup-closed-by-user"))}),8e3):this.pollId=window.setTimeout(e,Ld.get())};e()}}Rd.currentPopupAction=null;const Nd="pendingRedirect",Dd=new Map;class Md extends Id{constructor(e,t){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,arguments.length>2&&void 0!==arguments[2]&&arguments[2]),this.eventId=null}async execute(){let e=Dd.get(this.auth._key());if(!e){try{const t=await async function(e,t){const n=Ud(t),r=Qd(e);if(!await r._isAvailable())return!1;const i="true"===await r._get(n);return await r._remove(n),i}(this.resolver,this.auth),n=t?await super.execute():null;e=()=>Promise.resolve(n)}catch(t){e=()=>Promise.reject(t)}Dd.set(this.auth._key(),e)}return this.bypassAuthState||Dd.set(this.auth._key(),(()=>Promise.resolve(null))),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}function Bd(e,t){Dd.set(e._key(),t)}function Qd(e){return nu(e._redirectPersistence)}function Ud(e){return ou(Nd,e.config.apiKey,e.name)}async function Fd(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=wu(e),i=Sd(r,t),o=new Md(r,i,n),a=await o.execute();return a&&!n&&(delete a.user._redirectEventId,await r._persistUserIfCurrent(a.user),await r._setRedirectUser(null,t)),a}class zd{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach((n=>{this.isEventForConsumer(e,n)&&(t=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))})),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Hd(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var n;if(e.error&&!Hd(e)){const r=(null===(n=e.error.code)||void 0===n?void 0:n.split("auth/")[1])||"internal-error";t.onError(bc(this.auth,r))}else t.onAuthEvent(e)}isEventForConsumer(e,t){const n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(qd(e))}saveEventToCache(e){this.cachedEventUids.add(qd(e)),this.lastProcessedEventTime=Date.now()}}function qd(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter((e=>e)).join("-")}function Hd(e){let{type:t,error:n}=e;return"unknown"===t&&(null===n||void 0===n?void 0:n.code)==="auth/".concat("no-auth-event")}const Wd=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Gd=/^https?/;async function Vd(e){if(e.config.emulator)return;const{authorizedDomains:t}=await async function(e){return Nc(e,"GET","/v1/projects",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}(e);for(const r of t)try{if($d(r))return}catch(n){}vc(e,"unauthorized-domain")}function $d(e){const t=Cc(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const i=new URL(e);return""===i.hostname&&""===r?"chrome-extension:"===n&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===n&&i.hostname===r}if(!Gd.test(n))return!1;if(Wd.test(e))return r===e;const i=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}const Kd=new Ac(3e4,6e4);function Yd(){const e=pd().___jsl;if(null===e||void 0===e?void 0:e.H)for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n{var r,i,o;function a(){Yd(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{Yd(),n(bc(e,"network-request-failed"))},timeout:Kd.get()})}if(null===(i=null===(r=pd().gapi)||void 0===r?void 0:r.iframes)||void 0===i?void 0:i.Iframe)t(gapi.iframes.getContext());else{if(!(null===(o=pd().gapi)||void 0===o?void 0:o.load)){const t=ku("iframefcb");return pd()[t]=()=>{gapi.load?a():n(bc(e,"network-request-failed"))},Cu("".concat(Tu.gapiScript,"?onload=").concat(t)).catch((e=>n(e)))}a()}})).catch((e=>{throw Jd=null,e}))}let Jd=null;const Xd=new Ac(5e3,15e3),ep="__/auth/iframe",tp="emulator/auth/iframe",np={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},rp=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function ip(e){const t=e.config;wc(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?jc(t,tp):"https://".concat(e.config.authDomain,"/").concat(ep),r={apiKey:t.apiKey,appName:e.name,v:Kl},i=rp.get(e.config.apiHost);i&&(r.eid=i);const o=e._getFrameworks();return o.length&&(r.fw=o.join(",")),"".concat(n,"?").concat(Xs(r).slice(1))}async function op(e){const t=await function(e){return Jd=Jd||Zd(e),Jd}(e),n=pd().gapi;return wc(n,e,"internal-error"),t.open({where:document.body,url:ip(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:np,dontclear:!0},(t=>new Promise((async(n,r)=>{await t.restyle({setHideOnLeave:!1});const i=bc(e,"network-request-failed"),o=pd().setTimeout((()=>{r(i)}),Xd.get());function a(){pd().clearTimeout(o),n(t)}t.ping(a).then(a,(()=>{r(i)}))}))))}const ap={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class sp{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}function lp(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:600;const o=Math.max((window.screen.availHeight-i)/2,0).toString(),a=Math.max((window.screen.availWidth-r)/2,0).toString();let s="";const l=Object.assign(Object.assign({},ap),{width:r.toString(),height:i.toString(),top:o,left:a}),c=Ms().toLowerCase();n&&(s=uu(c)?"_blank":n),lu(c)&&(t=t||"http://localhost",l.scrollbars="yes");const u=Object.entries(l).reduce(((e,t)=>{let[n,r]=t;return"".concat(e).concat(n,"=").concat(r,",")}),"");if(function(){var e;return mu(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms())&&!!(null===(e=window.navigator)||void 0===e?void 0:e.standalone)}(c)&&"_self"!==s)return function(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}(t||"",s),new sp(null);const d=window.open(t||"",s,u);wc(d,e,"popup-blocked");try{d.focus()}catch(p){}return new sp(d)}const cp="__/auth/handler",up="emulator/auth/handler",dp=encodeURIComponent("fac");async function pp(e,t,n,r,i,o){wc(e.config.authDomain,e,"auth-domain-config-required"),wc(e.config.apiKey,e,"invalid-api-key");const a={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:Kl,eventId:i};if(t instanceof qu){t.setDefaultLanguage(e.languageCode),a.providerId=t.providerId||"",Ks(t.getCustomParameters())||(a.customParameters=JSON.stringify(t.getCustomParameters()));for(const[e,t]of Object.entries(o||{}))a[e]=t}if(t instanceof Hu){const e=t.getScopes().filter((e=>""!==e));e.length>0&&(a.scopes=e.join(","))}e.tenantId&&(a.tid=e.tenantId);const s=a;for(const u of Object.keys(s))void 0===s[u]&&delete s[u];const l=await e._getAppCheckToken(),c=l?"#".concat(dp,"=").concat(encodeURIComponent(l)):"";return"".concat(function(e){let{config:t}=e;if(!t.emulator)return"https://".concat(t.authDomain,"/").concat(cp);return jc(t,up)}(e),"?").concat(Xs(s).slice(1)).concat(c)}const hp="webStorageSupport";const fp=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=ld,this._completeRedirectFn=Fd,this._overrideRedirectResult=Bd}async _openPopup(e,t,n,r){var i;Tc(null===(i=this.eventManagers[e._key()])||void 0===i?void 0:i.manager,"_initialize() not called before _openPopup()");return lp(e,await pp(e,t,n,Cc(),r),ud())}async _openRedirect(e,t,n,r){await this._originValidation(e);return function(e){pd().location.href=e}(await pp(e,t,n,Cc(),r)),new Promise((()=>{}))}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(Tc(n,"If manager is not set, promise should be"),n)}const n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch((()=>{delete this.eventManagers[t]})),n}async initAndGetManager(e){const t=await op(e),n=new zd(e);return t.register("authEvent",(t=>{wc(null===t||void 0===t?void 0:t.authEvent,e,"invalid-auth-event");return{status:n.onEvent(t.authEvent)?"ACK":"ERROR"}}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(hp,{type:hp},(n=>{var r;const i=null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r[hp];void 0!==i&&t(!!i),vc(e,"internal-error")}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=Vd(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return vu()||cu()||mu()}};var mp="@firebase/auth",gp="1.6.0";class vp{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}async getToken(e){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;return{accessToken:await this.auth.currentUser.getIdToken(e)}}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged((t=>{e((null===t||void 0===t?void 0:t.stsTokenManager.accessToken)||null)}));this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){wc(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const bp=Ns("authIdTokenMaxAge")||300;let yp=null;function _p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl();const t=Gl(e,"auth");if(t.isInitialized())return t.getImmediate();const n=function(e,t){const n=Gl(e,"auth");if(n.isInitialized()){const e=n.getImmediate();if(Zs(n.getOptions(),null!==t&&void 0!==t?t:{}))return e;vc(e,"already-initialized")}return n.initialize({options:t})}(e,{popupRedirectResolver:fp,persistence:[Ed,ad,ld]}),r=Ns("authTokenSyncURL");if(r){const e=(i=r,async e=>{const t=e&&await e.getIdTokenResult(),n=t&&((new Date).getTime()-Date.parse(t.issuedAtTime))/1e3;if(n&&n>bp)return;const r=null===t||void 0===t?void 0:t.token;yp!==r&&(yp=r,await fetch(i,{method:r?"POST":"DELETE",headers:r?{Authorization:"Bearer ".concat(r)}:{}}))});!function(e,t,n){sl(e).beforeAuthStateChanged(t,n)}(n,e,(()=>e(n.currentUser))),function(e,t,n,r){sl(e).onIdTokenChanged(t,n,r)}(n,(t=>e(t)))}var i;const o=Is("auth");return o&&ju(n,"http://".concat(o)),n}var xp,wp;xp={loadJS:e=>new Promise(((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=e=>{const t=bc("internal-error");t.customData=e,n(t)},r.type="text/javascript",r.charset="UTF-8",function(){var e,t;return null!==(t=null===(e=document.getElementsByTagName("head"))||void 0===e?void 0:e[0])&&void 0!==t?t:document}().appendChild(r)})),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="},Tu=xp,wp="Browser",Wl(new ll("auth",((e,t)=>{let{options:n}=t;const r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),o=e.getProvider("app-check-internal"),{apiKey:a,authDomain:s}=r.options;wc(a&&!a.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:a,authDomain:s,clientPlatform:wp,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:bu(wp)},c=new xu(r,i,o,l);return function(e,t){const n=(null===t||void 0===t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(nu);(null===t||void 0===t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null===t||void 0===t?void 0:t.popupRedirectResolver)}(c,n),c}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback(((e,t,n)=>{e.getProvider("auth-internal").initialize()}))),Wl(new ll("auth-internal",(e=>(e=>new vp(e))(wu(e.getProvider("auth").getImmediate()))),"PRIVATE").setInstantiationMode("EXPLICIT")),Jl(mp,gp,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(wp)),Jl(mp,gp,"esm2017");Jl("firebase","10.8.0","app");const Ep={NODE_ENV:"production",PUBLIC_URL:"/metadata-entry-form",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_GOOGLE_CLOUD_API_KEY:"AIzaSyBz4kb3hJHXw0voYZgHZuAgmqGosxntMHM",REACT_APP_GOOGLE_CLOUD_API_KEY_DEV:"AIzaSyADkNENzpoqj3O7uGPsRA_4s1zQdbH708c"}.REACT_APP_DEV_DEPLOYMENT,Tp=Ep?{apiKey:"AIzaSyADkNENzpoqj3O7uGPsRA_4s1zQdbH708c",authDomain:"cioos-metadata-form-dev.firebaseapp.com",databaseURL:"https://cioos-metadata-form-dev-default-rtdb.firebaseio.com/",projectId:"cioos-metadata-form-dev",storageBucket:"cioos-metadata-form-dev.appspot.com",messagingSenderId:"392401521083",appId:"1:392401521083:web:45d1539f9d284f446d5c9e"}:{apiKey:"AIzaSyBz4kb3hJHXw0voYZgHZuAgmqGosxntMHM",authDomain:"cioos-metadata-form.firebaseapp.com",databaseURL:"https://cioos-metadata-form.firebaseio.com",projectId:"cioos-metadata-form",storageBucket:"cioos-metadata-form.appspot.com",messagingSenderId:"646114203434",appId:"1:646114203434:web:bccceadc5144270f98f053"};"localhost"===window.location.hostname&&Ep&&(Tp.databaseURL="http://localhost:9001?ns=cioos-metadata-form");const Cp=Yl(Tp),kp=new Gu;kp.setCustomParameters({promt:"select_account"});const Sp=_p(Cp),Op=()=>async function(e,t,n){const r=wu(e);_c(e,t,qu);const i=Sd(r,n);return new Rd(r,"signInViaPopup",t,i).executeNotNull()}(Sp,kp);var Ap=n(492);const jp=e=>t=>{let{children:n}=t;const{language:r}=mn();return r===e&&(0,Ap.jsx)(Ap.Fragment,{children:n})},Pp=jp("en"),Ip=jp("fr"),Lp=e=>{const{en:t,fr:n,children:r}=e,{language:i="en"}=mn();return t||n?t&&n?"en"===i?t:n:(console.error("Tag missing french or english!"),null):(Array.isArray(r)&&2!==r.length&&console.error(e,"Tag missing french or english!"),r)},Rp="type.googleapis.com/google.protobuf.Int64Value",Np="type.googleapis.com/google.protobuf.UInt64Value";function Dp(e,t){const n={};for(const r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}function Mp(e){if(null==e)return null;if(e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&isFinite(e))return e;if(!0===e||!1===e)return e;if("[object String]"===Object.prototype.toString.call(e))return e;if(e instanceof Date)return e.toISOString();if(Array.isArray(e))return e.map((e=>Mp(e)));if("function"===typeof e||"object"===typeof e)return Dp(e,(e=>Mp(e)));throw new Error("Data cannot be encoded in JSON: "+e)}function Bp(e){if(null==e)return e;if(e["@type"])switch(e["@type"]){case Rp:case Np:{const t=Number(e.value);if(isNaN(t))throw new Error("Data cannot be decoded from JSON: "+e);return t}default:throw new Error("Data cannot be decoded from JSON: "+e)}return Array.isArray(e)?e.map((e=>Bp(e))):"function"===typeof e||"object"===typeof e?Dp(e,(e=>Bp(e))):e}const Qp="functions",Up={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class Fp extends Fs{constructor(e,t,n){super("".concat(Qp,"/").concat(e),t||""),this.details=n}}class zp{constructor(e,t,n){this.auth=null,this.messaging=null,this.appCheck=null,this.auth=e.getImmediate({optional:!0}),this.messaging=t.getImmediate({optional:!0}),this.auth||e.get().then((e=>this.auth=e),(()=>{})),this.messaging||t.get().then((e=>this.messaging=e),(()=>{})),this.appCheck||n.get().then((e=>this.appCheck=e),(()=>{}))}async getAuthToken(){if(this.auth)try{const e=await this.auth.getToken();return null===e||void 0===e?void 0:e.accessToken}catch(e){return}}async getMessagingToken(){if(this.messaging&&"Notification"in self&&"granted"===Notification.permission)try{return await this.messaging.getToken()}catch(e){return}}async getAppCheckToken(e){if(this.appCheck){const t=e?await this.appCheck.getLimitedUseToken():await this.appCheck.getToken();return t.error?null:t.token}return null}async getContext(e){return{authToken:await this.getAuthToken(),messagingToken:await this.getMessagingToken(),appCheckToken:await this.getAppCheckToken(e)}}}const qp="us-central1";class Hp{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:qp,o=arguments.length>5?arguments[5]:void 0;this.app=e,this.fetchImpl=o,this.emulatorOrigin=null,this.contextProvider=new zp(t,n,r),this.cancelAllRequests=new Promise((e=>{this.deleteService=()=>Promise.resolve(e())}));try{const e=new URL(i);this.customDomain=e.origin,this.region=qp}catch(a){this.customDomain=null,this.region=i}}_delete(){return this.deleteService()}_url(e){const t=this.app.options.projectId;if(null!==this.emulatorOrigin){const n=this.emulatorOrigin;return"".concat(n,"/").concat(t,"/").concat(this.region,"/").concat(e)}return null!==this.customDomain?"".concat(this.customDomain,"/").concat(e):"https://".concat(this.region,"-").concat(t,".cloudfunctions.net/").concat(e)}}function Wp(e,t,n){return r=>function(e,t,n,r){const i=e._url(t);return Vp(e,i,n,r)}(e,t,r,n||{})}async function Gp(e,t,n,r){let i;n["Content-Type"]="application/json";try{i=await r(e,{method:"POST",body:JSON.stringify(t),headers:n})}catch(a){return{status:0,json:null}}let o=null;try{o=await i.json()}catch(a){}return{status:i.status,json:o}}async function Vp(e,t,n,r){const i={data:n=Mp(n)},o={},a=await e.contextProvider.getContext(r.limitedUseAppCheckTokens);a.authToken&&(o.Authorization="Bearer "+a.authToken),a.messagingToken&&(o["Firebase-Instance-ID-Token"]=a.messagingToken),null!==a.appCheckToken&&(o["X-Firebase-AppCheck"]=a.appCheckToken);const s=function(e){let t=null;return{promise:new Promise(((n,r)=>{t=setTimeout((()=>{r(new Fp("deadline-exceeded","deadline-exceeded"))}),e)})),cancel:()=>{t&&clearTimeout(t)}}}(r.timeout||7e4),l=await Promise.race([Gp(t,i,o,e.fetchImpl),s.promise,e.cancelAllRequests]);if(s.cancel(),!l)throw new Fp("cancelled","Firebase Functions instance was deleted.");const c=function(e,t){let n,r=function(e){if(e>=200&&e<300)return"ok";switch(e){case 0:case 500:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(e),i=r;try{const e=t&&t.error;if(e){const t=e.status;if("string"===typeof t){if(!Up[t])return new Fp("internal","internal");r=Up[t],i=t}const o=e.message;"string"===typeof o&&(i=o),n=e.details,void 0!==n&&(n=Bp(n))}}catch(o){}return"ok"===r?null:new Fp(r,i,n)}(l.status,l.json);if(c)throw c;if(!l.json)throw new Fp("internal","Response is not valid JSON object.");let u=l.json.data;if("undefined"===typeof u&&(u=l.json.result),"undefined"===typeof u)throw new Fp("internal","Response is missing data field.");return{data:Bp(u)}}const $p="@firebase/functions",Kp="0.11.1";function Yp(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qp;const n=Gl(sl(e),Qp).getImmediate({identifier:t}),r=Ls("functions");return r&&function(e,t,n){!function(e,t,n){e.emulatorOrigin="http://".concat(t,":").concat(n)}(sl(e),t,n)}(n,...r),n}function Zp(e,t,n){return Wp(sl(e),t,n)}!function(e,t){Wl(new ll(Qp,((t,n)=>{let{instanceIdentifier:r}=n;const i=t.getProvider("app").getImmediate(),o=t.getProvider("auth-internal"),a=t.getProvider("messaging-internal"),s=t.getProvider("app-check-internal");return new Hp(i,o,a,s,r,e)}),"PUBLIC").setMultipleInstances(!0)),Jl($p,Kp,t),Jl($p,Kp,"esm2017")}(fetch.bind(self));const Jp="@firebase/database",Xp="1.0.3";let eh="";function th(e){eh=e}class nh{constructor(e){this.domStorage_=e,this.prefix_="firebase:"}set(e,t){null==t?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),Ws(t))}get(e){const t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:Hs(t)}remove(e){this.domStorage_.removeItem(this.prefixedName_(e))}prefixedName_(e){return this.prefix_+e}toString(){return this.domStorage_.toString()}}class rh{constructor(){this.cache_={},this.isInMemoryStorage=!0}set(e,t){null==t?delete this.cache_[e]:this.cache_[e]=t}get(e){return Vs(this.cache_,e)?this.cache_[e]:null}remove(e){delete this.cache_[e]}}const ih=function(e){try{if("undefined"!==typeof window&&"undefined"!==typeof window[e]){const t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new nh(t)}}catch(t){}return new rh},oh=ih("localStorage"),ah=ih("sessionStorage"),sh=new bl("@firebase/database"),lh=function(){let e=1;return function(){return e++}}(),ch=function(e){const t=function(e){const t=[];let n=0;for(let r=0;r=55296&&i<=56319){const t=i-55296;r++,ys(r>6|192,t[n++]=63&i|128):i<65536?(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t}(e),n=new nl;n.update(t);const r=n.digest();return ws.encodeByteArray(r)},uh=function(){let e="";for(let t=0;tn?r.push(e.substring(i,n)):r.push(e.substring(i,i+t));return r};function Sh(e,t){for(const n in e)e.hasOwnProperty(n)&&t(n,e[n])}const Oh=function(e){ys(!yh(e),"Invalid JSON number");const t=1023;let n,r,i,o,a;0===e?(r=0,i=0,n=1/e===-1/0?1:0):(n=e<0,(e=Math.abs(e))>=Math.pow(2,-1022)?(o=Math.min(Math.floor(Math.log(e)/Math.LN2),t),r=o+t,i=Math.round(e*Math.pow(2,52-o)-Math.pow(2,52))):(r=0,i=Math.round(e/Math.pow(2,-1074))));const s=[];for(a=52;a;a-=1)s.push(i%2?1:0),i=Math.floor(i/2);for(a=11;a;a-=1)s.push(r%2?1:0),r=Math.floor(r/2);s.push(n?1:0),s.reverse();const l=s.join("");let c="";for(a=0;a<64;a+=8){let e=parseInt(l.substr(a,8),2).toString(16);1===e.length&&(e="0"+e),c+=e}return c.toLowerCase()};const Ah=new RegExp("^-?(0*)\\d{1,10}$"),jh=function(e){if(Ah.test(e)){const t=Number(e);if(t>=-2147483648&&t<=2147483647)return t}return null},Ph=function(e){try{e()}catch(t){setTimeout((()=>{const e=t.stack||"";throw bh("Exception was thrown by user callback.",e),t}),Math.floor(0))}},Ih=function(e,t){const n=setTimeout(e,t);return"number"===typeof n&&"undefined"!==typeof Deno&&Deno.unrefTimer?Deno.unrefTimer(n):"object"===typeof n&&n.unref&&n.unref(),n};class Lh{constructor(e,t){this.appName_=e,this.appCheckProvider=t,this.appCheck=null===t||void 0===t?void 0:t.getImmediate({optional:!0}),this.appCheck||null===t||void 0===t||t.get().then((e=>this.appCheck=e))}getToken(e){return this.appCheck?this.appCheck.getToken(e):new Promise(((t,n)=>{setTimeout((()=>{this.appCheck?this.getToken(e).then(t,n):t(null)}),0)}))}addTokenChangeListener(e){var t;null===(t=this.appCheckProvider)||void 0===t||t.get().then((t=>t.addTokenListener(e)))}notifyForInvalidToken(){bh('Provided AppCheck credentials for the app named "'.concat(this.appName_,'" ')+"are invalid. This usually indicates your app was not initialized correctly.")}}class Rh{constructor(e,t,n){this.appName_=e,this.firebaseOptions_=t,this.authProvider_=n,this.auth_=null,this.auth_=n.getImmediate({optional:!0}),this.auth_||n.onInit((e=>this.auth_=e))}getToken(e){return this.auth_?this.auth_.getToken(e).catch((e=>e&&"auth/token-not-initialized"===e.code?(fh("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(e))):new Promise(((t,n)=>{setTimeout((()=>{this.auth_?this.getToken(e).then(t,n):t(null)}),0)}))}addTokenChangeListener(e){this.auth_?this.auth_.addAuthTokenListener(e):this.authProvider_.get().then((t=>t.addAuthTokenListener(e)))}removeTokenChangeListener(e){this.authProvider_.get().then((t=>t.removeAuthTokenListener(e)))}notifyForInvalidToken(){let e='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.firebaseOptions_?e+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?e+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':e+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',bh(e)}}class Nh{constructor(e){this.accessToken=e}getToken(e){return Promise.resolve({accessToken:this.accessToken})}addTokenChangeListener(e){e(this.accessToken)}removeTokenChangeListener(e){}notifyForInvalidToken(){}}Nh.OWNER="owner";const Dh="5",Mh=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,Bh="ac",Qh="websocket",Uh="long_polling";class Fh{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];this.secure=t,this.namespace=n,this.webSocketOnly=r,this.nodeAdmin=i,this.persistenceKey=o,this.includeNamespaceInQueryParams=a,this.isUsingEmulator=s,this._host=e.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=oh.get("host:"+e)||this._host}isCacheableHost(){return"s-"===this.internalHost.substr(0,2)}isCustomHost(){return"firebaseio.com"!==this._domain&&"firebaseio-demo.com"!==this._domain}get host(){return this._host}set host(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&oh.set("host:"+this._host,this.internalHost))}toString(){let e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e}toURLString(){const e=this.secure?"https://":"http://",t=this.includeNamespaceInQueryParams?"?ns=".concat(this.namespace):"";return"".concat(e).concat(this.host,"/").concat(t)}}function zh(e,t,n){let r;if(ys("string"===typeof t,"typeof type must == string"),ys("object"===typeof n,"typeof params must == object"),t===Qh)r=(e.secure?"wss://":"ws://")+e.internalHost+"/.ws?";else{if(t!==Uh)throw new Error("Unknown connection type: "+t);r=(e.secure?"https://":"http://")+e.internalHost+"/.lp?"}(function(e){return e.host!==e.internalHost||e.isCustomHost()||e.includeNamespaceInQueryParams})(e)&&(n.ns=e.namespace);const i=[];return Sh(n,((e,t)=>{i.push(e+"="+t)})),r+i.join("&")}class qh{constructor(){this.counters_={}}incrementCounter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;Vs(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t}get(){return Ss(this.counters_)}}const Hh={},Wh={};function Gh(e){const t=e.toString();return Hh[t]||(Hh[t]=new qh),Hh[t]}class Vh{constructor(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}closeAfter(e,t){this.closeAfterResponse=e,this.onClose=t,this.closeAfterResponse{this.onMessage_(e[t])}));if(this.currentResponseNum===this.closeAfterResponse){this.onClose&&(this.onClose(),this.onClose=null);break}this.currentResponseNum++}}}const $h="start";class Kh{constructor(e,t,n,r,i,o,a){this.connId=e,this.repoInfo=t,this.applicationId=n,this.appCheckToken=r,this.authToken=i,this.transportSessionId=o,this.lastSessionId=a,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=mh(e),this.stats_=Gh(t),this.urlFn=e=>(this.appCheckToken&&(e[Bh]=this.appCheckToken),zh(t,Uh,e))}open(e,t){var n=this;this.curSegmentNum=0,this.onDisconnect_=t,this.myPacketOrderer=new Vh(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout((()=>{this.log_("Timed out trying to connect."),this.onClosed_(),this.connectTimeoutTimer_=null}),Math.floor(3e4)),function(e){if(Us()||"complete"===document.readyState)e();else{let t=!1;const n=function(){document.body?t||(t=!0,e()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",(()=>{"complete"===document.readyState&&n()})),window.attachEvent("onload",n))}}((()=>{if(this.isClosed_)return;this.scriptTagHolder=new Yh((function(){for(var e=arguments.length,t=new Array(e),r=0;r{n.onClosed_()}))):n.onClosed_()}}),(function(){for(var e=arguments.length,t=new Array(e),r=0;r{this.onClosed_()}),this.urlFn);const e={};e[$h]="t",e.ser=Math.floor(1e8*Math.random()),this.scriptTagHolder.uniqueCallbackIdentifier&&(e.cb=this.scriptTagHolder.uniqueCallbackIdentifier),e.v=Dh,this.transportSessionId&&(e.s=this.transportSessionId),this.lastSessionId&&(e.ls=this.lastSessionId),this.applicationId&&(e.p=this.applicationId),this.appCheckToken&&(e[Bh]=this.appCheckToken),"undefined"!==typeof location&&location.hostname&&Mh.test(location.hostname)&&(e.r="f");const t=this.urlFn(e);this.log_("Connecting via long-poll to "+t),this.scriptTagHolder.addTag(t,(()=>{}))}))}start(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)}static forceAllow(){Kh.forceAllow_=!0}static forceDisallow(){Kh.forceDisallow_=!0}static isAvailable(){return!Us()&&(!!Kh.forceAllow_||!Kh.forceDisallow_&&"undefined"!==typeof document&&null!=document.createElement&&!("object"===typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href))&&!("object"===typeof Windows&&"object"===typeof Windows.UI))}markConnectionHealthy(){}shutdown_(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)}onClosed_(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))}close(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())}send(e){const t=Ws(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);const n=Ts(t),r=kh(n,1840);for(let i=0;idocument.domain="'+document.domain+'";<\/script>'}const r=""+n+"";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(r),this.myIFrame.doc.close()}catch(i){fh("frame writing exception"),i.stack&&fh(i.stack),fh(i)}}}static createIFrame_(){const e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{e.contentWindow.document||fh("No IE domain setting required")}catch(t){const n=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+n+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e}close(){this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.textContent="",setTimeout((()=>{null!==this.myIFrame&&(document.body.removeChild(this.myIFrame),this.myIFrame=null)}),Math.floor(0)));const e=this.onDisconnect;e&&(this.onDisconnect=null,e())}startLongPoll(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););}newRequest_(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;const e={};e.id=this.myID,e.pw=this.myPW,e.ser=this.currentSerial;let t=this.urlFn(e),n="",r=0;for(;this.pendingSegs.length>0;){if(!(this.pendingSegs[0].d.length+30+n.length<=1870))break;{const e=this.pendingSegs.shift();n=n+"&seg"+r+"="+e.seg+"&ts"+r+"="+e.ts+"&d"+r+"="+e.d,r++}}return t+=n,this.addLongPollTag_(t,this.currentSerial),!0}return!1}enqueueSegment(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()}addLongPollTag_(e,t){this.outstandingRequests.add(t);const n=()=>{this.outstandingRequests.delete(t),this.newRequest_()},r=setTimeout(n,Math.floor(25e3));this.addTag(e,(()=>{clearTimeout(r),n()}))}addTag(e,t){Us()?this.doNodeLongPoll(e,t):setTimeout((()=>{try{if(!this.sendNewPolls)return;const n=this.myIFrame.doc.createElement("script");n.type="text/javascript",n.async=!0,n.src=e,n.onload=n.onreadystatechange=function(){const e=n.readyState;e&&"loaded"!==e&&"complete"!==e||(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),t())},n.onerror=()=>{fh("Long-poll script failed to load: "+e),this.sendNewPolls=!1,this.close()},this.myIFrame.doc.body.appendChild(n)}catch(n){}}),Math.floor(1))}}let Zh=null;"undefined"!==typeof MozWebSocket?Zh=MozWebSocket:"undefined"!==typeof WebSocket&&(Zh=WebSocket);class Jh{constructor(e,t,n,r,i,o,a){this.connId=e,this.applicationId=n,this.appCheckToken=r,this.authToken=i,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=mh(this.connId),this.stats_=Gh(t),this.connURL=Jh.connectionURL_(t,o,a,r,n),this.nodeAdmin=t.nodeAdmin}static connectionURL_(e,t,n,r,i){const o={};return o.v=Dh,!Us()&&"undefined"!==typeof location&&location.hostname&&Mh.test(location.hostname)&&(o.r="f"),t&&(o.s=t),n&&(o.ls=n),r&&(o[Bh]=r),i&&(o.p=i),zh(e,Qh,o)}open(e,t){this.onDisconnect=t,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,oh.set("previous_websocket_failure",!0);try{let e;if(Us()){const t=this.nodeAdmin?"AdminNode":"Node";e={headers:{"User-Agent":"Firebase/".concat(Dh,"/").concat(eh,"/").concat(process.platform,"/").concat(t),"X-Firebase-GMPID":this.applicationId||""}},this.authToken&&(e.headers.Authorization="Bearer ".concat(this.authToken)),this.appCheckToken&&(e.headers["X-Firebase-AppCheck"]=this.appCheckToken);const n={NODE_ENV:"production",PUBLIC_URL:"/metadata-entry-form",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_GOOGLE_CLOUD_API_KEY:"AIzaSyBz4kb3hJHXw0voYZgHZuAgmqGosxntMHM",REACT_APP_GOOGLE_CLOUD_API_KEY_DEV:"AIzaSyADkNENzpoqj3O7uGPsRA_4s1zQdbH708c"},r=0===this.connURL.indexOf("wss://")?n.HTTPS_PROXY||n.https_proxy:n.HTTP_PROXY||n.http_proxy;r&&(e.proxy={origin:r})}this.mySock=new Zh(this.connURL,[],e)}catch(n){this.log_("Error instantiating WebSocket.");const e=n.message||n.data;return e&&this.log_(e),void this.onClosed_()}this.mySock.onopen=()=>{this.log_("Websocket connected."),this.everConnected_=!0},this.mySock.onclose=()=>{this.log_("Websocket connection was disconnected."),this.mySock=null,this.onClosed_()},this.mySock.onmessage=e=>{this.handleIncomingFrame(e)},this.mySock.onerror=e=>{this.log_("WebSocket error. Closing connection.");const t=e.message||e.data;t&&this.log_(t),this.onClosed_()}}start(){}static forceDisallow(){Jh.forceDisallow_=!0}static isAvailable(){let e=!1;if("undefined"!==typeof navigator&&navigator.userAgent){const t=/Android ([0-9]{0,}\.[0-9]{0,})/,n=navigator.userAgent.match(t);n&&n.length>1&&parseFloat(n[1])<4.4&&(e=!0)}return!e&&null!==Zh&&!Jh.forceDisallow_}static previouslyFailed(){return oh.isInMemoryStorage||!0===oh.get("previous_websocket_failure")}markConnectionHealthy(){oh.remove("previous_websocket_failure")}appendFrame_(e){if(this.frames.push(e),this.frames.length===this.totalFrames){const e=this.frames.join("");this.frames=null;const t=Hs(e);this.onMessage(t)}}handleNewFrameCount_(e){this.totalFrames=e,this.frames=[]}extractFrameCount_(e){if(ys(null===this.frames,"We already have a frame buffer"),e.length<=6){const t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e}handleIncomingFrame(e){if(null===this.mySock)return;const t=e.data;if(this.bytesReceived+=t.length,this.stats_.incrementCounter("bytes_received",t.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(t);else{const e=this.extractFrameCount_(t);null!==e&&this.appendFrame_(e)}}send(e){this.resetKeepAlive();const t=Ws(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);const n=kh(t,16384);n.length>1&&this.sendString_(String(n.length));for(let r=0;r{this.mySock&&this.sendString_("0"),this.resetKeepAlive()}),Math.floor(45e3))}sendString_(e){try{this.mySock.send(e)}catch(t){this.log_("Exception thrown from WebSocket.send():",t.message||t.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}}}Jh.responsesRequiredToBeHealthy=2,Jh.healthyTimeout=3e4;class Xh{constructor(e){this.initTransports_(e)}static get ALL_TRANSPORTS(){return[Kh,Jh]}static get IS_TRANSPORT_INITIALIZED(){return this.globalTransportInitialized_}initTransports_(e){const t=Jh&&Jh.isAvailable();let n=t&&!Jh.previouslyFailed();if(e.webSocketOnly&&(t||bh("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),n=!0),n)this.transports_=[Jh];else{const e=this.transports_=[];for(const t of Xh.ALL_TRANSPORTS)t&&t.isAvailable()&&e.push(t);Xh.globalTransportInitialized_=!0}}initialTransport(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")}upgradeTransport(){return this.transports_.length>1?this.transports_[1]:null}}Xh.globalTransportInitialized_=!1;class ef{constructor(e,t,n,r,i,o,a,s,l,c){this.id=e,this.repoInfo_=t,this.applicationId_=n,this.appCheckToken_=r,this.authToken_=i,this.onMessage_=o,this.onReady_=a,this.onDisconnect_=s,this.onKill_=l,this.lastSessionId=c,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=mh("c:"+this.id+":"),this.transportManager_=new Xh(t),this.log_("Connection created"),this.start_()}start_(){const e=this.transportManager_.initialTransport();this.conn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;const t=this.connReceiver_(this.conn_),n=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout((()=>{this.conn_&&this.conn_.open(t,n)}),Math.floor(0));const r=e.healthyTimeout||0;r>0&&(this.healthyTimeout_=Ih((()=>{this.healthyTimeout_=null,this.isHealthy_||(this.conn_&&this.conn_.bytesReceived>102400?(this.log_("Connection exceeded healthy timeout but has received "+this.conn_.bytesReceived+" bytes. Marking connection healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()):this.conn_&&this.conn_.bytesSent>10240?this.log_("Connection exceeded healthy timeout but has sent "+this.conn_.bytesSent+" bytes. Leaving connection alive."):(this.log_("Closing unhealthy connection after timeout."),this.close()))}),Math.floor(r)))}nextTransportId_(){return"c:"+this.id+":"+this.connectionCount++}disconnReceiver_(e){return t=>{e===this.conn_?this.onConnectionLost_(t):e===this.secondaryConn_?(this.log_("Secondary connection lost."),this.onSecondaryConnectionLost_()):this.log_("closing an old connection")}}connReceiver_(e){return t=>{2!==this.state_&&(e===this.rx_?this.onPrimaryMessageReceived_(t):e===this.secondaryConn_?this.onSecondaryMessageReceived_(t):this.log_("message on old connection"))}}sendRequest(e){const t={t:"d",d:e};this.sendData_(t)}tryCleanupConnection(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)}onSecondaryControl_(e){if("t"in e){const t=e.t;"a"===t?this.upgradeIfSecondaryHealthy_():"r"===t?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===t&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}}onSecondaryMessageReceived_(e){const t=Th("t",e),n=Th("d",e);if("c"===t)this.onSecondaryControl_(n);else{if("d"!==t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(n)}}upgradeIfSecondaryHealthy_(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))}proceedWithUpgrade_(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()}onPrimaryMessageReceived_(e){const t=Th("t",e),n=Th("d",e);"c"===t?this.onControl_(n):"d"===t&&this.onDataMessage_(n)}onDataMessage_(e){this.onPrimaryResponse_(),this.onMessage_(e)}onPrimaryResponse_(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))}onControl_(e){const t=Th("t",e);if("d"in e){const n=e.d;if("h"===t){const e=Object.assign({},n);this.repoInfo_.isUsingEmulator&&(e.h=this.repoInfo_.host),this.onHandshake_(e)}else if("n"===t){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(let e=0;e{this.secondaryConn_&&(this.log_("Timed out trying to upgrade."),this.secondaryConn_.close())}),Math.floor(6e4))}onReset_(e){this.log_("Reset packet received. New host: "+e),this.repoInfo_.host=e,1===this.state_?this.close():(this.closeConnections_(),this.start_())}onConnectionEstablished_(e,t){this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(t,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):Ih((()=>{this.sendPingOnPrimaryIfNecessary_()}),Math.floor(5e3))}sendPingOnPrimaryIfNecessary_(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))}onSecondaryConnectionLost_(){const e=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==e&&this.rx_!==e||this.close()}onConnectionLost_(e){this.conn_=null,e||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(oh.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()}onConnectionShutdown_(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()}sendData_(e){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(e)}close(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))}closeConnections_(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)}}class tf{put(e,t,n,r){}merge(e,t,n,r){}refreshAuthToken(e){}refreshAppCheckToken(e){}onDisconnectPut(e,t,n){}onDisconnectMerge(e,t,n){}onDisconnectCancel(e,t){}reportStats(e){}}class nf{constructor(e){this.allowedEvents_=e,this.listeners_={},ys(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}trigger(e){if(Array.isArray(this.listeners_[e])){const i=[...this.listeners_[e]];for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rt===e)),"Unknown event: "+e)}}class rf extends nf{constructor(){super(["online"]),this.online_=!0,"undefined"===typeof window||"undefined"===typeof window.addEventListener||Bs()||(window.addEventListener("online",(()=>{this.online_||(this.online_=!0,this.trigger("online",!0))}),!1),window.addEventListener("offline",(()=>{this.online_&&(this.online_=!1,this.trigger("online",!1))}),!1))}static getInstance(){return new rf}getInitialEvent(e){return ys("online"===e,"Unknown event type: "+e),[this.online_]}currentlyOnline(){return this.online_}}const of=32,af=768;class sf{constructor(e,t){if(void 0===t){this.pieces_=e.split("/");let t=0;for(let e=0;e0&&(this.pieces_[t]=this.pieces_[e],t++);this.pieces_.length=t,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}toString(){let e="";for(let t=this.pieceNum_;t=e.pieces_.length?null:e.pieces_[e.pieceNum_]}function uf(e){return e.pieces_.length-e.pieceNum_}function df(e){let t=e.pieceNum_;return t1&&void 0!==arguments[1]?arguments[1]:0;return e.pieces_.slice(e.pieceNum_+t)}function ff(e){if(e.pieceNum_>=e.pieces_.length)return null;const t=[];for(let n=e.pieceNum_;n0&&n.push(e[t])}return new sf(n,0)}function gf(e){return e.pieceNum_>=e.pieces_.length}function vf(e,t){const n=cf(e),r=cf(t);if(null===n)return t;if(n===r)return vf(df(e),df(t));throw new Error("INTERNAL ERROR: innerPath ("+t+") is not within outerPath ("+e+")")}function bf(e,t){const n=hf(e,0),r=hf(t,0);for(let i=0;iuf(t))return!1;for(;naf)throw new Error(e.errorPrefix_+"has a key path longer than "+af+" bytes ("+e.byteLength_+").");if(e.parts_.length>of)throw new Error(e.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+of+") or object contains a cycle "+Ef(e))}function Ef(e){return 0===e.parts_.length?"":"in property '"+e.parts_.join(".")+"'"}class Tf extends nf{constructor(){let e,t;super(["visible"]),"undefined"!==typeof document&&"undefined"!==typeof document.addEventListener&&("undefined"!==typeof document.hidden?(t="visibilitychange",e="hidden"):"undefined"!==typeof document.mozHidden?(t="mozvisibilitychange",e="mozHidden"):"undefined"!==typeof document.msHidden?(t="msvisibilitychange",e="msHidden"):"undefined"!==typeof document.webkitHidden&&(t="webkitvisibilitychange",e="webkitHidden")),this.visible_=!0,t&&document.addEventListener(t,(()=>{const t=!document[e];t!==this.visible_&&(this.visible_=t,this.trigger("visible",t))}),!1)}static getInstance(){return new Tf}getInitialEvent(e){return ys("visible"===e,"Unknown event type: "+e),[this.visible_]}}const Cf=1e3;class kf extends tf{constructor(e,t,n,r,i,o,a,s){if(super(),this.repoInfo_=e,this.applicationId_=t,this.onDataUpdate_=n,this.onConnectStatus_=r,this.onServerInfoUpdate_=i,this.authTokenProvider_=o,this.appCheckTokenProvider_=a,this.authOverride_=s,this.id=kf.nextPersistentConnectionId_++,this.log_=mh("p:"+this.id+":"),this.interruptReasons_={},this.listens=new Map,this.outstandingPuts_=[],this.outstandingGets_=[],this.outstandingPutCount_=0,this.outstandingGetCount_=0,this.onDisconnectRequestQueue_=[],this.connected_=!1,this.reconnectDelay_=Cf,this.maxReconnectDelay_=3e5,this.securityDebugCallback_=null,this.lastSessionId=null,this.establishConnectionTimer_=null,this.visible_=!1,this.requestCBHash_={},this.requestNumber_=0,this.realtime_=null,this.authToken_=null,this.appCheckToken_=null,this.forceTokenRefresh_=!1,this.invalidAuthTokenCount_=0,this.invalidAppCheckTokenCount_=0,this.firstConnection_=!0,this.lastConnectionAttemptTime_=null,this.lastConnectionEstablishedTime_=null,s&&!Us())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");Tf.getInstance().on("visible",this.onVisible_,this),-1===e.host.indexOf("fblocal")&&rf.getInstance().on("online",this.onOnline_,this)}sendRequest(e,t,n){const r=++this.requestNumber_,i={r:r,a:e,b:t};this.log_(Ws(i)),ys(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(i),n&&(this.requestCBHash_[r]=n)}get(e){this.initConnection_();const t=new Ds,n={action:"g",request:{p:e._path.toString(),q:e._queryObject},onComplete:e=>{const n=e.d;"ok"===e.s?t.resolve(n):t.reject(n)}};this.outstandingGets_.push(n),this.outstandingGetCount_++;const r=this.outstandingGets_.length-1;return this.connected_&&this.sendGet_(r),t.promise}listen(e,t,n,r){this.initConnection_();const i=e._queryIdentifier,o=e._path.toString();this.log_("Listen called for "+o+" "+i),this.listens.has(o)||this.listens.set(o,new Map),ys(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"listen() called for non-default but complete query"),ys(!this.listens.get(o).has(i),"listen() called twice for same path/queryId.");const a={onComplete:r,hashFn:t,query:e,tag:n};this.listens.get(o).set(i,a),this.connected_&&this.sendListen_(a)}sendGet_(e){const t=this.outstandingGets_[e];this.sendRequest("g",t.request,(n=>{delete this.outstandingGets_[e],this.outstandingGetCount_--,0===this.outstandingGetCount_&&(this.outstandingGets_=[]),t.onComplete&&t.onComplete(n)}))}sendListen_(e){const t=e.query,n=t._path.toString(),r=t._queryIdentifier;this.log_("Listen on "+n+" for "+r);const i={p:n};e.tag&&(i.q=t._queryObject,i.t=e.tag),i.h=e.hashFn(),this.sendRequest("q",i,(i=>{const o=i.d,a=i.s;kf.warnOnListenWarnings_(o,t);(this.listens.get(n)&&this.listens.get(n).get(r))===e&&(this.log_("listen response",i),"ok"!==a&&this.removeListen_(n,r),e.onComplete&&e.onComplete(a,o))}))}static warnOnListenWarnings_(e,t){if(e&&"object"===typeof e&&Vs(e,"w")){const n=$s(e,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){const e='".indexOn": "'+t._queryParams.getIndex().toString()+'"',n=t._path.toString();bh("Using an unspecified index. Your data will be downloaded and "+"filtered on the client. Consider adding ".concat(e," at ")+"".concat(n," to your security rules for better performance."))}}}refreshAuthToken(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},(()=>{})),this.reduceReconnectDelayIfAdminCredential_(e)}reduceReconnectDelayIfAdminCredential_(e){(e&&40===e.length||function(e){const t=Gs(e).claims;return"object"===typeof t&&!0===t.admin}(e))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=3e4)}refreshAppCheckToken(e){this.appCheckToken_=e,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},(()=>{}))}tryAuth(){if(this.connected_&&this.authToken_){const e=this.authToken_,t=function(e){const t=Gs(e).claims;return!!t&&"object"===typeof t&&t.hasOwnProperty("iat")}(e)?"auth":"gauth",n={cred:e};null===this.authOverride_?n.noauth=!0:"object"===typeof this.authOverride_&&(n.authvar=this.authOverride_),this.sendRequest(t,n,(t=>{const n=t.s,r=t.d||"error";this.authToken_===e&&("ok"===n?this.invalidAuthTokenCount_=0:this.onAuthRevoked_(n,r))}))}}tryAppCheck(){this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},(e=>{const t=e.s,n=e.d||"error";"ok"===t?this.invalidAppCheckTokenCount_=0:this.onAppCheckRevoked_(t,n)}))}unlisten(e,t){const n=e._path.toString(),r=e._queryIdentifier;this.log_("Unlisten called for "+n+" "+r),ys(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"unlisten() called for non-default but complete query");this.removeListen_(n,r)&&this.connected_&&this.sendUnlisten_(n,r,e._queryObject,t)}sendUnlisten_(e,t,n,r){this.log_("Unlisten on "+e+" for "+t);const i={p:e};r&&(i.q=n,i.t=r),this.sendRequest("n",i)}onDisconnectPut(e,t,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:t,onComplete:n})}onDisconnectMerge(e,t,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:t,onComplete:n})}onDisconnectCancel(e,t){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",e,null,t):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:t})}sendOnDisconnect_(e,t,n,r){const i={p:t,d:n};this.log_("onDisconnect "+e,i),this.sendRequest(e,i,(e=>{r&&setTimeout((()=>{r(e.s,e.d)}),Math.floor(0))}))}put(e,t,n,r){this.putInternal("p",e,t,n,r)}merge(e,t,n,r){this.putInternal("m",e,t,n,r)}putInternal(e,t,n,r,i){this.initConnection_();const o={p:t,d:n};void 0!==i&&(o.h=i),this.outstandingPuts_.push({action:e,request:o,onComplete:r}),this.outstandingPutCount_++;const a=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(a):this.log_("Buffering put: "+t)}sendPut_(e){const t=this.outstandingPuts_[e].action,n=this.outstandingPuts_[e].request,r=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(t,n,(n=>{this.log_(t+" response",n),delete this.outstandingPuts_[e],this.outstandingPutCount_--,0===this.outstandingPutCount_&&(this.outstandingPuts_=[]),r&&r(n.s,n.d)}))}reportStats(e){if(this.connected_){const t={c:e};this.log_("reportStats",t),this.sendRequest("s",t,(e=>{if("ok"!==e.s){const t=e.d;this.log_("reportStats","Error sending stats: "+t)}}))}}onDataMessage_(e){if("r"in e){this.log_("from server: "+Ws(e));const t=e.r,n=this.requestCBHash_[t];n&&(delete this.requestCBHash_[t],n(e.b))}else{if("error"in e)throw"A server-side error has occurred: "+e.error;"a"in e&&this.onDataPush_(e.a,e.b)}}onDataPush_(e,t){this.log_("handleServerMessage",e,t),"d"===e?this.onDataUpdate_(t.p,t.d,!1,t.t):"m"===e?this.onDataUpdate_(t.p,t.d,!0,t.t):"c"===e?this.onListenRevoked_(t.p,t.q):"ac"===e?this.onAuthRevoked_(t.s,t.d):"apc"===e?this.onAppCheckRevoked_(t.s,t.d):"sd"===e?this.onSecurityDebugPacket_(t):gh("Unrecognized action received from server: "+Ws(e)+"\nAre you using the latest client?")}onReady_(e,t){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(e),this.lastSessionId=t,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)}scheduleConnect_(e){ys(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout((()=>{this.establishConnectionTimer_=null,this.establishConnection_()}),Math.floor(e))}initConnection_(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)}onVisible_(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible. Reducing delay."),this.reconnectDelay_=Cf,this.realtime_||this.scheduleConnect_(0)),this.visible_=e}onOnline_(e){e?(this.log_("Browser went online."),this.reconnectDelay_=Cf,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline. Killing connection."),this.realtime_&&this.realtime_.close())}onRealtimeDisconnect_(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){if(this.visible_){if(this.lastConnectionEstablishedTime_){(new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=Cf),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();const e=(new Date).getTime()-this.lastConnectionAttemptTime_;let t=Math.max(0,this.reconnectDelay_-e);t=Math.random()*t,this.log_("Trying to reconnect in "+t+"ms"),this.scheduleConnect_(t),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)}async establishConnection_(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;const e=this.onDataMessage_.bind(this),t=this.onReady_.bind(this),n=this.onRealtimeDisconnect_.bind(this),r=this.id+":"+kf.nextConnectionId_++,i=this.lastSessionId;let o=!1,a=null;const s=function(){a?a.close():(o=!0,n())},l=function(e){ys(a,"sendRequest call when we're not connected not allowed."),a.sendRequest(e)};this.realtime_={close:s,sendRequest:l};const c=this.forceTokenRefresh_;this.forceTokenRefresh_=!1;try{const[s,l]=await Promise.all([this.authTokenProvider_.getToken(c),this.appCheckTokenProvider_.getToken(c)]);o?fh("getToken() completed but was canceled"):(fh("getToken() completed. Creating connection."),this.authToken_=s&&s.accessToken,this.appCheckToken_=l&&l.token,a=new ef(r,this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,e,t,n,(e=>{bh(e+" ("+this.repoInfo_.toString()+")"),this.interrupt("server_kill")}),i))}catch(gh){this.log_("Failed to get token: "+gh),o||(this.repoInfo_.nodeAdmin&&bh(gh),s())}}}interrupt(e){fh("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())}resume(e){fh("Resuming connection for reason: "+e),delete this.interruptReasons_[e],Ks(this.interruptReasons_)&&(this.reconnectDelay_=Cf,this.realtime_||this.scheduleConnect_(0))}handleTimestamp_(e){const t=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:t})}cancelSentTransactions_(){for(let e=0;eCh(e))).join("$"):"default";const r=this.removeListen_(e,n);r&&r.onComplete&&r.onComplete("permission_denied")}removeListen_(e,t){const n=new sf(e).toString();let r;if(this.listens.has(n)){const e=this.listens.get(n);r=e.get(t),e.delete(t),0===e.size&&this.listens.delete(n)}else r=void 0;return r}onAuthRevoked_(e,t){fh("Auth token revoked: "+e+"/"+t),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))}onAppCheckRevoked_(e,t){fh("App check token revoked: "+e+"/"+t),this.appCheckToken_=null,this.forceTokenRefresh_=!0,"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=3&&this.appCheckTokenProvider_.notifyForInvalidToken())}onSecurityDebugPacket_(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e.msg.replace("\n","\nFIREBASE: "))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of this.listens.values())for(const t of e.values())this.sendListen_(t);for(let e=0;e4&&void 0!==arguments[4]?arguments[4]:null;this.isReverse_=r,this.resultGenerator_=i,this.nodeStack_=[];let o=1;for(;!e.isEmpty();)if(o=t?n(e.key,t):1,r&&(o*=-1),o<0)e=this.isReverse_?e.left:e.right;else{if(0===o){this.nodeStack_.push(e);break}this.nodeStack_.push(e),e=this.isReverse_?e.right:e.left}}getNext(){if(0===this.nodeStack_.length)return null;let e,t=this.nodeStack_.pop();if(e=this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value},this.isReverse_)for(t=t.left;!t.isEmpty();)this.nodeStack_.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack_.push(t),t=t.left;return e}hasNext(){return this.nodeStack_.length>0}peek(){if(0===this.nodeStack_.length)return null;const e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}}}class Lf{constructor(e,t,n,r,i){this.key=e,this.value=t,this.color=null!=n?n:Lf.RED,this.left=null!=r?r:Rf.EMPTY_NODE,this.right=null!=i?i:Rf.EMPTY_NODE}copy(e,t,n,r,i){return new Lf(null!=e?e:this.key,null!=t?t:this.value,null!=n?n:this.color,null!=r?r:this.left,null!=i?i:this.right)}count(){return this.left.count()+1+this.right.count()}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||!!e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min_(){return this.left.isEmpty()?this:this.left.min_()}minKey(){return this.min_().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,n){let r=this;const i=n(e,r.key);return r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n)),r.fixUp_()}removeMin_(){if(this.left.isEmpty())return Rf.EMPTY_NODE;let e=this;return e.left.isRed_()||e.left.left.isRed_()||(e=e.moveRedLeft_()),e=e.copy(null,null,null,e.left.removeMin_(),null),e.fixUp_()}remove(e,t){let n,r;if(n=this,t(e,n.key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===t(e,n.key)){if(n.right.isEmpty())return Rf.EMPTY_NODE;r=n.right.min_(),n=n.copy(r.key,r.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp_()}isRed_(){return this.color}fixUp_(){let e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e}moveRedLeft_(){let e=this.colorFlip_();return e.right.left.isRed_()&&(e=e.copy(null,null,null,null,e.right.rotateRight_()),e=e.rotateLeft_(),e=e.colorFlip_()),e}moveRedRight_(){let e=this.colorFlip_();return e.left.left.isRed_()&&(e=e.rotateRight_(),e=e.colorFlip_()),e}rotateLeft_(){const e=this.copy(null,null,Lf.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight_(){const e=this.copy(null,null,Lf.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip_(){const e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth_(){const e=this.check_();return Math.pow(2,e)<=this.count()+1}check_(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");const e=this.left.check_();if(e!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)}}Lf.RED=!0,Lf.BLACK=!1;class Rf{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rf.EMPTY_NODE;this.comparator_=e,this.root_=t}insert(e,t){return new Rf(this.comparator_,this.root_.insert(e,t,this.comparator_).copy(null,null,Lf.BLACK,null,null))}remove(e){return new Rf(this.comparator_,this.root_.remove(e,this.comparator_).copy(null,null,Lf.BLACK,null,null))}get(e){let t,n=this.root_;for(;!n.isEmpty();){if(t=this.comparator_(e,n.key),0===t)return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null}getPredecessorKey(e){let t,n=this.root_,r=null;for(;!n.isEmpty();){if(t=this.comparator_(e,n.key),0===t){if(n.left.isEmpty())return r?r.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}t<0?n=n.left:t>0&&(r=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")}isEmpty(){return this.root_.isEmpty()}count(){return this.root_.count()}minKey(){return this.root_.minKey()}maxKey(){return this.root_.maxKey()}inorderTraversal(e){return this.root_.inorderTraversal(e)}reverseTraversal(e){return this.root_.reverseTraversal(e)}getIterator(e){return new If(this.root_,null,this.comparator_,!1,e)}getIteratorFrom(e,t){return new If(this.root_,e,this.comparator_,!1,t)}getReverseIteratorFrom(e,t){return new If(this.root_,e,this.comparator_,!0,t)}getReverseIterator(e){return new If(this.root_,null,this.comparator_,!0,e)}}function Nf(e,t){return wh(e.name,t.name)}function Df(e,t){return wh(e,t)}let Mf;Rf.EMPTY_NODE=new class{copy(e,t,n,r,i){return this}insert(e,t,n){return new Lf(e,t,null)}remove(e,t){return this}count(){return 0}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}check_(){return 0}isRed_(){return!1}};const Bf=function(e){return"number"===typeof e?"number:"+Oh(e):"string:"+e},Qf=function(e){if(e.isLeafNode()){const t=e.val();ys("string"===typeof t||"number"===typeof t||"object"===typeof t&&Vs(t,".sv"),"Priority must be a string or number.")}else ys(e===Mf||e.isEmpty(),"priority of unexpected type.");ys(e===Mf||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")};let Uf,Ff,zf;class qf{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qf.__childrenNodeConstructor.EMPTY_NODE;this.value_=e,this.priorityNode_=t,this.lazyHash_=null,ys(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),Qf(this.priorityNode_)}static set __childrenNodeConstructor(e){Uf=e}static get __childrenNodeConstructor(){return Uf}isLeafNode(){return!0}getPriority(){return this.priorityNode_}updatePriority(e){return new qf(this.value_,e)}getImmediateChild(e){return".priority"===e?this.priorityNode_:qf.__childrenNodeConstructor.EMPTY_NODE}getChild(e){return gf(e)?this:".priority"===cf(e)?this.priorityNode_:qf.__childrenNodeConstructor.EMPTY_NODE}hasChild(){return!1}getPredecessorChildName(e,t){return null}updateImmediateChild(e,t){return".priority"===e?this.updatePriority(t):t.isEmpty()&&".priority"!==e?this:qf.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(e,t).updatePriority(this.priorityNode_)}updateChild(e,t){const n=cf(e);return null===n?t:t.isEmpty()&&".priority"!==n?this:(ys(".priority"!==n||1===uf(e),".priority must be the last token in a path"),this.updateImmediateChild(n,qf.__childrenNodeConstructor.EMPTY_NODE.updateChild(df(e),t)))}isEmpty(){return!1}numChildren(){return 0}forEachChild(e,t){return!1}val(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()}hash(){if(null===this.lazyHash_){let e="";this.priorityNode_.isEmpty()||(e+="priority:"+Bf(this.priorityNode_.val())+":");const t=typeof this.value_;e+=t+":",e+="number"===t?Oh(this.value_):this.value_,this.lazyHash_=ch(e)}return this.lazyHash_}getValue(){return this.value_}compareTo(e){return e===qf.__childrenNodeConstructor.EMPTY_NODE?1:e instanceof qf.__childrenNodeConstructor?-1:(ys(e.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(e))}compareToLeafNode_(e){const t=typeof e.value_,n=typeof this.value_,r=qf.VALUE_TYPE_ORDER.indexOf(t),i=qf.VALUE_TYPE_ORDER.indexOf(n);return ys(r>=0,"Unknown leaf type: "+t),ys(i>=0,"Unknown leaf type: "+n),r===i?"object"===n?0:this.value_{const i=$s(this.indexSet_,r);if(ys(i,"Missing index implementation for "+r),n===Kf){if(i.isDefinedOn(e.node)){const n=[],r=t.getIterator(Sf.Wrap);let o=r.getNext();for(;o;)o.name!==e.name&&n.push(o),o=r.getNext();return n.push(e),Vf(n,i.getCompare())}return Kf}{const r=t.get(e.name);let i=n;return r&&(i=i.remove(new Sf(e.name,r))),i.insert(e,e.node)}}));return new Yf(n,this.indexSet_)}removeFromIndexes(e,t){const n=Ys(this.indexes_,(n=>{if(n===Kf)return n;{const r=t.get(e.name);return r?n.remove(new Sf(e.name,r)):n}}));return new Yf(n,this.indexSet_)}}let Zf;class Jf{constructor(e,t,n){this.children_=e,this.priorityNode_=t,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&Qf(this.priorityNode_),this.children_.isEmpty()&&ys(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}static get EMPTY_NODE(){return Zf||(Zf=new Jf(new Rf(Df),null,Yf.Default))}isLeafNode(){return!1}getPriority(){return this.priorityNode_||Zf}updatePriority(e){return this.children_.isEmpty()?this:new Jf(this.children_,e,this.indexMap_)}getImmediateChild(e){if(".priority"===e)return this.getPriority();{const t=this.children_.get(e);return null===t?Zf:t}}getChild(e){const t=cf(e);return null===t?this:this.getImmediateChild(t).getChild(df(e))}hasChild(e){return null!==this.children_.get(e)}updateImmediateChild(e,t){if(ys(t,"We should always be passing snapshot nodes"),".priority"===e)return this.updatePriority(t);{const n=new Sf(e,t);let r,i;t.isEmpty()?(r=this.children_.remove(e),i=this.indexMap_.removeFromIndexes(n,this.children_)):(r=this.children_.insert(e,t),i=this.indexMap_.addToIndexes(n,this.children_));const o=r.isEmpty()?Zf:this.priorityNode_;return new Jf(r,o,i)}}updateChild(e,t){const n=cf(e);if(null===n)return t;{ys(".priority"!==cf(e)||1===uf(e),".priority must be the last token in a path");const r=this.getImmediateChild(n).updateChild(df(e),t);return this.updateImmediateChild(n,r)}}isEmpty(){return this.children_.isEmpty()}numChildren(){return this.children_.count()}val(e){if(this.isEmpty())return null;const t={};let n=0,r=0,i=!0;if(this.forEachChild(Hf,((o,a)=>{t[o]=a.val(e),n++,i&&Jf.INTEGER_REGEXP_.test(o)?r=Math.max(r,Number(o)):i=!1})),!e&&i&&r<2*n){const e=[];for(const n in t)e[n]=t[n];return e}return e&&!this.getPriority().isEmpty()&&(t[".priority"]=this.getPriority().val()),t}hash(){if(null===this.lazyHash_){let e="";this.getPriority().isEmpty()||(e+="priority:"+Bf(this.getPriority().val())+":"),this.forEachChild(Hf,((t,n)=>{const r=n.hash();""!==r&&(e+=":"+t+":"+r)})),this.lazyHash_=""===e?"":ch(e)}return this.lazyHash_}getPredecessorChildName(e,t,n){const r=this.resolveIndex_(n);if(r){const n=r.getPredecessorKey(new Sf(e,t));return n?n.name:null}return this.children_.getPredecessorKey(e)}getFirstChildName(e){const t=this.resolveIndex_(e);if(t){const e=t.minKey();return e&&e.name}return this.children_.minKey()}getFirstChild(e){const t=this.getFirstChildName(e);return t?new Sf(t,this.children_.get(t)):null}getLastChildName(e){const t=this.resolveIndex_(e);if(t){const e=t.maxKey();return e&&e.name}return this.children_.maxKey()}getLastChild(e){const t=this.getLastChildName(e);return t?new Sf(t,this.children_.get(t)):null}forEachChild(e,t){const n=this.resolveIndex_(e);return n?n.inorderTraversal((e=>t(e.name,e.node))):this.children_.inorderTraversal(t)}getIterator(e){return this.getIteratorFrom(e.minPost(),e)}getIteratorFrom(e,t){const n=this.resolveIndex_(t);if(n)return n.getIteratorFrom(e,(e=>e));{const n=this.children_.getIteratorFrom(e.name,Sf.Wrap);let r=n.peek();for(;null!=r&&t.compare(r,e)<0;)n.getNext(),r=n.peek();return n}}getReverseIterator(e){return this.getReverseIteratorFrom(e.maxPost(),e)}getReverseIteratorFrom(e,t){const n=this.resolveIndex_(t);if(n)return n.getReverseIteratorFrom(e,(e=>e));{const n=this.children_.getReverseIteratorFrom(e.name,Sf.Wrap);let r=n.peek();for(;null!=r&&t.compare(r,e)>0;)n.getNext(),r=n.peek();return n}}compareTo(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===Xf?-1:0}withIndex(e){if(e===Pf||this.indexMap_.hasIndex(e))return this;{const t=this.indexMap_.addIndex(e,this.children_);return new Jf(this.children_,this.priorityNode_,t)}}isIndexed(e){return e===Pf||this.indexMap_.hasIndex(e)}equals(e){if(e===this)return!0;if(e.isLeafNode())return!1;{const t=e;if(this.getPriority().equals(t.getPriority())){if(this.children_.count()===t.children_.count()){const e=this.getIterator(Hf),n=t.getIterator(Hf);let r=e.getNext(),i=n.getNext();for(;r&&i;){if(r.name!==i.name||!r.node.equals(i.node))return!1;r=e.getNext(),i=n.getNext()}return null===r&&null===i}return!1}return!1}}resolveIndex_(e){return e===Pf?null:this.indexMap_.get(e.toString())}}Jf.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/;const Xf=new class extends Jf{constructor(){super(new Rf(Df),Jf.EMPTY_NODE,Yf.Default)}compareTo(e){return e===this?0:1}equals(e){return e===this}getPriority(){return this}getImmediateChild(e){return Jf.EMPTY_NODE}isEmpty(){return!1}};Object.defineProperties(Sf,{MIN:{value:new Sf(_h,Jf.EMPTY_NODE)},MAX:{value:new Sf(xh,Xf)}}),jf.__EMPTY_NODE=Jf.EMPTY_NODE,qf.__childrenNodeConstructor=Jf,Mf=Xf,function(e){zf=e}(Xf);const em=!0;function tm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null===e)return Jf.EMPTY_NODE;if("object"===typeof e&&".priority"in e&&(t=e[".priority"]),ys(null===t||"string"===typeof t||"number"===typeof t||"object"===typeof t&&".sv"in t,"Invalid priority type found: "+typeof t),"object"===typeof e&&".value"in e&&null!==e[".value"]&&(e=e[".value"]),"object"!==typeof e||".sv"in e){return new qf(e,tm(t))}if(e instanceof Array||!em){let n=Jf.EMPTY_NODE;return Sh(e,((t,r)=>{if(Vs(e,t)&&"."!==t.substring(0,1)){const e=tm(r);!e.isLeafNode()&&e.isEmpty()||(n=n.updateImmediateChild(t,e))}})),n.updatePriority(tm(t))}{const n=[];let r=!1;if(Sh(e,((e,t)=>{if("."!==e.substring(0,1)){const i=tm(t);i.isEmpty()||(r=r||!i.getPriority().isEmpty(),n.push(new Sf(e,i)))}})),0===n.length)return Jf.EMPTY_NODE;const i=Vf(n,Nf,(e=>e.name),Df);if(r){const e=Vf(n,Hf.getCompare());return new Jf(i,tm(t),new Yf({".priority":e},{".priority":Hf}))}return new Jf(i,tm(t),Yf.Default)}}!function(e){Ff=e}(tm);class nm extends Of{constructor(e){super(),this.indexPath_=e,ys(!gf(e)&&".priority"!==cf(e),"Can't create PathIndex with empty path or .priority key")}extractChild(e){return e.getChild(this.indexPath_)}isDefinedOn(e){return!e.getChild(this.indexPath_).isEmpty()}compare(e,t){const n=this.extractChild(e.node),r=this.extractChild(t.node),i=n.compareTo(r);return 0===i?wh(e.name,t.name):i}makePost(e,t){const n=tm(e),r=Jf.EMPTY_NODE.updateChild(this.indexPath_,n);return new Sf(t,r)}maxPost(){const e=Jf.EMPTY_NODE.updateChild(this.indexPath_,Xf);return new Sf(xh,e)}toString(){return hf(this.indexPath_,0).join("/")}}const rm=new class extends Of{compare(e,t){const n=e.node.compareTo(t.node);return 0===n?wh(e.name,t.name):n}isDefinedOn(e){return!0}indexedValueChanged(e,t){return!e.equals(t)}minPost(){return Sf.MIN}maxPost(){return Sf.MAX}makePost(e,t){const n=tm(e);return new Sf(t,n)}toString(){return".value"}};function im(e){return{type:"value",snapshotNode:e}}function om(e,t){return{type:"child_added",snapshotNode:t,childName:e}}function am(e,t){return{type:"child_removed",snapshotNode:t,childName:e}}function sm(e,t,n){return{type:"child_changed",snapshotNode:t,childName:e,oldSnap:n}}class lm{constructor(e){this.index_=e}updateChild(e,t,n,r,i,o){ys(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");const a=e.getImmediateChild(t);return a.getChild(r).equals(n.getChild(r))&&a.isEmpty()===n.isEmpty()?e:(null!=o&&(n.isEmpty()?e.hasChild(t)?o.trackChildChange(am(t,a)):ys(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):a.isEmpty()?o.trackChildChange(om(t,n)):o.trackChildChange(sm(t,n,a))),e.isLeafNode()&&n.isEmpty()?e:e.updateImmediateChild(t,n).withIndex(this.index_))}updateFullNode(e,t,n){return null!=n&&(e.isLeafNode()||e.forEachChild(Hf,((e,r)=>{t.hasChild(e)||n.trackChildChange(am(e,r))})),t.isLeafNode()||t.forEachChild(Hf,((t,r)=>{if(e.hasChild(t)){const i=e.getImmediateChild(t);i.equals(r)||n.trackChildChange(sm(t,r,i))}else n.trackChildChange(om(t,r))}))),t.withIndex(this.index_)}updatePriority(e,t){return e.isEmpty()?Jf.EMPTY_NODE:e.updatePriority(t)}filtersNodes(){return!1}getIndexedFilter(){return this}getIndex(){return this.index_}}class cm{constructor(e){this.indexedFilter_=new lm(e.getIndex()),this.index_=e.getIndex(),this.startPost_=cm.getStartPost_(e),this.endPost_=cm.getEndPost_(e),this.startIsInclusive_=!e.startAfterSet_,this.endIsInclusive_=!e.endBeforeSet_}getStartPost(){return this.startPost_}getEndPost(){return this.endPost_}matches(e){const t=this.startIsInclusive_?this.index_.compare(this.getStartPost(),e)<=0:this.index_.compare(this.getStartPost(),e)<0,n=this.endIsInclusive_?this.index_.compare(e,this.getEndPost())<=0:this.index_.compare(e,this.getEndPost())<0;return t&&n}updateChild(e,t,n,r,i,o){return this.matches(new Sf(t,n))||(n=Jf.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,n,r,i,o)}updateFullNode(e,t,n){t.isLeafNode()&&(t=Jf.EMPTY_NODE);let r=t.withIndex(this.index_);r=r.updatePriority(Jf.EMPTY_NODE);const i=this;return t.forEachChild(Hf,((e,t)=>{i.matches(new Sf(e,t))||(r=r.updateImmediateChild(e,Jf.EMPTY_NODE))})),this.indexedFilter_.updateFullNode(e,r,n)}updatePriority(e,t){return e}filtersNodes(){return!0}getIndexedFilter(){return this.indexedFilter_}getIndex(){return this.index_}static getStartPost_(e){if(e.hasStart()){const t=e.getIndexStartName();return e.getIndex().makePost(e.getIndexStartValue(),t)}return e.getIndex().minPost()}static getEndPost_(e){if(e.hasEnd()){const t=e.getIndexEndName();return e.getIndex().makePost(e.getIndexEndValue(),t)}return e.getIndex().maxPost()}}class um{constructor(e){this.withinDirectionalStart=e=>this.reverse_?this.withinEndPost(e):this.withinStartPost(e),this.withinDirectionalEnd=e=>this.reverse_?this.withinStartPost(e):this.withinEndPost(e),this.withinStartPost=e=>{const t=this.index_.compare(this.rangedFilter_.getStartPost(),e);return this.startIsInclusive_?t<=0:t<0},this.withinEndPost=e=>{const t=this.index_.compare(e,this.rangedFilter_.getEndPost());return this.endIsInclusive_?t<=0:t<0},this.rangedFilter_=new cm(e),this.index_=e.getIndex(),this.limit_=e.getLimit(),this.reverse_=!e.isViewFromLeft(),this.startIsInclusive_=!e.startAfterSet_,this.endIsInclusive_=!e.endBeforeSet_}updateChild(e,t,n,r,i,o){return this.rangedFilter_.matches(new Sf(t,n))||(n=Jf.EMPTY_NODE),e.getImmediateChild(t).equals(n)?e:e.numChildren()e(n,t)}else o=this.index_.getCompare();const a=e;ys(a.numChildren()===this.limit_,"");const s=new Sf(t,n),l=this.reverse_?a.getFirstChild(this.index_):a.getLastChild(this.index_),c=this.rangedFilter_.matches(s);if(a.hasChild(t)){const e=a.getImmediateChild(t);let u=r.getChildAfterChild(this.index_,l,this.reverse_);for(;null!=u&&(u.name===t||a.hasChild(u.name));)u=r.getChildAfterChild(this.index_,u,this.reverse_);const d=null==u?1:o(u,s);if(c&&!n.isEmpty()&&d>=0)return null!=i&&i.trackChildChange(sm(t,n,e)),a.updateImmediateChild(t,n);{null!=i&&i.trackChildChange(am(t,e));const n=a.updateImmediateChild(t,Jf.EMPTY_NODE);return null!=u&&this.rangedFilter_.matches(u)?(null!=i&&i.trackChildChange(om(u.name,u.node)),n.updateImmediateChild(u.name,u.node)):n}}return n.isEmpty()?e:c&&o(l,s)>=0?(null!=i&&(i.trackChildChange(am(l.name,l.node)),i.trackChildChange(om(t,n))),a.updateImmediateChild(t,n).updateImmediateChild(l.name,Jf.EMPTY_NODE)):e}}class dm{constructor(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=Hf}hasStart(){return this.startSet_}isViewFromLeft(){return""===this.viewFrom_?this.startSet_:"l"===this.viewFrom_}getIndexStartValue(){return ys(this.startSet_,"Only valid if start has been set"),this.indexStartValue_}getIndexStartName(){return ys(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:_h}hasEnd(){return this.endSet_}getIndexEndValue(){return ys(this.endSet_,"Only valid if end has been set"),this.indexEndValue_}getIndexEndName(){return ys(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:xh}hasLimit(){return this.limitSet_}hasAnchoredLimit(){return this.limitSet_&&""!==this.viewFrom_}getLimit(){return ys(this.limitSet_,"Only valid if limit has been set"),this.limit_}getIndex(){return this.index_}loadsAllData(){return!(this.startSet_||this.endSet_||this.limitSet_)}isDefault(){return this.loadsAllData()&&this.index_===Hf}copy(){const e=new dm;return e.limitSet_=this.limitSet_,e.limit_=this.limit_,e.startSet_=this.startSet_,e.startAfterSet_=this.startAfterSet_,e.indexStartValue_=this.indexStartValue_,e.startNameSet_=this.startNameSet_,e.indexStartName_=this.indexStartName_,e.endSet_=this.endSet_,e.endBeforeSet_=this.endBeforeSet_,e.indexEndValue_=this.indexEndValue_,e.endNameSet_=this.endNameSet_,e.indexEndName_=this.indexEndName_,e.index_=this.index_,e.viewFrom_=this.viewFrom_,e}}function pm(e){const t={};if(e.isDefault())return t;let n;if(e.index_===Hf?n="$priority":e.index_===rm?n="$value":e.index_===Pf?n="$key":(ys(e.index_ instanceof nm,"Unrecognized index type!"),n=e.index_.toString()),t.orderBy=Ws(n),e.startSet_){const n=e.startAfterSet_?"startAfter":"startAt";t[n]=Ws(e.indexStartValue_),e.startNameSet_&&(t[n]+=","+Ws(e.indexStartName_))}if(e.endSet_){const n=e.endBeforeSet_?"endBefore":"endAt";t[n]=Ws(e.indexEndValue_),e.endNameSet_&&(t[n]+=","+Ws(e.indexEndName_))}return e.limitSet_&&(e.isViewFromLeft()?t.limitToFirst=e.limit_:t.limitToLast=e.limit_),t}function hm(e){const t={};if(e.startSet_&&(t.sp=e.indexStartValue_,e.startNameSet_&&(t.sn=e.indexStartName_),t.sin=!e.startAfterSet_),e.endSet_&&(t.ep=e.indexEndValue_,e.endNameSet_&&(t.en=e.indexEndName_),t.ein=!e.endBeforeSet_),e.limitSet_){t.l=e.limit_;let n=e.viewFrom_;""===n&&(n=e.isViewFromLeft()?"l":"r"),t.vf=n}return e.index_!==Hf&&(t.i=e.index_.toString()),t}class fm extends tf{constructor(e,t,n,r){super(),this.repoInfo_=e,this.onDataUpdate_=t,this.authTokenProvider_=n,this.appCheckTokenProvider_=r,this.log_=mh("p:rest:"),this.listens_={}}reportStats(e){throw new Error("Method not implemented.")}static getListenId_(e,t){return void 0!==t?"tag$"+t:(ys(e._queryParams.isDefault(),"should have a tag if it's not a default query."),e._path.toString())}listen(e,t,n,r){const i=e._path.toString();this.log_("Listen called for "+i+" "+e._queryIdentifier);const o=fm.getListenId_(e,n),a={};this.listens_[o]=a;const s=pm(e._queryParams);this.restRequest_(i+".json",s,((e,t)=>{let s=t;if(404===e&&(s=null,e=null),null===e&&this.onDataUpdate_(i,s,!1,n),$s(this.listens_,o)===a){let t;t=e?401===e?"permission_denied":"rest_error:"+e:"ok",r(t,null)}}))}unlisten(e,t){const n=fm.getListenId_(e,t);delete this.listens_[n]}get(e){const t=pm(e._queryParams),n=e._path.toString(),r=new Ds;return this.restRequest_(n+".json",t,((e,t)=>{let i=t;404===e&&(i=null,e=null),null===e?(this.onDataUpdate_(n,i,!1,null),r.resolve(i)):r.reject(new Error(i))})),r.promise}refreshAuthToken(e){}restRequest_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return t.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then((r=>{let[i,o]=r;i&&i.accessToken&&(t.auth=i.accessToken),o&&o.token&&(t.ac=o.token);const a=(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host+e+"?ns="+this.repoInfo_.namespace+Xs(t);this.log_("Sending REST request for "+a);const s=new XMLHttpRequest;s.onreadystatechange=()=>{if(n&&4===s.readyState){this.log_("REST Response for "+a+" received. status:",s.status,"response:",s.responseText);let t=null;if(s.status>=200&&s.status<300){try{t=Hs(s.responseText)}catch(e){bh("Failed to parse JSON response for "+a+": "+s.responseText)}n(null,t)}else 401!==s.status&&404!==s.status&&bh("Got unsuccessful REST response for "+a+" Status: "+s.status),n(s.status);n=null}},s.open("GET",a,!0),s.send()}))}}class mm{constructor(){this.rootNode_=Jf.EMPTY_NODE}getNode(e){return this.rootNode_.getChild(e)}updateSnapshot(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)}}function gm(){return{value:null,children:new Map}}function vm(e,t,n){if(gf(t))e.value=n,e.children.clear();else if(null!==e.value)e.value=e.value.updateChild(t,n);else{const r=cf(t);e.children.has(r)||e.children.set(r,gm());vm(e.children.get(r),t=df(t),n)}}function bm(e,t,n){null!==e.value?n(t,e.value):function(e,t){e.children.forEach(((e,n)=>{t(n,e)}))}(e,((e,r)=>{bm(r,new sf(t.toString()+"/"+e),n)}))}class ym{constructor(e){this.collection_=e,this.last_=null}get(){const e=this.collection_.get(),t=Object.assign({},e);return this.last_&&Sh(this.last_,((e,n)=>{t[e]=t[e]-n})),this.last_=e,t}}class _m{constructor(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new ym(e);const n=1e4+2e4*Math.random();Ih(this.reportStats_.bind(this),Math.floor(n))}reportStats_(){const e=this.statsListener_.get(),t={};let n=!1;Sh(e,((e,r)=>{r>0&&Vs(this.statsToReport_,e)&&(t[e]=r,n=!0)})),n&&this.server_.reportStats(t),Ih(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))}}var xm;function wm(e){return{fromUser:!1,fromServer:!0,queryId:e,tagged:!0}}!function(e){e[e.OVERWRITE=0]="OVERWRITE",e[e.MERGE=1]="MERGE",e[e.ACK_USER_WRITE=2]="ACK_USER_WRITE",e[e.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"}(xm||(xm={}));class Em{constructor(e,t,n){this.path=e,this.affectedTree=t,this.revert=n,this.type=xm.ACK_USER_WRITE,this.source={fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}operationForChild(e){if(gf(this.path)){if(null!=this.affectedTree.value)return ys(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;{const t=this.affectedTree.subtree(new sf(e));return new Em(lf(),t,this.revert)}}return ys(cf(this.path)===e,"operationForChild called for unrelated child."),new Em(df(this.path),this.affectedTree,this.revert)}}class Tm{constructor(e,t){this.source=e,this.path=t,this.type=xm.LISTEN_COMPLETE}operationForChild(e){return gf(this.path)?new Tm(this.source,lf()):new Tm(this.source,df(this.path))}}class Cm{constructor(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=xm.OVERWRITE}operationForChild(e){return gf(this.path)?new Cm(this.source,lf(),this.snap.getImmediateChild(e)):new Cm(this.source,df(this.path),this.snap)}}class km{constructor(e,t,n){this.source=e,this.path=t,this.children=n,this.type=xm.MERGE}operationForChild(e){if(gf(this.path)){const t=this.children.subtree(new sf(e));return t.isEmpty()?null:t.value?new Cm(this.source,lf(),t.value):new km(this.source,lf(),t)}return ys(cf(this.path)===e,"Can't get a merge for a child not on the path of the operation"),new km(this.source,df(this.path),this.children)}toString(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"}}class Sm{constructor(e,t,n){this.node_=e,this.fullyInitialized_=t,this.filtered_=n}isFullyInitialized(){return this.fullyInitialized_}isFiltered(){return this.filtered_}isCompleteForPath(e){if(gf(e))return this.isFullyInitialized()&&!this.filtered_;const t=cf(e);return this.isCompleteForChild(t)}isCompleteForChild(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)}getNode(){return this.node_}}class Om{constructor(e){this.query_=e,this.index_=this.query_._queryParams.getIndex()}}function Am(e,t,n,r,i,o){const a=r.filter((e=>e.type===n));a.sort(((t,n)=>function(e,t,n){if(null==t.childName||null==n.childName)throw _s("Should only compare child_ events.");const r=new Sf(t.childName,t.snapshotNode),i=new Sf(n.childName,n.snapshotNode);return e.index_.compare(r,i)}(e,t,n))),a.forEach((n=>{const r=function(e,t,n){return"value"===t.type||"child_removed"===t.type||(t.prevName=n.getPredecessorChildName(t.childName,t.snapshotNode,e.index_)),t}(e,n,o);i.forEach((i=>{i.respondsTo(n.type)&&t.push(i.createEvent(r,e.query_))}))}))}function jm(e,t){return{eventCache:e,serverCache:t}}function Pm(e,t,n,r){return jm(new Sm(t,n,r),e.serverCache)}function Im(e,t,n,r){return jm(e.eventCache,new Sm(t,n,r))}function Lm(e){return e.eventCache.isFullyInitialized()?e.eventCache.getNode():null}function Rm(e){return e.serverCache.isFullyInitialized()?e.serverCache.getNode():null}let Nm;class Dm{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Nm||(Nm=new Rf(Eh)),Nm);this.value=e,this.children=t}static fromObject(e){let t=new Dm(null);return Sh(e,((e,n)=>{t=t.set(new sf(e),n)})),t}isEmpty(){return null===this.value&&this.children.isEmpty()}findRootMostMatchingPathAndValue(e,t){if(null!=this.value&&t(this.value))return{path:lf(),value:this.value};if(gf(e))return null;{const n=cf(e),r=this.children.get(n);if(null!==r){const i=r.findRootMostMatchingPathAndValue(df(e),t);if(null!=i){return{path:mf(new sf(n),i.path),value:i.value}}return null}return null}}findRootMostValueAndPath(e){return this.findRootMostMatchingPathAndValue(e,(()=>!0))}subtree(e){if(gf(e))return this;{const t=cf(e),n=this.children.get(t);return null!==n?n.subtree(df(e)):new Dm(null)}}set(e,t){if(gf(e))return new Dm(t,this.children);{const n=cf(e),r=(this.children.get(n)||new Dm(null)).set(df(e),t),i=this.children.insert(n,r);return new Dm(this.value,i)}}remove(e){if(gf(e))return this.children.isEmpty()?new Dm(null):new Dm(null,this.children);{const t=cf(e),n=this.children.get(t);if(n){const r=n.remove(df(e));let i;return i=r.isEmpty()?this.children.remove(t):this.children.insert(t,r),null===this.value&&i.isEmpty()?new Dm(null):new Dm(this.value,i)}return this}}get(e){if(gf(e))return this.value;{const t=cf(e),n=this.children.get(t);return n?n.get(df(e)):null}}setTree(e,t){if(gf(e))return t;{const n=cf(e),r=(this.children.get(n)||new Dm(null)).setTree(df(e),t);let i;return i=r.isEmpty()?this.children.remove(n):this.children.insert(n,r),new Dm(this.value,i)}}fold(e){return this.fold_(lf(),e)}fold_(e,t){const n={};return this.children.inorderTraversal(((r,i)=>{n[r]=i.fold_(mf(e,r),t)})),t(e,this.value,n)}findOnPath(e,t){return this.findOnPath_(e,lf(),t)}findOnPath_(e,t,n){const r=!!this.value&&n(t,this.value);if(r)return r;if(gf(e))return null;{const r=cf(e),i=this.children.get(r);return i?i.findOnPath_(df(e),mf(t,r),n):null}}foreachOnPath(e,t){return this.foreachOnPath_(e,lf(),t)}foreachOnPath_(e,t,n){if(gf(e))return this;{this.value&&n(t,this.value);const r=cf(e),i=this.children.get(r);return i?i.foreachOnPath_(df(e),mf(t,r),n):new Dm(null)}}foreach(e){this.foreach_(lf(),e)}foreach_(e,t){this.children.inorderTraversal(((n,r)=>{r.foreach_(mf(e,n),t)})),this.value&&t(e,this.value)}foreachChild(e){this.children.inorderTraversal(((t,n)=>{n.value&&e(t,n.value)}))}}class Mm{constructor(e){this.writeTree_=e}static empty(){return new Mm(new Dm(null))}}function Bm(e,t,n){if(gf(t))return new Mm(new Dm(n));{const r=e.writeTree_.findRootMostValueAndPath(t);if(null!=r){const i=r.path;let o=r.value;const a=vf(i,t);return o=o.updateChild(a,n),new Mm(e.writeTree_.set(i,o))}{const r=new Dm(n),i=e.writeTree_.setTree(t,r);return new Mm(i)}}}function Qm(e,t,n){let r=e;return Sh(n,((e,n)=>{r=Bm(r,mf(t,e),n)})),r}function Um(e,t){if(gf(t))return Mm.empty();{const n=e.writeTree_.setTree(t,new Dm(null));return new Mm(n)}}function Fm(e,t){return null!=zm(e,t)}function zm(e,t){const n=e.writeTree_.findRootMostValueAndPath(t);return null!=n?e.writeTree_.get(n.path).getChild(vf(n.path,t)):null}function qm(e){const t=[],n=e.writeTree_.value;return null!=n?n.isLeafNode()||n.forEachChild(Hf,((e,n)=>{t.push(new Sf(e,n))})):e.writeTree_.children.inorderTraversal(((e,n)=>{null!=n.value&&t.push(new Sf(e,n.value))})),t}function Hm(e,t){if(gf(t))return e;{const n=zm(e,t);return new Mm(null!=n?new Dm(n):e.writeTree_.subtree(t))}}function Wm(e){return e.writeTree_.isEmpty()}function Gm(e,t){return Vm(lf(),e.writeTree_,t)}function Vm(e,t,n){if(null!=t.value)return n.updateChild(e,t.value);{let r=null;return t.children.inorderTraversal(((t,i)=>{".priority"===t?(ys(null!==i.value,"Priority writes must always be leaf nodes"),r=i.value):n=Vm(mf(e,t),i,n)})),n.getChild(e).isEmpty()||null===r||(n=n.updateChild(mf(e,".priority"),r)),n}}function $m(e,t){return sg(t,e)}function Km(e,t){const n=e.allWrites.findIndex((e=>e.writeId===t));ys(n>=0,"removeWrite called with nonexistent writeId.");const r=e.allWrites[n];e.allWrites.splice(n,1);let i=r.visible,o=!1,a=e.allWrites.length-1;for(;i&&a>=0;){const t=e.allWrites[a];t.visible&&(a>=n&&Ym(t,r.path)?i=!1:_f(r.path,t.path)&&(o=!0)),a--}if(i){if(o)return function(e){e.visibleWrites=Jm(e.allWrites,Zm,lf()),e.allWrites.length>0?e.lastWriteId=e.allWrites[e.allWrites.length-1].writeId:e.lastWriteId=-1}(e),!0;if(r.snap)e.visibleWrites=Um(e.visibleWrites,r.path);else{Sh(r.children,(t=>{e.visibleWrites=Um(e.visibleWrites,mf(r.path,t))}))}return!0}return!1}function Ym(e,t){if(e.snap)return _f(e.path,t);for(const n in e.children)if(e.children.hasOwnProperty(n)&&_f(mf(e.path,n),t))return!0;return!1}function Zm(e){return e.visible}function Jm(e,t,n){let r=Mm.empty();for(let i=0;i{r=r.updateImmediateChild(e,t)})),r;if(n){const i=Hm(e.visibleWrites,t);return n.forEachChild(Hf,((e,t)=>{const n=Gm(Hm(i,new sf(e)),t);r=r.updateImmediateChild(e,n)})),qm(i).forEach((e=>{r=r.updateImmediateChild(e.name,e.node)})),r}return qm(Hm(e.visibleWrites,t)).forEach((e=>{r=r.updateImmediateChild(e.name,e.node)})),r}(e.writeTree,e.treePath,t)}function ng(e,t,n,r){return function(e,t,n,r,i){ys(r||i,"Either existingEventSnap or existingServerSnap must exist");const o=mf(t,n);if(Fm(e.visibleWrites,o))return null;{const t=Hm(e.visibleWrites,o);return Wm(t)?i.getChild(n):Gm(t,i.getChild(n))}}(e.writeTree,e.treePath,t,n,r)}function rg(e,t){return function(e,t){return zm(e.visibleWrites,t)}(e.writeTree,mf(e.treePath,t))}function ig(e,t,n,r,i,o){return function(e,t,n,r,i,o,a){let s;const l=Hm(e.visibleWrites,t),c=zm(l,lf());if(null!=c)s=c;else{if(null==n)return[];s=Gm(l,n)}if(s=s.withIndex(a),s.isEmpty()||s.isLeafNode())return[];{const e=[],t=a.getCompare(),n=o?s.getReverseIteratorFrom(r,a):s.getIteratorFrom(r,a);let l=n.getNext();for(;l&&e.length2&&void 0!==arguments[2]?arguments[2]:null;this.writes_=e,this.viewCache_=t,this.optCompleteServerCache_=n}getCompleteChild(e){const t=this.viewCache_.eventCache;if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);{const t=null!=this.optCompleteServerCache_?new Sm(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return og(this.writes_,e,t)}}getChildAfterChild(e,t,n){const r=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:Rm(this.viewCache_),i=ig(this.writes_,r,t,1,n,e);return 0===i.length?null:i[0]}}function dg(e,t,n,r,i){const o=new lg;let a,s;if(n.type===xm.OVERWRITE){const l=n;l.source.fromUser?a=fg(e,t,l.path,l.snap,r,i,o):(ys(l.source.fromServer,"Unknown source."),s=l.source.tagged||t.serverCache.isFiltered()&&!gf(l.path),a=hg(e,t,l.path,l.snap,r,i,s,o))}else if(n.type===xm.MERGE){const l=n;l.source.fromUser?a=function(e,t,n,r,i,o,a){let s=t;return r.foreach(((r,l)=>{const c=mf(n,r);mg(t,cf(c))&&(s=fg(e,s,c,l,i,o,a))})),r.foreach(((r,l)=>{const c=mf(n,r);mg(t,cf(c))||(s=fg(e,s,c,l,i,o,a))})),s}(e,t,l.path,l.children,r,i,o):(ys(l.source.fromServer,"Unknown source."),s=l.source.tagged||t.serverCache.isFiltered(),a=vg(e,t,l.path,l.children,r,i,s,o))}else if(n.type===xm.ACK_USER_WRITE){const s=n;a=s.revert?function(e,t,n,r,i,o){let a;if(null!=rg(r,n))return t;{const s=new ug(r,t,i),l=t.eventCache.getNode();let c;if(gf(n)||".priority"===cf(n)){let n;if(t.serverCache.isFullyInitialized())n=eg(r,Rm(t));else{const e=t.serverCache.getNode();ys(e instanceof Jf,"serverChildren would be complete if leaf node"),n=tg(r,e)}c=e.filter.updateFullNode(l,n,o)}else{const i=cf(n);let u=og(r,i,t.serverCache);null==u&&t.serverCache.isCompleteForChild(i)&&(u=l.getImmediateChild(i)),c=null!=u?e.filter.updateChild(l,i,u,df(n),s,o):t.eventCache.getNode().hasChild(i)?e.filter.updateChild(l,i,Jf.EMPTY_NODE,df(n),s,o):l,c.isEmpty()&&t.serverCache.isFullyInitialized()&&(a=eg(r,Rm(t)),a.isLeafNode()&&(c=e.filter.updateFullNode(c,a,o)))}return a=t.serverCache.isFullyInitialized()||null!=rg(r,lf()),Pm(t,c,a,e.filter.filtersNodes())}}(e,t,s.path,r,i,o):function(e,t,n,r,i,o,a){if(null!=rg(i,n))return t;const s=t.serverCache.isFiltered(),l=t.serverCache;if(null!=r.value){if(gf(n)&&l.isFullyInitialized()||l.isCompleteForPath(n))return hg(e,t,n,l.getNode().getChild(n),i,o,s,a);if(gf(n)){let r=new Dm(null);return l.getNode().forEachChild(Pf,((e,t)=>{r=r.set(new sf(e),t)})),vg(e,t,n,r,i,o,s,a)}return t}{let c=new Dm(null);return r.foreach(((e,t)=>{const r=mf(n,e);l.isCompleteForPath(r)&&(c=c.set(e,l.getNode().getChild(r)))})),vg(e,t,n,c,i,o,s,a)}}(e,t,s.path,s.affectedTree,r,i,o)}else{if(n.type!==xm.LISTEN_COMPLETE)throw _s("Unknown operation type: "+n.type);a=function(e,t,n,r,i){const o=t.serverCache,a=Im(t,o.getNode(),o.isFullyInitialized()||gf(n),o.isFiltered());return pg(e,a,n,r,cg,i)}(e,t,n.path,r,o)}const l=o.getChanges();return function(e,t,n){const r=t.eventCache;if(r.isFullyInitialized()){const i=r.getNode().isLeafNode()||r.getNode().isEmpty(),o=Lm(e);(n.length>0||!e.eventCache.isFullyInitialized()||i&&!r.getNode().equals(o)||!r.getNode().getPriority().equals(o.getPriority()))&&n.push(im(Lm(t)))}}(t,a,l),{viewCache:a,changes:l}}function pg(e,t,n,r,i,o){const a=t.eventCache;if(null!=rg(r,n))return t;{let s,l;if(gf(n))if(ys(t.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),t.serverCache.isFiltered()){const n=Rm(t),i=tg(r,n instanceof Jf?n:Jf.EMPTY_NODE);s=e.filter.updateFullNode(t.eventCache.getNode(),i,o)}else{const n=eg(r,Rm(t));s=e.filter.updateFullNode(t.eventCache.getNode(),n,o)}else{const c=cf(n);if(".priority"===c){ys(1===uf(n),"Can't have a priority with additional path components");const i=a.getNode();l=t.serverCache.getNode();const o=ng(r,n,i,l);s=null!=o?e.filter.updatePriority(i,o):a.getNode()}else{const u=df(n);let d;if(a.isCompleteForChild(c)){l=t.serverCache.getNode();const e=ng(r,n,a.getNode(),l);d=null!=e?a.getNode().getImmediateChild(c).updateChild(u,e):a.getNode().getImmediateChild(c)}else d=og(r,c,t.serverCache);s=null!=d?e.filter.updateChild(a.getNode(),c,d,u,i,o):a.getNode()}}return Pm(t,s,a.isFullyInitialized()||gf(n),e.filter.filtersNodes())}}function hg(e,t,n,r,i,o,a,s){const l=t.serverCache;let c;const u=a?e.filter:e.filter.getIndexedFilter();if(gf(n))c=u.updateFullNode(l.getNode(),r,null);else if(u.filtersNodes()&&!l.isFiltered()){const e=l.getNode().updateChild(n,r);c=u.updateFullNode(l.getNode(),e,null)}else{const e=cf(n);if(!l.isCompleteForPath(n)&&uf(n)>1)return t;const i=df(n),o=l.getNode().getImmediateChild(e).updateChild(i,r);c=".priority"===e?u.updatePriority(l.getNode(),o):u.updateChild(l.getNode(),e,o,i,cg,null)}const d=Im(t,c,l.isFullyInitialized()||gf(n),u.filtersNodes());return pg(e,d,n,i,new ug(i,d,o),s)}function fg(e,t,n,r,i,o,a){const s=t.eventCache;let l,c;const u=new ug(i,t,o);if(gf(n))c=e.filter.updateFullNode(t.eventCache.getNode(),r,a),l=Pm(t,c,!0,e.filter.filtersNodes());else{const i=cf(n);if(".priority"===i)c=e.filter.updatePriority(t.eventCache.getNode(),r),l=Pm(t,c,s.isFullyInitialized(),s.isFiltered());else{const o=df(n),c=s.getNode().getImmediateChild(i);let d;if(gf(o))d=r;else{const e=u.getCompleteChild(i);d=null!=e?".priority"===pf(o)&&e.getChild(ff(o)).isEmpty()?e:e.updateChild(o,r):Jf.EMPTY_NODE}if(c.equals(d))l=t;else{l=Pm(t,e.filter.updateChild(s.getNode(),i,d,o,u,a),s.isFullyInitialized(),e.filter.filtersNodes())}}}return l}function mg(e,t){return e.eventCache.isCompleteForChild(t)}function gg(e,t,n){return n.foreach(((e,n)=>{t=t.updateChild(e,n)})),t}function vg(e,t,n,r,i,o,a,s){if(t.serverCache.getNode().isEmpty()&&!t.serverCache.isFullyInitialized())return t;let l,c=t;l=gf(n)?r:new Dm(null).setTree(n,r);const u=t.serverCache.getNode();return l.children.inorderTraversal(((n,r)=>{if(u.hasChild(n)){const l=gg(0,t.serverCache.getNode().getImmediateChild(n),r);c=hg(e,c,new sf(n),l,i,o,a,s)}})),l.children.inorderTraversal(((n,r)=>{const l=!t.serverCache.isCompleteForChild(n)&&null===r.value;if(!u.hasChild(n)&&!l){const l=gg(0,t.serverCache.getNode().getImmediateChild(n),r);c=hg(e,c,new sf(n),l,i,o,a,s)}})),c}class bg{constructor(e,t){this.query_=e,this.eventRegistrations_=[];const n=this.query_._queryParams,r=new lm(n.getIndex()),i=(o=n).loadsAllData()?new lm(o.getIndex()):o.hasLimit()?new um(o):new cm(o);var o;this.processor_=function(e){return{filter:e}}(i);const a=t.serverCache,s=t.eventCache,l=r.updateFullNode(Jf.EMPTY_NODE,a.getNode(),null),c=i.updateFullNode(Jf.EMPTY_NODE,s.getNode(),null),u=new Sm(l,a.isFullyInitialized(),r.filtersNodes()),d=new Sm(c,s.isFullyInitialized(),i.filtersNodes());this.viewCache_=jm(d,u),this.eventGenerator_=new Om(this.query_)}get query(){return this.query_}}function yg(e,t){const n=Rm(e.viewCache_);return n&&(e.query._queryParams.loadsAllData()||!gf(t)&&!n.getImmediateChild(cf(t)).isEmpty())?n.getChild(t):null}function _g(e){return 0===e.eventRegistrations_.length}function xg(e,t,n){const r=[];if(n){ys(null==t,"A cancel should cancel all event registrations.");const i=e.query._path;e.eventRegistrations_.forEach((e=>{const t=e.createCancelEvent(n,i);t&&r.push(t)}))}if(t){let n=[];for(let r=0;r{var n;"child_changed"===t.type&&e.index_.indexedValueChanged(t.oldSnap,t.snapshotNode)&&o.push((n=t.childName,{type:"child_moved",snapshotNode:t.snapshotNode,childName:n}))})),Am(e,i,"child_removed",t,r,n),Am(e,i,"child_added",t,r,n),Am(e,i,"child_moved",o,r,n),Am(e,i,"child_changed",t,r,n),Am(e,i,"value",t,r,n),i}(e.eventGenerator_,t,n,i)}let Tg,Cg;class kg{constructor(){this.views=new Map}}function Sg(e,t,n,r){const i=t.source.queryId;if(null!==i){const o=e.views.get(i);return ys(null!=o,"SyncTree gave us an op for an invalid query."),wg(o,t,n,r)}{let i=[];for(const o of e.views.values())i=i.concat(wg(o,t,n,r));return i}}function Og(e,t,n,r,i){const o=t._queryIdentifier,a=e.views.get(o);if(!a){let e=eg(n,i?r:null),o=!1;e?o=!0:r instanceof Jf?(e=tg(n,r),o=!1):(e=Jf.EMPTY_NODE,o=!1);const a=jm(new Sm(e,o,!1),new Sm(r,i,!1));return new bg(t,a)}return a}function Ag(e,t,n,r,i,o){const a=Og(e,t,r,i,o);return e.views.has(t._queryIdentifier)||e.views.set(t._queryIdentifier,a),function(e,t){e.eventRegistrations_.push(t)}(a,n),function(e,t){const n=e.viewCache_.eventCache,r=[];n.getNode().isLeafNode()||n.getNode().forEachChild(Hf,((e,t)=>{r.push(om(e,t))}));return n.isFullyInitialized()&&r.push(im(n.getNode())),Eg(e,r,n.getNode(),t)}(a,n)}function jg(e,t,n,r){const i=t._queryIdentifier,o=[];let a=[];const s=Ng(e);if("default"===i)for(const[l,c]of e.views.entries())a=a.concat(xg(c,n,r)),_g(c)&&(e.views.delete(l),c.query._queryParams.loadsAllData()||o.push(c.query));else{const t=e.views.get(i);t&&(a=a.concat(xg(t,n,r)),_g(t)&&(e.views.delete(i),t.query._queryParams.loadsAllData()||o.push(t.query)))}return s&&!Ng(e)&&o.push(new(ys(Tg,"Reference.ts has not been loaded"),Tg)(t._repo,t._path)),{removed:o,events:a}}function Pg(e){const t=[];for(const n of e.views.values())n.query._queryParams.loadsAllData()||t.push(n);return t}function Ig(e,t){let n=null;for(const r of e.views.values())n=n||yg(r,t);return n}function Lg(e,t){if(t._queryParams.loadsAllData())return Dg(e);{const n=t._queryIdentifier;return e.views.get(n)}}function Rg(e,t){return null!=Lg(e,t)}function Ng(e){return null!=Dg(e)}function Dg(e){for(const t of e.views.values())if(t.query._queryParams.loadsAllData())return t;return null}let Mg=1;class Bg{constructor(e){this.listenProvider_=e,this.syncPointTree_=new Dm(null),this.pendingWriteTree_={visibleWrites:Mm.empty(),allWrites:[],lastWriteId:-1},this.tagToQueryMap=new Map,this.queryToTagMap=new Map}}function Qg(e,t,n,r,i){return function(e,t,n,r,i){ys(r>e.lastWriteId,"Stacking an older write on top of newer ones"),void 0===i&&(i=!0),e.allWrites.push({path:t,snap:n,writeId:r,visible:i}),i&&(e.visibleWrites=Bm(e.visibleWrites,t,n)),e.lastWriteId=r}(e.pendingWriteTree_,t,n,r,i),i?$g(e,new Cm({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},t,n)):[]}function Ug(e,t,n,r){!function(e,t,n,r){ys(r>e.lastWriteId,"Stacking an older merge on top of newer ones"),e.allWrites.push({path:t,children:n,writeId:r,visible:!0}),e.visibleWrites=Qm(e.visibleWrites,t,n),e.lastWriteId=r}(e.pendingWriteTree_,t,n,r);const i=Dm.fromObject(n);return $g(e,new km({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},t,i))}function Fg(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=function(e,t){for(let n=0;n{t=t.set(new sf(e),!0)})),$g(e,new Em(r.path,t,n))}return[]}function zg(e,t,n){return $g(e,new Cm({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t,n))}function qg(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=t._path,a=e.syncPointTree_.get(o);let s=[];if(a&&("default"===t._queryIdentifier||Rg(a,t))){const l=jg(a,t,n,r);0===a.views.size&&(e.syncPointTree_=e.syncPointTree_.remove(o));const c=l.removed;if(s=l.events,!i){const n=-1!==c.findIndex((e=>e._queryParams.loadsAllData())),i=e.syncPointTree_.findOnPath(o,((e,t)=>Ng(t)));if(n&&!i){const t=e.syncPointTree_.subtree(o);if(!t.isEmpty()){const n=function(e){return e.fold(((e,t,n)=>{if(t&&Ng(t)){return[Dg(t)]}{let e=[];return t&&(e=Pg(t)),Sh(n,((t,n)=>{e=e.concat(n)})),e}}))}(t);for(let t=0;t0&&!r)if(n){const n=null;e.listenProvider_.stopListening(rv(t),n)}else c.forEach((t=>{const n=e.queryToTagMap.get(Xg(t));e.listenProvider_.stopListening(rv(t),n)}))}!function(e,t){for(let n=0;n3&&void 0!==arguments[3]&&arguments[3];const i=t._path;let o=null,a=!1;e.syncPointTree_.foreachOnPath(i,((e,t)=>{const n=vf(e,i);o=o||Ig(t,n),a=a||Ng(t)}));let s,l=e.syncPointTree_.get(i);if(l?(a=a||Ng(l),o=o||Ig(l,lf())):(l=new kg,e.syncPointTree_=e.syncPointTree_.set(i,l)),null!=o)s=!0;else{s=!1,o=Jf.EMPTY_NODE;e.syncPointTree_.subtree(i).foreachChild(((e,t)=>{const n=Ig(t,lf());n&&(o=o.updateImmediateChild(e,n))}))}const c=Rg(l,t);if(!c&&!t._queryParams.loadsAllData()){const n=Xg(t);ys(!e.queryToTagMap.has(n),"View does not exist, but we have a tag");const r=Mg++;e.queryToTagMap.set(n,r),e.tagToQueryMap.set(r,n)}let u=Ag(l,t,n,$m(e.pendingWriteTree_,i),o,s);if(!c&&!a&&!r){const n=Lg(l,t);u=u.concat(function(e,t,n){const r=t._path,i=Jg(e,t),o=Zg(e,n),a=e.listenProvider_.startListening(rv(t),i,o.hashFn,o.onComplete),s=e.syncPointTree_.subtree(r);if(i)ys(!Ng(s.value),"If we're adding a query, it shouldn't be shadowed");else{const t=s.fold(((e,t,n)=>{if(!gf(e)&&t&&Ng(t))return[Dg(t).query];{let e=[];return t&&(e=e.concat(Pg(t).map((e=>e.query)))),Sh(n,((t,n)=>{e=e.concat(n)})),e}}));for(let n=0;n{const r=Ig(n,vf(e,t));if(r)return r}));return Xm(r,t,i,n,!0)}function Vg(e,t){const n=t._path;let r=null;e.syncPointTree_.foreachOnPath(n,((e,t)=>{const i=vf(e,n);r=r||Ig(t,i)}));let i=e.syncPointTree_.get(n);i?r=r||Ig(i,lf()):(i=new kg,e.syncPointTree_=e.syncPointTree_.set(n,i));const o=null!=r,a=o?new Sm(r,!0,!1):null;return function(e){return Lm(e.viewCache_)}(Og(i,t,$m(e.pendingWriteTree_,t._path),o?a.getNode():Jf.EMPTY_NODE,o))}function $g(e,t){return Kg(t,e.syncPointTree_,null,$m(e.pendingWriteTree_,lf()))}function Kg(e,t,n,r){if(gf(e.path))return Yg(e,t,n,r);{const i=t.get(lf());null==n&&null!=i&&(n=Ig(i,lf()));let o=[];const a=cf(e.path),s=e.operationForChild(a),l=t.children.get(a);if(l&&s){const e=n?n.getImmediateChild(a):null,t=ag(r,a);o=o.concat(Kg(s,l,e,t))}return i&&(o=o.concat(Sg(i,e,r,n))),o}}function Yg(e,t,n,r){const i=t.get(lf());null==n&&null!=i&&(n=Ig(i,lf()));let o=[];return t.children.inorderTraversal(((t,i)=>{const a=n?n.getImmediateChild(t):null,s=ag(r,t),l=e.operationForChild(t);l&&(o=o.concat(Yg(l,i,a,s)))})),i&&(o=o.concat(Sg(i,e,r,n))),o}function Zg(e,t){const n=t.query,r=Jg(e,n);return{hashFn:()=>{const e=function(e){return e.viewCache_.serverCache.getNode()}(t)||Jf.EMPTY_NODE;return e.hash()},onComplete:t=>{if("ok"===t)return r?function(e,t,n){const r=ev(e,n);if(r){const n=tv(r),i=n.path,o=n.queryId,a=vf(i,t);return nv(e,i,new Tm(wm(o),a))}return[]}(e,n._path,r):function(e,t){return $g(e,new Tm({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t))}(e,n._path);{const r=function(e,t){let n="Unknown Error";"too_big"===e?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===e?n="Client doesn't have permission to access the desired data.":"unavailable"===e&&(n="The service is unavailable");const r=new Error(e+" at "+t._path.toString()+": "+n);return r.code=e.toUpperCase(),r}(t,n);return qg(e,n,null,r)}}}}function Jg(e,t){const n=Xg(t);return e.queryToTagMap.get(n)}function Xg(e){return e._path.toString()+"$"+e._queryIdentifier}function ev(e,t){return e.tagToQueryMap.get(t)}function tv(e){const t=e.indexOf("$");return ys(-1!==t&&t{const i=pv(r,t.getImmediateChild(e),n);i!==r&&(o=o.updateImmediateChild(e,i))})),o}}class hv{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{children:{},childCount:0};this.name=e,this.parent=t,this.node=n}}function fv(e,t){let n=t instanceof sf?t:new sf(t),r=e,i=cf(n);for(;null!==i;){const e=$s(r.node.children,i)||{children:{},childCount:0};r=new hv(i,r,e),n=df(n),i=cf(n)}return r}function mv(e){return e.node.value}function gv(e,t){e.node.value=t,xv(e)}function vv(e){return e.node.childCount>0}function bv(e,t){Sh(e.node.children,((n,r)=>{t(new hv(n,e,r))}))}function yv(e,t,n,r){n&&!r&&t(e),bv(e,(e=>{yv(e,t,!0,r)})),n&&r&&t(e)}function _v(e){return new sf(null===e.parent?e.name:_v(e.parent)+"/"+e.name)}function xv(e){null!==e.parent&&function(e,t,n){const r=function(e){return void 0===mv(e)&&!vv(e)}(n),i=Vs(e.node.children,t);r&&i?(delete e.node.children[t],e.node.childCount--,xv(e)):r||i||(e.node.children[t]=n.node,e.node.childCount++,xv(e))}(e.parent,e.name,e)}const wv=/[\[\].#$\/\u0000-\u001F\u007F]/,Ev=/[\[\].#$\u0000-\u001F\u007F]/,Tv=10485760,Cv=function(e){return"string"===typeof e&&0!==e.length&&!wv.test(e)},kv=function(e){return"string"===typeof e&&0!==e.length&&!Ev.test(e)},Sv=function(e){return null===e||"string"===typeof e||"number"===typeof e&&!yh(e)||e&&"object"===typeof e&&Vs(e,".sv")},Ov=function(e,t,n,r){r&&void 0===t||Av(ol(e,"value"),t,n)},Av=function(e,t,n){const r=n instanceof sf?new xf(n,e):n;if(void 0===t)throw new Error(e+"contains undefined "+Ef(r));if("function"===typeof t)throw new Error(e+"contains a function "+Ef(r)+" with contents = "+t.toString());if(yh(t))throw new Error(e+"contains "+t.toString()+" "+Ef(r));if("string"===typeof t&&t.length>Tv/3&&al(t)>Tv)throw new Error(e+"contains a string greater than "+Tv+" utf8 bytes "+Ef(r)+" ('"+t.substring(0,50)+"...')");if(t&&"object"===typeof t){let n=!1,i=!1;if(Sh(t,((t,o)=>{if(".value"===t)n=!0;else if(".priority"!==t&&".sv"!==t&&(i=!0,!Cv(t)))throw new Error(e+" contains an invalid key ("+t+") "+Ef(r)+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');!function(e,t){e.parts_.length>0&&(e.byteLength_+=1),e.parts_.push(t),e.byteLength_+=al(t),wf(e)}(r,t),Av(e,o,r),function(e){const t=e.parts_.pop();e.byteLength_-=al(t),e.parts_.length>0&&(e.byteLength_-=1)}(r)})),n&&i)throw new Error(e+' contains ".value" child '+Ef(r)+" in addition to actual children.")}},jv=function(e,t,n,r){if(r&&void 0===t)return;const i=ol(e,"values");if(!t||"object"!==typeof t||Array.isArray(t))throw new Error(i+" must be an object containing the children to replace.");const o=[];Sh(t,((e,t)=>{const r=new sf(e);if(Av(i,t,mf(n,r)),".priority"===pf(r)&&!Sv(t))throw new Error(i+"contains an invalid value for '"+r.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");o.push(r)})),function(e,t){let n,r;for(n=0;nyf(e,t)))}function Bv(e,t,n){Dv(e,n),Qv(e,(e=>_f(e,t)||_f(t,e)))}function Qv(e,t){e.recursionDepth_++;let n=!0;for(let r=0;r=0)e.server_=new fm(e.repoInfo_,((t,n,r,i)=>{Vv(e,t,n,r,i)}),e.authTokenProvider_,e.appCheckProvider_),setTimeout((()=>$v(e,!0)),0);else{if("undefined"!==typeof n&&null!==n){if("object"!==typeof n)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{Ws(n)}catch(r){throw new Error("Invalid authOverride provided: "+r)}}e.persistentConnection_=new kf(e.repoInfo_,t,((t,n,r,i)=>{Vv(e,t,n,r,i)}),(t=>{$v(e,t)}),(t=>{!function(e,t){Sh(t,((t,n)=>{Kv(e,t,n)}))}(e,t)}),e.authTokenProvider_,e.appCheckProvider_,n),e.server_=e.persistentConnection_}e.authTokenProvider_.addTokenChangeListener((t=>{e.server_.refreshAuthToken(t)})),e.appCheckProvider_.addTokenChangeListener((t=>{e.server_.refreshAppCheckToken(t.token)})),e.statsReporter_=function(e,t){const n=e.toString();return Wh[n]||(Wh[n]=t()),Wh[n]}(e.repoInfo_,(()=>new _m(e.stats_,e.server_))),e.infoData_=new mm,e.infoSyncTree_=new Bg({startListening:(t,n,r,i)=>{let o=[];const a=e.infoData_.getNode(t._path);return a.isEmpty()||(o=zg(e.infoSyncTree_,t._path,a),setTimeout((()=>{i("ok")}),0)),o},stopListening:()=>{}}),Kv(e,"connected",!1),e.serverSyncTree_=new Bg({startListening:(t,n,r,i)=>(e.server_.listen(t,r,n,((n,r)=>{const o=i(n,r);Bv(e.eventQueue_,t._path,o)})),[]),stopListening:(t,n)=>{e.server_.unlisten(t,n)}})}function Wv(e){const t=e.infoData_.getNode(new sf(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+t}function Gv(e){return av({timestamp:Wv(e)})}function Vv(e,t,n,r,i){e.dataUpdateCount++;const o=new sf(t);n=e.interceptServerDataCallback_?e.interceptServerDataCallback_(t,n):n;let a=[];if(i)if(r){const t=Ys(n,(e=>tm(e)));a=function(e,t,n,r){const i=ev(e,r);if(i){const r=tv(i),o=r.path,a=r.queryId,s=vf(o,t),l=Dm.fromObject(n);return nv(e,o,new km(wm(a),s,l))}return[]}(e.serverSyncTree_,o,t,i)}else{const t=tm(n);a=Hg(e.serverSyncTree_,o,t,i)}else if(r){const t=Ys(n,(e=>tm(e)));a=function(e,t,n){const r=Dm.fromObject(n);return $g(e,new km({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t,r))}(e.serverSyncTree_,o,t)}else{const t=tm(n);a=zg(e.serverSyncTree_,o,t)}let s=o;a.length>0&&(s=ib(e,o)),Bv(e.eventQueue_,s,a)}function $v(e,t){Kv(e,"connected",t),!1===t&&function(e){eb(e,"onDisconnectEvents");const t=Gv(e),n=gm();bm(e.onDisconnect_,lf(),((r,i)=>{const o=uv(r,i,e.serverSyncTree_,t);vm(n,r,o)}));let r=[];bm(n,lf(),((t,n)=>{r=r.concat(zg(e.serverSyncTree_,t,n));const i=cb(e,t);ib(e,i)})),e.onDisconnect_=gm(),Bv(e.eventQueue_,lf(),r)}(e)}function Kv(e,t,n){const r=new sf("/.info/"+t),i=tm(n);e.infoData_.updateSnapshot(r,i);const o=zg(e.infoSyncTree_,r,i);Bv(e.eventQueue_,r,o)}function Yv(e){return e.nextWriteId_++}function Zv(e,t,n,r,i){eb(e,"set",{path:t.toString(),value:n,priority:r});const o=Gv(e),a=tm(n,r),s=Gg(e.serverSyncTree_,t),l=dv(a,s,o),c=Yv(e),u=Qg(e.serverSyncTree_,t,l,c,!0);Dv(e.eventQueue_,u),e.server_.put(t.toString(),a.val(!0),((n,r)=>{const o="ok"===n;o||bh("set at "+t+" failed: "+n);const a=Fg(e.serverSyncTree_,c,!o);Bv(e.eventQueue_,t,a),tb(e,i,n,r)}));const d=cb(e,t);ib(e,d),Bv(e.eventQueue_,d,[])}function Jv(e,t,n){let r;r=".info"===cf(t._path)?qg(e.infoSyncTree_,t,n):qg(e.serverSyncTree_,t,n),Mv(e.eventQueue_,t._path,r)}function Xv(e){e.persistentConnection_&&e.persistentConnection_.interrupt(Fv)}function eb(e){let t="";e.persistentConnection_&&(t=e.persistentConnection_.id+":");for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{if("ok"===n)t(null);else{const e=(n||"error").toUpperCase();let i=e;r&&(i+=": "+r);const o=new Error(i);o.code=e,t(o)}}))}function nb(e,t,n){return Gg(e.serverSyncTree_,t,n)||Jf.EMPTY_NODE}function rb(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.transactionQueueTree_;if(t||lb(e,t),mv(t)){const n=ab(e,t);ys(n.length>0,"Sending zero length transaction queue");n.every((e=>0===e.status))&&function(e,t,n){const r=n.map((e=>e.currentWriteId)),i=nb(e,t,r);let o=i;const a=i.hash();for(let c=0;c{eb(e,"transaction put response",{path:l.toString(),status:r});let i=[];if("ok"===r){const r=[];for(let t=0;tn[t].onComplete(null,!0,n[t].currentOutputSnapshotResolved))),n[t].unwatcher();lb(e,fv(e.transactionQueueTree_,t)),rb(e,e.transactionQueueTree_),Bv(e.eventQueue_,t,i);for(let e=0;e{rb(e,t)}))}function ib(e,t){const n=ob(e,t),r=_v(n);return function(e,t,n){if(0===t.length)return;const r=[];let i=[];const o=t.filter((e=>0===e.status)),a=o.map((e=>e.currentWriteId));for(let l=0;l=zv)d=!0,u="maxretry",i=i.concat(Fg(e.serverSyncTree_,o.currentWriteId,!0));else{const n=nb(e,o.path,a);o.currentInputSnapshot=n;const r=t[l].update(n.val());if(void 0!==r){Av("transaction failed: Data returned ",r,o.path);let t=tm(r);"object"===typeof r&&null!=r&&Vs(r,".priority")||(t=t.updatePriority(n.getPriority()));const s=o.currentWriteId,l=Gv(e),c=dv(t,n,l);o.currentOutputSnapshotRaw=t,o.currentOutputSnapshotResolved=c,o.currentWriteId=Yv(e),a.splice(a.indexOf(s),1),i=i.concat(Qg(e.serverSyncTree_,o.path,c,o.currentWriteId,o.applyLocally)),i=i.concat(Fg(e.serverSyncTree_,s,!0))}else d=!0,u="nodata",i=i.concat(Fg(e.serverSyncTree_,o.currentWriteId,!0))}Bv(e.eventQueue_,n,i),i=[],d&&(t[l].status=2,s=t[l].unwatcher,setTimeout(s,Math.floor(0)),t[l].onComplete&&("nodata"===u?r.push((()=>t[l].onComplete(null,!1,t[l].currentInputSnapshot))):r.push((()=>t[l].onComplete(new Error(u),!1,null)))))}var s;lb(e,e.transactionQueueTree_);for(let l=0;le.order-t.order)),n}function sb(e,t,n){const r=mv(t);if(r)for(let i=0;i{sb(e,t,n)}))}function lb(e,t){const n=mv(t);if(n){let e=0;for(let t=0;t0?n:void 0)}bv(t,(t=>{lb(e,t)}))}function cb(e,t){const n=_v(ob(e,t)),r=fv(e.transactionQueueTree_,t);return function(e,t,n){let r=n?e:e.parent;for(;null!==r;){if(t(r))return!0;r=r.parent}}(r,(t=>{ub(e,t)})),ub(e,r),yv(r,(t=>{ub(e,t)})),n}function ub(e,t){const n=mv(t);if(n){const r=[];let i=[],o=-1;for(let t=0;t.firebaseio.com instead"),r&&"undefined"!==r||"localhost"===n.domain||vh("Cannot parse Firebase url. Please use https://.firebaseio.com"),n.secure||"undefined"!==typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&bh("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().");const i="ws"===n.scheme||"wss"===n.scheme;return{repoInfo:new Fh(n.host,n.secure,r,i,t,"",r!==n.subdomain),path:new sf(n.pathString)}},pb=function(e){let t="",n="",r="",i="",o="",a=!0,s="https",l=443;if("string"===typeof e){let c=e.indexOf("//");c>=0&&(s=e.substring(0,c-1),e=e.substring(c+2));let u=e.indexOf("/");-1===u&&(u=e.length);let d=e.indexOf("?");-1===d&&(d=e.length),t=e.substring(0,Math.min(u,d)),u0){let e=n[i];try{e=decodeURIComponent(e.replace(/\+/g," "))}catch(r){}t+="/"+e}return t}(e.substring(u,d)));const p=function(e){const t={};"?"===e.charAt(0)&&(e=e.substring(1));for(const n of e.split("&")){if(0===n.length)continue;const r=n.split("=");2===r.length?t[decodeURIComponent(r[0])]=decodeURIComponent(r[1]):bh("Invalid query segment '".concat(n,"' in query '").concat(e,"'"))}return t}(e.substring(Math.min(e.length,d)));c=t.indexOf(":"),c>=0?(a="https"===s||"wss"===s,l=parseInt(t.substring(c+1),10)):c=t.length;const h=t.slice(0,c);if("localhost"===h.toLowerCase())n="localhost";else if(h.split(".").length<=2)n=h;else{const e=t.indexOf(".");r=t.substring(0,e).toLowerCase(),n=t.substring(e+1),o=r}"ns"in p&&(o=p.ns)}return{host:t,port:l,domain:n,subdomain:r,secure:a,scheme:s,pathString:i,namespace:o}},hb="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",fb=function(){let e=0;const t=[];return function(n){const r=n===e;let i;e=n;const o=new Array(8);for(i=7;i>=0;i--)o[i]=hb.charAt(n%64),n=Math.floor(n/64);ys(0===n,"Cannot push at time == 0");let a=o.join("");if(r){for(i=11;i>=0&&63===t[i];i--)t[i]=0;t[i]++}else for(i=0;i<12;i++)t[i]=Math.floor(64*Math.random());for(i=0;i<12;i++)a+=hb.charAt(t[i]);return ys(20===a.length,"nextPushId: Length should be 20."),a}}();class mb{constructor(e,t,n,r){this.eventType=e,this.eventRegistration=t,this.snapshot=n,this.prevName=r}getPath(){const e=this.snapshot.ref;return"value"===this.eventType?e._path:e.parent._path}getEventType(){return this.eventType}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.getPath().toString()+":"+this.eventType+":"+Ws(this.snapshot.exportVal())}}class gb{constructor(e,t,n){this.eventRegistration=e,this.error=t,this.path=n}getPath(){return this.path}getEventType(){return"cancel"}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.path.toString()+":cancel"}}class vb{constructor(e,t){this.snapshotCallback=e,this.cancelCallback=t}onValue(e,t){this.snapshotCallback.call(null,e,t)}onCancel(e){return ys(this.hasCancelCallback,"Raising a cancel event on a listener with no cancel callback"),this.cancelCallback.call(null,e)}get hasCancelCallback(){return!!this.cancelCallback}matches(e){return this.snapshotCallback===e.snapshotCallback||void 0!==this.snapshotCallback.userCallback&&this.snapshotCallback.userCallback===e.snapshotCallback.userCallback&&this.snapshotCallback.context===e.snapshotCallback.context}}class bb{constructor(e,t,n,r){this._repo=e,this._path=t,this._queryParams=n,this._orderByCalled=r}get key(){return gf(this._path)?null:pf(this._path)}get ref(){return new yb(this._repo,this._path)}get _queryIdentifier(){const e=hm(this._queryParams),t=Ch(e);return"{}"===t?"default":t}get _queryObject(){return hm(this._queryParams)}isEqual(e){if(!((e=sl(e))instanceof bb))return!1;const t=this._repo===e._repo,n=yf(this._path,e._path),r=this._queryIdentifier===e._queryIdentifier;return t&&n&&r}toJSON(){return this.toString()}toString(){return this._repo.toString()+function(e){let t="";for(let n=e.pieceNum_;ne(new _b(n,wb(this.ref,t),Hf))))}hasChild(e){const t=new sf(e);return!this._node.getChild(t).isEmpty()}hasChildren(){return!this._node.isLeafNode()&&!this._node.isEmpty()}toJSON(){return this.exportVal()}val(){return this._node.val()}}function xb(e,t){return(e=sl(e))._checkNotDeleted("ref"),void 0!==t?wb(e._root,t):e._root}function wb(e,t){return null===cf((e=sl(e))._path)?Iv("child","path",t,!1):Pv("child","path",t,!1),new yb(e._repo,mf(e._path,t))}function Eb(e,t){e=sl(e),Lv("push",e._path),Ov("push",t,e._path,!0);const n=Wv(e._repo),r=fb(n),i=wb(e,r),o=wb(e,r);let a;return a=null!=t?Cb(o,t).then((()=>o)):Promise.resolve(o),i.then=a.then.bind(a),i.catch=a.then.bind(a,void 0),i}function Tb(e){return Lv("remove",e._path),Cb(e,null)}function Cb(e,t){e=sl(e),Lv("set",e._path),Ov("set",t,e._path,!1);const n=new Ds;return Zv(e._repo,e._path,t,null,n.wrapCallback((()=>{}))),n.promise}function kb(e,t){jv("update",t,e._path,!1);const n=new Ds;return function(e,t,n,r){eb(e,"update",{path:t.toString(),value:n});let i=!0;const o=Gv(e),a={};if(Sh(n,((n,r)=>{i=!1,a[n]=uv(mf(t,n),tm(r),e.serverSyncTree_,o)})),i)fh("update() called with empty data. Don't do anything."),tb(0,r,"ok",void 0);else{const i=Yv(e),o=Ug(e.serverSyncTree_,t,a,i);Dv(e.eventQueue_,o),e.server_.merge(t.toString(),n,((n,o)=>{const a="ok"===n;a||bh("update at "+t+" failed: "+n);const s=Fg(e.serverSyncTree_,i,!a),l=s.length>0?ib(e,t):t;Bv(e.eventQueue_,l,s),tb(0,r,n,o)})),Sh(n,(n=>{const r=cb(e,mf(t,n));ib(e,r)})),Bv(e.eventQueue_,t,[])}}(e._repo,e._path,t,n.wrapCallback((()=>{}))),n.promise}function Sb(e){e=sl(e);const t=new vb((()=>{})),n=new Ob(t);return function(e,t,n){const r=Vg(e.serverSyncTree_,t);return null!=r?Promise.resolve(r):e.server_.get(t).then((r=>{const i=tm(r).withIndex(t._queryParams.getIndex());let o;if(Wg(e.serverSyncTree_,t,n,!0),t._queryParams.loadsAllData())o=zg(e.serverSyncTree_,t._path,i);else{const n=Jg(e.serverSyncTree_,t);o=Hg(e.serverSyncTree_,t._path,i,n)}return Bv(e.eventQueue_,t._path,o),qg(e.serverSyncTree_,t,n,null,!0),i}),(n=>(eb(e,"get for query "+Ws(t)+" failed: "+n),Promise.reject(new Error(n)))))}(e._repo,e,n).then((t=>new _b(t,new yb(e._repo,e._path),e._queryParams.getIndex())))}class Ob{constructor(e){this.callbackContext=e}respondsTo(e){return"value"===e}createEvent(e,t){const n=t._queryParams.getIndex();return new mb("value",this,new _b(e.snapshotNode,new yb(t._repo,t._path),n))}getEventRunner(e){return"cancel"===e.getEventType()?()=>this.callbackContext.onCancel(e.error):()=>this.callbackContext.onValue(e.snapshot,null)}createCancelEvent(e,t){return this.callbackContext.hasCancelCallback?new gb(this,e,t):null}matches(e){return e instanceof Ob&&(!e.callbackContext||!this.callbackContext||e.callbackContext.matches(this.callbackContext))}hasAnyCallback(){return null!==this.callbackContext}}class Ab{constructor(e,t){this.eventType=e,this.callbackContext=t}respondsTo(e){let t="children_added"===e?"child_added":e;return t="children_removed"===t?"child_removed":t,this.eventType===t}createCancelEvent(e,t){return this.callbackContext.hasCancelCallback?new gb(this,e,t):null}createEvent(e,t){ys(null!=e.childName,"Child events should have a childName.");const n=wb(new yb(t._repo,t._path),e.childName),r=t._queryParams.getIndex();return new mb(e.type,this,new _b(e.snapshotNode,n,r),e.prevName)}getEventRunner(e){return"cancel"===e.getEventType()?()=>this.callbackContext.onCancel(e.error):()=>this.callbackContext.onValue(e.snapshot,e.prevName)}matches(e){return e instanceof Ab&&(this.eventType===e.eventType&&(!this.callbackContext||!e.callbackContext||this.callbackContext.matches(e.callbackContext)))}hasAnyCallback(){return!!this.callbackContext}}function jb(e,t,n,r,i){let o;if("object"===typeof r&&(o=void 0,i=r),"function"===typeof r&&(o=r),i&&i.onlyOnce){const t=n,r=(n,r)=>{Jv(e._repo,e,s),t(n,r)};r.userCallback=n.userCallback,r.context=n.context,n=r}const a=new vb(n,o||void 0),s="value"===t?new Ob(a):new Ab(t,a);return function(e,t,n){let r;r=".info"===cf(t._path)?Wg(e.infoSyncTree_,t,n):Wg(e.serverSyncTree_,t,n),Mv(e.eventQueue_,t._path,r)}(e._repo,e,s),()=>Jv(e._repo,e,s)}function Pb(e,t,n,r){return jb(e,"value",t,n,r)}function Ib(e,t,n){let r=null;const i=n?new vb(n):null;"value"===t?r=new Ob(i):t&&(r=new Ab(t,i)),Jv(e._repo,e,r)}!function(e){ys(!Tg,"__referenceConstructor has already been defined"),Tg=e}(yb),function(e){ys(!Cg,"__referenceConstructor has already been defined"),Cg=e}(yb);const Lb="FIREBASE_DATABASE_EMULATOR_HOST",Rb={};let Nb=!1;function Db(e,t,n,r,i){let o=r||e.options.databaseURL;void 0===o&&(e.options.projectId||vh("Can't determine Firebase Database URL. Be sure to include a Project ID when calling firebase.initializeApp()."),fh("Using default host for project ",e.options.projectId),o="".concat(e.options.projectId,"-default-rtdb.firebaseio.com"));let a,s,l=db(o,i),c=l.repoInfo;"undefined"!==typeof process&&(s={NODE_ENV:"production",PUBLIC_URL:"/metadata-entry-form",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_GOOGLE_CLOUD_API_KEY:"AIzaSyBz4kb3hJHXw0voYZgHZuAgmqGosxntMHM",REACT_APP_GOOGLE_CLOUD_API_KEY_DEV:"AIzaSyADkNENzpoqj3O7uGPsRA_4s1zQdbH708c"}[Lb]),s?(a=!0,o="http://".concat(s,"?ns=").concat(c.namespace),l=db(o,i),c=l.repoInfo):a=!l.repoInfo.secure;const u=i&&a?new Nh(Nh.OWNER):new Rh(e.name,e.options,t);Rv("Invalid Firebase Database URL",l),gf(l.path)||vh("Database URL must point to the root of a Firebase Database (not including a child path).");const d=function(e,t,n,r){let i=Rb[t.name];i||(i={},Rb[t.name]=i);let o=i[e.toURLString()];o&&vh("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call.");return o=new qv(e,Nb,n,r),i[e.toURLString()]=o,o}(c,e,u,new Lh(e.name,n));return new Mb(d,e)}class Mb{constructor(e,t){this._repoInternal=e,this.app=t,this.type="database",this._instanceStarted=!1}get _repo(){return this._instanceStarted||(Hv(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),this._instanceStarted=!0),this._repoInternal}get _root(){return this._rootInternal||(this._rootInternal=new yb(this._repo,lf())),this._rootInternal}_delete(){return null!==this._rootInternal&&(!function(e,t){const n=Rb[t];n&&n[e.key]===e||vh("Database ".concat(t,"(").concat(e.repoInfo_,") has already been deleted.")),Xv(e),delete n[e.key]}(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null),Promise.resolve()}_checkNotDeleted(e){null===this._rootInternal&&vh("Cannot call "+e+" on a deleted database.")}}function Bb(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl(),t=arguments.length>1?arguments[1]:void 0;const n=Gl(e,"database").getImmediate({identifier:t});if(!n._instanceStarted){const e=Ls("database");e&&function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e=sl(e),e._checkNotDeleted("useEmulator"),e._instanceStarted&&vh("Cannot call useEmulator() after instance has already been initialized.");const i=e._repoInternal;let o;if(i.repoInfo_.nodeAdmin)r.mockUserToken&&vh('mockUserToken is not supported by the Admin SDK. For client access with mock users, please use the "firebase" package instead of "firebase-admin".'),o=new Nh(Nh.OWNER);else if(r.mockUserToken){const t="string"===typeof r.mockUserToken?r.mockUserToken:function(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n=t||"demo-project",r=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const o=Object.assign({iss:"https://securetoken.google.com/".concat(n),aud:n,iat:r,exp:r+3600,auth_time:r,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[Cs(JSON.stringify({alg:"none",type:"JWT"})),Cs(JSON.stringify(o)),""].join(".")}(r.mockUserToken,e.app.options.projectId);o=new Nh(t)}!function(e,t,n,r){e.repoInfo_=new Fh("".concat(t,":").concat(n),!1,e.repoInfo_.namespace,e.repoInfo_.webSocketOnly,e.repoInfo_.nodeAdmin,e.repoInfo_.persistenceKey,e.repoInfo_.includeNamespaceInQueryParams,!0),r&&(e.authTokenProvider_=r)}(i,t,n,o)}(n,...e)}return n}kf.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)},kf.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)};!function(e){th(Kl),Wl(new ll("database",((e,t)=>{let{instanceIdentifier:n}=t;return Db(e.getProvider("app").getImmediate(),e.getProvider("auth-internal"),e.getProvider("app-check-internal"),n)}),"PUBLIC").setMultipleInstances(!0)),Jl(Jp,Xp,e),Jl(Jp,Xp,"esm2017")}();class Qb extends i.Component{constructor(){super(),this.listenerRefs=[]}componentDidUpdate(e){const{match:t}=this.props;t.params.region!==e.match.params.region&&(this.unsubscribeAndCloseListeners(),this.componentDidMount())}componentWillUnmount(){this.unsubscribeAndCloseListeners()}unsubscribeAndCloseListeners(){this.unsubscribe&&this.unsubscribe(),this.listenerRefs.length&&this.listenerRefs.forEach((e=>Ib(e)))}}const Ub=Qb,Fb=(0,i.createContext)({user:null,authIsLoading:!1});const zb=dn(class extends Ub{constructor(e){super(e),this.componentDidMount=()=>{const{match:e}=this.props,{region:t}=e.params;this.setState({authIsLoading:!0}),this.unsubscribe=nd(_p(Cp),(e=>{if(e){const{displayName:n,email:r,uid:i}=e;this.setState({user:e,authIsLoading:!1,loggedIn:!0}),function(e){ie("configureScope",e)}((e=>{e.setUser({email:r,username:r})}));Zp(Yp(),"getDatacitePrefix")(t).then((e=>{this.setState({datacitePrefix:null===e||void 0===e?void 0:e.data})}));const o=Bb(Cp);kb(xb(o,"".concat(t,"/users/").concat(i,"/userinfo")),{displayName:n,email:r});const a=xb(o,"admin/".concat(t,"/permissions"));Pb(a,(e=>{const t=e.toJSON(),n=(null===t||void 0===t?void 0:t.admins)||"",i=(null===t||void 0===t?void 0:t.reviewers)||"",o=n.includes(r),a=i.includes(r);this.setState({admins:n,reviewers:i,isAdmin:o,isReviewer:a})})),this.listenerRefs.push(a);const s=xb(o,"".concat(t,"/shares/").concat(i));Pb(s,(e=>{const t=e.exists();this.setState({hasSharedRecords:t,authIsLoading:!1})})),this.listenerRefs.push(s)}else this.setState({loggedIn:!1,authIsLoading:!1});this.setState({user:e,authIsLoading:!1})}))},this.state={user:null,authIsLoading:!1,admins:[],reviewers:[],isReviewer:!1,loggedIn:!1,hasSharedRecords:!1}}render(){const{children:e}=this.props,t=Yp(),n=Zp(t,"translate"),r=Zp(t,"regenerateXMLforRecord"),i=Zp(t,"downloadRecord"),o=Zp(t,"createDraftDoi"),a=Zp(t,"updateDraftDoi"),s=Zp(t,"deleteDraftDoi"),l=Zp(t,"getDoiStatus"),c=Zp(t,"checkURLActive"),u=Zp(t,"getCredentialsStored"),d=Zp(t,"getDatacitePrefix");return(0,Ap.jsx)(Fb.Provider,{value:{...this.state,translate:n,regenerateXMLforRecord:r,downloadRecord:i,createDraftDoi:o,updateDraftDoi:a,deleteDraftDoi:s,getDoiStatus:l,checkURLActive:c,getCredentialsStored:u,getDatacitePrefix:d},children:e})}}),qb=240,Hb=An((e=>({root:{display:"flex",flexGrow:1},appBar:{zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})},appBarShift:{marginLeft:qb,width:"calc(100% - ".concat(qb,"px)"),transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},menuButton:{marginRight:36},languageSelector:{"&:before":{borderColor:"white"},"&:hover:not(.Mui-disabled):before":{borderColor:"white"},color:"white",borderColor:"white",marginRight:e.spacing(2)},hide:{display:"none"},drawer:{width:qb,flexShrink:0,whiteSpace:"nowrap"},drawerOpen:{width:qb,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},drawerClose:{transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:e.spacing(7)+1,[e.breakpoints.up("sm")]:{width:e.spacing(9)+1}},toolbar:{display:"flex",alignItems:"center",justifyContent:"flex-end",padding:e.spacing(0,1),...e.mixins.toolbar},content:{flexGrow:1,padding:e.spacing(3)}})));function Wb(e){let{children:t}=e;const n=hn(),r=Hb(),o=Pn(),{user:a,isReviewer:s,isAdmin:l,authIsLoading:c,hasSharedRecords:u}=(0,i.useContext)(Fb);let{language:d="en",region:p="region-select"}=mn();["en","fr"].includes(d)||(d="en"),Object.keys(Cn).includes(p)||(p="");const{pathname:h}=fn(),f=h.split("/").map((e=>e)).slice(2).join("/"),m="/".concat(d,"/").concat(p),[g,v]=i.useState(Boolean(p)),b={home:(0,Ap.jsx)(Lp,{en:"Home",fr:"Accueil"}),new:(0,Ap.jsx)(Lp,{en:"Metadata Editor",fr:"\xc9diteur de m\xe9ta-donn\xe9es"}),contacts:(0,Ap.jsx)(Lp,{en:"Contacts",fr:"Contacts"}),instruments:(0,Ap.jsx)(Lp,{en:"Instruments",fr:"Instruments"}),platforms:(0,Ap.jsx)(Lp,{en:"Platforms",fr:"Plateformes"}),saved:(0,Ap.jsx)(Lp,{en:"My Records",fr:"Enregistrements"}),published:(0,Ap.jsx)(Lp,{en:"Published Records",fr:"Dossiers publi\xe9s"}),review:(0,Ap.jsx)(Lp,{en:"Review submissions",fr:"Examen des soumissions"}),admin:(0,Ap.jsx)(Lp,{en:"Admin",fr:"Admin"}),signIn:(0,Ap.jsx)(Lp,{en:"Sign in",fr:"Se Connecter"}),logout:(0,Ap.jsx)(Lp,{en:"Logout",fr:"D\xe9connexion"}),sharedWithMe:(0,Ap.jsx)(Lp,{en:"Shared with me",fr:"Partag\xe9 avec moi"})},y=p?Cn[p].colors.primary:"#52a79b",_={NODE_ENV:"production",PUBLIC_URL:"/metadata-entry-form",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_GOOGLE_CLOUD_API_KEY:"AIzaSyBz4kb3hJHXw0voYZgHZuAgmqGosxntMHM",REACT_APP_GOOGLE_CLOUD_API_KEY_DEV:"AIzaSyADkNENzpoqj3O7uGPsRA_4s1zQdbH708c"}.REACT_APP_DEV_DEPLOYMENT||!1;return(0,Ap.jsxs)("div",{className:r.root,children:[(0,Ap.jsx)(Kn,{}),(0,Ap.jsx)(tr,{position:"fixed",className:(0,kn.c)(r.appBar,{[r.appBarShift]:g}),children:(0,Ap.jsxs)(ir,{style:{backgroundColor:y,alignItems:"end"},children:[p&&(0,Ap.jsx)(Cr,{"aria-label":"open drawer",onClick:()=>{v(!0)},edge:"start",className:(0,kn.c)(r.menuButton,{[r.hide]:g}),children:(0,Ap.jsx)(Ln,{})}),(0,Ap.jsx)(Or,{variant:"h5",noWrap:!0,style:{marginLeft:"10px",marginBottom:"10px",flex:1,color:"white"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Metadata Entry Tool"}),(0,Ap.jsx)(Ip,{children:"Outil de saisie de m\xe9tadonn\xe9es"})]})}),(0,Ap.jsxs)("div",{style:{marginLeft:"auto"},children:[(0,Ap.jsx)("img",{src:"".concat("/metadata-entry-form","/cioos_website_top_banner_").concat(d,".png"),alt:"CIOOS/SIOOC",width:350,style:{verticalAlign:"bottom",paddingRight:"15px"}}),(0,Ap.jsxs)(wo,{color:"primary",className:r.languageSelector,value:d,onChange:e=>n.push("/".concat(e.target.value,"/").concat(f)),children:[(0,Ap.jsx)(Oo,{value:"en",children:"EN"}),(0,Ap.jsx)(Oo,{value:"fr",children:"FR"})]})]})]})}),p&&(0,Ap.jsxs)(qo,{variant:"permanent",className:(0,kn.c)(r.drawer,{[r.drawerOpen]:g,[r.drawerClose]:!g}),classes:{paper:(0,kn.c)({[r.drawerOpen]:g,[r.drawerClose]:!g})},children:[(0,Ap.jsx)("div",{className:r.toolbar,children:(0,Ap.jsx)(Cr,{onClick:()=>{v(!1)},children:"rtl"===o.direction?(0,Ap.jsx)(Rn,{}):(0,Ap.jsx)(Nn,{})})}),a&&(0,Ap.jsxs)(ko,{children:[(0,Ap.jsx)(Wo,{children:(0,Ap.jsx)($o,{src:a.photoURL})}),(0,Ap.jsx)(Yo,{primary:a.displayName})]},"userInfo"),(0,Ap.jsx)(Jo,{}),(0,Ap.jsxs)(ki,{children:[!a&&p&&(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.signIn,children:(0,Ap.jsxs)(ko,{disabled:c,button:!0,onClick:async()=>{try{await Op(),n.push(h)}catch(gh){if("auth/cancelled-popup-request"!==gh.code)throw gh}},children:[(0,Ap.jsx)(Wo,{children:(0,Ap.jsx)(Dn,{})}),(0,Ap.jsx)(Yo,{primary:b.signIn})]},"Sign in")}),a&&p&&(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.saved,children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>n.push("".concat(m,"/submissions")),children:[(0,Ap.jsx)(Wo,{children:(0,Ap.jsx)(Mn,{})}),(0,Ap.jsx)(Yo,{primary:b.saved})]},"My Records")}),(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.saved,children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>n.push("".concat(m,"/published")),children:[(0,Ap.jsx)(Wo,{children:(0,Ap.jsx)(Bn,{})}),(0,Ap.jsx)(Yo,{primary:b.published})]},"Region's Published Records")}),(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.contacts,children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>n.push("".concat(m,"/contacts")),children:[(0,Ap.jsx)(Wo,{disabled:!0,children:(0,Ap.jsx)(Qn,{})}),(0,Ap.jsx)(Yo,{primary:b.contacts})]},"Contacts")}),(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.instruments,children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>n.push("".concat(m,"/instruments")),children:[(0,Ap.jsx)(Wo,{disabled:!0,children:(0,Ap.jsx)(Un,{})}),(0,Ap.jsx)(Yo,{primary:b.instruments})]},"instruments")}),(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.instruments,children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>n.push("".concat(m,"/platforms")),children:[(0,Ap.jsx)(Wo,{disabled:!0,children:(0,Ap.jsx)(Fn,{})}),(0,Ap.jsx)(Yo,{primary:b.platforms})]},"Platforms")}),u&&(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.sharedWithMe,children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>n.push("".concat(m,"/shared")),children:[(0,Ap.jsx)(Wo,{children:(0,Ap.jsx)(zn,{})}),(0,Ap.jsx)(Yo,{primary:b.sharedWithMe})]},"SharedWithMe")}),s&&(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.review,children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>n.push("".concat(m,"/reviewer")),children:[(0,Ap.jsx)(Wo,{children:(0,Ap.jsx)(qn,{})}),(0,Ap.jsx)(Yo,{primary:b.review})]},"Review")}),l&&(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.admin,children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>n.push("".concat(m,"/admin")),children:[(0,Ap.jsx)(Wo,{children:(0,Ap.jsx)(Hn,{})}),(0,Ap.jsx)(Yo,{primary:b.admin})]},"Admin")})]}),a&&(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.logout,children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>Sp.signOut().then((()=>n.push(m))),children:[(0,Ap.jsx)(Wo,{children:(0,Ap.jsx)(Wn,{})}),(0,Ap.jsx)(Yo,{primary:b.logout})]},"Logout")})]}),(0,Ap.jsx)(Jo,{}),_&&(0,Ap.jsx)("h5",{children:"Connected to development database"})]}),(0,Ap.jsxs)("main",{className:r.content,children:[(0,Ap.jsx)("div",{className:r.toolbar}),t]})]})}var Gb=n(3460),Vb=n.n(Gb),$b=n(7920),Kb=n.n($b),Yb=n(4697),Zb=n.n(Yb),Jb="bodyAttributes",Xb="htmlAttributes",ey="titleAttributes",ty={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},ny=(Object.keys(ty).map((function(e){return ty[e]})),"charset"),ry="cssText",iy="href",oy="http-equiv",ay="innerHTML",sy="itemprop",ly="name",cy="property",uy="rel",dy="src",py="target",hy={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},fy="defaultTitle",my="defer",gy="encodeSpecialCharacters",vy="onChangeClientState",by="titleTemplate",yy=Object.keys(hy).reduce((function(e,t){return e[hy[t]]=t,e}),{}),_y=[ty.NOSCRIPT,ty.SCRIPT,ty.STYLE],xy="data-react-helmet",wy="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},Ey=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},ky=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},Sy=function(e){var t=Iy(e,ty.TITLE),n=Iy(e,by);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Iy(e,fy);return t||r||void 0},Oy=function(e){return Iy(e,vy)||function(){}},Ay=function(e,t){return t.filter((function(t){return"undefined"!==typeof t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return Ty({},e,t)}),{})},jy=function(e,t){return t.filter((function(e){return"undefined"!==typeof e[ty.BASE]})).map((function(e){return e[ty.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},Ly=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout((function(){Ly(t)}),0)}}(),Ry=function(e){return clearTimeout(e)},Ny="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Ly:n.g.requestAnimationFrame||Ly,Dy="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Ry:n.g.cancelAnimationFrame||Ry,My=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},By=null,Qy=function(e,t){var n=e.baseTag,r=e.bodyAttributes,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,d=e.title,p=e.titleAttributes;zy(ty.BODY,r),zy(ty.HTML,i),Fy(d,p);var h={baseTag:qy(ty.BASE,n),linkTags:qy(ty.LINK,o),metaTags:qy(ty.META,a),noscriptTags:qy(ty.NOSCRIPT,s),scriptTags:qy(ty.SCRIPT,c),styleTags:qy(ty.STYLE,u)},f={},m={};Object.keys(h).forEach((function(e){var t=h[e],n=t.newTags,r=t.oldTags;n.length&&(f[e]=n),r.length&&(m[e]=h[e].oldTags)})),t&&t(),l(e,f,m)},Uy=function(e){return Array.isArray(e)?e.join(""):e},Fy=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=Uy(e)),zy(ty.TITLE,t)},zy=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(xy),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s=0;d--)n.removeAttribute(o[d]);i.length===o.length?n.removeAttribute(xy):n.getAttribute(xy)!==a.join(",")&&n.setAttribute(xy,a.join(","))}},qy=function(e,t){var n=document.head||document.querySelector(ty.HEAD),r=n.querySelectorAll(e+"["+xy+"]"),i=Array.prototype.slice.call(r),o=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===ay)n.innerHTML=t.innerHTML;else if(r===ry)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s="undefined"===typeof t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(xy,"true"),i.some((function(e,t){return a=t,n.isEqualNode(e)}))?i.splice(a,1):o.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),o.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:o}},Hy=function(e){return Object.keys(e).reduce((function(t,n){var r="undefined"!==typeof e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},Wy=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[hy[n]||n]=e[n],t}),t)},Gy=function(e,t,n){switch(e){case ty.TITLE:return{toComponent:function(){return function(e,t,n){var r,o=((r={key:t})[xy]=!0,r),a=Wy(n,o);return[i.createElement(ty.TITLE,a,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,n,r){var i=Hy(n),o=Uy(t);return i?"<"+e+" "+xy+'="true" '+i+">"+ky(o,r)+"":"<"+e+" "+xy+'="true">'+ky(o,r)+""}(e,t.title,t.titleAttributes,n)}};case Jb:case Xb:return{toComponent:function(){return Wy(t)},toString:function(){return Hy(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[xy]=!0,r);return Object.keys(t).forEach((function(e){var n=hy[e]||e;if(n===ay||n===ry){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),i.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!(e===ay||e===ry)})).reduce((function(e,t){var i="undefined"===typeof r[t]?t:t+'="'+ky(r[t],n)+'"';return e?e+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===_y.indexOf(e);return t+"<"+e+" "+xy+'="true" '+i+(a?"/>":">"+o+"")}),"")}(e,t,n)}}}},Vy=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.scriptTags,c=e.styleTags,u=e.title,d=void 0===u?"":u,p=e.titleAttributes;return{base:Gy(ty.BASE,t,r),bodyAttributes:Gy(Jb,n,r),htmlAttributes:Gy(Xb,i,r),link:Gy(ty.LINK,o,r),meta:Gy(ty.META,a,r),noscript:Gy(ty.NOSCRIPT,s,r),script:Gy(ty.SCRIPT,l,r),style:Gy(ty.STYLE,c,r),title:Gy(ty.TITLE,{title:d,titleAttributes:p},r)}},$y=function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.shouldComponentUpdate=function(e){return!Kb()(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case ty.SCRIPT:case ty.NOSCRIPT:return{innerHTML:t};case ty.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,i=e.newChildProps,o=e.nestedChildren;return Ty({},r,((t={})[n.type]=[].concat(r[n.type]||[],[Ty({},i,this.mapNestedChildrenToProps(n,o))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(r.type){case ty.TITLE:return Ty({},i,((t={})[r.type]=a,t.titleAttributes=Ty({},o),t));case ty.BODY:return Ty({},i,{bodyAttributes:Ty({},o)});case ty.HTML:return Ty({},i,{htmlAttributes:Ty({},o)})}return Ty({},i,((n={})[r.type]=Ty({},o),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=Ty({},t);return Object.keys(e).forEach((function(t){var r;n=Ty({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return i.Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,o=i.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[yy[n]||n]=e[n],t}),t)}(Cy(i,["children"]));switch(n.warnOnInvalidChildren(e,o),e.type){case ty.LINK:case ty.META:case ty.NOSCRIPT:case ty.SCRIPT:case ty.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:o})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=Cy(t,["children"]),o=Ty({},r);return n&&(o=this.mapChildrenToProps(n,o)),i.createElement(e,o)},Ey(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(i.Component),t.propTypes={base:ot().object,bodyAttributes:ot().object,children:ot().oneOfType([ot().arrayOf(ot().node),ot().node]),defaultTitle:ot().string,defer:ot().bool,encodeSpecialCharacters:ot().bool,htmlAttributes:ot().object,link:ot().arrayOf(ot().object),meta:ot().arrayOf(ot().object),noscript:ot().arrayOf(ot().object),onChangeClientState:ot().func,script:ot().arrayOf(ot().object),style:ot().arrayOf(ot().object),title:ot().string,titleAttributes:ot().object,titleTemplate:ot().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=Vy({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(Vb()((function(e){return{baseTag:jy([iy,py],e),bodyAttributes:Ay(Jb,e),defer:Iy(e,my),encode:Iy(e,gy),htmlAttributes:Ay(Xb,e),linkTags:Py(ty.LINK,[uy,iy],e),metaTags:Py(ty.META,[ly,ny,oy,cy,sy],e),noscriptTags:Py(ty.NOSCRIPT,[ay],e),onChangeClientState:Oy(e),scriptTags:Py(ty.SCRIPT,[dy,ay],e),styleTags:Py(ty.STYLE,[ry],e),title:Sy(e),titleAttributes:Ay(ey,e)}}),(function(e){By&&Dy(By),e.defer?By=Ny((function(){Qy(e,(function(){By=null}))})):(Qy(e),By=null)}),Vy)((function(){return null})));$y.renderStatic=$y.rewind;var Ky=[0,1,2,3,4,5,6,7,8,9,10],Yy=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function Zy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var Jy=i.forwardRef((function(e,t){var n=e.alignContent,r=void 0===n?"stretch":n,o=e.alignItems,a=void 0===o?"stretch":o,s=e.classes,l=e.className,c=e.component,u=void 0===c?"div":c,d=e.container,p=void 0!==d&&d,h=e.direction,f=void 0===h?"row":h,m=e.item,g=void 0!==m&&m,v=e.justify,b=e.justifyContent,y=void 0===b?"flex-start":b,_=e.lg,x=void 0!==_&&_,w=e.md,E=void 0!==w&&w,T=e.sm,C=void 0!==T&&T,k=e.spacing,S=void 0===k?0:k,O=e.wrap,A=void 0===O?"wrap":O,j=e.xl,P=void 0!==j&&j,I=e.xs,L=void 0!==I&&I,R=e.zeroMinWidth,N=void 0!==R&&R,D=(0,Yn.c)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),M=(0,kn.c)(s.root,l,p&&[s.container,0!==S&&s["spacing-xs-".concat(String(S))]],g&&s.item,N&&s.zeroMinWidth,"row"!==f&&s["direction-xs-".concat(String(f))],"wrap"!==A&&s["wrap-xs-".concat(String(A))],"stretch"!==a&&s["align-items-xs-".concat(String(a))],"stretch"!==r&&s["align-content-xs-".concat(String(r))],"flex-start"!==(v||y)&&s["justify-content-xs-".concat(String(v||y))],!1!==L&&s["grid-xs-".concat(String(L))],!1!==C&&s["grid-sm-".concat(String(C))],!1!==E&&s["grid-md-".concat(String(E))],!1!==x&&s["grid-lg-".concat(String(x))],!1!==P&&s["grid-xl-".concat(String(P))]);return i.createElement(u,(0,at.c)({className:M,ref:t},D))})),Xy=(0,Gn.c)((function(e){return(0,at.c)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return Ky.forEach((function(r){var i=e.spacing(r);0!==i&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(Zy(i,2)),width:"calc(100% + ".concat(Zy(i),")"),"& > $item":{padding:Zy(i,2)}})})),n}(e,"xs"),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};Yy.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var i="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:i,flexGrow:0,maxWidth:i}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?(0,at.c)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(Jy);const e_=Xy;var t_=44,n_=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,a=void 0===o?"primary":o,s=e.disableShrink,l=void 0!==s&&s,c=e.size,u=void 0===c?40:c,d=e.style,p=e.thickness,h=void 0===p?3.6:p,f=e.value,m=void 0===f?0:f,g=e.variant,v=void 0===g?"indeterminate":g,b=(0,Yn.c)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),y={},_={},x={};if("determinate"===v||"static"===v){var w=2*Math.PI*((t_-h)/2);y.strokeDasharray=w.toFixed(3),x["aria-valuenow"]=Math.round(m),y.strokeDashoffset="".concat(((100-m)/100*w).toFixed(3),"px"),_.transform="rotate(-90deg)"}return i.createElement("div",(0,at.c)({className:(0,kn.c)(n.root,r,"inherit"!==a&&n["color".concat((0,Zn.c)(a))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[v]),style:(0,at.c)({width:u,height:u},_,d),ref:t,role:"progressbar"},x,b),i.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(t_," ").concat(t_)},i.createElement("circle",{className:(0,kn.c)(n.circle,l&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[v]),style:y,cx:t_,cy:t_,r:(t_-h)/2,fill:"none",strokeWidth:h})))}));const r_=(0,Gn.c)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(n_);var i_=n(78),o_=n(7792),a_=n(9928);const s_=function(e){var t=e.children,n=e.theme,r=(0,jn.c)(),o=i.useMemo((function(){var e=null===r?n:function(e,t){return"function"===typeof t?t(e):(0,at.c)({},e,t)}(r,n);return null!=e&&(e[a_.c]=null!==r),e}),[n,r]);return i.createElement(o_.c.Provider,{value:o},t)};var l_=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.color,s=void 0===a?"default":a,l=e.component,c=void 0===l?"button":l,u=e.disabled,d=void 0!==u&&u,p=e.disableElevation,h=void 0!==p&&p,f=e.disableFocusRipple,m=void 0!==f&&f,g=e.endIcon,v=e.focusVisibleClassName,b=e.fullWidth,y=void 0!==b&&b,_=e.size,x=void 0===_?"medium":_,w=e.startIcon,E=e.type,T=void 0===E?"button":E,C=e.variant,k=void 0===C?"text":C,S=(0,Yn.c)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),O=w&&i.createElement("span",{className:(0,kn.c)(r.startIcon,r["iconSize".concat((0,Zn.c)(x))])},w),A=g&&i.createElement("span",{className:(0,kn.c)(r.endIcon,r["iconSize".concat((0,Zn.c)(x))])},g);return i.createElement(Er,(0,at.c)({className:(0,kn.c)(r.root,r[k],o,"inherit"===s?r.colorInherit:"default"!==s&&r["".concat(k).concat((0,Zn.c)(s))],"medium"!==x&&[r["".concat(k,"Size").concat((0,Zn.c)(x))],r["size".concat((0,Zn.c)(x))]],h&&r.disableElevation,d&&r.disabled,y&&r.fullWidth),component:c,disabled:d,focusRipple:!m,focusVisibleClassName:(0,kn.c)(r.focusVisible,v),ref:t,type:T},S),i.createElement("span",{className:r.label},O,n,A))}));const c_=(0,Gn.c)((function(e){return{root:(0,at.c)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,or.W4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,or.W4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,or.W4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,or.W4)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,or.W4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,or.W4)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,or.W4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(l_),u_=(0,In.c)(i.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");var d_,p_=new Uint8Array(16);function h_(){if(!d_&&!(d_="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return d_(p_)}const f_=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const m_=function(e){return"string"===typeof e&&f_.test(e)};for(var g_=[],v_=0;v_<256;++v_)g_.push((v_+256).toString(16).substr(1));const b_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(g_[e[t+0]]+g_[e[t+1]]+g_[e[t+2]]+g_[e[t+3]]+"-"+g_[e[t+4]]+g_[e[t+5]]+"-"+g_[e[t+6]]+g_[e[t+7]]+"-"+g_[e[t+8]]+g_[e[t+9]]+"-"+g_[e[t+10]]+g_[e[t+11]]+g_[e[t+12]]+g_[e[t+13]]+g_[e[t+14]]+g_[e[t+15]]).toLowerCase();if(!m_(n))throw TypeError("Stringified UUID is invalid");return n};const y_=function(e,t,n){var r=(e=e||{}).random||(e.rng||h_)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return b_(r)};function __(e){return JSON.parse(JSON.stringify(e))}function x_(e,t){return JSON.stringify(e)===JSON.stringify(t)}function w_(e){if("object"===typeof e&&"0"===Object.keys(e)[0]){const t=Object.entries(e).map((e=>{let[,t]=e;return Object.keys(t).forEach((e=>{try{t[e]=w_(t[e])}catch(gh){if(gh instanceof TypeError)return t[e]}return t[e]})),t}));return t}return e}function E_(e){if(!e)return null;const t=__(e);return Object.keys(t).forEach((n=>{t[n]=w_(t[n]),e.keywords&&(t.keywords={en:Object.values(e.keywords.en||{}),fr:Object.values(e.keywords.fr||{})})})),t.contacts&&Object.values(t.contacts).forEach((e=>{e.role&&(e.role=Object.values(e.role))})),t}const T_=(e,t)=>"string"===typeof t?t.trim():t;function C_(e){return"".concat(e.title[e.language].slice(0,30),"_").concat(e.identifier.slice(0,5)).trim().toLowerCase().replace(/[^a-zA-Z0-9]/g,"_")}const k_=e=>[...new Set(e)],S_={title:{en:"",fr:""},abstract:{en:"",fr:""},keywords:{en:[],fr:[]},eov:[],progress:"",distribution:[],dateStart:null,dateEnd:null,map:{north:"",south:"",east:"",west:"",polygon:""},verticalExtentMin:"",verticalExtentMax:"",datePublished:null,dateRevised:null,edition:"",recordID:"",instruments:[],platforms:[],language:"",license:"",contacts:[],status:"",comment:"",limitations:"",lastEditedBy:{},category:"",verticalExtentDirection:"",datasetIdentifier:"",doiCreationStatus:"",noPlatform:!1,filename:"",organization:"",timeFirstPublished:"",history:[],associated_resources:[]};function O_(){const e=__(S_);return e.identifier=y_(),e.created=(new Date).toISOString(),e}const A_={role:[],orgName:"",orgEmail:"",orgURL:"",orgAdress:"",orgCity:"",orgCountry:"",orgRor:"",indPosition:"",indEmail:"",indOrcid:"",givenNames:"",lastName:"",inCitation:!0};function j_(){return __(A_)}const P_={id:"",manufacturer:"",version:"",type:{en:"",fr:""},description:{en:"",fr:""}};function I_(){return __(P_)}const L_={type:"",id:"",description:{en:"",fr:""}};function R_(){return __(L_)}async function N_(e,t,n,r){const i=Bb(Cp),o=xb(i,"".concat(r,"/users/").concat(t,"/records")),a=(await Sb(wb(o,e))).val();a.recordID="",a.status="",a.lastEditedBy={},a.created=(new Date).toISOString(),a.filename="",a.timeFirstPublished="",a.title.en&&(a.title.en="".concat(a.title.en," (Copy)")),a.title.fr&&(a.title.fr="".concat(a.title.fr," (Copte)")),a.identifier=y_(),a.created=(new Date).toISOString();Eb(xb(i,"".concat(r,"/users/").concat(n,"/records")),a)}function D_(e){return{...j_(),...e}}function M_(e,t,n,r){const i={...O_(),...e};return r&&(i.recordID=r),t&&n&&(i.userinfo={...null===t||void 0===t?void 0:t.userinfo,userID:n}),i.contacts=i.contacts.map(D_),i}function B_(e,t){const n=e.toJSON(),r=[];return Object.entries(n).forEach((e=>{let[n,i]=e;i.records&&Object.entries(i.records).forEach((e=>{let[o,a]=e;t.includes(a.status)&&r.push(M_(E_(a),i,n,o))}))})),r}async function Q_(e,t,n,r,i){const o=xb(Bb(Cp),"".concat(e,"/users/").concat(t,"/records/").concat(n));if(await Cb(wb(o,"status"),r),"published"===r&&await Cb(wb(o,"timeFirstPublished"),(new Date).toISOString()),i&&!i.filename){const e=C_(i);await Cb(wb(o,"filename"),e)}}function U_(e,t,n){return Tb(xb(Bb(Cp),"".concat(e,"/users/").concat(t,"/records/").concat(n)))}async function F_(e){const t=Bb(Cp);return Object.values((await Sb(xb(t,"admin/".concat(e,"/projects")))).toJSON()||{})}const z_=e=>Object.entries(e||{}).reduce(((e,t)=>{let[n,r]=t;return e[n]=M_(E_(__(r))),e}),{});async function q_(e,t,n,r,i){const o=xb(Bb(Cp),"".concat(r,"/shares/").concat(e,"/").concat(n,"/").concat(t));i?await Cb(o,{shared:!0}).catch((t=>{throw new Error("Error sharing record by author ".concat(n," with user ").concat(e,": ").concat(t))})):await Tb(o).catch((t=>{throw new Error("Error unsharing record by author ".concat(n," with user ").concat(e,": ").concat(t))}))}function H_(){return Math.round(20*Math.random())-10}function W_(){const e=50+H_(),t=50+H_();return{top:"".concat(e,"%"),left:"".concat(t,"%"),transform:"translate(-".concat(e,"%, -").concat(t,"%)")}}const G_=An((e=>({paper:{position:"absolute",width:400,backgroundColor:e.palette.background.paper,border:"2px solid #000",boxShadow:e.shadows[5],padding:e.spacing(2,4,3)}})));function V_(e){let{open:t,onClose:n,onAccept:r,modalQuestion:o}=e;const a=G_(),[s]=i.useState(W_);return(0,Ap.jsx)("div",{children:(0,Ap.jsx)(ti,{open:t,onClose:n,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",onKeyPress:e=>{"y"===e.key&&(n(),r())},children:(0,Ap.jsxs)("div",{style:s,className:a.paper,children:[(0,Ap.jsx)("h2",{id:"simple-modal-title",children:o||(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Are you sure?"}),(0,Ap.jsx)(Ip,{children:"Vous \xeates s\xfbr ?"})]})}),(0,Ap.jsx)("button",{type:"button",onClick:()=>{n(),r()},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Yes"}),(0,Ap.jsx)(Ip,{children:"Oui"})]})}),(0,Ap.jsx)("button",{type:"button",onClick:()=>n(),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"No"}),(0,Ap.jsx)(Ip,{children:"Non"})]})})]})})})}var $_=n(3948),K_=n.n($_),Y_=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=(0,Yn.c)(e,["classes","className"]),a=i.useContext(Ti);return i.createElement("div",(0,at.c)({className:(0,kn.c)(n.root,r,"flex-start"===a.alignItems&&n.alignItemsFlexStart),ref:t},o))}));const Z_=(0,Gn.c)({root:{minWidth:56,flexShrink:0},alignItemsFlexStart:{marginTop:8}},{name:"MuiListItemAvatar"})(Y_);var J_=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=(0,Yn.c)(e,["classes","className"]);return i.createElement("div",(0,at.c)({className:(0,kn.c)(n.root,r),ref:t},o))}));J_.muiName="ListItemSecondaryAction";const X_=(0,Gn.c)({root:{position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"}},{name:"MuiListItemSecondaryAction"})(J_),ex=(0,In.c)(i.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility"),tx=(0,In.c)(i.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit"),nx=(0,In.c)(i.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),rx=(0,In.c)(i.createElement("path",{d:"M5 4v2h14V4H5zm0 10h4v6h6v-6h4l-7-7-7 7z"}),"Publish"),ix=(0,In.c)(i.createElement("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject"),ox=(0,In.c)(i.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy"),ax=(0,In.c)(i.createElement("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"}),"CloudDownload"),sx=(0,In.c)(i.createElement("path",{d:"M16.49 15.5v-1.75L14 16.25l2.49 2.5V17H22v-1.5zm3.02 4.25H14v1.5h5.51V23L22 20.5 19.51 18zM9.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5.75 8.9L3 23h2.1l1.75-8L9 17v6h2v-7.55L8.95 13.4l.6-3C10.85 12 12.8 13 15 13v-2c-1.85 0-3.45-1-4.35-2.45l-.95-1.6C9.35 6.35 8.7 6 8 6c-.25 0-.5.05-.75.15L2 8.3V13h2V9.65l1.75-.75"}),"TransferWithinAStation"),lx=(0,In.c)(i.createElement("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNew"),cx=n.p+"static/media/emlTemplate.c7cac6e90d63ddf2962e.j2",ux=n.p+"static/media/emlCoverage.ba6b51994dacf1f20971.j2";var dx=n(3616),px=n.n(dx);function hx(e,t,n){const{title:r,datasetIdentifier:i="",created:o,contacts:a=[],datePublished:s,dateRevised:l,metadataScope:c}=e,u=a.filter((e=>e.inCitation&&e.role.includes("publisher"))).map((e=>e.orgName)),d=[{title:r[t],author:a.filter((e=>!(e.role.includes("publisher")&&1===e.role.length))).filter((e=>{var t,n,r;return e.inCitation&&((null===(t=e.givenNames)||void 0===t?void 0:t.length)>1&&(null===(n=e.lastName)||void 0===n?void 0:n.length)>1||(null===(r=e.orgName)||void 0===r?void 0:r.length)>1)})).map((e=>{var t,n;return(null===(t=e.givenNames)||void 0===t?void 0:t.length)>1&&(null===(n=e.lastName)||void 0===n?void 0:n.length)>1?{given:e.givenNames,family:e.lastName}:{family:e.orgName}})),issued:{"date-parts":[[l||s||o]]},publisher:u.join(", "),DOI:i.replace(/https?:\/\/doi\.org\//,""),version:"v".concat(e.edition),type:c}];try{const e=px()(d);return e.format("bibliography",{format:n,template:"apa",lang:"en-US"})}catch(p){return""}}function fx(e){let{record:t,language:n}=e;const r=hx(t,n,"html");return(0,Ap.jsx)("div",{children:(0,Ap.jsx)("div",{dangerouslySetInnerHTML:{__html:r},style:{padding:"5px"}})})}const mx=n(6411);function gx(e,t){return e.some((e=>t.includes(e)))}function vx(e){return e}const bx={creator:["author","originator"],metadataProvider:["distributor","custodian"],associatedParty:["principalInvestigator","editor"]};const yx=async function(e){mx.configure(window.location.origin,{autoescape:!0,web:!0});let t=await fetch(cx).then((e=>e.text()));const n=await fetch(ux).then((e=>e.text()));return t=t.replace("{% include 'emlCoverage.j2' %}",n),mx.renderString(t,{record:e,translateRole:vx,arrayOverlap:gx,citation:hx(e,e.language,"text"),roleMapping:bx,roleMappingKeys:Object.keys(bx)})};var _x=n(5740),xx=n.n(_x);const wx={"CC-BY-4.0":{title:{en:"Creative Commons Attribution 4.0 Attribution"},url:"https://creativecommons.org/licenses/by/4.0",code:"CC-BY-4.0"},"CC-BY-SA-4.0":{title:{en:"Creative Commons Attribution 4.0 Attribution-ShareAlike"},url:"https://creativecommons.org/licenses/by-sa/4.0/",code:"CC-BY-SA-4.0"},"CC-BY-ND-4.0":{title:{en:"Creative Commons Attribution 4.0 Attribution-NoDerivs"},url:"https://creativecommons.org/licenses/by-nd/4.0/",code:"CC-BY-ND-4.0"},"CC-BY-NC-4.0":{title:{en:"Creative Commons Attribution 4.0 Attribution-NonCommercial"},url:"https://creativecommons.org/licenses/by-nc/4.0/",code:"CC-BY-NC-4.0"},"CC-BY-NC-SA-4.0":{title:{en:"Creative Commons Attribution 4.0 Attribution-NonCommercial-ShareAlike"},url:"https://creativecommons.org/licenses/by-nc-sa/4.0/",code:"CC-BY-NC-SA-4.0"},"CC-BY-NC-ND-4.0":{title:{en:"Creative Commons Attribution 4.0 Attribution-NonCommercial-NoDerivs"},url:"https://creativecommons.org/licenses/by-nc-nd/4.0/",code:"CC-BY-NC-ND-4.0"},CC0:{title:{en:"Creative Commons 0"},url:"https://creativecommons.org/share-your-work/public-domain/cc0",code:"CC0"},"government-open-license-canada":{title:{en:"Open Government Licence - Canada",fr:"Licence du gouvernement ouvert \u2013 Canada "},url:"https://open.canada.ca/en/open-government-licence-canada",code:"government-open-license-canada"},"government-open-license-nova-scotia":{title:{en:"Open Government Licence - Nova Scotia"},url:"https://novascotia.ca/opendata/licence.asp",code:"government-open-license-nova-scotia"},"OGL-NB":{title:{en:"Open Government Licence \u2013 New Brunswick"},url:"http://www.snb.ca/e/2000/data-E.html",code:"OGL-NB"},"OGL-BC":{title:{en:"Open Government Licence - British Columbia"},url:"https://www2.gov.bc.ca/gov/content/data/open-data/open-government-licence-bc",code:"OGL-BC"},"government-open-license-newfoundland":{title:{en:"Open Government Licence - Newfoundland and Labrador"},url:"https://opendata.gov.nl.ca/public/opendata/page/?page-id=licence",code:"government-open-license-newfoundland"},"Apache-2.0":{title:{en:"Apache License, Version 2.0"},url:"https://www.apache.org/licenses/LICENSE-2.0",code:"Apache-2.0"},"No License":{title:{en:"No License",fr:"Aucune licence"},url:"https://choosealicense.com/no-permission/",code:"None"},"ca-eccc-odl":{title:{en:"Environment and Climate Change Canada Data Servers End-use Licence",fr:"Licence d\u2019utilisation finale pour les serveurs de donn\xe9es d\u2019Environnement et Changement climatique Canada"},url:"https://eccc-msc.github.io/open-data/licence/readme_en/",code:"ca-eccc-odl"}};function Ex(e,t){return e.some((e=>t.includes(e)))}const Tx=function(e){var t,n,r,i,o,a;const{contacts:s,language:l}=e,c=s.find((e=>Ex(e.role,["publisher","custodian"]))),u=s.find((e=>Ex(e.role,["orginator","owner"]))),d={citation:hx(e,e.language,"text"),creator_email:null===u||void 0===u?void 0:u.indEmail,creator_name:null===u||void 0===u?void 0:u.indName,creator_url:null===u||void 0===u?void 0:u.orgURL,creator_institution:null===u||void 0===u?void 0:u.orgName,publisher_email:null===c||void 0===c?void 0:c.indEmail,publisher_institution:null===c||void 0===c?void 0:c.orgName,publisher_url:null===c||void 0===c?void 0:c.orgURL,publisher_name:null===c||void 0===c?void 0:c.indName,date_created:(p=e.created,p.slice(0,10)),geospatial_lat_max:null===(t=e.map)||void 0===t?void 0:t.north,geospatial_lat_min:null===(n=e.map)||void 0===n?void 0:n.south,geospatial_lon_max:null===(r=e.map)||void 0===r?void 0:r.east,geospatial_lon_min:null===(i=e.map)||void 0===i?void 0:i.west,geospatial_vertical_min:e.verticalExtentMin,geospatial_vertical_max:e.verticalExtentMax,institution:s.map((e=>e.orgName)).filter((e=>e)).join(),project:null===(o=e.projects)||void 0===o?void 0:o.join(),product_version:e.edition,license:(null===(a=wx[e.license])||void 0===a?void 0:a.url)||e.license,instrument:e.instruments.map((e=>[e.manufacturer,e.id,e.version].join(" - "))).filter((e=>e)).join(),id:e.identifier,naming_authority:"ca.cioos",references:"https://doi.org/".concat(e.datasetIdentifier),keywords:e.keywords[l],platform:e.platform,platform_vocabulary:e.platform&&"http://vocab.nerc.ac.uk/collection/L06/current/",summary:e.abstract[l],title:e.title[l]};var p;const h=Object.entries(d).filter((e=>{let[,t]=e;return t})).map((e=>{let[t,n]=e;return' ').concat(xx()(String(n)),"")})).join("\n");return"\n/your/waf/".concat(e.filename||C_(e),".xml\n\n").concat(h,"\n")};var Cx=n(7152),kx=n.n(Cx);const Sx=e=>!e||kx().isEmail(e),Ox=e=>!e||kx().isURL(e),Ax=Zp(Yp(),"checkURLActive"),jx=/^(https:\/\/doi.org\/)?10\.\d{4,9}\/[-._;()/:A-Z0-9]+$/i;const Px=e=>!e||jx.test(e)&&function(e){let t;try{t=new URL(e)}catch(n){return!1}return"http:"===t.protocol||"https:"===t.protocol}(e),Ix=e=>e>=-90&&e<=90,Lx=e=>e>=-360&&e<=360,Rx=e=>{const t=e.split(" ").map((e=>e.split(",")));return!(t.length<2)&&(n=t[0],r=t[t.length-1],!!JSON.parse(JSON.stringify(n)===JSON.stringify(r))&&t.filter((e=>{let[t,n]=e;return Lx(parseFloat(n))&&Ix(parseFloat(t))})).length===t.length);var n,r},Nx=e=>Boolean(e.role&&e.role.length&&(e.orgName||e.givenNames||e.lastName)),Dx={title:{validation:e=>e&&e.en&&e.fr,tab:"start",error:{en:"Missing title in French or English",fr:"Titre manquant en fran\xe7ais ou en anglais"}},resourceType:{validation:e=>e,tab:"start",error:{en:"Please select a theme for this record",fr:"Veuillez s\xe9lectionner un th\xe8me pour cet enregistrement"}},abstract:{validation:e=>e&&e.en&&e.fr,tab:"dataID",error:{en:"Missing abstract in French or English",fr:"Abr\xe9g\xe9 manquant en fran\xe7ais ou en anglais"}},keywords:{validation:e=>e&&(e.en.length||e.fr.length),tab:"dataID",error:{en:"At least one keyword is required",fr:"Au moins un mot cl\xe9 est requis"}},eov:{validation:e=>e&&e.length,tab:"dataID",error:{en:"At least one EOV is required",fr:"Au moins un variable essentielle oc\xe9anique est requise"}},datasetIdentifier:{validation:Px,optional:!0,tab:"start",error:{en:"Invalid DOI",fr:"DOI non valide"}},metadataScope:{tab:"start",validation:e=>e,error:{en:"Please select a resource type",fr:"Veuillez s\xe9lectionner un type de ressources"}},progress:{tab:"dataID",validation:e=>e,error:{en:"Please select a dataset status",fr:"L'information spatiale est manquante"}},language:{tab:"dataID",validation:e=>e,error:{en:"Language field is missing",fr:"Le champ de langue est vide"}},license:{tab:"dataID",validation:e=>e,error:{en:"Please select a license for the dataset",fr:"Veuillez s\xe9lectionner une licence pour le jeu de donn\xe9es"}},map:{error:{en:"Spatial information is missing",fr:"L'information g\xe9ographique est manquante"},tab:"spatial",validation:(e,t)=>{if(!e)return!1;const n=parseFloat(e.north),r=parseFloat(e.south),i=parseFloat(e.east),o=parseFloat(e.west),{polygon:a,description:s}=e;return n&&r&&i&&o&&n>=r&&i>=o&&Ix(n)&&Ix(r)&&Lx(i)&&Lx(o)||a&&Rx(a)||!t.resourceType||Array.isArray(t.resourceType)&&t.resourceType.includes("biological")&&s}},verticalExtentMin:{tab:"spatial",validation:(e,t)=>e||t.noVerticalExtent,error:{en:"Missing Vertical Extent Min",fr:"\xc9tendue verticale manquante Min"}},verticalExtentMax:{tab:"spatial",validation:(e,t)=>e||t.noVerticalExtent,error:{en:"Missing Vertical Extent Max",fr:"\xc9tendue verticale manquante Max"}},verticalExtentDirection:{tab:"spatial",validation:(e,t)=>e||t.noVerticalExtent,error:{en:"Missing Vertical Extent Direction",fr:"Direction de l'\xe9tendue verticale manquante"}},contacts:{tab:"contacts",validation:e=>e&&e.every(Nx)&&e.every((e=>Sx(e.indEmail)&&Sx(e.orgEmail)&&Ox(e.orgURL)))&&e.filter(Nx).find((e=>e.role.includes("custodian")))&&e.filter(Nx).find((e=>e.role.includes("owner")))&&e.filter(Nx).find((e=>e.inCitation)),error:{en:"Every contact must have at least one role checked, and 'Data Owner' or 'Metadata Custodian' must be added to at least one contact. One contact can occupy multiple roles. Email addresses must be in the form of user@example.com and URLs must be valid. At least one contact must be selected to appear in the citation.",fr:"Chaque contact doit avoir au moins un r\xf4le coch\xe9, et \xab Propri\xe9taire des donn\xe9es \xbb ou \xab D\xe9positaire des m\xe9tadonn\xe9es \xbb doit \xeatre ajout\xe9 \xe0 au moins un contact. Un contact peut occuper plusieurs r\xf4les. Les adresses e-mail doivent \xeatre au format user@example.com et les URL doivent \xeatre valides. Au moins un contact doit \xeatre s\xe9lectionn\xe9 pour appara\xeetre dans la citation."}},distribution:{tab:"resources",validation:e=>Array.isArray(e)&&e.filter((e=>e.name&&e.url&&kx().isURL(e.url))).length,error:{en:"Must have at least one resource. If a URL is included it must be valid.",fr:"Doit avoir au moins une ressource. V\xe9rifiez si votre URL est valide."}},associated_resources:{tab:"relatedworks",validation:e=>!e||e&&e.every((e=>e.title&&e.title.en&&e.title.fr&&e.authority&&e.code&&e.association_type)),error:{en:"Related works must contain a Title, Identifier, Identifier Type, and a Relation Type to be valid.",fr:"Les \u0153uvres connexes doivent contenir un titre, un identifiant, un type d'identifiant et un type de relation pour \xeatre valides."}},history:{tab:"lineage",validation:e=>!e||Array.isArray(e)&&e.every((e=>!e.processingStep||e.processingStep&&e.processingStep.every((e=>e.title&&e.description))))&&e.every((e=>!e.source||e.source&&e.source.every((e=>e.title&&e.description))))&&e.every((e=>"collectionSession"!==e.scope||"collectionSession"===e.scope&&e.statement.en&&e.statement.fr)),error:{en:"Lineage must contain a title and description for each processing step and source. If lineage scope is set to 'data collection' then lineage statement is required",fr:"Le lignage doit contenir un titre et une description pour chaque \xe9tape de traitement. Si la port\xe9e du lignage est d\xe9finie sur \xab collecte de donn\xe9es \xbb, alors une d\xe9claration de lignage est requise"}},platforms:{tab:"platform",validation:(e,t)=>t.noPlatform||e.every((e=>e.type&&e.id))||!t.metadataScope||"model"===t.metadataScope,error:{en:"Missing platform type or ID",fr:"Type ou ID de plateforme manquant"}},instruments:{tab:"platformInstruments",validation:e=>e.every((e=>e.id)),error:{en:"Instrument ID is required",fr:"L'identifiant de l'instrument est requis"}},taxa:{tab:"taxa",validation:(e,t)=>t.noTaxa||e,error:{en:"Missing Taxonomic Coverage",fr:"Couverture taxonomique manquante"}}},Mx=(e,t)=>{const n=e[t],r=Dx[t]&&Dx[t].validation||(()=>!0);return r&&r(n,e)},Bx={distribution:{tab:"resources",validation:async e=>{const t=await Promise.all(e.map((async e=>{const t=await Ax(e.url);return{...e,status:t.data}}))),n=t.filter((e=>!e.status));return n.length},error:{en:"Resource URL is not accessible. This could be because it has not been created yet or is otherwise unreachable",fr:"L'URL de la ressource n'est pas accessible. Cela peut \xeatre d\xfb au fait qu'il n'a pas encore \xe9t\xe9 cr\xe9\xe9 ou qu'il est autrement inaccessible."}}},Qx=e=>{const t=Object.keys(Dx),n=t.filter((e=>!Dx[e].optional)).length;return t.filter((t=>!Dx[t].optional&&Mx(e,t))).length/n},Ux=e=>{const t=Object.entries(Dx).filter((e=>{let[,t]=e;return t.optional})).every((t=>{let[n]=t;return Mx(e,n)}));return 1===Qx(e)&&t};const Fx=function(e,t,n,r){const i=e.contacts?e.contacts.reduce(((e,t)=>{let n;if(t.inCitation&&!t.role.includes("publisher")){const{givenNames:e,lastName:r,orgName:i,indOrcid:o,orgRor:a}=t;e&&(n={name:"".concat(r,", ").concat(e),nameType:"Personal",givenName:e,familyName:r,affiliation:i?[{name:i,schemeUri:"https://ror.org",affiliationIdentifier:a,affiliationIdentifierScheme:"ROR"}]:[]},o&&(n.nameIdentifiers=[{schemeUri:"https://orcid.org",nameIdentifier:o,nameIdentifierScheme:"ORCID"}]))}return n&&e.push(n),e}),[]):[],o=e.contacts.find((e=>e.role.includes("publisher"))),a=e.contacts.filter((e=>e.role.includes("funder")));let s;if(e.dateRevised){const t=parseInt(e.dateRevised.slice(0,4),10);s=Number.isNaN(t)?void 0:t}else if(e.datePublished){const t=parseInt(e.datePublished.slice(0,4),10);s=Number.isNaN(t)?void 0:t}else s=void 0;const l=e.keywords?Object.entries(e.keywords).flatMap((e=>{let[t,n]=e;return n.map((e=>({lang:t,subject:e})))})):void 0,c=[];e.dateStart&&c.push({date:e.dateStart,dateType:"Collected",dateInformation:"Start date when data was first collected"}),e.dateEnd&&c.push({date:e.dateEnd,dateType:"Collected",dateInformation:"End date when data was last collected"}),e.dateRevised&&c.push({date:e.dateRevised,dateType:"Updated",dateInformation:"Date when the data was last revised"});const u=wx[e.license],d=u&&u.title?[{rights:u.title.en,rightsUri:u.url,schemeUri:"https://spdx.org/licenses/",rightsIdentifier:u.code,rightsIdentifierScheme:"SPDX"}]:[];let{east:p,north:h,south:f,west:m}=e.map?e.map:{};p=Number.isNaN(p)?void 0:p,h=Number.isNaN(h)?void 0:h,f=Number.isNaN(f)?void 0:f,m=Number.isNaN(m)?void 0:m;const g=e.map&&p&&h&&f&&m?[{geoLocationBox:{eastBoundLongitude:parseFloat(p),northBoundLatitude:parseFloat(h),southBoundLatitude:parseFloat(f),westBoundLongitude:parseFloat(m)}}]:[],v={data:{type:"dois",attributes:{prefix:r,creators:i,titles:[]}}};return e.title.en&&v.data.attributes.titles.push({lang:"en",title:e.title.en}),e.title.fr&&v.data.attributes.titles.push({lang:"fr",title:e.title.fr}),o&&(v.data.attributes.publisher=o.orgName||o.indName),a&&a.length>0&&(v.data.attributes.fundingReferences=a.map((e=>{const t={funderName:e.orgName};return e.orgRor&&(t.funderIdentifier=e.orgRor,t.funderIdentifierType="ROR"),t}))),e.datePublished&&(v.data.attributes.publicationYear=s),e.keywords&&(v.data.attributes.subjects=l),e.edition&&(v.data.attributes.version=e.edition),c.length>0&&(v.data.attributes.dates=c),v.data.attributes.rightsList=d,delete e.abstract.translations,v.data.attributes.descriptions=Object.entries(e.abstract).map((e=>{let[t,n]=e;return{lang:t,description:n,descriptionType:"Abstract"}})),e.map&&(v.data.attributes.geoLocations=g),v.data.attributes.types={resourceTypeGeneral:e.metadataScope||"Dataset"},e.associated_resources&&(v.data.attributes.relatedIdentifiers=[...e.associated_resources.map((e=>{let{authority:t,code:n,association_type:r}=e;return{relatedIdentifier:n,relatedIdentifierType:t,relationType:r}}))]),e.history&&(v.data.attributes.relatedIdentifiers=[...v.data.attributes.relatedIdentifiers,...e.history.flatMap((e=>{let{source:t,processingStep:n,additionalDocumentation:r}=e;return[...(null===t||void 0===t?void 0:t.map((e=>{let{authority:t,code:n}=e;return{relatedIdentifier:n,relatedIdentifierType:t,relationType:"isDerivedFrom"}})))||[],...(null===n||void 0===n?void 0:n.map((e=>{let{authority:t,code:n}=e;return{relatedIdentifier:n,relatedIdentifierType:t,relationType:"IsDocumentedBy"}})))||[],...(null===r||void 0===r?void 0:r.map((e=>{let{authority:t,code:n}=e;return{relatedIdentifier:n,relatedIdentifierType:t,relationType:"IsDocumentedBy"}})))||[]]}))]),v.data.attributes.relatedIdentifiers&&(v.data.attributes.relatedIdentifiers=v.data.attributes.relatedIdentifiers.filter((e=>e.relatedIdentifier&&e.relatedIdentifierType))),v.data.attributes.url="".concat(Cn[n].catalogueURL[t],"dataset/ca-cioos_").concat(e.identifier),v};var zx="en",qx={},Hx={};function Wx(){return zx}function Gx(e){return qx[e]?e:Hx[e.toLowerCase()]?Hx[e.toLowerCase()]:void 0}function Vx(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).localeMatcher||"lookup";switch(t){case"lookup":case"best fit":return $x(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(t))}}function $x(e){var t=Gx(e);if(t)return t;for(var n=e.split("-");e.length>1;){n.pop();var r=Gx(e=n.join("-"));if(r)return r}}var Kx={af:function(e){return 1==e?"one":"other"},am:function(e){return e>=0&&e<=1?"one":"other"},ar:function(e){var t=String(e).split("."),n=Number(t[0])==e&&t[0].slice(-2);return 0==e?"zero":1==e?"one":2==e?"two":n>=3&&n<=10?"few":n>=11&&n<=99?"many":"other"},ast:function(e){var t=!String(e).split(".")[1];return 1==e&&t?"one":"other"},be:function(e){var t=String(e).split("."),n=Number(t[0])==e,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2);return 1==r&&11!=i?"one":r>=2&&r<=4&&(i<12||i>14)?"few":n&&0==r||r>=5&&r<=9||i>=11&&i<=14?"many":"other"},br:function(e){var t=String(e).split("."),n=Number(t[0])==e,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2),o=n&&t[0].slice(-6);return 1==r&&11!=i&&71!=i&&91!=i?"one":2==r&&12!=i&&72!=i&&92!=i?"two":(3==r||4==r||9==r)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=e&&n&&0==o?"many":"other"},bs:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",i=!t[1],o=n.slice(-1),a=n.slice(-2),s=r.slice(-1),l=r.slice(-2);return i&&1==o&&11!=a||1==s&&11!=l?"one":i&&o>=2&&o<=4&&(a<12||a>14)||s>=2&&s<=4&&(l<12||l>14)?"few":"other"},ca:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-6);return 1==e&&r?"one":0!=n&&0==i&&r?"many":"other"},ceb:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",i=!t[1],o=n.slice(-1),a=r.slice(-1);return i&&(1==n||2==n||3==n)||i&&4!=o&&6!=o&&9!=o||!i&&4!=a&&6!=a&&9!=a?"one":"other"},cs:function(e){var t=String(e).split("."),n=t[0],r=!t[1];return 1==e&&r?"one":n>=2&&n<=4&&r?"few":r?"other":"many"},cy:function(e){return 0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other"},da:function(e){var t=String(e).split("."),n=t[0],r=Number(t[0])==e;return 1!=e&&(r||0!=n&&1!=n)?"other":"one"},dsb:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",i=!t[1],o=n.slice(-2),a=r.slice(-2);return i&&1==o||1==a?"one":i&&2==o||2==a?"two":i&&(3==o||4==o)||3==a||4==a?"few":"other"},dz:function(e){return"other"},es:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-6);return 1==e?"one":0!=n&&0==i&&r?"many":"other"},ff:function(e){return e>=0&&e<2?"one":"other"},fr:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e>=0&&e<2?"one":0!=n&&0==i&&r?"many":"other"},ga:function(e){var t=String(e).split("."),n=Number(t[0])==e;return 1==e?"one":2==e?"two":n&&e>=3&&e<=6?"few":n&&e>=7&&e<=10?"many":"other"},gd:function(e){var t=String(e).split("."),n=Number(t[0])==e;return 1==e||11==e?"one":2==e||12==e?"two":n&&e>=3&&e<=10||n&&e>=13&&e<=19?"few":"other"},he:function(e){var t=String(e).split("."),n=t[0],r=!t[1];return 1==n&&r||0==n&&!r?"one":2==n&&r?"two":"other"},is:function(e){var t=String(e).split("."),n=t[0],r=(t[1]||"").replace(/0+$/,""),i=Number(t[0])==e,o=n.slice(-1),a=n.slice(-2);return i&&1==o&&11!=a||r%10==1&&r%100!=11?"one":"other"},ksh:function(e){return 0==e?"zero":1==e?"one":"other"},lt:function(e){var t=String(e).split("."),n=t[1]||"",r=Number(t[0])==e,i=r&&t[0].slice(-1),o=r&&t[0].slice(-2);return 1==i&&(o<11||o>19)?"one":i>=2&&i<=9&&(o<11||o>19)?"few":0!=n?"many":"other"},lv:function(e){var t=String(e).split("."),n=t[1]||"",r=n.length,i=Number(t[0])==e,o=i&&t[0].slice(-1),a=i&&t[0].slice(-2),s=n.slice(-2),l=n.slice(-1);return i&&0==o||a>=11&&a<=19||2==r&&s>=11&&s<=19?"zero":1==o&&11!=a||2==r&&1==l&&11!=s||2!=r&&1==l?"one":"other"},mk:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",i=!t[1],o=n.slice(-1),a=n.slice(-2),s=r.slice(-1),l=r.slice(-2);return i&&1==o&&11!=a||1==s&&11!=l?"one":"other"},mt:function(e){var t=String(e).split("."),n=Number(t[0])==e&&t[0].slice(-2);return 1==e?"one":2==e?"two":0==e||n>=3&&n<=10?"few":n>=11&&n<=19?"many":"other"},pa:function(e){return 0==e||1==e?"one":"other"},pl:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-1),o=n.slice(-2);return 1==e&&r?"one":r&&i>=2&&i<=4&&(o<12||o>14)?"few":r&&1!=n&&(0==i||1==i)||r&&i>=5&&i<=9||r&&o>=12&&o<=14?"many":"other"},pt:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-6);return 0==n||1==n?"one":0!=n&&0==i&&r?"many":"other"},ro:function(e){var t=String(e).split("."),n=!t[1],r=Number(t[0])==e&&t[0].slice(-2);return 1==e&&n?"one":!n||0==e||1!=e&&r>=1&&r<=19?"few":"other"},ru:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-1),o=n.slice(-2);return r&&1==i&&11!=o?"one":r&&i>=2&&i<=4&&(o<12||o>14)?"few":r&&0==i||r&&i>=5&&i<=9||r&&o>=11&&o<=14?"many":"other"},se:function(e){return 1==e?"one":2==e?"two":"other"},si:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"";return 0==e||1==e||0==n&&1==r?"one":"other"},sl:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-2);return r&&1==i?"one":r&&2==i?"two":r&&(3==i||4==i)||!r?"few":"other"}};Kx.as=Kx.am,Kx.az=Kx.af,Kx.bg=Kx.af,Kx.bn=Kx.am,Kx.brx=Kx.af,Kx.ce=Kx.af,Kx.chr=Kx.af,Kx.de=Kx.ast,Kx.ee=Kx.af,Kx.el=Kx.af,Kx.en=Kx.ast,Kx.et=Kx.ast,Kx.eu=Kx.af,Kx.fa=Kx.am,Kx.fi=Kx.ast,Kx.fil=Kx.ceb,Kx.fo=Kx.af,Kx.fur=Kx.af,Kx.fy=Kx.ast,Kx.gl=Kx.ast,Kx.gu=Kx.am,Kx.ha=Kx.af,Kx.hi=Kx.am,Kx.hr=Kx.bs,Kx.hsb=Kx.dsb,Kx.hu=Kx.af,Kx.hy=Kx.ff,Kx.ia=Kx.ast,Kx.id=Kx.dz,Kx.ig=Kx.dz,Kx.it=Kx.ca,Kx.ja=Kx.dz,Kx.jgo=Kx.af,Kx.jv=Kx.dz,Kx.ka=Kx.af,Kx.kea=Kx.dz,Kx.kk=Kx.af,Kx.kl=Kx.af,Kx.km=Kx.dz,Kx.kn=Kx.am,Kx.ko=Kx.dz,Kx.ks=Kx.af,Kx.ku=Kx.af,Kx.ky=Kx.af,Kx.lb=Kx.af,Kx.lkt=Kx.dz,Kx.lo=Kx.dz,Kx.ml=Kx.af,Kx.mn=Kx.af,Kx.mr=Kx.af,Kx.ms=Kx.dz,Kx.my=Kx.dz,Kx.nb=Kx.af,Kx.ne=Kx.af,Kx.nl=Kx.ast,Kx.nn=Kx.af,Kx.no=Kx.af,Kx.or=Kx.af,Kx.pcm=Kx.am,Kx.ps=Kx.af,Kx.rm=Kx.af,Kx.sah=Kx.dz,Kx.sc=Kx.ast,Kx.sd=Kx.af,Kx.sk=Kx.cs,Kx.so=Kx.af,Kx.sq=Kx.af,Kx.sr=Kx.bs,Kx.su=Kx.dz,Kx.sv=Kx.ast,Kx.sw=Kx.ast,Kx.ta=Kx.af,Kx.te=Kx.af,Kx.th=Kx.dz,Kx.ti=Kx.pa,Kx.tk=Kx.af,Kx.to=Kx.dz,Kx.tr=Kx.af,Kx.ug=Kx.af,Kx.uk=Kx.ru,Kx.ur=Kx.ast,Kx.uz=Kx.af,Kx.vi=Kx.dz,Kx.wae=Kx.af,Kx.wo=Kx.dz,Kx.xh=Kx.af,Kx.yi=Kx.ast,Kx.yo=Kx.dz,Kx.yue=Kx.dz,Kx.zh=Kx.dz,Kx.zu=Kx.am;const Yx=Kx;function Zx(e){return"pt-PT"===e?e:function(e){var t=e.match(Jx);if(!t)throw new TypeError("Invalid locale: ".concat(e));return t[1]}(e)}var Jx=/^([a-z0-9]+)/i;function Xx(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=n.numeric,i=n.style,o=n.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",void 0!==r){if(cw.indexOf(r)<0)throw new RangeError('Invalid "numeric" option: '.concat(r));this.numeric=r}if(void 0!==i){if(uw.indexOf(i)<0)throw new RangeError('Invalid "style" option: '.concat(i));this.style=i}if(void 0!==o){if(dw.indexOf(o)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(o));this.localeMatcher=o}if("string"===typeof t&&(t=[t]),t.push(Wx()),this.locale=e.supportedLocalesOf(t,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");ew.supportedLocalesOf(this.locale).length>0?this.pluralRules=new ew(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),"undefined"!==typeof Intl&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=Vx(this.locale,{localeMatcher:this.localeMatcher})}var t,n,r;return t=e,n=[{key:"format",value:function(){var e=ow(vw(arguments),2),t=e[0],n=e[1];return this.getRule(t,n).replace("{0}",this.formatNumber(Math.abs(t)))}},{key:"formatToParts",value:function(){var e=ow(vw(arguments),2),t=e[0],n=e[1],r=this.getRule(t,n),i=r.indexOf("{0}");if(i<0)return[{type:"literal",value:r}];var o=[];return i>0&&o.push({type:"literal",value:r.slice(0,i)}),o=o.concat(this.formatNumberToParts(Math.abs(t)).map((function(e){return rw(rw({},e),{},{unit:n})}))),i+31&&void 0!==arguments[1]?arguments[1]:{};if("string"===typeof e)e=[e];else if(!Array.isArray(e))throw new TypeError('Invalid "locales" argument');return e.filter((function(e){return Vx(e,t)}))},pw.addLocale=function(e){if(!e)throw new Error("No locale data passed");qx[e.locale]=e,Hx[e.locale.toLowerCase()]=e.locale},pw.setDefaultLocale=function(e){zx=e},pw.getDefaultLocale=Wx,pw.PluralRules=ew;var hw='Invalid "unit" argument';function fw(e){if("symbol"===tw(e))throw new TypeError(hw);if("string"!==typeof e)throw new RangeError("".concat(hw,": ").concat(e));if("s"===e[e.length-1]&&(e=e.slice(0,e.length-1)),lw.indexOf(e)<0)throw new RangeError("".concat(hw,": ").concat(e));return e}var mw='Invalid "number" argument';function gw(e){if(e=Number(e),Number.isFinite&&!Number.isFinite(e))throw new RangeError("".concat(mw,": ").concat(e));return e}function vw(e){if(e.length<2)throw new TypeError('"unit" argument is required');return[gw(e[0]),fw(e[1])]}function bw(e){return bw="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},bw(e)}function yw(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ew(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0}))}(e,a);var l=function(e,t,n){var r=n.now,i=n.future,o=n.round;if(0===e.length)return;var a=Hw(e,t,{now:r,future:i||t<0,round:o});if(-1===a)return;var s=e[a];if(s.granularity){if(0===Dw(o)(Math.abs(t)/Nw(s)/s.granularity)*s.granularity&&a>0)return e[a-1]}return s}(e,t,{now:r,future:i,round:o});return s?l?[e[e.indexOf(l)-1],l,e[e.indexOf(l)+1]]:[void 0,void 0,e[0]]:l}function Hw(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=Qw(e[r],function(e){for(var t=1;tr,s=Math.abs(t-r),l=Dw(i)(s/o)*o;return a?l>0?s-l+function(e,t){return(1-Mw(e))*t+1}(i,o):s-l+1:-(s-l)+function(e,t){return Mw(e)*t}(i,o)}}var Gw=31536e9;function Vw(e,t,n){var r=n.prevStep,i=n.nextStep,o=n.now,a=n.future,s=n.round,l=e.getTime?e.getTime():e,c=function(e){return Ww(e,l,{now:o,round:s})},u=function(e,t,n){var r=n.now,i=n.future,o=n.round,a=n.prevStep;if(e){var s=function(e,t,n){var r=n.now,i=n.future,o=n.round,a=n.prevStep,s=Qw(e,{timestamp:t,now:r,future:i,round:o,prevStep:a});if(void 0===s)return;return i?t-1e3*s+1:0===s&&t===r?Gw:t+1e3*s}(e,t,{now:r,future:i,round:o,prevStep:a});if(void 0===s)return;return s-r}return i?t-r+1:Gw}(a?t:i,l,{future:a,now:o,round:s,prevStep:a?r:t});if(void 0!==u){var d;if(t&&(t.getTimeToNextUpdate&&(d=t.getTimeToNextUpdate(l,{getTimeToNextUpdateForUnit:c,getRoundFunction:Dw,now:o,future:a,round:s})),void 0===d)){var p=t.unit||t.formatAs;p&&(d=c(p))}return void 0===d?u:Math.min(d,u)}}var $w={};function Kw(e){return $w[e]}function Yw(e){if(!e)throw new Error("[javascript-time-ago] No locale data passed.");$w[e.locale]=e}const Zw={steps:[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],labels:"long"};function Jw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xw(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).polyfill;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"string"===typeof t&&(t=[t]),this.locale=function(e,t){for(var n,r=ww(e);!(n=r()).done;){var i=n.value;if(t(i))return i;for(var o=i.split("-");o.length>1;)if(o.pop(),t(i=o.join("-")))return i}throw new Error("No locale data has been registered for any of the locales: ".concat(e.join(", ")))}(t.concat(e.getDefaultLocale()),Kw),"undefined"!==typeof Intl&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),!1===n?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=pw,this.IntlPluralRules=pw.PluralRules),this.relativeTimeFormatCache=new _w,this.pluralRulesCache=new _w}var t,n,r;return t=e,n=[{key:"format",value:function(e,t,n){var r;n||(t&&"string"!==typeof(r=t)&&!kw(r)?(n=t,t=void 0):n={}),t||(t=tE),"string"===typeof t&&(t=function(e){switch(e){case"default":case"round":return Zw;case"round-minute":return tE;case"approximate":default:return rE;case"time":case"approximate-time":return iE;case"mini":return SE;case"mini-now":return PE;case"mini-minute":return NE;case"mini-minute-now":return QE;case"twitter":return uE;case"twitter-now":return fE;case"twitter-minute":return bE;case"twitter-minute-now":return wE;case"twitter-first-minute":return kE}}(t));var i,o=function(e){if(e.constructor===Date||function(e){return"object"===UE(e)&&"function"===typeof e.getTime}(e))return e.getTime();if("number"===typeof e)return e;throw new Error("Unsupported relative time formatter input: ".concat(UE(e),", ").concat(e))}(e),a=this.getLabels(t.flavour||t.labels),s=a.labels,l=a.labelsType;void 0!==t.now&&(i=t.now),void 0===i&&void 0!==n.now&&(i=n.now),void 0===i&&(i=Date.now());var c=(i-o)/1e3,u=n.future||c<0,d=function(e,t,n,r){var i=e.now||t&&t.now;return i?"string"===typeof i?i:r?i.future:i.past:n&&n.second&&n.second.current?n.second.current:void 0}(s,Kw(this.locale).now,Kw(this.locale).long,u);if(t.custom){var p=t.custom({now:i,date:new Date(o),time:o,elapsed:c,locale:this.locale});if(void 0!==p)return p}var h=function(e,t,n){var r=Object.keys(t);return n&&r.push("now"),e&&(r=e.filter((function(e){return"now"===e||r.indexOf(e)>=0}))),r}(t.units,s,d),f=n.round||t.round,m=FE(qw(t.gradation||t.steps||tE.steps,c,{now:i,units:h,round:f,future:u,getNextStep:!0}),3),g=m[0],v=m[1],b=m[2],y=this.formatDateForStep(o,v,c,{labels:s,labelsType:l,nowLabel:d,now:i,future:u,round:f})||"";return n.getTimeToNextUpdate?[y,Vw(o,v,{nextStep:b,prevStep:g,now:i,future:u,round:f})]:y}},{key:"formatDateForStep",value:function(e,t,n,r){var i=this,o=r.labels,a=r.labelsType,s=r.nowLabel,l=r.now,c=r.future,u=r.round;if(t){if(t.format)return t.format(e,this.locale,{formatAs:function(e,t){return i.formatValue(t,e,{labels:o,future:c})},now:l,future:c});var d=t.unit||t.formatAs;if(!d)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(t)));if("now"===d)return s;var p=Math.abs(n)/Nw(t);t.granularity&&(p=Dw(u)(p/t.granularity)*t.granularity);var h=-1*Math.sign(n)*Dw(u)(p);switch(0===h&&(h=c?0:-0),a){case"long":case"short":case"narrow":return this.getFormatter(a).format(h,d);default:return this.formatValue(h,d,{labels:o,future:c})}}}},{key:"formatValue",value:function(e,t,n){var r=n.labels,i=n.future;return this.getFormattingRule(r,t,e,{future:i}).replace("{0}",this.formatNumber(Math.abs(e)))}},{key:"getFormattingRule",value:function(e,t,n,r){var i=r.future;if(this.locale,"string"===typeof(e=e[t]))return e;var o=e[0===n?i?"future":"past":n<0?"past":"future"]||e;return"string"===typeof o?o:o[this.getPluralRules().select(Math.abs(n))]||o.other}},{key:"formatNumber",value:function(e){return this.numberFormat?this.numberFormat.format(e):String(e)}},{key:"getFormatter",value:function(e){return this.relativeTimeFormatCache.get(this.locale,e)||this.relativeTimeFormatCache.put(this.locale,e,new this.IntlRelativeTimeFormat(this.locale,{style:e}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];"string"===typeof e&&(e=[e]),e=(e=e.map((function(e){switch(e){case"tiny":case"mini-time":return"mini";default:return e}}))).concat("long");for(var t,n=Kw(this.locale),r=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=zE(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(t=r()).done;){var i=t.value;if(n[i])return{labelsType:i,labels:n[i]}}}}],n&&HE(t.prototype,n),r&&HE(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),VE="en";GE.getDefaultLocale=function(){return VE},GE.setDefaultLocale=function(e){return VE=e},GE.addDefaultLocale=function(e){if(WE)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");WE=!0,GE.setDefaultLocale(e.locale),GE.addLocale(e)},GE.addLocale=function(e){Yw(e),pw.addLocale(e)},GE.locale=GE.addLocale,GE.addLabels=function(e,t,n){var r=Kw(e);r||(Yw({locale:e}),r=Kw(e)),r[t]=n};const $E={locale:"en",long:{year:{previous:"last year",current:"this year",next:"next year",past:{one:"{0} year ago",other:"{0} years ago"},future:{one:"in {0} year",other:"in {0} years"}},quarter:{previous:"last quarter",current:"this quarter",next:"next quarter",past:{one:"{0} quarter ago",other:"{0} quarters ago"},future:{one:"in {0} quarter",other:"in {0} quarters"}},month:{previous:"last month",current:"this month",next:"next month",past:{one:"{0} month ago",other:"{0} months ago"},future:{one:"in {0} month",other:"in {0} months"}},week:{previous:"last week",current:"this week",next:"next week",past:{one:"{0} week ago",other:"{0} weeks ago"},future:{one:"in {0} week",other:"in {0} weeks"}},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:{one:"{0} hour ago",other:"{0} hours ago"},future:{one:"in {0} hour",other:"in {0} hours"}},minute:{current:"this minute",past:{one:"{0} minute ago",other:"{0} minutes ago"},future:{one:"in {0} minute",other:"in {0} minutes"}},second:{current:"now",past:{one:"{0} second ago",other:"{0} seconds ago"},future:{one:"in {0} second",other:"in {0} seconds"}}},short:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0} yr. ago",future:"in {0} yr."},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},future:{one:"in {0} qtr.",other:"in {0} qtrs."}},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0} mo. ago",future:"in {0} mo."},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0} wk. ago",future:"in {0} wk."},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:"{0} hr. ago",future:"in {0} hr."},minute:{current:"this minute",past:"{0} min. ago",future:"in {0} min."},second:{current:"now",past:"{0} sec. ago",future:"in {0} sec."}},narrow:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0}y ago",future:"in {0}y"},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:"{0}q ago",future:"in {0}q"},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0}mo ago",future:"in {0}mo"},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0}w ago",future:"in {0}w"},day:{previous:"yesterday",current:"today",next:"tomorrow",past:"{0}d ago",future:"in {0}d"},hour:{current:"this hour",past:"{0}h ago",future:"in {0}h"},minute:{current:"this minute",past:"{0}m ago",future:"in {0}m"},second:{current:"now",past:"{0}s ago",future:"in {0}s"}},now:{now:{current:"now",future:"in a moment",past:"just now"}},mini:{year:"{0}yr",month:"{0}mo",week:"{0}wk",day:"{0}d",hour:"{0}h",minute:"{0}m",second:"{0}s",now:"now"},"short-time":{year:"{0} yr.",month:"{0} mo.",week:"{0} wk.",day:{one:"{0} day",other:"{0} days"},hour:"{0} hr.",minute:"{0} min.",second:"{0} sec."},"long-time":{year:{one:"{0} year",other:"{0} years"},month:{one:"{0} month",other:"{0} months"},week:{one:"{0} week",other:"{0} weeks"},day:{one:"{0} day",other:"{0} days"},hour:{one:"{0} hour",other:"{0} hours"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} second",other:"{0} seconds"}}},KE={locale:"fr",long:{year:{previous:"l\u2019ann\xe9e derni\xe8re",current:"cette ann\xe9e",next:"l\u2019ann\xe9e prochaine",past:{one:"il y a {0} an",other:"il y a {0} ans"},future:{one:"dans {0} an",other:"dans {0} ans"}},quarter:{previous:"le trimestre dernier",current:"ce trimestre",next:"le trimestre prochain",past:{one:"il y a {0} trimestre",other:"il y a {0} trimestres"},future:{one:"dans {0} trimestre",other:"dans {0} trimestres"}},month:{previous:"le mois dernier",current:"ce mois-ci",next:"le mois prochain",past:"il y a {0} mois",future:"dans {0} mois"},week:{previous:"la semaine derni\xe8re",current:"cette semaine",next:"la semaine prochaine",past:{one:"il y a {0} semaine",other:"il y a {0} semaines"},future:{one:"dans {0} semaine",other:"dans {0} semaines"}},day:{previous:"hier","previous-2":"avant-hier",current:"aujourd\u2019hui",next:"demain","next-2":"apr\xe8s-demain",past:{one:"il y a {0} jour",other:"il y a {0} jours"},future:{one:"dans {0} jour",other:"dans {0} jours"}},hour:{current:"cette heure-ci",past:{one:"il y a {0} heure",other:"il y a {0} heures"},future:{one:"dans {0} heure",other:"dans {0} heures"}},minute:{current:"cette minute-ci",past:{one:"il y a {0} minute",other:"il y a {0} minutes"},future:{one:"dans {0} minute",other:"dans {0} minutes"}},second:{current:"maintenant",past:{one:"il y a {0} seconde",other:"il y a {0} secondes"},future:{one:"dans {0} seconde",other:"dans {0} secondes"}}},short:{year:{previous:"l\u2019ann\xe9e derni\xe8re",current:"cette ann\xe9e",next:"l\u2019ann\xe9e prochaine",past:"il y a {0} a",future:"dans {0} a"},quarter:{previous:"le trimestre dernier",current:"ce trimestre",next:"le trimestre prochain",past:"il y a {0} trim.",future:"dans {0} trim."},month:{previous:"le mois dernier",current:"ce mois-ci",next:"le mois prochain",past:"il y a {0} m.",future:"dans {0} m."},week:{previous:"la semaine derni\xe8re",current:"cette semaine",next:"la semaine prochaine",past:"il y a {0} sem.",future:"dans {0} sem."},day:{previous:"hier","previous-2":"avant-hier",current:"aujourd\u2019hui",next:"demain","next-2":"apr\xe8s-demain",past:"il y a {0}\xa0j",future:"dans {0}\xa0j"},hour:{current:"cette heure-ci",past:"il y a {0}\xa0h",future:"dans {0}\xa0h"},minute:{current:"cette minute-ci",past:"il y a {0}\xa0min",future:"dans {0}\xa0min"},second:{current:"maintenant",past:"il y a {0}\xa0s",future:"dans {0}\xa0s"}},narrow:{year:{previous:"l\u2019ann\xe9e derni\xe8re",current:"cette ann\xe9e",next:"l\u2019ann\xe9e prochaine",past:"-{0} a",future:"+{0} a"},quarter:{previous:"le trimestre dernier",current:"ce trimestre",next:"le trimestre prochain",past:"-{0} trim.",future:"+{0} trim."},month:{previous:"le mois dernier",current:"ce mois-ci",next:"le mois prochain",past:"-{0} m.",future:"+{0} m."},week:{previous:"la semaine derni\xe8re",current:"cette semaine",next:"la semaine prochaine",past:"-{0} sem.",future:"+{0} sem."},day:{previous:"hier","previous-2":"avant-hier",current:"aujourd\u2019hui",next:"demain","next-2":"apr\xe8s-demain",past:"-{0} j",future:"+{0} j"},hour:{current:"cette heure-ci",past:"-{0} h",future:"+{0} h"},minute:{current:"cette minute-ci",past:"-{0} min",future:"+{0} min"},second:{current:"maintenant",past:"-{0} s",future:"+{0} s"}},now:{now:{current:"maintenant",future:"dans un instant",past:"\xe0 l'instant"}},mini:{year:{one:"{0} an",other:"{0} ans"},month:"{0} mois",week:"{0} sem.",day:{one:"{0} jour",other:"{0} jours"},hour:"{0} h",minute:"{0} min.",second:"{0} sec.",now:"maintenant"},"long-time":{year:{one:"{0} an",other:"{0} ans"},month:{one:"{0} mois",other:"{0} mois"},week:{one:"{0} semaine",other:"{0} semaines"},day:{one:"{0} jour",other:"{0} jours"},hour:{one:"{0} heure",other:"{0} heures"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} seconde",other:"{0} secondes"}}},YE=e=>{let{dateStr:t}=e;const{language:n}=mn();if(!t)return null;let r;return"en"===n?(GE.addLocale($E),r=new GE("en-US")):(GE.addLocale(KE),r=new GE("fr-FR")),(0,Ap.jsxs)("span",{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Last edited"}),(0,Ap.jsx)(Ip,{children:"Derni\xe8re modification"})]})," ",r.format(new Date(t)),". "]})},ZE=(0,In.c)(i.createElement("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"}),"Description"),JE=(0,In.c)(i.createElement("path",{d:"M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"}),"Drafts"),XE=e=>{let{status:t}=e;return"published"===t?(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Published",fr:"Publi\xe9"}),children:(0,Ap.jsx)(Bn,{color:"primary"})}):"submitted"===t?(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Submitted",fr:"Soumis"}),children:(0,Ap.jsx)(ZE,{color:"secondary"})}):""===t?(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Draft",fr:"Brouillon"}),children:(0,Ap.jsx)(JE,{color:"action"})}):null},eT=e=>{var t,n,r;let{record:o,onViewEditClick:a,onDeleteClick:s,onCloneClick:l,onSubmitClick:c,showAuthor:u,showDeleteAction:d,showSubmitAction:p,showPublishAction:h,showUnPublishAction:f,showUnSubmitAction:m,showViewAction:g,showEditAction:v,showPercentComplete:b,showCloneAction:y,onUnSubmitClick:_,onUnPublishClick:x,showDownloadButton:w=!0,showTransferButton:E,onTransferClick:T}=e;const{language:C,region:k}=mn(),S="published"===o.status,{downloadRecord:O,datacitePrefix:A}=(0,i.useContext)(Fb),[j,P]=(0,i.useState)({downloadXML:!1}),I="".concat(Cn[k].catalogueURL[C],"dataset/ca-cioos_").concat(o.identifier),[L,R]=i.useState(null),N=Boolean(L),D=()=>{R(null)};if(!o.title)return console.log(o),(0,Ap.jsx)(Ap.Fragment,{});const M=(p||w)&&Ux(o),B=b&&Math.round(100*Qx(o));async function Q(e){const t={erddap:"_erddap.txt",xml:".xml",yaml:".yaml",eml:"_eml.xml",json:".json"};P({downloadXML:!0});try{let n;if("eml"===e){n=[await yx(o)]}else if("erddap"===e)n=[Tx(o)];else if("json"===e)n=await([JSON.stringify(Fx(o,C,k,A),null,2)]);else{const t=await O({record:o,fileType:e,region:k});n=Object.values(t.data.message)}const r=new Blob(n,{type:"".concat({xml:"application/xml",yaml:"application/x-yaml",eml:"application/xml",erddap:"application/xml",json:"application/json"}[e],";charset=utf-8")});K_().saveAs(r,"".concat(C_(o)).concat(t[e])),P({downloadXML:!1})}catch(n){console.log(n),P({downloadXML:!1})}}return(0,Ap.jsxs)(ko,{children:[(0,Ap.jsx)(Z_,{children:(0,Ap.jsx)(Cr,{onClick:a,children:(0,Ap.jsx)($o,{children:(0,Ap.jsx)(XE,{status:o.status})})})}),(0,Ap.jsx)(Yo,{primary:(0,Ap.jsx)("div",{style:{width:"80%"},children:null===(t=o.title)||void 0===t?void 0:t[C]}),secondaryTypographyProps:{variant:"body2"},secondary:(0,Ap.jsxs)("span",{children:[u&&(0,Ap.jsxs)("span",{children:[(0,Ap.jsx)(Lp,{en:"Author",fr:"Auteur"}),": ",null===(n=o.userinfo)||void 0===n?void 0:n.displayName," ",null===(r=o.userinfo)||void 0===r?void 0:r.email]}),(0,Ap.jsxs)("span",{style:{display:"block"},children:[(0,Ap.jsx)(YE,{dateStr:o.created}),b&&(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:[B,"% complete"]}),(0,Ap.jsxs)(Ip,{children:[B,"% Achev\xe9e"]})]})]}),(0,Ap.jsxs)("span",{style:{display:"block"},children:["UUID: ",o.identifier]})]})}),(0,Ap.jsxs)(X_,{children:[g&&(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"View",fr:"Vue"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:a,edge:"end","aria-label":"view record",children:(0,Ap.jsx)(ex,{})})})}),v&&(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Edit record",fr:"\xc9diter un enregistrement"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>a(),edge:"end","aria-label":"Edit record",children:(0,Ap.jsx)(tx,{})})})}),d&&(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Delete",fr:"Supprimer"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>s(),edge:"end","aria-label":"delete",children:(0,Ap.jsx)(nx,{})})})}),h&&(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Publish",fr:"Publier"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>c(),edge:"end","aria-label":"delete",children:(0,Ap.jsx)(rx,{})})})}),p&&(""===o.status?(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Ap.Fragment,{children:M?(0,Ap.jsx)(Lp,{en:"Submit for review",fr:"Soumettre pour examen"}):(0,Ap.jsx)(Lp,{en:"Can't submit incomplete or invalid record",fr:"Impossible de soumettre un enregistrement incomplet ou non valide"})}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>c(),edge:"end","aria-label":"submit",disabled:!M,children:(0,Ap.jsx)(rx,{})})})}):(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Return record to draft for editing",fr:"Retourner l'enregistrement au brouillon pour modification"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>c(),edge:"end","aria-label":"delete",children:(0,Ap.jsx)(ix,{})})})})),f&&(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Un-publish",fr:"De-Publier"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>x(),edge:"end","aria-label":"delete",children:(0,Ap.jsx)(ix,{})})})}),y&&(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Clone",fr:"Cloner"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>l(),edge:"end","aria-label":"clone",children:(0,Ap.jsx)(ox,{})})})}),m&&(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Return to draft",fr:"Revenir au brouillon"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>_(),edge:"end","aria-label":"delete",children:(0,Ap.jsx)(ix,{})})})}),w&&(0,Ap.jsx)(ms,{disableHoverListener:N,title:(0,Ap.jsx)(Lp,{en:"Download",fr:"Download"}),children:(0,Ap.jsxs)("span",{children:[(0,Ap.jsx)(Cr,{"aria-label":"more",id:"long-button","aria-controls":"long-menu","aria-expanded":N?"true":void 0,"aria-haspopup":"true",onClick:e=>{R(e.currentTarget)},disabled:!M,children:j.downloadXML?(0,Ap.jsx)(r_,{}):(0,Ap.jsx)(ax,{})}),(0,Ap.jsxs)(Mi,{id:"long-menu",MenuListProps:{"aria-labelledby":"long-button"},anchorEl:L,open:N,onClose:D,PaperProps:{style:{width:"20ch"}},children:[(0,Ap.jsx)(Oo,{onClick:()=>{Q("xml"),D()},children:"ISO 19115 XML"},"xml"),(0,Ap.jsx)(Oo,{onClick:()=>{Q("yaml"),D()},children:"YAML"},"yaml"),(0,Ap.jsx)(Oo,{onClick:()=>{Q("erddap"),D()},children:"ERDDAP snippet"},"erddap"),(0,Ap.jsx)(Oo,{onClick:()=>{Q("eml"),D()},children:"EML for OBIS IPT"},"eml"),(0,Ap.jsx)(Oo,{onClick:()=>{Q("json"),D()},children:"DATACITE JSON"},"json")]})]})}),E&&(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Transfer to user",fr:"Transfert vers l'utilisateur"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:T,edge:"end","aria-label":"transfer",children:(0,Ap.jsx)(sx,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Open catalogue entry in new window",fr:"Ouvrir l'entr\xe9e dans le catalogue dans une nouvelle fen\xeatre"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{disabled:!S,onClick:()=>{window.open(I,"_blank").focus()},edge:"end","aria-label":"transfer",children:(0,Ap.jsx)(lx,{})})})})]})]},o.recordID)};const tT=class extends Ub{constructor(e){super(e),this.state={records:{},deleteModalOpen:!1,submitModalOpen:!1,withdrawModalOpen:!1,modalKey:"",modalRecord:null,loading:!1}}async loadRecords(){this.setState({loading:!0});const{match:e}=this.props,{region:t}=e.params;this.unsubscribe=nd(_p(Cp),(e=>{if(e){const n=xb(Bb(Cp),"".concat(t,"/users/").concat(e.uid,"/records"));Pb(n,(e=>{const t=e.toJSON();this.setState({records:z_(t),loading:!1})})),this.listenerRefs.push(n)}}))}componentWillUnmount(){this.unsubscribeAndCloseListeners()}unsubscribeAndCloseListeners(){this.unsubscribe&&this.unsubscribe(),this.listenerRefs.length&&this.listenerRefs.forEach((e=>Ib(e)))}async componentDidMount(){this.loadRecords()}editRecord(e){const{match:t,history:n}=this.props,{language:r,region:i}=t.params,{currentUser:o}=Sp;n.push("/".concat(r,"/").concat(i,"/").concat(o.uid,"/").concat(e))}handleSubmitRecord(e){const{match:t}=this.props,{region:n}=t.params;return!(!Sp.currentUser||!e)&&Q_(n,Sp.currentUser.uid,e,"submitted")}withdrawRecord(e){const{match:t}=this.props,{region:n}=t.params;return!(!Sp.currentUser||!e)&&function(e,t,n){return Cb(xb(Bb(Cp),"".concat(e,")/users/").concat(t,"/records/").concat(n,"/status")),"")}(n,Sp.currentUser.uid,e)}cloneRecord(e){const{match:t}=this.props,{region:n}=t.params;Sp.currentUser&&N_(e,Sp.currentUser.uid,Sp.currentUser.uid,n)}deleteRecord(e){const{match:t}=this.props,{region:n}=t.params;return!!Sp.currentUser&&U_(n,Sp.currentUser.uid,e)}toggleModal(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.setState({modalKey:n,[e]:t,modalRecord:r})}render(){const{match:e,history:t}=this.props,{language:n,region:r}=e.params,{deleteModalOpen:i,withdrawModalOpen:o,modalKey:a,modalRecord:s,submitModalOpen:l,records:c,loading:u}=this.state;return(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(V_,{open:i,onClose:()=>this.toggleModal("deleteModalOpen",!1),onAccept:()=>this.deleteRecord(a),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(V_,{open:l,onClose:()=>this.toggleModal("submitModalOpen",!1),onAccept:()=>this.handleSubmitRecord(a,s),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(V_,{open:o,onClose:()=>this.toggleModal("withdrawModalOpen",!1),onAccept:()=>this.withdrawRecord(a),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"My Records"}),(0,Ap.jsx)(Ip,{children:"Mes dossiers"})]})}),u?(0,Ap.jsx)(r_,{}):(0,Ap.jsxs)("span",{children:[(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:['To start a new record, click on "New Record" and begin adding information. To continue working on a record, select it from the list below. Once your record is completed and information has been provided for all mandatory fields, you can submit your record for review by clicking the "Submit for review" icon to the right of your record title. The record will not be published until it is reviewed and approved by ',Cn[r].title[n]," staff."]}),(0,Ap.jsxs)(Ip,{children:["Afin de soumettre vos m\xe9tadonn\xe9es, cliquez sur \xab Nouvel enregistrement \xbb et ajoutez-y les informations demand\xe9es. Si vous d\xe9sirez reprendre la saisie d\u2019un formulaire d\xe9j\xe0 entam\xe9, s\xe9lectionnez-le dans la liste ci-dessous. Lorsque les informations sont saisies pour tous les champs obligatoires, vous pouvez soumettre vos m\xe9tadonn\xe9es pour validation en cliquant sur l\u2019ic\xf4ne \xab soumettre pour validation \xbb. Vos m\xe9tadonn\xe9es seront publi\xe9es lorsqu\u2019elles auront \xe9t\xe9 valid\xe9es et approuv\xe9es par un professionel du"," ",Cn[r].title[n],"."]})]})}),(0,Ap.jsx)("div",{style:{marginTop:"10px"},children:(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>t.push("/".concat(n,"/").concat(r,"/new")),children:(0,Ap.jsx)(Lp,{en:"New Record",fr:"Nouvel enregistrement"})})}),(0,Ap.jsx)(ki,{children:Object.entries(c||{}).sort(((e,t)=>new Date(t[1].created)-new Date(e[1].created))).map((e=>{let[t,n]=e;const{status:r,title:i}=n;return null!==i&&void 0!==i&&i.en||null===i||void 0===i||!i.fr?(0,Ap.jsx)(eT,{record:n,showCloneAction:!0,onCloneClick:()=>this.cloneRecord(t),showDeleteAction:!0,onDeleteClick:()=>this.toggleModal("deleteModalOpen",!0,t),showEditAction:!0,showPercentComplete:!0,onViewEditClick:()=>this.editRecord(t),showSubmitAction:!0,onSubmitClick:()=>{""===r?this.toggleModal("submitModalOpen",!0,t,n):this.toggleModal("withdrawModalOpen",!0,t)}},t):null}))})]}),!c&&(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You don't have any records."}),(0,Ap.jsx)(Ip,{children:"Vous n'avez pas d'historique de saisie."})]})})]})]})}};const nT=class extends Ub{constructor(e){super(e),this.state={records:{},deleteModalOpen:!1,submitModalOpen:!1,withdrawModalOpen:!1,modalKey:"",modalRecord:null,loading:!1}}async loadRecords(){this.setState({loading:!0});const{match:e}=this.props,{region:t}=e.params;this.unsubscribe=nd(_p(Cp),(async e=>{if(e){const e=xb(Bb(Cp),"".concat(t,"/users"));Pb(e,(e=>{const t=B_(e,["published"]);this.setState({records:t,loading:!1})})),this.listenerRefs.push(e)}}))}async componentDidMount(){this.loadRecords()}editRecord(e,t){const{match:n,history:r}=this.props,{language:i,region:o}=n.params;r.push("/".concat(i,"/").concat(o,"/").concat(t,"/").concat(e))}handleCloneRecord(e,t){const{match:n}=this.props,{region:r}=n.params;Sp.currentUser&&N_(e,t,Sp.currentUser.uid,r)}render(){const{match:e}=this.props,{region:t}=e.params,{records:n,loading:r}=this.state;return(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Published Records"}),(0,Ap.jsx)(Ip,{children:"Dossiers publi\xe9s"})]})}),r?(0,Ap.jsx)(r_,{}):(0,Ap.jsxs)("span",{children:[(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"These are the published records in your region."}),(0,Ap.jsx)(Ip,{children:"Il s'agit des enregistrements publi\xe9s dans votre r\xe9gion."})]})}),(0,Ap.jsx)(ki,{children:n&&n.length?n.sort(((e,t)=>new Date(t.created)-new Date(e.created))).filter((e=>"published"===e.status)).map((e=>{const{title:n}=e;return null!==n&&void 0!==n&&n.en||null===n||void 0===n||!n.fr?(0,Ap.jsx)(eT,{record:e,onViewEditClick:()=>{var t;return this.editRecord(e.recordID,null===(t=e.userinfo)||void 0===t?void 0:t.userID)},showDeleteAction:!1,showUnSubmitAction:!1,showCloneAction:!0,showAuthor:!0,showViewAction:!0,onCloneClick:()=>{var n;return this.handleCloneRecord(e.recordID,null===(n=e.userinfo)||void 0===n?void 0:n.userID,t)}},e.recordID):null})):""})]}),!n&&(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"There are no published records."}),(0,Ap.jsx)(Ip,{children:"Il n'y a pas de documents publi\xe9s."})]})})]})]})}},rT=(0,In.c)(i.createElement("path",{d:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1z"}),"PermContactCalendar");const iT=function(e){return function(e){const{orgName:t,givenNames:n,lastName:r}=e;return[[r,n].filter((e=>e)).join(", "),t].filter((e=>e)).map((e=>e.trim())).filter((e=>e)).join(" - ")}(e)||(0,Ap.jsx)(Lp,{en:"New contact",fr:"Nouveau contact"})};const oT=class extends Ub{constructor(e){super(e),this.state={contacts:{},modalOpen:!1,modalKey:"",loading:!1}}async componentDidMount(){this.setState({loading:!0});const{match:e}=this.props,{region:t}=e.params;this.unsubscribe=nd(_p(Cp),(e=>{if(e){const n=xb(Bb(Cp),"".concat(t,"/users/").concat(e.uid,"/contacts"));Pb(n,(e=>this.setState({contacts:e.toJSON(),loading:!1}))),this.listenerRefs.push(n)}}))}handleDeleteContact(e){const{match:t}=this.props,{region:n}=t.params;Sp.currentUser&&function(e,t,n){Tb(xb(Bb(Cp),"".concat(e,"/users/").concat(t,"/contacts/").concat(n)))}(n,Sp.currentUser.uid,e)}handleCloneContact(e){const{match:t}=this.props,{region:n}=t.params;return!!Sp.currentUser&&async function(e,t,n){const r=xb(Bb(Cp),"".concat(e,"/users/").concat(t,"/contacts")),i=(await Sb(wb(r,n))).val();i.lastName?i.lastName+=" (Copy)":i.orgName+=" (Copy)",Eb(r,i)}(n,Sp.currentUser.uid,e)}addContact(){const{history:e,match:t}=this.props,{language:n,region:r}=t.params;Sp.currentUser&&async function(e,t){const n=Bb(Cp);return(await Eb(xb(n,"".concat(e,"/users/").concat(t,"/contacts")),{})).key}(r,Sp.currentUser.uid).then((t=>{e.push("/".concat(n,"/").concat(r,"/contacts/").concat(t))}))}editContact(e){const{history:t,match:n}=this.props,{language:r,region:i}=n.params;t.push("/".concat(r,"/").concat(i,"/contacts/").concat(e))}toggleModal(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.setState({modalKey:t,modalOpen:e})}render(){const{modalOpen:e,modalKey:t,loading:n,contacts:r}=this.state;return(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:3,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(V_,{open:e,onClose:()=>this.toggleModal(!1),onAccept:()=>this.handleDeleteContact(t),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Contacts"}),(0,Ap.jsx)(Ip,{children:"Contacts"})]})})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Create contacts here that you can reuse in multiple metadata records."}),(0,Ap.jsx)(Ip,{children:"Ajoutez ici les personnes ressources que vous d\xe9sirez r\xe9utiliser pour la saisie d\u2019autres m\xe9tadonn\xe9es."})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>this.addContact(),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add contact"}),(0,Ap.jsx)(Ip,{children:"ajouter un contact"})]})})}),n?(0,Ap.jsx)(r_,{}):(0,Ap.jsx)(Ap.Fragment,{children:(0,Ap.jsx)(e_,{item:!0,xs:!0,children:r&&Object.keys(r).length?(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"These are your contacts"}),(0,Ap.jsx)(Ip,{children:"Ce sont vos contacts"})]})}),(0,Ap.jsx)(ki,{children:Object.entries(r).map((e=>{let[t,n]=e;return(0,Ap.jsxs)(ko,{button:!0,onClick:()=>this.editContact(t),children:[(0,Ap.jsx)(Z_,{children:(0,Ap.jsx)($o,{children:(0,Ap.jsx)(rT,{})})}),(0,Ap.jsx)(Yo,{primary:iT(n)}),(0,Ap.jsxs)(X_,{children:[(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Edit",fr:"\xc9diter"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>this.editContact(t),children:(0,Ap.jsx)(tx,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Clone",fr:"Clone"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>this.handleCloneContact(t),children:(0,Ap.jsx)(ox,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Delete",fr:"Supprimer"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>this.toggleModal(!0,t),children:(0,Ap.jsx)(nx,{})})})})]})]},t)}))})]}):(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"No contacts submitted yet"}),(0,Ap.jsx)(Ip,{children:"Aucun contacts n'a encore \xe9t\xe9 soumis"})]})})})})]})}};const aT=function(e){let{instrument:t}=e;return function(e){const{id:t,manufacturer:n}=e;return[n,t].filter((e=>e)).map((e=>e.trim())).filter((e=>e)).join(" - ")}(t)||(0,Ap.jsx)(Lp,{en:"New instrument",fr:"Nouvel instrument"})};const sT=class extends Ub{constructor(e){super(e),this.state={instruments:{},modalOpen:!1,modalKey:"",loading:!1}}async componentDidMount(){this.setState({loading:!0});const{match:e}=this.props,{region:t}=e.params;this.unsubscribe=Sp.onAuthStateChanged((e=>{if(e){const n=xb(Bb(Cp),"".concat(t,"/users/").concat(e.uid,"/instruments"));Pb(n,(e=>this.setState({instruments:e.toJSON(),loading:!1}))),this.listenerRefs.push(n)}}))}handleDeleteInstrument(e){const{match:t}=this.props,{region:n}=t.params;Sp.currentUser&&function(e,t,n){Tb(xb(Bb(Cp),"".concat(e,"/users/").concat(t,"/instruments/").concat(n)))}(n,Sp.currentUser.uid,e)}handleCloneInstrument(e){const{match:t}=this.props,{region:n}=t.params;return!!Sp.currentUser&&async function(e,t,n){const r=xb(Bb(Cp),"".concat(e,"/users/").concat(t,"/instruments/")),i=(await Sb(wb(r,n))).val();i.id&&(i.id+=" (Copy)"),Eb(r,i)}(n,Sp.currentUser.uid,e)}addInstrument(){const{history:e,match:t}=this.props,{language:n,region:r}=t.params;Sp.currentUser&&async function(e,t){const n=Bb(Cp);return(await Eb(xb(n,"".concat(e,"/users/").concat(t,"/instruments/")),{})).key}(r,Sp.currentUser.uid).then((t=>{e.push("/".concat(n,"/").concat(r,"/instruments/").concat(t))}))}editInstrument(e){const{history:t,match:n}=this.props,{language:r,region:i}=n.params;t.push("/".concat(r,"/").concat(i,"/instruments/").concat(e))}toggleModal(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.setState({modalKey:t,modalOpen:e})}render(){const{modalOpen:e,modalKey:t,loading:n,instruments:r}=this.state;return(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:3,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(V_,{open:e,onClose:()=>this.toggleModal(!1),onAccept:()=>this.handleDeleteInstrument(t),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Instruments"}),(0,Ap.jsx)(Ip,{children:"Instruments"})]})})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Create instruments here that you can reuse in multiple metadata records."}),(0,Ap.jsx)(Ip,{children:"Ajoutez ici les personnes ressources que vous d\xe9sirez r\xe9utiliser pour la saisie d\u2019autres m\xe9tadonn\xe9es."})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>this.addInstrument(),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add instrument"}),(0,Ap.jsx)(Ip,{children:"ajouter un instrument"})]})})}),n?(0,Ap.jsx)(r_,{}):(0,Ap.jsx)(Ap.Fragment,{children:(0,Ap.jsx)(e_,{item:!0,xs:!0,children:r&&Object.keys(r).length?(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"These are your instruments"}),(0,Ap.jsx)(Ip,{children:"Ce sont vos instruments"})]})}),(0,Ap.jsx)(ki,{children:Object.entries(r).map((e=>{let[t,n]=e;return(0,Ap.jsxs)(ko,{button:!0,onClick:()=>this.editInstrument(t),children:[(0,Ap.jsx)(Z_,{children:(0,Ap.jsx)($o,{children:(0,Ap.jsx)(rT,{})})}),(0,Ap.jsx)(Yo,{primary:aT({instrument:n})}),(0,Ap.jsxs)(X_,{children:[(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Edit",fr:"\xc9diter"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>this.editInstrument(t),children:(0,Ap.jsx)(tx,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Clone",fr:"Clone"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>this.handleCloneInstrument(t),children:(0,Ap.jsx)(ox,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Delete",fr:"Supprimer"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>this.toggleModal(!0,t),children:(0,Ap.jsx)(nx,{})})})})]})]},t)}))})]}):(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"No instruments submitted yet"}),(0,Ap.jsx)(Ip,{children:"Aucun instruments n'a encore \xe9t\xe9 soumis"})]})})})})]})}};const lT=class extends Ub{constructor(e){super(e),this.state={sharedRecords:{},loading:!1},this.unsubscribe=null,this.listenerRefs=[],this.handleCloneRecord=this.handleCloneRecord.bind(this)}async loadSharedRecords(){this.setState({loading:!0});const{match:e}=this.props,{region:t}=e.params,n=Bb();this.unsubscribe=nd(_p(Cp),(async e=>{if(e){const r=xb(n,"".concat(t,"/shares/").concat(e.uid));this.listenerRefs.push(r),Pb(r,(async e=>{const r=e.val(),i=[];Object.entries(r||{}).forEach((e=>{let[r,o]=e;Object.keys(o||{}).forEach((e=>{const o="".concat(t,"/users/").concat(r,"/records/").concat(e),a=Sb(xb(n,o)).then((t=>{const n=t.val();if(n)return{...n,recordID:e};throw new Error("No details found for record ".concat(e," by author ").concat(r))}));i.push(a)}))}));const o=(await Promise.all(i)).reduce(((e,t)=>(e[t.recordID]=t,e)),{});this.setState({sharedRecords:z_(o),loading:!1})})),this.listenerRefs.push(r)}}))}componentWillUnmount(){this.unsubscribeAndCloseListeners()}unsubscribeAndCloseListeners(){this.unsubscribe&&this.unsubscribe(),this.listenerRefs.length&&this.listenerRefs.forEach((e=>Ib(e)))}async componentDidMount(){this.loadSharedRecords()}editRecord(e,t){const{match:n,history:r}=this.props,{language:i,region:o}=n.params;r.push("/".concat(i,"/").concat(o,"/").concat(t,"/").concat(e))}handleCloneRecord(e,t){const{region:n}=this.props.match.params,{currentUser:r}=_p(Cp);r&&N_(e,t,r.uid,n)}render(){const{sharedRecords:e,loading:t}=this.state;return(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Shared with me"}),(0,Ap.jsx)(Ip,{children:"Partag\xe9 avec moi"})]})}),t?(0,Ap.jsx)(r_,{}):(0,Ap.jsxs)("span",{children:[(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{style:{marginTop:"20px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"The following records have been shared with you for editing."}),(0,Ap.jsx)(Ip,{children:"Les enregistrements suivants ont \xe9t\xe9 partag\xe9s avec vous pour modification."})]})}),(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You can edit them, but you cannot submit or delete."}),(0,Ap.jsx)(Ip,{children:"Vous pouvez les modifier, mais vous ne pouvez pas les soumettre ou les supprimer."})]})}),(0,Ap.jsx)(ki,{children:Object.entries(e||{}).sort(((e,t)=>new Date(t[1].created)-new Date(e[1].created))).map((e=>{let[t,n]=e;const{title:r}=n;return null!==r&&void 0!==r&&r.en||null===r||void 0===r||!r.fr?(0,Ap.jsx)(eT,{record:n,showCloneAction:!0,onCloneClick:()=>this.handleCloneRecord(t,n.userID),showEditAction:!0,showPercentComplete:!0,onViewEditClick:()=>this.editRecord(t,n.userID)},t):null}))})]}),!e&&(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You don't have any records shared with you."}),(0,Ap.jsx)(Ip,{children:"Vous n'avez aucun enregistrement partag\xe9 avec vous."})]})})]})]})}},cT=()=>(0,Ap.jsx)("div",{children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Please sign in to access your metadata records. You will need a Google account to login."}),(0,Ap.jsx)(Ip,{children:"Connectez-vous pour acc\xe9der \xe0 l'historique de saisie de vos m\xe9tadonn\xe9es. Vous aurez besoin d'un compte Google pour vous connecter."})]})})});var uT=n(208);function dT(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function pT(e){var t=function(t){var n=e(t);return t.css?(0,at.c)({},(0,uT.c)(n,e((0,at.c)({theme:t.theme},t.css))),dT(t.css,[e.filterProps])):t.sx?(0,at.c)({},(0,uT.c)(n,e((0,at.c)({theme:t.theme},t.sx))),dT(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat((0,cr.c)(e.filterProps)),t}const hT=pT;const fT=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=n.name,o=(0,Yn.c)(n,["name"]);var a,s=r,l="function"===typeof t?function(e){return{root:function(n){return t((0,at.c)({theme:e},n))}}}:{root:t},c=(0,Sn.c)(l,(0,at.c)({Component:e,name:r||e.displayName,classNamePrefix:s},o));t.filterProps&&(a=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=i.forwardRef((function(t,n){var r=t.children,o=t.className,s=t.clone,l=t.component,u=(0,Yn.c)(t,["children","className","clone","component"]),d=c(t),p=(0,kn.c)(d.root,o),h=u;if(a&&(h=function(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}(h,a)),s)return i.cloneElement(r,(0,at.c)({className:(0,kn.c)(r.props.className,p)},h));if("function"===typeof r)return r((0,at.c)({className:p},h));var f=l||e;return i.createElement(f,(0,at.c)({ref:n,className:p},h),r)}));return Qt()(u,e),u}}const MT=function(e){var t=DT(e);return function(e,n){return t(e,(0,at.c)({defaultTheme:On.c},n))}};var BT=hT(fT(yT,_T,xT,wT,ET,TT,CT,LT,RT.c,NT));const QT=MT("div")(BT,{name:"MuiBox"});var UT=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,a=void 0===o?"primary":o,s=e.value,l=e.valueBuffer,c=e.variant,u=void 0===c?"indeterminate":c,d=(0,Yn.c)(e,["classes","className","color","value","valueBuffer","variant"]),p=Pn(),h={},f={bar1:{},bar2:{}};if("determinate"===u||"buffer"===u)if(void 0!==s){h["aria-valuenow"]=Math.round(s),h["aria-valuemin"]=0,h["aria-valuemax"]=100;var m=s-100;"rtl"===p.direction&&(m=-m),f.bar1.transform="translateX(".concat(m,"%)")}else 0;if("buffer"===u)if(void 0!==l){var g=(l||0)-100;"rtl"===p.direction&&(g=-g),f.bar2.transform="translateX(".concat(g,"%)")}else 0;return i.createElement("div",(0,at.c)({className:(0,kn.c)(n.root,n["color".concat((0,Zn.c)(a))],r,{determinate:n.determinate,indeterminate:n.indeterminate,buffer:n.buffer,query:n.query}[u]),role:"progressbar"},h,{ref:t},d),"buffer"===u?i.createElement("div",{className:(0,kn.c)(n.dashed,n["dashedColor".concat((0,Zn.c)(a))])}):null,i.createElement("div",{className:(0,kn.c)(n.bar,n["barColor".concat((0,Zn.c)(a))],("indeterminate"===u||"query"===u)&&n.bar1Indeterminate,{determinate:n.bar1Determinate,buffer:n.bar1Buffer}[u]),style:f.bar1}),"determinate"===u?null:i.createElement("div",{className:(0,kn.c)(n.bar,("indeterminate"===u||"query"===u)&&n.bar2Indeterminate,"buffer"===u?[n["color".concat((0,Zn.c)(a))],n.bar2Buffer]:n["barColor".concat((0,Zn.c)(a))]),style:f.bar2}))}));const FT=(0,Gn.c)((function(e){var t=function(t){return"light"===e.palette.type?(0,or.IV)(t,.62):(0,or.sP)(t,.5)},n=t(e.palette.primary.main),r=t(e.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4,"@media print":{colorAdjust:"exact"}},colorPrimary:{backgroundColor:n},colorSecondary:{backgroundColor:r},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite"},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0 -23px"},"50%":{opacity:0,backgroundPosition:"0 -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}}),{name:"MuiLinearProgress"})(UT);var zT=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.color,s=void 0===a?"default":a,l=e.component,c=void 0===l?"button":l,u=e.disabled,d=void 0!==u&&u,p=e.disableFocusRipple,h=void 0!==p&&p,f=e.focusVisibleClassName,m=e.size,g=void 0===m?"large":m,v=e.variant,b=void 0===v?"circular":v,y=(0,Yn.c)(e,["children","classes","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return i.createElement(Er,(0,at.c)({className:(0,kn.c)(r.root,o,"large"!==g&&r["size".concat((0,Zn.c)(g))],d&&r.disabled,"extended"===b&&r.extended,{primary:r.primary,secondary:r.secondary,inherit:r.colorInherit}[s]),component:c,disabled:d,focusRipple:!h,focusVisibleClassName:(0,kn.c)(r.focusVisible,f),ref:t},y),i.createElement("span",{className:r.label},n))}));const qT=(0,Gn.c)((function(e){return{root:(0,at.c)({},e.typography.button,{boxSizing:"border-box",minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]},color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground},textDecoration:"none"},"&$focusVisible":{boxShadow:e.shadows[6]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},secondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},extended:{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}}),{name:"MuiFab"})(zT);var HT;function WT(){if(HT)return HT;var e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),HT="reverse",e.scrollLeft>0?HT="default":(e.scrollLeft=1,0===e.scrollLeft&&(HT="negative")),document.body.removeChild(e),HT}function GT(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;switch(WT()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function VT(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var $T={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function KT(e){var t=e.onChange,n=(0,Yn.c)(e,["onChange"]),r=i.useRef(),o=i.useRef(null),a=function(){r.current=o.current.offsetHeight-o.current.clientHeight};return i.useEffect((function(){var e=(0,Rr.c)((function(){var e=r.current;a(),e!==r.current&&t(r.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),i.useEffect((function(){a(),t(r.current)}),[t]),i.createElement("div",(0,at.c)({style:$T,ref:o},n))}var YT=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,a=e.orientation,s=(0,Yn.c)(e,["classes","className","color","orientation"]);return i.createElement("span",(0,at.c)({className:(0,kn.c)(n.root,n["color".concat((0,Zn.c)(o))],r,"vertical"===a&&n.vertical),ref:t},s))}));const ZT=(0,Gn.c)((function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}}),{name:"PrivateTabIndicator"})(YT),JT=(0,In.c)(i.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),XT=(0,In.c)(i.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var eC=i.createElement(JT,{fontSize:"small"}),tC=i.createElement(XT,{fontSize:"small"}),nC=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.direction,a=e.orientation,s=e.disabled,l=(0,Yn.c)(e,["classes","className","direction","orientation","disabled"]);return i.createElement(Er,(0,at.c)({component:"div",className:(0,kn.c)(n.root,r,s&&n.disabled,"vertical"===a&&n.vertical),ref:t,role:null,tabIndex:null},l),"left"===o?eC:tC)}));const rC=(0,Gn.c)({root:{width:40,flexShrink:0,opacity:.8,"&$disabled":{opacity:0}},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}},disabled:{}},{name:"MuiTabScrollButton"})(nC);var iC=i.forwardRef((function(e,t){var n=e["aria-label"],r=e["aria-labelledby"],o=e.action,a=e.centered,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,p=void 0===d?"div":d,h=e.indicatorColor,f=void 0===h?"secondary":h,m=e.onChange,g=e.orientation,v=void 0===g?"horizontal":g,b=e.ScrollButtonComponent,y=void 0===b?rC:b,_=e.scrollButtons,x=void 0===_?"auto":_,w=e.selectionFollowsFocus,E=e.TabIndicatorProps,T=void 0===E?{}:E,C=e.TabScrollButtonProps,k=e.textColor,S=void 0===k?"inherit":k,O=e.value,A=e.variant,j=void 0===A?"standard":A,P=(0,Yn.c)(e,["aria-label","aria-labelledby","action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant"]),I=Pn(),L="scrollable"===j,R="rtl"===I.direction,N="vertical"===v,D=N?"scrollTop":"scrollLeft",M=N?"top":"left",B=N?"bottom":"right",Q=N?"clientHeight":"clientWidth",U=N?"height":"width";var F=i.useState(!1),z=F[0],q=F[1],H=i.useState({}),W=H[0],G=H[1],V=i.useState({start:!1,end:!1}),$=V[0],K=V[1],Y=i.useState({overflow:"hidden",marginBottom:null}),Z=Y[0],J=Y[1],X=new Map,ee=i.useRef(null),te=i.useRef(null),ne=function(){var e,t,n=ee.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:GT(n,I.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==O){var i=te.current.children;if(i.length>0){var o=i[X.get(O)];0,t=o?o.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},re=(0,sr.c)((function(){var e,t=ne(),n=t.tabsMeta,r=t.tabMeta,i=0;if(r&&n)if(N)i=r.top-n.top+n.scrollTop;else{var o=R?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;i=r.left-n.left+o}var a=(e={},(0,nr.c)(e,M,i),(0,nr.c)(e,U,r?r[U]:0),e);if(isNaN(W[M])||isNaN(W[U]))G(a);else{var s=Math.abs(W[M]-a[M]),l=Math.abs(W[U]-a[U]);(s>=1||l>=1)&&G(a)}})),ie=function(e){!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},o=r.ease,a=void 0===o?VT:o,s=r.duration,l=void 0===s?300:s,c=null,u=t[e],d=!1,p=function(){d=!0};u===n?i(new Error("Element already at target position")):requestAnimationFrame((function r(o){if(d)i(new Error("Animation cancelled"));else{null===c&&(c=o);var s=Math.min(1,(o-c)/l);t[e]=a(s)*(n-u)+u,s>=1?requestAnimationFrame((function(){i(null)})):requestAnimationFrame(r)}}))}(D,ee.current,e)},oe=function(e){var t=ee.current[D];N?t+=e:(t+=e*(R?-1:1),t*=R&&"reverse"===WT()?-1:1),ie(t)},ae=function(){oe(-ee.current[Q])},se=function(){oe(ee.current[Q])},le=i.useCallback((function(e){J({overflow:null,marginBottom:-e})}),[]),ce=(0,sr.c)((function(){var e=ne(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[M]t[B]){var i=t[D]+(n[B]-t[B]);ie(i)}})),ue=(0,sr.c)((function(){if(L&&"off"!==x){var e,t,n=ee.current,r=n.scrollTop,i=n.scrollHeight,o=n.clientHeight,a=n.scrollWidth,s=n.clientWidth;if(N)e=r>1,t=r1,t=R?l>1:l *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}}),{name:"MuiTab"})(aC),lC=(0,In.c)(i.createElement("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"}),"Save"),cC=(0,In.c)(i.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function uC(e){return"Backspace"===e.key||"Delete"===e.key}var dC=i.forwardRef((function(e,t){var n=e.avatar,r=e.classes,o=e.className,a=e.clickable,s=e.color,l=void 0===s?"default":s,c=e.component,u=e.deleteIcon,d=e.disabled,p=void 0!==d&&d,h=e.icon,f=e.label,m=e.onClick,g=e.onDelete,v=e.onKeyDown,b=e.onKeyUp,y=e.size,_=void 0===y?"medium":y,x=e.variant,w=void 0===x?"default":x,E=(0,Yn.c)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),T=i.useRef(null),C=(0,ar.c)(T,t),k=function(e){e.stopPropagation(),g&&g(e)},S=!(!1===a||!m)||a,O="small"===_,A=c||(S?Er:"div"),j=A===Er?{component:"div"}:{},P=null;if(g){var I=(0,kn.c)("default"!==l&&("default"===w?r["deleteIconColor".concat((0,Zn.c)(l))]:r["deleteIconOutlinedColor".concat((0,Zn.c)(l))]),O&&r.deleteIconSmall);P=u&&i.isValidElement(u)?i.cloneElement(u,{className:(0,kn.c)(u.props.className,r.deleteIcon,I),onClick:k}):i.createElement(cC,{className:(0,kn.c)(r.deleteIcon,I),onClick:k})}var L=null;n&&i.isValidElement(n)&&(L=i.cloneElement(n,{className:(0,kn.c)(r.avatar,n.props.className,O&&r.avatarSmall,"default"!==l&&r["avatarColor".concat((0,Zn.c)(l))])}));var R=null;return h&&i.isValidElement(h)&&(R=i.cloneElement(h,{className:(0,kn.c)(r.icon,h.props.className,O&&r.iconSmall,"default"!==l&&r["iconColor".concat((0,Zn.c)(l))])})),i.createElement(A,(0,at.c)({role:S||g?"button":void 0,className:(0,kn.c)(r.root,o,"default"!==l&&[r["color".concat((0,Zn.c)(l))],S&&r["clickableColor".concat((0,Zn.c)(l))],g&&r["deletableColor".concat((0,Zn.c)(l))]],"default"!==w&&[r.outlined,{primary:r.outlinedPrimary,secondary:r.outlinedSecondary}[l]],p&&r.disabled,O&&r.sizeSmall,S&&r.clickable,g&&r.deletable),"aria-disabled":!!p||void 0,tabIndex:S||g?0:void 0,onClick:m,onKeyDown:function(e){e.currentTarget===e.target&&uC(e)&&e.preventDefault(),v&&v(e)},onKeyUp:function(e){e.currentTarget===e.target&&(g&&uC(e)?g(e):"Escape"===e.key&&T.current&&T.current.blur()),b&&b(e)},ref:C},j,E),L||R,i.createElement("span",{className:(0,kn.c)(r.label,O&&r.labelSmall)},f),P)}));const pC=(0,Gn.c)((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=(0,or.W4)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:(0,or.ct)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:(0,or.ct)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:(0,or.ct)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:(0,or.ct)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:(0,or.ct)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:(0,or.ct)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,or.W4)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,or.W4)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,or.W4)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,or.W4)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:(0,or.W4)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:(0,or.W4)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:(0,or.W4)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:(0,or.W4)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(dC),hC=e=>{let{status:t}=e,n="";return n="submitted"===t?(0,Ap.jsx)(Lp,{en:"Submitted",fr:"Soumis"}):"published"===t?(0,Ap.jsx)(Lp,{en:"Published",fr:"Publi\xe9"}):(0,Ap.jsx)(Lp,{en:"Draft",fr:"Brouillon"}),(0,Ap.jsx)(pC,{label:n,variant:"outlined"})},fC=()=>(0,Ap.jsx)("div",{children:(0,Ap.jsx)(Or,{variant:"h5",children:"Not Found / Non trouv\xe9"})});var mC=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.color,s=void 0===a?"primary":a,l=e.component,c=void 0===l?"div":l,u=e.disabled,d=void 0!==u&&u,p=e.error,h=void 0!==p&&p,f=e.fullWidth,m=void 0!==f&&f,g=e.focused,v=e.hiddenLabel,b=void 0!==v&&v,y=e.margin,_=void 0===y?"none":y,x=e.required,w=void 0!==x&&x,E=e.size,T=e.variant,C=void 0===T?"standard":T,k=(0,Yn.c)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),S=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){if((0,Eo.c)(t,["Input","Select"])){var n=(0,Eo.c)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),O=S[0],A=S[1],j=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){(0,Eo.c)(t,["Input","Select"])&&Qi(t.props,!0)&&(e=!0)})),e})),P=j[0],I=j[1],L=i.useState(!1),R=L[0],N=L[1],D=void 0!==g?g:R;d&&D&&N(!1);var M=i.useCallback((function(){I(!0)}),[]),B={adornedStart:O,setAdornedStart:A,color:s,disabled:d,error:h,filled:P,focused:D,fullWidth:m,hiddenLabel:b,margin:("small"===E?"dense":void 0)||_,onBlur:function(){N(!1)},onEmpty:i.useCallback((function(){I(!1)}),[]),onFilled:M,onFocus:function(){N(!0)},registerEffect:undefined,required:w,variant:C};return i.createElement(Vi.Provider,{value:B},i.createElement(c,(0,at.c)({className:(0,kn.c)(r.root,o,"none"!==_&&r["margin".concat((0,Zn.c)(_))],m&&r.fullWidth),ref:t},k),n))}));const gC=(0,Gn.c)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(mC);var vC=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=(e.color,e.component),s=void 0===a?"label":a,l=(e.disabled,e.error,e.filled,e.focused,e.required,(0,Yn.c)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),c=Hi({props:e,muiFormControl:$i(),states:["color","required","focused","disabled","error","filled"]});return i.createElement(s,(0,at.c)({className:(0,kn.c)(r.root,r["color".concat((0,Zn.c)(c.color||"primary"))],o,c.disabled&&r.disabled,c.error&&r.error,c.filled&&r.filled,c.focused&&r.focused,c.required&&r.required),ref:t},l),n,c.required&&i.createElement("span",{"aria-hidden":!0,className:(0,kn.c)(r.asterisk,c.error&&r.error)},"\u2009","*"))}));const bC=(0,Gn.c)((function(e){return{root:(0,at.c)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(vC);var yC=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.disableAnimation,a=void 0!==o&&o,s=(e.margin,e.shrink),l=(e.variant,(0,Yn.c)(e,["classes","className","disableAnimation","margin","shrink","variant"])),c=$i(),u=s;"undefined"===typeof u&&c&&(u=c.filled||c.focused||c.adornedStart);var d=Hi({props:e,muiFormControl:c,states:["margin","variant"]});return i.createElement(bC,(0,at.c)({"data-shrink":u,className:(0,kn.c)(n.root,r,c&&n.formControl,!a&&n.animated,u&&n.shrink,"dense"===d.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[d.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},l))}));const _C=(0,Gn.c)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(yC);var xC=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.component,s=void 0===a?"p":a,l=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,(0,Yn.c)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),c=Hi({props:e,muiFormControl:$i(),states:["variant","margin","disabled","error","filled","focused","required"]});return i.createElement(s,(0,at.c)({className:(0,kn.c)(r.root,("filled"===c.variant||"outlined"===c.variant)&&r.contained,o,c.disabled&&r.disabled,c.error&&r.error,c.filled&&r.filled,c.focused&&r.focused,c.required&&r.required,"dense"===c.margin&&r.marginDense),ref:t},l)," "===n?i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)}));const wC=(0,Gn.c)((function(e){return{root:(0,at.c)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(xC);var EC={standard:oo,filled:ho,outlined:vo},TC=i.forwardRef((function(e,t){var n=e.autoComplete,r=e.autoFocus,o=void 0!==r&&r,a=e.children,s=e.classes,l=e.className,c=e.color,u=void 0===c?"primary":c,d=e.defaultValue,p=e.disabled,h=void 0!==p&&p,f=e.error,m=void 0!==f&&f,g=e.FormHelperTextProps,v=e.fullWidth,b=void 0!==v&&v,y=e.helperText,_=e.hiddenLabel,x=e.id,w=e.InputLabelProps,E=e.inputProps,T=e.InputProps,C=e.inputRef,k=e.label,S=e.multiline,O=void 0!==S&&S,A=e.name,j=e.onBlur,P=e.onChange,I=e.onFocus,L=e.placeholder,R=e.required,N=void 0!==R&&R,D=e.rows,M=e.rowsMax,B=e.maxRows,Q=e.minRows,U=e.select,F=void 0!==U&&U,z=e.SelectProps,q=e.type,H=e.value,W=e.variant,G=void 0===W?"standard":W,V=(0,Yn.c)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]);var $={};if("outlined"===G&&(w&&"undefined"!==typeof w.shrink&&($.notched=w.shrink),k)){var K,Y=null!==(K=null===w||void 0===w?void 0:w.required)&&void 0!==K?K:N;$.label=i.createElement(i.Fragment,null,k,Y&&"\xa0*")}F&&(z&&z.native||($.id=void 0),$["aria-describedby"]=void 0);var Z=y&&x?"".concat(x,"-helper-text"):void 0,J=k&&x?"".concat(x,"-label"):void 0,X=EC[G],ee=i.createElement(X,(0,at.c)({"aria-describedby":Z,autoComplete:n,autoFocus:o,defaultValue:d,fullWidth:b,multiline:O,name:A,rows:D,rowsMax:M,maxRows:B,minRows:Q,type:q,value:H,id:x,inputRef:C,onBlur:j,onChange:P,onFocus:I,placeholder:L,inputProps:E},$,T));return i.createElement(gC,(0,at.c)({className:(0,kn.c)(s.root,l),disabled:h,error:m,fullWidth:b,hiddenLabel:_,ref:t,required:N,color:u,variant:G},V),k&&i.createElement(_C,(0,at.c)({htmlFor:x,id:J},w),k),F?i.createElement(wo,(0,at.c)({"aria-describedby":Z,id:x,labelId:J,value:H,input:ee},z),a):ee,y&&i.createElement(wC,(0,at.c)({id:Z},g),y))}));const CC=(0,Gn.c)({root:{}},{name:"MuiTextField"})(TC);var kC=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.component,s=void 0===a?"div":a,l=e.disablePointerEvents,c=void 0!==l&&l,u=e.disableTypography,d=void 0!==u&&u,p=e.position,h=e.variant,f=(0,Yn.c)(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),m=Gi()||{},g=h;return h&&m.variant,m&&!g&&(g=m.variant),i.createElement(Vi.Provider,{value:null},i.createElement(s,(0,at.c)({className:(0,kn.c)(r.root,o,"end"===p?r.positionEnd:r.positionStart,c&&r.disablePointerEvents,m.hiddenLabel&&r.hiddenLabel,"filled"===g&&r.filled,"dense"===m.margin&&r.marginDense),ref:t},f),"string"!==typeof n||d?n:i.createElement(Or,{color:"textSecondary"},n)))}));const SC=(0,Gn.c)({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(kC);var OC=i.forwardRef((function(e,t){e.checked;var n=e.classes,r=e.className,o=e.control,a=e.disabled,s=(e.inputRef,e.label),l=e.labelPlacement,c=void 0===l?"end":l,u=(e.name,e.onChange,e.value,(0,Yn.c)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),d=$i(),p=a;"undefined"===typeof p&&"undefined"!==typeof o.props.disabled&&(p=o.props.disabled),"undefined"===typeof p&&d&&(p=d.disabled);var h={disabled:p};return["checked","name","onChange","value","inputRef"].forEach((function(t){"undefined"===typeof o.props[t]&&"undefined"!==typeof e[t]&&(h[t]=e[t])})),i.createElement("label",(0,at.c)({className:(0,kn.c)(n.root,r,"end"!==c&&n["labelPlacement".concat((0,Zn.c)(c))],p&&n.disabled),ref:t},u),i.cloneElement(o,h),i.createElement(Or,{component:"span",className:(0,kn.c)(n.label,p&&n.disabled)},s))}));const AC=(0,Gn.c)((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(OC);var jC=i.forwardRef((function(e,t){var n=e.autoFocus,r=e.checked,o=e.checkedIcon,a=e.classes,s=e.className,l=e.defaultChecked,c=e.disabled,u=e.icon,d=e.id,p=e.inputProps,h=e.inputRef,f=e.name,m=e.onBlur,g=e.onChange,v=e.onFocus,b=e.readOnly,y=e.required,_=e.tabIndex,x=e.type,w=e.value,E=(0,Yn.c)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),T=(0,Ui.c)({controlled:r,default:Boolean(l),name:"SwitchBase",state:"checked"}),C=(0,jr.c)(T,2),k=C[0],S=C[1],O=$i(),A=c;O&&"undefined"===typeof A&&(A=O.disabled);var j="checkbox"===x||"radio"===x;return i.createElement(Cr,(0,at.c)({component:"span",className:(0,kn.c)(a.root,s,k&&a.checked,A&&a.disabled),disabled:A,tabIndex:null,role:void 0,onFocus:function(e){v&&v(e),O&&O.onFocus&&O.onFocus(e)},onBlur:function(e){m&&m(e),O&&O.onBlur&&O.onBlur(e)},ref:t},E),i.createElement("input",(0,at.c)({autoFocus:n,checked:r,defaultChecked:l,className:a.input,disabled:A,id:j&&d,name:f,onChange:function(e){var t=e.target.checked;S(t),g&&g(e,t)},readOnly:b,ref:h,required:y,tabIndex:_,type:x,value:w},p)),k?o:u)}));const PC=(0,Gn.c)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(jC),IC=(0,In.c)(i.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),LC=(0,In.c)(i.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),RC=(0,In.c)(i.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var NC=i.createElement(LC,null),DC=i.createElement(IC,null),MC=i.createElement(RC,null),BC=i.forwardRef((function(e,t){var n=e.checkedIcon,r=void 0===n?NC:n,o=e.classes,a=e.color,s=void 0===a?"secondary":a,l=e.icon,c=void 0===l?DC:l,u=e.indeterminate,d=void 0!==u&&u,p=e.indeterminateIcon,h=void 0===p?MC:p,f=e.inputProps,m=e.size,g=void 0===m?"medium":m,v=(0,Yn.c)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),b=d?h:c,y=d?h:r;return i.createElement(PC,(0,at.c)({type:"checkbox",classes:{root:(0,kn.c)(o.root,o["color".concat((0,Zn.c)(s))],d&&o.indeterminate),checked:o.checked,disabled:o.disabled},color:s,inputProps:(0,at.c)({"data-indeterminate":d},f),icon:i.cloneElement(b,{fontSize:void 0===b.props.fontSize&&"small"===g?g:b.props.fontSize}),checkedIcon:i.cloneElement(y,{fontSize:void 0===y.props.fontSize&&"small"===g?g:y.props.fontSize}),ref:t},v))}));const QC=(0,Gn.c)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,or.W4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,or.W4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(BC);var UC=n(4968),FC=n(3564);const zC=5e3,qC=e=>{var t,n;let{onChange:r,value:o,name:a,multiline:s,disabled:l,error:c,translationButonDisabled:u=!1}=e;const{translate:d}=(0,i.useContext)(Fb),[p,h]=(0,i.useState)(!1),{language:f}=mn();let m;const g=new Blob([null===o||void 0===o?void 0:o[f]]).size>=zC;m="en"===f?["en","fr"]:["fr","en"];const v=m[1],b=(null===o||void 0===o||null===(t=o.translations)||void 0===t||null===(n=t[v])||void 0===n?void 0:n.verified)||!1;function y(e,t){return{...e,[v]:{verified:t,...!t&&{message:"text translated using the Amazon translate service / texte traduit \xe0 l'aide du service de traduction Amazon"}}}}function _(e){const{translations:t,...n}={...o},i={...n,[e.target.name]:e.target.value,...e.target.name===v&&e.target.value&&{translations:t||y({},!1)}};r({target:{name:a,value:i}})}return(0,i.useEffect)((()=>{if(o&&!o.translations){if(o.en&&o.fr){const e={...o,translations:{[v]:{verified:!1,message:"text translated using the Amazon translate service / texte traduit \xe0 l'aide du service de traduction Amazon"}}};r({target:{name:a,value:e}})}}}),[a,r,o,v]),(0,Ap.jsx)("div",{children:m.map(((e,t)=>(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(CC,{name:e,fullWidth:!0,value:(null===o||void 0===o?void 0:o[e])||"",onChange:e=>_(e),InputProps:{startAdornment:(0,Ap.jsx)(SC,{position:"start",children:e.toUpperCase()})},multiline:s,disabled:l,error:Boolean(c)}),0===t&&!u&&(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Translate english to french",fr:"Traduire du fran\xe7ais en anglais"}),children:(0,Ap.jsxs)("span",{children:[(0,Ap.jsx)(c_,{style:{margin:"10px"},startIcon:p?(0,Ap.jsx)(r_,{size:20}):(0,Ap.jsx)(UC.c,{}),endIcon:p?null:(0,Ap.jsx)(FC.c,{}),disabled:l||p||!(null!==o&&void 0!==o&&o[e])||g,onClick:()=>{h(!0),d({text:o[e],fromLang:e}).then((e=>{h(!1);const t=e.data;_({target:{name:v,value:t}})}))},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Translate"}),(0,Ap.jsx)(Ip,{children:"Traduire"})]})}),(null===o||void 0===o?void 0:o[v])&&(0,Ap.jsx)(AC,{control:(0,Ap.jsx)(QC,{checked:b,onChange:e=>function(e){const{checked:t}=e.target,n={...o,translations:y(o.translations,t)};r({target:{name:a,value:n}})}(e),color:"primary"}),label:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"I have verified this translation"}),(0,Ap.jsx)(Ip,{children:"J'ai v\xe9rifi\xe9 cette traduction"})]})}),g&&(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["Translation is disabled because text is larger than"," ",zC," characters."]}),(0,Ap.jsxs)(Ip,{children:["La traduction est d\xe9sactiv\xe9e car le texte est plus grand que ",zC," caract\xe8res."]})]})]})})]},e)))})};function HC(e,t,n){var r=this,o=(0,i.useRef)(null),a=(0,i.useRef)(0),s=(0,i.useRef)(null),l=(0,i.useRef)([]),c=(0,i.useRef)(),u=(0,i.useRef)(),d=(0,i.useRef)(e),p=(0,i.useRef)(!0);(0,i.useEffect)((function(){d.current=e}),[e]);var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var f=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,g="maxWait"in n,v=g?Math.max(+n.maxWait||0,t):null;(0,i.useEffect)((function(){return p.current=!0,function(){p.current=!1}}),[]);var b=(0,i.useMemo)((function(){var e=function(e){var t=l.current,n=c.current;return l.current=c.current=null,a.current=e,u.current=d.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!p.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||g&&e-a.current>=v},b=function(t){return s.current=null,m&&l.current?e(t):(l.current=c.current=null,u.current)},y=function e(){var r=Date.now();if(i(r))return b(r);if(p.current){var s=t-(r-o.current),l=g?Math.min(s,v-(r-a.current)):s;n(e,l)}},_=function(){var d=Date.now(),h=i(d);if(l.current=[].slice.call(arguments),c.current=r,o.current=d,h){if(!s.current&&p.current)return a.current=o.current,n(y,t),f?e(o.current):u.current;if(g)return n(y,t),e(o.current)}return s.current||n(y,t),u.current};return _.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=c.current=s.current=null},_.isPending=function(){return!!s.current},_.flush=function(){return s.current?b(Date.now()):u.current},_}),[f,g,t,v,m,h]);return b}function WC(e,t){return e===t}function GC(e){return"function"==typeof e?function(){return e}:e}function VC(e,t,n){var r,o,a=n&&n.equalityFn||WC,s=(r=(0,i.useState)(GC(e)),o=r[1],[r[0],(0,i.useCallback)((function(e){return o(GC(e))}),[])]),l=s[0],c=s[1],u=HC((0,i.useCallback)((function(e){return c(e)}),[c]),t,n),d=(0,i.useRef)(e);return a(d.current,e)||(u(e),d.current=e),[l,u]}const $C=e=>{let{children:t}=e;return(0,Ap.jsx)(Or,{variant:"body2",component:"div",style:{marginTop:"10px"},children:t})},KC=e=>{let{children:t}=e;return(0,Ap.jsx)(Or,{variant:"body1",component:"div",style:{marginBottom:"10px"},children:t})},YC=e=>{let{children:t}=e;return(0,Ap.jsx)(Or,{variant:"h6",component:"div",children:t})},ZC={padding:"10px",margin:"20px",width:"90%"};const JC=async function(e,t,n,r){const i=Zp(Yp(),"updateDraftDoi"),o=Fx(e,n,t,r);delete o.data.type,delete o.data.attributes.prefix;const a={doi:e.datasetIdentifier.replace("https://doi.org/",""),region:t,data:o};return(await i(a)).data.status},XC=e=>{let{record:t,name:n,handleUpdateDatasetIdentifier:r,handleUpdateDoiCreationStatus:o,disabled:a}=e;const{createDraftDoi:s,deleteDraftDoi:l,getDoiStatus:c,datacitePrefix:u}=(0,i.useContext)(Fb),{language:d,region:p,userID:h}=mn(),f=Px(t.datasetIdentifier),[m,g]=(0,i.useState)(!1),[v,b]=(0,i.useState)(!1),[y]=VC(t.datasetIdentifier,1e3),[_,x]=(0,i.useState)(!1),[w,E]=(0,i.useState)(!1),[T,C]=(0,i.useState)(!1),[k,S]=(0,i.useState)(!1),O=m||_||""!==t.doiCreationStatus||""===t.recordID,A=Boolean(u),j=f&&u&&t.doiCreationStatus&&""!==t.doiCreationStatus,P=f&&u&&""!==t.doiCreationStatus&&t.datasetIdentifier.includes(u),I=f&&u&&""!==t.doiCreationStatus&&!v&&t.datasetIdentifier.includes(u),L=(0,i.useRef)(!1);return(0,i.useEffect)((()=>{if(L.current=!0,""===y)o({target:{name:n,value:""}});else if(y&&u&&f){let e=y;y.includes("doi.org/")&&(e=y.split("doi.org/").pop()),c({doi:e,region:p}).then((e=>{L.current&&o({target:{name:n,value:e.data}})})).catch((e=>{console.error(e)}))}return()=>{L.current=!1}}),[y,c,f]),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the DOI for this dataset? Eg,"}),(0,Ap.jsx)(Ip,{children:"Quel est le DOI de ce jeu de donn\xe9es ? Par exemple,"})]})," ","https://doi.org/10.0000/0000",A&&(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:(0,Ap.jsx)("p",{children:"Please save the form before generating a draft DOI."})}),(0,Ap.jsx)(Ip,{children:(0,Ap.jsx)("p",{children:"Veuillez enregistrer le formulaire avant de g\xe9n\xe9rer un brouillon de DOI."})})]})})]}),A&&(0,Ap.jsx)(c_,{onClick:()=>async function(){x(!0);const e=Bb(Cp);try{const n=Fx(t,d,p,u);await s({record:n,region:p}).then((e=>e.data.data.attributes)).then((async n=>{r({target:{value:"https://doi.org/".concat(n.doi)}}),o({target:{value:"draft"}});const i={...t,datasetIdentifier:"https://doi.org/".concat(n.doi),doiCreationStatus:"draft"},a=xb(e,"".concat(p,"/users/").concat(h,"/records"));t.recordID&&await kb(wb(a,t.recordID),{datasetIdentifier:i.datasetIdentifier,doiCreationStatus:i.doiCreationStatus}),g(!0)})).finally((()=>{x(!1)}))}catch(n){throw b(!0),new Error("Error in handleGenerateDOI: ".concat(n))}}(),disabled:O,style:{display:"inline",marginRight:"15px"},children:(0,Ap.jsx)("div",{style:{display:"flex",alignItems:"center"},children:_?(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(r_,{size:24,style:{marginRight:"8px"}}),"Loading..."]}):"Generate DOI"})}),P&&(0,Ap.jsx)(c_,{onClick:()=>async function(){E(!0);try{200===await JC(t,p,d,u)?(S(!0),b(!1)):(b(!0),S(!1))}catch(e){throw b(!0),e}finally{E(!1),setTimeout((()=>{S(!1)}),3e3)}}(),disabled:["not found","unknown"].includes(t.doiCreationStatus),style:{display:"inline",marginRight:"15px"},children:(0,Ap.jsx)("div",{style:{display:"flex",alignItems:"center"},children:w?(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(r_,{size:24,style:{marginRight:"8px"}}),"Loading..."]}):"Update DOI"})}),I&&(0,Ap.jsx)(c_,{onClick:()=>async function(){C(!0);const e=Bb(Cp);try{const i=t.datasetIdentifier.replace("https://doi.org/","");l({doi:i,region:p}).then((e=>e.data)).then((async i=>{if(204===i){r({target:{name:n,value:""}}),o({target:{name:n,value:""}});const i={...t,datasetIdentifier:"",doiCreationStatus:""},a=xb(e,"".concat(p,"/users/").concat(h,"/records"));t.recordID&&await kb(wb(a,t.recordID),{datasetIdentifier:i.datasetIdentifier,doiCreationStatus:i.doiCreationStatus}),g(!1)}else b(!0)})).finally((()=>{C(!1)}))}catch(i){throw console.error(i),b(!0),i}}(),disabled:"draft"!==t.doiCreationStatus,style:{display:"inline",marginRight:"15px"},children:(0,Ap.jsx)("div",{style:{display:"flex",alignItems:"center"},children:T?(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(r_,{size:24,style:{marginRight:"8px"}}),"Loading..."]}):"Delete DOI"})}),v&&(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Lp,{en:"Error occurred with DOI API",fr:"Une erreur s'est produite avec l'API DOI"})}),k&&(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Lp,{en:"DOI has been updated",fr:"Le DOI a \xe9t\xe9 mis \xe0 jour"})}),(0,Ap.jsx)(CC,{style:{marginTop:"10px"},name:n||"datasetIdentifier",helperText:(f?"":(0,Ap.jsx)(Lp,{en:"Invalid DOI",fr:"DOI non valide"}))||j&&(0,Ap.jsx)(Lp,{en:"DOI Status: ".concat(t.doiCreationStatus),fr:"Statut DOI: ".concat(t.doiCreationStatus)}),error:!f,value:t.datasetIdentifier,onChange:e=>r(e),disabled:a,fullWidth:!0})]})};const ek=function(e){let{passes:t}=e;return t?(0,Ap.jsxs)("span",{style:{color:"green",fontSize:"x-large",position:"relative",bottom:"-4px"},children:[" ","\u2713"," "]}):(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Required",fr:"Obligatoire"}),children:(0,Ap.jsxs)("span",{style:{color:"red",fontSize:"large"},children:[" ","\u2735"," "]})})},tk={custodian:{title:{en:"Metadata Custodian",fr:"D\xe9positaire des m\xe9tadonn\xe9es"},text:{en:"Party that accepts accountability and responsibility for the resource and ensures appropriate care and maintenance of the resource ",fr:"Partie qui accepte la reddition de comptes et la responsabilit\xe9 de la ressource et assure le soin et l'entretien appropri\xe9s de la ressource "},required:!0,showProminently:!0},owner:{title:{en:"Data Owner",fr:"Propri\xe9taire des donn\xe9es"},text:{en:"Party that owns the resource",fr:"Partie propri\xe9taire de la ressource"},required:!0,showProminently:!0},distributor:{title:{en:"Distributor",fr:"Distributeur"},text:{en:"Party who distributes the resource",fr:"Partie qui distribue la ressource"},showProminently:!0},author:{title:{en:"Author",fr:"Auteur"},text:{en:"Party who authored the resource"}},coAuthor:{title:{en:"Coauthor",fr:"Co-auteur"},text:{en:"Party who jointly authors the resource",fr:"Partie qui est l'auteur conjoint de la ressource"}},collaborator:{title:{en:"Collaborator",fr:"Collaborateur"},text:{en:"Party who assists with the generation of the resource other than the principal investigator",fr:"Partie qui aide \xe0 la production de la ressource autre que le chercheur principal"}},contributor:{title:{en:"Contributor",fr:"Contributeur"},text:{en:"Party contributing to the resource",fr:"Partie contribuant \xe0 la ressource"}},editor:{title:{en:"Editor",fr:"\xc9diteur"},text:{en:"Party who reviewed or modified the resource to improve the content",fr:"Partie qui a examin\xe9 ou modifi\xe9 la ressource pour am\xe9liorer le contenu"}},funder:{title:{en:"Funder",fr:"Financeur"},text:{en:"Party providing monetary support for the resource",fr:"Partie fournissant un soutien mon\xe9taire pour la ressource"}},mediator:{title:{en:"Mediator",fr:"M\xe9diateur"},text:{en:"A class of entity that mediates access to the resource and for whom the resource is intended or useful ",fr:"Classe d'entit\xe9 qui sert de m\xe9diateur \xe0 l'acc\xe8s \xe0 la ressource et pour laquelle la ressource est destin\xe9e ou utile"}},originator:{title:{en:"Originator",fr:"Initiateur"},text:{en:"Party who created the resource",fr:"Partie qui a cr\xe9\xe9 la ressource"}},pointOfContact:{title:{en:"Point Of Contact",fr:"Point de contact"},text:{en:"Party who can be contacted for acquiring knowledge about or acquisition of the resource",fr:"Partie qui peut \xeatre contact\xe9e pour acqu\xe9rir des connaissances sur la ressource ou l'acquisition de la ressource"}},principalInvestigator:{title:{en:"Principal Investigator",fr:"Responsable de recherche"},text:{en:"Key party responsible for gathering information and conducting research",fr:"Partie cl\xe9 responsable de la collecte de l'information et de la r\xe9alisation de la recherche"}},processor:{title:{en:"Processor",fr:"Transformateur"},text:{en:"Party who has processed the data in a manner such that the resource has been modified",fr:"Partie qui a trait\xe9 les donn\xe9es d'une mani\xe8re telle que la ressource a \xe9t\xe9 modifi\xe9e"}},publisher:{title:{en:"Publisher",fr:"Editeur"},text:{en:"Party who published the resource",fr:"Partie qui a publi\xe9 la ressource"}},resourceProvider:{title:{en:"Resource Provider",fr:"Fournisseur de ressources"},text:{en:"Party that supplies the resource",fr:"Partie qui fournit la ressource "}},rightsHolder:{title:{en:"Rights Holder",fr:"Ayant droit"},text:{en:"Party owning or managing rights over the resource ",fr:"Partie d\xe9tenant ou g\xe9rant des droits sur la ressource"}},sponsor:{title:{en:"Sponsor",fr:"Commanditaire"},text:{en:"Party who speaks for the resource ",fr:"Parti qui parle pour la ressource"}},stakeholder:{title:{en:"Stakeholder",fr:"Actionnaire"},text:{en:"Party who has an interest in the resource or the use of the resource ",fr:"Partie qui a un int\xe9r\xeat dans la ressource ou l'utilisation de la ressource"}}},nk={onGoing:{title:{en:"Ongoing",fr:"En cours"},text:{en:"Data is continually being updated. e.g satellite dataset that continues to be augmented",fr:"Les donn\xe9es sont continuellement mises \xe0 jour, par exemple un ensemble de donn\xe9es satellite qui continue d'\xeatre augment\xe9"}},historicalArchive:{title:{en:"Historical Archive",fr:"Archives historiques"},text:{en:"Data has been stored in an offline storage facility. use to indicate data are archived",fr:"Les donn\xe9es ont \xe9t\xe9 stock\xe9es dans une installation de stockage hors connexion. Utilisez pour indiquer que les donn\xe9es sont archiv\xe9es"}},completed:{title:{en:"Completed",fr:"Termin\xe9"},text:{en:"Production of the data has been completed \te.g. raw data that is not ongoing, completed model",fr:"La production des donn\xe9es a \xe9t\xe9 termin\xe9e, p. ex. donn\xe9es brutes qui ne sont pas en cours, mod\xe8le termin\xe9"}}},rk={heightPositive:{en:"Depth Positive",fr:"Profondeur positive"},depthPositive:{en:"Height Positive",fr:"Hauteur positive"}},ik={Book:{title:{en:"Book",fr:"Livre"},text:{en:"A medium for recording information in the form of writing or images, typically composed of many pages bound together and protected by a cover.",fr:"Support d'enregistrement d'informations sous forme d'\xe9crits ou d'images, g\xe9n\xe9ralement compos\xe9 de plusieurs pages reli\xe9es ensemble et prot\xe9g\xe9es par une couverture."},isoValue:"document"},DataCollectionSampling:{title:{en:"Data Collection (sampling)",fr:"Collecte de donn\xe9es (\xe9chantillonnage)"},text:{en:"sampling methods or protocols",fr:"m\xe9thodes ou protocoles d\u2019\xe9chantillonnage"},isoValue:"collectionSession"},Dataset:{title:{en:"Dataset",fr:"Base de donn\xe9es"},text:{en:"Data encoded in a defined structure.",fr:"Donn\xe9es cod\xe9es dans une structure d\xe9finie."},isoValue:"dataset"},Model:{title:{en:"Model",fr:"Mod\xe8le"},text:{en:"An abstract, conceptual, graphical, mathematical or visualization model that represents empirical objects, phenomena, or physical processes.",fr:"Mod\xe8le abstrait, conceptuel, graphique, math\xe9matique ou de visualisation qui repr\xe9sente des objets empiriques, des ph\xe9nom\xe8nes ou des processus physiques."},isoValue:"model"},Preprint:{title:{en:"Preprint",fr:"Pr\xe9impression"},text:{en:"A version of a scholarly or scientific paper that precedes formal peer review and publication in a peer - reviewed scholarly or scientific journal.",fr:"Version d'un article scientifique ou scientifique qui pr\xe9c\xe8de l'examen formel par les pairs et la publication dans une revue universitaire ou scientifique \xe0 comit\xe9 de lecture."},isoValue:"document"},Report:{title:{en:"Report",fr:"Rapport"},text:{en:"A document that presents information in an organized format for a specific audience and purpose.",fr:"Un document qui pr\xe9sente des informations dans un format organis\xe9 pour un public et un objectif sp\xe9cifiques."},isoValue:"document"},Software:{title:{en:"Software",fr:"Logiciel"},text:{en:"A computer program other than a computational notebook, in either source code(text) or compiled form.Use this type for general software components supporting scholarly research.Use the \u201cComputationalNotebook\u201d value for virtual notebooks.",fr:"Un programme informatique autre qu'un cahier de calcul, sous forme de code source (texte) ou sous forme compil\xe9e. Utilisez ce type pour les composants logiciels g\xe9n\xe9raux prenant en charge la recherche scientifique. Utilisez la valeur \xab ComputationalNotebook \xbb pour les blocs-notes virtuels."},isoValue:"software"},Text:{title:{en:"Text",fr:"Texte"},text:{en:"A resource consisting primarily of words for reading that is not covered by any other textual resource type in this list.",fr:"Une ressource compos\xe9e principalement de mots \xe0 lire qui n'est couverte par aucun autre type de ressource textuelle de cette liste."},isoValue:"document"},Other:{title:{en:"Other",fr:"Autre"},text:{en:"other",fr:"autre"},isoValue:"dataset"}},ok={IsCitedBy:{title:{en:"Is Cited By",fr:"Est cit\xe9 par"},text:{en:"A is cited by B",fr:"A est cit\xe9 par B"},isoValue:"crossReference"},Cites:{title:{en:"Cites",fr:"Cites"},text:{en:"A cites B",fr:"A cite B"},isoValue:"crossReference"},IsSupplementTo:{title:{en:"Is Supplement To",fr:"Est un suppl\xe9ment \xe0"},text:{en:"A is supplement to B",fr:"A est un compl\xe9ment \xe0 B"},isoValue:"crossReference"},IsSupplementedBy:{title:{en:"Is Supplemented By",fr:"Est compl\xe9t\xe9 par"},text:{en:"A is supplemented by B",fr:"A est compl\xe9t\xe9 par B"},isoValue:"crossReference"},IsContinuedBy:{title:{en:"Is Continued By",fr:"Est continu\xe9 par"},text:{en:"A is continued by B",fr:"A est continu\xe9 par B"},isoValue:"series"},Continues:{title:{en:"Continues",fr:"Continue"},text:{en:"A continues B",fr:"A continue B"},isoValue:"series"},IsDescribedBy:{title:{en:"Is Described By",fr:"Est d\xe9crit par"},text:{en:"A is described by B",fr:"A est d\xe9crit par B"},isoValue:"crossReference"},Describes:{title:{en:"Describes",fr:"D\xe9crit"},text:{en:"A describes B",fr:"A d\xe9crit B"},isoValue:"crossReference"},HasMetadata:{title:{en:"Has Metadata",fr:"Poss\xe8de des m\xe9tadonn\xe9es"},text:{en:"A has metadata B",fr:"A a des m\xe9tadonn\xe9es B"},isoValue:"crossReference"},IsMetadataFor:{title:{en:"Is Metadata For",fr:"Les m\xe9tadonn\xe9es sont-elles destin\xe9es"},text:{en:"A is metadata for B",fr:"A est une m\xe9tadonn\xe9e pour B"},isoValue:"crossReference"},HasVersion:{title:{en:"Has Version",fr:"A une version"},text:{en:"A has version B",fr:"A a la version B"},isoValue:"revisionOf"},IsVersionOf:{title:{en:"Is Version Of",fr:"Est la version de"},text:{en:"A is version of B",fr:"A est la version de B"},isoValue:"revisionOf"},IsNewVersionOf:{title:{en:"Is New Version Of",fr:"Est-ce une nouvelle version de"},text:{en:"A is new version of B",fr:"A est une nouvelle version de B"},isoValue:"revisionOf"},PreviousVersionOf:{title:{en:"Previous Version Of",fr:"Version pr\xe9c\xe9dente de"},text:{en:"A is previous version of B",fr:"A est la version pr\xe9c\xe9dente de B"},isoValue:"crossReference"},IsPartOf:{title:{en:"Is Part Of",fr:"Fait partie de"},text:{en:"A is part of B",fr:"A fait partie de B"},isoValue:"largerWorkCitation"},HasPart:{title:{en:"Has Part",fr:"A une partie"},text:{en:"A has part B",fr:"A a la partie B"},isoValue:"isComposedOf"},IsPublishedIn:{title:{en:"Is Published In",fr:"Est publi\xe9 dans"},text:{en:"A is published in B",fr:"A est publi\xe9 dans B"},isoValue:"largerWorkCitation"},IsReferencedBy:{title:{en:"Is Referenced By",fr:"Est r\xe9f\xe9renc\xe9 par"},text:{en:"A is referenced by B",fr:"A est r\xe9f\xe9renc\xe9 par B"},isoValue:"crossReference"},References:{title:{en:"References",fr:"Les r\xe9f\xe9rences"},text:{en:"A references B",fr:"A r\xe9f\xe9rences B"},isoValue:"crossReference"},IsDocumentedBy:{title:{en:"Is Documented By",fr:"Est document\xe9 par"},text:{en:"A is documented by B",fr:"A est document\xe9 par B"},isoValue:"crossReference"},Documents:{title:{en:"Documents",fr:"Documents"},text:{en:"A documents B",fr:"Un document B"},isoValue:"crossReference"},IsCompiledBy:{title:{en:"Is Compiled By",fr:"Est compil\xe9 par"},text:{en:"A is compiled by B",fr:"A est compil\xe9 par B"},isoValue:"dependency"},Compiles:{title:{en:"Compiles",fr:"Compile"},text:{en:"A compiles B",fr:"A compile B"},isoValue:"dependency"},IsVariantFormOf:{title:{en:"Is Variant Form Of",fr:"Est une forme variante de"},text:{en:"A is variant form of B",fr:"A est une variante de B"},isoValue:"crossReference"},IsOriginalFormOf:{title:{en:"Is Original Form Of",fr:"Est la forme originale de"},text:{en:"A is original form of B",fr:"A est la forme originale de B"},isoValue:"crossReference"},IsIdenticalTo:{title:{en:"Is Identical To",fr:"Est identique \xe0"},text:{en:"A is identical to B",fr:"A est identique \xe0 B"},isoValue:"crossReference"},IsReviewedBy:{title:{en:"Is Reviewed By",fr:"Est r\xe9vis\xe9 par"},text:{en:"A is reviewed by B",fr:"A est examin\xe9 par B"},isoValue:"crossReference"},Reviews:{title:{en:"Reviews",fr:"Commentaires"},text:{en:"A reviews B",fr:"A avis B"},isoValue:"crossReference"},IsDerivedFrom:{title:{en:"Is Derived From",fr:"D\xe9rive de"},text:{en:"A is derived from B",fr:"A est d\xe9riv\xe9 de B"},isoValue:"dependency"},IsSourceOf:{title:{en:"Is Source Of",fr:"est la source de"},text:{en:"A is source of B",fr:"A est la source de B"},isoValue:"dependency"},Requires:{title:{en:"Requires",fr:"A besoin"},text:{en:"A requires B",fr:"A n\xe9cessite B"},isoValue:"dependency"},IsRequiredBy:{title:{en:"Is Required By",fr:"Est requis par"},text:{en:"A is required by B",fr:"A est requis par B"},isoValue:"dependency"},IsObsoletedBy:{title:{en:"Is Obsoleted By",fr:"Est obsol\xe8te par"},text:{en:"A is obsoleted by B",fr:"A est obsol\xe8te par B"},isoValue:"crossReference"},Obsoletes:{title:{en:"Obsoletes",fr:"Obsol\xe8tes"},text:{en:"A obsoletes B",fr:"A rend obsol\xe8te B"},isoValue:"revisionOf"}},ak=["ARK","arXiv","bibcode","ca.cioos","DOI","EAN13","EISSN","Handle","IGSN","ISBN","ISSN","ISTC","LISSN","LSID","PMID","PURL","UPC","URL","URN","w3id"],sk=e=>{let{onChange:t,value:n=[],name:r,options:i,optionLabels:o=i,optionTooltips:a=[],disabled:s,labelSize:l=3}=e;return(0,Ap.jsx)(e_,{container:!0,direction:"row",children:i.map(((e,i)=>(0,Ap.jsx)(e_,{item:!0,xs:l,children:(0,Ap.jsx)(ms,{title:a[i]||"",children:(0,Ap.jsx)(AC,{disabled:s,control:(0,Ap.jsx)(QC,{value:e||[],name:r,checked:n.includes(e),onChange:e=>{const r=e.target.value,i=(o=r,(a=n).includes(o)?a.filter((e=>e!==o)):a.concat(o));var o,a;t(i)}}),label:(0,Ap.jsx)(Or,{children:o[i]})})})},i)))})};var lk=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"li":s,c=e.disableGutters,u=void 0!==c&&c,d=e.disableSticky,p=void 0!==d&&d,h=e.inset,f=void 0!==h&&h,m=(0,Yn.c)(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return i.createElement(l,(0,at.c)({className:(0,kn.c)(n.root,r,"default"!==a&&n["color".concat((0,Zn.c)(a))],f&&n.inset,!p&&n.sticky,!u&&n.gutters),ref:t},m))}));const ck=(0,Gn.c)((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(lk),uk=(0,In.c)(i.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),dk=(0,In.c)(i.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function pk(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function hk(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,i=void 0===r||r,o=e.limit,a=e.matchFrom,s=void 0===a?"any":a,l=e.stringify,c=e.trim,u=void 0!==c&&c;return function(e,t){var r=t.inputValue,a=t.getOptionLabel,c=u?r.trim():r;i&&(c=c.toLowerCase()),n&&(c=pk(c));var d=e.filter((function(e){var t=(l||a)(e);return i&&(t=t.toLowerCase()),n&&(t=pk(t)),"start"===s?0===t.indexOf(c):t.indexOf(c)>-1}));return"number"===typeof o?d.slice(0,o):d}}();function mk(e){var t=e.autoComplete,n=void 0!==t&&t,r=e.autoHighlight,o=void 0!==r&&r,a=e.autoSelect,s=void 0!==a&&a,l=e.blurOnSelect,c=void 0!==l&&l,u=e.clearOnBlur,d=void 0===u?!e.freeSolo:u,p=e.clearOnEscape,h=void 0!==p&&p,f=e.componentName,m=void 0===f?"useAutocomplete":f,g=e.debug,v=void 0!==g&&g,b=e.defaultValue,y=void 0===b?e.multiple?[]:null:b,_=e.disableClearable,x=void 0!==_&&_,w=e.disableCloseOnSelect,E=void 0!==w&&w,T=e.disabledItemsFocusable,C=void 0!==T&&T,k=e.disableListWrap,S=void 0!==k&&k,O=e.filterOptions,A=void 0===O?fk:O,j=e.filterSelectedOptions,P=void 0!==j&&j,I=e.freeSolo,L=void 0!==I&&I,R=e.getOptionDisabled,N=e.getOptionLabel,D=void 0===N?function(e){return e}:N,M=e.getOptionSelected,B=void 0===M?function(e,t){return e===t}:M,Q=e.groupBy,U=e.handleHomeEndKeys,F=void 0===U?!e.freeSolo:U,z=e.id,q=e.includeInputInList,H=void 0!==q&&q,W=e.inputValue,G=e.multiple,V=void 0!==G&&G,$=e.onChange,K=e.onClose,Y=e.onHighlightChange,Z=e.onInputChange,J=e.onOpen,X=e.open,ee=e.openOnFocus,te=void 0!==ee&&ee,ne=e.options,re=e.selectOnFocus,ie=void 0===re?!e.freeSolo:re,oe=e.value,ae=(0,us.c)(z),se=D;var le=i.useRef(!1),ce=i.useRef(!0),ue=i.useRef(null),de=i.useRef(null),pe=i.useState(null),he=pe[0],fe=pe[1],me=i.useState(-1),ge=me[0],ve=me[1],be=o?0:-1,ye=i.useRef(be),_e=(0,Ui.c)({controlled:oe,default:y,name:m}),xe=(0,jr.c)(_e,2),we=xe[0],Ee=xe[1],Te=(0,Ui.c)({controlled:W,default:"",name:m,state:"inputValue"}),Ce=(0,jr.c)(Te,2),ke=Ce[0],Se=Ce[1],Oe=i.useState(!1),Ae=Oe[0],je=Oe[1],Pe=(0,sr.c)((function(e,t){var n;if(V)n="";else if(null==t)n="";else{var r=se(t);n="string"===typeof r?r:""}ke!==n&&(Se(n),Z&&Z(e,n,"reset"))}));i.useEffect((function(){Pe(null,we)}),[we,Pe]);var Ie=(0,Ui.c)({controlled:X,default:!1,name:m,state:"open"}),Le=(0,jr.c)(Ie,2),Re=Le[0],Ne=Le[1],De=!V&&null!=we&&ke===se(we),Me=Re,Be=Me?A(ne.filter((function(e){return!P||!(V?we:[we]).some((function(t){return null!==t&&B(e,t)}))})),{inputValue:De?"":ke,getOptionLabel:se}):[],Qe=(0,sr.c)((function(e){-1===e?ue.current.focus():he.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));i.useEffect((function(){V&&ge>we.length-1&&(ve(-1),Qe(-1))}),[we,V,ge,Qe]);var Ue=(0,sr.c)((function(e){var t=e.event,n=e.index,r=e.reason,i=void 0===r?"auto":r;if(ye.current=n,-1===n?ue.current.removeAttribute("aria-activedescendant"):ue.current.setAttribute("aria-activedescendant","".concat(ae,"-option-").concat(n)),Y&&Y(t,-1===n?null:Be[n],i),de.current){var o=de.current.querySelector("[data-focus]");o&&o.removeAttribute("data-focus");var a=de.current.parentElement.querySelector('[role="listbox"]');if(a)if(-1!==n){var s=de.current.querySelector('[data-option-index="'.concat(n,'"]'));if(s&&(s.setAttribute("data-focus","true"),a.scrollHeight>a.clientHeight&&"mouse"!==i)){var l=s,c=a.clientHeight+a.scrollTop,u=l.offsetTop+l.offsetHeight;u>c?a.scrollTop=u-a.clientHeight:l.offsetTop-l.offsetHeight*(Q?1.3:0)1?0:e:t>e?t===e+1&&H?-1:S||Math.abs(r)>1?e:0:t}(),o);if(Ue({index:l,reason:s,event:t}),n&&"reset"!==r)if(-1===l)ue.current.value=ke;else{var c=se(Be[l]);ue.current.value=c,0===c.toLowerCase().indexOf(ke.toLowerCase())&&ke.length>0&&ue.current.setSelectionRange(ke.length,c.length)}}})),ze=i.useCallback((function(){if(Me){var e=V?we[0]:we;if(0!==Be.length&&null!=e){if(de.current)if(P||null==e)ye.current>=Be.length-1?Ue({index:Be.length-1}):Ue({index:ye.current});else{var t=Be[ye.current];if(V&&t&&-1!==hk(we,(function(e){return B(t,e)})))return;var n=hk(Be,(function(t){return B(t,e)}));-1===n?Fe({diff:"reset"}):Ue({index:n})}}else Fe({diff:"reset"})}}),[0===Be.length,!V&&we,P,Fe,Ue,Me,ke,V]),qe=(0,sr.c)((function(e){(0,Br.c)(de,e),e&&ze()}));i.useEffect((function(){ze()}),[ze]);var He=function(e){Re||(Ne(!0),J&&J(e))},We=function(e,t){Re&&(Ne(!1),K&&K(e,t))},Ge=function(e,t,n,r){we!==t&&($&&$(e,t,n,r),Ee(t))},Ve=i.useRef(!1),$e=function(e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"select-option",i=t;if(V){var o=hk(i=Array.isArray(we)?we.slice():[],(function(e){return B(t,e)}));-1===o?i.push(t):"freeSolo"!==n&&(i.splice(o,1),r="remove-option")}Pe(e,i),Ge(e,i,r,{option:t}),E||We(e,r),(!0===c||"touch"===c&&Ve.current||"mouse"===c&&!Ve.current)&&ue.current.blur()};var Ke=function(e,t){if(V){We(e,"toggleInput");var n=ge;-1===ge?""===ke&&"previous"===t&&(n=we.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===we.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===we.length||"previous"===t&&-1===n)return-1;var r=he.querySelector('[data-tag-index="'.concat(n,'"]'));if(!r||r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),ve(n),Qe(n)}},Ye=function(e){le.current=!0,Se(""),Z&&Z(e,"","clear"),Ge(e,V?[]:null,"clear")},Ze=function(e){return function(t){switch(-1!==ge&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(ve(-1),Qe(-1)),t.key){case"Home":Me&&F&&(t.preventDefault(),Fe({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":Me&&F&&(t.preventDefault(),Fe({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Fe({diff:-5,direction:"previous",reason:"keyboard",event:t}),He(t);break;case"PageDown":t.preventDefault(),Fe({diff:5,direction:"next",reason:"keyboard",event:t}),He(t);break;case"ArrowDown":t.preventDefault(),Fe({diff:1,direction:"next",reason:"keyboard",event:t}),He(t);break;case"ArrowUp":t.preventDefault(),Fe({diff:-1,direction:"previous",reason:"keyboard",event:t}),He(t);break;case"ArrowLeft":Ke(t,"previous");break;case"ArrowRight":Ke(t,"next");break;case"Enter":if(229===t.which)break;if(-1!==ye.current&&Me){var r=Be[ye.current],i=!!R&&R(r);if(t.preventDefault(),i)return;$e(t,r,"select-option"),n&&ue.current.setSelectionRange(ue.current.value.length,ue.current.value.length)}else L&&""!==ke&&!1===De&&(V&&t.preventDefault(),$e(t,ke,"create-option","freeSolo"));break;case"Escape":Me?(t.preventDefault(),t.stopPropagation(),We(t,"escape")):h&&(""!==ke||V&&we.length>0)&&(t.preventDefault(),t.stopPropagation(),Ye(t));break;case"Backspace":if(V&&""===ke&&we.length>0){var o=-1===ge?we.length-1:ge,a=we.slice();a.splice(o,1),Ge(t,a,"remove-option",{option:we[o]})}}e.onKeyDown&&e.onKeyDown(t)}},Je=function(e){je(!0),te&&!le.current&&He(e)},Xe=function(e){null===de.current||document.activeElement!==de.current.parentElement?(je(!1),ce.current=!0,le.current=!1,v&&""!==ke||(s&&-1!==ye.current&&Me?$e(e,Be[ye.current],"blur"):s&&L&&""!==ke?$e(e,ke,"blur","freeSolo"):d&&Pe(e,we),We(e,"blur"))):ue.current.focus()},et=function(e){var t=e.target.value;ke!==t&&(Se(t),Z&&Z(e,t,"input")),""===t?x||V||Ge(e,null,"clear"):He(e)},tt=function(e){Ue({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},nt=function(){Ve.current=!0},rt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));$e(e,Be[t],"select-option"),Ve.current=!1},it=function(e){return function(t){var n=we.slice();n.splice(e,1),Ge(t,n,"remove-option",{option:we[e]})}},ot=function(e){Re?We(e,"toggleInput"):He(e)},st=function(e){e.target.getAttribute("id")!==ae&&e.preventDefault()},lt=function(){ue.current.focus(),ie&&ce.current&&ue.current.selectionEnd-ue.current.selectionStart===0&&ue.current.select(),ce.current=!1},ct=function(e){""!==ke&&Re||ot(e)},ut=L&&ke.length>0;ut=ut||(V?we.length>0:null!==we);var dt=Be;if(Q){new Map;dt=Be.reduce((function(e,t,n){var r=Q(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,at.c)({"aria-owns":Me?"".concat(ae,"-popup"):null,role:"combobox","aria-expanded":Me},e,{onKeyDown:Ze(e),onMouseDown:st,onClick:lt})},getInputLabelProps:function(){return{id:"".concat(ae,"-label"),htmlFor:ae}},getInputProps:function(){return{id:ae,value:ke,onBlur:Xe,onFocus:Je,onChange:et,onMouseDown:ct,"aria-activedescendant":Me?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Me?"".concat(ae,"-popup"):null,autoComplete:"off",ref:ue,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:Ye}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:ot}},getTagProps:function(e){var t=e.index;return{key:t,"data-tag-index":t,tabIndex:-1,onDelete:it(t)}},getListboxProps:function(){return{role:"listbox",id:"".concat(ae,"-popup"),"aria-labelledby":"".concat(ae,"-label"),ref:qe,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,n=e.option,r=(V?we:[we]).some((function(e){return null!=e&&B(n,e)})),i=!!R&&R(n);return{key:t,tabIndex:-1,role:"option",id:"".concat(ae,"-option-").concat(t),onMouseOver:tt,onClick:rt,onTouchStart:nt,"data-option-index":t,"aria-disabled":i,"aria-selected":r}},id:ae,inputValue:ke,value:we,dirty:ut,popupOpen:Me,focused:Ae||-1!==ge,anchorEl:he,setAnchorEl:fe,focusedTag:ge,groupedOptions:dt}}function gk(e){e.anchorEl,e.open;var t=(0,Yn.c)(e,["anchorEl","open"]);return i.createElement("div",t)}var vk=i.createElement(uk,{fontSize:"small"}),bk=i.createElement(dk,null),yk=i.forwardRef((function(e,t){e.autoComplete,e.autoHighlight,e.autoSelect,e.blurOnSelect;var n,r=e.ChipProps,o=e.classes,a=e.className,s=e.clearOnBlur,l=(void 0===s&&e.freeSolo,e.clearOnEscape,e.clearText),c=void 0===l?"Clear":l,u=e.closeIcon,d=void 0===u?vk:u,p=e.closeText,h=void 0===p?"Close":p,f=(e.debug,e.defaultValue),m=(void 0===f&&e.multiple,e.disableClearable),g=void 0!==m&&m,v=(e.disableCloseOnSelect,e.disabled),b=void 0!==v&&v,y=(e.disabledItemsFocusable,e.disableListWrap,e.disablePortal),_=void 0!==y&&y,x=(e.filterOptions,e.filterSelectedOptions,e.forcePopupIcon),w=void 0===x?"auto":x,E=e.freeSolo,T=void 0!==E&&E,C=e.fullWidth,k=void 0!==C&&C,S=e.getLimitTagsText,O=void 0===S?function(e){return"+".concat(e)}:S,A=(e.getOptionDisabled,e.getOptionLabel),j=void 0===A?function(e){return e}:A,P=(e.getOptionSelected,e.groupBy),I=e.handleHomeEndKeys,L=(void 0===I&&e.freeSolo,e.id,e.includeInputInList,e.inputValue,e.limitTags),R=void 0===L?-1:L,N=e.ListboxComponent,D=void 0===N?"ul":N,M=e.ListboxProps,B=e.loading,Q=void 0!==B&&B,U=e.loadingText,F=void 0===U?"Loading\u2026":U,z=e.multiple,q=void 0!==z&&z,H=e.noOptionsText,W=void 0===H?"No options":H,G=(e.onChange,e.onClose,e.onHighlightChange,e.onInputChange,e.onOpen,e.open,e.openOnFocus,e.openText),V=void 0===G?"Open":G,$=(e.options,e.PaperComponent),K=void 0===$?Xn:$,Y=e.PopperComponent,Z=void 0===Y?cs:Y,J=e.popupIcon,X=void 0===J?bk:J,ee=e.renderGroup,te=e.renderInput,ne=e.renderOption,re=e.renderTags,ie=e.selectOnFocus,oe=(void 0===ie&&e.freeSolo,e.size),ae=void 0===oe?"medium":oe,se=(e.value,(0,Yn.c)(e,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"])),le=_?gk:Z,ce=mk((0,at.c)({},e,{componentName:"Autocomplete"})),ue=ce.getRootProps,de=ce.getInputProps,pe=ce.getInputLabelProps,he=ce.getPopupIndicatorProps,fe=ce.getClearProps,me=ce.getTagProps,ge=ce.getListboxProps,ve=ce.getOptionProps,be=ce.value,ye=ce.dirty,_e=ce.id,xe=ce.popupOpen,we=ce.focused,Ee=ce.focusedTag,Te=ce.anchorEl,Ce=ce.setAnchorEl,ke=ce.inputValue,Se=ce.groupedOptions;if(q&&be.length>0){var Oe=function(e){return(0,at.c)({className:(0,kn.c)(o.tag,"small"===ae&&o.tagSizeSmall),disabled:b},me(e))};n=re?re(be,Oe):be.map((function(e,t){return i.createElement(pC,(0,at.c)({label:j(e),size:ae},Oe({index:t}),r))}))}if(R>-1&&Array.isArray(n)){var Ae=n.length-R;!we&&Ae>0&&(n=n.splice(0,R)).push(i.createElement("span",{className:o.tag,key:n.length},O(Ae)))}var je=ee||function(e){return i.createElement("li",{key:e.key},i.createElement(ck,{className:o.groupLabel,component:"div"},e.group),i.createElement("ul",{className:o.groupUl},e.children))},Pe=ne||j,Ie=function(e,t){var n=ve({option:e,index:t});return i.createElement("li",(0,at.c)({},n,{className:o.option}),Pe(e,{selected:n["aria-selected"],inputValue:ke}))},Le=!g&&!b,Re=(!T||!0===w)&&!1!==w;return i.createElement(i.Fragment,null,i.createElement("div",(0,at.c)({ref:t,className:(0,kn.c)(o.root,a,we&&o.focused,k&&o.fullWidth,Le&&o.hasClearIcon,Re&&o.hasPopupIcon)},ue(se)),te({id:_e,disabled:b,fullWidth:!0,size:"small"===ae?"small":void 0,InputLabelProps:pe(),InputProps:{ref:Ce,className:o.inputRoot,startAdornment:n,endAdornment:i.createElement("div",{className:o.endAdornment},Le?i.createElement(Cr,(0,at.c)({},fe(),{"aria-label":c,title:c,className:(0,kn.c)(o.clearIndicator,ye&&o.clearIndicatorDirty)}),d):null,Re?i.createElement(Cr,(0,at.c)({},he(),{disabled:b,"aria-label":xe?h:V,title:xe?h:V,className:(0,kn.c)(o.popupIndicator,xe&&o.popupIndicatorOpen)}),X):null)},inputProps:(0,at.c)({className:(0,kn.c)(o.input,-1===Ee&&o.inputFocused),disabled:b},de())})),xe&&Te?i.createElement(le,{className:(0,kn.c)(o.popper,_&&o.popperDisablePortal),style:{width:Te?Te.clientWidth:null},role:"presentation",anchorEl:Te,open:!0},i.createElement(K,{className:o.paper},Q&&0===Se.length?i.createElement("div",{className:o.loading},F):null,0!==Se.length||T||Q?null:i.createElement("div",{className:o.noOptions},W),Se.length>0?i.createElement(D,(0,at.c)({className:o.listbox},ge(),M),Se.map((function(e,t){return P?je({key:e.key,group:e.group,children:e.options.map((function(t,n){return Ie(t,e.index+n)}))}):Ie(e,t)}))):null)):null)}));const _k=(0,Gn.c)((function(e){var t;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:e.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:(0,at.c)({},e.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:e.palette.text.secondary,padding:"14px 16px"},noOptions:{color:e.palette.text.secondary,padding:"14px 16px"},option:(t={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,nr.c)(t,e.breakpoints.up("sm"),{minHeight:"auto"}),(0,nr.c)(t,'&[aria-selected="true"]',{backgroundColor:e.palette.action.selected}),(0,nr.c)(t,'&[data-focus="true"]',{backgroundColor:e.palette.action.hover}),(0,nr.c)(t,"&:active",{backgroundColor:e.palette.action.selected}),(0,nr.c)(t,'&[aria-disabled="true"]',{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"}),t),groupLabel:{backgroundColor:e.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}}),{name:"MuiAutocomplete"})(yk),xk=e=>{let{record:t,updateRecord:n,region:r}=e;const[o,a]=(0,i.useState)({}),[s,l]=(0,i.useState)(null),[c,u]=(0,i.useState)({}),[d,p]=(0,i.useState)(!0),h=t.userID;(0,i.useEffect)((()=>{let e=!0;t.recordID&&p(!1);return(async()=>{try{const t=await async function(e){const t=Bb(Cp);try{const n=xb(t,"".concat(e,"/users"));return(await Sb(n)).val()}catch(gh){throw new Error("Error fetching user emails for region ".concat(e,": ").concat(gh))}}(r);e&&a(t)}catch(gh){throw new Error("Error loading region users: ".concat(gh))}})(),()=>{e=!1}}),[r,t.recordID]),(0,i.useEffect)((()=>{const e={};Object.keys(t.sharedWith||{}).forEach((t=>{var n,r;const i=null===(n=o[t])||void 0===n||null===(r=n.userinfo)||void 0===r?void 0:r.displayName;i&&(e[t]={name:i})})),u(e)}),[t.sharedWith,o]);const f=Object.entries(o).map((e=>{var t;let[n,r]=e;return{label:null===(t=r.userinfo)||void 0===t?void 0:t.displayName,userID:n}})).filter((e=>e.label)).sort(((e,t)=>e.label.localeCompare(t.label)));return(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,style:{margin:"10px"},children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"To share editing access with another user, start typing their name and select from the suggestions."}),(0,Ap.jsx)(Ip,{children:"Pour partager l'acc\xe8s en modification avec un autre utilisateur, commencez \xe0 saisir son nom et s\xe9lectionnez parmi les suggestions."})]})}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:(0,Ap.jsx)("p",{children:"Please save the form before sharing access."})}),(0,Ap.jsx)(Ip,{children:(0,Ap.jsx)("p",{children:"Veuillez enregistrer le formulaire avant de partager l'acc\xe8s."})})]})})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{margin:"10px"},children:(0,Ap.jsxs)(e_,{container:!0,spacing:2,children:[(0,Ap.jsxs)(e_,{item:!0,xs:6,children:[(0,Ap.jsx)(_k,{id:"share-with-emails",options:f,getOptionLabel:e=>e.label,getOptionSelected:(e,t)=>e.userID===t.userID,value:s,onChange:(e,t)=>l(t),fullWidth:!0,filterSelectedOptions:!0,renderInput:e=>(0,Ap.jsx)(CC,{...e,label:(0,Ap.jsx)(Lp,{en:"Share with...",fr:"Partager avec..."}),variant:"outlined",style:{marginTop:"16px"}})}),(0,Ap.jsx)(c_,{disabled:d,startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>{s&&((e=>{const i={...t.sharedWith,[e]:!0};u(i),n("sharedWith")(i),(async()=>{try{await q_(e,t.recordID,h,r,!0)}catch(gh){throw new Error("Failed to update shared record: ".concat(gh))}})()})(s.userID),l(null))},style:{height:"46px",justifyContent:"center",marginTop:"15px"},children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Share Record"}),(0,Ap.jsx)(Ip,{children:"Partager l'enregistrement"})]})})})]}),(0,Ap.jsx)(e_,{item:!0,xs:6,style:{paddingLeft:"35px"},children:(0,Ap.jsxs)(QT,{style:{margin:"10px"},children:[(0,Ap.jsx)(Or,{style:{fontWeight:"bold"},children:Object.keys(c).length>0&&(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Users this record is shared with:"}),(0,Ap.jsx)(Ip,{children:"Utilisateurs avec lesquels cet enregistrement est partag\xe9\xa0:"})]})}),(0,Ap.jsx)(ki,{children:Object.entries(c).map(((e,i)=>{let[o,a]=e;return(0,Ap.jsxs)(ko,{children:[(0,Ap.jsx)(Yo,{primary:(0,Ap.jsx)(Or,{children:a.name})}),(0,Ap.jsx)(X_,{children:(0,Ap.jsx)(Cr,{"aria-label":"delete",style:{marginRight:"60px"},onClick:()=>(e=>{if(t.sharedWith&&t.sharedWith[e]){const i={...t.sharedWith};delete i[e],n("sharedWith")(i);const o=async()=>{try{await q_(e,t.recordID,h,r,!1)}catch(gh){throw new Error("Failed to unshare the record: ".concat(gh))}};o()}})(o),children:(0,Ap.jsx)(nx,{})})})]},i)}))})]})})]})})]})})},wk=An((()=>({formControl:{minWidth:200},selectEmpty:{}}))),Ek=e=>{let{value:t="",name:n,options:r,optionLabels:i,optionTooltips:o=[],onChange:a,disabled:s,label:l,fullWidth:c=!0}=e;const u=wk();return(0,Ap.jsx)(gC,{fullWidth:c,className:u.formControl,disabled:s,children:(0,Ap.jsxs)(wo,{className:u.selectEmpty,name:n,fullWidth:c,value:t,disabled:s,displayEmpty:!0,onChange:a,children:[(0,Ap.jsx)(Oo,{value:"",children:(0,Ap.jsx)(_C,{id:"demo-simple-select-label",children:(0,Ap.jsx)(Or,{children:l||(0,Ap.jsx)(Lp,{en:"Choose",fr:"Choisir"})})})}),r.map(((e,t)=>(0,Ap.jsx)(Oo,{value:e,children:(0,Ap.jsx)(ms,{enterDelay:1,title:o[t]?o[t]:"",children:(0,Ap.jsx)("div",{style:{width:"100%"},children:i[t]})})},e)))]})})},{DataCollectionSampling:Tk,...Ck}=ik,kk=e=>{let{disabled:t,record:n,updateRecord:r,handleUpdateRecord:o,userID:a}=e;const{language:s,region:l}=mn(),c=Cn[l],[u,d]=(0,i.useState)(!1),p=(0,i.useRef)(!1);return(0,i.useEffect)((()=>(p.current=!0,n.language||o("language")({target:{value:s}}),n.metadataScope||o("metadataScope")({target:{value:"Dataset"}}),()=>{p.current=!1})),[s]),(0,i.useEffect)((()=>{const e=!n.recordID;(a===n.userID||e)&&d(!0)}),[a,n.userID,n.recordID]),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(Xn,{style:ZC,children:[t&&(0,Ap.jsx)(KC,{style:{paddingBottom:"15px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:(0,Ap.jsx)("b",{children:"This form is locked because it has already been published, or you do not have access to edit it."})}),(0,Ap.jsx)(Ip,{children:(0,Ap.jsx)("b",{children:"Ce formulaire est verrouill\xe9 car il a d\xe9j\xe0 \xe9t\xe9 publi\xe9 ou vous n'avez pas acc\xe8s pour le modifier."})})]})}),(0,Ap.jsxs)(Or,{variant:"body1",children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["Welcome to the ",c.title.en," Metadata Entry Tool, the first step in making your data discoverable and accessible through CIOOS. This information will be used to create a metadata record for your dataset that will allow it to be searchable through the"," ",c.catalogueTitle.en,". Please fill out each field with as much detail as possible. The metadata record will help describe this dataset for others to determine if it is relevant for their work and ensure it is interoperable with other databases and systems.",(0,Ap.jsx)("br",{}),(0,Ap.jsx)("br",{})," Questions regarding the form can be directed to"," "]}),(0,Ap.jsxs)(Ip,{children:["Bienvenue dans l\u2019outil de saisie de m\xe9tadonn\xe9es"," ",c.titleFrPossessive," qui constitue la premi\xe8re \xe9tape du processus de partage de vos donn\xe9es. Ces renseignements serviront \xe0 cr\xe9er le profil de m\xe9tadonn\xe9es de votre jeu de donn\xe9es. Ces m\xe9tadonn\xe9es facilitent l\u2019accessibilit\xe9 et la d\xe9couvrabilit\xe9 de vos donn\xe9es via le Catalogue de donn\xe9es ",c.catalogueTitle.fr,". Elles rendent \xe9galement vos jeux de donn\xe9es interop\xe9rables avec d\u2019autres syst\xe8mes de diffusion. Aussi, nous vous incitons fortement \xe0 remplir les champs requis de la fa\xe7on la plus exhaustive possible.",(0,Ap.jsx)("br",{}),(0,Ap.jsx)("br",{})," Les questions concernant le formulaire peuvent \xeatre adress\xe9es \xe0"," "]})]}),(0,Ap.jsx)("a",{href:"mailto:".concat(c.email),children:c.email}),"."]}),(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You can save the form once you have filled out a title."}),(0,Ap.jsx)(Ip,{children:"D\xe8s que vous avez saisi un titre, vous pouvez enregistrer le formulaire."})]})}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsxs)(Pp,{children:["All fields marked with a ",(0,Ap.jsx)(ek,{})," are mandatory."]}),(0,Ap.jsxs)(Ip,{children:["Tous les champs marqu\xe9s d'une \xe9toile ",(0,Ap.jsx)(ek,{})," sont obligatoires."]})]}),(0,Ap.jsx)("li",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["The form can be saved and completed over time by clicking the"," ",(0,Ap.jsx)(lC,{}),' icon in the bottom right corner. This icon will be greyed out until you have filled in the dataset title in the "Identification" section.']}),(0,Ap.jsxs)(Ip,{children:["Le formulaire peut \xeatre sauvegard\xe9 et compl\xe9t\xe9 ult\xe9rieurement en cliquant sur le bouton ",(0,Ap.jsx)(lC,{})," dans le coin inf\xe9rieur droit. Cet ic\xf4ne sera activ\xe9 par l\u2019ajout du titre du jeu de donn\xe9es dans la section \xab Identification des donn\xe9es \xbb."]})]})}),(0,Ap.jsx)("li",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Some fields can have text in both French and English, though this is only required for the title and the abstract. There is a 'Translate' button that will automatically generate text in the other language. This translation is more accurate when there is more text to translate."}),(0,Ap.jsx)(Ip,{children:"Certains champs peuvent avoir du texte \xe0 la fois en fran\xe7ais et en anglais, toutefois seules les traductions du titre et du r\xe9sum\xe9 sont r\xe9ellement requises. Le bouton \xab Traduire\xbb g\xe9n\xe8re automatiquement du texte dans l'autre langue. Veuillez noter que plus il y a de texte \xe0 traduire et plus la traduction sera pr\xe9cise."})]})})]})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the dataset title? Required in English and French."}),(0,Ap.jsx)(Ip,{children:"Quel est le titre du jeu de donn\xe9es? Obligatoire dans les deux langues."})]}),(0,Ap.jsx)(ek,{passes:Mx(n,"title")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:[(0,Ap.jsx)("p",{children:"Recommended title includes: What, Where, When."}),(0,Ap.jsxs)("p",{children:["Title should be precise enough so that the user will not have to open the dataset to understand its contents. Title should not have acronyms, special characters, or use specialized nomenclature. This will appear as the title that is shown for this dataset in the ",c.catalogueTitle.en,"."]})]}),(0,Ap.jsxs)(Ip,{children:[(0,Ap.jsx)("p",{children:"Le titre recommand\xe9 comprend : Quoi, O\xf9, Quand."}),(0,Ap.jsxs)("p",{children:["Le titre doit \xeatre suffisamment pr\xe9cis pour que l'utilisateur n'ait pas \xe0 ouvrir le ensemble de donn\xe9es pour comprendre son contenu. Le titre ne doit pas avoir des acronymes, des caract\xe8res sp\xe9ciaux ou utiliser une nomenclature sp\xe9cialis\xe9e. Ceci appara\xeetra comme titre de votre jeu de donn\xe9es dans le"," ",c.catalogueTitle.fr,"."]})]})]})})]}),(0,Ap.jsx)(qC,{name:"title",value:n.title,onChange:o("title"),disabled:t})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the resource type?"}),(0,Ap.jsx)(Ip,{children:"Quel est le type de ressource?"})]}),(0,Ap.jsx)(ek,{passes:Mx(n,"metadataScope")})]}),(0,Ap.jsx)(Ek,{value:n.metadataScope||"",onChange:e=>{var t;const n={target:{value:null===(t=ik[e.target.value])||void 0===t?void 0:t.isoValue}};o("metadataScopeIso")(n),o("metadataScope")(e)},options:Object.keys(Ck),optionLabels:Object.values(Ck).map((e=>{let{title:t}=e;return t[s]})),optionTooltips:Object.values(Ck).map((e=>{let{text:t}=e;return t[s]})),disabled:t,fullWidth:!1,style:{width:"200px"}})]}),(0,Ap.jsx)(Xn,{style:ZC,children:(0,Ap.jsxs)(gC,{children:[(0,Ap.jsxs)(KC,{style:{paddingBottom:"15px"},children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the theme of this record?"}),(0,Ap.jsx)(Ip,{children:"Quel est le th\xe8me de ce disque?"})]}),(0,Ap.jsx)(ek,{passes:n.resourceType})]}),(0,Ap.jsx)(sk,{"aria-labelledby":"resource-type",name:"resource-type",value:n.resourceType||[],labelSize:6,defaultValue:"oceanographic",onChange:e=>{return t=e,Array.isArray(t)&&1===t.length&&t.includes("other")&&Array.isArray(n.eov)&&(n.eov.includes("other")?r("eov")(["other"]):r("eov")([...n.eov,"other"])),void r("resourceType")(t);var t},options:["oceanographic","biological","other"],optionLabels:["Oceanographic","Biological","Other"],disabled:t})]})}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the primary language of the dataset?"}),(0,Ap.jsx)(Ip,{children:"Quelle est la langue principale du jeu de donn\xe9es?"})]}),(0,Ap.jsx)(ek,{passes:Mx(n,"language")})]}),(0,Ap.jsx)(Ek,{value:n.language,onChange:o("language"),options:["en","fr"],optionLabels:["English","Fran\xe7ais"],disabled:t})]}),(0,Ap.jsx)(XC,{record:n,handleUpdateDatasetIdentifier:o("datasetIdentifier"),handleUpdateDoiCreationStatus:o("doiCreationStatus"),disabled:t}),u&&(0,Ap.jsx)(xk,{region:l,updateRecord:r,record:n})]})};var Sk=n(6968);const Ok=(0,In.c)(i.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var Ak=n(7456),jk=n(8792),Pk=n(3764),Ik=n(2664);var Lk=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.collapsedHeight,s=e.collapsedSize,l=void 0===s?"0px":s,c=e.component,u=void 0===c?"div":c,d=e.disableStrictModeCompat,p=void 0!==d&&d,h=e.in,f=e.onEnter,m=e.onEntered,g=e.onEntering,v=e.onExit,b=e.onExited,y=e.onExiting,_=e.style,x=e.timeout,w=void 0===x?Ao.rV.standard:x,E=e.TransitionComponent,T=void 0===E?di:E,C=(0,Yn.c)(e,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),k=Pn(),S=i.useRef(),O=i.useRef(null),A=i.useRef(),j="number"===typeof(a||l)?"".concat(a||l,"px"):a||l;i.useEffect((function(){return function(){clearTimeout(S.current)}}),[]);var P=k.unstable_strictMode&&!p,I=i.useRef(null),L=(0,ar.c)(t,P?I:void 0),R=function(e){return function(t,n){if(e){var r=P?[I.current,t]:[t,n],i=(0,jr.c)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},N=R((function(e,t){e.style.height=j,f&&f(e,t)})),D=R((function(e,t){var n=O.current?O.current.clientHeight:0,r=hi({style:_,timeout:w},{mode:"enter"}).duration;if("auto"===w){var i=k.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(i,"ms"),A.current=i}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),g&&g(e,t)})),M=R((function(e,t){e.style.height="auto",m&&m(e,t)})),B=R((function(e){var t=O.current?O.current.clientHeight:0;e.style.height="".concat(t,"px"),v&&v(e)})),Q=R(b),U=R((function(e){var t=O.current?O.current.clientHeight:0,n=hi({style:_,timeout:w},{mode:"exit"}).duration;if("auto"===w){var r=k.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),A.current=r}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style.height=j,y&&y(e)}));return i.createElement(T,(0,at.c)({in:h,onEnter:N,onEntered:M,onEntering:D,onExit:B,onExited:Q,onExiting:U,addEndListener:function(e,t){var n=P?e:t;"auto"===w&&(S.current=setTimeout(n,A.current||0))},nodeRef:P?I:void 0,timeout:"auto"===w?null:w},C),(function(e,t){return i.createElement(u,(0,at.c)({className:(0,kn.c)(r.root,r.container,o,{entered:r.entered,exited:!h&&"0px"===j&&r.hidden}[e]),style:(0,at.c)({minHeight:j},_),ref:L},t),i.createElement("div",{className:r.wrapper,ref:O},i.createElement("div",{className:r.wrapperInner},n)))}))}));Lk.muiSupportAuto=!0;const Rk=(0,Gn.c)((function(e){return{root:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(Lk);const Nk=i.createContext({});var Dk=i.forwardRef((function(e,t){var n,r=e.children,o=e.classes,a=e.className,s=e.defaultExpanded,l=void 0!==s&&s,c=e.disabled,u=void 0!==c&&c,d=e.expanded,p=e.onChange,h=e.square,f=void 0!==h&&h,m=e.TransitionComponent,g=void 0===m?Rk:m,v=e.TransitionProps,b=(0,Yn.c)(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),y=(0,Ui.c)({controlled:d,default:l,name:"Accordion",state:"expanded"}),_=(0,jr.c)(y,2),x=_[0],w=_[1],E=i.useCallback((function(e){w(!x),p&&p(e,!x)}),[x,p,w]),T=i.Children.toArray(r),C=(n=T,(0,Ak.c)(n)||(0,jk.c)(n)||(0,Pk.c)(n)||(0,Ik.c)()),k=C[0],S=C.slice(1),O=i.useMemo((function(){return{expanded:x,disabled:u,toggle:E}}),[x,u,E]);return i.createElement(Xn,(0,at.c)({className:(0,kn.c)(o.root,a,x&&o.expanded,u&&o.disabled,!f&&o.rounded),ref:t,square:f},b),i.createElement(Nk.Provider,{value:O},k),i.createElement(g,(0,at.c)({in:x,timeout:"auto"},v),i.createElement("div",{"aria-labelledby":k.props.id,id:k.props["aria-controls"],role:"region"},S)))}));const Mk=(0,Gn.c)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiAccordion"})(Dk);var Bk=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.expandIcon,s=e.focusVisibleClassName,l=e.IconButtonProps,c=void 0===l?{}:l,u=e.onClick,d=(0,Yn.c)(e,["children","classes","className","expandIcon","focusVisibleClassName","IconButtonProps","onClick"]),p=i.useContext(Nk),h=p.disabled,f=void 0!==h&&h,m=p.expanded,g=p.toggle;return i.createElement(Er,(0,at.c)({focusRipple:!1,disableRipple:!0,disabled:f,component:"div","aria-expanded":m,className:(0,kn.c)(r.root,o,f&&r.disabled,m&&r.expanded),focusVisibleClassName:(0,kn.c)(r.focusVisible,r.focused,s),onClick:function(e){g&&g(e),u&&u(e)},ref:t},d),i.createElement("div",{className:(0,kn.c)(r.content,m&&r.expanded)},n),a&&i.createElement(Cr,(0,at.c)({className:(0,kn.c)(r.expandIcon,m&&r.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},c),a))}));const Qk=(0,Gn.c)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],t),padding:e.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused, &$focusVisible":{backgroundColor:e.palette.action.focus},"&$disabled":{opacity:e.palette.action.disabledOpacity}},expanded:{},focused:{},focusVisible:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiAccordionSummary"})(Bk);var Uk=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=(0,Yn.c)(e,["classes","className"]);return i.createElement("div",(0,at.c)({className:(0,kn.c)(n.root,r),ref:t},o))}));const Fk=(0,Gn.c)((function(e){return{root:{display:"flex",padding:e.spacing(1,2,2)}}}),{name:"MuiAccordionDetails"})(Uk),zk=(0,In.c)(i.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),qk=e=>{var t;let{value:n,disabled:r,updateContact:o}=e;const[a,s]=(0,i.useState)(!1),{language:l}=mn(),c=Object.entries(tk).map((e=>{let[t,n]=e;return{key:t,...n}})),u=c.filter((e=>e.showProminently)),d=c.filter((e=>!e.showProminently)),p=d.map((e=>e.key)),h=(n.role||[]).filter((e=>p.includes(e))).length>0;return(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Appear in citation?"}),(0,Ap.jsx)(Ip,{children:"Apparaissent dans la citation?"})]}),(0,Ap.jsx)(QC,{name:"inCitation",checked:n.inCitation||!1,onChange:e=>{const{checked:t}=e.target;o("inCitation")(t)}})]}),(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the role of this contact?"}),(0,Ap.jsx)(Ip,{children:"Quel est son r\xf4le?"})]}),(0,Ap.jsx)(ek,{passes:null===(t=n.role)||void 0===t?void 0:t.length}),(0,Ap.jsxs)($C,{children:[" ",(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Multiple roles can be selected for each contact. Expand the list below for additional role."}),(0,Ap.jsx)(Ip,{children:"Plusieurs r\xf4les peuvent \xeatre s\xe9lectionn\xe9s par personne. Si vous avez besoin de r\xf4les plus sp\xe9cifiques, vous pouvez \xe9tendre la liste. D\xe9veloppez la liste ci-dessous pour un r\xf4le suppl\xe9mentaire."})]})]})]}),(0,Ap.jsx)(sk,{value:n.role||[],onChange:o("role"),options:u.map((e=>e.key)),optionLabels:u.map((e=>e.title[l]+(e.required?"*":""))),disabled:r,optionTooltips:u.map((e=>e.text[l]))}),(0,Ap.jsxs)(Mk,{onChange:()=>s(!a),expanded:a||h,children:[(0,Ap.jsx)(Qk,{expandIcon:(0,Ap.jsx)(ms,{title:"Show/Hide more options",children:(0,Ap.jsx)(zk,{})}),"aria-controls":"panel1a-content",id:"panel1a-header",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Show/Hide more role options"}),(0,Ap.jsx)(Ip,{children:"Afficher/masquer les r\xf4les"})]})}),(0,Ap.jsx)(Fk,{children:(0,Ap.jsx)(sk,{value:n.role||[],onChange:o("role"),options:d.map((e=>e.key)),optionLabels:d.map((e=>e.title[l])),disabled:r,optionTooltips:d.map((e=>e.text[l]))})})]})]})};const Hk=e=>{var t,n;let{value:r,showRolePicker:o,disabled:a,handleClear:s,updateContact:l,updateContactEvent:c,updateContactRor:u,updateContactOrcid:d}=e;const p=(0,i.useRef)(!1),h=Sx(r.orgEmail),f=Sx(r.indEmail),m=Ox(r.orgURL),g=!(null!==(t=r.givenNames)&&void 0!==t&&t.includes(",")),v=!(null!==(n=r.lastName)&&void 0!==n&&n.includes(",")),[b,y]=(0,i.useState)(r.orgRor),[_,x]=(0,i.useState)(""),[w]=VC(b,500),[E,T]=(0,i.useState)([]),[C,k]=(0,i.useState)(!1);return r={...j_(),...r},(0,i.useEffect)((()=>{var e;return p.current=!0,w&&((e=w).startsWith("http")&&!e.includes("ror.org")?p.current&&k(!1):fetch('https://api.ror.org/organizations?query="'.concat(e,'"')).then((e=>e.json())).then((e=>{p.current&&T(e.items),1===e.number_of_results&&u(e.items[0])})).then((()=>{p.current&&k(!1)}))),()=>{p.current=!1}}),[w]),(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{variant:"h6",children:iT(r)})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[o&&(0,Ap.jsx)(qk,{value:r,updateContact:l,disabled:a}),(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:1,style:{marginTop:"10px"},children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(KC,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Provide any information about the organization"}),(0,Ap.jsx)(Ip,{children:"Identification de l'organisation"})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{marginleft:"10px",height:"33px"},children:C?(0,Ap.jsx)(r_,{size:20}):(0,Ap.jsx)("div",{style:{height:"33px"}})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{marginleft:"10px"},children:(0,Ap.jsx)(_k,{inputValue:b,onInputChange:(e,t)=>{y(t),k(""!==t)},disabled:a,onChange:(e,t)=>{null!==t&&fetch("https://api.ror.org/organizations/".concat(t.id)).then((e=>e.json())).then((e=>{e.errors||u(e)})).then((()=>k(!1))).then((()=>y("")))},freeSolo:!0,filterOptions:e=>e,getOptionLabel:e=>e.name,options:E,fullWidth:!0,renderInput:e=>(0,Ap.jsx)(CC,{...e,label:(0,Ap.jsx)(Lp,{en:"Type to search Research Organization Registry (ROR)",fr:"Tapez pour rechercher le registre des organismes de recherche (ROR)\n"})})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{marginleft:"10px"},children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{active:!0,en:"ROR URL",fr:"URL ROR"}),InputLabelProps:{shrink:""!==r.orgRor},value:r.orgRor,disabled:!0,fullWidth:!0,InputProps:{endAdornment:r.orgRor&&(0,Ap.jsx)(SC,{position:"end",children:(0,Ap.jsx)(Cr,{onClick:()=>{s("orgRor")},children:(0,Ap.jsx)(Ok,{})})})}})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{marginleft:"10px"},children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Organization name",fr:"Nom de l'organisation"}),value:r.orgName,onChange:c("orgName"),disabled:""!==r.orgRor||a,fullWidth:!0})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{helperText:!m&&(0,Ap.jsx)(Lp,{en:"Invalid URL",fr:"URL non valide"}),error:!m,label:(0,Ap.jsx)(Lp,{en:"URL",fr:"URL"}),value:r.orgURL,onChange:c("orgURL"),disabled:""!==r.orgRor||a,fullWidth:!0})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Address",fr:"Adresse"}),value:r.orgAdress,onChange:c("orgAdress"),disabled:a,fullWidth:!0})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"City",fr:"Ville"}),value:r.orgCity,onChange:c("orgCity"),disabled:""!==r.orgRor||a,fullWidth:!0})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Country",fr:"Pays"}),value:r.orgCountry,onChange:c("orgCountry"),disabled:""!==r.orgRor||a,fullWidth:!0})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(CC,{helperText:!h&&(0,Ap.jsx)(Lp,{en:"Invalid email",fr:"E-mail non valide"}),error:!h,label:(0,Ap.jsx)(Lp,{en:"Email",fr:"Courriel"}),value:r.orgEmail,onChange:c("orgEmail"),fullWidth:!0,disabled:a})," "]})]})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Provide any information about the individual"}),(0,Ap.jsx)(Ip,{children:"Identification de l'individu"})]})}),(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(c_,{href:"https://orcid.org/orcid-search/search",target:"_blank",rel:"noopener noreferrer",style:{marginTop:"10px",marginBottom:"10px"},children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"ORCID search "}),(0,Ap.jsx)(Ip,{children:"Rechercher ORCID "})]}),(0,Ap.jsx)(lx,{style:{verticalAlign:"middle"}})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{marginleft:"10px"},children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Paste ORCID identifier here to populate personal data",fr:"Collez l'identifiant ORCID ici pour remplir les donn\xe9es personnelles"}),value:_,onChange:e=>{x(e.target.value);const t=e.target.value.match(/\w{4}-\w{4}-\w{4}-\w{4}/g);t&&fetch("https://pub.orcid.org/v3.0/".concat(t,"/record"),{headers:{accept:"application/json"}}).then((e=>e.json())).then((e=>d(e))).then((()=>{setTimeout((()=>x("")),100)}))},disabled:a,fullWidth:!0})}),(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:r.givenNames&&r.lastName&&r.inCitation&&(0,Ap.jsxs)("div",{style:{marginBottom:"10px"},children:["This name will appear in the citation as:"," ",(0,Ap.jsx)("b",{children:(S=r.givenNames,O=r.lastName,S&&O?"".concat(O,", ").concat(function(e){return e.split(" ").filter((e=>e)).map((e=>"".concat(e[0].toUpperCase(),". "))).join(" ")}(S)):"")})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"ORCID URL",fr:"URL ORCID"}),InputLabelProps:{shrink:""!==r.indOrcid},value:r.indOrcid,InputProps:{endAdornment:r.indOrcid&&(0,Ap.jsx)(SC,{position:"end",children:(0,Ap.jsx)(Cr,{onClick:()=>{s("indOrcid")},children:(0,Ap.jsx)(Ok,{})})})},disabled:!0,fullWidth:!0})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Given name(s)",fr:"Pr\xe9nom"}),value:r.givenNames,helperText:!g&&(0,Ap.jsx)(Lp,{en:"No commas allowed",fr:"Aucune virgule n'est autoris\xe9e"}),error:!g,onChange:c("givenNames"),disabled:a,fullWidth:!0})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Last name",fr:"nom de famille"}),value:r.lastName,helperText:!v&&(0,Ap.jsx)(Lp,{en:"No commas allowed",fr:"Aucune virgule n'est autoris\xe9e"}),error:!v,onChange:c("lastName"),disabled:a,fullWidth:!0})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Position",fr:"Poste occup\xe9"}),value:r.indPosition,onChange:c("indPosition"),disabled:a,fullWidth:!0})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{helperText:!f&&(0,Ap.jsx)(Lp,{en:"Invalid email",fr:"E-mail non valide"}),error:!f,label:(0,Ap.jsx)(Lp,{en:"Email",fr:"Courriel"}),value:r.indEmail,onChange:c("indEmail"),disabled:a,fullWidth:!0})})]})]})]});var S,O};var Wk=n(1480);const Gk=(0,In.c)(i.createElement("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}),"DragHandle");var Vk=n(6248),$k=n.n(Vk);const Kk=e=>{let{items:t,updateItems:n,activeItem:r,setActiveItem:o,disabled:a,savedUserItems:s,saveItem:l,getBlankItem:c,fieldsNotSavedInFirebase:u,addNewItemText:d,addSavedItemLabel:p,leftListHeader:h,leftListEmptyHeader:f,itemTitle:m,itemValidator:g,uidFields:v}=e;const[b,y]=(0,i.useState)(t);x_(b,t)||y(t);const _=Object.values(s||{});return(0,Ap.jsx)(Xn,{style:ZC,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",justifyContent:"flex-start",children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{margin:"10px"},children:(0,Ap.jsx)(Or,{children:t.length?h||(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Items in this record:"}),(0,Ap.jsx)(Ip,{children:"Articles dans cet enregistrement:"})]}):f||(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"There are no items in this record."}),(0,Ap.jsx)(Ip,{children:"Il n'y a aucun articles dans cet enregistrement."})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(ki,{children:(0,Ap.jsx)(Wk.Container,{dragHandleSelector:".drag-handle",lockAxis:"y",onDrop:e=>{let{removedIndex:t,addedIndex:i}=e;t===r?o(i):i<=r&&t>r&&o(r+1);const a=$k()(b,t,i);n(a)},children:t.map(((e,i)=>{var s;return(0,Ap.jsx)(Wk.Draggable,{children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>o(i),children:[(0,Ap.jsx)(Yo,{primary:(0,Ap.jsx)(Or,{style:{fontWeight:r===i?"bold":"",width:"80%"},children:m(e)||(0,Ap.jsx)(Lp,{en:"New item",fr:"Nouveau article"})})}),(0,Ap.jsxs)(X_,{children:[(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Duplicate entry",fr:"Duplicate entr\xe9e"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>function(e){const r=__(t[e]),i=(v||["id"]).find((e=>r[e]));r[i]+=" (Copy)",n(t.concat(r))}(i),edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(ox,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Remove from this record",fr:"Supprimer de cet enregistrement"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>{return e=i,n(t.filter(((t,n)=>n!==e))),void(t.length&&o(t.length-2));var e},edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(nx,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Add to saved items",fr:"Ajouter aux articles enregistr\xe9s"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>{const e=__(t[i]);u.forEach((t=>{delete e[t]})),e.contactID=l(e),y(t)},disabled:g&&g(e)||0===(null===(s=e.id)||void 0===s?void 0:s.length),edge:"end","aria-label":"clone",children:(0,Ap.jsx)(lC,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Drag to reorder",fr:"Faites glisser pour r\xe9organiser"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{className:"drag-handle",edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(Gk,{})})})})]})]},i)},i)}))})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{margin:"10px"},children:(0,Ap.jsx)(c_,{disabled:a,onClick:()=>(n(t.concat(c())),void o(t.length)),fullWidth:!0,style:{height:"56px",justifyContent:"emptyContact"},children:(0,Ap.jsx)(Or,{children:d||(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add new item"}),(0,Ap.jsx)(Ip,{children:"Ajouter un item"})]})})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{margin:"10px"},children:(0,Ap.jsx)(Ek,{value:"",labelId:"add-existing",onChange:e=>{const r=e.target.value,{role:i,...a}=_[r];n(t.concat(__({...c(),...a}))),o(t.length)},optionLabels:_.map((e=>m(e))),options:_.map(((e,t)=>t)),disabled:!_.length||a,label:p||(0,Ap.jsx)(Lp,{en:"ADD SAVED ITEM",fr:"AJOUTER UN \xc9L\xc9MENT ENREGISTR\xc9"})})})]})})};Kk.defaultProps={fieldsNotSavedInFirebase:[]};const Yk=Kk,Zk=e=>{var t,n;let{disabled:r,record:o,userContacts:a,updateRecord:s,saveToContacts:l}=e;const{language:c,region:u}=mn(),{contacts:d=[]}=o,p=s("contacts"),[h,f]=(0,i.useState)(0);function m(e){return t=>{const n=[...d];n[h][e]=t,p(n)}}const g=(null===(t=o.title)||void 0===t?void 0:t[c])&&d.length&&o.created&&(null===(n=o.contacts)||void 0===n?void 0:n.some((e=>e.inCitation))),v=d[h];return(0,Ap.jsxs)(e_,{container:!0,spacing:3,children:[(0,Ap.jsx)(Xn,{style:ZC,children:(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["Please enter at least one Metadata Custodian ",(0,Ap.jsx)("b",{children:"and"})," one Data Owner for this dataset that can work with"," ",Cn[u].title[c]," Staff to finalize this Metadata Record. You also must select at least one contact to appear in the citation. One contact can occupy multiple roles."]}),(0,Ap.jsxs)(Ip,{children:["Veuillez saisir au moins un D\xe9positaire des m\xe9tadonn\xe9es ET un propri\xe9taire des donn\xe9es de ce jeu. Ces personnes pourraient \xeatre appel\xe9es \xe0 collaborer avec le personnel",Cn[u].titleFrPossessive," pour finaliser la saisie des informations. Vous devez \xe9galement s\xe9lectionner au moins un contact pour appara\xeetre dans la citation. Un contact peut occuper plusieurs r\xf4les."]})]}),(0,Ap.jsx)(ek,{passes:Mx(o,"contacts")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"It is important to include all individuals from the chain of attribution to ensure all involved parties are credited appropriately for their role in creating this dataset. Saved contacts can be selected from the list below."}),(0,Ap.jsx)(Ip,{children:"Il est important d'inclure toutes les personnes ayant travaill\xe9 sur le jeu de donn\xe9es afin de s'assurer que toutes les parties concern\xe9es soient cr\xe9dit\xe9es de fa\xe7on appropri\xe9e pour leur r\xf4le dans la cr\xe9ation de ce jeu de donn\xe9es. Les contacts sauvegard\xe9s peuvent \xeatre s\xe9lectionn\xe9s dans la liste ci-dessous."})]})})]})})}),g&&(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsx)(KC,{children:(0,Ap.jsx)("div",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["This is how your record citation will look in the catalogue. To change the citation order, drag the"," ",(0,Ap.jsx)(Sk.c,{style:{verticalAlign:"middle"}})," symbol."]}),(0,Ap.jsxs)(Ip,{children:["Voici \xe0 quoi ressemblera votre citation dans le catalogue. Seuls les contacts dont la case \xabAuteur cit\xe9\xbb est coch\xe9e apparaissent. Seuls les r\xf4les \xe9toil\xe9s appara\xeetront dans la citation. Changer la commande, faites glisser le"," ",(0,Ap.jsx)(Sk.c,{style:{verticalAlign:"middle"}}),"."]})]})})}),(0,Ap.jsx)($C,{children:(0,Ap.jsx)(fx,{language:c,record:o})})]}),(0,Ap.jsxs)(e_,{container:!0,direction:"row",style:{marginLeft:"5px"},children:[(0,Ap.jsx)(e_,{item:!0,xs:5,children:(0,Ap.jsx)(Yk,{items:d,updateItems:p,setActiveItem:f,activeItem:h,disabled:r,savedUserItems:a,saveItem:l,itemTitle:iT,getBlankItem:j_,addSavedItemLabel:(0,Ap.jsx)(Lp,{en:"ADD SAVED CONTACT",fr:"AJOUTER UN CONTACT ENREGISTR\xc9"}),uidFields:["lastName","orgName"],itemValidator:e=>{var t,n,r;return!(null!==(t=e.orgName)&&void 0!==t&&t.length||null!==(n=e.givenNames)&&void 0!==n&&n.length||null!==(r=e.lastName)&&void 0!==r&&r.length)}})}),v&&(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(e_,{container:!0,direction:"column",children:(0,Ap.jsx)(Xn,{style:ZC,children:(0,Ap.jsx)(e_,{container:!0,direction:"column",spacing:3,children:(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Hk,{showRolePicker:!0,value:v,handleClear:e=>m(e)(""),updateContactEvent:e=>function(e){return t=>{const n=[...d];n[h][e]=t.target.value,p(n)}}(e),updateContact:e=>m(e),updateContactRor:e=>function(e){const t=[...d];t[h].orgRor=e.id,t[h].orgName=e.name,t[h].orgURL=e.links.find((()=>!0))||"",t[h].orgCity=e.addresses.find((()=>!0)).city||"",t[h].orgCountry=e.country.country_name,p(t)}(e),updateContactOrcid:e=>function(e){const{name:t,emails:n}=e.person,r=n.email.length>0?n.email[0].email:"",i=t["family-name"]?t["family-name"].value:"",o=[...d];o[h].indOrcid=e["orcid-identifier"].uri,o[h].givenNames=t["given-names"].value,o[h].indEmail=r,o[h].lastName=i,p(o)}(e),disabled:r})})})})})})]})]})};var Jk=n(8024),Xk=n.n(Jk);const eS=e=>{var t,n;let{updateResources:r,resources:o,disabled:a}=e;const s=(0,i.useRef)(!1),{checkURLActive:l}=(0,i.useContext)(Fb),{language:c}=mn(),[u,d]=(0,i.useState)({}),p={url:"",name:"",description:{en:"",fr:""}},[h,f]=(0,i.useState)(0),[m,g]=(0,i.useState)(o),v=(0,i.useRef)({});(0,i.useEffect)((()=>(s.current=!0,o.forEach(((e,t)=>{e.url&&Ox(e.url)&&(v.current[t]||(v.current[t]=Xk()((async e=>{const t=await l(e.url);s.current&&d((n=>({...n,[e.url]:t.data})))}),500)),v.current[t](e))})),()=>{s.current=!1})),[o,l]),x_(m,o)||g(o);const b=(0,Ap.jsx)(Lp,{en:"Name",fr:"Titre"}),y=(0,Ap.jsx)(Lp,{en:"Description",fr:"Description"}),_=o.length>0&&o[h],x=_&&(!_.url||Ox(_.url));function w(e){return t=>{const n=[...o];n[h][e]=t.target.value,r(n)}}return(0,Ap.jsx)(Xn,{variant:"outlined",style:{padding:10},children:(0,Ap.jsxs)(e_,{container:!0,direction:"row",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:3,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[o&&o.length>0&&(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(ki,{children:(0,Ap.jsx)(Wk.Container,{dragHandleSelector:".drag-handle",lockAxis:"y",onDrop:e=>{let{removedIndex:t,addedIndex:n}=e;t===h?f(n):n<=h&&t>h&&f(h+1);const i=$k()(m,t,n);r(i)},children:o.map(((e,t)=>{var n,i;return(0,Ap.jsx)(Wk.Draggable,{children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>f(t),children:[(0,Ap.jsx)(Yo,{primary:(0,Ap.jsxs)(Or,{style:{fontWeight:h===t?"bold":"",marginRight:"72px"},children:[t+1,". ",(null!==(n=e.name[c])&&void 0!==n?n:"").length<=50?null!==(i=e.name[c])&&void 0!==i?i:"":"".concat(e.name[c].substring(0,50),"...")]})}),(0,Ap.jsxs)(X_,{children:[(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Duplicate contact",fr:"Duplicate contact"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>function(e){var t,n;const i=__(o[e]);null!==(t=i.name)&&void 0!==t&&t.en&&(i.name.en+=" (Copy)"),null!==(n=i.name)&&void 0!==n&&n.fr&&(i.name.fr+=" (Copie)"),r(o.concat(i))}(t),edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(ox,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Remove from this record",fr:"Supprimer de cet enregistrement"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>function(e){r(o.filter(((t,n)=>n!==e))),o.length&&f(o.length-2)}(t),edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(nx,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Drag to reorder",fr:"Faites glisser pour r\xe9organiser"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{className:"drag-handle",edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(Gk,{})})})})]})]},t)},t)}))})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{disabled:a,startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>(r(o.concat(__(p))),void f(o.length)),style:{height:"56px",marginLeft:"10px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add resource"}),(0,Ap.jsx)(Ip,{children:"Ajouter une ressource"})]})})})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:_&&(0,Ap.jsx)(Xn,{variant:"outlined",style:{padding:10},children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:3,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter a name for the resource"}),(0,Ap.jsx)(Ip,{children:"Entrez un titre pour la ressource"})]}),(0,Ap.jsx)(ek,{passes:(null===(t=_.name)||void 0===t?void 0:t.en)||(null===(n=_.name)||void 0===n?void 0:n.fr)})]}),(0,Ap.jsx)(qC,{name:"name",label:b,value:_.name,onChange:w("name"),fullWidth:!0,disabled:a})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter the URL for the resource"}),(0,Ap.jsx)(Ip,{children:"Entrez l'URL de la ressource"})]}),(0,Ap.jsx)(ek,{passes:kx().isURL(_.url)}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:(0,Ap.jsx)("p",{children:"The link may be to a formal data resource on another repository or a link to a personal online drive (e.g. Google Drive)."})}),(0,Ap.jsx)(Ip,{children:(0,Ap.jsx)("p",{children:"Le lien peut \xeatre vers une ressource de donn\xe9es formelle sur un autre d\xe9p\xf4t de donn\xe9es ou un lien vers un disque personnel en ligne (par exemple Google Drive)."})})]})})]}),(0,Ap.jsx)(CC,{helperText:!x&&(0,Ap.jsx)(Lp,{en:"Invalid URL",fr:"URL non valide"})||_.url&&!1===u[_.url]&&(0,Ap.jsx)(Lp,{en:"URL is not active",fr:"L'URL n'est pas active"})||_.url&&!0===u[_.url]&&(0,Ap.jsx)(Lp,{en:"URL is active",fr:"L'URL est active"}),error:!x,label:"URL",value:_.url,onChange:w("url"),fullWidth:!0,disabled:a})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(KC,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter a description of the resource"}),(0,Ap.jsx)(Ip,{children:"Entrez une description de la ressource"})]})})," ",(0,Ap.jsx)(qC,{name:"description",label:y,value:_.description,onChange:w("description"),disabled:a})]})]})})})]})})},tS={IsCitedBy:"crossReference",Cites:"crossReference",IsSupplementTo:"crossReference",IsSupplementedBy:"crossReference",IsContinuedBy:"series",Continues:"series",IsDescribedBy:"crossReference",Describes:"crossReference",HasMetadata:"crossReference",IsMetadataFor:"crossReference",HasVersion:"revisionOf",IsVersionOf:"revisionOf",IsNewVersionOf:"revisionOf",PreviousVersionOf:"crossReference",IsPartOf:"largerWorkCitation",HasPart:"isComposedOf",IsPublishedIn:"largerWorkCitation",IsReferencedBy:"crossReference",References:"crossReference",IsDocumentedBy:"crossReference",Documents:"crossReference",IsCompiledBy:"dependency",Compiles:"dependency",IsVariantFormOf:"crossReference",IsOriginalFormOf:"crossReference",IsIdenticalTo:"crossReference",IsReviewedBy:"crossReference",Reviews:"crossReference",IsDerivedFrom:"dependency",IsSourceOf:"dependency",Requires:"dependency",IsRequiredBy:"dependency",IsObsoletedBy:"crossReference",Obsoletes:"revisionOf"},nS=e=>{var t,n;let{updateResources:r,resources:o,disabled:a}=e;const s={title:{en:"",fr:""},authority:"",code:"",association_type:"",association_type_iso:""},{language:l}=mn(),[c,u]=(0,i.useState)(0),[d,p]=(0,i.useState)(o),h=o.length>0&&o[c];x_(d,o)||p(o);function f(e){return t=>{const n=[...o];n[c][e]=t.target.value,r(n)}}function m(e){return!e||(e=>!e||kx().isURL(e))(e)}return(0,Ap.jsx)(Xn,{variant:"outlined",style:{padding:10},children:(0,Ap.jsxs)(e_,{container:!0,direction:"row",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:3,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[o&&o.length>0&&(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(ki,{children:(0,Ap.jsx)(Wk.Container,{dragHandleSelector:".drag-handle",lockAxis:"y",onDrop:e=>{let{removedIndex:t,addedIndex:n}=e;t===c?u(n):n<=c&&t>c&&u(c+1);const i=$k()(d,t,n);r(i)},children:o.map(((e,t)=>{var n,i;return(0,Ap.jsx)(Wk.Draggable,{children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>u(t),children:[(0,Ap.jsx)(Yo,{primary:(0,Ap.jsxs)(Or,{style:{fontWeight:c===t?"bold":"",marginRight:"72px"},children:[t+1,". ",(null!==(n=e.title[l])&&void 0!==n?n:"").length<=50?null!==(i=e.title[l])&&void 0!==i?i:"":"".concat(e.title[l].substring(0,50),"...")]})}),(0,Ap.jsxs)(X_,{children:[(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Duplicate contact",fr:"Duplicate contact"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>function(e){var t,n;const i=__(o[e]);null!==(t=i.title)&&void 0!==t&&t.en&&(i.title.en+=" (Copy)"),null!==(n=i.title)&&void 0!==n&&n.fr&&(i.title.fr+=" (Copie)"),r(o.concat(i))}(t),edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(ox,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Remove from this record",fr:"Supprimer de cet enregistrement"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>function(e){r(o.filter(((t,n)=>n!==e))),o.length&&u(o.length-2)}(t),edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(nx,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Drag to reorder",fr:"Faites glisser pour r\xe9organiser"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{className:"drag-handle",edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(Gk,{})})})})]})]},t)},t)}))})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{disabled:a,startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>(r(o.concat(__(s))),void u(o.length)),style:{height:"56px",marginLeft:"10px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add resource"}),(0,Ap.jsx)(Ip,{children:"Ajouter une ressource"})]})})})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:h&&(0,Ap.jsx)(Xn,{variant:"outlined",style:{padding:10},children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:3,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter the title of the related resource"}),(0,Ap.jsx)(Ip,{children:"Entrez le titre de l'\u0153uvre concern\xe9e"})]}),(0,Ap.jsx)(ek,{passes:(null===(t=h.title)||void 0===t?void 0:t.en)||(null===(n=h.title)||void 0===n?void 0:n.fr)})]})," ",(0,Ap.jsx)(qC,{name:"title",label:(0,Ap.jsx)(Lp,{en:"Title",fr:"Titre"}),value:h.title,onChange:f("title"),disabled:a,fullWidth:!0})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter the identifier for the related resource"}),(0,Ap.jsx)(Ip,{children:"Saisissez l'identifiant de l'\u0153uvre concern\xe9e"})]}),(0,Ap.jsx)(ek,{passes:h.code}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:(0,Ap.jsx)("p",{children:"The identifier may be to a resource, or metadata record on another repository or another record within CIOOS. A DOI or full URL are preferred."})}),(0,Ap.jsx)(Ip,{children:(0,Ap.jsx)("p",{children:"L'identifiant peut provenir d'une ressource ou d'un enregistrement de m\xe9tadonn\xe9es sur un autre r\xe9f\xe9rentiel ou un autre enregistrement dans CIOOS. Un DOI ou une URL compl\xe8te sont pr\xe9f\xe9r\xe9s."})})]})})]}),(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Identifier",fr:"identifiant"}),value:h.code,onChange:function(e){return t=>{const n=[...o];n[c][e]=t.target.value;const i=n[c].code;switch(!0){case m(n[c].code)&&/^http.?:\/\/doi\.org\//i.test(i):n[c].authority="DOI";break;case m(n[c].code):n[c].authority="URL";break;default:n[c].authority=""}r(n)}}("code"),fullWidth:!0,disabled:a})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter the identifier type"}),(0,Ap.jsx)(Ip,{children:"Entrez le type d'identifiant"})]}),(0,Ap.jsx)(ek,{passes:h.authority})]}),(0,Ap.jsx)(Ek,{value:h.authority,onChange:f("authority"),options:ak,optionLabels:ak,disabled:a,label:(0,Ap.jsx)(Lp,{en:"Identifier Type",fr:"Type d'identifiant"}),fullWidth:!1})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the relation type?"}),(0,Ap.jsx)(Ip,{children:"Quel est le type de relation?"})]}),(0,Ap.jsx)(ek,{passes:h.association_type}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:[(0,Ap.jsx)("p",{children:"Specify the relationship from (A) the primary resource; to (B) the related resource. For example:"}),(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:"Use 'Is New Version Of' to indicate the primary resource described in this metadata record (A) is a new version of (B) the related resource."}),(0,Ap.jsx)("li",{children:"Use 'Is Part of' to indicate the primary resource (A) is a subset of (B) the related larger resource."}),(0,Ap.jsx)("li",{children:"Use 'Has Part' to indicate the primary resource (A) is the larger work that includes (B) the related resource."}),(0,Ap.jsx)("li",{children:"Use 'Cites' to indicate that (A) cites (B)."}),(0,Ap.jsx)("li",{children:"Use 'Is Cited by to indicate that (B) cites (A)"})]})]}),(0,Ap.jsxs)(Ip,{children:[(0,Ap.jsx)("p",{children:"Sp\xe9cifiez la relation \xe0 partir de (A) la ressource principale\xa0; \xe0 (B) la ressource associ\xe9e. Par exemple:"}),(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:'Utilisez "Est une nouvelle version de" pour indiquer que la ressource principale d\xe9crite dans cet enregistrement de m\xe9tadonn\xe9es (A) est une nouvelle version de (B) la ressource associ\xe9e.'}),(0,Ap.jsx)("li",{children:'Utilisez "Fait partie de" pour indiquer que la ressource principale (A) est un sous-ensemble de (B) la ressource plus grande associ\xe9e.'}),(0,Ap.jsx)("li",{children:'Utilisez "A une partie" pour indiquer que la ressource principale (A) est le travail le plus important qui comprend (B) la ressource associ\xe9e.'}),(0,Ap.jsx)("li",{children:'Utilisez "Cites" pour indiquer que (A) cite (B).'}),(0,Ap.jsx)("li",{children:'Utilisez "Est cit\xe9 par" pour indiquer que (B) cite (A)'})]})]})]})})]}),(0,Ap.jsx)(Ek,{value:h.association_type,onChange:e=>{const t=[...o];t[c].association_type_iso=tS[e.target.value],t[c].association_type=e.target.value,r(t)},options:Object.keys(ok),optionLabels:Object.values(ok).map((e=>{let{title:t}=e;return t[l]})),optionTooltips:Object.values(ok).map((e=>{let{text:t}=e;return t[l]})),disabled:a,label:(0,Ap.jsx)(Lp,{en:"Relation Type",fr:"Type de relation"}),fullWidth:!1})]})]})})})]})})},rS={title:"",authority:"",code:""},iS=e=>{var t,n;let{updateDocumentations:r,documentations:o=[],disabled:a,paperClass:s,language:l}=e;const[c,u]=(0,i.useState)(0);function d(e){return t=>{const n=[...o];n[c][e]=t.target.value,r(n)}}function p(e){return!e||(e=>!e||kx().isURL(e))(e)}const h=o.length>0&&o[c];return(0,Ap.jsxs)(e_,{container:!0,spacing:0,children:[(0,Ap.jsx)(e_,{item:!0,children:(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Additional Documentation:"}),(0,Ap.jsx)(Ip,{children:"Documentation Suppl\xe9mentaire:"})]}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"A citation to additional lineage documentation. This could be a publication that describes the whole process, dataset, or model."}),(0,Ap.jsx)(Ip,{children:"Une citation \xe0 une documentation suppl\xe9mentaire sur la lign\xe9e. Il peut s'agir d'une publication d\xe9crivant l'ensemble du processus, de l'ensemble de donn\xe9es ou du mod\xe8le."})]})})]})}),(0,Ap.jsxs)(e_,{container:!0,item:!0,direction:"row",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:4,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(ki,{children:o.map(((e,t)=>{var n,r;return(0,Ap.jsx)(ko,{button:!0,onClick:()=>u(t),children:(0,Ap.jsx)(Yo,{primary:(0,Ap.jsxs)(Or,{style:{fontWeight:c===t?"bold":""},children:[t+1,". ",(null!==(n=e.title[l])&&void 0!==n?n:"").length<=50?null!==(r=e.title[l])&&void 0!==r?r:"":"".concat(e.title[l].substring(0,50),"...")]})})},t)}))})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{disabled:a,startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>(r(o.concat(__(rS))),void u(o.length)),style:{height:"56px",marginLeft:"10px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add documentation"}),(0,Ap.jsx)(Ip,{children:"Ajouter un documentation"})]})})})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(e_,{container:!0,direction:"column",children:h&&(0,Ap.jsx)(Xn,{style:s,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Title"}),(0,Ap.jsx)(Ip,{children:"Titre"})]}),(0,Ap.jsx)(ek,{passes:(null===(t=h.title)||void 0===t?void 0:t.en)||(null===(n=h.title)||void 0===n?void 0:n.fr)}),(0,Ap.jsx)(qC,{value:h.title,onChange:d("title"),fullWidth:!0,disabled:a})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:"Identifier or URL",value:h.code,onChange:function(e){return t=>{const n=[...o];n[c][e]=t.target.value;const i=n[c].code;switch(!0){case p(n[c].code)&&/^http.?:\/\/doi\.org\//i.test(i):n[c].authority="DOI";break;case p(n[c].code):n[c].authority="URL";break;default:n[c].authority=""}r(n)}}("code"),fullWidth:!0,disabled:a})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter the identifier type"}),(0,Ap.jsx)(Ip,{children:"Entrez le type d'identifiant"})]}),(null===h||void 0===h?void 0:h.code)&&(0,Ap.jsx)(ek,{passes:h.authority})]}),(0,Ap.jsx)(Ek,{value:h.authority,onChange:d("authority"),options:ak,optionLabels:ak,disabled:a,label:(0,Ap.jsx)(Lp,{en:"Identifier Type",fr:"Type d'identifiant"}),fullWidth:!1})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(nx,{}),disabled:a,onClick:()=>(r(o.filter(((e,t)=>t!==c))),void(o.length&&u(o.length-2))),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Remove documentation"}),(0,Ap.jsx)(Ip,{children:"Supprimer l'documentation"})]})})})]})})})})]})]})},oS={description:"",title:"",authority:"",code:""},aS=e=>{var t,n,r,o;let{updateSources:a,sources:s=[],disabled:l,paperClass:c,language:u}=e;const[d,p]=(0,i.useState)(0);function h(e){return t=>{const n=[...s];n[d][e]=t.target.value,a(n)}}function f(e){return!e||(e=>!e||kx().isURL(e))(e)}const m=s.length>0&&s[d];return(0,Ap.jsxs)(e_,{container:!0,spacing:0,children:[(0,Ap.jsx)(e_,{item:!0,children:(0,Ap.jsxs)(KC,{children:["Source:",(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Information about the input used in creating the resource specified by the scope. Provide citations to the input data. This is especially valuable for processed satellite data and model data. For model data, it is suggested to describe the model and its input, especially if their is no publication cited above to describe the model."}),(0,Ap.jsx)(Ip,{children:"Informations sur l'entr\xe9e utilis\xe9e lors de la cr\xe9ation de la ressource sp\xe9cifi\xe9e par la port\xe9e. Fournir citations aux donn\xe9es d\u2019entr\xe9e. Ceci est particuli\xe8rement utile pour les donn\xe9es satellitaires trait\xe9es et donn\xe9es du mod\xe8le. Pour les donn\xe9es de mod\xe8le, il est sugg\xe9r\xe9 de d\xe9crire le mod\xe8le et ses entr\xe9es, en particulier s'il n'y a pas de publication cit\xe9e ci-dessus pour d\xe9crire le mod\xe8le."})]})})]})}),(0,Ap.jsxs)(e_,{container:!0,item:!0,direction:"row",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:4,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(ki,{spacing:1,children:s.map(((e,t)=>{var n,r;return(0,Ap.jsx)(ko,{button:!0,onClick:()=>p(t),children:(0,Ap.jsx)(Yo,{primary:(0,Ap.jsxs)(Or,{style:{fontWeight:d===t?"bold":""},children:[t+1,". ",(null!==(n=e.title[u]||e.description[u])&&void 0!==n?n:"").length<=50?null!==(r=e.title[u]||e.description[u])&&void 0!==r?r:"":"".concat((e.title[u]||e.description[u]).substring(0,50),"...")]})})},t)}))})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{disabled:l,startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>(a(s.concat(__(oS))),void p(s.length)),style:{height:"56px",marginLeft:"10px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add source"}),(0,Ap.jsx)(Ip,{children:"Ajouter un source"})]})})})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(e_,{container:!0,direction:"column",children:m&&(0,Ap.jsx)(Xn,{style:c,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Description"}),(0,Ap.jsx)(Ip,{children:"Description"})]}),(0,Ap.jsx)(ek,{passes:(null===(t=m.description)||void 0===t?void 0:t.en)||(null===(n=m.description)||void 0===n?void 0:n.fr)}),(0,Ap.jsx)(qC,{value:m.description,onChange:h("description"),fullWidth:!0,disabled:l})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{variant:"body1",component:"div",style:{marginTop:"10px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Or link to reference documentation"}),(0,Ap.jsx)(Ip,{children:"Ou lien vers la documentation de r\xe9f\xe9rence"})]})})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Title"}),(0,Ap.jsx)(Ip,{children:"Titre"})]}),(null===m||void 0===m?void 0:m.code)&&(0,Ap.jsx)(ek,{passes:(null===(r=m.title)||void 0===r?void 0:r.en)||(null===(o=m.title)||void 0===o?void 0:o.fr)}),(0,Ap.jsx)(qC,{value:m.title,onChange:h("title"),fullWidth:!0,disabled:l})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:"Identifier or URL",value:m.code,onChange:function(e){return t=>{const n=[...s];n[d][e]=t.target.value;const r=n[d].code;switch(!0){case f(n[d].code)&&/^http.?:\/\/doi\.org\//i.test(r):n[d].authority="DOI";break;case f(n[d].code):n[d].authority="URL";break;default:n[d].authority=""}a(n)}}("code"),fullWidth:!0,disabled:l})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter the identifier type"}),(0,Ap.jsx)(Ip,{children:"Entrez le type d'identifiant"})]}),(null===m||void 0===m?void 0:m.code)&&(0,Ap.jsx)(ek,{passes:m.authority})]}),(0,Ap.jsx)(Ek,{value:m.authority,onChange:h("authority"),options:ak,optionLabels:ak,disabled:l,label:(0,Ap.jsx)(Lp,{en:"Identifier Type",fr:"Type d'identifiant"}),fullWidth:!1})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(nx,{}),disabled:l,onClick:()=>(a(s.filter(((e,t)=>t!==d))),void(s.length&&p(s.length-2))),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Remove source"}),(0,Ap.jsx)(Ip,{children:"Supprimer l'source"})]})})})]})})})})]})]})},sS={description:"",title:"",authority:"",code:""},lS=e=>{var t,n,r,o;let{updateSources:a,sources:s=[],disabled:l,paperClass:c,language:u}=e;const[d,p]=(0,i.useState)(0);function h(e){return t=>{const n=[...s];n[d][e]=t.target.value,a(n)}}function f(e){return!e||(e=>!e||kx().isURL(e))(e)}const m=s.length>0&&s[d];return(0,Ap.jsxs)(e_,{container:!0,spacing:0,children:[(0,Ap.jsx)(e_,{item:!0,children:(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Processing or Method Step:"}),(0,Ap.jsx)(Ip,{children:"\xc9tape de traitement ou de m\xe9thode:"})]}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"A general description of how the resource was developed or an event associated with the resource. This can be a summary of the workflow or steps to create the resource subsequent to initial data collection."}),(0,Ap.jsx)(Ip,{children:"Une description g\xe9n\xe9rale de la fa\xe7on dont la ressource a \xe9t\xe9 d\xe9velopp\xe9e ou d'un \xe9v\xe9nement associ\xe9 \xe0 la Ressource. Il peut s'agir d'un r\xe9sum\xe9 du flux de travail ou des \xe9tapes de cr\xe9ation ult\xe9rieure de la ressource. \xe0 la collecte initiale des donn\xe9es."})]})})]})}),(0,Ap.jsxs)(e_,{container:!0,item:!0,direction:"row",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:4,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(ki,{spacing:1,children:s.map(((e,t)=>{var n,r;return(0,Ap.jsx)(ko,{button:!0,onClick:()=>p(t),children:(0,Ap.jsx)(Yo,{primary:(0,Ap.jsxs)(Or,{style:{fontWeight:d===t?"bold":""},children:[t+1,". ",(null!==(n=e.title[u]||e.description[u])&&void 0!==n?n:"").length<=50?null!==(r=e.title[u]||e.description[u])&&void 0!==r?r:"":"".concat((e.title[u]||e.description[u]).substring(0,50),"...")]})})},t)}))})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{disabled:l,startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>(a(s.concat(__(sS))),void p(s.length)),style:{height:"56px",marginLeft:"10px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add Step"}),(0,Ap.jsx)(Ip,{children:"Ajouter une \xe9tape"})]})})})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(e_,{container:!0,direction:"column",children:m&&(0,Ap.jsx)(Xn,{style:c,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Description"}),(0,Ap.jsx)(Ip,{children:"Description"})]}),(0,Ap.jsx)(ek,{passes:(null===(t=m.description)||void 0===t?void 0:t.en)||(null===(n=m.description)||void 0===n?void 0:n.fr)}),(0,Ap.jsx)(qC,{value:m.description,onChange:h("description"),fullWidth:!0,disabled:l})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{variant:"body1",component:"div",style:{marginTop:"10px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Or link to reference documentation"}),(0,Ap.jsx)(Ip,{children:"Ou lien vers la documentation de r\xe9f\xe9rence"})]})})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Title"}),(0,Ap.jsx)(Ip,{children:"Titre"})]}),(null===m||void 0===m?void 0:m.code)&&(0,Ap.jsx)(ek,{passes:(null===(r=m.title)||void 0===r?void 0:r.en)||(null===(o=m.title)||void 0===o?void 0:o.fr)}),(0,Ap.jsx)(qC,{value:m.title,onChange:h("title"),fullWidth:!0,disabled:l})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:"Identifier or URL",value:m.code,onChange:function(e){return t=>{const n=[...s];n[d][e]=t.target.value;const r=n[d].code;switch(!0){case f(n[d].code)&&/^http.?:\/\/doi\.org\//i.test(r):n[d].authority="DOI";break;case f(n[d].code):n[d].authority="URL";break;default:n[d].authority=""}a(n)}}("code"),fullWidth:!0,disabled:l})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter the identifier type"}),(0,Ap.jsx)(Ip,{children:"Entrez le type d'identifiant"})]}),(null===m||void 0===m?void 0:m.code)&&(0,Ap.jsx)(ek,{passes:m.authority})]}),(0,Ap.jsx)(Ek,{value:m.authority,onChange:h("authority"),options:ak,optionLabels:ak,disabled:l,label:(0,Ap.jsx)(Lp,{en:"Identifier Type",fr:"Type d'identifiant"}),fullWidth:!1})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(nx,{}),disabled:l,onClick:()=>(a(s.filter(((e,t)=>t!==d))),void(s.length&&p(s.length-2))),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Remove step"}),(0,Ap.jsx)(Ip,{children:"Supprimer l'\xe9tape"})]})})})]})})})})]})]})},cS={statement:"",scope:"",additionalDocumentation:[],source:[],processingStep:[]},uS=e=>{var t,n;let{updateLineage:r,history:o,disabled:a,paperClass:s,language:l,metadataScope:c}=e;const[u,d]=(0,i.useState)(0),[p,h]=(0,i.useState)(o),f=Object.keys(ik).filter((e=>["DataCollectionSampling",c].includes(e))).reduce(((e,t)=>({...e,[t]:ik[t]})),{});function m(e){return t=>{const n=[...o];n[u][e]=t.target.value,r(n)}}function g(e){return t=>{const n=[...o];n[u][e]=t,r(n)}}if("string"===typeof o){const e=__(cS);""!==o&&(e.statement={en:o,fr:o}),r([__(e)])}x_(p,o)||h(o);const v=o.length>0&&o[u];return v&&!v.scope&&(v.scope=c),("string"===typeof o||o instanceof String)&&(o=[]),(0,Ap.jsx)(Xn,{variant:"outlined",style:{padding:10},children:(0,Ap.jsxs)(e_,{container:!0,direction:"row",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:3,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[o&&o.length>0&&(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(ki,{children:(0,Ap.jsx)(Wk.Container,{dragHandleSelector:".drag-handle",lockAxis:"y",onDrop:e=>{let{removedIndex:t,addedIndex:n}=e;t===u?d(n):n<=u&&t>u&&d(u+1);const i=$k()(p,t,n);r(i)},children:o.map(((e,t)=>{var n,i;return(0,Ap.jsx)(Wk.Draggable,{children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>d(t),children:[(0,Ap.jsx)(Yo,{primary:(0,Ap.jsxs)(Or,{style:{fontWeight:u===t?"bold":"",marginRight:"72px"},children:[t+1,". ",(null!==(n=e.statement[l])&&void 0!==n?n:"").length<=50?null!==(i=e.statement[l])&&void 0!==i?i:"":"".concat(e.statement[l].substring(0,50),"...")]})}),(0,Ap.jsxs)(X_,{children:[(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Duplicate contact",fr:"Duplicate contact"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>function(e){var t,n;const i=__(o[e]);null!==(t=i.name)&&void 0!==t&&t.en&&(i.name.en+=" (Copy)"),null!==(n=i.name)&&void 0!==n&&n.fr&&(i.name.fr+=" (Copie)"),r(o.concat(i))}(t),edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(ox,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Remove from this record",fr:"Supprimer de cet enregistrement"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>function(e){r(o.filter(((t,n)=>n!==e))),o.length&&d(o.length-2)}(t),edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(nx,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Drag to reorder",fr:"Faites glisser pour r\xe9organiser"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{className:"drag-handle",edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(Gk,{})})})})]})]},t)},t)}))})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{disabled:a,startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>(r(o.concat(__(cS))),void d(o.length)),style:{height:"56px",marginLeft:"10px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add Lineage"}),(0,Ap.jsx)(Ip,{children:"Ajouter une lign\xe9e"})]})})})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:v&&(0,Ap.jsx)(Xn,{variant:"outlined",style:{padding:10},children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:3,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Lineage Title"}),(0,Ap.jsx)(Ip,{children:"Titre de la lign\xe9e"})]}),(0,Ap.jsx)(ek,{passes:(null===(t=v.statement)||void 0===t?void 0:t.en)||(null===(n=v.statement)||void 0===n?void 0:n.fr)}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"General explanation of the lineage step or sampling methods. For detailed processing steps or methods use the processing and method step question"}),(0,Ap.jsx)(Ip,{children:"Explication g\xe9n\xe9rale de l'\xe9tape de lignage ou des m\xe9thodes d'\xe9chantillonnage. Pour des \xe9tapes ou des m\xe9thodes de traitement d\xe9taill\xe9es, utilisez la question sur les \xe9tapes de traitement et de m\xe9thode."})]})})]}),(0,Ap.jsx)(qC,{value:v.statement,onChange:m("statement"),fullWidth:!0,disabled:a})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Scope"}),(0,Ap.jsx)(Ip,{children:"Port\xe9e"})]}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Type of resource and/or extent to which the lineage information applies."}),(0,Ap.jsx)(Ip,{children:"Type de ressource et/ou mesure dans laquelle les informations sur la lign\xe9e s'appliquent."})]})})]}),(0,Ap.jsx)(Ek,{value:v.scope,onChange:e=>{var t;const n={target:{value:null===(t=ik[e.target.value])||void 0===t?void 0:t.isoValue}};m("scopeIso")(n),m("scope")(e)},options:Object.keys(f),optionLabels:Object.values(f).map((e=>{let{title:t}=e;return t[l]})),disabled:a,fullWidth:!0,label:(0,Ap.jsx)(Lp,{en:"Scope",fr:"???"})})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(iS,{documentations:v.additionalDocumentation,updateDocumentations:g("additionalDocumentation"),disabled:a,paperClass:s,language:l})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(aS,{sources:v.source,updateSources:g("source"),disabled:a,paperClass:s,language:l})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(lS,{sources:v.processingStep,updateSources:g("processingStep"),disabled:a,paperClass:s,language:l})})]})})})]})})},dS=e=>{let{disabled:t,record:n,updateRecord:r}=e;const{language:o}=mn(),[a]=i.useState([n.distribution&&0===n.distribution.length,n.associated_resources&&0===n.associated_resources.length,n.history&&0===n.history.length]);return(0,Ap.jsxs)("div",{children:[(0,Ap.jsxs)(Mk,{defaultExpanded:a[0],style:{width:"90%",margin:20},children:[(0,Ap.jsx)(Qk,{expandIcon:(0,Ap.jsx)(FC.c,{}),"aria-controls":"panel1a-content",id:"panel1a-header",style:{backgroundColor:"#00000015"},children:(0,Ap.jsxs)(YC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Resource"}),(0,Ap.jsx)(Ip,{children:"La ressource"})]}),n.distribution&&n.distribution.length>0&&(0,Ap.jsx)(pC,{style:{marginLeft:10},label:n.distribution.length,variant:"outlined"})]})}),(0,Ap.jsx)(Fk,{children:(0,Ap.jsxs)(e_,{children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsx)(Pp,{children:'Enter one or more links to the primary resource described by this metadata record. Resources added here should not already have their own metadata record or digital object identifier, such resources should be added to the "Related Works" section.'}),(0,Ap.jsx)(Ip,{children:'Entrez un ou plusieurs liens vers la ressource principale d\xe9crite par cet enregistrement de m\xe9tadonn\xe9es. Les ressources ajout\xe9es ici ne doivent pas d\xe9j\xe0 avoir leur propre enregistrement de m\xe9tadonn\xe9es ou identifiant d\'objet num\xe9rique, ces ressources doivent \xeatre ajout\xe9es \xe0 la section "Travaux associ\xe9s".'}),(0,Ap.jsx)(ek,{passes:Mx(n,"distribution")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["Some examples of resources are:",(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:"Protocols or methods documents"}),(0,Ap.jsx)("li",{children:"CSV files"}),(0,Ap.jsx)("li",{children:"ERDDAP datasets"}),(0,Ap.jsx)("li",{children:"Images"}),(0,Ap.jsx)("li",{children:"Online forms to request access to the data"})]}),"A Resource URL that links to a compressed data package or folder is preferred. Otherwise, list primary resource first followed by supporting resources."]}),(0,Ap.jsxs)(Ip,{children:["Voici quelques exemples de ressources :",(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:"Documents de protocoles ou de m\xe9thodes"}),(0,Ap.jsx)("li",{children:"Fichiers CSV"}),(0,Ap.jsx)("li",{children:"Ensembles de donn\xe9es ERDDAP"}),(0,Ap.jsx)("li",{children:"Images"}),(0,Ap.jsx)("li",{children:"Formulaires en ligne pour demander l'acc\xe8s aux donn\xe9es"})]}),"Une URL de ressource qui renvoie \xe0 un package ou un dossier de donn\xe9es compress\xe9es est pr\xe9f\xe9rable. Sinon, r\xe9pertoriez d'abord la ressource principale, suivie des ressources de support."]})]})})]}),(0,Ap.jsx)(eS,{resources:n.distribution||[],updateResources:r("distribution"),language:o,disabled:t})]})})]}),(0,Ap.jsxs)(Mk,{defaultExpanded:a[1],style:{width:"90%",margin:20},children:[(0,Ap.jsx)(Qk,{expandIcon:(0,Ap.jsx)(FC.c,{}),"aria-controls":"panel2a-content",id:"panel2a-header",style:{backgroundColor:"#00000015"},children:(0,Ap.jsxs)(YC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Related Works"}),(0,Ap.jsx)(Ip,{children:"Travaux connexes"})]}),n.associated_resources&&n.associated_resources.length>0&&(0,Ap.jsx)(pC,{style:{marginLeft:10},label:n.associated_resources.length,variant:"outlined"})]})}),(0,Ap.jsx)(Fk,{children:(0,Ap.jsxs)(e_,{children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsx)(Pp,{children:"Enter links to other metadata records, publications or works that are related to the primary resources this metadata record describes."}),(0,Ap.jsx)(Ip,{children:"Entrez des liens vers d'autres enregistrements de m\xe9tadonn\xe9es, publications ou ouvrages qui sont li\xe9s aux ressources principales d\xe9crites par cet enregistrement de m\xe9tadonn\xe9es."}),(0,Ap.jsx)(ek,{passes:Mx(n,"associated_resources")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["Related works may be:",(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:"Other datasets that are part of the same collection, project, or sampling protocol"}),(0,Ap.jsx)("li",{children:"Metadata records on other catalogues such as OBIS or FRDR that describe the same dataset"}),(0,Ap.jsx)("li",{children:"Any work that adds context to or describes the primary resource for which you are creating this metadata record for"})]})]}),(0,Ap.jsxs)(Ip,{children:["Les \u0153uvres connexes peuvent \xeatre :",(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:"Autres ensembles de donn\xe9es faisant partie de la m\xeame collection, du m\xeame projet ou du m\xeame protocole d'\xe9chantillonnage"}),(0,Ap.jsx)("li",{children:"Enregistrements de m\xe9tadonn\xe9es sur d'autres catalogues tels que OBIS ou FRDR qui d\xe9crivent le m\xeame ensemble de donn\xe9es"}),(0,Ap.jsx)("li",{children:"Tout travail qui ajoute du contexte ou d\xe9crit la ressource principale pour laquelle vous cr\xe9ez cet enregistrement de m\xe9tadonn\xe9es"})]})]})]})})]}),(0,Ap.jsx)(nS,{resources:n.associated_resources||[],updateResources:r("associated_resources"),language:o,disabled:t})]})})]}),(0,Ap.jsxs)(Mk,{defaultExpanded:a[2],style:{width:"90%",margin:20},children:[(0,Ap.jsx)(Qk,{expandIcon:(0,Ap.jsx)(FC.c,{}),"aria-controls":"panel3a-content",id:"panel3a-header",style:{backgroundColor:"#00000015"},children:(0,Ap.jsxs)(YC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Lineage"}),(0,Ap.jsx)(Ip,{children:"Lign\xe9e"})]}),n.history&&n.history.length>0&&(0,Ap.jsx)(pC,{style:{marginLeft:10},label:n.history.length,variant:"outlined"})]})}),(0,Ap.jsx)(Fk,{children:(0,Ap.jsxs)(e_,{children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsx)(Pp,{children:"Data processing history (provenance) for the resource."}),(0,Ap.jsx)(Ip,{children:"Historique du traitement des donn\xe9es (provenance) pour la ressource."}),(0,Ap.jsx)(ek,{passes:Mx(n,"history")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter Information about the events or source data used in constructing the data specified by the scope."}),(0,Ap.jsx)(Ip,{children:"Entrez des informations sur les \xe9v\xe9nements ou les donn\xe9es sources utilis\xe9es dans la construction des donn\xe9es sp\xe9cifi\xe9es par la port\xe9e."})]})})]}),(0,Ap.jsx)(uS,{history:n.history,updateLineage:r("history"),disabled:t,paperClass:ZC,language:o,metadataScope:n.metadataScope})]})})]})]})},pS=(0,In.c)(i.createElement("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3v7.12zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8h1.5z"}),"Update"),hS={Biogeochemical:{en:"Biogeochemical",fr:"Biog\xe9ochimie"},"Biology and Ecosystems":{en:"Biological and Ecosystem",fr:"Biologie et \xe9cosyst\xe8mes"},"Cross-disciplinary":{en:"Cross-disciplinary",fr:"Interdisciplinaire"},Physical:{en:"Physical",fr:"Physique"},Other:{en:"Other",fr:"Autre"}},fS=[{category:"Biogeochemical",value:"oxygen","label EN":"Oxygen","label FR":"Oxyg\xe8ne","definition EN":"The amount of dissolved oxygen in seawater.","definition FR":"Concentration d'oxyg\xe8ne dissous dans l'eau de mer",icon:"dissolved-oxygen.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17473"},{category:"Biogeochemical",value:"nutrients","label EN":"Nutrients","label FR":"Nutriments","definition EN":"The amount of inorganic nutrients in seawater","definition FR":"Concentration des nutriments inorganiques dissous dans l'eau de mer [NO\u2083, NO\u2082, PO\u2084, NH\u2084, Si(OH)\u2084]",icon:"nutrients.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17474"},{category:"Biogeochemical",value:"inorganicCarbon","label EN":"Inorganic carbon","label FR":"Carbone inorganique","definition EN":"Total amount of inorganic carbon dissolved in sea water [CO\u2082, HCO\u2083-, CO\u2083\xb2-]","definition FR":"Quantit\xe9 totale de carbone inorganique dissous dans l'eau de mer [CO\u2082, HCO\u2083-, CO\u2083\xb2-]",icon:"inorganic-carbon.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17475"},{category:"Biogeochemical",value:"dissolvedOrganicCarbon","label EN":"Dissolved organic carbon","label FR":"Carbone organique dissous","definition EN":"The amount of dissolved carbon dioxide in seawater","definition FR":"Concentration de carbone organique dissous dans l'eau de mer",icon:"dissolved-organic-carbon.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17480"},{category:"Physical",value:"seaSurfaceHeight","label EN":"Sea surface height","label FR":"Niveau de l'eau","definition EN":"The altitude of mean sea level relative to the Earth's geode.","definition FR":"Correspond au niveau d'eau mesur\xe9. Les niveaux sont variables en fonction des saisons et des \xe9v\xe8nements climatique",icon:"sea-level.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17465"},{category:"Physical",value:"seaIce","label EN":"Sea ice","label FR":"Glace de mer","definition EN":"The concentration of ice cover over a specified area and extent","definition FR":"La concentration en couverture de glace sur une zone et une \xe9tendue sp\xe9cifi\xe9es",icon:"sea-ice.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17464"},{category:"Physical",value:"seaState","label EN":"Sea state","label FR":"\xc9tat de la mer","definition EN":"Sea State is the characterization of wave and swell, typically in terms of height, wavelength, period, and directional wave energy flux.","definition FR":"L'\xe9tat de la mer est la caract\xe9risation des vagues et de la houle, g\xe9n\xe9ralement en termes de hauteur, de longueur d'onde, de p\xe9riode, et le flux d'\xe9nergie des ondes directionnelles",icon:"sea-state.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17462"},{category:"Physical",value:"seaSurfaceSalinity","label EN":"Sea surface salinity","label FR":"Salinit\xe9 de surface","definition EN":"The concentration of dissolved salts in surface seawater.","definition FR":"La concentration de sel dissous dans l'eau de mer de surface",icon:"salinity.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17470"},{category:"Physical",value:"seaSurfaceTemperature","label EN":"Sea surface temperature","label FR":"Temp\xe9rature de surface","definition EN":"The temperature of surface seawater.","definition FR":"La temp\xe9rature de l'eau de mer en surface",icon:"temperature.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17466"},{category:"Physical",value:"subSurfaceSalinity","label EN":"Subsurface salinity","label FR":"Salinit\xe9 sous la surface","definition EN":"The concentration of dissolved salts in subsurface seawater.","definition FR":"La concentration de sel dissous dans l'eau de mer sous la surface",icon:"salinity.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17471"},{category:"Physical",value:"subSurfaceTemperature","label EN":"Subsurface temperature","label FR":"Temp\xe9rature sous la surface","definition EN":"The temperature of subsurface seawater.","definition FR":"La temp\xe9rature de l'eau de mer sous la surface",icon:"temperature.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17467"},{category:"Physical",value:"surfaceCurrents","label EN":"Surface currents","label FR":"Courants de surface","definition EN":"The velocity of sea water in surface","definition FR":"Vitesse et d\xe9bit de l'eau en surface",icon:"currents.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17468"},{category:"Physical",value:"subSurfaceCurrents","label EN":"Subsurface currents","label FR":"Courants sous-marins","definition EN":"","definition FR":"",icon:"currents.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17469"},{category:"Other",value:"other","label EN":"Other","label FR":"Autre","definition EN":"All data that does not correspond to the current EOVs.","definition FR":"Toutes les donn\xe9es qui ne correspondent pas aux EOVs actuels.",icon:"eov_other.svg"},{category:"Biogeochemical",value:"transientTracers","label EN":"Transient tracers","label FR":"Traceurs transitoires","definition EN":"Transient tracers are man-made chemical compounds released to the atmosphere at known quantities that can be used in the ocean to quantify ventilation, transit time distribution and transport time-scales","definition FR":"Les traceurs transitoires sont des compos\xe9s chimiques artificiels rejet\xe9s dans l'atmosph\xe8re en quantit\xe9s connues qui peuvent \xeatre utilis\xe9s dans l'oc\xe9an pour quantifier la ventilation, la distribution des temps de transit et les \xe9chelles de temps de transport.",icon:"transient-tracers.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17476"},{category:"Biogeochemical",value:"particulateMatter","label EN":"Particulate matter","label FR":"Mati\xe8re particulaire","definition EN":"Total amount of particles (organic & inorganic) suspended in sea water","definition FR":"Quantit\xe9 totale de particules (organiques et inorganiques) en suspension dans l'eau de mer",icon:"particulate-matter.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17477"},{category:"Biogeochemical",value:"nitrousOxide","label EN":"Nitrous oxide","label FR":"Protoxyde d'azote","definition EN":"Nitrous oxide (N2O) is an important climate-relevant trace gas in the Earth\u2019s atmosphere. The ocean-including its coastal areassuch as continental shelves, estuaries and upwelling areas is a major source of N2O and contributesabout 30% to the atmospheric N2O budget.","definition FR":"Le protoxyde d'azote ou azote nitreux (N2O) est un important gaz traceur du climat dans l'atmosph\xe8re terrestre. L'oc\xe9an, y compris ses zones c\xf4ti\xe8res telles que les plateaux continentaux, les estuaires et les zones d'upwelling, est une source majeure de N2O. Elle contribue \xe0 environ 30 % du bilan atmosph\xe9rique en protoxyde d'azote.",icon:"nitrous-oxide.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17478"},{category:"Biogeochemical",value:"stableCarbonIsotopes","label EN":"Stable carbon isotopes","label FR":"Isotopes stables du carbone","definition EN":"The utility of carbon-13 isotope (\u03b413C, the carbon-13 to carbon-12 isotope ratio; 13C/12C) as a tracer of the ocean\u2019s carbon cycle.","definition FR":"L\u2019utilit\xe9 de l\u2019isotope du carbone-13 (\u03b413C, le rapport des isotopes du carbone-13 au carbone-12; 13C/12C) comme traceur du cycle du carbone de l\u2019oc\xe9an.",icon:"stable-carbon-isotopes.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17479"},{category:"Biology and Ecosystems",value:"phytoplanktonBiomassAndDiversity","label EN":"Phytoplankton biomass and diversity","label FR":"Biomasse et diversit\xe9 de phytoplancton","definition EN":"Characterization of the biological diversity of phytoplankton, their phenology, vertical distribution, and community composition, and their role in ocean biogeochemistry and ecosystem services.","definition FR":"Caract\xe9risation de la diversit\xe9 biologique du phytoplancton, de sa ph\xe9nologie, de sa distribution verticale et de sa composition communautaire, ainsi que le r\xf4le dans la biog\xe9ochimie des oc\xe9ans et les services \xe9cosyst\xe9miques.",icon:"phytoplankton.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17507"},{category:"Biology and Ecosystems",value:"zooplanktonBiomassAndDiversity","label EN":"Zooplankton biomass and diversity","label FR":"Biomasse et diversit\xe9 de zooplancton","definition EN":"Zooplankton diversity refers to the number of zooplankton species, taxonomic composition, or community structure within a region. Zooplankton diversity influences ecosystem health and productivity through trophic links.","definition FR":"La diversit\xe9 du zooplancton fait r\xe9f\xe9rence au nombre d'esp\xe8ces de zooplancton, \xe0 la composition taxonomique ou \xe0 la structure communautaire au sein d'une r\xe9gion. La diversit\xe9 du zooplancton influence la sant\xe9 et la productivit\xe9 de l'\xe9cosyst\xe8me par le biais de liens trophiques.",icon:"zooplankton.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17509"},{category:"Biology and Ecosystems",value:"fishAbundanceAndDistribution","label EN":"Fish abundance and distribution","label FR":"Abondance et distribution de poissons","definition EN":"Fish abundance describes the biomass or numbers of fish in the ocean. It can be reported in terms of species or taxonomic or functional groups (e.g., small pelagic fish, mesopelagic fish, and tunalike species) in an assemblage, population, stock or area, or globally","definition FR":"L'abondance des poissons d\xe9crit la biomasse ou le nombre de poissons dans l'oc\xe9an. Il peut \xeatre rapport\xe9 en termes d'esp\xe8ces ou de groupes taxonomiques ou fonctionnels (par exemple, petits poissons p\xe9lagiques, poissons m\xe9sop\xe9lagiques et esp\xe8ces tunal) dans un assemblage, une population, un stock ou une zone, ou \xe0 l'\xe9chelle mondiale",icon:"fish.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17510"},{category:"Biology and Ecosystems",value:"marineTurtlesBirdsMammalsAbundanceAndDistribution","label EN":"Marine turtles, birds, mammals abundance and distribution","label FR":"Abondance et distribution de tortues marines, oiseaux et mammif\xe8res","definition EN":"Abundance refers to the number of individuals (turtles, birds or marine mammals) within a population while distribution refers to\nthe geographic or spatial extent of habitats used by individuals in the population.","definition FR":"L'abondance se r\xe9f\xe8re au nombre d'individus (tortues, oiseaux ou mammif\xe8res marins) au sein d'une population tandis que la distribution se r\xe9f\xe8re \xe0\nl'\xe9tendue g\xe9ographique ou spatiale des habitats utilis\xe9s par les individus de la population.",icon:"birds-mammals.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17511"},{category:"Biology and Ecosystems",value:"hardCoralCoverAndComposition","label EN":"Hard coral cover and composition","label FR":"Composition et couverture des coraux durs","definition EN":"Live hard coral cover and the areal extent of a reef are the most important indicators of whether a reef is in a coral-dominated state or not; the composition and diversity of coral taxa is an important index of reef health; coral condition (e.g. bleaching, disease) gives fundamental information on the health of a reef; the size class structure (and recruitment) of hard corals gives fundamental information on the resilience, disturbance history and recovery potential of a reef.","definition FR":"La couverture de coraux durs vivants et l'\xe9tendue spatiale des r\xe9cifs sont les indicateurs les plus importants pour savoir si le r\xe9cif est ou non domin\xe9 par les coraux. La composition et la diversit\xe9 des taxons coralliens sont un indice important de la sant\xe9 du r\xe9cif ; l'\xe9tat des coraux (par exemple le blanchissement, les maladies) donne des informations fondamentales sur la sant\xe9 du r\xe9cif ; la structure des classes de taille (et le recrutement) des coraux durs donne des informations fondamentales sur la r\xe9silience, l'historique des perturbations et le potentiel de r\xe9cup\xe9ration du r\xe9cif.",icon:"birds-mammals.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17512"},{category:"Biology and Ecosystems",value:"seagrassCoverAndComposition","label EN":"Seagrass cover and composition","label FR":"Composition et couverture des herbiers marins","definition EN":"Characterization of seagrass beds according to species and their cover linked to a spatial distribution.","definition FR":"Caract\xe9risation des herbiers marins en fonction des esp\xe8ces et de leur couverture selon une distribution spatiale.",icon:"seagrass.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17513"},{category:"Biology and Ecosystems",value:"macroalgalCanopyCoverAndComposition","label EN":"Macroalgal canopy cover and composition","label FR":"Composition et couverture de la canop\xe9e de macroalgues","definition EN":"Characterization of macroalgal forest according to species and their cover linked to a spatial distribution.","definition FR":"Caract\xe9risation des macroalgues en fonction des esp\xe8ces et de leur couvert selon une distribution spatiale.",icon:"macroalgal-canopy.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17515"},{category:"Biology and Ecosystems",value:"invertebrateAbundanceAndDistribution","label EN":"Invertebrate abundance and distribution","label FR":"Abondance et distribution d'invert\xe9br\xe9s","definition EN":"The abundance of invertebrate species describes the biomass or number of individuals in an assemblage and according to a spatial distribution.","definition FR":"L'abondance d'esp\xe8ces invert\xe9br\xe9es d\xe9crit la biomasse ou le nombre d'individus dans un assemblage et selon une distribution spatiale.",icon:"invertebrates.svg",emerging:!0},{category:"Biology and Ecosystems",value:"microbeBiomassAndDiversity","label EN":"Microbe biomass and diversity","label FR":"Biomasse et diversit\xe9 microbienne","definition EN":"","definition FR":"",icon:"microbes.svg",emerging:!0},{category:"Cross-disciplinary",value:"oceanColour","label EN":"Ocean colour","label FR":"Couleur des oc\xe9ans","definition EN":'The term "ocean colour" refers to the result of absorption and scattering of spectral radiation emanating from the sun. Light interacts with water and suspended or dissolved matter and encompasses a multitude of biological, biogeochemical and ecological factors that form the colour of water.',"definition FR":"Le terme \xabcouleur de l'oc\xe9an\xbb se r\xe9f\xe8re au r\xe9sultat de l'absorption et de la diffusion du rayonnement spectral \xe9manant du soleil. La lumi\xe8re interagit avec l'eau et les mati\xe8res en suspension ou dissoutes et englobe une multitude de facteurs biologiques, biog\xe9ochimiques et \xe9cologiques qui forment la couleur de l'eau.",icon:"ocean-color.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=19959"},{category:"Cross-disciplinary",value:"oceanSound","label EN":"Ocean sound","label FR":"Paysage acoustique des oc\xe9ans","definition EN":"","definition FR":"",icon:"ocean-sound.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=22567"},{category:"Cross-disciplinary",value:"marineDebris","label EN":"Marine debris","label FR":"D\xe9bris marins","definition EN":"","definition FR":"",icon:"",emerging:!0,url:""},{category:"Physical",value:"oceanSurfaceHeatFlux","label EN":"Ocean surface heat flux","label FR":"Flux de chaleur oc\xe9anique de surface","definition EN":"Surface heat flux is the rate of heat exchange, per unit area, passing through the sea surface to the atmosphere. The net heat flux is the sum of the turbulent fluxes (latent and sensitive) and the radiative flux (short and long waves).","definition FR":"Le flux de chaleur de surface est le taux d'\xe9change de chaleur, par unit\xe9 de surface, traversant la surface de la mer jusqu'\xe0 l'atmosph\xe8re. Le flux de chaleur net est la somme des flux turbulents (latents et sensibles) et du flux radiatif (ondes courtes et longues).",icon:"ocean-surface-heat-flux.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17472"},{category:"Physical",value:"oceanSurfaceStress","label EN":"Ocean surface stress","label FR":"Contraintes sur la surface oc\xe9anique","definition EN":"Ocean stress is related to lower atmosphere drag and ocean surface dynamics. The magnitude of the stress influences the exchange of energy between the ocean and the atmosphere (evaporation, oxygen, carbon dioxide and other gases).","definition FR":"Le stress oc\xe9anique est li\xe9 \xe0 la train\xe9e de la basse atmosph\xe8re et \xe0 la dynamique de surface de l'oc\xe9an. L'ampleur du stress influence l'\xe9change d'\xe9nergie entre l'oc\xe9an et l'atmosph\xe8re (\xe9vaporation, oxyg\xe8ne, dioxyde de carbon et gaz autres).",icon:"sea-surface-stress.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17463"},{category:"Physical",value:"oceanBottomPressure","label EN":"Ocean Bottom Pressure","label FR":"Pression au fond de l'oc\xe9an","definition EN":"Ocean bottom pressure is the total pressure resulting from the weight or mass of the column of seawater and the overlaying atmosphere.","definition FR":"La pression au fond de l'oc\xe9an est la pression totale r\xe9sultant du poids ou de la masse de la colonne d'eau de mer et de l'atmosph\xe8re qui la recouvre.",icon:"ocean-bottom-pressure.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=32488"}];var mS=(0,i.createContext)(null),gS=function(e){var t=e.utils,n=e.children,r=e.locale,o=e.libInstance,a=(0,i.useMemo)((function(){return new t({locale:r,instance:o})}),[t,o,r]);return(0,i.createElement)(mS.Provider,{value:a,children:n})},vS=function(e){if(!e)throw new Error("Can not find utils in context. You either a) forgot to wrap your component tree in MuiPickersUtilsProvider; or b) mixed named and direct file imports. Recommendation: use named imports from the module index.")};function bS(){var e=(0,i.useContext)(mS);return vS(e),e}var yS=i.forwardRef((function(e,t){var n=e.disableSpacing,r=void 0!==n&&n,o=e.classes,a=e.className,s=(0,Yn.c)(e,["disableSpacing","classes","className"]);return i.createElement("div",(0,at.c)({className:(0,kn.c)(o.root,a,!r&&o.spacing),ref:t},s))}));const _S=(0,Gn.c)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(yS);var xS=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.dividers,a=void 0!==o&&o,s=(0,Yn.c)(e,["classes","className","dividers"]);return i.createElement("div",(0,at.c)({className:(0,kn.c)(n.root,r,a&&n.dividers),ref:t},s))}));const wS=(0,Gn.c)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(xS);var ES={enter:Ao.rV.enteringScreen,exit:Ao.rV.leavingScreen},TS=i.forwardRef((function(e,t){var n=e.BackdropProps,r=e.children,o=e.classes,a=e.className,s=e.disableBackdropClick,l=void 0!==s&&s,c=e.disableEscapeKeyDown,u=void 0!==c&&c,d=e.fullScreen,p=void 0!==d&&d,h=e.fullWidth,f=void 0!==h&&h,m=e.maxWidth,g=void 0===m?"sm":m,v=e.onBackdropClick,b=e.onClose,y=e.onEnter,_=e.onEntered,x=e.onEntering,w=e.onEscapeKeyDown,E=e.onExit,T=e.onExited,C=e.onExiting,k=e.open,S=e.PaperComponent,O=void 0===S?Xn:S,A=e.PaperProps,j=void 0===A?{}:A,P=e.scroll,I=void 0===P?"paper":P,L=e.TransitionComponent,R=void 0===L?Lo:L,N=e.transitionDuration,D=void 0===N?ES:N,M=e.TransitionProps,B=e["aria-describedby"],Q=e["aria-labelledby"],U=(0,Yn.c)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),F=i.useRef();return i.createElement(ti,(0,at.c)({className:(0,kn.c)(o.root,a),BackdropComponent:No,BackdropProps:(0,at.c)({transitionDuration:D},n),closeAfterTransition:!0},l?{disableBackdropClick:l}:{},{disableEscapeKeyDown:u,onEscapeKeyDown:w,onClose:b,open:k,ref:t},U),i.createElement(R,(0,at.c)({appear:!0,in:k,timeout:D,onEnter:y,onEntering:x,onEntered:_,onExit:E,onExiting:C,onExited:T,role:"none presentation"},M),i.createElement("div",{className:(0,kn.c)(o.container,o["scroll".concat((0,Zn.c)(I))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===F.current&&(F.current=null,v&&v(e),!l&&b&&b(e,"backdropClick"))},onMouseDown:function(e){F.current=e.target}},i.createElement(O,(0,at.c)({elevation:24,role:"dialog","aria-describedby":B,"aria-labelledby":Q},j,{className:(0,kn.c)(o.paper,o["paperScroll".concat((0,Zn.c)(I))],o["paperWidth".concat((0,Zn.c)(String(g)))],j.className,p&&o.paperFullScreen,f&&o.paperFullWidth)}),r))))}));const CS=(0,Gn.c)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":(0,nr.c)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":(0,nr.c)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":(0,nr.c)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":(0,nr.c)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":(0,nr.c)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(TS);function kS(e,t){return Array.isArray(t)?t.every((function(t){return-1!==e.indexOf(t)})):-1!==e.indexOf(t)}var SS=An((function(e){return{staticWrapperRoot:{overflow:"hidden",minWidth:310,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}}}),{name:"MuiPickersStaticWrapper"}),OS=function(e){var t=e.children,n=SS();return(0,i.createElement)("div",{className:n.staticWrapperRoot,children:t})},AS=function(e){var t=e.children,n=e.classes,r=e.onAccept,o=e.onDismiss,a=e.onClear,s=e.onSetToday,l=e.okLabel,c=e.cancelLabel,u=e.clearLabel,d=e.todayLabel,p=e.clearable,h=e.showTodayButton,f=(e.showTabs,e.wider),m=(0,Yn.c)(e,["children","classes","onAccept","onDismiss","onClear","onSetToday","okLabel","cancelLabel","clearLabel","todayLabel","clearable","showTodayButton","showTabs","wider"]);return(0,i.createElement)(CS,(0,at.c)({role:"dialog",onClose:o,classes:{paper:(0,kn.c)(n.dialogRoot,f&&n.dialogRootWider)}},m),(0,i.createElement)(wS,{children:t,className:n.dialog}),(0,i.createElement)(_S,{classes:{root:(0,kn.c)((p||h)&&n.withAdditionalAction)}},p&&(0,i.createElement)(c_,{color:"primary",onClick:a},u),h&&(0,i.createElement)(c_,{color:"primary",onClick:s},d),c&&(0,i.createElement)(c_,{color:"primary",onClick:o},c),l&&(0,i.createElement)(c_,{color:"primary",onClick:r},l)))};AS.displayName="ModalDialog";var jS={dialogRoot:{minWidth:310},dialogRootWider:{minWidth:325},dialog:{"&:first-child":{padding:0}},withAdditionalAction:{justifyContent:"flex-start","& > *:first-child":{marginRight:"auto"}}},PS=(0,Gn.c)(jS,{name:"MuiPickersModal"})(AS),IS="undefined"===typeof window?i.useEffect:i.useLayoutEffect;function LS(e,t){var n=t[e.key];n&&(n(),e.preventDefault())}function RS(e,t){var n=(0,i.useRef)(t);n.current=t,IS((function(){if(e){var t=function(e){LS(e,n.current)};return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}}),[e])}var NS=function(e){var t=e.open,n=e.children,r=e.okLabel,o=e.cancelLabel,a=e.clearLabel,s=e.todayLabel,l=e.showTodayButton,c=e.clearable,u=e.DialogProps,d=e.showTabs,p=e.wider,h=e.InputComponent,f=e.DateInputProps,m=e.onClear,g=e.onAccept,v=e.onDismiss,b=e.onSetToday,y=(0,Yn.c)(e,["open","children","okLabel","cancelLabel","clearLabel","todayLabel","showTodayButton","clearable","DialogProps","showTabs","wider","InputComponent","DateInputProps","onClear","onAccept","onDismiss","onSetToday"]);return RS(t,{Enter:g}),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(h,(0,at.c)({},y,f)),(0,i.createElement)(PS,(0,at.c)({wider:p,showTabs:d,open:t,onClear:m,onAccept:g,onDismiss:v,onSetToday:b,clearLabel:a,todayLabel:s,okLabel:r,cancelLabel:o,clearable:c,showTodayButton:l,children:n},u)))};NS.defaultProps={okLabel:"OK",cancelLabel:"Cancel",clearLabel:"Clear",todayLabel:"Today",clearable:!1,showTodayButton:!1};var DS=function(e){var t=e.open,n=(e.wider,e.children),r=e.PopoverProps,o=(e.onClear,e.onDismiss),a=(e.onSetToday,e.onAccept),s=(e.showTabs,e.DateInputProps),l=e.InputComponent,c=(0,Yn.c)(e,["open","wider","children","PopoverProps","onClear","onDismiss","onSetToday","onAccept","showTabs","DateInputProps","InputComponent"]),u=(0,i.useRef)();return RS(t,{Enter:a}),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(l,(0,at.c)({},c,s,{inputRef:u})),(0,i.createElement)(Ei,(0,at.c)({open:t,onClose:o,anchorEl:u.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:n},r)))};var MS=(0,i.createContext)(null),BS=function(e){var t=e.variant,n=(0,Yn.c)(e,["variant"]),r=function(e){switch(e){case"inline":return DS;case"static":return OS;default:return NS}}(t);return(0,i.createElement)(MS.Provider,{value:t||"dialog"},(0,i.createElement)(r,n))},QS=function(e){function t(t){var n;return(n=e.call(this,t)||this)._state=null,n._del=!1,n._handleChange=function(e){var t=n.state.value,r=e.target.value,i=e.target,o=r.length>t.length,a=n._del,s=t===n.props.format(r);n.setState({value:r,local:!0},(function(){var e=i.selectionStart,l=n.props.refuse||/[^\d]+/g,c=r.substr(0,e).replace(l,"");if(n._state={input:i,before:c,op:o,di:a&&s,del:a},n.props.replace&&n.props.replace(t)&&o&&!s){for(var u=-1,d=0;d!==c.length;++d)u=Math.max(u,r.toLowerCase().indexOf(c[d].toLowerCase(),u+1));var p=r.substr(u+1).replace(l,"")[0];u=r.indexOf(p,u+1),r=""+r.substr(0,u)+r.substr(u+1)}var h=n.props.format(r);t===h?n.setState({value:r}):n.props.onChange(h)}))},n._hKD=function(e){"Delete"===e.code&&(n._del=!0)},n._hKU=function(e){"Delete"===e.code&&(n._del=!1)},n.state={value:t.value,local:!0},n}(0,rt.c)(t,e),t.getDerivedStateFromProps=function(e,t){return{value:t.local?t.value:e.value,local:!1}};var n=t.prototype;return n.render=function(){var e=this._handleChange,t=this.state.value;return(0,this.props.children)({value:t,onChange:e})},n.componentWillUnmount=function(){document.removeEventListener("keydown",this._hKD),document.removeEventListener("keyup",this._hKU)},n.componentDidMount=function(){document.addEventListener("keydown",this._hKD),document.addEventListener("keyup",this._hKU)},n.componentDidUpdate=function(){var e=this._state;if(e){for(var t=this.state.value,n=-1,r=0;r!==e.before.length;++r)n=Math.max(n,t.toLowerCase().indexOf(e.before[r].toLowerCase(),n+1));if(this.props.replace&&(e.op||e.del&&!e.di))for(;t[n+1]&&(this.props.refuse||/[^\d]+/).test(t[n+1]);)n+=1;e.input.selectionStart=e.input.selectionEnd=n+1+(e.di?1:0)}this._state=null},t}(i.Component),US=n(4484);function FS(e,t){if(t&&("object"===(0,Pr.c)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,ur.c)(e)}function zS(e){return zS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zS(e)}var qS=n(7796);function HS(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&&(0,qS.c)(e,t)}var WS=An((function(e){return{day:{width:36,height:36,fontSize:e.typography.caption.fontSize,margin:"0 2px",color:e.palette.text.primary,fontWeight:e.typography.fontWeightMedium,padding:0},hidden:{opacity:0,pointerEvents:"none"},current:{color:e.palette.primary.main,fontWeight:600},daySelected:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{backgroundColor:e.palette.primary.main}},dayDisabled:{pointerEvents:"none",color:e.palette.text.hint}}}),{name:"MuiPickersDay"}),GS=function(e){var t=e.children,n=e.disabled,r=e.hidden,o=e.current,a=e.selected,s=(0,Yn.c)(e,["children","disabled","hidden","current","selected"]),l=WS(),c=(0,kn.c)(l.day,r&&l.hidden,o&&l.current,a&&l.daySelected,n&&l.dayDisabled);return(0,i.createElement)(Cr,(0,at.c)({className:c,tabIndex:r||n?-1:0},s),(0,i.createElement)(Or,{variant:"body2",color:"inherit"},t))};GS.displayName="Day",GS.defaultProps={disabled:!1,hidden:!1,current:!1,selected:!1};const VS=GS;function $S(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var KS=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=$S(n.className,r):n.setAttribute("class",$S(n.className&&n.className.baseVal||"",r)));var n,r}))},YS=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i *":{position:"absolute",top:0,right:0,left:0}},"slideEnter-left":{willChange:"transform",transform:"translate(100%)"},"slideEnter-right":{willChange:"transform",transform:"translate(-100%)"},slideEnterActive:{transform:"translate(0%)",transition:t},slideExit:{transform:"translate(0%)"},"slideExitActiveLeft-left":{willChange:"transform",transform:"translate(-200%)",transition:t},"slideExitActiveLeft-right":{willChange:"transform",transform:"translate(200%)",transition:t}}}),{name:"MuiPickersSlideTransition"}),nO=function(e){var t=e.children,n=e.transKey,r=e.slideDirection,o=e.className,a=void 0===o?null:o,s=tO(),l={exit:s.slideExit,enterActive:s.slideEnterActive,enter:s["slideEnter-"+r],exitActive:s["slideExitActiveLeft-"+r]};return(0,i.createElement)(vr,{className:(0,kn.c)(s.transitionContainer,a),childFactory:function(e){return(0,i.cloneElement)(e,{classNames:l})}},(0,i.createElement)(ZS,{mountOnEnter:!0,unmountOnExit:!0,key:n+r,timeout:350,classNames:l,children:t}))},rO=An((function(e){return{switchHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:e.spacing(.5),marginBottom:e.spacing(1)},transitionContainer:{width:"100%",overflow:"hidden",height:23},iconButton:{zIndex:1,backgroundColor:e.palette.background.paper},daysHeader:{display:"flex",justifyContent:"center",alignItems:"center",maxHeight:16},dayLabel:{width:36,margin:"0 2px",textAlign:"center",color:e.palette.text.hint}}}),{name:"MuiPickersCalendarHeader"}),iO=function(e){var t=e.currentMonth,n=e.onMonthChange,r=e.leftArrowIcon,o=e.rightArrowIcon,a=e.leftArrowButtonProps,s=e.rightArrowButtonProps,l=e.disablePrevMonth,c=e.disableNextMonth,u=e.slideDirection,d=bS(),p=rO(),h="rtl"===Pn().direction;return(0,i.createElement)("div",null,(0,i.createElement)("div",{className:p.switchHeader},(0,i.createElement)(Cr,(0,at.c)({},a,{disabled:l,onClick:function(){return n(d.getPreviousMonth(t),"right")},className:p.iconButton}),h?o:r),(0,i.createElement)(nO,{slideDirection:u,transKey:t.toString(),className:p.transitionContainer},(0,i.createElement)(Or,{align:"center",variant:"body1"},d.getCalendarHeaderText(t))),(0,i.createElement)(Cr,(0,at.c)({},s,{disabled:c,onClick:function(){return n(d.getNextMonth(t),"left")},className:p.iconButton}),h?r:o)),(0,i.createElement)("div",{className:p.daysHeader},d.getWeekdays().map((function(e,t){return(0,i.createElement)(Or,{key:t,variant:"caption",className:p.dayLabel},e)}))))};iO.displayName="CalendarHeader",iO.defaultProps={leftArrowIcon:(0,i.createElement)((function(e){return i.createElement(US.c,e,i.createElement("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),i.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))}),null),rightArrowIcon:(0,i.createElement)((function(e){return i.createElement(US.c,e,i.createElement("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),i.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))}),null),disablePrevMonth:!1,disableNextMonth:!1};var oO=function(e){var t=e.onKeyDown;return(0,i.useEffect)((function(){return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}),[t]),null},aO=function(e){function t(){var e,n;zr(this,t);for(var r=arguments.length,o=new Array(r),a=0;a1&&void 0!==arguments[1])||arguments[1],r=n.props,i=r.date,o=r.utils;n.props.onChange(o.mergeDateAndTime(e,i),t)},n.moveToDay=function(e){var t=n.props.utils;e&&!n.shouldDisableDate(e)&&(t.getMonth(e)!==t.getMonth(n.state.currentMonth)&&n.handleChangeMonth(t.startOfMonth(e),"left"),n.handleDaySelect(e,!1))},n.handleKeyDown=function(e){var t=n.props,r=t.theme,i=t.date,o=t.utils;LS(e,{ArrowUp:function(){return n.moveToDay(o.addDays(i,-7))},ArrowDown:function(){return n.moveToDay(o.addDays(i,7))},ArrowLeft:function(){return n.moveToDay(o.addDays(i,"ltr"===r.direction?-1:1))},ArrowRight:function(){return n.moveToDay(o.addDays(i,"ltr"===r.direction?1:-1))}})},n.renderWeeks=function(){var e=n.props,t=e.utils,r=e.classes;return t.getWeekArray(n.state.currentMonth).map((function(e){return(0,i.createElement)("div",{key:"week-".concat(e[0].toString()),className:r.week},n.renderDays(e))}))},n.renderDays=function(e){var t=n.props,r=t.date,o=t.renderDay,a=t.utils,s=a.date(),l=a.startOfDay(r),c=a.getMonth(n.state.currentMonth);return e.map((function(e){var t=n.shouldDisableDate(e),r=a.getMonth(e)===c,u=(0,i.createElement)(VS,{disabled:t,current:a.isSameDay(e,s),hidden:!r,selected:a.isSameDay(l,e)},a.getDayText(e));return o&&(u=o(e,l,r,u)),(0,i.createElement)(eO,{value:e,key:e.toString(),disabled:t,dayInCurrentMonth:r,onSelect:n.handleDaySelect},u)}))},n}return HS(t,e),(0,qr.c)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.date,n=e.minDate,r=e.maxDate,i=e.utils,o=e.disablePast,a=e.disableFuture;if(this.shouldDisableDate(t)){var s=function(e){var t=e.date,n=e.utils,r=e.minDate,i=e.maxDate,o=e.disableFuture,a=e.disablePast,s=e.shouldDisableDate,l=n.startOfDay(n.date());a&&n.isBefore(r,l)&&(r=l),o&&n.isAfter(i,l)&&(i=l);var c=t,u=t;for(n.isBefore(t,r)&&(c=n.date(r),u=null),n.isAfter(t,i)&&(u&&(u=n.date(i)),c=null);c||u;){if(c&&n.isAfter(c,i)&&(c=null),u&&n.isBefore(u,r)&&(u=null),c){if(!s(c))return c;c=n.addDays(c,1)}if(u){if(!s(u))return u;u=n.addDays(u,-1)}}return n.date()}({date:t,utils:i,minDate:i.date(n),maxDate:i.date(r),disablePast:Boolean(o),disableFuture:Boolean(a),shouldDisableDate:this.shouldDisableDate});this.handleDaySelect(s,!1)}}},{key:"render",value:function(){var e=this.state,t=e.currentMonth,n=e.slideDirection,r=this.props,o=r.classes,a=r.allowKeyboardControl,s=r.leftArrowButtonProps,l=r.leftArrowIcon,c=r.rightArrowButtonProps,u=r.rightArrowIcon,d=r.loadingIndicator,p=d||(0,i.createElement)(r_,null);return(0,i.createElement)(i.Fragment,null,a&&"static"!==this.context&&(0,i.createElement)(oO,{onKeyDown:this.handleKeyDown}),(0,i.createElement)(iO,{currentMonth:t,slideDirection:n,onMonthChange:this.handleChangeMonth,leftArrowIcon:l,leftArrowButtonProps:s,rightArrowIcon:u,rightArrowButtonProps:c,disablePrevMonth:this.shouldDisablePrevMonth(),disableNextMonth:this.shouldDisableNextMonth()}),(0,i.createElement)(nO,{slideDirection:n,transKey:t.toString(),className:o.transitionContainer},(0,i.createElement)(i.Fragment,null,this.state.loadingQueue>0&&(0,i.createElement)("div",{className:o.progressContainer},p)||(0,i.createElement)("div",null,this.renderWeeks()))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.utils,r=e.date;if(!n.isEqual(r,t.lastDate)){var i=n.getMonth(r),o=t.lastDate||r,a=n.getMonth(o);return{lastDate:r,currentMonth:e.utils.startOfMonth(r),slideDirection:i===a?t.slideDirection:n.isAfterDay(r,o)?"left":"right"}}return null}}]),t}(i.Component);aO.contextType=MS,aO.defaultProps={minDate:new Date("1900-01-01"),maxDate:new Date("2100-01-01"),disablePast:!1,disableFuture:!1,allowKeyboardControl:!0};var sO,lO=(0,Gn.c)((function(e){return{transitionContainer:{minHeight:216,marginTop:e.spacing(1.5)},progressContainer:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},week:{display:"flex",justifyContent:"center"}}}),{name:"MuiPickersCalendar",withTheme:!0})(function(e){var t=function(t){var n=bS();return(0,i.createElement)(e,(0,at.c)({utils:n},t))};return t.displayName="WithUtils(".concat(e.displayName||e.name,")"),t}(aO));!function(e){e.HOURS="hours",e.MINUTES="minutes",e.SECONDS="seconds"}(sO||(sO={}));var cO=sO,uO=function(e){function t(){var e,n;zr(this,t);for(var r=arguments.length,i=new Array(r),o=0;o12&&(o-=360),{height:r?"26%":"40%",transform:"rotateZ(".concat(o,"deg)")}},n}return HS(t,e),(0,qr.c)(t,[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.hasSelected;return(0,i.createElement)("div",{style:this.getAngleStyle(),className:(0,kn.c)(t.pointer,this.state.toAnimateTransform&&t.animateTransform)},(0,i.createElement)("div",{className:(0,kn.c)(t.thumb,n&&t.noPoint)}))}}]),t}(i.Component);uO.getDerivedStateFromProps=function(e,t){return e.type!==t.previousType?{toAnimateTransform:!0,previousType:e.type}:{toAnimateTransform:!1,previousType:e.type}};var dO=(0,Gn.c)((function(e){return{pointer:{width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},animateTransform:{transition:e.transitions.create(["transform","height"])},thumb:{width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"100%",position:"absolute",top:-21,left:-15,border:"14px solid ".concat(e.palette.primary.main),boxSizing:"content-box"},noPoint:{backgroundColor:e.palette.primary.main}}}),{name:"MuiPickersClockPointer"})(uO),pO={x:130,y:130},hO=pO.x-pO.x,fO=0-pO.y,mO=function(e,t,n){var r=t-pO.x,i=n-pO.y,o=Math.atan2(hO,fO)-Math.atan2(r,i),a=57.29577951308232*o;a=Math.round(a/e)*e,a%=360;var s=Math.floor(a/e)||0,l=Math.pow(r,2)+Math.pow(i,2);return{value:s,distance:Math.sqrt(l)}},gO=function(e){function t(){var e,n;zr(this,t);for(var r=arguments.length,i=new Array(r),o=0;o1&&void 0!==arguments[1]&&arguments[1],n=e.offsetX,r=e.offsetY;if("undefined"===typeof n){var i=e.target.getBoundingClientRect();n=e.changedTouches[0].clientX-i.left,r=e.changedTouches[0].clientY-i.top}var o=this.props.type===cO.SECONDS||this.props.type===cO.MINUTES?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=mO(6*n,e,t).value;return r*n%60}(n,r,this.props.minutesStep):function(e,t,n){var r=mO(30,e,t),i=r.value,o=r.distance;return i=i||12,n?i%=12:o<90&&(i+=12,i%=24),i}(n,r,Boolean(this.props.ampm));this.props.onChange(o,t)}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.value,r=e.children,o=e.type,a=!e.ampm&&o===cO.HOURS&&(n<1||n>12);return(0,i.createElement)("div",{className:t.container},(0,i.createElement)("div",{className:t.clock},(0,i.createElement)("div",{role:"menu",tabIndex:-1,className:t.squareMask,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,onMouseUp:this.handleMouseUp,onMouseMove:this.handleMove}),(0,i.createElement)("div",{className:t.pin}),(0,i.createElement)(dO,{type:o,value:n,isInner:a,hasSelected:this.hasSelected()}),r))}}]),t}(i.Component);gO.defaultProps={ampm:!1,minutesStep:1};var vO=(0,Gn.c)((function(e){return{container:{display:"flex",justifyContent:"center",alignItems:"flex-end",margin:"".concat(e.spacing(2),"px 0 ").concat(e.spacing(1),"px")},clock:{backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:260,width:260,position:"relative",pointerEvents:"none"},squareMask:{width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:"none",touchActions:"none",userSelect:"none","&:active":{cursor:"move"}},pin:{width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}}}),{name:"MuiPickersClock"})(gO),bO={0:[0,40],1:[55,19.6],2:[94.4,59.5],3:[109,114],4:[94.4,168.5],5:[54.5,208.4],6:[0,223],7:[-54.5,208.4],8:[-94.4,168.5],9:[-109,114],10:[-94.4,59.5],11:[-54.5,19.6],12:[0,5],13:[36.9,49.9],14:[64,77],15:[74,114],16:[64,151],17:[37,178],18:[0,188],19:[-37,178],20:[-64,151],21:[-74,114],22:[-64,77],23:[-37,50]},yO=An((function(e){var t=e.spacing(4);return{clockNumber:{width:t,height:32,userSelect:"none",position:"absolute",left:"calc((100% - ".concat("number"===typeof t?"".concat(t,"px"):t,") / 2)"),display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:"light"===e.palette.type?e.palette.text.primary:e.palette.text.hint},clockNumberSelected:{color:e.palette.primary.contrastText}}}),{name:"MuiPickersClockNumber"}),_O=function(e){var t=e.selected,n=e.label,r=e.index,o=e.isInner,a=yO(),s=(0,kn.c)(a.clockNumber,t&&a.clockNumberSelected),l=(0,i.useMemo)((function(){var e=bO[r];return{transform:"translate(".concat(e[0],"px, ").concat(e[1],"px")}}),[r]);return(0,i.createElement)(Or,{component:"span",className:s,variant:o?"body2":"body1",style:l,children:n})},xO=function(e){for(var t=e.ampm,n=e.utils,r=e.date,o=n.getHours(r),a=[],s=t?12:23,l=function(e){return t?12===e?12===o||0===o:o===e||o-12===e:o===e},c=t?1:0;c<=s;c+=1){var u=c.toString();0===c&&(u="00");var d={index:c,label:n.formatNumber(u),selected:l(c),isInner:!t&&(0===c||c>12)};a.push((0,i.createElement)(_O,(0,at.c)({key:c},d)))}return a},wO=function(e){var t=e.value,n=e.utils.formatNumber;return[(0,i.createElement)(_O,{label:n("00"),selected:0===t,index:12,key:12}),(0,i.createElement)(_O,{label:n("05"),selected:5===t,index:1,key:1}),(0,i.createElement)(_O,{label:n("10"),selected:10===t,index:2,key:2}),(0,i.createElement)(_O,{label:n("15"),selected:15===t,index:3,key:3}),(0,i.createElement)(_O,{label:n("20"),selected:20===t,index:4,key:4}),(0,i.createElement)(_O,{label:n("25"),selected:25===t,index:5,key:5}),(0,i.createElement)(_O,{label:n("30"),selected:30===t,index:6,key:6}),(0,i.createElement)(_O,{label:n("35"),selected:35===t,index:7,key:7}),(0,i.createElement)(_O,{label:n("40"),selected:40===t,index:8,key:8}),(0,i.createElement)(_O,{label:n("45"),selected:45===t,index:9,key:9}),(0,i.createElement)(_O,{label:n("50"),selected:50===t,index:10,key:10}),(0,i.createElement)(_O,{label:n("55"),selected:55===t,index:11,key:11})]},EO=function(e){var t=e.type,n=e.onHourChange,r=e.onMinutesChange,o=e.onSecondsChange,a=e.ampm,s=e.date,l=e.minutesStep,c=bS(),u=(0,i.useMemo)((function(){switch(t){case cO.HOURS:return{value:c.getHours(s),children:xO({date:s,utils:c,ampm:Boolean(a)}),onChange:function(e,t){var r=function(e,t){return t.getHours(e)>=12?"pm":"am"}(s,c),i=function(e,t,n,r){if(n&&(r.getHours(e)>=12?"pm":"am")!==t){var i="am"===t?r.getHours(e)-12:r.getHours(e)+12;return r.setHours(e,i)}return e}(c.setHours(s,e),r,Boolean(a),c);n(i,t)}};case cO.MINUTES:var e=c.getMinutes(s);return{value:e,children:wO({value:e,utils:c}),onChange:function(e,t){var n=c.setMinutes(s,e);r(n,t)}};case cO.SECONDS:var i=c.getSeconds(s);return{value:i,children:wO({value:i,utils:c}),onChange:function(e,t){var n=c.setSeconds(s,e);o(n,t)}};default:throw new Error("You must provide the type for TimePickerView")}}),[a,s,n,r,o,t,c]);return(0,i.createElement)(vO,(0,at.c)({type:t,ampm:a,minutesStep:l},u))};EO.displayName="TimePickerView",EO.defaultProps={ampm:!0,minutesStep:1};(0,i.memo)(EO);function TO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(0,it.oneOfType)([it.object,it.string,it.number,(0,it.instanceOf)(Date)]),(0,it.oneOf)(["year","month","day"]);var CO={minDate:new Date("1900-01-01"),maxDate:new Date("2100-01-01"),invalidDateMessage:"Invalid Date Format",minDateMessage:"Date should not be before minimal date",maxDateMessage:"Date should not be after maximal date",allowKeyboardControl:!0};!function(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1];x(e),t&&n?w(e):"inline"!==u&&"static"!==u||(s(e),a&&a(e))}}}),[w,n,a,s,_,u]),C=JO(c,d,e);(0,i.useEffect)((function(){l&&l(C,c)}),[l,C,c]);var k=KO(g,v,d,null===c,e),S={pickerProps:T,inputProps:(0,i.useMemo)((function(){return{inputValue:k,validationError:C,openPicker:function(){return!o&&!r&&f(!0)}}}),[r,k,o,f,C]),wrapperProps:E};return(0,i.useDebugValue)(S),S}function iA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oA(e){for(var t=1;t1?"s":"")+" required, but only "+t.length+" present")}function gA(e){mA(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,Pr.c)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function vA(e,t){mA(2,arguments);var n=gA(e),r=fA(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function bA(e,t){mA(2,arguments);var n=gA(e),r=fA(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());return o.setMonth(n.getMonth()+r+1,0),i>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function yA(e,t){return mA(2,arguments),bA(e,12*fA(t))}function _A(e){mA(1,arguments);var t=gA(e);return t.setHours(23,59,59,999),t}pA.defaultProps=uA,hA.defaultProps=uA;var xA={};function wA(){return xA}function EA(e,t){var n,r,i,o,a,s,l,c;mA(1,arguments);var u=wA(),d=fA(null!==(n=null!==(r=null!==(i=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=gA(e),h=p.getDay(),f=6+(h=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}var AA=6048e5;function jA(e){mA(1,arguments);var t=gA(e),n=SA(t).getTime()-function(e){mA(1,arguments);var t=OA(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),SA(n)}(t).getTime();return Math.round(n/AA)+1}function PA(e,t){var n,r,i,o,a,s,l,c;mA(1,arguments);var u=wA(),d=fA(null!==(n=null!==(r=null!==(i=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=gA(e),h=p.getUTCDay(),f=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(d+1,0,h),f.setUTCHours(0,0,0,0);var m=PA(f,t),g=new Date(0);g.setUTCFullYear(d,0,h),g.setUTCHours(0,0,0,0);var v=PA(g,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}var LA=6048e5;function RA(e,t){mA(1,arguments);var n=gA(e),r=PA(n,t).getTime()-function(e,t){var n,r,i,o,a,s,l,c;mA(1,arguments);var u=wA(),d=fA(null!==(n=null!==(r=null!==(i=null!==(o=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null===t||void 0===t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),p=IA(e,t),h=new Date(0);return h.setUTCFullYear(p,0,d),h.setUTCHours(0,0,0,0),PA(h,t)}(n,t).getTime();return Math.round(r/LA)+1}function NA(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return NA("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):NA(n+1,2)},d:function(e,t){return NA(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return NA(e.getUTCHours()%12||12,t.length)},H:function(e,t){return NA(e.getUTCHours(),t.length)},m:function(e,t){return NA(e.getUTCMinutes(),t.length)},s:function(e,t){return NA(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return NA(Math.floor(r*Math.pow(10,n-3)),t.length)}};const MA=DA;var BA="midnight",QA="noon",UA="morning",FA="afternoon",zA="evening",qA="night",HA={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return MA.y(e,t)},Y:function(e,t,n,r){var i=IA(e,r),o=i>0?i:1-i;return"YY"===t?NA(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):NA(o,t.length)},R:function(e,t){return NA(OA(e),t.length)},u:function(e,t){return NA(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return NA(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return NA(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return MA.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return NA(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=RA(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):NA(i,t.length)},I:function(e,t,n){var r=jA(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):NA(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):MA.d(e,t)},D:function(e,t,n){var r=function(e){mA(1,arguments);var t=gA(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):NA(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return NA(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return NA(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return NA(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?QA:0===i?BA:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?zA:i>=12?FA:i>=4?UA:qA,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return MA.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):MA.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):NA(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):NA(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):MA.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):MA.s(e,t)},S:function(e,t){return MA.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return GA(i);case"XXXX":case"XX":return VA(i);default:return VA(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return GA(i);case"xxxx":case"xx":return VA(i);default:return VA(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+WA(i,":");default:return"GMT"+VA(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+WA(i,":");default:return"GMT"+VA(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return NA(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return NA((r._originalDate||e).getTime(),t.length)}};function WA(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+NA(o,2)}function GA(e,t){return e%60===0?(e>0?"-":"+")+NA(Math.abs(e)/60,2):VA(e,t)}function VA(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+NA(Math.floor(i/60),2)+n+NA(i%60,2)}const $A=HA;var KA=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},YA=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},ZA={p:YA,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return KA(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",KA(i,t)).replace("{{time}}",YA(o,t))}};const JA=ZA;function XA(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var ej=["D","DD"],tj=["YY","YYYY"];function nj(e){return-1!==ej.indexOf(e)}function rj(e){return-1!==tj.indexOf(e)}function ij(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var oj={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const aj=function(e,t,n){var r,i=oj[e];return r="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function sj(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const lj={date:sj({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:sj({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:sj({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var cj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const uj=function(e,t,n,r){return cj[e]};function dj(e){return function(t,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!==n&&void 0!==n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const pj={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:dj({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:dj({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:dj({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:dj({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:dj({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function hj(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(fj.matchPattern);if(!n)return null;var r=n[0],i=e.match(fj.parsePattern);if(!i)return null;var o=fj.valueCallback?fj.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:hj({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:hj({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:hj({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:hj({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:hj({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const gj={code:"en-US",formatDistance:aj,formatLong:lj,formatRelative:uj,localize:pj,match:mj,options:{weekStartsOn:0,firstWeekContainsDate:1}};var vj=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bj=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yj=/^'([^]*?)'?$/,_j=/''/g,xj=/[a-zA-Z]/;function wj(e,t,n){var r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,b,y,_;mA(2,arguments);var x=String(t),w=wA(),E=null!==(r=null!==(i=null===n||void 0===n?void 0:n.locale)&&void 0!==i?i:w.locale)&&void 0!==r?r:gj,T=fA(null!==(o=null!==(a=null!==(s=null!==(l=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null===n||void 0===n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:w.firstWeekContainsDate)&&void 0!==a?a:null===(d=w.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==o?o:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=fA(null!==(h=null!==(f=null!==(m=null!==(g=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==g?g:null===n||void 0===n||null===(v=n.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==m?m:w.weekStartsOn)&&void 0!==f?f:null===(y=w.locale)||void 0===y||null===(_=y.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==h?h:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var k=gA(e);if(!CA(k))throw new RangeError("Invalid time value");var S=kA(k,XA(k)),O={firstWeekContainsDate:T,weekStartsOn:C,locale:E,_originalDate:k};return x.match(bj).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,JA[t])(e,E.formatLong):e})).join("").match(vj).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return function(e){var t=e.match(yj);if(!t)return e;return t[1].replace(_j,"'")}(r);var o=$A[i];if(o)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!rj(r)||ij(r,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!nj(r)||ij(r,t,String(e)),o(S,r,E.localize,O);if(i.match(xj))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("")}function Ej(e,t){mA(2,arguments);var n=gA(e),r=gA(t);return n.getTime()>r.getTime()}function Tj(e,t){mA(2,arguments);var n=gA(e),r=gA(t);return n.getTime()=e.length?{done:!0}:{done:!1,value:e[r++]}},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 o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Oj(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Aj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Aj=function(){return!!e})()}function jj(e){var t=Aj();return function(){var n,r=zS(e);if(t){var i=zS(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return FS(this,n)}}var Pj=function(){function e(){zr(this,e),(0,nr.c)(this,"priority",void 0),(0,nr.c)(this,"subPriority",0)}return(0,qr.c)(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),Ij=function(e){HS(n,e);var t=jj(n);function n(e,r,i,o,a){var s;return zr(this,n),(s=t.call(this)).value=e,s.validateValue=r,s.setValue=i,s.priority=o,a&&(s.subPriority=a),s}return(0,qr.c)(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(Pj),Lj=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}function fP(e){return e%400===0||e%4===0&&e%100!==0}var mP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var i=hP(n.year,r);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(Rj),gP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0}},{key:"set",value:function(e,t,n,r){var i=IA(e,r);if(n.isTwoDigitYear){var o=hP(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),PA(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),PA(e,r)}}]),n}(Rj),vP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(Rj),_P=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(Rj),xP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(Rj),wP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(Rj);var EP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&t<=53}},{key:"set",value:function(e,t,n,r){return PA(function(e,t,n){mA(2,arguments);var r=gA(e),i=fA(t),o=RA(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)}}]),n}(Rj);var TP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&t<=53}},{key:"set",value:function(e,t,n){return SA(function(e,t){mA(2,arguments);var n=gA(e),r=fA(t),i=jA(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n))}}]),n}(Rj),CP=[31,28,31,30,31,30,31,31,30,31,30,31],kP=[31,29,31,30,31,30,31,31,30,31,30,31],SP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&t<=kP[r]:t>=1&&t<=CP[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(Rj),OP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(Rj);function AP(e,t,n){var r,i,o,a,s,l,c,u;mA(2,arguments);var d=wA(),p=fA(null!==(r=null!==(i=null!==(o=null!==(a=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==a?a:null===n||void 0===n||null===(s=n.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:d.weekStartsOn)&&void 0!==i?i:null===(c=d.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=gA(e),f=fA(t),m=((f%7+7)%7=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=AP(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Rj),PP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=AP(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Rj),IP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=AP(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Rj);var LP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){mA(2,arguments);var n=fA(t);n%7===0&&(n-=7);var r=gA(e),i=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+i),r}(e,n),e.setUTCHours(0,0,0,0),e}}]),n}(Rj),RP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(Rj),BP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(Rj),QP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(Rj),UP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(Rj),FP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(Rj),zP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(Rj),qP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=fA(null!==(f=null!==(m=null!==(g=null!==(v=null===r||void 0===r?void 0:r.weekStartsOn)&&void 0!==v?v:null===r||void 0===r||null===(b=r.locale)||void 0===b||null===(y=b.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==g?g:T.weekStartsOn)&&void 0!==m?m:null===(_=T.locale)||void 0===_||null===(x=_.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==f?f:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===E)return""===w?gA(n):new Date(NaN);var O,A={firstWeekContainsDate:k,weekStartsOn:S,locale:C},j=[new Lj],P=E.match(YP).map((function(e){var t=e[0];return t in JA?(0,JA[t])(e,C.formatLong):e})).join("").match(KP),I=[],L=Sj(P);try{var R=function(){var t=O.value;null!==r&&void 0!==r&&r.useAdditionalWeekYearTokens||!rj(t)||ij(t,E,e),null!==r&&void 0!==r&&r.useAdditionalDayOfYearTokens||!nj(t)||ij(t,E,e);var n=t[0],i=$P[n];if(i){var o=i.incompatibleTokens;if(Array.isArray(o)){var a=I.find((function(e){return o.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===i.incompatibleTokens&&I.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));I.push({token:n,fullToken:t});var s=i.run(w,t,C.match,A);if(!s)return{v:new Date(NaN)};j.push(s.setter),w=s.rest}else{if(n.match(eI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(ZP)[1].replace(JP,"'")),0!==w.indexOf(t))return{v:new Date(NaN)};w=w.slice(t.length)}};for(L.s();!(O=L.n()).done;){var N=R();if("object"===(0,Pr.c)(N))return N.v}}catch(H){L.e(H)}finally{L.f()}if(w.length>0&&XP.test(w))return new Date(NaN);var D=j.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return j.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),M=gA(n);if(isNaN(M.getTime()))return new Date(NaN);var B,Q=kA(M,XA(M)),U={},F=Sj(D);try{for(F.s();!(B=F.n()).done;){var z=B.value;if(!z.validate(Q,A))return new Date(NaN);var q=z.set(Q,U,A);Array.isArray(q)?(Q=q[0],Oj(U,q[1])):Q=q}}catch(H){F.e(H)}finally{F.f()}return Q}function nI(e,t){mA(2,arguments);var n=gA(e),r=fA(t),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var s=function(e){mA(1,arguments);var t=gA(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}(a);return n.setMonth(r,Math.min(o,s)),n}function rI(e){mA(1,arguments);var t=gA(e);return t.setDate(1),t.setHours(0,0,0,0),t}function iI(e){mA(1,arguments);var t=gA(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function oI(e,t){var n,r,i,o,a,s,l,c;mA(1,arguments);var u=wA(),d=fA(null!==(n=null!==(r=null!==(i=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=gA(e),h=p.getDay(),f=(h{let{onChange:t,value:n,name:r,disabled:i,dateStart:o,dateEnd:a}=e;return(0,Ap.jsx)(gS,{utils:lI,children:(0,Ap.jsx)(hA,{disabled:i,margin:"normal",id:"date-picker-dialog",label:(0,Ap.jsx)(Lp,{en:"Select date",fr:"S\xe9lectionner une date"}),format:"yyyy-MM-dd",value:n,minDate:o||"1100-01-01",maxDate:a,onChange:e=>t({target:{name:r,value:cI(e)}}),KeyboardButtonProps:{"aria-label":"change date"}})})},dI=(0,In.c)(i.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),pI=[{en:"abundance and biomass",fr:"abondance et biomasse"},{en:"sea access",fr:"acc\xe8s \xe0 la mer"},{en:"decision making",fr:"aide \xe0 la d\xe9cision"},{en:"protected areas",fr:"aires prot\xe9g\xe9es"},{en:"knowledge improvement",fr:"am\xe9lioration des connaissances"},{en:"land-use planning",fr:"am\xe9nagement du territoire"},{en:"water purification",fr:"assainissement des eaux"},{en:"striped bass",fr:"bar ray\xe9"},{en:"watershed",fr:"bassin versant"},{en:"habitat characterization",fr:"caract\xe9risation des habitats"},{en:"coastal characterization",fr:"caract\xe9risation des rives"},{en:"climate change",fr:"changement climatique"},{en:"chlorophyll a",fr:"chlorophylle a"},{en:"resource conservation",fr:"conservation des ressources"},{en:"water consumption",fr:"consommation d'eau"},{en:"sea currents",fr:"courant marin"},{en:"crustacean",fr:"crustac\xe9"},{en:"fresh water flow",fr:"d\xe9bits eau douce"},{en:"water density",fr:"densit\xe9 eau"},{en:"sustainable development",fr:"d\xe9veloppement durable"},{en:"ocean-atmosphere exchange",fr:"\xe9change oc\xe9an-atmosph\xe8re"},{en:"sampling",fr:"\xe9chantillonnage"},{en:"crayfish",fr:"\xe9crevisses"},{en:"mariculture",fr:"entreprises de maricultures"},{en:"coastal erosion",fr:"\xe9rosion des c\xf4tes"},{en:"endangered species",fr:"esp\xe8ces en p\xe9ril"},{en:"invasive species",fr:"esp\xe8ces envahissante"},{en:"coastal flora",fr:"flore c\xf4ti\xe8re"},{en:"fluorescence",fr:"fluorescence"},{en:"spawning",fr:"fraie"},{en:"community management",fr:"gestion communautaire"},{en:"resource management",fr:"gestion des ressources"},{en:"integrated management",fr:"gestion int\xe9gr\xe9e"},{en:"sea ice",fr:"glace de mer"},{en:"sensitive habitat",fr:"habitat sensible"},{en:"important habitat",fr:"habitats important"},{en:"hydrocarbon",fr:"hydrocarbure"},{en:"incidents",fr:"incidents"},{en:"general information",fr:"informations g\xe9n\xe9rales"},{en:"wildlife inventory",fr:"inventaire faunique"},{en:"fish inventory",fr:"inventaire poisson"},{en:"macroalgae",fr:"macroalgue"},{en:"benthic macrofauna",fr:"macrofaune benthique"},{en:"marine mammal",fr:"mammif\xe8res marins"},{en:"marsh",fr:"marais"},{en:"meteorology",fr:"m\xe9t\xe9orologie"},{en:"wetlands",fr:"milieux humides"},{en:"natural environments of interest",fr:"milieux naturels d'int\xe9r\xeat"},{en:"enhancement",fr:"mise en valeur"},{en:"oceanographic missions",fr:"missions oc\xe9anographique"},{en:"mollusc",fr:"mollusque"},{en:"sea level",fr:"niveau eau"},{en:"seabirds",fr:"oiseaux marins"},{en:"migrator birds",fr:"oiseaux migrateurs"},{en:"commercial fisheries",fr:"p\xeaches commerciales"},{en:"experimental fisheries",fr:"p\xeaches exp\xe9rimentales"},{en:"physical-chemical",fr:"physico-chimie"},{en:"phytoplankton",fr:"phytoplancton"},{en:"sea grass",fr:"plantes aquatique"},{en:"fish",fr:"poisson"},{en:"coastal pollution",fr:"pollution c\xf4ti\xe8re"},{en:"atmospheric pressure",fr:"pression atmosph\xe9rique"},{en:"coast protection",fr:"protection des c\xf4tes"},{en:"habitat protection",fr:"protection des habitats"},{en:"water quality",fr:"qualit\xe9 eau"},{en:"radiation",fr:"radiation"},{en:"maritime resources",fr:"ressources maritimes"},{en:"ecological rehabilitation",fr:"r\xe9habilitation \xe9cologique"},{en:"shore restoration",fr:"restauration des rives"},{en:"experimental restoration",fr:"restauration exp\xe9rimentale"},{en:"habitat restoration",fr:"restauration habitat"},{en:"coastal risks",fr:"risques c\xf4tiers"},{en:"citizen data",fr:"saisie citoyenne"},{en:"salinity",fr:"salinit\xe9"},{en:"sediment",fr:"s\xe9diment"},{en:"fishing sites",fr:"sites de p\xeaches"},{en:"annual follow-up",fr:"suivi annuel"},{en:"species tracking",fr:"suivi des esp\xe8ces"},{en:"habitat tracking",fr:"suivi habitat"},{en:"taxonomy",fr:"taxonomie"},{en:"remote sensing",fr:"t\xe9l\xe9d\xe9tection"},{en:"water temperature",fr:"temp\xe9rature de l'eau"},{en:"sea turtles",fr:"tortue de mer"},{en:"land-use",fr:"utilisation du territoire"},{en:"sustainabilty",fr:"utilisation durable"},{en:"waves",fr:"vagues"},{en:"wind",fr:"vents"},{en:"coastal zone",fr:"zone c\xf4ti\xe8re"}];const hI=e=>{let{onChange:t,value:n={en:[],fr:[]},name:r,disabled:o}=e;const{language:a}=mn(),[s,l]=(0,i.useState)(""),[c,u]=(0,i.useState)(""),[d,p]=(0,i.useState)(""),h=["en","fr"];"fr"===a&&h.reverse();const f=h[1];function m(e){return e.map((e=>(e||"").trim())).filter(((e,t,n)=>e&&n.indexOf(e)===t))}const g=(0,i.useCallback)((()=>{const e=s||c;if(e||d){const i={en:n.en,fr:n.fr},o=[...n[a],e],s=[...n[f],d];e&&(i[a]=m(o)),d&&(i[f]=m(s)),t({target:{name:r,value:i}})}l(""),p(""),u("")}),[s,c,d,a]);return(0,Ap.jsxs)(e_,{container:!0,spacing:3,direction:"column",children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(_k,{inputValue:c,onInputChange:(e,t)=>{u(t)},disabled:o,onChange:(e,t)=>p(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fr";if(!e)return"";const n="fr"===t?"en":"fr",r=pI.find((t=>t&&t[n]===e));return r?r[t]:""}(t,f)),value:s||"",freeSolo:!0,options:pI.sort(((e,t)=>e[a].localeCompare(t[a]))).map((e=>e[a])),fullWidth:!0,renderInput:e=>(0,Ap.jsx)(CC,{...e,label:a.toUpperCase()})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{value:d||"",onChange:e=>p(e.target.value),fullWidth:!0,InputProps:{startAdornment:(0,Ap.jsx)(SC,{position:"start",children:f.toUpperCase()})}})}),(0,Ap.jsx)(e_,{item:!0,xs:3,children:(0,Ap.jsx)(c_,{disabled:o||!s&&!d&&!c,startIcon:(0,Ap.jsx)(dI,{}),onClick:g,children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add"}),(0,Ap.jsx)(Ip,{children:"Ajouter"})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:h.filter((e=>{var t;return null===(t=n[e])||void 0===t?void 0:t.length})).map((e=>(0,Ap.jsxs)("div",{style:{margin:"15px"},children:[(0,Ap.jsx)(SC,{position:"start",style:{margin:"10px"},children:e.toUpperCase()}),(0,Ap.jsx)(e_,{container:!0,direction:"row",children:(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(n[e]||[]).map(((i,a)=>{return(0,Ap.jsx)(pC,{disabled:o,label:i,onDelete:(s=i,l=e,()=>{const e={en:n.en,fr:n.fr,[l]:n[l].filter((e=>e!==s))};t({target:{name:r,value:e}})}),color:"primary",style:{margin:"5px"}},a);var s,l}))})})]},e)))})]})},fI=e=>{let{disabled:t,record:n,handleUpdateRecord:r,updateRecord:i,projects:o}=e;const{language:a,region:s}=mn(),l=Cn[s],c=a.toUpperCase(),u=e=>{let{lang:t}=e;return(0,Ap.jsx)("a",{href:l.catalogueURL[t],target:"_blank",rel:"noopener noreferrer",children:l.catalogueURL[t]})},d=Object.values(wx).sort(((e,t)=>(e.title[a]||e.title.en).localeCompare(t.title[a]||e.title.en,a)));return(0,Ap.jsxs)("div",{children:[o.length?(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["What are the projects that this record is part of? To add a project, email"," "]}),(0,Ap.jsxs)(Ip,{children:["Quels sont les projets dont ce disque fait partie? Pour ajouter un projet, e-mail"," "]})]}),(0,Ap.jsx)("a",{href:"mailto:".concat(l.email),children:l.email}),"."]}),(0,Ap.jsx)(sk,{value:n.projects||[],labelSize:6,onChange:i("projects"),options:o,optionLabels:o,disabled:t})]}):(0,Ap.jsx)("div",{}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter an abstract or summary for the dataset. Required in both languages."}),(0,Ap.jsx)(Ip,{children:"D\xe9crivez votre jeu de donn\xe9es."})]}),(0,Ap.jsx)(ek,{passes:Mx(n,"abstract")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["This information will appear as the summary text that is shown for this dataset in the ",l.catalogueTitle.en,". Browsing datasets at ",(0,Ap.jsx)(u,{lang:"en"})," can help provide a sense of the type of descriptions that are typically used for this section of the record. As a general rule, this section should be worded with as little jargon as possible to give potential users an understanding of your dataset. Use a maximum of 500 words. For detailed methods please submit supplemental materials with your data.",(0,Ap.jsx)("br",{}),(0,Ap.jsx)("br",{}),"Suggested abstract points -",(0,Ap.jsx)("div",{children:(0,Ap.jsxs)("ul",{children:[(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"What"}),"- variables that were measured"]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"When"}),"- temporal coverage of the data, frequency of the measurements/observations"]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"Where"}),"- spatial coverage of the data, sampling sites, sensor tracks, laboratory spaces"]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"Why"}),"- a high level statement on the outcome this data is meant to inform"]})]})})]}),(0,Ap.jsxs)(Ip,{children:["Cette description correspond au r\xe9sum\xe9 de votre jeu de donn\xe9es lorsqu\u2019il sera publi\xe9 dans le ",l.catalogueTitle.fr," ",(0,Ap.jsx)(u,{lang:"fr"}),". Pour vous aider \xe0 r\xe9diger ce r\xe9sum\xe9, vous pouvez vous inspirer d\u2019autres jeux de donn\xe9es d\xe9j\xe0 publi\xe9s dans le catalogue. Ce champ doit \xeatre compris par tout type d\u2019utilisateur, nous vous recommandons un maximum de 500 mots, l\u2019utilisation d\u2019un langage accessible et de limiter l\u2019utilisation de vocabulaire de type jargon.",(0,Ap.jsx)("br",{}),(0,Ap.jsx)("br",{}),"Suggestion de points \xe0 aborder dans votre r\xe9sum\xe9:",(0,Ap.jsx)("div",{children:(0,Ap.jsxs)("ul",{children:[(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"Quoi"}),": Les variables qui ont \xe9t\xe9 mesur\xe9es"]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"Quand"}),": Couverture temporelle de la donn\xe9e, fr\xe9quence de la mesure/observation"]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"O\xf9"}),": Couverture spatiale de la donn\xe9e, nom/lieu des sites d\u2019\xe9chantillonnages, d\xe9placement enregistr\xe9s d\u2019un capteur, laboratoire, etc."]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"Comment"}),": \xc9quipement, proc\xe9dures, protocoles, calibration, assurance/contr\xf4le de la qualit\xe9"]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"Qui"}),": Participants, membres du personnel"]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"Pourquoi"}),": Quelques lignes pour d\xe9crire le contexte dans lequel les donn\xe9es ont \xe9t\xe9 \xe9chantillonn\xe9es et comment elles permettent de r\xe9pondre \xe0 la probl\xe9matique (p. ex: quelles informations peuvent-elles apporter)"]})]})})]})]})})]}),(0,Ap.jsx)(qC,{name:"abstract",value:n.abstract,onChange:r("abstract"),disabled:t,multiline:!0})]}),(!n.resourceType||!(n.resourceType.includes("other")&&1===n.resourceType.length))&&(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Please select all the essential ocean variables that are contained in this dataset. Hover over a variable to see its definition."}),(0,Ap.jsxs)(Ip,{children:["Veuillez s\xe9lectionner toutes les variables oc\xe9aniques essentielles contenues dans ce jeu de donn\xe9es. Survolez une variable pour voir sa d\xe9finition ou cliquez sur l\u2019ic\xf4ne ",(0,Ap.jsx)(lx,{})," pour acc\xe9der \xe0 la d\xe9finition compl\xe8te du Syst\xe8me d\u2019Observatoire Global des Oc\xe9ans (GOOS)."]})]}),(0,Ap.jsx)(ek,{passes:Mx(n,"eov")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"If none of these apply you can select Other."}),(0,Ap.jsx)(Ip,{children:"Si aucune de ces variables ne vous semble pertinente, vous pouvez s\xe9lectionner \xab Autre \xbb."})]})})]}),Object.entries(hS).map((e=>{let[r,o]=e;const s=fS.filter((e=>e.category===r)).sort(((e,t)=>e["label ".concat(c)].localeCompare(t["label ".concat(c)],a)));return(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)("h4",{children:o[a]}),(0,Ap.jsx)(sk,{value:n.eov||[],labelSize:6,onChange:i("eov"),options:s.map((e=>e.value)),optionLabels:s.map((e=>(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(ms,{title:e["definition ".concat(c)],children:(0,Ap.jsx)("span",{children:e["label ".concat(c)]})}),e.url&&(0,Ap.jsx)(Cr,{onClick:()=>{window.open(e.url,"_blank").focus()},children:(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Open GOOS definition in new window",fr:"Ouvrir la d\xe9finition GOOS dans une nouvelle fen\xeatre"}),children:(0,Ap.jsx)(lx,{})})}),e.emerging&&(0,Ap.jsx)(Cr,{onClick:()=>{},children:(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"GOOS emerging EOV",fr:"EOV \xe9mergent GOOS"}),children:(0,Ap.jsx)(pS,{})})})]}))),disabled:t})]},o[a])}))]}),(0,Ap.jsx)(Xn,{style:ZC,children:(0,Ap.jsxs)(e_,{container:!0,spacing:3,direction:"column",children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Choose the most specific keywords that apply to your data, or create your own."}),(0,Ap.jsx)(Ip,{children:"Choisissez des mots-cl\xe9s sp\xe9cifiques qui s\u2019appliquent \xe0 vos donn\xe9es ou cr\xe9ez-en des nouveaux."})]}),(0,Ap.jsx)(ek,{passes:Mx(n,"keywords")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:[(0,Ap.jsx)("p",{children:"Keywords are an important way to categorize your data that allow people and other systems to search for datasets that share some important characteristics."}),(0,Ap.jsx)("p",{children:"Keywords should include the place name of the closest community or major geographic location. Ex. Hartley Bay, Gitga\u2019at Territory, in addition to the closest body of water, e.g. Douglas Channel."}),(0,Ap.jsx)("p",{children:"Enter one at a time, clicking 'Add' after each."})]}),(0,Ap.jsxs)(Ip,{children:[(0,Ap.jsx)("p",{children:"Les mots cl\xe9s sont un moyen efficace de cat\xe9goriser vos donn\xe9es pour permettre aux utilisateurs ou \xe0 d'autres syst\xe8mes d\u2019acc\xe9der \xe0 tous les jeux de donn\xe9es partageant une m\xeame caract\xe9ristique."}),(0,Ap.jsx)("p",{children:"Vous pouvez choisir un mot cl\xe9 pr\xe9d\xe9fini (liste d\xe9roulante) en fran\xe7ais puis cliquer sur le bouton de traduction. Vous pouvez aussi cr\xe9er votre propre mot cl\xe9 en r\xe9digeant un texte libre en anglais ou en fran\xe7ais (v\xe9rifiez toujours si son \xe9quivalent existe dans la liste d\xe9roulante afin de diminuer le risque d\u2019\xe9criture multiple d\u2019un m\xeame mot cl\xe9 -ex: phoque Vs Phoques-)."}),(0,Ap.jsx)("p",{children:"Entrez un mot-cl\xe9 \xe0 la fois. Cliquez sur \xab Ajouter \xbb chaque mot saisi."})]})]})})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(hI,{value:n.keywords,onChange:r("keywords"),disabled:t})})]})}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the status of this dataset?"}),(0,Ap.jsx)(Ip,{children:"Quel est l'\xe9tat de ce jeu de donn\xe9es?"})]}),(0,Ap.jsx)(ek,{passes:Mx(n,"progress")}),(0,Ap.jsx)($C,{children:Object.values(nk).map((e=>{let{title:t,text:n}=e;return(0,Ap.jsx)("div",{style:{margin:"10px"},children:"".concat(t[a],": ").concat(n[a])},t[a])}))})]}),(0,Ap.jsx)(Ek,{value:n.progress||"",onChange:r("progress"),options:Object.keys(nk),optionLabels:Object.values(nk).map((e=>{let{title:t}=e;return t[a]})),disabled:t,fullWidth:!1,style:{width:"200px"}})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsx)(KC,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the start date when data was first collected?"}),(0,Ap.jsx)(Ip,{children:"Inscrivez la date de d\xe9but de votre collecte de donn\xe9es."})]})}),(0,Ap.jsx)(uI,{value:n.dateStart||null,onChange:r("dateStart"),disabled:t,dateEnd:n.dateEnd||void 0}),(0,Ap.jsx)("br",{}),(0,Ap.jsx)(KC,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the end date when data was last collected? Leave blank if data collection is ongoing."}),(0,Ap.jsx)(Ip,{children:"Inscrivez la date de fin de votre collecte de donn\xe9es. Laissez le champs vide si la collecte des donn\xe9es toujours est en cours."})]})}),(0,Ap.jsx)(uI,{value:n.dateEnd||null,onChange:r("dateEnd"),disabled:t,dateStart:n.dateStart||void 0})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsx)(KC,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the date when the data was published? Leave blank if dataset hasn't been published."}),(0,Ap.jsx)(Ip,{children:"Quelle est la date de premi\xe8re publication des donn\xe9es ? Laissez le champ vide si les donn\xe9es n'ont pas \xe9t\xe9 publi\xe9es."})]})}),(0,Ap.jsx)(uI,{name:"datePublished",value:n.datePublished||null,onChange:r("datePublished"),disabled:t})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsx)(KC,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"The version number of this dataset. For example, 1.1"}),(0,Ap.jsx)(Ip,{children:"Le num\xe9ro de version de cet ensemble de donn\xe9es. Par exemple, 1.1"})]})}),(0,Ap.jsx)(CC,{value:n.edition,onChange:r("edition"),disabled:t,style:{marginTop:"10px"},fullWidth:!0})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the date when data was revised? Leave blank if dataset hasn't been revised."}),(0,Ap.jsx)(Ip,{children:"Quelle est la date de la derni\xe8re r\xe9vision des donn\xe9es ? Laissez le champ vide si le jeu de donn\xe9es n'a pas \xe9t\xe9 r\xe9vis\xe9."})]}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:(0,Ap.jsx)("p",{children:"Please note that this field does not need to be populated or updated when revisions are made to the metadata, but rather when a new version of the data file or package becomes available, i.e. for time-series data."})}),(0,Ap.jsx)(Ip,{children:(0,Ap.jsx)("p",{children:"Veuillez noter que ce champ n'a pas besoin d'\xeatre rempli ou mis \xe0 jour lorsque des r\xe9visions sont apport\xe9es aux m\xe9tadonn\xe9es, mais plut\xf4t lorsqu'une nouvelle version du fichier ou du paquet de donn\xe9es devient disponible, c'est-\xe0-dire pour les donn\xe9es de s\xe9ries temporelles."})})]})})]}),(0,Ap.jsx)(uI,{name:"dateRevised",value:n.dateRevised||null,onChange:r("dateRevised"),disabled:t})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"How is the dataset licensed?"}),(0,Ap.jsx)(Ip,{children:"Quelle est la licence de ce jeu de donn\xe9es?"})]}),(0,Ap.jsx)(ek,{passes:Mx(n,"license")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:(0,Ap.jsxs)("ul",{children:[(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:(0,Ap.jsx)("a",{href:"https://creativecommons.org/licenses/by/4.0/",target:"_blank",rel:"noopener noreferrer",children:"Creative Commons Attribution 4.0 International licence (CC-BY 4.0)"})})," ","- CIOOS recommended. Allows for open sharing and adaptation of the data provided that the original creator is attributed."]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:(0,Ap.jsx)("a",{href:"https://creativecommons.org/share-your-work/public-domain/cc0/",target:"_blank",rel:"noopener noreferrer",children:"Creative Commons 0"})})," ","- imposes no restrictions of any kind."]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:(0,Ap.jsx)("a",{href:"https://open.canada.ca/en/open-government-licence-canada",target:"_blank",rel:"noopener noreferrer",children:"Open Government Licence - Canada"})})," ","- For datasets made available by Government of Canada departments and agencies, it is very similar to CC-BY as it allows for open sharing and adaptation of the data, provided that the original creator of the data is properly attributed."]})]})}),(0,Ap.jsx)(Ip,{children:(0,Ap.jsxs)("ul",{children:[(0,Ap.jsxs)("li",{children:[(0,Ap.jsxs)("b",{children:["Licence internationale Creative Commons Attribution 4.0 (CC-BY 4.0)"," "]}),"- Licence recommand\xe9e par le SIOOC. Les donn\xe9es sont ouvertes, mais la licence exige que le jeu de donn\xe9es soit cit\xe9 lorsqu\u2019il est utilis\xe9 par un autre utilisateur."]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"Creative Commons 0"})," - N\u2019impose aucune restriction particuli\xe8re : le jeu de donn\xe9es peut \xeatre utilis\xe9 sans \xeatre cit\xe9."]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"Licence du gouvernement ouvert - Canada"})," - Pour les jeux de donn\xe9es rendus disponibles par les organisations et minist\xe8res f\xe9d\xe9raux. Cette licence est similaire \xe0 CC-BY 4.0 : les donn\xe9es sont ouvertes mais le jeu de donn\xe9es doit \xeatre cit\xe9 lorsqu'il est utilis\xe9 par un autre utilisateur."]})]})})]})})]}),(0,Ap.jsx)(Ek,{value:n.license,onChange:r("license"),optionLabels:d.map((e=>(0,Ap.jsxs)("span",{children:[e.title[a]||e.title.en,(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Open license definition in new window",fr:"Ouvrir la d\xe9finition de licence dans une nouvelle fen\xeatre"}),children:(0,Ap.jsx)(Cr,{onClick:()=>{window.open(e.url,"_blank").focus()},children:(0,Ap.jsx)(lx,{})})})]}))),options:d.map((e=>e.code)),disabled:t})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What are the limitations affecting the dataset?"}),(0,Ap.jsx)(Ip,{children:"Quelles sont les limitations affectant le jeu de donn\xe9es?"})]}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["For example:",(0,Ap.jsx)("i",{children:(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:"Not to be used for navigational purposes."}),(0,Ap.jsx)("li",{children:"Instrument was not calibrated on day."}),(0,Ap.jsx)("li",{children:"Haven\u2019t applied appropriate QC on the data yet."})]})})]}),(0,Ap.jsxs)(Ip,{children:["Par exemple :",(0,Ap.jsx)("i",{children:(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:"Ne pas utiliser \xe0 des fins de navigation."}),(0,Ap.jsx)("li",{children:"L' instrument n'a pas \xe9t\xe9 \xe9talonn\xe9."}),(0,Ap.jsx)("li",{children:"Un contr\xf4le de qualit\xe9 n\u2019a pas \xe9t\xe9 effectu\xe9 sur les donn\xe9es."})]})})]})]})})]}),(0,Ap.jsx)(qC,{name:"limitations",value:n.limitations,onChange:r("limitations"),multiline:!0,disabled:t})]})]})};const mI=function(e){let{platform:t}=e;return function(e){const{id:t,type:n}=e;return[n,t].filter((e=>e)).map((e=>e.trim())).filter((e=>e)).join(" - ")}(t)||(0,Ap.jsx)(Lp,{en:"New platform",fr:"Nouvel platform"})},gI=e=>{let{updateInstruments:t,instruments:n=[],disabled:r,paperClass:o,saveUpdateInstrument:a,userInstruments:s,platformList:l}=e;const[c,u]=(0,i.useState)(0),d=(0,i.useCallback)((e=>r=>{const i=[...n];i[c][e]=r.target.value,t(i)}),[n]),p=(0,i.useCallback)((()=>{t(n.filter(((e,t)=>t!==c))),n.length&&u(n.length-2)}),[n]),h=(0,Ap.jsx)(Lp,{en:"Manufacturer",fr:"Fabricant"}),f=(0,Ap.jsx)(Lp,{en:"Version",fr:"Version"}),m=(0,Ap.jsx)(Lp,{en:"Type",fr:"Type"}),g=(0,Ap.jsx)(Lp,{en:"Description",fr:"Description"}),v=(0,Ap.jsx)(Lp,{en:"Platform",fr:"Plateforme"}),b=n.length>0&&n[c];return(0,Ap.jsxs)(e_,{container:!0,direction:"row",style:{marginLeft:"5px"},children:[(0,Ap.jsx)(e_,{item:!0,xs:5,children:(0,Ap.jsx)(Yk,{itemType:"instrument",items:n,updateItems:t,activeItem:c,setActiveItem:u,disabled:r,savedUserItems:s,saveItem:a,leftListHeader:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Instruments in this record:"}),(0,Ap.jsx)(Ip,{children:"Instruments dans cet enregistrement:"})]}),leftListEmptyHeader:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"There are no instruments in this record."}),(0,Ap.jsx)(Ip,{children:"Il n'y a aucun instruments dans cet enregistrement."})]}),addSavedItemLabel:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"ADD SAVED INSTRUMENT"}),(0,Ap.jsx)(Ip,{children:"Ajouter un instrument enregistr\xe9"})]}),addNewItemText:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"ADD NEW INSTRUMENT"}),(0,Ap.jsx)(Ip,{children:"Ajouter un instrument"})]}),getBlankItem:I_,itemTitle:e=>aT({instrument:e})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(e_,{container:!0,direction:"column",children:b&&(0,Ap.jsx)(Xn,{style:o,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Instrument ID"}),(0,Ap.jsx)(Ip,{children:"L'ID de l'instrument"})]}),(0,Ap.jsx)(ek,{passes:b.id}),(0,Ap.jsx)(CC,{label:"ID",value:b.id,onChange:d("id"),fullWidth:!0,disabled:r})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(CC,{label:h,name:"manufacturer",value:b.manufacturer,onChange:d("manufacturer"),fullWidth:!0,disabled:r})," "]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:f,value:b.version,onChange:d("version"),fullWidth:!0,disabled:r})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Instrument Type"}),(0,Ap.jsx)(Ip,{children:"Type d'instrument"})]})}),(0,Ap.jsx)(qC,{name:"type",label:m,value:b.type,onChange:d("type"),disabled:r})]})," ",(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(Or,{children:"Description"}),(0,Ap.jsx)(qC,{name:"description",label:g,value:b.description,onChange:d("description"),disabled:r})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(nx,{}),disabled:r,onClick:p,children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Remove item"}),(0,Ap.jsx)(Ip,{children:"Supprimer l'instrument"})]})})}),l.length>=2&&(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["When mutiple platforms are used, you must specify which platform the instrument is attached to. ",(0,Ap.jsx)(ek,{passes:b.platform})]}),(0,Ap.jsx)(Ip,{children:"Lorsque plusieurs plates-formes sont utilis\xe9es, vous devez sp\xe9cifier \xe0 quelle plate-forme l'instrument est connect\xe9."})]})}),(0,Ap.jsx)(Ek,{label:v,name:"platform",value:b.platform,optionLabels:l.map((e=>(0,Ap.jsx)(mI,{platform:e}))),options:l.map((e=>e.id)),onChange:d("platform"),fullWidth:!0,disabled:r})]})]})})})})]})},vI=JSON.parse('[{"identifier":"91","label_en":"ice island","label_fr":"\xeele de glace","definition_en":"A floating ice sheet detached from the coast.","definition_fr":"Un iceberg ou bloc de glace flottant d\xe9tach\xe9 d\'un glacier."},{"identifier":"6C","label_en":"parachute","label_fr":"parachute","definition_en":"A fabric sheet designed to slow the descent of an object through the atmosphere.","definition_fr":"Un morceau de tissu con\xe7u pour ralentir la descente d\'un objet dans l\'atmosph\xe8re."},{"identifier":"6A","label_en":"glider","label_fr":"planeur","definition_en":"A fixed-wing aircraft with no propulsion.","definition_fr":"Un a\xe9ronef \xe0 voilure fixe sans propulsion."},{"identifier":"9A","label_en":"DUKW","label_fr":"DUKW","definition_en":"A six-wheel drive amphibious truck developed during the second World War.","definition_fr":"Un camion amphibie \xe0 six roues motrices d\xe9velopp\xe9 pendant la Seconde Guerre mondiale."},{"identifier":"38","label_en":"man-powered boat","label_fr":"bateau \xe0 propulsion humaine","definition_en":"A platform operating on the surface of the water column that is manually propelled and may not be easily removed from the water (e.g. trireme).","definition_fr":"Une plateforme fonctionnant \xe0 la surface de la colonne d\'eau qui est propuls\xe9e manuellement et qui peut ne pas \xeatre facilement retir\xe9e de l\'eau (par exemple trir\xe8me)."},{"identifier":"15","label_en":"land/onshore vehicle","label_fr":"v\xe9hicule terrestre","definition_en":"An instrumented vehicle or sample collector that operates on the solid surface of the Earth (e.g. mobile meteorological station, land crawler, snowmobile).","definition_fr":"Un v\xe9hicule instrument\xe9 ou un collecteur d\'\xe9chantillons qui fonctionne sur la surface solide de la Terre (par exemple: station m\xe9t\xe9orologique mobile, v\xe9hicule \xe0 chenille terrestre, motoneige)."},{"identifier":"13","label_en":"beach/intertidal zone structure","label_fr":"structure de plage/zone intertidale","definition_en":"A structure to which instrumentation may be attached that is either in air or under water depending on the state of the tide and weather conditions.","definition_fr":"Structure sur laquelle des instruments peuvent \xeatre fix\xe9s et qui se trouvent dans l\'air ou sous l\'eau en fonction de l\'\xe9tat de la mar\xe9e et des conditions m\xe9t\xe9orologiques."},{"identifier":"19","label_en":"mesocosm bag","label_fr":"sac \xe0 m\xe9socosme","definition_en":"A large polythene bag containing a water sample suspended in the natural environment so that it shares ambient physical conditions such as temperature and light levels, but is chemically isolated to allow experiments such as fertilisation.","definition_fr":"Grand sac en poly\xe9thyl\xe8ne contenant un volume d\'eau en suspension dans l\'environnement naturel afin qu\'il partage les conditions physiques ambiantes telles que la temp\xe9rature et les niveaux de lumi\xe8re, mais qui est isol\xe9 chimiquement pour permettre des exp\xe9riences telles que la fertilisation."},{"identifier":"34","label_en":"vessel at fixed position","label_fr":"navire en position fixe","definition_en":"A platform of any size occupying a fixed location on the surface of the water column for prolonged periods collecting scientific (oceanographic and meteorological) data as a primary or secondary mission. Includes light vessels and weather ships.","definition_fr":"Plateforme de toute taille occupant un emplacement fixe \xe0 la surface de la colonne d\'eau pendant de longues p\xe9riodes collectant des donn\xe9es scientifiques (oc\xe9anographiques et m\xe9t\xe9orologiques) en tant que mission principale ou secondaire. Inclut les navires l\xe9gers et les navires m\xe9t\xe9orologiques."},{"identifier":"17","label_en":"coastal structure","label_fr":"structure c\xf4ti\xe8re","definition_en":"A fixed man-made structure permanently linked to land with access to water at all states of the tide to which instrumentation may be attached (e.g. pier).","definition_fr":"Une structure artificielle fixe sur laquelle des instruments peuvent \xeatre fix\xe9s et qui est reli\xe9e en permanence \xe0 la terre avec un acc\xe8s \xe0 l\'eau peu importe l\'\xe9tat de la mar\xe9e (par exemple, une jet\xe9e)."},{"identifier":"36","label_en":"fishing vessel","label_fr":"navire de p\xeache","definition_en":"A platform operating on the surface of the water column whose primary purpose is the commercial harvesting of fish or shellfish but may be engaged in scientific activities such as fish stock surveys or mooring deployments and recoveries.","definition_fr":"Plateforme op\xe9rant \xe0 la surface de la colonne d\'eau et dont l\'objectif principal est la r\xe9colte commerciale de poissons ou de crustac\xe9s, mais qui peut \xeatre engag\xe9e dans des activit\xe9s scientifiques telles que des \xe9tudes de stocks de poissons ou des d\xe9ploiements et des r\xe9cup\xe9rations d\'amarrages."},{"identifier":"30","label_en":"ship","label_fr":"navire","definition_en":"A large platform operating on the surface of the water column. Objective definitions for guidelines: >50m length (EU), >100 foot length (USA), >300 GRT weight (SOLAS). Subjective definition: a ship is a vessel big enough to carry a boat.","definition_fr":"Une grande plateforme fonctionnant \xe0 la surface de la colonne d\'eau. D\xe9finitions des objectifs pour les lignes directrices : > 50 m de longueur (UE), > 100 pieds de longueur (\xc9tats-Unis), > 300 poids brut (SOLAS). D\xe9finition subjective : un vaisseau est un navire suffisamment grand pour transporter un bateau."},{"identifier":"76","label_en":"fish","label_fr":"poisson","definition_en":"A free-swimming creature that exists totally within the water column.","definition_fr":"Une cr\xe9ature qui nage librement et qui vit dans la colonne d\'eau."},{"identifier":"53","label_en":"tethered balloon","label_fr":"ballon captif","definition_en":"A container filled with a gas that is lighter than air, which is tethered at a fixed height and location.","definition_fr":"R\xe9cipient rempli d\'un gaz plus l\xe9ger que l\'air, qui est attach\xe9 \xe0 une hauteur et \xe0 un emplacement fixes."},{"identifier":"0","label_en":"unknown","label_fr":"inconnu","definition_en":"The correct value is not known to, and not computable by, the creator of this information. However, a correct value probably exists.","definition_fr":"La valeur correcte n\'est pas connue du cr\xe9ateur de ces informations et ne peut pas \xeatre calcul\xe9e par lui. Cependant, il existe probablement une valeur correcte."},{"identifier":"74","label_en":"seabird and duck","label_fr":"oiseau de mer et canard","definition_en":"A flighted bird that is able to exist on the water column surface and dive into the water column (e.g. cormorants, auks, ducks and gulls).","definition_fr":"Oiseau en vol capable d\'exister \xe0 la surface et de plonger dans la colonne d\'eau (cormorans, pingouins, canards et go\xe9lands)."},{"identifier":"32","label_en":"vessel of opportunity","label_fr":"navire occasionnel (VOS)","definition_en":"A platform for purpose of commerce of any size operating on the surface of the water column in unpredictable locations that regularly collects scientific (oceanographic and meteorological) data (e.g. an instrumented cargo vessel).","definition_fr":"Plateforme commerciale de toute taille op\xe9rant \xe0 la surface de la colonne d\'eau dans des lieux impr\xe9visibles qui recueille r\xe9guli\xe8rement des donn\xe9es scientifiques (oc\xe9anographiques et m\xe9t\xe9orologiques) (par exemple un cargo instrument\xe9)."},{"identifier":"72","label_en":"diver","label_fr":"plongeur","definition_en":"A human being with self-contained equipment or surface-connected suit enabling operation within the water column.","definition_fr":"Un \xeatre humain dot\xe9 d\'un \xe9quipement autonome ou d\'une combinaison connect\xe9e en surface permettant le fonctionnement dans la colonne d\'eau."},{"identifier":"95","label_en":"amphibious vehicle","label_fr":"v\xe9hicule amphibie","definition_en":"A self-propelled platform capable of operating on land and within or on the surface of a water body.","definition_fr":"Plateforme automotrice capable de fonctionner sur terre et \xe0 l\'int\xe9rieur ou \xe0 la surface d\'un plan d\'eau."},{"identifier":"11","label_en":"fixed benthic node","label_fr":"platform benthique fixe","definition_en":"A collection of oceanographic instruments mounted at a fixed position on the seabed (e.g. POL Monitoring Platform, seabed ADCP).","definition_fr":"Ensemble d\'instruments oc\xe9anographiques positionn\xe9 de mani\xe8re fixe sur le fond marin (par exemple, plateforme de surveillance POL, ADCP du fond marin)."},{"identifier":"70","label_en":"organism","label_fr":"organisme","definition_en":"A living creature carrying instruments or collecting samples.","definition_fr":"Cr\xe9ature vivante transportant des instruments ou pr\xe9levant des \xe9chantillons."},{"identifier":"93","label_en":"pack ice","label_fr":"banquise","definition_en":"Sea ice not connected to land with an ice concentration of over 70 per cent.","definition_fr":"Glace de mer non reli\xe9e \xe0 la terre avec une concentration de glace sup\xe9rieure \xe0 70 pour cent."},{"identifier":"51","label_en":"free-rising balloon","label_fr":"ballon a\xe9rostat","definition_en":"A container filled with a gas that is lighter than air, which is constrained to rise vertically at a fixed location.","definition_fr":"R\xe9cipient rempli d\'un gaz plus l\xe9ger que l\'air, qui est contraint de monter verticalement en un endroit fixe."},{"identifier":"3D","label_en":"drillship","label_fr":"navire de forage","definition_en":"A drillship is a merchant vessel designed for use in exploratory offshore drilling of new oil and gas wells or for scientific drilling purposes.","definition_fr":"Un navire de forage est un navire marchand con\xe7u pour \xeatre utilis\xe9 dans le forage exploratoire de nouveaux puits de p\xe9trole et de gaz en mer ou \xe0 des fins de forage scientifique."},{"identifier":"3B","label_en":"autonomous surface water vehicle","label_fr":"v\xe9hicule autonome pour les eaux de surface","definition_en":"A self-propelled vehicle operating on the sea surface with no human occupants.","definition_fr":"Un v\xe9hicule automoteur circulant \xe0 la surface de la mer sans occupants humains."},{"identifier":"49","label_en":"surface ice buoy","label_fr":"bou\xe9e de glace de surface","definition_en":"An undrogued (i.e. no sub-surface parachute) surface float that is deployed in regions where sea ice forms that moves with either ice or water depending upon the time of year.","definition_fr":"Flotteur de surface sans ancre flottante d\xe9ploy\xe9 dans les r\xe9gions o\xf9 se forme de la glace de mer qui se d\xe9place avec la glace ou l\'eau en fonction de la p\xe9riode de l\'ann\xe9e."},{"identifier":"3Z","label_en":"surface vessel","label_fr":"navire de surface","definition_en":"A mobile platform with propulsion operating on and restricted to the surface of a water body.","definition_fr":"Une plateforme mobile dont la propulsion fonctionne et est limit\xe9e \xe0 la surface d\'un plan d\'eau."},{"identifier":"24","label_en":"drifting manned submersible","label_fr":"submersible d\xe9rivant habit\xe9","definition_en":"A platform operating in the water column attached to a mothership by an umbilical but with no means of propulsion that has at least one human operator on board (e.g. bathysphere).","definition_fr":"plateforme fonctionnant dans la colonne d\'eau rattach\xe9e \xe0 un vaisseau-m\xe8re par un ombilical mais sans moyen de propulsion et comportant au moins un op\xe9rateur humain \xe0 bord (par exemple bathysph\xe8re)."},{"identifier":"45","label_en":"fixed subsurface vertical profiler","label_fr":"profileur vertical souterrain fixe","definition_en":"A platform that periodically makes an automated vertical traverse of the water column at a predetermined fixed location. (e.g. YSI vertical profiler, HOMER CTD).","definition_fr":"plateforme qui effectue p\xe9riodiquement un profil vertical automatis\xe9 de la colonne d\'eau \xe0 un emplacement fixe pr\xe9d\xe9termin\xe9. (par exemple profileur vertical YSI, HOMER CTD)."},{"identifier":"68","label_en":"satellite","label_fr":"satellite","definition_en":"A vehicle operating beyond the Earth\'s atmosphere without human occupants that orbits the Earth.","definition_fr":"Un v\xe9hicule non habit\xe9 circulant au-del\xe0 de l\'atmosph\xe8re terrestre en orbite autour de la Terre."},{"identifier":"26","label_en":"lowered unmanned submersible","label_fr":"submersible treuill\xe9 non habit\xe9","definition_en":"An unmanned platform lowered and raised vertically by a cable from the mothership. Includes any type of profiling sensor mounting such as CTD frames, profiling radiometers and instrumented nets.","definition_fr":"Une plateforme non habit\xe9e mont\xe9e est descendue verticalement (treuill\xe9) par un c\xe2ble depuis le vaisseau-m\xe8re. Inclut tout type de capteurs de profilage tels que les cadres CTD, les radiom\xe8tres de profilage et les r\xe9seaux instrument\xe9s."},{"identifier":"47","label_en":"float","label_fr":"bou\xe9e","definition_en":"A free-floating platform either on the surface of the water column or at a predetermined depth within the water column.","definition_fr":"Une plateforme flottante soit \xe0 la surface de la colonne d\'eau, soit \xe0 une profondeur pr\xe9d\xe9termin\xe9e dans la colonne d\'eau."},{"identifier":"20","label_en":"submersible","label_fr":"submersible","definition_en":"A platform operating within a water body.","definition_fr":"Plateforme fonctionnant dans un plan d\'eau."},{"identifier":"66","label_en":"manned spacecraft","label_fr":"vaisseau spatial habit\xe9","definition_en":"A vehicle operating beyond the Earth\'s atmosphere with human occupants.","definition_fr":"Un v\xe9hicule \xe9voluant au-del\xe0 de l\'atmosph\xe8re terrestre avec des occupants humains."},{"identifier":"41","label_en":"moored surface buoy","label_fr":"bou\xe9e de surface amarr\xe9e","definition_en":"An unmanned instrumented platform operating on the surface of the water column loosely tethered to the seafloor to maintain a fixed position (e.g. ODAS buoy).","definition_fr":"Une plateforme instrument\xe9e non habit\xe9e fonctionnant \xe0 la surface de la colonne d\'eau et attach\xe9e de mani\xe8re l\xe2che au fond marin pour maintenir une position fixe (par exemple une bou\xe9e ODAS)."},{"identifier":"64","label_en":"geostationary orbiting satellite","label_fr":"satellite orbital g\xe9ostationnaire","definition_en":"A vehicle operating beyond the Earth\'s atmosphere without human occupants that orbits the Earth at the same rate as the Earth\'s rotation keeping it over a fixed location on the Earth\'s surface..","definition_fr":"Un v\xe9hicule circulant au-del\xe0 de l\'atmosph\xe8re terrestre sans occupants humains qui orbite autour de la Terre au m\xeame rythme que la rotation de la Terre en la maintenant au-dessus d\'un emplacement fixe sur la surface de la Terre."},{"identifier":"22","label_en":"propelled unmanned submersible","label_fr":"submersible propuls\xe9 non habit\xe9","definition_en":"A platform operating in the water column attached to a mothership by an umbilical with limited propulsion and no human operator on board (e.g. ROV).","definition_fr":"Plateforme non habit\xe9e fonctionnant dans la colonne d\'eau, rattach\xe9e \xe0 un vaisseau-m\xe8re par un ombilical et dont sa propulsion propre est limit\xe9e (par exemple ROV)."},{"identifier":"43","label_en":"subsurface mooring","label_fr":"amarrage sous marin","definition_en":"A collection of oceanographic instruments attached to wires suspended between anchors on the seabed and buoyant spheres in the water column.","definition_fr":"Collection d\'instruments oc\xe9anographiques attach\xe9s \xe0 un cable tir\xe9 entre une ancre sur le fond marin et des sph\xe8res flottantes dans la colonne d\'eau."},{"identifier":"62","label_en":"aeroplane","label_fr":"avion","definition_en":"A fixed-wing self-propelled aircraft.","definition_fr":"Un avion automoteur \xe0 voilure fixe."},{"identifier":"60","label_en":"non-buoyant aircraft","label_fr":"a\xe9rodyne","definition_en":"A platform capable of flight in the atmosphere despite its being heavier than air.","definition_fr":"Une plateforme capable de voler dans l\'atmosph\xe8re m\xeame si elle est plus lourde que l\'air."},{"identifier":"90","label_en":"cryosphere","label_fr":"cryosph\xe8re","definition_en":"A frozen body of water on land, freshwater or sea.","definition_fr":"Portions de la surface des mers ou terres \xe9merg\xe9es o\xf9 l\'eau est pr\xe9sente \xe0 l\'\xe9tat solide"},{"identifier":"4A","label_en":"Ice-tethered subsurface profiling float","label_fr":"bou\xe9e de profilage sous-marine li\xe9 \xe0 la glace","definition_en":"A platform that periodically makes an automated vertical traverse of the water column that is fixed to a floating body of ice.","definition_fr":"plateforme fix\xe9e \xe0 un corps de glace flottant qui effectue p\xe9riodiquement une travers\xe9e verticale automatis\xe9e de la colonne d\'eau ."},{"identifier":"6D","label_en":"unmanned aerial vehicle","label_fr":"v\xe9hicule a\xe9rien sans pilote","definition_en":"Any untethered heavier-than-air aircraft that is not occupied by people: may be a remotely piloted aircraft or an autonomous aircraft. Also referred to as a drone.","definition_fr":"Tout a\xe9ronef non attach\xe9 plus lourd que l\'air qui n\'est pas occup\xe9 par des personnes : il peut s\'agir d\'un a\xe9ronef t\xe9l\xe9pilot\xe9 ou d\'un avion autonome. \xc9galement appel\xe9 drone."},{"identifier":"6B","label_en":"kite","label_fr":"cerf-volant","definition_en":"An aerofoil tethered to the ground held aloft by the wind.","definition_fr":"Une surface portante attach\xe9e au sol et maintenu en altitude par le vent."},{"identifier":"39","label_en":"naval vessel","label_fr":"navire militaire","definition_en":"A platform operating on the surface of the water column in unpredictable locations that is primarily equipped, manned and operated for military purposes. Includes surface warships of all sizes and logistic support vessels.","definition_fr":"Plateforme op\xe9rant \xe0 la surface de la colonne d\'eau dans des endroits impr\xe9visibles qui est principalement \xe9quip\xe9e, habit\xe9e et exploit\xe9e \xe0 des fins militaires. Comprend les navires de guerre de surface de toutes tailles et les navires de soutien logistique."},{"identifier":"14","label_en":"land/onshore structure","label_fr":"structure terrestre","definition_en":"A fixed man-made structure on land to which instrumentation may be attached (e.g. meteorological tower).","definition_fr":"Une structure terrestre artificielle fixe sur laquelle des instruments peuvent \xeatre attach\xe9s (par exemple une tour m\xe9t\xe9orologique)."},{"identifier":"12","label_en":"sea bed vehicle","label_fr":"v\xe9hicule benthique","definition_en":"An instrumented platform that is propelled on wheels or tracks on the seabed (e.g benthic crawler).","definition_fr":"Une plateforme instrument\xe9e qui est propuls\xe9e sur des roues ou des chenilles sur le fond marin (par exemple, chenille benthique)."},{"identifier":"6Z","label_en":"spacecraft","label_fr":"vaisseau spatial","definition_en":"A platform operating beyond the Earth\'s atmosphere.","definition_fr":"Une plateforme qui fonctionne au-del\xe0 de l\'atmosph\xe8re terrestre."},{"identifier":"18","label_en":"river station","label_fr":"station de rivi\xe8re","definition_en":"An instrumented structure in a river upstream of its tidal limit.","definition_fr":"Structure instrument\xe9e dans une rivi\xe8re en amont de la limite de mar\xe9e."},{"identifier":"35","label_en":"vessel of opportunity on fixed route","label_fr":"navire occasionnel (VOS) en itin\xe9raire fixe","definition_en":"A platform repeatedly following a predictable fixed track on the surface of the water column that collects scientific (oceanographic and meteorological) data (e.g. an instrumented ferry).","definition_fr":"Une plateforme qui suit de fa\xe7on r\xe9p\xe9t\xe9e une trajectoire fixe pr\xe9visible \xe0 la surface de la colonne d\'eau qui recueille des donn\xe9es scientifiques (oc\xe9anographiques et m\xe9t\xe9orologiques) (par exemple un traversier instrument\xe9)."},{"identifier":"16","label_en":"offshore structure","label_fr":"structure hauturi\xe8re","definition_en":"A fixed (for the duration of the measurements) man-made structure away from the coast to which instrumentation may be attached (e.g. oil rig, gas rig or jack-up barge).","definition_fr":"Une structure artificielle fixe (pour la dur\xe9e des mesures) \xe9loign\xe9e de la c\xf4te sur laquelle peuvent \xeatre fix\xe9s des instruments (par exemple, plateforme p\xe9troli\xe8re, plateforme gazi\xe8re ou barge auto-\xe9l\xe9vatrice)."},{"identifier":"37","label_en":"self-propelled boat","label_fr":"bateau automoteur","definition_en":"A small self-propelled platform operating on the surface of the water column in unpredictable locations that is smaller than a ship, but too large to easily remove from the water.","definition_fr":"Petite plateforme automotrice op\xe9rant \xe0 la surface de la colonne d\'eau dans des endroits impr\xe9visibles, plus petite qu\'un navire, mais trop grande pour \xeatre facilement retir\xe9e de l\'eau."},{"identifier":"52","label_en":"free-floating balloon","label_fr":"ballon flottant","definition_en":"A container filled with a gas that is lighter than air, which is free to drift in the atmosphere.","definition_fr":"R\xe9cipient rempli d\'un gaz plus l\xe9ger que l\'air, libre de d\xe9river dans l\'atmosph\xe8re."},{"identifier":"31","label_en":"research vessel","label_fr":"navire de recherche","definition_en":"A platform of any size operating on the surface of the water column in unpredictable locations that is specifically equipped, manned and operated for scientific, usually oceanographic, research.","definition_fr":"plateforme de toute taille op\xe9rant \xe0 la surface de la colonne d\'eau dans des lieux impr\xe9visibles, sp\xe9cialement \xe9quip\xe9e, habit\xe9e et exploit\xe9e pour la recherche scientifique, g\xe9n\xe9ralement oc\xe9anographique."},{"identifier":"77","label_en":"land-sea mammals","label_fr":"mammif\xe8res amphibie marin","definition_en":"A mammal that exists both on land and within the water column. Includes seals, sealions, sea-otters and walruses.","definition_fr":"Mammif\xe8re qui vit \xe0 la fois sur terre et dans la colonne d\'eau. Comprend les phoques, les otaries, les loutres de mer et les morses."},{"identifier":"96","label_en":"amphibious crawler","label_fr":"v\xe9hicule amphibie \xe0 chenille","definition_en":"A self-propelled vehicle capable of operation on land or the seabed (e.g. beach crawler).","definition_fr":"V\xe9hicule automoteur capable de fonctionner sur terre ou sur le fond marin (par exemple, chenille de plage)."},{"identifier":"54","label_en":"airship","label_fr":"dirigeable","definition_en":"A self-propelled container filled with a gas that is lighter than air.","definition_fr":"Conteneur autopropuls\xe9 rempli d\'un gaz plus l\xe9ger que l\'air."},{"identifier":"75","label_en":"cetacean","label_fr":"c\xe9tac\xe9","definition_en":"A mammal that exists within the water column but needing to regularly surface to breathe (i.e. dolphins and whales).","definition_fr":"Mammif\xe8re pr\xe9sent dans la colonne d\'eau mais qui a besoin de remonter r\xe9guli\xe8rement \xe0 la surface pour respirer (c\'est-\xe0-dire les dauphins et les baleines)."},{"identifier":"33","label_en":"self-propelled small boat","label_fr":"petit bateau automoteur","definition_en":"A small self-propelled platform operating on the surface of the water column that may be easily removed from the water (e.g. shore-based RIBs, ships\' boats).","definition_fr":"Petite plateforme automotrice fonctionnant \xe0 la surface de la colonne d\'eau qui peut \xeatre facilement retir\xe9e de l\'eau (par exemple, semi-rigides \xe0 terre, bateaux de navires)."},{"identifier":"94","label_en":"drift ice","label_fr":"glace d\xe9rivante","definition_en":"Sea ice not connected to land with an ice concentration of under 70 per cent.","definition_fr":"Glace de mer non reli\xe9e \xe0 la terre avec une concentration de glace inf\xe9rieure \xe0 70 pour cent."},{"identifier":"10","label_en":"land or seafloor","label_fr":"terre ou fond marin","definition_en":"A platform located on the solid surface of the Earth either above or below sea level.","definition_fr":"plateforme situ\xe9e sur la surface solide de la Terre au-dessus ou au-dessous du niveau de la mer."},{"identifier":"73","label_en":"flightless bird","label_fr":"oiseau inapte au vol","definition_en":"A bird that is unable to fly with the ability to exist within the water column (e.g. penguin).","definition_fr":"Oiseau incapable de voler avec la capacit\xe9 d\'exister dans la colonne d\'eau (par exemple, manchot)."},{"identifier":"92","label_en":"ice shelf","label_fr":"plateforme de glace flottante","definition_en":"A floating ice sheet attached to the coast.","definition_fr":"Une calotte glaciaire flottante attach\xe9e \xe0 la c\xf4te."},{"identifier":"50","label_en":"buoyant aircraft","label_fr":"avion a\xe9rostat","definition_en":"A platform capable of flight in the atmosphere because it is lighter than air.","definition_fr":"Une plateforme capable de voler dans l\'atmosph\xe8re parce qu\'elle est plus l\xe9g\xe8re que l\'air."},{"identifier":"71","label_en":"human","label_fr":"humain","definition_en":"A human being without specialised equipment operating on land or the surface of the water column.","definition_fr":"Un \xeatre humain sans \xe9quipement sp\xe9cialis\xe9 op\xe9rant sur terre ou \xe0 la surface de la colonne d\'eau."},{"identifier":"3A","label_en":"man-powered small boat","label_fr":"petit bateau \xe0 propulsion humaine","definition_en":"A platform operating on the surface of the water column that is manually propelled and may be easily removed from the water (e.g. rowing boat, canoe).","definition_fr":"Une plateforme fonctionnant \xe0 la surface de la colonne d\'eau qui est propuls\xe9e manuellement et peut \xeatre facilement retir\xe9e de l\'eau (par exemple bateau \xe0 rames, cano\xeb)."},{"identifier":"3C","label_en":"surface gliders","label_fr":"planeurs de surface","definition_en":"Platforms operating at a single depth near the sea surface, using a combination of solar energy and wave motion as means of propulsion.","definition_fr":"Plateforme fonctionnant \xe0 une seule profondeur pr\xe8s de la surface de la mer, utilisant une combinaison d\'\xe9nergie solaire et de mouvement des vagues comme moyens de propulsion."},{"identifier":"9B","label_en":"hovercraft","label_fr":"a\xe9roglisseur","definition_en":"A craft capable of moving over water or land on a downwardly-propelled cushion of air.","definition_fr":"Engin capable de se d\xe9placer au-dessus de l\'eau ou d\'atterrir sur un coussin d\'air propuls\xe9 vers le bas."},{"identifier":"27","label_en":"sub-surface gliders","label_fr":"planeurs sous-marins","definition_en":"Platforms with buoyancy-based propulsion that are capable of operations at variable depths which are not constrained to be near the sea surface.","definition_fr":"Plateforme dont la propulsion repose le remplissage de ballast (modification de flottabilit\xe9) et capable de fonctionner \xe0 des profondeurs variables no contraintes \xe0 surface de la mer."},{"identifier":"46","label_en":"drifting subsurface profiling float","label_fr":"profileur sous-marine d\xe9rivant","definition_en":"An unmanned instrumented platform drifting freely in the water column that periodically makes vertical traverses through the water column (e.g. Argo float).","definition_fr":"Une plateforme instrument\xe9e sans pilote d\xe9rivant librement dans la colonne d\'eau qui effectue p\xe9riodiquement des travers\xe9es verticales \xe0 travers la colonne d\'eau (par exemple, flotteur Argo)."},{"identifier":"23","label_en":"towed unmanned submersible","label_fr":"submersible non habit\xe9 remorqu\xe9","definition_en":"A vehicle towed by rigid cable through the water column at fixed or varying depth with no propulsion and no human operator (e.g. Towfish, Scanfish, UOR, SeaSoar).","definition_fr":"V\xe9hicule remorqu\xe9 par c\xe2ble rigide \xe0 travers la colonne d\'eau \xe0 une profondeur fixe ou variable, sans propulsion et sans op\xe9rateur humain (par exemple Towfish, Scanfish, UOR, SeaSoar)."},{"identifier":"69","label_en":"autogyro","label_fr":"autogyre","definition_en":"An aircraft without wings that obtains its lift from the rotation of overhead blades, but obtains forward populsion from a fixed propellor.","definition_fr":"A\xe9ronef sans ailes dont la portance provient de la rotation des pales a\xe9riennes, mais qui obtient une pouss\xe9e vers l\'avant \xe0 partir d\'une h\xe9lice fixe."},{"identifier":"48","label_en":"mooring","label_fr":"mouillage","definition_en":"A tethered collection of oceanographic instruments at a fixed location that may include seafloor, mid-water and surface components.","definition_fr":"Ensemble d\'instruments oc\xe9anographiques encord\xe9 \xe0 un emplacement fixe pouvant inclure des \xe9l\xe9ments du fond marin, du milieu de l\'eau et de la surface."},{"identifier":"67","label_en":"helicopter","label_fr":"h\xe9licopt\xe8re","definition_en":"An aircraft without wings that obtains its lift from the rotation of overhead blades.","definition_fr":"Un avion sans ailes qui tire sa portance de la rotation des pales a\xe9riennes."},{"identifier":"25","label_en":"autonomous underwater vehicle","label_fr":"v\xe9hicule sous-marin autonome","definition_en":"A free-roving platform operating in the water column with propulsion but no human operator on board (e.g. Autosub, Gavia).","definition_fr":"Une plateforme mobile fonctionnant dans la colonne d\'eau avec propulsion mais sans op\xe9rateur humain \xe0 bord (par exemple Autosub, Gavia)."},{"identifier":"42","label_en":"drifting surface float","label_fr":"bou\xe9e de surface d\xe9rivante","definition_en":"An unmanned instrumented platform operating on the surface of the water column often attached to a drogue to track currents rather than winds (e.g. Argos buoy).","definition_fr":"Plateforme instrument\xe9e sans pilote \xe9voluant \xe0 la surface de la colonne d\'eau, souvent fix\xe9e \xe0 une ancre flottante pour suivre les courants plut\xf4t que les vents (par exemple, une bou\xe9e Argos)."},{"identifier":"65","label_en":"orbiting satellite","label_fr":"satellite en orbite","definition_en":"A vehicle operating beyond the Earth\'s atmosphere without human occupants that orbits the Earth at a different rate to the Earth\'s rotation so it moves over the Earth\'s surface..","definition_fr":"Un v\xe9hicule \xe9voluant au-del\xe0 de l\'atmosph\xe8re terrestre sans occupants humains qui orbite autour de la Terre \xe0 une vitesse diff\xe9rente de celle de la Terre de sorte qu\'il se d\xe9place au-dessus de la surface de la Terre."},{"identifier":"44","label_en":"drifting subsurface float","label_fr":"flotteur d\xe9rivant de subsurface","definition_en":"An unmanned instrumented platform drifting freely in the water column at a depth governed by its density (e.g. Swallow float).","definition_fr":"Une plateforme instrument\xe9e sans pilote d\xe9rivant librement dans la colonne d\'eau \xe0 une profondeur d\xe9termin\xe9e par sa densit\xe9 (par exemple flotteur Swallow)."},{"identifier":"63","label_en":"rocket","label_fr":"fus\xe9e","definition_en":"A rocket is a vehicle, missile or aircraft which obtains thrust by the reaction to the ejection of fast moving exhaust gas from within a rocket engine.","definition_fr":"Une fus\xe9e est un v\xe9hicule, un missile ou un a\xe9ronef qui est propuls\xe9 par la r\xe9action \xe0 l\'\xe9jection de gaz d\'\xe9chappement se d\xe9pla\xe7ant rapidement \xe0 l\'int\xe9rieur d\'un moteur-fus\xe9e."},{"identifier":"21","label_en":"propelled manned submersible","label_fr":"submersible habit\xe9 propuls\xe9","definition_en":"A platform operating in the water column that has both self-contained propulsion and at least one human operator on board (e.g. submarine).","definition_fr":"Une plateforme fonctionnant dans la colonne d\'eau qui poss\xe8de \xe0 la fois une propulsion autonome et au moins un op\xe9rateur humain \xe0 bord (par exemple un sous-marin)."},{"identifier":"61","label_en":"research aeroplane","label_fr":"avion de recherche","definition_en":"A fixed-wing self-propelled aircraft that is equipped, manned and operated for atmospheric, meteorological or oceanographic research.","definition_fr":"A\xe9ronef automoteur \xe0 voilure fixe \xe9quip\xe9, pilot\xe9 et exploit\xe9 pour la recherche atmosph\xe9rique, m\xe9t\xe9orologique ou oc\xe9anographique."}]'),bI=e=>{let{platforms:t=[],userPlatforms:n,updatePlatforms:r,saveUpdatePlatform:o,disabled:a,paperClass:s}=e;const{language:l="en"}=mn(),[c,u]=(0,i.useState)(0);function d(e){return n=>{const i=[...t];i[c][e]=n.target.value,r(i)}}const p=Object.values(vI).sort(((e,t)=>e["label_".concat(l)].localeCompare(t["label_".concat(l)],l))),h=t.length>0&&t[c];return(0,Ap.jsx)("div",{children:(0,Ap.jsxs)(e_,{container:!0,direction:"row",style:{marginLeft:"5px"},children:[(0,Ap.jsx)(e_,{item:!0,xs:5,children:(0,Ap.jsx)(Yk,{itemType:"platform",items:t,updateItems:r,activeItem:c,setActiveItem:u,disabled:a,savedUserItems:n,saveItem:o,getBlankItem:R_,addSavedItemLabel:(0,Ap.jsx)(Lp,{en:"ADD SAVED PLATFORM",fr:"AJOUTER UN PLATEFORME"}),itemTitle:e=>mI({platform:e})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(e_,{container:!0,direction:"column",children:h&&(0,Ap.jsxs)(Xn,{style:s,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,style:s,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What type of platform is it?"}),(0,Ap.jsx)(Ip,{children:"De quel type de plateforme s'agit-il ?"})]}),(0,Ap.jsxs)($C,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Please select a platform from the "}),(0,Ap.jsx)(Ip,{children:"Veuillez s\xe9lectionner une plateforme dans la "})]}),(0,Ap.jsxs)("a",{href:"http://vocab.nerc.ac.uk/collection/L06/current/",target:"_blank",rel:"noopener noreferrer",children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"SeaVoX Platform Categories (NERC L06 Vocabulary)"}),(0,Ap.jsx)(Ip,{children:"SeaVoX Platform Categories (liste Vocabulaire NERC L06)"})]}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Open in new window",fr:"Ouvrir dans une nouvelle fen\xeatre"}),children:(0,Ap.jsx)(lx,{style:{verticalAlign:"middle"}})})]}),(0,Ap.jsx)(ek,{passes:h.type})]})]}),(0,Ap.jsx)(Ek,{value:h.type,onChange:d("type"),optionLabels:p.map((e=>"".concat(e["label_".concat(l)]))),optionTooltips:p.map((e=>"".concat(e["definition_".concat(l)]))),options:p.map((e=>e.label_en)),disabled:a,label:(0,Ap.jsx)(Lp,{en:"Platform",fr:"Plateforme"}),fullWidth:!1})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,style:s,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the platform ID or code?"}),(0,Ap.jsx)(Ip,{children:"Quel est l'ID de la plateforme ?"})]}),(0,Ap.jsxs)($C,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["This is a unique identification of the platform. If the platform is registered with"," ",(0,Ap.jsx)("a",{href:"https://vocab.seadatanet.org/v_bodc_vocab_v2/search.asp?lib=C17",target:"_blank",rel:"noopener noreferrer",children:"ICES"}),", use that identifier"]}),(0,Ap.jsxs)(Ip,{children:["Il s'agit d'une identification unique de la plateforme. Si la plateforme est enregistr\xe9e aupr\xe8s du"," ",(0,Ap.jsx)("a",{href:"https://vocab.seadatanet.org/v_bodc_vocab_v2/search.asp?lib=C17",target:"_blank",rel:"noopener noreferrer",children:"CIEM"}),", utilisez cet identifiant"]})]}),(0,Ap.jsx)(ek,{passes:h.id})]})]}),(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Platform ID",fr:"ID de plateforme"}),value:h.id,onChange:d("id"),fullWidth:!0,disabled:a})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,style:s,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"More information about the platform"}),(0,Ap.jsx)(Ip,{children:"Plus d'informations sur la plateforme"})]}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You can also add aditional information about the platform."}),(0,Ap.jsx)(Ip,{children:"Vous pouvez \xe9galement ajouter des informations suppl\xe9mentaires sur la plateforme."})]})})]}),(0,Ap.jsx)(qC,{name:"platformDescription",value:h.description,onChange:d("description"),multiline:!0,disabled:a})]})]})})})]})})},yI=e=>{let{disabled:t,record:n,userPlatforms:r,saveUpdatePlatform:o,userInstruments:a,saveUpdateInstrument:s,updateRecord:l}=e;const c=n.noPlatform&&"false"!==n.noPlatform;return(0,i.useEffect)((()=>{n.platformID&&(l("platforms")([{id:n.platformID,description:n.platformDescription,type:n.platform},...n.platforms]),l("platformID")(null),l("platformDescription")(null),l("platform")(null))}),[n.platformID,n.platform,n.platformDescription]),(0,Ap.jsx)("div",{children:(0,Ap.jsx)(Xn,{style:ZC,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:0,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,style:ZC,children:[(0,Ap.jsx)(KC,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["A platform is anything used in data collection that has instrument(s) attached to it. Eg:",(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:"Glider"}),(0,Ap.jsx)("li",{children:"Ship"}),(0,Ap.jsx)("li",{children:"Buoy"}),(0,Ap.jsx)("li",{children:"Satellite"}),(0,Ap.jsx)("li",{children:"ROV"}),(0,Ap.jsx)("li",{children:"Mooring"})]}),"It is strongly encouraged to fill out platform information. If there is no platform, you can enter instruments at the bottom of the page."]}),(0,Ap.jsxs)(Ip,{children:["Une plateforme d\xe9signe tout \u201cobjet\u201d sur lequel un ou plusieurs instruments sont attach\xe9s et utilis\xe9s dans la collecte des donn\xe9es. Par exemple :",(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:(0,Ap.jsx)("i",{children:"Glider"})}),(0,Ap.jsx)("li",{children:"Navire"}),(0,Ap.jsx)("li",{children:"Bou\xe9e"}),(0,Ap.jsx)("li",{children:"Satellite"}),(0,Ap.jsx)("li",{children:"ROV"}),(0,Ap.jsx)("li",{children:"Amarrage"})]}),"S'il n'y a pas de plateforme, vous pouvez entrer des informations sur les instruments au bas de la page. Sinon, vous devez d\xe9crire le plus pr\xe9cis\xe9ment possible la plateforme utilis\xe9e dans la collecte de donn\xe9es."]})]})}),(0,Ap.jsx)(AC,{disabled:t,control:(0,Ap.jsx)(QC,{name:"noPlatform",checked:c,onChange:e=>{const{checked:t}=e.target;l("noPlatform")(t)}}),label:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"This dataset doesn't have a platform"}),(0,Ap.jsx)(Ip,{children:"Ce jeu de donn\xe9es n'a pas de plateforme"})]})})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,style:ZC,children:[c?(0,Ap.jsx)(KC,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You can still enter an instrument without a platform"}),(0,Ap.jsx)(Ip,{children:"Vous pouvez toujours entrer dans un instrument sans plateforme"})]})}):(0,Ap.jsx)(Ap.Fragment,{children:(0,Ap.jsx)(bI,{platforms:n.platforms,userPlatforms:r,saveUpdatePlatform:o,record:n,updatePlatforms:l("platforms"),disabled:t,paperClass:ZC})}),(0,Ap.jsx)(gI,{instruments:n.instruments,updateInstruments:l("instruments"),saveUpdateInstrument:s,userInstruments:a,disabled:t,paperClass:ZC,noPlatform:c,platformList:n.platforms})]})]})})})};var _I=n(5036),xI=n.n(_I),wI=(0,i.createContext)({}),EI=wI.Consumer,TI=wI.Provider,CI=function(e){var t=function(t,n){return i.createElement(EI,null,(function(r){return i.createElement(e,(0,at.c)({},t,{leaflet:r,ref:n}))}))},n=e.displayName||e.name||"Component";t.displayName="Leaflet("+n+")";var r=(0,i.forwardRef)(t);return Qt()(r,e),r},kI=/^on(.+)$/i,SI=function(e){function t(t){var n;return n=e.call(this,t)||this,(0,nr.c)((0,ur.c)(n),"_leafletEvents",void 0),(0,nr.c)((0,ur.c)(n),"leafletElement",void 0),n._leafletEvents=n.extractLeafletEvents(t),n}(0,rt.c)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.bindLeafletEvents(this._leafletEvents)},n.componentDidUpdate=function(e){this._leafletEvents=this.bindLeafletEvents(this.extractLeafletEvents(this.props),this._leafletEvents)},n.componentWillUnmount=function(){var e=this,t=this.leafletElement;t&&Object.keys(this._leafletEvents).forEach((function(n){t.off(n,e._leafletEvents[n])}))},n.extractLeafletEvents=function(e){return Object.keys(e).reduce((function(t,n){if(kI.test(n)&&null!=e[n]){var r=n.replace(kI,(function(e,t){return t.toLowerCase()}));t[r]=e[n]}return t}),{})},n.bindLeafletEvents=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=this.leafletElement;if(null==n||null==n.on)return{};var r=(0,at.c)({},t);return Object.keys(t).forEach((function(i){null!=e[i]&&t[i]===e[i]||(delete r[i],n.off(i,t[i]))})),Object.keys(e).forEach((function(i){null!=t[i]&&e[i]===t[i]||(r[i]=e[i],n.on(i,e[i]))})),r},n.fireLeafletEvent=function(e,t){var n=this.leafletElement;n&&n.fire(e,t)},t}(i.Component),OI=function(e){return void 0===e&&(e=""),e.split(" ").filter(Boolean)};const AI=function(e,t,n){null!=e&&n!==t&&(null!=t&&t.length>0&&function(e,t){OI(t).forEach((function(t){_I.DomUtil.removeClass(e,t)}))}(e,t),null!=n&&n.length>0&&function(e,t){OI(t).forEach((function(t){_I.DomUtil.addClass(e,t)}))}(e,n))};function jI(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r-1};const ZI=function(e,t){var n=this.__data__,r=GI(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function JI(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ts))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,h=2&n?new oR:void 0;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991};var QR={};QR["[object Float32Array]"]=QR["[object Float64Array]"]=QR["[object Int8Array]"]=QR["[object Int16Array]"]=QR["[object Int32Array]"]=QR["[object Uint8Array]"]=QR["[object Uint8ClampedArray]"]=QR["[object Uint16Array]"]=QR["[object Uint32Array]"]=!0,QR["[object Arguments]"]=QR["[object Array]"]=QR["[object ArrayBuffer]"]=QR["[object Boolean]"]=QR["[object DataView]"]=QR["[object Date]"]=QR["[object Error]"]=QR["[object Function]"]=QR["[object Map]"]=QR["[object Number]"]=QR["[object Object]"]=QR["[object RegExp]"]=QR["[object Set]"]=QR["[object String]"]=QR["[object WeakMap]"]=!1;const UR=function(e){return CR(e)&&BR(e.length)&&!!QR[gL(e)]};const FR=function(e){return function(t){return e(t)}};var zR="object"==typeof exports&&exports&&!exports.nodeType&&exports,qR=zR&&"object"==typeof module&&module&&!module.nodeType&&module,HR=qR&&qR.exports===zR&&iL.process,WR=function(){try{var e=qR&&qR.require&&qR.require("util").types;return e||HR&&HR.binding&&HR.binding("util")}catch(t){}}();var GR=WR&&WR.isTypedArray;const VR=GR?FR(GR):UR;var $R=Object.prototype.hasOwnProperty;const KR=function(e,t){var n=gR(e),r=!n&&jR(e),i=!n&&!r&&NR(e),o=!n&&!r&&!i&&VR(e),a=n||r||i||o,s=a?TR(e.length,String):[],l=s.length;for(var c in e)!t&&!$R.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||MR(c,l))||s.push(c);return s};var YR=Object.prototype;const ZR=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||YR)};const JR=function(e,t){return function(n){return e(t(n))}};const XR=JR(Object.keys,Object);var eN=Object.prototype.hasOwnProperty;const tN=function(e){if(!ZR(e))return XR(e);var t=[];for(var n in Object(e))eN.call(e,n)&&"constructor"!=n&&t.push(n);return t};const nN=function(e){return null!=e&&BR(e.length)&&!bL(e)};const rN=function(e){return nN(e)?KR(e):tN(e)};const iN=function(e){return vR(e,rN,ER)};var oN=Object.prototype.hasOwnProperty;const aN=function(e,t,n,r,i,o){var a=1&n,s=iN(e),l=s.length;if(l!=iN(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:oN.call(t,u)))return!1}var d=o.get(e),p=o.get(t);if(d&&p)return d==t&&p==e;var h=!0;o.set(e,t),o.set(t,e);for(var f=a;++c{let{updateMap:t,mapData:n={},disabled:r,record:o}=e;const a=()=>{const e={...n,north:"",south:"",east:"",west:"",polygon:"",descriptionIdentifier:y_()};t(e)},[s,l]=(0,i.useState)(null),[,c]=(0,i.useState)(null),u=/-?\d+\.?\d+/,d=/-?\d+\.?\d+,\s*-?\d+\.?\d+\s*?/g;function p(e){Object.keys(e).length>1&&Object.keys(e).forEach((t=>{if(1===Object.keys(s.leafletElement._layers).length)return;const n=e[t];s.leafletElement.removeLayer(n)}))}function h(e){return r=>{p(s.leafletElement._layers);const i={...n,[e]:r.target.value};t(i)}}function f(e){let t=[...e.matchAll(d)].map((e=>e[0]));try{t=t.map((e=>e.split(",").map(Number)))}catch(gh){c({error:gh})}return t}function m(e){return Number.parseFloat(e).toPrecision(4)}const g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.polygon;return d.test(e)};xI().EditToolbar.Delete.include({enable(){this.options.featureGroup.clearLayers(),a()}});const v=Boolean(n.north||n.south||n.east||n.west),b=Boolean(n.polygon),y=!v&&!n.polygon;return(0,Ap.jsxs)("div",{children:[(0,Ap.jsxs)(LI,{style:{width:"100%",height:"55vh"},center:[50,-100],zoom:3,children:[(0,Ap.jsx)(DI,{attribution:'© OpenStreetMap contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),(0,Ap.jsxs)(FI,{ref:e=>{l(e)},children:[!1===r&&(0,Ap.jsx)(zN,{position:"topleft",onCreated:e=>{const{layer:r,layerType:i}=e;if(p(s.leafletElement._layers),"polygon"===i){const e=r.getLatLngs()[0].map((e=>{let{lat:t,lng:n}=e;return"".concat(m(t),",").concat(m(n))})),i=e.concat(e[0]).join(" "),o=r.getBounds();let{lat:a,lng:s}=o.getNorthEast(),{lat:l,lng:c}=o.getSouthWest();a=m(a),l=m(l),s=m(s),c=m(c);const u={...n,polygon:i,north:a,south:l,east:s,west:c};t(u)}else{const e=r.getBounds();let{lat:i,lng:o}=e.getNorthEast(),{lat:a,lng:s}=e.getSouthWest();i=m(i),a=m(a),o=m(o),s=m(s);const l={...n,north:i,south:a,east:o,west:s};t(l)}},onMapClear:a,draw:{marker:!1,circle:!1,polyline:!1,circlemarker:!1,polygon:!0},edit:{edit:!1}}),g()&&(0,Ap.jsx)(zI,{positions:f(n.polygon)}),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.north,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.south,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.east,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.west;return u.test(e)&&u.test(t)&&u.test(r)&&u.test(i)}()&&!g()&&(0,Ap.jsx)(qI,{bounds:[[n.north,n.east],[n.south,n.west]]})]})]}),(0,Ap.jsx)("br",{}),(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Bounding Box Coordinates"}),(0,Ap.jsx)(Ip,{children:"Coordonn\xe9es de d\xe9limitation - Est, Ouest, Nord, Sud"})]}),(v&&!b||y)&&(0,Ap.jsx)(ek,{passes:Mx(o,"map")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"If you are providing a bounding box, please provide the coordinates in decimal degrees (eg 58.66) and not in decimal minutes seconds."}),(0,Ap.jsxs)(Ip,{children:["Si vous fournissez des coordonn\xe9es de d\xe9limitation, veuillez les fournir en ",(0,Ap.jsx)("b",{children:"degr\xe9s d\xe9cimaux"}),"."]})]})})]}),(0,Ap.jsxs)(e_,{container:!0,direction:"row",spacing:3,children:[(0,Ap.jsx)(e_,{item:!0,xs:2,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"North",fr:"Nord"}),value:n.north||"",inputProps:{inputMode:"numeric",pattern:"[0-9]*"},onChange:h("north"),type:"number",disabled:r||Boolean(n.polygon)})}),(0,Ap.jsx)(e_,{item:!0,xs:2,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"South",fr:"Sud"}),value:n.south||"",onChange:h("south"),type:"number",disabled:r||Boolean(n.polygon)})}),(0,Ap.jsx)(e_,{item:!0,xs:2,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"East",fr:"Est"}),value:n.east||"",onChange:h("east"),type:"number",disabled:r||Boolean(n.polygon)})}),(0,Ap.jsx)(e_,{item:!0,xs:2,children:(0,Ap.jsx)(CC,{value:n.west||"",label:(0,Ap.jsx)(Lp,{en:"West",fr:"Ouest"}),onChange:h("west"),type:"number",disabled:r||Boolean(n.polygon)})})]}),(0,Ap.jsx)(Or,{variant:"h6",style:{margin:"20px",marginLeft:"20%"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"OR"}),(0,Ap.jsx)(Ip,{children:"Ou"})]})}),(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Polygon coordinates"}),(0,Ap.jsx)(Ip,{children:"Coordonn\xe9es du/des polygone(s)"})]}),(b||y)&&(0,Ap.jsx)(ek,{passes:Mx(o,"map")}),(0,Ap.jsxs)($C,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"If you are providing polygon coordinates, they must start and end with the same point. Eg,"}),(0,Ap.jsx)(Ip,{children:"Doivent commencer et se terminer par le m\xeame point. Par exemple,"})]})," ","48,-128 56,-133 56,-147 48,-128"]})]}),(0,Ap.jsx)(CC,{value:n.polygon||"",onChange:e=>{s&&p(s.leafletElement._layers);const r={...n,polygon:e.target.value,north:"",south:"",east:"",west:""};try{const t=xI().latLngBounds(f(e.target.value)),{lat:n,lng:i}=t.getNorthEast(),{lat:o,lng:a}=t.getSouthWest();r.north=m(n),r.south=m(o),r.east=m(i),r.west=m(a)}catch(i){}t(r)},type:"text",fullWidth:!0,disabled:r||v&&!b}),(0,Ap.jsx)(Or,{variant:"h6",style:{margin:"20px",marginLeft:"20%"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"And optionally"}),(0,Ap.jsx)(Ip,{children:"Et en option"})]})}),(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Describe the Geographic Extent of the dataset. Required for Biological datasets"}),(0,Ap.jsx)(Ip,{children:"D\xe9crivez l'\xe9tendue g\xe9ographique de l'ensemble de donn\xe9es. Obligatoire pour les ensembles de donn\xe9es biologiques"})]}),o.resourceType&&o.resourceType.includes("biological")&&(0,Ap.jsx)(ek,{passes:Boolean(n.description)}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:(0,Ap.jsx)("p",{children:"Optionally you can include a text description of the geographic area covered by this dataset or study. This field is required when filling out biological datasets but is optional for all other dataset types."})}),(0,Ap.jsx)(Ip,{children:(0,Ap.jsx)("p",{children:"Vous pouvez \xe9ventuellement inclure une description textuelle de la zone g\xe9ographique. zone couverte par cet ensemble de donn\xe9es ou cette \xe9tude. Ce champ est obligatoire lors du remplissage d'ensembles de donn\xe9es biologiques, mais est facultatif pour tous d\u2019autres types d\u2019ensembles de donn\xe9es."})})]})})]}),(0,Ap.jsx)(qC,{value:n.description,onChange:function(e){return r=>{const i={...n,[e]:r.target.value};t(i)}}("description"),name:"description",disabled:r})]})})),HN=e=>{let{url:t}=e;return(0,Ap.jsx)(Cr,{onClick:()=>{window.open(t,"_blank").focus()},children:(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Open EPSG definition in new window",fr:"Ouvrir la d\xe9finition EPSG dans une nouvelle fen\xeatre"}),children:(0,Ap.jsx)(lx,{})})})},WN=e=>{let{disabled:t,record:n,handleUpdateRecord:r,updateRecord:i}=e;const{language:o}=mn(),a=n.noVerticalExtent&&"false"!==n.noVerticalExtent;return(0,Ap.jsxs)(e_,{children:[(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{style:{paddingBottom:"15px"},children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the spatial extent of the dataset?"}),(0,Ap.jsx)(Ip,{children:"Quelle est l'\xe9tendue g\xe9ographique du jeu de donn\xe9es?"})]}),(0,Ap.jsxs)($C,{children:[(0,Ap.jsx)("div",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You can draw a bounding box or polygon for the dataset using the Polygon or Box buttons at the left side of them form. Alternatively you can enter them using the fields below. Either a bounding box or a Polygon is required."}),(0,Ap.jsx)(Ip,{children:"Vous pouvez tracer un cadre ou un polygone pour situer g\xe9ographiquement votre jeu de donn\xe9es. Vous pouvez aussi localiser l\u2019aire g\xe9ographique couverte par votre jeu de donn\xe9es en inscrivant les coordonn\xe9es g\xe9ographiques (degr\xe9s d\xe9cimaux) dans les champs apparaissant sous la carte. Cette section doit obligatoirement \xeatre compl\xe9t\xe9e."})]})}),(0,Ap.jsx)("br",{}),(0,Ap.jsx)("div",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Define the geographical area using the tool that meets the geographic distribution of your data. Broadly distributed data in the open ocean might be well served by a bounding box. Tightly clustered coastal data may benefit from a polygon that does not include terrain or unsampled area."}),(0,Ap.jsx)(Ip,{children:"D\xe9finissez la zone g\xe9ographique \xe0 l'aide de l'outil qui correspond \xe0 la distribution g\xe9ographique de vos donn\xe9es. Les donn\xe9es largement distribu\xe9es en haute mer peuvent \xeatre bien desservies par un cadre englobant. Les donn\xe9es c\xf4ti\xe8res \xe9troitement regroup\xe9es peuvent b\xe9n\xe9ficier d'un polygone qui n'inclut pas le terrain ou la zone non \xe9chantillonn\xe9e."})]})})]})]}),(0,Ap.jsx)(qN,{mapData:n.map,updateMap:i("map"),handleUpdateMap:r("map"),disabled:t,record:n})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the vertical extent of the dataset in meters?"}),(0,Ap.jsx)(Ip,{children:"Quelle est l'\xe9tendue verticale du jeu de donn\xe9es en m\xe8tres?"})]}),(0,Ap.jsx)(ek,{passes:Mx(n,"verticalExtentDirection")&&Mx(n,"verticalExtentMin")&&Mx(n,"verticalExtentMax")}),(0,Ap.jsxs)($C,{children:[(0,Ap.jsx)("div",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"This captures the minimum and maximum depths (or height from sea floor) where the instrument recorded data."}),(0,Ap.jsx)(Ip,{children:"Cela permet de capturer les profondeurs minimales et maximales (ou la hauteur du fond marin) o\xf9 l'instrument a enregistr\xe9 des donn\xe9es."})]})}),(0,Ap.jsxs)("div",{style:{paddingTop:"5px"},children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Depth positive: Depth is recorded with positive values (i.e. a maximum value of 150m implies 150m below the water surface)."}),(0,Ap.jsx)(Ip,{children:"Profondeur positive: La profondeur est enregistr\xe9e avec des valeurs positives (c\u2019est-\xe0-dire qu\u2019une valeur maximale de 150 m indique que les enregistrements ont \xe9t\xe9 effectu\xe9s \xe0 un maximum de 150 m au-dessous de la surface)."})]}),(0,Ap.jsx)(HN,{url:"https://epsg.io/5831"})]}),(0,Ap.jsxs)("div",{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Height Positive: Height is the elevation from water surface (i.e. a maximum value of 150m implies 150m above the water surface)."}),(0,Ap.jsx)(Ip,{children:"Hauteur positive: La hauteur est l'altitude par rapport \xe0 la surface de l'eau (c'est-\xe0-dire qu'une valeur maximale de 150 m implique 150 m au-dessus de la surface de l'eau)."})]}),(0,Ap.jsx)(HN,{url:"https://epsg.io/5829"})]})]})]}),(0,Ap.jsx)(AC,{disabled:t,control:(0,Ap.jsx)(QC,{name:"noVerticalExtent",checked:a,onChange:e=>{const{checked:t}=e.target;i("noVerticalExtent")(t)}}),label:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"This dataset does not have a depth or height, value will be set to zero"}),(0,Ap.jsx)(Ip,{children:"Cet ensemble de donn\xe9es n'a ni profondeur ni hauteur, la valeur sera d\xe9finie sur z\xe9ro"})]})}),a?"":(0,Ap.jsxs)(e_,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",spacing:4,children:[(0,Ap.jsxs)(e_,{item:!0,xs:5,children:[(0,Ap.jsx)(Ek,{value:n.verticalExtentDirection||"",onChange:r("verticalExtentDirection"),options:Object.keys(rk),optionLabels:Object.values(rk).map((e=>e[o])),disabled:t}),(0,Ap.jsx)("p",{children:"OR"}),(0,Ap.jsx)(CC,{value:n.verticalExtentEPSG,onChange:r("verticalExtentEPSG"),label:"EPSG code",fullWidth:!0,type:"number",disabled:t})]}),(0,Ap.jsx)(e_,{item:!0,xs:2,children:(0,Ap.jsx)(CC,{value:n.verticalExtentMin,onChange:r("verticalExtentMin"),label:"Min",fullWidth:!0,type:"number",disabled:t})}),(0,Ap.jsx)(e_,{item:!0,xs:2,children:(0,Ap.jsx)(CC,{value:n.verticalExtentMax,onChange:r("verticalExtentMax"),label:"Max",fullWidth:!0,type:"number",disabled:t})})]})]})]})},GN={start:{en:"Start",fr:"Accueil"},dataID:{en:"Resource Identification",fr:"Identification des ressources"},taxa:{en:"Taxonomic Classification",fr:"Classification Taxonomique"},spatial:{en:"Spatial",fr:"Spatial"},contacts:{en:"Contacts",fr:"Contacts"},resources:{en:"Data and Documentation",fr:"Donn\xe9es et documentation"},relatedworks:{en:"Related Works",fr:"Travaux connexes"},platform:{en:"Platform",fr:"Plateforme"},platformInstruments:{en:"Platform - instruments",fr:"Plateforme - instruments"},lineage:{en:"Lineage",fr:"lign\xe9e"}};const VN=function(){const{region:e}=mn();return Cn[e]},$N=e=>{let{record:t,submitRecord:n,userID:r,doiUpdated:o,doiError:a}=e;const s=(0,i.useRef)(!1),[l,c]=(0,i.useState)(!1),[u,d]=(0,i.useState)(!1),[p,h]=(0,i.useState)(!1),{language:f}=mn(),m=(e=>{const t=Object.keys(Dx).filter((t=>!Mx(e,t))).map((e=>{const{error:t,tab:n}=Dx[e];return{error:t,tab:n}}));return t.reduce(((e,t)=>{let{error:n,tab:r}=t;return e[r]||(e[r]=[]),e[r].push(n),e}),{})})(t),g="submitted"===t.status,v=VN();return(0,i.useEffect)((()=>{s.current=!0,r===t.userID&&h(!0);return(async e=>{const t=Object.keys(Bx),n=t.map((t=>(async(e,t)=>{const n=e[t],r=Bx[t]&&Bx[t].validation||(()=>!0),i=await r(n,e);return r&&i})(e,t))),r=await Promise.all(n),i=t.reduce(((e,t,n)=>(e[t]=r[n],e)),{}),o=t.filter((e=>i[e])).map((e=>{const{error:t,tab:n}=Bx[e];return{error:t,tab:n}})),a=o.reduce(((e,t)=>{let{error:n,tab:r}=t;return e[r]||(e[r]=[]),e[r].push(n),e}),{});s.current&&d(a)})(t),()=>{s.current=!1}}),[t,r]),(0,Ap.jsx)(Xn,{style:ZC,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:3,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsxs)(Or,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["Thank-you for completing this form. The information will be reviewed and a ",v.title.en," staff member will contact you to request more information or provide an update on when your dataset will be available through the"," ",v.catalogueTitle.en,". Your information will not be published before you are contacted. If you have any questions or would like to follow up on the status of your record, please contact"]}),(0,Ap.jsxs)(Ip,{children:["Merci d'avoir rempli ce formulaire. L'information sera valid\xe9e par un membre du personnel ",v.titleFrPossessive,". Cette personne pourrait vous contacter pour obtenir plus d'informations ou pour vous indiquer quand votre jeu de donn\xe9es sera disponible dans notre ",v.catalogueTitle.fr,". Vos informations ne seront pas publi\xe9es avant d'obtenir votre approbation. Si vous avez des questions ou si vous d\xe9sirez effectuer un suivi concernant l'\xe9tat de votre soumission, veuillez contacte"]})]})," ",(0,Ap.jsx)("a",{href:"mailto:".concat(v.email),children:v.email}),"."]})}),g?(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Thank you for your submission. A reviewer has been notified. You will receive an email when the record is published. You are still able to edit this record by saving it, until it is published."}),(0,Ap.jsx)(Ip,{children:"Merci pour votre soumission. Un examinateur a \xe9t\xe9 avis\xe9. Vous recevrez un e-mail lors de la publication de l'enregistrement. Vous pouvez toujours modifier cet enregistrement en l'enregistrant, jusqu'\xe0 ce qu'il soit publi\xe9."})]})}),o&&(0,Ap.jsx)(Or,{children:(0,Ap.jsx)("b",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"DOI has successfully been updated with the submitted changes."}),(0,Ap.jsx)(Ip,{children:"DOI a \xe9t\xe9 mis \xe0 jour avec succ\xe8s avec les modifications soumises."})]})})}),a&&(0,Ap.jsx)(Or,{children:(0,Ap.jsx)("b",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Error occurred when updating DOI."}),(0,Ap.jsx)(Ip,{children:"Une erreur s'est produite lors de la mise \xe0 jour du DOI"})]})})})]}):(0,Ap.jsxs)(Ap.Fragment,{children:[Ux(t)?(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You have completed all of the required fields, your record can be submitted now."}),(0,Ap.jsx)(Ip,{children:"Vous avez rempli tous les champs obligatoires, vous pouvez maintenant soumettre votre formulaire."})]})})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[l&&(0,Ap.jsx)(r_,{}),!l&&p&&(0,Ap.jsx)(c_,{onClick:()=>{c(!0),n().then((()=>{c(!1)}))},disabled:g,children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Submit"}),(0,Ap.jsx)(Ip,{children:"Soumettre"})]})})]})]}):(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Errors"}),(0,Ap.jsx)(Ip,{children:"Erreurs"})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You haven't completed all of the required fields. You will need to address the list below before submitting."}),(0,Ap.jsx)(Ip,{children:"Vous n'avez pas rempli tous les champs obligatoires. Veuillez compl\xe9ter les champs identifi\xe9s ci-dessous avant de soumettre votre demande."})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:Object.keys(m).map((e=>(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{variant:"h6",children:GN[e][f]}),(0,Ap.jsx)(ki,{children:m[e].map(((e,t)=>{let{[f]:n}=e;return(0,Ap.jsx)(ko,{children:(0,Ap.jsx)(Yo,{primary:n})},t)}))})]},e)))})]}),u&&Object.keys(u).length>0?(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Warnings"}),(0,Ap.jsx)(Ip,{children:"Avertissements"})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Some warnings were generated for the following fields. Please review and fix the warnings as needed befor submitting the record."}),(0,Ap.jsx)(Ip,{children:"Certains avertissements ont \xe9t\xe9 g\xe9n\xe9r\xe9s pour les champs suivants. Veuillez examiner et corriger les avertissements si n\xe9cessaire avant de soumettre l'enregistrement."})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:Object.keys(u).map((e=>(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{variant:"h6",children:GN[e][f]}),(0,Ap.jsx)(ki,{children:u[e].map(((e,t)=>{let{[f]:n}=e;return(0,Ap.jsx)(ko,{children:(0,Ap.jsx)(Yo,{primary:n})},t)}))})]},e)))})]}):" "]})]})})};var KN=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,a=void 0===o?"div":o,s=(0,Yn.c)(e,["classes","className","component"]);return i.createElement(a,(0,at.c)({ref:t,className:(0,kn.c)(n.root,r)},s))}));const YN=(0,Gn.c)({root:{width:"100%",overflowX:"auto"}},{name:"MuiTableContainer"})(KN);const ZN=i.createContext();var JN="table",XN=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,a=void 0===o?JN:o,s=e.padding,l=void 0===s?"normal":s,c=e.size,u=void 0===c?"medium":c,d=e.stickyHeader,p=void 0!==d&&d,h=(0,Yn.c)(e,["classes","className","component","padding","size","stickyHeader"]),f=i.useMemo((function(){return{padding:l,size:u,stickyHeader:p}}),[l,u,p]);return i.createElement(ZN.Provider,{value:f},i.createElement(a,(0,at.c)({role:a===JN?null:"table",ref:t,className:(0,kn.c)(n.root,r,p&&n.stickyHeader)},h)))}));const eD=(0,Gn.c)((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,at.c)({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(XN);const tD=i.createContext();var nD={variant:"body"},rD="tbody",iD=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,a=void 0===o?rD:o,s=(0,Yn.c)(e,["classes","className","component"]);return i.createElement(tD.Provider,{value:nD},i.createElement(a,(0,at.c)({className:(0,kn.c)(n.root,r),ref:t,role:a===rD?null:"rowgroup"},s)))}));const oD=(0,Gn.c)({root:{display:"table-row-group"}},{name:"MuiTableBody"})(iD);var aD=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,a=void 0===o?"tr":o,s=e.hover,l=void 0!==s&&s,c=e.selected,u=void 0!==c&&c,d=(0,Yn.c)(e,["classes","className","component","hover","selected"]),p=i.useContext(tD);return i.createElement(a,(0,at.c)({ref:t,className:(0,kn.c)(n.root,r,p&&{head:n.head,footer:n.footer}[p.variant],l&&n.hover,u&&n.selected),role:"tr"===a?null:"row"},d))}));const sD=(0,Gn.c)((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$hover:hover":{backgroundColor:e.palette.action.hover},"&$selected, &$selected:hover":{backgroundColor:(0,or.W4)(e.palette.secondary.main,e.palette.action.selectedOpacity)}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(aD);var lD=i.forwardRef((function(e,t){var n,r,o=e.align,a=void 0===o?"inherit":o,s=e.classes,l=e.className,c=e.component,u=e.padding,d=e.scope,p=e.size,h=e.sortDirection,f=e.variant,m=(0,Yn.c)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),g=i.useContext(ZN),v=i.useContext(tD),b=v&&"head"===v.variant;c?(r=c,n=b?"columnheader":"cell"):r=b?"th":"td";var y=d;!y&&b&&(y="col");var _=u||(g&&g.padding?g.padding:"normal"),x=p||(g&&g.size?g.size:"medium"),w=f||v&&v.variant,E=null;return h&&(E="asc"===h?"ascending":"descending"),i.createElement(r,(0,at.c)({ref:t,className:(0,kn.c)(s.root,s[w],l,"inherit"!==a&&s["align".concat((0,Zn.c)(a))],"normal"!==_&&s["padding".concat((0,Zn.c)(_))],"medium"!==x&&s["size".concat((0,Zn.c)(x))],"head"===w&&g&&g.stickyHeader&&s.stickyHeader),"aria-sort":E,role:n,scope:y},m))}));const cD=(0,Gn.c)((function(e){return{root:(0,at.c)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?(0,or.IV)((0,or.W4)(e.palette.divider,1),.88):(0,or.sP)((0,or.W4)(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(lD);function uD(e,t){return function(){return e.apply(t,arguments)}}const{toString:dD}=Object.prototype,{getPrototypeOf:pD}=Object,hD=(e=>t=>{const n=dD.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),fD=e=>(e=e.toLowerCase(),t=>hD(t)===e),mD=e=>t=>typeof t===e,{isArray:gD}=Array,vD=mD("undefined");const bD=fD("ArrayBuffer");const yD=mD("string"),_D=mD("function"),xD=mD("number"),wD=e=>null!==e&&"object"===typeof e,ED=e=>{if("object"!==hD(e))return!1;const t=pD(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},TD=fD("Date"),CD=fD("File"),kD=fD("Blob"),SD=fD("FileList"),OD=fD("URLSearchParams");function AD(e,t){let n,r,{allOwnKeys:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),gD(e))for(n=0,r=e.length;n0;)if(r=n[i],t===r.toLowerCase())return r;return null}const PD="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,ID=e=>!vD(e)&&e!==PD;const LD=(RD="undefined"!==typeof Uint8Array&&pD(Uint8Array),e=>RD&&e instanceof RD);var RD;const ND=fD("HTMLFormElement"),DD=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),MD=fD("RegExp"),BD=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};AD(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},QD="abcdefghijklmnopqrstuvwxyz",UD="0123456789",FD={DIGIT:UD,ALPHA:QD,ALPHA_DIGIT:QD+QD.toUpperCase()+UD};const zD=fD("AsyncFunction"),qD={isArray:gD,isArrayBuffer:bD,isBuffer:function(e){return null!==e&&!vD(e)&&null!==e.constructor&&!vD(e.constructor)&&_D(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||_D(e.append)&&("formdata"===(t=hD(e))||"object"===t&&_D(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&bD(e.buffer),t},isString:yD,isNumber:xD,isBoolean:e=>!0===e||!1===e,isObject:wD,isPlainObject:ED,isUndefined:vD,isDate:TD,isFile:CD,isBlob:kD,isRegExp:MD,isFunction:_D,isStream:e=>wD(e)&&_D(e.pipe),isURLSearchParams:OD,isTypedArray:LD,isFileList:SD,forEach:AD,merge:function e(){const{caseless:t}=ID(this)&&this||{},n={},r=(r,i)=>{const o=t&&jD(n,i)||i;ED(n[o])&&ED(r)?n[o]=e(n[o],r):ED(r)?n[o]=e({},r):gD(r)?n[o]=r.slice():n[o]=r};for(let i=0,o=arguments.length;i3&&void 0!==arguments[3]?arguments[3]:{};return AD(t,((t,r)=>{n&&_D(t)?e[r]=uD(t,n):e[r]=t}),{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&pD(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:hD,kindOfTest:fD,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(gD(e))return e;let t=e.length;if(!xD(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:ND,hasOwnProperty:DD,hasOwnProp:DD,reduceDescriptors:BD,freezeMethods:e=>{BD(e,((t,n)=>{if(_D(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];_D(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return gD(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:jD,global:PD,isContextDefined:ID,ALPHABET:FD,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:FD.ALPHA_DIGIT,n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&_D(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(wD(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=gD(e)?[]:{};return AD(e,((e,t)=>{const o=n(e,r+1);!vD(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:zD,isThenable:e=>e&&(wD(e)||_D(e))&&_D(e.then)&&_D(e.catch)};function HD(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}qD.inherits(HD,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:qD.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const WD=HD.prototype,GD={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{GD[e]={value:e}})),Object.defineProperties(HD,GD),Object.defineProperty(WD,"isAxiosError",{value:!0}),HD.from=(e,t,n,r,i,o)=>{const a=Object.create(WD);return qD.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),HD.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const VD=HD;function $D(e){return qD.isPlainObject(e)||qD.isArray(e)}function KD(e){return qD.endsWith(e,"[]")?e.slice(0,-2):e}function YD(e,t,n){return e?e.concat(t).map((function(e,t){return e=KD(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ZD=qD.toFlatObject(qD,{},null,(function(e){return/^is[A-Z]/.test(e)}));const JD=function(e,t,n){if(!qD.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=qD.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!qD.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&qD.isSpecCompliantForm(t);if(!qD.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(qD.isDate(e))return e.toISOString();if(!s&&qD.isBlob(e))throw new VD("Blob is not supported. Use a Buffer instead.");return qD.isArrayBuffer(e)||qD.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let s=e;if(e&&!i&&"object"===typeof e)if(qD.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(qD.isArray(e)&&function(e){return qD.isArray(e)&&!e.some($D)}(e)||(qD.isFileList(e)||qD.endsWith(n,"[]"))&&(s=qD.toArray(e)))return n=KD(n),s.forEach((function(e,r){!qD.isUndefined(e)&&null!==e&&t.append(!0===a?YD([n],r,o):null===a?n:n+"[]",l(e))})),!1;return!!$D(e)||(t.append(YD(i,n,o),l(e)),!1)}const u=[],d=Object.assign(ZD,{defaultVisitor:c,convertValue:l,isVisitable:$D});if(!qD.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!qD.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),qD.forEach(n,(function(n,o){!0===(!(qD.isUndefined(n)||null===n)&&i.call(t,n,qD.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t};function XD(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function eM(e,t){this._pairs=[],e&&JD(e,this,t)}const tM=eM.prototype;tM.append=function(e,t){this._pairs.push([e,t])},tM.toString=function(e){const t=e?function(t){return e.call(this,t,XD)}:XD;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const nM=eM;function rM(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function iM(e,t,n){if(!t)return e;const r=n&&n.encode||rM,i=n&&n.serialize;let o;if(o=i?i(t,n):qD.isURLSearchParams(t)?t.toString():new nM(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const oM=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){qD.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},aM={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sM={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:nM,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},lM="undefined"!==typeof window&&"undefined"!==typeof document,cM=(uM="undefined"!==typeof navigator&&navigator.product,lM&&["ReactNative","NativeScript","NS"].indexOf(uM)<0);var uM;const dM="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,pM={...t,...sM};const hM=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&qD.isArray(r)?r.length:o,s)return qD.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&qD.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],i)&&qD.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r{t(function(e){return qD.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const fM={transitional:aM,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=qD.isObject(e);i&&qD.isHTMLForm(e)&&(e=new FormData(e));if(qD.isFormData(e))return r?JSON.stringify(hM(e)):e;if(qD.isArrayBuffer(e)||qD.isBuffer(e)||qD.isStream(e)||qD.isFile(e)||qD.isBlob(e))return e;if(qD.isArrayBufferView(e))return e.buffer;if(qD.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return JD(e,new pM.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return pM.isNode&&qD.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=qD.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return JD(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(qD.isString(e))try{return(t||JSON.parse)(e),qD.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||fM.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&qD.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(i){if(n){if("SyntaxError"===i.name)throw VD.from(i,VD.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pM.classes.FormData,Blob:pM.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qD.forEach(["delete","get","head","post","put","patch"],(e=>{fM.headers[e]={}}));const mM=fM,gM=qD.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),vM=Symbol("internals");function bM(e){return e&&String(e).trim().toLowerCase()}function yM(e){return!1===e||null==e?e:qD.isArray(e)?e.map(yM):String(e)}function _M(e,t,n,r,i){return qD.isFunction(r)?r.call(this,t,n):(i&&(t=n),qD.isString(t)?qD.isString(r)?-1!==t.indexOf(r):qD.isRegExp(r)?r.test(t):void 0:void 0)}class xM{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=bM(t);if(!i)throw new Error("header name must be a non-empty string");const o=qD.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=yM(e))}const o=(e,t)=>qD.forEach(e,((e,n)=>i(e,n,t)));return qD.isPlainObject(e)||e instanceof this.constructor?o(e,t):qD.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&gM[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&i(t,e,n),this}get(e,t){if(e=bM(e)){const n=qD.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(qD.isFunction(t))return t.call(this,e,n);if(qD.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=bM(e)){const n=qD.findKey(this,e);return!(!n||void 0===this[n]||t&&!_M(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=bM(e)){const i=qD.findKey(n,e);!i||t&&!_M(0,n[i],i,t)||(delete n[i],r=!0)}}return qD.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!_M(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return qD.forEach(this,((r,i)=>{const o=qD.findKey(n,i);if(o)return t[o]=yM(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=yM(r),n[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n{null!=n&&!1!==n&&(t[r]=e&&qD.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;it.set(e))),t}static accessor(e){const t=(this[vM]=this[vM]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=bM(e);t[r]||(!function(e,t){const n=qD.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return qD.isArray(e)?e.forEach(r):r(e),this}}xM.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),qD.reduceDescriptors(xM.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),qD.freezeMethods(xM);const wM=xM;function EM(e,t){const n=this||mM,r=t||n,i=wM.from(r.headers);let o=r.data;return qD.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function TM(e){return!(!e||!e.__CANCEL__)}function CM(e,t,n){VD.call(this,null==e?"canceled":e,VD.ERR_CANCELED,t,n),this.name="CanceledError"}qD.inherits(CM,VD,{__CANCEL__:!0});const kM=CM;const SM=pM.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];qD.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),qD.isString(r)&&a.push("path="+r),qD.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function OM(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const AM=pM.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=qD.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};const jM=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];i||(i=l),n[o]=s,r[o]=l;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s);n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const IM="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const i=wM.from(e.headers).normalize();let o,a,{responseType:s,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(qD.isFormData(r))if(pM.hasStandardBrowserEnv||pM.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if(!1!==(a=i.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+n))}const d=OM(e.baseURL,e.url);function p(){if(!u)return;const r=wM.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new VD("Request failed with status code "+n.status,[VD.ERR_BAD_REQUEST,VD.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),iM(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(p)},u.onabort=function(){u&&(n(new VD("Request aborted",VD.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new VD("Network Error",VD.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||aM;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new VD(t,r.clarifyTimeoutError?VD.ETIMEDOUT:VD.ECONNABORTED,e,u)),u=null},pM.hasStandardBrowserEnv&&(l&&qD.isFunction(l)&&(l=l(e)),l||!1!==l&&AM(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&SM.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===r&&i.setContentType(null),"setRequestHeader"in u&&qD.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),qD.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&u.addEventListener("progress",PM(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",PM(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{u&&(n(!t||t.type?new kM(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const h=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);h&&-1===pM.protocols.indexOf(h)?n(new VD("Unsupported protocol "+h+":",VD.ERR_BAD_REQUEST,e)):u.send(r||null)}))},LM={http:null,xhr:IM};qD.forEach(LM,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const RM=e=>"- ".concat(e),NM=e=>qD.isFunction(e)||null===e||!1===e,DM=e=>{e=qD.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o{let[t,n]=e;return"adapter ".concat(t," ")+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(RM).join("\n"):" "+RM(e[0]):"as no adapter specified";throw new VD("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function MM(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kM(null,e)}function BM(e){MM(e),e.headers=wM.from(e.headers),e.data=EM.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return DM(e.adapter||mM.adapter)(e).then((function(t){return MM(e),t.data=EM.call(e,e.transformResponse,t),t.headers=wM.from(t.headers),t}),(function(t){return TM(t)||(MM(e),t&&t.response&&(t.response.data=EM.call(e,e.transformResponse,t.response),t.response.headers=wM.from(t.response.headers))),Promise.reject(t)}))}const QM=e=>e instanceof wM?e.toJSON():e;function UM(e,t){t=t||{};const n={};function r(e,t,n){return qD.isPlainObject(e)&&qD.isPlainObject(t)?qD.merge.call({caseless:n},e,t):qD.isPlainObject(t)?qD.merge({},t):qD.isArray(t)?t.slice():t}function i(e,t,n){return qD.isUndefined(t)?qD.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!qD.isUndefined(t))return r(void 0,t)}function a(e,t){return qD.isUndefined(t)?qD.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(QM(e),QM(t),!0)};return qD.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=l[r]||i,a=o(e[r],t[r],r);qD.isUndefined(a)&&o!==s||(n[r]=a)})),n}const FM="1.6.7",zM={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{zM[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const qM={};zM.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new VD(r(i," has been removed"+(t?" in "+t:"")),VD.ERR_DEPRECATED);return t&&!qM[i]&&(qM[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};const HM={assertOptions:function(e,t,n){if("object"!==typeof e)throw new VD("options must be an object",VD.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new VD("option "+o+" must be "+n,VD.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new VD("Unknown option "+o,VD.ERR_BAD_OPTION)}},validators:zM},WM=HM.validators;class GM{constructor(e){this.defaults=e,this.interceptors={request:new oM,response:new oM}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=UM(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&HM.assertOptions(n,{silentJSONParsing:WM.transitional(WM.boolean),forcedJSONParsing:WM.transitional(WM.boolean),clarifyTimeoutError:WM.transitional(WM.boolean)},!1),null!=r&&(qD.isFunction(r)?t.paramsSerializer={serialize:r}:HM.assertOptions(r,{encode:WM.function,serialize:WM.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&qD.merge(i.common,i[t.method]);i&&qD.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=wM.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[BM.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new kM(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new $M((function(t){e=t}));return{token:t,cancel:e}}}const KM=$M;const YM={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(YM).forEach((e=>{let[t,n]=e;YM[n]=t}));const ZM=YM;const JM=function e(t){const n=new VM(t),r=uD(VM.prototype.request,n);return qD.extend(r,VM.prototype,n,{allOwnKeys:!0}),qD.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(UM(t,n))},r}(mM);JM.Axios=VM,JM.CanceledError=kM,JM.CancelToken=KM,JM.isCancel=TM,JM.VERSION=FM,JM.toFormData=JD,JM.AxiosError=VD,JM.Cancel=JM.CanceledError,JM.all=function(e){return Promise.all(e)},JM.spread=function(e){return function(t){return e.apply(null,t)}},JM.isAxiosError=function(e){return qD.isObject(e)&&!0===e.isAxiosError},JM.mergeConfig=UM,JM.AxiosHeaders=wM,JM.formToJSON=e=>hM(qD.isHTMLForm(e)?new FormData(e):e),JM.getAdapter=DM,JM.HttpStatusCode=ZM,JM.default=JM;const XM=JM,eB=e=>{let{record:t,updateRecord:n,disabled:r}=e;const{taxa:o=[]}=t,a=n("taxa"),[s,l]=(0,i.useState)(0),[c,u]=(0,i.useState)(""),[d,p]=(0,i.useState)(""),[h,f]=(0,i.useState)([]),m=(0,i.useRef)(!1),g=(0,i.useRef)(!1),[v,b]=(0,i.useState)(o);x_(v,o)||b(o);const y=HC((e=>{const t={method:"get",url:"https://api.gbif.org/v1/species/suggest",params:{q:e}};g.current=!0,XM(t).then((e=>{m.current&&f([...e.data]),g.current=!1})).catch((e=>{console.error(e),g.current=!1}))}),500);(0,i.useEffect)((()=>(m.current=!0,c.length>2&&!d&&!g.current&&y(c),()=>{m.current=!1})),[c,d,y]);const _=t.noTaxa&&"false"!==t.noTaxa;return(0,Ap.jsxs)(e_,{children:[(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsx)(Pp,{children:"Taxonomic Coverage"}),(0,Ap.jsx)(Ip,{children:"Couverture taxonomique"}),(0,Ap.jsx)(ek,{passes:Mx(t,"taxa")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Please enter the metadata about the taxonomic areas covered by the resource."}),(0,Ap.jsx)(Ip,{children:"Veuillez saisir les m\xe9tadonn\xe9es sur les domaines taxonomiques couverts par la ressource."})]})})]}),(0,Ap.jsx)(AC,{disabled:r,control:(0,Ap.jsx)(QC,{name:"noTaxa",checked:t.noTaxa,onChange:e=>{const{checked:t}=e.target;n("noTaxa")(t)}}),label:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"This dataset does not contain any taxonomic classification"}),(0,Ap.jsx)(Ip,{children:"Cet ensemble de donn\xe9es ne contient aucune classification taxonomique"})]})})]}),_?"":(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsx)(e_,{container:!0,direction:"column",spacing:0,children:(0,Ap.jsx)(_k,{inputValue:c,onInputChange:(e,t)=>{u(t)},getOptionLabel:e=>{var t;return null!==(t=e.scientificName&&"".concat(e.scientificName," (").concat(e.canonicalName,")"))&&void 0!==t?t:e},disabled:r,loading:!g.current,onChange:(e,t)=>{"object"===typeof t&&p(t)},value:d,freeSolo:!0,options:h,fullWidth:!0,renderInput:e=>(0,Ap.jsx)(CC,{...e,label:"GBIF taxa Search"})})}),(0,Ap.jsx)(e_,{item:!0,xs:3,children:(0,Ap.jsx)(c_,{disabled:r||!d&&!c,startIcon:(0,Ap.jsx)(dI,{}),onClick:()=>{d&&(a(o.concat(d)),l(o.length),p(""),u(""))},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add"}),(0,Ap.jsx)(Ip,{children:"Ajouter"})]})})}),(0,Ap.jsxs)(e_,{container:!0,direction:"row",children:[(0,Ap.jsxs)(e_,{item:!0,xs:5,children:[(0,Ap.jsx)(e_,{style:{margin:"10px"},children:(0,Ap.jsx)(Or,{variant:"h6",children:"Taxa"})}),(0,Ap.jsx)(QT,{border:1,borderRadius:"4px",borderColor:"#ababab",margin:"10px",children:(0,Ap.jsx)(ki,{children:(0,Ap.jsx)(Wk.Container,{lockAxis:"y",onDrop:e=>function(e){let{removedIndex:t,addedIndex:n}=e;t===s?l(n):n<=s&&t>s&&l(s+1);const r=$k()(v,t,n);a(r)}(e),children:o.map(((e,t)=>(0,Ap.jsx)(Wk.Draggable,{children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>l(t),children:[(0,Ap.jsx)(Yo,{primary:(0,Ap.jsx)(Or,{style:{fontWeight:s===t?"bold":"",width:"80%"},children:e&&"".concat(e.scientificName," (").concat(e.canonicalName,")")})}),(0,Ap.jsx)(X_,{children:(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Remove from this record",fr:"Supprimer de cet enregistrement"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>{return e=t,a(o.filter(((t,n)=>n!==e))),void(o.length&&l(o.length-2));var e},edge:"end","aria-label":"clone",disabled:r,children:(0,Ap.jsx)(nx,{})})})})})]},t)},t)))})})})]}),(0,Ap.jsxs)(e_,{item:!0,xs:7,children:[(0,Ap.jsx)(e_,{style:{margin:"10px"},children:(0,Ap.jsx)(Or,{variant:"h6",children:"Details"})}),(0,Ap.jsx)(QT,{border:1,borderRadius:"4px",borderColor:"#ababab",margin:"10px",minHeight:"48px",children:o[s]?(0,Ap.jsx)(YN,{component:Xn,children:(0,Ap.jsx)(eD,{size:"small","aria-label":"simple table",children:(0,Ap.jsx)(oD,{children:Object.entries(function(){if(o[s]){const{rank:e,kingdom:t,phylum:n,class:r,order:i,family:a,genus:l,species:c,scientificName:u,canonicalName:d,parent:p}=o[s];return{rank:e,kingdom:t,phylum:n,Class:r,order:i,family:a,genus:l,species:c,scientificName:u,canonicalName:d,parent:p}}return{}}()).map((e=>{let[t,n]=e;return(0,Ap.jsxs)(sD,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[(0,Ap.jsxs)(cD,{component:"th",scope:"row",variant:"head",align:"left",style:{width:"146px"},children:[(0,Zn.c)(t),":"]}),(0,Ap.jsx)(cD,{align:"left",children:n})]},t)}))})})}):""})]})]})]})]})},tB=e=>{let{value:t}=e;return(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Percentage of required fields filled in",fr:"Pourcentage de champs obligatoires remplis"}),children:(0,Ap.jsxs)(QT,{display:"flex",width:"90%",style:{margin:"auto"},children:[(0,Ap.jsx)(QT,{width:"100%",mr:1,children:(0,Ap.jsx)(FT,{variant:"determinate",value:t,style:{marginLeft:"-30px"}})}),(0,Ap.jsx)(QT,{minWidth:35,children:(0,Ap.jsx)(Or,{variant:"body2",color:"textSecondary",children:"".concat(Math.round(t),"%")})})]})})};function nB(e){let{children:t,value:n,index:r,...i}=e;return(0,Ap.jsx)("div",{role:"tabpanel",hidden:n!==r,id:"simple-tabpanel-".concat(r),"aria-labelledby":"simple-tab-".concat(r),...i,children:n===r&&(0,Ap.jsx)(QT,{children:t})})}class rB extends Ub{constructor(e){var t;super(e),t=this,this.toggleModal=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3?arguments[3]:void 0;t.setState({modalKey:r,[e]:n,modalUserID:i})},this.handleUpdateRecord=e=>t=>{const{value:n}=t.target,r={[e]:n};this.setState((e=>{let{record:t}=e;return{record:{...t,...r},saveDisabled:!1}}))},this.updateRecord=e=>t=>{const n={[e]:t};this.setState((e=>{let{record:t}=e;return{record:{...t,...n},saveDisabled:!1}}))},this.state={projects:[],record:O_(),userContacts:{},loading:!1,tabIndex:"start",saveDisabled:!0,highlightMissingRequireFields:!1,editorInfo:{email:"",displayName:""},loggedInUserCanEditRecord:!1,saveIncompleteRecordModalOpen:!1,doiUpdated:!1,doiError:!1}}componentDidMount(){const{match:e}=this.props;this.setState({loading:!0});const t=Bb(Cp);this.unsubscribe=nd(_p(Cp),(async n=>{if(n){const{region:r,recordID:i}=e.params,o=e.url.endsWith("new"),a=n.uid,s=o?a:e.params.userID,l=a===s,{isReviewer:c}=this.context;let u;this.setState({projects:await F_(r),loggedInUserID:n.uid});const d=wb(xb(t,"".concat(r,"/users")),a),p=wb(d,"userinfo");Pb(p,(e=>{u=e.toJSON(),this.setState({editorInfo:u})})),this.listenerRefs.push(p);const h=xb(t,"".concat(r,"/users/").concat(s)),f=wb(d,"contacts");Pb(f,(e=>{const t=e.toJSON();Object.entries(t||{}).forEach((e=>{let[t,n]=e;n.contactID=t})),this.setState({userContacts:t})})),this.listenerRefs.push(f);const m=wb(d,"instruments");Pb(m,(e=>{const t=e.toJSON();Object.entries(t||{}).forEach((e=>{let[t,n]=e;n.instrumentID=t})),this.setState({userInstruments:t})})),this.listenerRefs.push(m);const g=wb(d,"platforms");if(Pb(g,(e=>{const t=e.toJSON();Object.entries(t||{}).forEach((e=>{let[t,n]=e;n.instrumentID=t})),this.setState({userPlatforms:t})})),this.listenerRefs.push(g),o)this.setState({loading:!1,loggedInUserCanEditRecord:!0});else{const e=wb(h,"records/".concat(i));Pb(e,(e=>{const t=e.toJSON();if(!t)return void this.setState({loading:!1,record:null});const n=E_(t),r=n.sharedWith&&!0===n.sharedWith[a],o=c||l||r;this.setState({record:M_(n,null,null,i),loggedInUserCanEditRecord:o}),this.setState({loading:!1})})),this.listenerRefs.push(e)}}}))}saveUpdateContact(e){const{contactID:t}=e,{match:n}=this.props,{region:r}=n.params,i=xb(Bb(Cp),"".concat(r,"/users/").concat(Sp.currentUser.uid,"/contacts"));return t?(kb(wb(i,t),e),t):Eb(i,e).key}async handleUpdateDraftDOI(){const{match:e}=this.props,{region:t,language:n}=e.params,{record:r}=this.state,{datacitePrefix:i}=this.context;try{if(i){200===await JC(r,t,n,i)?this.state.doiUpdated=!0:this.state.doiError=!0}}catch(o){throw console.error("Error updating draft DOI: ",o),this.state.doiError=!0,o}}handleSaveUpdateInstrument(e){const{id:t}=e,{match:n}=this.props,{region:r}=n.params,i=xb(Bb(Cp),"".concat(r,"/users/").concat(Sp.currentUser.uid,"/instruments"));return t?(kb(wb(i,t),e),t):Eb(i,e).key}handleSaveUpdatePlatform(e){const{id:t}=e,{match:n}=this.props,{region:r}=n.params,i=xb(Bb(Cp),"".concat(r,"/users/").concat(Sp.currentUser.uid,"/platforms"));return t?(kb(wb(i,t),e),t):Eb(i,e).key}async handleSubmitRecord(){const{match:e}=this.props,{region:t,userID:n}=e.params,r=e.url.endsWith("new"),{record:i}=this.state,o=Sp.currentUser.uid,a=r?o:n,s=await this.handleSaveClick();return await this.handleUpdateDraftDOI(),Q_(t,a,s,"submitted",i)}async handleSaveClick(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{match:t,history:n}=this.props,{language:r,region:i}=t.params,o=t.params.userID||Sp.currentUser.uid,a=xb(Bb(Cp),"".concat(i,"/users/").concat(o,"/records")),{editorInfo:s}=this.state,l=(c=this.state.record,JSON.parse(JSON.stringify(c,T_)));var c;const u=1===Qx(l);if("published"===l.status&&!u){if(!e)return void this.toggleModal("saveIncompleteRecordModalOpen",!0);l.status=""}let d;if(l.created=(new Date).toISOString(),l.userID=o,l.region=i,l.lastEditedBy=s,l.recordID)d=l.recordID,await kb(wb(a,l.recordID),{...O_(),...l});else{const e=await Eb(a,l);await kb(e,l),d=e.key,this.setState({record:{...l,recordID:d}}),n.push("/".concat(r,"/").concat(i,"/").concat(o,"/").concat(d))}if(["submitted","published"].includes(l.status)){const{regenerateXMLforRecord:e}=this.context,t="".concat(i,"/").concat(o,"/").concat(d),{status:n,filename:r}=l;e({path:t,status:n,filename:r,region:i})}return this.setState({saveDisabled:!0}),d}render(){var e,t;const{match:n}=this.props,{language:r}=n.params,{isReviewer:i}=this.context,{userContacts:o,userInstruments:a,userPlatforms:s,tabIndex:l,record:c,saveDisabled:u,loading:d,highlightMissingRequireFields:p,loggedInUserCanEditRecord:h,saveIncompleteRecordModalOpen:f,projects:m,loggedInUserID:g}=this.state;if(!c)return(0,Ap.jsx)(fC,{});const{classes:v}=this.props,b=!h,y={highlightMissingRequireFields:p,disabled:b,record:c,handleUpdateRecord:this.handleUpdateRecord,updateRecord:this.updateRecord,userID:g},_=Math.round(100*Qx(c));return d?(0,Ap.jsx)(r_,{}):(0,Ap.jsxs)(e_,{container:!0,direction:"column",justifyContent:"space-between",alignItems:"stretch",spacing:3,children:[(0,Ap.jsx)(V_,{open:f,modalQuestion:(0,Ap.jsx)(Lp,{en:"Record is missing required fields. Saving will demote it to draft. Do you want to do this?",fr:"Il manque des champs obligatoires dans l'enregistrement. L'enregistrement le r\xe9trogradera en brouillon. Est-ce que tu veux le faire ?"}),onClose:()=>{this.toggleModal("saveIncompleteRecordModalOpen",!1)},onAccept:()=>{this.handleSaveClick(!0),this.toggleModal("saveIncompleteRecordModalOpen",!1)}}),(0,Ap.jsx)(qT,{color:"primary","aria-label":"add",className:v.fab,disabled:u||!(c.title.en||c.title.fr)||b,onClick:()=>this.handleSaveClick(),children:(0,Ap.jsx)(ms,{placement:"right-start",title:u?"Dataset needs a title before it can be saved":"Save record.",children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(lC,{})})})}),(0,Ap.jsx)(e_,{container:!0,spacing:2,direction:"row",alignItems:"center",children:(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(oC,{scrollButtons:"auto",variant:"fullWidth",value:l,onChange:(e,t)=>this.setState({tabIndex:t}),"aria-label":"simple tabs example",children:[(0,Ap.jsx)(sC,{fullWidth:!0,classes:{root:v.tabRoot},label:GN.start[r],value:"start"}),(0,Ap.jsx)(sC,{fullWidth:!0,classes:{root:v.tabRoot},label:GN.dataID[r],value:"identification"}),(0,Ap.jsx)(sC,{fullWidth:!0,classes:{root:v.tabRoot},label:GN.taxa[r],value:"taxa"}),(0,Ap.jsx)(sC,{fullWidth:!0,classes:{root:v.tabRoot},label:GN.spatial[r],value:"spatial"}),(0,Ap.jsx)(sC,{fullWidth:!0,classes:{root:v.tabRoot},label:"Contact",value:"contact"}),(0,Ap.jsx)(sC,{fullWidth:!0,classes:{root:v.tabRoot},label:GN.resources[r],value:"distribution"}),!["model"].includes(c.metadataScope)&&(0,Ap.jsx)(sC,{fullWidth:!0,classes:{root:v.tabRoot},label:GN.platform[r],value:"platform"}),h&&(0,Ap.jsx)(sC,{fullWidth:!0,classes:{root:v.tabRoot},label:(0,Ap.jsx)(Lp,{en:"Submit",fr:"Soumettre"}),value:"submit",disabled:"submitted"===c.status||"published"===c.status})]}),(0,Ap.jsxs)("div",{style:{marginTop:"10px",textAlign:"center"},children:[(0,Ap.jsxs)(Or,{variant:"h5",children:[r&&(null===(e=c.title)||void 0===e?void 0:e[r])||(0,Ap.jsx)(Lp,{en:"New Record",fr:"Nouvel enregistrement"})," ",(0,Ap.jsx)(hC,{status:c.status})]}),(0,Ap.jsxs)(Or,{component:"div",children:[(0,Ap.jsxs)("i",{children:[(0,Ap.jsx)(YE,{dateStr:c.created}),(null===(t=c.lastEditedBy)||void 0===t?void 0:t.displayName)&&(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"by "}),(0,Ap.jsx)(Ip,{children:"Par "})]}),c.lastEditedBy.displayName," ",i&&c.lastEditedBy.email]})]}),(0,Ap.jsx)(tB,{value:_})]})]})]})}),(0,Ap.jsx)(nB,{value:l,index:"start",children:(0,Ap.jsx)(kk,{...y})}),(0,Ap.jsx)(nB,{value:l,index:"identification",children:(0,Ap.jsx)(fI,{...y,projects:m})}),(0,Ap.jsx)(nB,{value:l,index:"taxa",children:(0,Ap.jsx)(eB,{...y})}),(0,Ap.jsx)(nB,{value:l,index:"spatial",children:(0,Ap.jsx)(WN,{...y})}),(0,Ap.jsx)(nB,{value:l,index:"platform",children:(0,Ap.jsx)(yI,{userInstruments:a,saveUpdateInstrument:e=>this.handleSaveUpdateInstrument(e),userPlatforms:s,saveUpdatePlatform:e=>this.handleSaveUpdatePlatform(e),...y})}),(0,Ap.jsx)(nB,{value:l,index:"distribution",children:(0,Ap.jsx)(dS,{...y})}),(0,Ap.jsx)(nB,{value:l,index:"submit",children:(0,Ap.jsx)($N,{...y,doiUpdated:this.state.doiUpdated,doiError:this.state.doiError,submitRecord:()=>this.handleSubmitRecord()})}),(0,Ap.jsx)(nB,{value:l,index:"contact",children:(0,Ap.jsx)(Zk,{userContacts:o,saveToContacts:e=>this.saveUpdateContact(e),...y})})]})}}rB.contextType=Fb;const iB=(0,Gn.c)((e=>({tabRoot:{minWidth:"115px"},fab:{position:"fixed",bottom:e.spacing(2),right:e.spacing(2)}})))(dn(rB));class oB extends i.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return console.error(e),{hasError:!0}}componentDidCatch(e,t){console.error(e,t),oe(e)}render(){const{hasError:e}=this.state,{children:t}=this.props;return e?(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)("h1",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Something went wrong!"}),(0,Ap.jsx)(Ip,{children:"Un probl\xe8me s'est produit!"})]})}),(0,Ap.jsx)("h5",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"The developers have been notified and are working to resolve the issue."}),(0,Ap.jsx)(Ip,{children:"Les d\xe9veloppeurs ont \xe9t\xe9 avertis et s'effor\xe7ent de r\xe9soudre le probl\xe8me."})]})})]}):t}}const aB=oB;const sB=dn(class extends Ub{constructor(e){super(e),this.state={orgRor:"",orgName:"",orgEmail:"",orgURL:"",orgAdress:"",orgCity:"",orgCountry:"",indOrcid:"",indPosition:"",indEmail:"",givenNames:"",lastName:""};const{match:t}=e,{region:n}=t.params,r=Bb(Cp);this.contactsRef=xb(r,"".concat(n,"/users/").concat(Sp.currentUser.uid,"/contacts"))}async componentDidMount(){const{match:e}=this.props,{contactID:t}=e.params;if(Sp.currentUser&&t){this.setState({contactID:t});const e=wb(this.contactsRef,t);Pb(e,(e=>this.setState(e.toJSON()))),this.listenerRefs.push(e)}}handleChange(e){return t=>{this.setState({[e]:t.target.value})}}handleClear(e){this.setState({[e]:""})}updateOrgFromRor(){return e=>{this.setState({orgRor:e.id,orgName:e.name,orgURL:e.links.find((()=>!0))||"",orgCity:e.addresses.find((()=>!0)).city||"",orgCountry:e.country.country_name})}}updateIndFromOrcid(){return e=>{const{name:t,emails:n}=e.person,r=n.email.length>0?n.email[0].email:"",i=t["family-name"]?t["family-name"].value:"";this.setState({indOrcid:e["orcid-identifier"].uri,givenNames:t["given-names"].value,indEmail:r,lastName:i})}}handleCancelClick(){const{match:e,history:t}=this.props,{language:n,region:r}=e.params;t.push("/".concat(n,"/").concat(r,"/contacts"))}async handleSubmitClick(){const{history:e,match:t}=this.props,{region:n,language:r,contactID:i}=t.params;i?kb(wb(this.contactsRef,i),this.state):Eb(this.contactsRef,this.state),e.push("/".concat(r,"/").concat(n,"/contacts"))}render(){const{orgName:e,givenNames:t,lastName:n}=this.state,r=e||t&&n;return(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Hk,{value:this.state,handleClear:e=>this.handleClear(e),updateContactEvent:e=>this.handleChange(e),updateContactRor:this.updateOrgFromRor(),updateContactOrcid:this.updateIndFromOrcid()})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(lC,{}),variant:"contained",color:"primary",onClick:()=>this.handleSubmitClick(),disabled:!r,children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Save"}),(0,Ap.jsx)(Ip,{children:"Enregistrer"})]})}),(0,Ap.jsx)(c_,{style:{marginLeft:"10px"},variant:"contained",color:"secondary",onClick:()=>this.handleCancelClick(),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Cancel"}),(0,Ap.jsx)(Ip,{children:"Annuler"})]})})]})]})}}),lB=e=>{let{value:t,disabled:n,paperClass:r,updateInstrumentEvent:i}=e;const o=(0,Ap.jsx)(Lp,{en:"Manufacturer",fr:"Fabricant"}),a=(0,Ap.jsx)(Lp,{en:"Version",fr:"Version"}),s=(0,Ap.jsx)(Lp,{en:"Type",fr:"Type"}),l=(0,Ap.jsx)(Lp,{en:"Description",fr:"Description"}),c={...I_(),...t};return(0,Ap.jsx)(e_,{container:!0,direction:"column",spacing:2,children:(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(e_,{container:!0,direction:"column",children:c&&(0,Ap.jsx)(Xn,{style:r,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Instrument ID"}),(0,Ap.jsx)(Ip,{children:"L'ID de l'instrument"})]}),(0,Ap.jsx)(ek,{passes:c.id}),(0,Ap.jsx)(CC,{label:"ID",value:c.id,onChange:i("id"),fullWidth:!0,disabled:n})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(CC,{label:o,name:"manufacturer",value:c.manufacturer,onChange:i("manufacturer"),fullWidth:!0,disabled:n})," "]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:a,value:c.version,onChange:i("version"),fullWidth:!0,disabled:n})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Instrument Type"}),(0,Ap.jsx)(Ip,{children:"Type d'instrument"})]})}),(0,Ap.jsx)(qC,{label:s,value:c.type,onChange:i("type"),disabled:n})]})," ",(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(Or,{children:"Description"}),(0,Ap.jsx)(qC,{label:l,value:c.description,onChange:i("description"),disabled:n})]})]})})})})})};const cB=dn(class extends Ub{constructor(e){super(e),this.state={id:"",manufacturer:"",version:"",type:{en:"",fr:""},description:{en:"",fr:""}};const{match:t}=e,{region:n}=t.params,r=Bb(Cp);this.instrumentsRef=xb(r,"".concat(n,"/users/").concat(Sp.currentUser.uid,"/instruments"))}async componentDidMount(){const{match:e}=this.props,{instrumentID:t}=e.params;if(Sp.currentUser&&t){this.setState({instrumentID:t});const e=wb(this.instrumentsRef,t);Pb(e,(e=>this.setState(e.toJSON()))),this.listenerRefs.push(e)}}handleChange(e){return t=>{this.setState({[e]:t.target.value})}}handleClear(e){this.setState({[e]:""})}handleCancelClick(){const{match:e,history:t}=this.props,{language:n,region:r}=e.params;t.push("/".concat(n,"/").concat(r,"/instruments"))}async handleSubmitClick(){const{history:e,match:t}=this.props,{region:n,language:r,instrumentID:i}=t.params;i?kb(wb(this.instrumentsRef,i),this.state):this.instrumentsRef.push(this.state),e.push("/".concat(r,"/").concat(n,"/instruments"))}render(){return(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(lB,{value:this.state,handleClear:e=>this.handleClear(e),updateInstrumentEvent:e=>this.handleChange(e),paperClass:ZC})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(lC,{}),variant:"contained",color:"primary",onClick:()=>this.handleSubmitClick(),disabled:!this.state.id,children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Save"}),(0,Ap.jsx)(Ip,{children:"Enregistrer"})]})}),(0,Ap.jsx)(c_,{style:{marginLeft:"10px"},variant:"contained",color:"secondary",onClick:()=>this.handleCancelClick(),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Cancel"}),(0,Ap.jsx)(Ip,{children:"Annuler"})]})})]})]})}});var uB=n(3651);function dB(){return Math.round(20*Math.random())-10}function pB(){const e=50+dB(),t=50+dB();return{top:"".concat(e,"%"),left:"".concat(t,"%"),transform:"translate(-".concat(e,"%, -").concat(t,"%)")}}const hB=An((e=>({paper:{position:"absolute",width:400,backgroundColor:e.palette.background.paper,border:"2px solid #000",boxShadow:e.shadows[5],padding:e.spacing(2,4,3)}})));function fB(e){let{open:t,onClose:n,onAccept:r,email:o,setEmail:a}=e;const[s,l]=(0,i.useState)(!0),[c,u]=(0,i.useState)(!1),d=hB(),[p]=i.useState(pB),h=Sx(o);return(0,Ap.jsx)("div",{children:(0,Ap.jsx)(ti,{open:t,onClose:n,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",children:(0,Ap.jsxs)("div",{style:p,className:d.paper,children:[(0,Ap.jsx)("h2",{id:"simple-modal-title",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Transfer Record"}),(0,Ap.jsx)(Ip,{children:"Enregistrement de transfert"})]})}),c?(0,Ap.jsx)("h3",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Transferring..."}),(0,Ap.jsx)(Ip,{children:"Transfert en cours..."})]})}):(0,Ap.jsxs)("div",{children:[!s&&(0,Ap.jsx)("h3",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["User ",o," not found"]}),(0,Ap.jsxs)(Ip,{children:["L'utilisateur ",o," n'a pas \xe9t\xe9 trouv\xe9"]})]})}),(0,Ap.jsx)("div",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter the email address of the user to transfer this record to. The user must have logged into this region at least once:"}),(0,Ap.jsx)(Ip,{children:"Entrez l'adresse e-mail de l'utilisateur vers lequel transf\xe9rer cet enregistrement. L'utilisateur doit s'\xeatre connect\xe9 \xe0 cette r\xe9gion au moins une fois:"})]})}),(0,Ap.jsx)("div",{children:(0,Ap.jsx)(CC,{helperText:!h&&(0,Ap.jsx)(Lp,{en:"Invalid email",fr:"E-mail non valide"}),error:!h,value:o,onChange:e=>{l(!0),a(e.target.value)},fullWidth:!0})}),(0,Ap.jsx)("button",{type:"button",disabled:!o||!h||c,onClick:async()=>{u(!0);const e=await r();l(e),u(!1),e&&n()},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Transfer"}),(0,Ap.jsx)(Ip,{children:"Transfert"})]})}),(0,Ap.jsx)("button",{type:"button",onClick:()=>{l(!0),n()},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Cancel"}),(0,Ap.jsx)(Ip,{children:"Annuler"})]})})]})]})})})}const mB=e=>{let{record:t,language:n,editRecord:r,toggleModal:i,handleCloneRecord:o}=e;const a={record:t,language:n,onViewEditClick:()=>r(t.recordID,t.userinfo.userID),onCloneClick:()=>o(t.recordID,t.userinfo.userID),onDeleteClick:()=>i("deleteModalOpen",!0,t.recordID,t.userinfo.userID),onTransferClick:()=>i("transferModalOpen",!0,t.recordID,t.userinfo.userID),showAuthor:!0,showTransferButton:!0,showDeleteAction:!0,showCloneAction:!0},s=()=>(0,Ap.jsx)(eT,{onSubmitClick:()=>i("submitModalOpen",!0,t.recordID,t.userinfo.userID),showSubmitAction:!0,showEditAction:!0,...a,showPercentComplete:!0}),l=()=>(0,Ap.jsx)(eT,{onSubmitClick:()=>i("publishModalOpen",!0,t.recordID,t.userinfo.userID),onUnSubmitClick:()=>i("unSubmitModalOpen",!0,t.recordID,t.userinfo.userID),showPublishAction:!0,showUnSubmitAction:!0,showEditAction:!0,showPercentComplete:!0,...a}),c=()=>(0,Ap.jsx)(eT,{onUnPublishClick:()=>i("unPublishModalOpen",!0,t.recordID,t.userinfo.userID),showUnPublishAction:!0,showViewAction:!0,showPercentComplete:!0,...a});return"submitted"===t.status?(0,Ap.jsx)(l,{}):"published"===t.status?(0,Ap.jsx)(c,{}):(0,Ap.jsx)(s,{})};const gB=class extends Ub{constructor(e){super(e),this.state={users:[],deleteModalOpen:!1,publishModalOpen:!1,unPublishModalOpen:!1,unSubmitModalOpen:!1,submitModalOpen:!1,transferModalOpen:!1,modalKey:"",modalUserID:"",loading:!1,showRecordTypes:["submitted","published"],showUsers:[],records:[],recordsFilter:"",recordCountsByStatus:{}}}async componentDidMount(){this.setState({loading:!0});const{match:e}=this.props,{region:t}=e.params;this.unsubscribe=nd(_p(Cp),(e=>{if(e){const e=xb(Bb(Cp),"".concat(t,"/users"));Pb(e,(e=>{const t=B_(e,["","submitted","published"]);this.setState({records:t,loading:!1});const n=k_(t.map((e=>e.userinfo.email)));this.setState({records:t,loading:!1,users:n,showUsers:n})})),this.listenerRefs.push(e)}}))}editRecord(e,t){const{history:n}=this.props,{language:r,region:i}=this.props.match.params;n.push("/".concat(r,"/").concat(i,"/").concat(t,"/").concat(e))}async handleTransferRecord(e,t){const{match:n}=this.props,{region:r}=n.params;return async function(e,t,n,r){const i=xb(Bb(Cp),"".concat(r,"/users")),o=(await Sb(i)).val(),a=Object.entries(o).map((e=>{var t;let[n,r]=e;return[n,null===r||void 0===r||null===(t=r.userinfo)||void 0===t?void 0:t.email]})).find((t=>{let[,n]=t;return n.toLowerCase().trim()===e.toLowerCase().trim()}));if(a){const[e]=a,r=wb(i,"".concat(n,")/records/").concat(t)),o=(await Sb(r)).val(),s=await wb(i,"".concat(e,"/records/").concat(o)),l=s.key;if(o.recordID=l,s.update(o),l)return await r.remove(),!0}return!1}(this.state.transferEmail,e,t,r)}handleCloneRecord(e,t){const{match:n}=this.props,{region:r}=n.params;Sp.currentUser&&N_(e,t,Sp.currentUser.uid,r)}async handleSubmitRecord(e,t,n){const{match:r}=this.props,{region:i}=r.params;e&&t&&(this.setState({loading:!0}),await Q_(i,t,e,n),this.setState({loading:!1}))}async deleteRecord(e,t){const{match:n}=this.props,{region:r}=n.params;e&&t&&(this.setState({loading:!0}),await U_(r,t,e),this.setState({loading:!1}))}toggleModal(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0;this.setState({modalKey:n,[e]:t,modalUserID:r})}render(){const{records:e,recordsFilter:t,showRecordTypes:n,showUsers:r,deleteModalOpen:i,transferModalOpen:o,transferEmail:a,transferUserNotFound:s,modalKey:l,modalUserID:c,unPublishModalOpen:u,publishModalOpen:d,unSubmitModalOpen:p,submitModalOpen:h,loading:f,users:m}=this.state,{match:g}=this.props,{language:v}=g.params;let b=e.filter((e=>r.includes(e.userinfo.email))).sort(((e,t)=>e.createdJSON.stringify([e.title||{},e.abstract||{}]).toUpperCase().includes(t.toUpperCase()))));const y={draft:(b.filter((e=>""===e.status))||[]).length,submitted:(b.filter((e=>"submitted"===e.status))||[]).length,published:(b.filter((e=>"published"===e.status))||[]).length};b=b.filter((e=>n.includes(e.status))),b=b.sort(((e,t)=>n.indexOf(e.status)>n.indexOf(t.status)));const _={draft:{en:"Draft",fr:"Brouillon"},submitted:{en:"Submitted",fr:"Soumis"},published:{en:"Published",fr:"Publi\xe9"}},x="fr"===v?"s\xe9lectionn\xe9s":"selected";return(0,Ap.jsxs)(e_,{container:!0,direction:"column",justifyContent:"space-between",alignItems:"stretch",spacing:3,children:[(0,Ap.jsx)(fB,{open:o,onClose:()=>{this.toggleModal("transferModalOpen",!1),this.setState({transferEmail:""})},onAccept:()=>this.handleTransferRecord(l,c),transferUserNotFound:s,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",email:a,setEmail:e=>this.setState({transferEmail:e})}),(0,Ap.jsx)(V_,{open:i,onClose:()=>this.toggleModal("deleteModalOpen",!1),onAccept:()=>this.deleteRecord(l,c),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(V_,{open:h,onClose:()=>this.toggleModal("submitModalOpen",!1),onAccept:()=>this.handleSubmitRecord(l,c,"submitted"),"aria-labelledby":"simple-modal-title"}),(0,Ap.jsx)(V_,{open:d,onClose:()=>this.toggleModal("publishModalOpen",!1),onAccept:()=>this.handleSubmitRecord(l,c,"published"),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(V_,{open:u,onClose:()=>this.toggleModal("unPublishModalOpen",!1),onAccept:()=>this.handleSubmitRecord(l,c,"submitted"),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(V_,{open:p,onClose:()=>this.toggleModal("unSubmitModalOpen",!1),onAccept:()=>this.handleSubmitRecord(l,c,""),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Review submissions"}),(0,Ap.jsx)(Ip,{children:"Examen des soumissions"})]})})}),f?(0,Ap.jsx)(r_,{}):(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsxs)(Xn,{style:{padding:"10px",margin:"10px",width:"100%"},children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsx)(Pp,{children:"Filters"}),(0,Ap.jsx)(Ip,{children:"Filtres"})]}),(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(sk,{value:n,onChange:e=>{this.setState({showRecordTypes:e})},options:["","submitted","published"],optionLabels:["draft","submitted","published"].map((e=>"".concat(_[e][v]," (").concat(y[e],")")))})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsxs)(Mk,{children:[(0,Ap.jsx)(Qk,{expandIcon:(0,Ap.jsx)(uB.c,{}),"aria-controls":"panel2a-content",id:"panel2a-header",children:(0,Ap.jsx)(Or,{children:r.length===m.length?(0,Ap.jsx)(Lp,{en:"Users (All users selected)",fr:"Utilisateurs (Tous les utilisateurs)"}):(0,Ap.jsx)(Lp,{en:"Users (".concat(r.length," ").concat(x,")"),fr:"Utilisateurs (".concat(r.length," ").concat(x,")")})})}),(0,Ap.jsx)(Fk,{children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(Pp,{children:"Select All / None"}),(0,Ap.jsx)(Ip,{children:"Tout s\xe9lectionner/Aucun"}),(0,Ap.jsx)(QC,{label:"Show All / None",onChange:e=>{this.setState({showUsers:e.target.checked?m:[]})}})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(sk,{value:r,onChange:e=>{this.setState({showUsers:e})},options:m,labelSize:null})})]})})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{fullWidth:!0,onChange:e=>{this.setState({recordsFilter:e.target.value})},label:(0,Ap.jsx)(Lp,{en:"Search title and abstract",fr:"Rechercher le titre et le r\xe9sum\xe9"})})})]})]}),b.length?(0,Ap.jsx)(Ap.Fragment,{children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"These are the submissions we have received from all users that have not yet been reviewed. To accept a record, click the 'Publish' button."}),(0,Ap.jsx)(Ip,{children:"Ce sont les soumissions que nous avons re\xe7ues de tous les utilisateurs qui n'ont pas encore \xe9t\xe9 examin\xe9es. Pour accepter un enregistrement, cliquez sur le bouton \xab Publier \xbb."})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(ki,{children:b.map((e=>(0,Ap.jsx)(mB,{record:e,toggleModal:this.toggleModal.bind(this),editRecord:this.editRecord.bind(this),handleCloneRecord:this.handleCloneRecord.bind(this)},e.recordID)))})})]})}):(0,Ap.jsx)(e_,{container:!0,direction:"column",children:(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"There are no records waiting to be reviewed."}),(0,Ap.jsx)(Ip,{children:"Aucun dossier n'attend d'\xeatre examin\xe9."})]})})})})]})]})}};var vB=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.disableTypography,s=void 0!==a&&a,l=(0,Yn.c)(e,["children","classes","className","disableTypography"]);return i.createElement("div",(0,at.c)({className:(0,kn.c)(r.root,o),ref:t},l),s?n:i.createElement(Or,{component:"h2",variant:"h6"},n))}));const bB=(0,Gn.c)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(vB);var yB=i.forwardRef((function(e,t){return i.createElement(Or,(0,at.c)({component:"p",variant:"body1",color:"textSecondary",ref:t},e))}));const _B=(0,Gn.c)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(yB),xB=(0,In.c)(i.createElement("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");var wB=n(6212),EB=n(5140),TB=n(3344);const CB=e=>k_(e.map((e=>e.trim())).filter((e=>e)));class kB extends Ub{constructor(e){super(e),this.handleClickShowPassword=()=>this.setState((e=>({showPassword:!e.showPassword}))),this.handleMouseDownPassword=e=>{e.preventDefault()},this.handleToggleDoiCreation=()=>{const{isDoiCreationEnabled:e,credentialsStored:t}=this.state;e&&t?this.setState({showDeletionDialog:!0}):this.setState((e=>({isDoiCreationEnabled:!e.isDoiCreationEnabled})))},this.handleDisableDoiCreation=async()=>{const{region:e}=this.props.match.params;try{await async function(e){try{const t=Bb(Cp);return await Tb(xb(t,"admin/".concat(e,"/dataciteCredentials"))),{success:!0,message:"All Datacite credentials deleted successfully."}}catch(gh){throw new Error("Failed to delete Datacite credentials.: ".concat(gh))}}(e),this.setState({datacitePrefix:"",dataciteAccountId:"",datacitePass:"",credentialsStored:!1,isDoiCreationEnabled:!1,showDeletionDialog:!1})}catch(gh){throw new Error("Failed to delete DataCite credentials: ".concat(gh))}},this.handleChange=e=>{const{name:t,value:n}=e.target;this.setState({[t]:n},(()=>{"datacitePrefix"===t&&this.validateDatacitePrefix(n)}))},this.validateDatacitePrefix=e=>{const t=/^10\.\d+/.test(e);this.setState({datacitePrefixValid:t})},this.state={admins:[],projects:[],reviewers:[],datacitePrefix:"",datacitePrefixValid:!0,dataciteAccountId:"",datacitePass:"",loading:!1,showPassword:!1,isDoiCreationEnabled:!1,credentialsStored:!1,showDeletionDialog:!1,showCredentialsMissingDialog:!1}}async componentDidMount(){const{match:e}=this.props,{region:t}=e.params,{getCredentialsStored:n,getDatacitePrefix:r}=this.context,i=Bb(Cp);this.setState({loading:!0}),this.unsubscribe=nd(_p(Cp),(async e=>{if(e){const e=wb(xb(i,"admin"),t),o=wb(e,"permissions"),a=await F_(t),s=await r(t).then((e=>e.data)),l=await n(t).then((e=>e.data));Pb(o,(e=>{const t=e.toJSON(),n=t.admins.split(","),r=t.reviewers.split(",");this.setState({projects:a,admins:n,reviewers:r,loading:!1,datacitePrefix:s,credentialsStored:l,isDoiCreationEnabled:l})})),this.listenerRefs.push(o)}}))}componentDidUpdate(e,t){t.credentialsStored!==this.state.credentialsStored&&this.state.credentialsStored&&this.setState({isDoiCreationEnabled:!0})}save(){const{match:e}=this.props,{region:t}=e.params,{reviewers:n,admins:r,projects:i}=this.state,o=Bb(Cp);if(Sp.currentUser){const e=xb(o,"admin/".concat(t)),a=wb(e,"permissions"),s=wb(e,"projects");Cb(wb(a,"admins"),CB(r).join()),Cb(s,CB(i)),Cb(wb(a,"reviewers"),CB(n).join())}}saveDoiCredentials(){const{match:e}=this.props,{region:t}=e.params,{datacitePrefix:n,dataciteAccountId:r,datacitePass:i,isDoiCreationEnabled:o}=this.state,a=Bb(Cp),s=TB.Sn.from("".concat(r,":").concat(i),"utf8").toString("base64");if(!o||n&&r&&i){if(Sp.currentUser){const e=wb(xb(a,"admin/".concat(t)),"dataciteCredentials");Cb(wb(e,"prefix"),n),Cb(wb(e,"dataciteHash"),s),this.setState({datacitePass:"",credentialsStored:!0})}}else this.setState({showCredentialsMissingDialog:!0})}renderDeletionDialog(){return(0,Ap.jsxs)(CS,{open:this.state.showDeletionDialog,onClose:()=>this.setState({showDeletionDialog:!1}),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,Ap.jsx)(bB,{id:"alert-dialog-title",children:"Delete Datacite Credentials?"}),(0,Ap.jsx)(wS,{children:(0,Ap.jsx)(_B,{id:"alert-dialog-description",children:"Disabling DOI creation will delete the stored credentials. Are you sure you want to proceed?"})}),(0,Ap.jsxs)(_S,{children:[(0,Ap.jsx)(c_,{onClick:()=>this.setState({showDeletionDialog:!1}),color:"primary",children:"Cancel"}),(0,Ap.jsx)(c_,{onClick:()=>this.handleDisableDoiCreation(),color:"primary",autoFocus:!0,children:"Delete Credentials"})]})]})}renderCredentialsMissingDialog(){return(0,Ap.jsxs)(CS,{open:this.state.showCredentialsMissingDialog,onClose:()=>this.setState({showCredentialsMissingDialog:!1}),"aria-labelledby":"credentials-missing-dialog-title","aria-describedby":"credentials-=missing-dialog-description",children:[(0,Ap.jsx)(bB,{id:"credentials-missing-dialog-title",children:"Missing DataCite Credentials"}),(0,Ap.jsx)(wS,{children:(0,Ap.jsx)(_B,{id:"credentials-missing-dialog-description",children:"Please add DataCite credentials before saving."})}),(0,Ap.jsx)(_S,{children:(0,Ap.jsx)(c_,{onClick:()=>this.setState({showCredentialsMissingDialog:!1}),color:"primary",autoFocus:!0,children:"OK"})})]})}render(){const{loading:e,reviewers:t,admins:n,projects:r,showPassword:i,datacitePrefix:o,isDoiCreationEnabled:a,credentialsStored:s}=this.state;return(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:3,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Admin"}),(0,Ap.jsx)(Ip,{children:"Administrateurs"})]})}),(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add each admin or reviewer's email address on it's own line"}),(0,Ap.jsx)(Ip,{children:"Ajouter l'adresse e-mail de chaque administrateur ou r\xe9viseur sur sa propre ligne"})]})})]}),e?(0,Ap.jsx)(r_,{}):(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Projects"}),(0,Ap.jsx)(Ip,{children:"Projets"})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{multiline:!0,fullWidth:!0,value:r.join("\n"),onChange:e=>this.setState({projects:e.target.value.split("\n")})})})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Admins"}),(0,Ap.jsx)(Ip,{children:"Administrateurs"})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{multiline:!0,fullWidth:!0,value:n.join("\n"),onChange:e=>this.setState({admins:e.target.value.split("\n")})})})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Reviewers"}),(0,Ap.jsx)(Ip,{children:"R\xe9viseurs"})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{multiline:!0,fullWidth:!0,value:t.join("\n"),onChange:e=>this.setState({reviewers:e.target.value.split("\n")})})})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(lC,{}),variant:"contained",color:"primary",style:{margin:10},onClick:()=>this.save(),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Save Admin Settings"}),(0,Ap.jsx)(Ip,{children:"Enregistrer"})]})})}),(0,Ap.jsx)(Xn,{style:ZC,children:(0,Ap.jsxs)(e_,{container:!0,spacing:2,children:[(0,Ap.jsx)(e_,{item:!0,xs:12,children:(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"DOI Creation Settings"}),(0,Ap.jsx)(Ip,{children:"Param\xe8tres de cr\xe9ation de DOI"})]})})}),(0,Ap.jsxs)(e_,{item:!0,xs:12,container:!0,alignItems:"center",justifyContent:"space-between",children:[(0,Ap.jsx)(e_,{item:!0,children:(0,Ap.jsx)(AC,{control:(0,Ap.jsx)(QC,{checked:this.state.isDoiCreationEnabled||!1,onChange:this.handleToggleDoiCreation}),label:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enable DOI Creation"}),(0,Ap.jsx)(Ip,{children:"Activer la cr\xe9ation de DOI"})]})})}),a&&s&&(0,Ap.jsx)(e_,{item:!0,container:!0,spacing:2,alignItems:"center",children:(0,Ap.jsx)(e_,{item:!0,children:(0,Ap.jsxs)(Or,{variant:"body1",children:[(0,Ap.jsx)(wB.c,{style:{color:"green",marginRight:4,fontSize:"1.4rem"}}),(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Credentials Stored"}),(0,Ap.jsx)(Ip,{children:"Identifiants Enregistr\xe9s"})]})]})})}),a&&!s&&(0,Ap.jsx)(e_,{item:!0,container:!0,spacing:2,alignItems:"center",children:(0,Ap.jsx)(e_,{item:!0,children:(0,Ap.jsxs)(Or,{variant:"body1",children:[(0,Ap.jsx)(EB.c,{style:{color:"red",marginRight:4,fontSize:"1.4rem"}}),(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Please Add DataCite Credentials"}),(0,Ap.jsx)(Ip,{children:"Identifiants Enregistr\xe9s"})]})]})})})]}),a&&(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(e_,{item:!0,xs:12,children:(0,Ap.jsx)(CC,{name:"datacitePrefix",label:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"DataCite Prefix"}),(0,Ap.jsx)(Ip,{children:"Pr\xe9fixe DataCite"})]}),placeholder:"10.0000",value:o||"",onChange:this.handleChange,fullWidth:!0,error:!this.state.datacitePrefixValid,helperText:!this.state.datacitePrefixValid&&"Prefix must start with '10.' followed by numbers."})}),(0,Ap.jsx)(e_,{item:!0,xs:12,children:(0,Ap.jsx)(CC,{name:"dataciteAccountId",label:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Account ID"}),(0,Ap.jsx)(Ip,{children:"Identifiant du compte"})]}),onChange:this.handleChange,fullWidth:!0})}),(0,Ap.jsx)(e_,{item:!0,xs:12,children:(0,Ap.jsx)(CC,{name:"datacitePass",label:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Password"}),(0,Ap.jsx)(Ip,{children:"Mot de passe"})]}),type:i?"text":"password",onChange:this.handleChange,InputProps:{endAdornment:(0,Ap.jsx)(SC,{position:"end",children:(0,Ap.jsx)(Cr,{onClick:this.handleClickShowPassword,onMouseDown:this.handleMouseDownPassword,edge:"end",children:i?(0,Ap.jsx)(xB,{}):(0,Ap.jsx)(ex,{})})})},fullWidth:!0})})]}),this.state.isDoiCreationEnabled&&(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(lC,{}),variant:"contained",color:"primary",onClick:()=>this.saveDoiCredentials(),style:{margin:10},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Save DOI Settings"}),(0,Ap.jsx)(Ip,{children:"Enregistrer les param\xe8tres DOI"})]})})]})})]}),this.renderDeletionDialog(),this.renderCredentialsMissingDialog()]})}}kB.contextType=Fb;const SB=kB,OB=()=>(oe(new Error("Testing sentry")),(0,Ap.jsx)("h1",{children:"Error notification sent"}));const AB=class extends Ub{constructor(e){super(e),this.state={platforms:{},modalOpen:!1,modalKey:"",loading:!1}}async componentDidMount(){this.setState({loading:!0});const{match:e}=this.props,{region:t}=e.params;this.unsubscribe=Sp.onAuthStateChanged((e=>{if(e){const n=xb(Bb(Cp),"".concat(t,"/users/").concat(e.uid,"/platforms"));Pb(n,(e=>this.setState({platforms:e.toJSON(),loading:!1}))),this.listenerRefs.push(n)}}))}handleDeletePlatform(e){const{match:t}=this.props,{region:n}=t.params;Sp.currentUser&&function(e,t,n){Tb(xb(Bb(Cp),"".concat(e,"/users/").concat(t,"/platforms/").concat(n)))}(n,Sp.currentUser.uid,e)}handleClonePlatform(e){const{match:t}=this.props,{region:n}=t.params;return!!Sp.currentUser&&async function(e,t,n){const r=xb(Bb(Cp),"".concat(e,"/users/").concat(t,"/platforms/")),i=(await Sb(wb(r,n))).val();i.id&&(i.id+=" (Copy)"),Eb(r,i)}(n,Sp.currentUser.uid,e)}addPlatform(){const{history:e,match:t}=this.props,{language:n,region:r}=t.params;Sp.currentUser&&async function(e,t){return Eb(xb(Bb(Cp),"".concat(e,"/users/").concat(t,"/platforms/")),{}).key}(r,Sp.currentUser.uid).then((t=>{e.push("/".concat(n,"/").concat(r,"/platforms/").concat(t))}))}editPlatform(e){const{history:t,match:n}=this.props,{language:r,region:i}=n.params;t.push("/".concat(r,"/").concat(i,"/platforms/").concat(e))}toggleModal(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.setState({modalKey:t,modalOpen:e})}render(){const{modalOpen:e,modalKey:t,loading:n,platforms:r}=this.state;return(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:3,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(V_,{open:e,onClose:()=>this.toggleModal(!1),onAccept:()=>this.handleDeletePlatform(t),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Platforms"}),(0,Ap.jsx)(Ip,{children:"Platforms"})]})})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Create platforms here that you can reuse in multiple metadata records."}),(0,Ap.jsx)(Ip,{children:"Ajoutez ici les personnes ressources que vous d\xe9sirez r\xe9utiliser pour la saisie d\u2019autres m\xe9tadonn\xe9es."})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>this.addPlatform(),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add platform"}),(0,Ap.jsx)(Ip,{children:"ajouter un platform"})]})})}),n?(0,Ap.jsx)(r_,{}):(0,Ap.jsx)(Ap.Fragment,{children:(0,Ap.jsx)(e_,{item:!0,xs:!0,children:r&&Object.keys(r).length?(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"These are your platforms"}),(0,Ap.jsx)(Ip,{children:"Ce sont vos platforms"})]})}),(0,Ap.jsx)(ki,{children:Object.entries(r).map((e=>{let[t,n]=e;return(0,Ap.jsxs)(ko,{button:!0,onClick:()=>this.editPlatform(t),children:[(0,Ap.jsx)(Z_,{children:(0,Ap.jsx)($o,{children:(0,Ap.jsx)(rT,{})})}),(0,Ap.jsx)(Yo,{primary:mI({platform:n})}),(0,Ap.jsxs)(X_,{children:[(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Edit",fr:"\xc9diter"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>this.editPlatform(t),children:(0,Ap.jsx)(tx,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Clone",fr:"Clone"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>this.handleClonePlatform(t),children:(0,Ap.jsx)(ox,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Delete",fr:"Supprimer"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>this.toggleModal(!0,t),children:(0,Ap.jsx)(nx,{})})})})]})]},t)}))})]}):(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"No platforms submitted yet"}),(0,Ap.jsx)(Ip,{children:"Aucun platforms n'a encore \xe9t\xe9 soumis"})]})})})})]})}},jB=e=>{let{value:t,disabled:n,paperClass:r,updatePlatformEvent:i}=e;const{language:o="en"}=mn(),a=Object.values(vI).sort(((e,t)=>e["label_".concat(o)].localeCompare(t["label_".concat(o)],o))),s={...R_(),...t};return(0,Ap.jsx)(e_,{container:!0,direction:"column",spacing:2,children:(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(e_,{container:!0,direction:"column",children:s&&(0,Ap.jsx)(Xn,{style:r,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What type of platform is it?"}),(0,Ap.jsx)(Ip,{children:"De quel type de plateforme s'agit-il ?"})]}),(0,Ap.jsxs)($C,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Please select a platform from the "}),(0,Ap.jsx)(Ip,{children:"Veuillez s\xe9lectionner une plateforme dans la "})]}),(0,Ap.jsxs)("a",{href:"http://vocab.nerc.ac.uk/collection/L06/current/",target:"_blank",rel:"noopener noreferrer",children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"SeaVoX Platform Categories (NERC L06 Vocabulary)"}),(0,Ap.jsx)(Ip,{children:"SeaVoX Platform Categories (liste Vocabulaire NERC L06)"})]}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Open in new window",fr:"Ouvrir dans une nouvelle fen\xeatre"}),children:(0,Ap.jsx)(lx,{style:{verticalAlign:"middle"}})})]}),(0,Ap.jsx)(ek,{passes:s.type})]})]}),(0,Ap.jsx)(Ek,{value:s.type,onChange:i("type"),optionLabels:a.map((e=>"".concat(e["label_".concat(o)]))),optionTooltips:a.map((e=>"".concat(e["definition_".concat(o)]))),options:a.map((e=>e.label_en)),disabled:n,label:(0,Ap.jsx)(Lp,{en:"Platform",fr:"Plateforme"}),fullWidth:!1})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the platform ID or code?"}),(0,Ap.jsx)(Ip,{children:"Quel est l'ID de la plateforme ?"})]}),(0,Ap.jsxs)($C,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["This is a unique identification of the platform. If the platform is registered with"," ",(0,Ap.jsx)("a",{href:"https://vocab.seadatanet.org/v_bodc_vocab_v2/search.asp?lib=C17",target:"_blank",rel:"noopener noreferrer",children:"ICES"}),", use that identifier"]}),(0,Ap.jsxs)(Ip,{children:["Il s'agit d'une identification unique de la plateforme. Si la plateforme est enregistr\xe9e aupr\xe8s du"," ",(0,Ap.jsx)("a",{href:"https://vocab.seadatanet.org/v_bodc_vocab_v2/search.asp?lib=C17",target:"_blank",rel:"noopener noreferrer",children:"CIEM"}),", utilisez cet identifiant"]})]}),(0,Ap.jsx)(ek,{passes:s.id})]})]}),(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Platform ID",fr:"ID de plateforme"}),value:s.id,onChange:i("id"),fullWidth:!0,disabled:n})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"More information about the platform"}),(0,Ap.jsx)(Ip,{children:"Plus d'informations sur la plateforme"})]}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You can also add aditional information about the platform."}),(0,Ap.jsx)(Ip,{children:"Vous pouvez \xe9galement ajouter des informations suppl\xe9mentaires sur la plateforme."})]})})]}),(0,Ap.jsx)(qC,{value:s.description,onChange:i("description"),multiline:!0,disabled:n})]})]})})})})})};const PB=dn(class extends Ub{constructor(e){super(e),this.state={id:"",type:"",description:{en:"",fr:""}};const{match:t}=e,{region:n}=t.params,r=Bb(Cp);this.platformsRef=xb(r,"".concat(n,"/users/").concat(Sp.currentUser.uid,"/platforms"))}async componentDidMount(){const{match:e}=this.props,{platformID:t}=e.params;if(Sp.currentUser&&t){this.setState({platformID:t});const e=wb(this.platformsRef,t);Pb(e,(e=>this.setState(e.toJSON()))),this.listenerRefs.push(e)}}handleChange(e){return t=>{this.setState({[e]:t.target.value})}}handleClear(e){this.setState({[e]:""})}handleCancelClick(){const{match:e,history:t}=this.props,{language:n,region:r}=e.params;t.push("/".concat(n,"/").concat(r,"/platforms"))}async handleSubmitClick(){const{history:e,match:t}=this.props,{region:n,language:r,platformID:i}=t.params;i?kb(wb(this.platformsRef,i),this.state):this.platformsRef.push(this.state),e.push("/".concat(r,"/").concat(n,"/platforms"))}render(){return(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(jB,{value:this.state,handleClear:e=>this.handleClear(e),updatePlatformEvent:e=>this.handleChange(e),paperClass:ZC})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(lC,{}),variant:"contained",color:"primary",onClick:()=>this.handleSubmitClick(),disabled:!this.state.id,children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Save"}),(0,Ap.jsx)(Ip,{children:"Enregistrer"})]})}),(0,Ap.jsx)(c_,{style:{marginLeft:"10px"},variant:"contained",color:"secondary",onClick:()=>this.handleCancelClick(),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Cancel"}),(0,Ap.jsx)(Ip,{children:"Annuler"})]})})]})]})}}),IB=e=>{let{children:t}=e;const{language:n,region:r}=mn(),i="/cioos-".concat(r,"-").concat(n,".png");return(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)("img",{src:"/metadata-entry-form"+i,alt:r})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{paddingLeft:"50px"},children:t})]})},LB=e=>{let{match:t}=e;const{loggedIn:n,authIsLoading:r,isReviewer:o,isAdmin:a}=(0,i.useContext)(Fb);return(0,Ap.jsx)(Ap.Fragment,{children:r?(0,Ap.jsx)(r_,{}):(0,Ap.jsx)(IB,{children:n?(0,Ap.jsx)(aB,{children:(0,Ap.jsxs)(un,{children:[(0,Ap.jsx)(rn,{path:"".concat(t.path,"/"),exact:!0,component:tT}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/new"),component:iB}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/contacts/:contactID"),component:sB}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/contacts/new"),component:sB}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/contacts"),component:oT}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/instruments/:instrumentID"),component:cB}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/instruments"),component:sT}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/platforms/:platformID"),component:PB}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/platforms"),component:AB}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/shared"),component:lT}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/:userID/:recordID"),component:iB}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/submissions"),component:tT}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/published"),component:nT}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/reviewer"),component:a||o?gB:fC}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/admin"),component:a||o?SB:fC}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/sentry-test"),component:OB}),(0,Ap.jsx)(rn,{path:"*",component:fC})]})}):(0,Ap.jsx)(cT,{})})})},RB=e=>{let{match:t}=e;const{region:n,language:r}=mn(),i=(0,i_.c)({overrides:{MuiTooltip:{tooltip:{fontSize:"1em"}},MuiFormControlLabel:{root:{"&.Mui-disabled":{"& .MuiCheckbox-root":{color:"#ababab"},"& .MuiTypography-root":{color:"#ababab"}}}},MuiInputBase:{input:{"&.Mui-disabled":{color:"#ababab"}}},MuiAccordionDetails:{root:{flexDirection:"column"}}},palette:{primary:{main:Cn[n].colors.primary},secondary:{main:Cn[n].colors.secondary}},props:{MuiTextField:{variant:"outlined"},MuiSelect:{variant:"outlined"},MuiButton:{variant:"outlined"}}}),o={en:"".concat(Cn[n].title[r]," Metadata Intake Form"),fr:"Formulaire de r\xe9ception des m\xe9tadonn\xe9es ".concat(Cn[n].title[r])};return(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsxs)($y,{children:[(0,Ap.jsx)("title",{children:o[r]}),(0,Ap.jsx)("link",{rel:"icon",type:"image/png",href:"".concat("/metadata-entry-form","/favicons/").concat(n,".ico"),sizes:"16x16"})]}),(0,Ap.jsx)(zb,{children:(0,Ap.jsx)(s_,{theme:i,children:(0,Ap.jsx)(Wb,{children:(0,Ap.jsx)(LB,{match:t})})})})]})};var NB=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.raised,a=void 0!==o&&o,s=(0,Yn.c)(e,["classes","className","raised"]);return i.createElement(Xn,(0,at.c)({className:(0,kn.c)(n.root,r),elevation:a?8:1,ref:t},s))}));const DB=(0,Gn.c)({root:{overflow:"hidden"}},{name:"MuiCard"})(NB);var MB=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.focusVisibleClassName,s=(0,Yn.c)(e,["children","classes","className","focusVisibleClassName"]);return i.createElement(Er,(0,at.c)({className:(0,kn.c)(r.root,o),focusVisibleClassName:(0,kn.c)(a,r.focusVisible),ref:t},s),n,i.createElement("span",{className:r.focusHighlight}))}));const BB=(0,Gn.c)((function(e){return{root:{display:"block",textAlign:"inherit",width:"100%","&:hover $focusHighlight":{opacity:e.palette.action.hoverOpacity},"&$focusVisible $focusHighlight":{opacity:.12}},focusVisible:{},focusHighlight:{overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}}}),{name:"MuiCardActionArea"})(MB);var QB=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,a=void 0===o?"div":o,s=(0,Yn.c)(e,["classes","className","component"]);return i.createElement(a,(0,at.c)({className:(0,kn.c)(n.root,r),ref:t},s))}));const UB=(0,Gn.c)({root:{padding:16,"&:last-child":{paddingBottom:24}}},{name:"MuiCardContent"})(QB);var FB=["video","audio","picture","iframe","img"],zB=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.component,s=void 0===a?"div":a,l=e.image,c=e.src,u=e.style,d=(0,Yn.c)(e,["children","classes","className","component","image","src","style"]),p=-1!==FB.indexOf(s),h=!p&&l?(0,at.c)({backgroundImage:'url("'.concat(l,'")')},u):u;return i.createElement(s,(0,at.c)({className:(0,kn.c)(r.root,o,p&&r.media,-1!=="picture img".indexOf(s)&&r.img),ref:t,style:h,src:p?l||c:void 0},d),n)}));const qB=(0,Gn.c)({root:{display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},media:{width:"100%"},img:{objectFit:"cover"}},{name:"MuiCardMedia"})(zB),HB=An({root:{maxWidth:345},media:{height:400,"&:hover":{filter:"brightness( 100% ) contrast( 100% ) saturate( 200% ) blur( 0px ) hue-rotate( 197deg )"}}});function WB(e){let{region:t,regionSummary:n}=e;const r=hn(),{language:i}=mn(),o=HB(),a=Cn[t],s="/cioos-".concat(t,"-").concat(i,".png");return(0,Ap.jsx)(DB,{className:o.root,onClick:()=>r.push("/".concat(i,"/").concat(t)),style:{minHeight:"500px",minWidth:"400px"},children:(0,Ap.jsxs)(BB,{children:[(0,Ap.jsx)(qB,{className:o.media,image:"".concat("/metadata-entry-form","/map-").concat(t,".jpg"),title:a.title[i]}),(0,Ap.jsxs)(UB,{children:[(0,Ap.jsx)("div",{children:(0,Ap.jsx)("img",{src:"/metadata-entry-form"+s,alt:t,style:{margin:"10px",maxWidth:"300px",maxHeight:"80px"}})}),(0,Ap.jsx)(Or,{variant:"body2",color:"textSecondary",component:"p",children:n})]})]})})}function GB(){const{language:e}=mn();return(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)($y,{children:(0,Ap.jsx)("title",{children:{en:"Metadata Intake Form",fr:"Formulaire de r\xe9ception des m\xe9tadonn\xe9es"}[e]})}),(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{variant:"h6",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Welcome to the CIOOS Metadata Entry Tool. To get started, please select the region where your data was collected."}),(0,Ap.jsx)(Ip,{children:"Bienvenue dans l'outil de saisie de m\xe9tadonn\xe9es du SIOOC. Pour commencer, veuillez s\xe9lectionner la r\xe9gion dans laquelle vos donn\xe9es ont \xe9t\xe9 collect\xe9es."})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(e_,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"stretch",children:Object.entries(Cn).map((t=>{let[n,r]=t;return r.showInRegionSelector?(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(WB,{region:n,regionSummary:r.introPageText[e]})},n):null}))})})]})]})}const VB=":language(en|fr)",$B=":region(".concat(Object.keys(Cn).join("|"),")"),KB=()=>(0,Ap.jsx)(gn,{basename:"/",children:(0,Ap.jsxs)(un,{children:[(0,Ap.jsx)(rn,{exact:!0,path:"/",children:(0,Ap.jsx)(Jt,{to:"/en/region-select"})}),(0,Ap.jsx)(rn,{path:"/".concat(VB,"/region-select"),exact:!0,component:()=>(0,Ap.jsx)(Wb,{children:(0,Ap.jsx)(GB,{})})}),(0,Ap.jsx)(rn,{path:"/".concat(VB,"/").concat($B),component:RB}),(0,Ap.jsx)(rn,{path:"*",children:(0,Ap.jsx)(Jt,{to:"/en/region-select"})})]})});Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));(function(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=we),void 0===e.release){var t=(0,u.mm)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!1),function(e,t){!0===t.debug&&c.Q.enable();var n=(0,l.WS)(),r=new e(t);n.bindClient(r)}(fe,e),e.autoSessionTracking&&function(){var e=(0,u.mm)(),t=(0,l.WS)(),n="complete"===document.readyState,r=!1,i=function(){r&&n&&t.endSession()},o=function(){n=!0,i(),e.removeEventListener("load",o)};t.startSession(),n||e.addEventListener("load",o);try{var a=new PerformanceObserver((function(e,t){e.getEntries().forEach((function(e){"first-contentful-paint"===e.name&&e.startTime{e.unregister()})).catch((e=>{console.error(e.message)}))})()})(); -//# sourceMappingURL=main.7b2d96a3.js.map \ No newline at end of file +/*! For license information please see main.4634a5ac.js.LICENSE.txt */ +(()=>{var e={8660:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Cite:()=>lt,logger:()=>z,plugins:()=>v,util:()=>b,version:()=>on});var r={};n.r(r),n.d(r,{currentVersion:()=>T,retrieveLastVersion:()=>S,retrieveVersion:()=>C,save:()=>O,undo:()=>k});var i={};n.r(i),n.d(i,{defaultOptions:()=>N,options:()=>D});var o={};n.r(o),n.d(o,{dataTypeOf:()=>B,typeOf:()=>M});var a={};n.r(a),n.d(a,{applyGraph:()=>Q,removeGraph:()=>U});var s={};n.r(s),n.d(s,{DataParser:()=>ne,FormatParser:()=>re,TypeParser:()=>te});var l={};n.r(l),n.d(l,{clean:()=>he});var c={};n.r(c),n.d(c,{add:()=>Le,addDataParser:()=>Oe,addTypeParser:()=>K,chain:()=>ve,chainAsync:()=>ye,chainLink:()=>be,chainLinkAsync:()=>_e,data:()=>ke,dataAsync:()=>Se,get:()=>Re,has:()=>De,hasDataParser:()=>Ae,hasTypeParser:()=>Y,list:()=>Me,listDataParser:()=>Pe,listTypeParser:()=>J,remove:()=>Ne,removeDataParser:()=>je,removeTypeParser:()=>Z,treeTypeParser:()=>X,type:()=>$,typeMatcher:()=>ee,util:()=>Be});var u={};n.r(u),n.d(u,{add:()=>Ue,addAsync:()=>Fe,reset:()=>He,set:()=>ze,setAsync:()=>qe});var d={};n.r(d),n.d(d,{sort:()=>Ke});var p={};n.r(p),n.d(p,{async:()=>Ye,validateOptions:()=>R,validateOutputOptions:()=>L});var h={};n.r(h),n.d(h,{add:()=>Xe,format:()=>rt,has:()=>tt,list:()=>nt,register:()=>Je,remove:()=>et});var f={};n.r(f),n.d(f,{format:()=>ot,get:()=>at,getIds:()=>it});var m={};n.r(m),n.d(m,{add:()=>ut,get:()=>ft,has:()=>pt,htmlDict:()=>mt,list:()=>ht,register:()=>ct,remove:()=>dt,textDict:()=>gt});var g={};n.r(g),n.d(g,{add:()=>bt,get:()=>yt,has:()=>_t,list:()=>wt,remove:()=>xt});var v={};n.r(v),n.d(v,{add:()=>Ct,config:()=>g,dict:()=>m,has:()=>St,input:()=>c,list:()=>Ot,output:()=>h,remove:()=>kt});var b={};n.r(b),n.d(b,{Grammar:()=>zt,Register:()=>Ze,TokenStack:()=>Ft,Translator:()=>Wt,deepCopy:()=>me,fetchFile:()=>Mt,fetchFileAsync:()=>Bt,fetchId:()=>Qe,setUserAgent:()=>Qt});var y={};n.r(y),n.d(y,{parse:()=>Gt});var _={};n.r(_),n.d(_,{parse:()=>Mt,parseAsync:()=>Bt});var x={};n.r(x),n.d(x,{default:()=>$t,parse:()=>$t});var w={};n.r(w),n.d(w,{parse:()=>Kt});var E={};n.r(E),n.d(E,{parse:()=>Yt});const T=function(){return this.log.length},C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(e<=0||e>this.currentVersion())return null;{const[t,n]=this.log[e-1],r=new lt(JSON.parse(t),JSON.parse(n));return r.log=this.log.slice(0,e),r}},k=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.retrieveVersion(this.currentVersion()-e)},S=function(){return this.retrieveVersion(this.currentVersion())},O=function(){return this.log.push([JSON.stringify(this.data),JSON.stringify(this._options)]),this},A=["real","string"],j=["json","html","string","rtf"],P=["csl","bibtex","bibtxt","citation-*","ris","ndjson"],I=["string","function"];function L(e){if("object"!==typeof e)throw new TypeError("Options not an object!");const{format:t,type:n,style:r,lang:i,append:o,prepend:a}=e;if(t&&!A.includes(t))throw new TypeError('Option format ("'.concat(t,'") should be one of: ').concat(A));if(n&&!j.includes(n))throw new TypeError('Option type ("'.concat(n,'") should be one of: ').concat(j));if(r&&!P.includes(r)&&!/^citation/.test(r))throw new TypeError('Option style ("'.concat(r,'") should be one of: ').concat(P));if(i&&"string"!==typeof i)throw new TypeError("Option lang should be a string, but is a ".concat(typeof i));if(a&&!I.includes(typeof a))throw new TypeError("Option prepend should be a string or a function, but is a ".concat(typeof a));if(o&&!I.includes(typeof o))throw new TypeError("Option append should be a string or a function, but is a ".concat(typeof o));if(/^citation/.test(r)&&"json"===n)throw new Error("Combination type/style of json/citation-* is not valid: ".concat(n,"/").concat(r));return!0}function R(e){if("object"!==typeof e)throw new TypeError("Options should be an object");if(e.output)L(e.output);else{if(e.maxChainLength&&"number"!==typeof e.maxChainLength)throw new TypeError("Option maxChainLength should be a number");if(e.forceType&&"string"!==typeof e.forceType)throw new TypeError("Option forceType should be a string");if(null!=e.generateGraph&&"boolean"!==typeof e.generateGraph)throw new TypeError("Option generateGraph should be a boolean");if(null!=e.strict&&"boolean"!==typeof e.strict)throw new TypeError("Option strict should be a boolean");if(null!=e.target&&"string"!==typeof e.target)throw new TypeError("Option target should be a boolean")}return!0}const N={format:"real",type:"json",style:"csl",lang:"en-US"},D=function(e,t){return L(e),t&&this.save(),Object.assign(this._options,e),this},M=e=>{switch(e){case void 0:return"Undefined";case null:return"Null";default:return e.constructor.name}},B=e=>{switch(typeof e){case"string":return"String";case"object":if(Array.isArray(e))return"Array";if("Object"===M(e))return"SimpleObject";if("Null"!==M(e))return"ComplexObject";default:return"Primitive"}},Q=(e,t)=>{if(e._graph){const n=t.findIndex((e=>{let{type:t}=e;return"@else/list+object"===t}));-1!==n&&t.splice(n+1,0,...e._graph.slice(0,-1))}return e._graph=t,e},U=e=>(delete e._graph,e),F={_output(e,t,n){this._log.push(t,n),this._levels.indexOf(e)1?t-1:0),r=1;r{switch(t){case"Array":return 0===e.length||e.every((e=>"@csl/object"===$(e)))?"@csl/list+object":"@else/list+object";case"SimpleObject":case"ComplexObject":return"@csl/object";default:return"@invalid"}},V=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;for(const n of e)if(q[n].predicate(t))return V(q[n].extensions,t)||n},$=e=>{const t=B(e);if("Array"===t&&0===e.length)return G(e,t);return V(H[t],e)||G(e,t)},K=(e,t)=>{let{dataType:n,predicate:r,extends:i}=t,o=[];e in W&&(o=W[e],delete W[e],z.debug("[core]",'Subclasses "'.concat(o,'" finally registered to parent type "').concat(e,'"')));const a={predicate:r,extensions:o};if(q[e]=a,i){const t=q[i];t?t.extensions.push(e):(W[i]||(W[i]=[]),W[i].push(e),z.debug("[core]",'Subclass "'.concat(e,'" is waiting on parent type "').concat(i,'"')))}else{(H[n]||(H[n]=[])).push(e)}},Y=e=>Object.prototype.hasOwnProperty.call(q,e),Z=e=>{delete q[e];const t=[...Object.keys(H).map((e=>H[e])),...Object.keys(q).map((e=>q[e].extensions)).filter((e=>e.length>0))];t.forEach((t=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)}))},J=()=>Object.keys(q),X=()=>{const e=t=>({name:t,children:q[t].extensions.map(e)});return{name:"Type tree",children:Object.keys(H).map((t=>({name:t,children:H[t].map(e)})))}},ee=/^(?:@(.+?))(?:\/(?:(.+?)\+)?(?:(.+)))?$/;class te{constructor(e){var t,n,r;r=["String","Array","SimpleObject","ComplexObject","Primitive"],(n="validDataTypes")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this.data=e}validateDataType(){const e=this.data.dataType;if(e&&!this.validDataTypes.includes(e))throw new RangeError("dataType was ".concat(e,"; expected one of ").concat(this.validDataTypes))}validateParseType(){const e=this.data.predicate;if(e&&!(e instanceof RegExp||"function"===typeof e))throw new TypeError("predicate was ".concat(typeof e,"; expected RegExp or function"))}validateTokenList(){const e=this.data.tokenList;if(e&&"object"!==typeof e)throw new TypeError("tokenList was ".concat(typeof e,"; expected object or RegExp"))}validatePropertyConstraint(){const e=this.data.propertyConstraint;if(e&&"object"!==typeof e)throw new TypeError("propertyConstraint was ".concat(typeof e,"; expected array or object"))}validateElementConstraint(){const e=this.data.elementConstraint;if(e&&"string"!==typeof e)throw new TypeError("elementConstraint was ".concat(typeof e,"; expected string"))}validateExtends(){const e=this.data.extends;if(e&&"string"!==typeof e)throw new TypeError("extends was ".concat(typeof e,"; expected string"))}validate(){if(null===this.data||"object"!==typeof this.data)throw new TypeError("typeParser was ".concat(typeof this.data,"; expected object"));this.validateDataType(),this.validateParseType(),this.validateTokenList(),this.validatePropertyConstraint(),this.validateElementConstraint(),this.validateExtends()}parseTokenList(){let e=this.data.tokenList;if(!e)return[];e instanceof RegExp&&(e={token:e});const{token:t,split:n=/\s+/,trim:r=!0,every:i=!0}=e,o=i?"every":"some";return[e=>(e=>r?e.trim():e)(e).split(n)[o]((e=>t.test(e)))]}parsePropertyConstraint(){return[].concat(this.data.propertyConstraint||[]).map((e=>{let{props:t,match:n,value:r}=e;switch(t=[].concat(t),n){case"any":case"some":return e=>t.some((t=>t in e&&(!r||r(e[t]))));case"none":return e=>!t.some((t=>t in e&&(!r||r(e[t]))));default:return e=>t.every((t=>t in e&&(!r||r(e[t]))))}}))}parseElementConstraint(){const e=this.data.elementConstraint;return e?[t=>t.every((t=>$(t)===e))]:[]}parsePredicate(){return this.data.predicate instanceof RegExp?[this.data.predicate.test.bind(this.data.predicate)]:this.data.predicate?[this.data.predicate]:[]}getCombinedPredicate(){const e=[...this.parsePredicate(),...this.parseTokenList(),...this.parsePropertyConstraint(),...this.parseElementConstraint()];return 0===e.length?()=>!0:1===e.length?e[0]:t=>e.every((e=>e(t)))}getDataType(){return this.data.dataType?this.data.dataType:this.data.predicate instanceof RegExp||this.data.tokenList?"String":this.data.elementConstraint?"Array":"Primitive"}get dataType(){return this.getDataType()}get predicate(){return this.getCombinedPredicate()}get extends(){return this.data.extends}}class ne{constructor(e){let{async:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.parser=e,this.async=t}validate(){const e=this.parser;if("function"!==typeof e)throw new TypeError("parser was ".concat(typeof e,"; expected function"))}}class re{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.format=e,t.parseType&&(this.typeParser=new te(t.parseType)),t.parse&&(this.dataParser=new ne(t.parse,{async:!1})),t.parseAsync&&(this.asyncDataParser=new ne(t.parseAsync,{async:!0}))}validateFormat(){const e=this.format;if(!ee.test(e))throw new TypeError('format name was "'.concat(e,"\"; didn't match expected pattern"))}validate(){this.validateFormat(),this.typeParser&&this.typeParser.validate(),this.dataParser&&this.dataParser.validate(),this.asyncDataParser&&this.asyncDataParser.validate()}}var ie=n(6112);function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t"number"===typeof e))?e:!t||e.some((e=>isNaN(parseInt(e))))?void 0:e.map((e=>parseInt(e)))},pe=function(e,t,n){const r=[].concat(ce[e]);switch(ce[e]){case 1:return ue(t,n);case 2:return function(e,t){if(e instanceof Array){const n=e.map((e=>ue(e,t))).filter(Boolean);return n.length?n:void 0}}(t,n);case 3:return function(e,t){const n="date-parts";if("object"===typeof e&&null!==e){if(e[n]instanceof Array&&e[n].every((e=>e instanceof Array))){const r=e[n].map((e=>de(e,t))).filter(Boolean);return r.length?ae(ae({},e),{},{"date-parts":r}):void 0}if(e instanceof Array&&e.every((e=>e[n]instanceof Array))){const r=e.map((e=>de(e[n],t))).filter(Boolean);return r.length?{"date-parts":r}:void 0}if(e[n]instanceof Array){const r=de(e[n],t);return r&&{"date-parts":[r]}}return"literal"in e||"raw"in e?e:void 0}}(t,n);case 4:return function(e,t){return e=pe("language",e,t),!0===le[e]?e:t&&e in le?le[e]:void 0}(t,n)}if(/^_/.test(e))return t;if(n){if("string"===typeof t&&r.includes("number")&&!r.includes("string")&&!isNaN(+t))return parseFloat(t);if("number"===typeof t&&r.includes("string")&&!r.includes("number"))return t.toString();if(Array.isArray(t)&&t.length)return pe(e,t[0],n)}return r.includes(typeof t)?t:void 0},he=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.map((function(e){const n={};for(const r in e){const i=pe(r,e[r],t);void 0!==i&&(n[r]=i)}return n}))};function fe(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if("object"!==typeof e||null===e||e.constructor!==Object&&e.constructor!==Array)return e;if(n.has(e))throw new TypeError("Recursively copying circular structure");if(n.add(e),e.constructor===Array)t=e.map((e=>fe(e,n)));else{const r={};for(const t in e)r[t]=fe(e[t],n);t=r}return n.delete(e),t}const me=fe;class ge{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.options=Object.assign({generateGraph:!0,forceType:$(e),maxChainLength:10,strict:!0,target:"@csl/list+object"},t),this.type=this.options.forceType,this.data="object"===typeof e?me(e):e,this.graph=[{type:this.type,data:e}],this.iteration=0}iterate(){if(0!==this.iteration){const e=Re(this.type);e&&e.outputs?this.type=e.outputs:this.type=$(this.data),this.graph.push({type:this.type})}return!this.error&&this.type!==this.options.target&&(this.iteration>=this.options.maxChainLength?(this.error=new RangeError("Max. number of parsing iterations reached (".concat(this.graph.reduce(((e,t)=>{const n=e[e.length-1];return n&&n.type===t.type?n.count=n.count+1||2:e.push(t),e}),[]).map((e=>(e.count>1?e.count+"x ":"")+e.type)).join(" -> "),")")),!1):(this.iteration++,!0))}end(){if(this.error){if(z.error("[core]",this.error.message),!1!==this.options.strict)throw this.error;return[]}return"@csl/list+object"===this.options.target?this.data.map(this.options.generateGraph?e=>Q(e,this.graph):U):this.data}}const ve=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=$(e),n=t.match(/array|object/)?me(e):e;return ke(n,t)},ye=async function(){for(var e=arguments.length,t=new Array(e),n=0;n{r.error=e}));return r.end()},_e=async e=>{const t=$(e),n=t.match(/array|object/)?me(e):e;return Se(n,t)},xe=e=>[].concat(...e),we={},Ee={},Te={"@csl/object":e=>[e],"@csl/list+object":e=>e,"@else/list+object":e=>xe(e.map(ve)),"@invalid":()=>{throw new Error("This format is not supported or recognized")}},Ce={"@else/list+object":async e=>xe(await Promise.all(e.map(ye)))},ke=(e,t)=>{if("function"===typeof we[t])return we[t](e);if("function"===typeof Te[t])return Te[t](e);throw new TypeError("No synchronous parser found for ".concat(t))},Se=async(e,t)=>{if("function"===typeof Ee[t])return Ee[t](e);if("function"===typeof Ce[t])return Ce[t](e);if(Ae(t,!1))return ke(e,t);throw new TypeError("No parser found for ".concat(t))},Oe=(e,t)=>{let{parser:n,async:r}=t;r?Ee[e]=n:we[e]=n},Ae=(e,t)=>t?Ee[e]||Ce[e]:we[e]||Te[e],je=(e,t)=>{delete(t?Ee:we)[e]},Pe=e=>Object.keys(e?Ee:we),Ie={},Le=(e,t)=>{const n=new re(e,t);n.validate();const r=Ie[e]||(Ie[e]={});n.typeParser&&(K(e,n.typeParser),r.type=!0),n.dataParser&&(Oe(e,n.dataParser),r.data=!0),n.asyncDataParser&&(Oe(e,n.asyncDataParser),r.asyncData=!0),t.outputs&&(r.outputs=t.outputs)},Re=e=>Ie[e],Ne=e=>{const t=Ie[e];t&&(t.type&&Z(e),t.data&&je(e),t.asyncData&&je(e,!0),delete Ie[e])},De=e=>e in Ie,Me=()=>Object.keys(Ie),Be=Object.assign({},o,a,s,l),Qe=function(e,t){let n;for(;void 0===n||e.includes(n);)n="".concat(t).concat(Math.random().toString().slice(2));return n},Ue=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!0!==t&&!0!==(arguments.length>2&&void 0!==arguments[2]&&arguments[2])||this.save(),this.data.push(...ve(e,t)),this.data.filter((e=>!Object.prototype.hasOwnProperty.call(e,"id"))).forEach((e=>{e.id=Qe(this.getIds(),"temp_id_")})),this},Fe=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!0!==t&&!0!==(arguments.length>2&&void 0!==arguments[2]&&arguments[2])||this.save(),this.data.push(...await ye(e,t)),this.data.filter((e=>!Object.prototype.hasOwnProperty.call(e,"id"))).forEach((e=>{e.id=Qe(this.getIds(),"temp_id_")})),this},ze=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!0!==t&&!0!==(arguments.length>2&&void 0!==arguments[2]&&arguments[2])||this.save(),this.data=[],"boolean"!==typeof t?this.add(e,t):this.add(e)},qe=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!0!==t&&!0!==(arguments.length>2&&void 0!==arguments[2]&&arguments[2])||this.save(),this.data=[],"boolean"!==typeof t?this.addAsync(e,t):this.addAsync(e)},He=function(e){return e&&this.save(),this.data=[],this._options={},this},We=e=>{if("citation-label"in e)return e["citation-label"];let t="";return e.author&&(t+=e.author[0].family||e.author[0].literal),e.issued&&e.issued["date-parts"]&&e.issued["date-parts"][0]&&(t+=e.issued["date-parts"][0][0]),e["year-suffix"]?t+=e["year-suffix"]:e.title&&(t+=e.title.replace(/<\/?.*?>/g,"").match(/^(?:(?:the|a|an)\s+)?(\S+)/i)[1]),t},Ge={label:e=>e.reduce(((e,t)=>(e[t.id]=We(t),e)),{})},Ve=function(e,t){let n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label"===t)?We(e):e[t];switch(t){case"author":case"editor":return n.map((e=>e.literal||e.family||(0,ie.format)(e)));case"accessed":case"issued":return n["date-parts"][0];case"page":return n.split("-").map((e=>parseInt(e)));case"edition":case"issue":case"volume":return n=parseInt(n),isNaN(n)?-1/0:n;default:return n||-1/0}},$e=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:/^!/.test(n);n=n.replace(/^!/,"");const i=Ve(e,n),o=Ve(t,n);return(r?-1:1)*(i>o?1:i0&&void 0!==arguments[0]?arguments[0]:[];return(arguments.length>1?arguments[1]:void 0)&&this.save(),this.data.sort("function"===typeof e?e:function(){for(var e=arguments.length,t=new Array(e),n=0;n{const r=t.slice();let i=0;for(;!i&&r.length;)i=$e(e,n,r.shift());return i}}(...e,"label")),this},Ye=function(e,t,n){"function"!==typeof t||n||(n=t,t=void 0);const r=lt().setAsync(e,t);return"function"===typeof n?void r.then(n):r};const Ze=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.data=e}set(e,t){return this.data[e]=t,this}add(){return this.set(...arguments)}delete(e){return delete this.data[e],this}remove(){return this.delete(...arguments)}get(e){return this.data[e]}has(e){return Object.prototype.hasOwnProperty.call(this.data,e)}list(){return Object.keys(this.data)}},Je=new Ze,Xe=(e,t)=>{((e,t)=>{if("string"!==typeof e)throw new TypeError("Invalid output format name, expected string, got ".concat(typeof e));if("function"!==typeof t)throw new TypeError("Invalid formatter, expected function, got ".concat(typeof t))})(e,t),Je.set(e,t)},et=e=>{Je.remove(e)},tt=e=>Je.has(e),nt=()=>Je.list(),rt=function(e,t){if(!Je.has(e))throw new Error('Output format "'.concat(e,'" unavailable'));for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;ie.id))}function ot(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{};L(e);const t=Object.assign({},this.defaultOptions,this._options.output,e),{type:n,style:r}=t,[i,o]=r.split("-"),a="citation"===i?"bibliography":"csl"===i?"data":i,s="string"===n?"text":"json"===n?"object":n;let l;switch(a){case"bibliography":{const{lang:e,append:n,prepend:r}=t;l={template:o,lang:e,format:s,append:n,prepend:r};break}case"data":case"bibtex":case"bibtxt":case"ndjson":case"ris":l={type:s};break;default:throw new Error('Invalid style "'.concat(a,'"'))}const c=this.format(a,Object.assign(l,e._newOptions)),{format:u}=t;if("real"===u&&"html"===s&&"undefined"!==typeof document&&"function"===typeof document.createElement){const e=document.createElement("div");return e.innerHTML=c,e.firstChild}return"string"===u&&"object"===typeof c?JSON.stringify(c):c}function st(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this instanceof st?(this._options=t,this.log=[],this.data=[],this.set(e,t),this.options(t),this):new st(e,t)}Object.assign(st.prototype,r,i,u,d,f),st.prototype[Symbol.iterator]=function*(){yield*this.data},Object.assign(st,p);const lt=st,ct=new Ze({html:{bibliographyContainer:['
    ',"
    "],entry:['
    ',"
    "],list:['
      ',"
    "],listItem:["
  • ","
  • "]},text:{bibliographyContainer:["","\n"],entry:["","\n"],list:["\n",""],listItem:["\t","\n"]}}),ut=(e,t)=>{((e,t)=>{if("string"!==typeof e)throw new TypeError("Invalid dict name, expected string, got ".concat(typeof e));if("object"!==typeof t)throw new TypeError("Invalid dict, expected object, got ".concat(typeof t));for(const n in t){const e=t[n];if(!Array.isArray(e)||e.some((e=>"string"!==typeof e)))throw new TypeError('Invalid dict entry "'.concat(n,'", expected array of strings'))}})(e,t),ct.set(e,t)},dt=e=>{ct.remove(e)},pt=e=>ct.has(e),ht=()=>ct.list(),ft=e=>{if(!ct.has(e))throw new Error('Dict "'.concat(e,'" unavailable'));return ct.get(e)},mt={wr_start:'
    ',wr_end:"
    ",en_start:'
    ',en_end:"
    ",ul_start:'
      ',ul_end:"
    ",li_start:"
  • ",li_end:"
  • "},gt={wr_start:"",wr_end:"\n",en_start:"",en_end:"\n",ul_start:"\n",ul_end:"",li_start:"\t",li_end:"\n"},vt={},bt=(e,t)=>{vt[e]=t},yt=e=>vt[e],_t=e=>Object.prototype.hasOwnProperty.call(vt,e),xt=e=>{delete vt[e]},wt=()=>Object.keys(vt),Et={input:c,output:h,dict:m,config:g},Tt={},Ct=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Tt[e]={};for(const r in t){if("config"===r){n.config={[e]:t.config},Et.config.add(e,t.config);continue}const i=n[r]={},o=t[r];for(const e in o){const t=o[e];i[e]=!0,Et[r].add(e,t)}}},kt=e=>{const t=Tt[e];for(const n in t){const e=t[n];for(const t in e)Et[n].remove(t)}delete Tt[e]},St=e=>e in Tt,Ot=()=>Object.keys(Tt);var At=n(5296),jt=n.n(At),Pt=(n(3256),n(6144));const It="undefined"!==typeof location&&"undefined"!==typeof document;let Lt=It?"":"Citation.js/".concat(Pt.version," Node.js/").concat(process.version);function Rt(e){const t={},n=e instanceof Headers||e instanceof jt().Headers?Array.from(e):Object.entries(e);for(const[r,i]of n)t[r.toLowerCase()]=i.toString();return t}function Nt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={headers:{accept:"*/*"},method:"GET",checkContentType:e.checkContentType};if(Lt&&!It&&(t.headers["user-agent"]=Lt),e.body){t.method="POST";const n="string"!==typeof e.body;t.body=n?JSON.stringify(e.body):e.body,t.headers["content-type"]=n?"application/json":"text/plain"}return e.headers&&Object.assign(t.headers,Rt(e.headers)),t}function Dt(e,t){const{status:n,headers:r}=e;let i;if(n>=400?i=new Error("Server responded with status code ".concat(n)):!0!==t.checkContentType||function(e,t){if(!e.accept||"*/*"===e.accept||!t["content-type"])return!0;const[n,r]=t["content-type"].split(";")[0].trim().split("/");return e.accept.split(",").map((e=>e.split(";")[0].trim().split("/"))).some((e=>{let[t,i]=e;return(t===n||"*"===t)&&(i===r||"*"===i)}))}(t.headers,Rt(r))||(i=new Error("Server responded with content-type ".concat(r.get("content-type")))),i)throw i.status=n,i.headers=r,i.body=e.body,i;return e}function Mt(e,t){const n=Nt(t);z.http("[core]",n.method,e,n);return Dt(jt()(e,n),n).text()}async function Bt(e,t){const n=Nt(t);return z.http("[core]",n.method,e,n),fetch(e,n).then((e=>Dt(e,n))).then((e=>e.text()))}function Qt(e){Lt=e}class Ut{constructor(e){this.stack=e,this.index=0,this.current=this.stack[this.index]}static getPatternText(e){return'"'.concat(e instanceof RegExp?e.source:e,'"')}static getMatchCallback(e){if(Array.isArray(e)){const t=e.map(Ut.getMatchCallback);return e=>t.some((t=>t(e)))}return e instanceof Function?e:e instanceof RegExp?t=>e.test(t):t=>e===t}tokensLeft(){return this.stack.length-this.index}matches(e){return Ut.getMatchCallback(e)(this.current,this.index,this.stack)}matchesSequence(e){const t=this.stack.slice(this.index,this.index+e.length).join("");return"string"===typeof e?t===e:e.every(((e,n)=>Ut.getMatchCallback(e)(t[n])))}consumeToken(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:/^[\s\S]$/,{inverse:t=!1,spaced:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n&&this.consumeWhitespace();const r=this.current;if(!Ut.getMatchCallback(e)(r,this.index,this.stack))throw new SyntaxError("Unexpected token at index ".concat(this.index,": Expected ").concat(Ut.getPatternText(e),', got "').concat(r,'"'));return this.current=this.stack[++this.index],n&&this.consumeWhitespace(),r}consumeWhitespace(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:/^\s$/,{optional:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.consume(e,{min:+!t})}consumeN(e){if(this.tokensLeft()0&&void 0!==arguments[0]?arguments[0]:/^[\s\S]$/,{min:t=0,max:n=1/0,inverse:r=!1,tokenMap:i,tokenFilter:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=this.index,s=Ut.getMatchCallback(e);for(;s(this.current,this.index,this.stack)!==r;)this.current=this.stack[++this.index];let l=this.stack.slice(a,this.index);if(l.lengthn)throw new SyntaxError("Too many ".concat(Ut.getPatternText(e)));return i&&(l=l.map(i)),o&&(l=l.filter(o)),l.join("")}}const Ft=Ut;class zt{constructor(e,t){this.rules=e,this.defaultState=t,this.mainRule=Object.keys(e)[0],this.log=[]}parse(e,t){return this.lexer=e,this.token=this.lexer.next(),this.state=fe(this.defaultState),this.log=[],this.consumeRule(t||this.mainRule)}matchEndOfFile(){return!this.token}matchToken(e){return this.token&&e===this.token.type}consumeToken(e,t){const n=this.token;if(!e||n&&n.type===e)return this.token=this.lexer.next(),n;if(!t){const t=n?'"'.concat(n.type,'"'):"EOF",r=new SyntaxError(this.lexer.formatError(n,'expected "'.concat(e,'", got ').concat(t)));throw r.message+=" (".concat(this.log.join("->"),")"),r}}consumeRule(e){this.log.push(e);const t=this.rules[e].call(this);return this.log.pop(),t}}function qt(e,t){let n,r,i,o;if("string"===typeof e)n=r=e;else{if(!e)return null;n=t?e.target:e.source,r=t?e.source:e.target,e.convert&&(i=t?e.convert.toSource:e.convert.toTarget),e.when&&(o=t?e.when.target:e.when.source,null!=o&&(o=function(e){return function(t){return"boolean"===typeof e?e:Object.keys(e).every((n=>{const r=e[n];return!0===r?n in t:!1===r?!(n in t):"function"===typeof r?r(t[n]):Array.isArray(r)?r.includes(t[n]):t[n]===r}))}}(o)))}return n=[].concat(n).filter(Boolean),r=[].concat(r).filter(Boolean),{inputProp:n,outputProp:r,convert:i,condition:o}}function Ht(e,t){return t=t===Wt.CONVERT_TO_SOURCE,e=e.map((e=>qt(e,t))).filter(Boolean),function(t){const n={};for(const{inputProp:i,outputProp:o,convert:a,condition:s}of e){if(0===o.length)continue;if(s&&!s(t))continue;if(0!==i.length&&i.every((e=>!(e in t))))continue;let e=i.map((e=>t[e]));if(a)try{const n=a.apply(t,e);e=1===o.length?[n]:n}catch(r){throw new Error("Failed to convert ".concat(i," to ").concat(o),{cause:r})}o.forEach(((t,r)=>{const i=e[r];void 0!==i&&(n[t]=i)}))}return n}}class Wt{constructor(e){this.convertToSource=Ht(e,Wt.CONVERT_TO_SOURCE),this.convertToTarget=Ht(e,Wt.CONVERT_TO_TARGET)}}Wt.CONVERT_TO_SOURCE=Symbol("convert to source"),Wt.CONVERT_TO_TARGET=Symbol("convert to target");const Gt=()=>[],Vt=[[/((?:\[|:|,)\s*)'((?:\\'|[^'])*?[^\\])?'(?=\s*(?:\]|}|,))/g,'$1"$2"'],[/((?:(?:"|]|}|\/[gmiuys]|\.|(?:\d|\.|-)*\d)\s*,|{)\s*)(?:"([^":\n]+?)"|'([^":\n]+?)'|([^":\n]+?))(\s*):/g,'$1"$2$3$4"$5:']],$t=function(e){if("string"!==typeof e)return JSON.parse(e);try{return JSON.parse(e)}catch(t){return z.debug("[plugin-common]","Invalid JSON, switching to experimental parser"),Vt.forEach((t=>{let[n,r]=t;e=e.replace(n,r)})),JSON.parse(e)}};function Kt(e){return e.val()||e.text()||e.html()}function Yt(e){return e.value||e.textContent}const Zt={"@empty/text":{parse:Gt,parseType:{dataType:"String",predicate:e=>""===e}},"@empty/whitespace+text":{parse:Gt,parseType:{dataType:"String",predicate:/^\s+$/}},"@empty":{parse:Gt,parseType:{dataType:"Primitive",predicate:e=>null==e}},"@else/json":{parse:$t,parseType:{dataType:"String",predicate:/^\s*(\{[\S\s]*\}|\[[\S\s]*\])\s*$/}},"@else/url":{parse:Mt,parseAsync:Bt,parseType:{dataType:"String",predicate:/^https?:\/\/(([\w-]+\.)*[\w-]+)(:\d+)?(\/[^?/]*)*(\?[^#]*)?(#.*)?$/i}},"@else/jquery":{parse:Kt,parseType:{dataType:"ComplexObject",predicate:e=>"undefined"!==typeof jQuery&&e instanceof jQuery}},"@else/html":{parse:Yt,parseType:{dataType:"ComplexObject",predicate:e=>"undefined"!==typeof HTMLElement&&e instanceof HTMLElement}}},Jt=(e,t,n)=>e+(ten(e,t))):Object.keys(e).filter((t=>JSON.stringify(e[t]))).map((n=>'"'.concat(n,'": ').concat(en(e[n],t)))),r=r.map(Jt).map((e=>t.listItem.join(e))),r=t.list.join(r.join("")),n?"[".concat(r,"]"):"{".concat(r,"}")},en=function(e,t){return"object"===typeof e&&null!==e?0===e.length?"[]":0===Object.keys(e).length?"{}":Xt(e,t):JSON.stringify(e)},tn=function(e,t){let n=e.map((e=>Xt(e,t)));return n=n.map(Jt).map((e=>t.entry.join(e))),n=n.join(""),t.bibliographyContainer.join("[".concat(n,"]"))};const nn={data(e){let{type:t,format:n=t||"text"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"object"===n?me(e):"text"===n?JSON.stringify(e,null,2):(z.warn("[core]","This feature (JSON output with special formatting) is unstable. See https://github.com/larsgw/citation.js/issues/144"),tn(e,ft(n)))},ndjson:e=>e.map((e=>JSON.stringify(e))).join("\n")},rn=Object.assign({},nn,Ge);Ct("@else",{input:Zt,output:rn});const on=Pt.version},6116:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n={_output(e,t,n){this._log.push(t,n),this._levels.indexOf(e)1?t-1:0),o=1;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;t.parse=()=>[]},8968:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e){return e.value||e.textContent}},7767:(e,t,n)=>{"use strict";t.a8=void 0;var r=c(n(2169)),i=c(n(68)),o=c(n(2956)),a=c(n(8788)),s=c(n(8968));function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}const u={empty:r,url:i,json:o,jquery:a,html:s};t.a8=u;r.parse,r.parse,r.parse,o.parse,i.parse,i.parseAsync,a.parse,s.parse},8788:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e){return e.val()||e.text()||e.html()}},2956:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.default=void 0;var r,i=(r=n(6116))&&r.__esModule?r:{default:r};const o=[[/((?:\[|:|,)\s*)'((?:\\'|[^'])*?[^\\])?'(?=\s*(?:\]|}|,))/g,'$1"$2"'],[/((?:(?:"|]|}|\/[gmiuys]|\.|(?:\d|\.|-)*\d)\s*,|{)\s*)(?:"([^":\n]+?)"|'([^":\n]+?)'|([^":\n]+?))(\s*):/g,'$1"$2$3$4"$5:']];t.default=t.parse=function(e){if("string"!==typeof e)return JSON.parse(e);try{return JSON.parse(e)}catch(t){return i.default.debug("[plugin-common]","Invalid JSON, switching to experimental parser"),o.forEach((t=>{let[n,r]=t;e=e.replace(n,r)})),JSON.parse(e)}}},68:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return r.fetchFile}}),Object.defineProperty(t,"parseAsync",{enumerable:!0,get:function(){return r.fetchFileAsync}});var r=n(4320)},6532:(e,t,n)=>{"use strict";t.c=void 0;var r=o(n(2032)),i=o(n(5796));function o(e){return e&&e.__esModule?e:{default:e}}var a=Object.assign({},r.default,i.default);t.c=a},2032:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getJsonWrapper=function(e){return p(e,i.dict.get("html"))};var r,i=l(n(7252)),o=l(n(4320)),a=(r=n(6116))&&r.__esModule?r:{default:r};function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}const c=(e,t,n)=>e+(td(e,t))):Object.keys(e).filter((t=>JSON.stringify(e[t]))).map((n=>'"'.concat(n,'": ').concat(d(e[n],t)))),r=r.map(c).map((e=>t.listItem.join(e))),r=t.list.join(r.join("")),n?"[".concat(r,"]"):"{".concat(r,"}")},d=function(e,t){return"object"===typeof e&&null!==e?0===e.length?"[]":0===Object.keys(e).length?"{}":u(e,t):JSON.stringify(e)},p=function(e,t){let n=e.map((e=>u(e,t)));return n=n.map(c).map((e=>t.entry.join(e))),n=n.join(""),t.bibliographyContainer.join("[".concat(n,"]"))};var h={data(e){let{type:t,format:n=t||"text"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"object"===n?o.deepCopy(e):"text"===n?JSON.stringify(e,null,2):(a.default.warn("[core]","This feature (JSON output with special formatting) is unstable. See https://github.com/larsgw/citation.js/issues/144"),p(e,i.dict.get(n)))},ndjson:e=>e.map((e=>JSON.stringify(e))).join("\n")};t.default=h},5796:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLabel=t.default=void 0;const n=e=>{if("citation-label"in e)return e["citation-label"];let t="";return e.author&&(t+=e.author[0].family||e.author[0].literal),e.issued&&e.issued["date-parts"]&&e.issued["date-parts"][0]&&(t+=e.issued["date-parts"][0][0]),e["year-suffix"]?t+=e["year-suffix"]:e.title&&(t+=e.title.replace(/<\/?.*?>/g,"").match(/^(?:(?:the|a|an)\s+)?(\S+)/i)[1]),t};t.getLabel=n;var r={label:e=>e.reduce(((e,t)=>(e[t.id]=n(t),e)),{})};t.default=r},1624:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.remove=t.list=t.has=t.get=t.add=void 0;const n={};t.add=(e,t)=>{n[e]=t};t.get=e=>n[e];t.has=e=>Object.prototype.hasOwnProperty.call(n,e);t.remove=e=>{delete n[e]};t.list=()=>Object.keys(n)},2040:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.textDict=t.remove=t.register=t.list=t.htmlDict=t.has=t.get=t.add=void 0;var r,i=(r=n(8060))&&r.__esModule?r:{default:r};const o=new i.default({html:{bibliographyContainer:['
    ',"
    "],entry:['
    ',"
    "],list:['
      ',"
    "],listItem:["
  • ","
  • "]},text:{bibliographyContainer:["","\n"],entry:["","\n"],list:["\n",""],listItem:["\t","\n"]}});t.register=o;t.add=(e,t)=>{((e,t)=>{if("string"!==typeof e)throw new TypeError("Invalid dict name, expected string, got ".concat(typeof e));if("object"!==typeof t)throw new TypeError("Invalid dict, expected object, got ".concat(typeof t));for(const n in t){const e=t[n];if(!Array.isArray(e)||e.some((e=>"string"!==typeof e)))throw new TypeError('Invalid dict entry "'.concat(n,'", expected array of strings'))}})(e,t),o.set(e,t)};t.remove=e=>{o.remove(e)};t.has=e=>o.has(e);t.list=()=>o.list();t.get=e=>{if(!o.has(e))throw new Error('Dict "'.concat(e,'" unavailable'));return o.get(e)};t.htmlDict={wr_start:'
    ',wr_end:"
    ",en_start:'
    ',en_end:"
    ",ul_start:'
      ',ul_end:"
    ",li_start:"
  • ",li_end:"
  • "};t.textDict={wr_start:"",wr_end:"\n",en_start:"",en_end:"\n",ul_start:"\n",ul_end:"",li_start:"\t",li_end:"\n"}},7252:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.remove=t.output=t.list=t.input=t.has=t.dict=t.config=t.add=void 0;var r=l(n(6440));t.input=r;var i=l(n(548));t.output=i;var o=l(n(2040));t.dict=o;var a=l(n(1624));function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}t.config=a;const c={input:r,output:i,dict:o,config:a},u={};t.add=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=u[e]={};for(const r in t){if("config"===r){n.config={[e]:t.config},c.config.add(e,t.config);continue}const i=n[r]={},o=t[r];for(const e in o){const t=o[e];i[e]=!0,c[r].add(e,t)}}};t.remove=e=>{const t=u[e];for(const n in t){const e=t[n];for(const t in e)c[n].remove(t)}delete u[e]};t.has=e=>e in u;t.list=()=>Object.keys(u)},3300:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chainLinkAsync=t.chainLink=t.chainAsync=t.chain=void 0;var r=c(n(1964)),i=c(n(6116)),o=n(8904),a=n(9624),s=n(9320),l=n(2704);function c(e){return e&&e.__esModule?e:{default:e}}class u{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.options=Object.assign({generateGraph:!0,forceType:(0,a.type)(e),maxChainLength:10,strict:!0,target:"@csl/list+object"},t),this.type=this.options.forceType,this.data="object"===typeof e?(0,r.default)(e):e,this.graph=[{type:this.type,data:e}],this.iteration=0}iterate(){if(0!==this.iteration){const e=(0,o.get)(this.type);e&&e.outputs?this.type=e.outputs:this.type=(0,a.type)(this.data),this.graph.push({type:this.type})}return!this.error&&this.type!==this.options.target&&(this.iteration>=this.options.maxChainLength?(this.error=new RangeError("Max. number of parsing iterations reached (".concat(this.graph.reduce(((e,t)=>{const n=e[e.length-1];return n&&n.type===t.type?n.count=n.count+1||2:e.push(t),e}),[]).map((e=>(e.count>1?e.count+"x ":"")+e.type)).join(" -> "),")")),!1):(this.iteration++,!0))}end(){if(this.error){if(i.default.error("[core]",this.error.message),!1!==this.options.strict)throw this.error;return[]}return"@csl/list+object"===this.options.target?this.data.map(this.options.generateGraph?e=>(0,l.applyGraph)(e,this.graph):l.removeGraph):this.data}}t.chain=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=(0,a.type)(e),n=t.match(/array|object/)?(0,r.default)(e):e;return(0,s.data)(n,t)};t.chainAsync=async function(){for(var e=arguments.length,t=new Array(e),n=0;n{r.error=e}));return r.end()};t.chainLinkAsync=async e=>{const t=(0,a.type)(e),n=t.match(/array|object/)?(0,r.default)(e):e;return(0,s.dataAsync)(n,t)}},5888:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clean=void 0;var r=n(6112);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t"number"===typeof e))?e:!t||e.some((e=>isNaN(parseInt(e))))?void 0:e.map((e=>parseInt(e)))},d=function(e,t,n){const r=[].concat(l[e]);switch(l[e]){case 1:return c(t,n);case 2:return function(e,t){if(e instanceof Array){const n=e.map((e=>c(e,t))).filter(Boolean);return n.length?n:void 0}}(t,n);case 3:return function(e,t){const n="date-parts";if("object"===typeof e&&null!==e){if(e[n]instanceof Array&&e[n].every((e=>e instanceof Array))){const r=e[n].map((e=>u(e,t))).filter(Boolean);return r.length?o(o({},e),{},{"date-parts":r}):void 0}if(e instanceof Array&&e.every((e=>e[n]instanceof Array))){const r=e.map((e=>u(e[n],t))).filter(Boolean);return r.length?{"date-parts":r}:void 0}if(e[n]instanceof Array){const r=u(e[n],t);return r&&{"date-parts":[r]}}return"literal"in e||"raw"in e?e:void 0}}(t,n);case 4:return function(e,t){return e=d("language",e,t),!0===s[e]?e:t&&e in s?s[e]:void 0}(t,n)}if(/^_/.test(e))return t;if(n){if("string"===typeof t&&r.includes("number")&&!r.includes("string")&&!isNaN(+t))return parseFloat(t);if("number"===typeof t&&r.includes("string")&&!r.includes("number"))return t.toString();if(Array.isArray(t)&&t.length)return d(e,t[0],n)}return r.includes(typeof t)?t:void 0};t.clean=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.map((function(e){const n={};for(const r in e){const i=d(r,e[r],t);void 0!==i&&(n[r]=i)}return n}))}},9320:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeDataParser=t.listDataParser=t.hasDataParser=t.dataAsync=t.data=t.addDataParser=void 0;var r=n(3300);const i=e=>[].concat(...e),o={},a={},s={"@csl/object":e=>[e],"@csl/list+object":e=>e,"@else/list+object":e=>i(e.map(r.chain)),"@invalid":()=>{throw new Error("This format is not supported or recognized")}},l={"@else/list+object":async e=>i(await Promise.all(e.map(r.chainAsync)))},c=(e,t)=>{if("function"===typeof o[t])return o[t](e);if("function"===typeof s[t])return s[t](e);throw new TypeError("No synchronous parser found for ".concat(t))};t.data=c;t.dataAsync=async(e,t)=>{if("function"===typeof a[t])return a[t](e);if("function"===typeof l[t])return l[t](e);if(u(t,!1))return c(e,t);throw new TypeError("No parser found for ".concat(t))};t.addDataParser=(e,t)=>{let{parser:n,async:r}=t;r?a[e]=n:o[e]=n};const u=(e,t)=>t?a[e]||l[e]:o[e]||s[e];t.hasDataParser=u;t.removeDataParser=(e,t)=>{delete(t?a:o)[e]};t.listDataParser=e=>Object.keys(e?a:o)},4040:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeOf=t.dataTypeOf=void 0;const n=e=>{switch(e){case void 0:return"Undefined";case null:return"Null";default:return e.constructor.name}};t.typeOf=n;t.dataTypeOf=e=>{switch(typeof e){case"string":return"String";case"object":if(Array.isArray(e))return"Array";if("Object"===n(e))return"SimpleObject";if("Null"!==n(e))return"ComplexObject";default:return"Primitive"}}},2704:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeGraph=t.applyGraph=void 0;t.applyGraph=(e,t)=>{if(e._graph){const n=t.findIndex((e=>{let{type:t}=e;return"@else/list+object"===t}));-1!==n&&t.splice(n+1,0,...e._graph.slice(0,-1))}return e._graph=t,e};t.removeGraph=e=>(delete e._graph,e)},6440:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={util:!0};t.util=void 0;var i=h(n(4040)),o=h(n(2704)),a=h(n(5944)),s=h(n(5888)),l=n(8904);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=n(3300);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=n(9624);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var d=n(9320);function p(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function h(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));const f=Object.assign({},i,o,a,s);t.util=f},5944:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeParser=t.FormatParser=t.DataParser=void 0;var r=n(9624);class i{constructor(e){var t,n,r;r=["String","Array","SimpleObject","ComplexObject","Primitive"],(n="validDataTypes")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this.data=e}validateDataType(){const e=this.data.dataType;if(e&&!this.validDataTypes.includes(e))throw new RangeError("dataType was ".concat(e,"; expected one of ").concat(this.validDataTypes))}validateParseType(){const e=this.data.predicate;if(e&&!(e instanceof RegExp||"function"===typeof e))throw new TypeError("predicate was ".concat(typeof e,"; expected RegExp or function"))}validateTokenList(){const e=this.data.tokenList;if(e&&"object"!==typeof e)throw new TypeError("tokenList was ".concat(typeof e,"; expected object or RegExp"))}validatePropertyConstraint(){const e=this.data.propertyConstraint;if(e&&"object"!==typeof e)throw new TypeError("propertyConstraint was ".concat(typeof e,"; expected array or object"))}validateElementConstraint(){const e=this.data.elementConstraint;if(e&&"string"!==typeof e)throw new TypeError("elementConstraint was ".concat(typeof e,"; expected string"))}validateExtends(){const e=this.data.extends;if(e&&"string"!==typeof e)throw new TypeError("extends was ".concat(typeof e,"; expected string"))}validate(){if(null===this.data||"object"!==typeof this.data)throw new TypeError("typeParser was ".concat(typeof this.data,"; expected object"));this.validateDataType(),this.validateParseType(),this.validateTokenList(),this.validatePropertyConstraint(),this.validateElementConstraint(),this.validateExtends()}parseTokenList(){let e=this.data.tokenList;if(!e)return[];e instanceof RegExp&&(e={token:e});const{token:t,split:n=/\s+/,trim:r=!0,every:i=!0}=e,o=i?"every":"some";return[e=>(e=>r?e.trim():e)(e).split(n)[o]((e=>t.test(e)))]}parsePropertyConstraint(){return[].concat(this.data.propertyConstraint||[]).map((e=>{let{props:t,match:n,value:r}=e;switch(t=[].concat(t),n){case"any":case"some":return e=>t.some((t=>t in e&&(!r||r(e[t]))));case"none":return e=>!t.some((t=>t in e&&(!r||r(e[t]))));default:return e=>t.every((t=>t in e&&(!r||r(e[t]))))}}))}parseElementConstraint(){const e=this.data.elementConstraint;return e?[t=>t.every((t=>(0,r.type)(t)===e))]:[]}parsePredicate(){return this.data.predicate instanceof RegExp?[this.data.predicate.test.bind(this.data.predicate)]:this.data.predicate?[this.data.predicate]:[]}getCombinedPredicate(){const e=[...this.parsePredicate(),...this.parseTokenList(),...this.parsePropertyConstraint(),...this.parseElementConstraint()];return 0===e.length?()=>!0:1===e.length?e[0]:t=>e.every((e=>e(t)))}getDataType(){return this.data.dataType?this.data.dataType:this.data.predicate instanceof RegExp||this.data.tokenList?"String":this.data.elementConstraint?"Array":"Primitive"}get dataType(){return this.getDataType()}get predicate(){return this.getCombinedPredicate()}get extends(){return this.data.extends}}t.TypeParser=i;class o{constructor(e){let{async:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.parser=e,this.async=t}validate(){const e=this.parser;if("function"!==typeof e)throw new TypeError("parser was ".concat(typeof e,"; expected function"))}}t.DataParser=o;t.FormatParser=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.format=e,t.parseType&&(this.typeParser=new i(t.parseType)),t.parse&&(this.dataParser=new o(t.parse,{async:!1})),t.parseAsync&&(this.asyncDataParser=new o(t.parseAsync,{async:!0}))}validateFormat(){const e=this.format;if(!r.typeMatcher.test(e))throw new TypeError('format name was "'.concat(e,"\"; didn't match expected pattern"))}validate(){this.validateFormat(),this.typeParser&&this.typeParser.validate(),this.dataParser&&this.dataParser.validate(),this.asyncDataParser&&this.asyncDataParser.validate()}}},8904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.remove=t.list=t.has=t.get=t.add=void 0;var r=n(5944),i=n(9624),o=n(9320);const a={};t.add=(e,t)=>{const n=new r.FormatParser(e,t);n.validate();const s=a[e]||(a[e]={});n.typeParser&&((0,i.addTypeParser)(e,n.typeParser),s.type=!0),n.dataParser&&((0,o.addDataParser)(e,n.dataParser),s.data=!0),n.asyncDataParser&&((0,o.addDataParser)(e,n.asyncDataParser),s.asyncData=!0),t.outputs&&(s.outputs=t.outputs)};t.get=e=>a[e];t.remove=e=>{const t=a[e];t&&(t.type&&(0,i.removeTypeParser)(e),t.data&&(0,o.removeDataParser)(e),t.asyncData&&(0,o.removeDataParser)(e,!0),delete a[e])};t.has=e=>e in a;t.list=()=>Object.keys(a)},9624:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeMatcher=t.type=t.treeTypeParser=t.removeTypeParser=t.listTypeParser=t.hasTypeParser=t.addTypeParser=void 0;var r,i=(r=n(6116))&&r.__esModule?r:{default:r},o=n(4040);const a={},s={},l={},c=(e,t)=>{switch(t){case"Array":return 0===e.length||e.every((e=>"@csl/object"===d(e)))?"@csl/list+object":"@else/list+object";case"SimpleObject":case"ComplexObject":return"@csl/object";default:return"@invalid"}},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;for(const n of e)if(a[n].predicate(t))return u(a[n].extensions,t)||n},d=e=>{const t=(0,o.dataTypeOf)(e);if("Array"===t&&0===e.length)return c(e,t);return u(s[t],e)||c(e,t)};t.type=d;t.addTypeParser=(e,t)=>{let{dataType:n,predicate:r,extends:o}=t,c=[];e in l&&(c=l[e],delete l[e],i.default.debug("[core]",'Subclasses "'.concat(c,'" finally registered to parent type "').concat(e,'"')));const u={predicate:r,extensions:c};if(a[e]=u,o){const t=a[o];t?t.extensions.push(e):(l[o]||(l[o]=[]),l[o].push(e),i.default.debug("[core]",'Subclass "'.concat(e,'" is waiting on parent type "').concat(o,'"')))}else{(s[n]||(s[n]=[])).push(e)}};t.hasTypeParser=e=>Object.prototype.hasOwnProperty.call(a,e);t.removeTypeParser=e=>{delete a[e];const t=[...Object.keys(s).map((e=>s[e])),...Object.keys(a).map((e=>a[e].extensions)).filter((e=>e.length>0))];t.forEach((t=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)}))};t.listTypeParser=()=>Object.keys(a);t.treeTypeParser=()=>{const e=t=>({name:t,children:a[t].extensions.map(e)});return{name:"Type tree",children:Object.keys(s).map((t=>({name:t,children:s[t].map(e)})))}};t.typeMatcher=/^(?:@(.+?))(?:\/(?:(.+?)\+)?(?:(.+)))?$/},548:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.remove=t.register=t.list=t.has=t.format=t.add=void 0;var r,i=(r=n(8060))&&r.__esModule?r:{default:r};const o=new i.default;t.register=o;t.add=(e,t)=>{((e,t)=>{if("string"!==typeof e)throw new TypeError("Invalid output format name, expected string, got ".concat(typeof e));if("function"!==typeof t)throw new TypeError("Invalid formatter, expected function, got ".concat(typeof t))})(e,t),o.set(e,t)};t.remove=e=>{o.remove(e)};t.has=e=>o.has(e);t.list=()=>o.list();t.format=function(e,t){if(!o.has(e))throw new Error('Output format "'.concat(e,'" unavailable'));for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i{"use strict";function n(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if("object"!==typeof e||null===e||e.constructor!==Object&&e.constructor!==Array)return e;if(r.has(e))throw new TypeError("Recursively copying circular structure");if(r.add(e),e.constructor===Array)t=e.map((e=>n(e,r)));else{const i={};for(const t in e)i[t]=n(e[t],r);t=i}return r.delete(e),t}Object.defineProperty(t,"__esModule",{value:!0}),t.deepCopy=n,t.default=void 0;var r=n;t.default=r},5992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.fetchFile=p,t.fetchFileAsync=async function(e,t){const n=u(t);return i.default.http("[core]",n.method,e,n),fetch(e,n).then((e=>d(e,n))).then((e=>e.text()))},t.setUserAgent=function(e){l=e};var r=a(n(5296));n(3256);var i=a(n(6116)),o=a(n(6144));function a(e){return e&&e.__esModule?e:{default:e}}const s="undefined"!==typeof location&&"undefined"!==typeof document;let l=s?"":"Citation.js/".concat(o.default.version," Node.js/").concat(process.version);function c(e){const t={},n=e instanceof Headers||e instanceof r.default.Headers?Array.from(e):Object.entries(e);for(const[r,i]of n)t[r.toLowerCase()]=i.toString();return t}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={headers:{accept:"*/*"},method:"GET",checkContentType:e.checkContentType};if(l&&!s&&(t.headers["user-agent"]=l),e.body){t.method="POST";const n="string"!==typeof e.body;t.body=n?JSON.stringify(e.body):e.body,t.headers["content-type"]=n?"application/json":"text/plain"}return e.headers&&Object.assign(t.headers,c(e.headers)),t}function d(e,t){const{status:n,headers:r}=e;let i;if(n>=400?i=new Error("Server responded with status code ".concat(n)):!0!==t.checkContentType||function(e,t){if(!e.accept||"*/*"===e.accept||!t["content-type"])return!0;const[n,r]=t["content-type"].split(";")[0].trim().split("/");return e.accept.split(",").map((e=>e.split(";")[0].trim().split("/"))).some((e=>{let[t,i]=e;return(t===n||"*"===t)&&(i===r||"*"===i)}))}(t.headers,c(r))||(i=new Error("Server responded with content-type ".concat(r.get("content-type")))),i)throw i.status=n,i.headers=r,i.body=e.body,i;return e}function p(e,t){const n=u(t);i.default.http("[core]",n.method,e,n);return d((0,r.default)(e,n),n).text()}var h=p;t.default=h},3420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){let n;for(;void 0===n||e.includes(n);)n="".concat(t).concat(Math.random().toString().slice(2));return n};t.default=n},8704:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Grammar=void 0;var r=n(1964);t.Grammar=class{constructor(e,t){this.rules=e,this.defaultState=t,this.mainRule=Object.keys(e)[0],this.log=[]}parse(e,t){return this.lexer=e,this.token=this.lexer.next(),this.state=(0,r.deepCopy)(this.defaultState),this.log=[],this.consumeRule(t||this.mainRule)}matchEndOfFile(){return!this.token}matchToken(e){return this.token&&e===this.token.type}consumeToken(e,t){const n=this.token;if(!e||n&&n.type===e)return this.token=this.lexer.next(),n;if(!t){const t=n?'"'.concat(n.type,'"'):"EOF",r=new SyntaxError(this.lexer.formatError(n,'expected "'.concat(e,'", got ').concat(t)));throw r.message+=" (".concat(this.log.join("->"),")"),r}}consumeRule(e){this.log.push(e);const t=this.rules[e].call(this);return this.log.pop(),t}}},4320:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Grammar",{enumerable:!0,get:function(){return l.Grammar}}),Object.defineProperty(t,"Register",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"TokenStack",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Translator",{enumerable:!0,get:function(){return c.Translator}}),Object.defineProperty(t,"deepCopy",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"fetchFile",{enumerable:!0,get:function(){return i.fetchFile}}),Object.defineProperty(t,"fetchFileAsync",{enumerable:!0,get:function(){return i.fetchFileAsync}}),Object.defineProperty(t,"fetchId",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"setUserAgent",{enumerable:!0,get:function(){return i.setUserAgent}});var r=u(n(1964)),i=n(5992),o=u(n(3420)),a=u(n(3701)),s=u(n(8060)),l=n(8704),c=n(8444);function u(e){return e&&e.__esModule?e:{default:e}}},8060:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.data=e}set(e,t){return this.data[e]=t,this}add(){return this.set(...arguments)}delete(e){return delete this.data[e],this}remove(){return this.delete(...arguments)}get(e){return this.data[e]}has(e){return Object.prototype.hasOwnProperty.call(this.data,e)}list(){return Object.keys(this.data)}};t.default=n},3701:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class n{constructor(e){this.stack=e,this.index=0,this.current=this.stack[this.index]}static getPatternText(e){return'"'.concat(e instanceof RegExp?e.source:e,'"')}static getMatchCallback(e){if(Array.isArray(e)){const t=e.map(n.getMatchCallback);return e=>t.some((t=>t(e)))}return e instanceof Function?e:e instanceof RegExp?t=>e.test(t):t=>e===t}tokensLeft(){return this.stack.length-this.index}matches(e){return n.getMatchCallback(e)(this.current,this.index,this.stack)}matchesSequence(e){const t=this.stack.slice(this.index,this.index+e.length).join("");return"string"===typeof e?t===e:e.every(((e,r)=>n.getMatchCallback(e)(t[r])))}consumeToken(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:/^[\s\S]$/,{inverse:t=!1,spaced:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r&&this.consumeWhitespace();const i=this.current;if(!n.getMatchCallback(e)(i,this.index,this.stack))throw new SyntaxError("Unexpected token at index ".concat(this.index,": Expected ").concat(n.getPatternText(e),', got "').concat(i,'"'));return this.current=this.stack[++this.index],r&&this.consumeWhitespace(),i}consumeWhitespace(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:/^\s$/,{optional:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.consume(e,{min:+!t})}consumeN(e){if(this.tokensLeft()0&&void 0!==arguments[0]?arguments[0]:/^[\s\S]$/,{min:t=0,max:r=1/0,inverse:i=!1,tokenMap:o,tokenFilter:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=this.index,l=n.getMatchCallback(e);for(;l(this.current,this.index,this.stack)!==i;)this.current=this.stack[++this.index];let c=this.stack.slice(s,this.index);if(c.lengthr)throw new SyntaxError("Too many ".concat(n.getPatternText(e)));return o&&(c=c.map(o)),a&&(c=c.filter(a)),c.join("")}}var r=n;t.default=r},8444:(e,t)=>{"use strict";function n(e,t){let n,r,i,o;if("string"===typeof e)n=r=e;else{if(!e)return null;n=t?e.target:e.source,r=t?e.source:e.target,e.convert&&(i=t?e.convert.toSource:e.convert.toTarget),e.when&&(o=t?e.when.target:e.when.source,null!=o&&(o=function(e){return function(t){return"boolean"===typeof e?e:Object.keys(e).every((n=>{const r=e[n];return!0===r?n in t:!1===r?!(n in t):"function"===typeof r?r(t[n]):Array.isArray(r)?r.includes(t[n]):t[n]===r}))}}(o)))}return n=[].concat(n).filter(Boolean),r=[].concat(r).filter(Boolean),{inputProp:n,outputProp:r,convert:i,condition:o}}function r(e,t){return t=t===i.CONVERT_TO_SOURCE,e=e.map((e=>n(e,t))).filter(Boolean),function(t){const n={};for(const{inputProp:i,outputProp:o,convert:a,condition:s}of e){if(0===o.length)continue;if(s&&!s(t))continue;if(0!==i.length&&i.every((e=>!(e in t))))continue;let e=i.map((e=>t[e]));if(a)try{const n=a.apply(t,e);e=1===o.length?[n]:n}catch(r){throw new Error("Failed to convert ".concat(i," to ").concat(o),{cause:r})}o.forEach(((t,r)=>{const i=e[r];void 0!==i&&(n[t]=i)}))}return n}}Object.defineProperty(t,"__esModule",{value:!0}),t.Translator=void 0;class i{constructor(e){this.convertToSource=r(e,i.CONVERT_TO_SOURCE),this.convertToTarget=r(e,i.CONVERT_TO_TARGET)}}t.Translator=i,i.CONVERT_TO_SOURCE=Symbol("convert to source"),i.CONVERT_TO_TARGET=Symbol("convert to target")},6112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"format",{enumerable:!0,get:function(){return i.default}});var r=o(n(4504)),i=o(n(7320));function o(e){return e&&e.__esModule?e:{default:e}}},4504:(e,t)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.parse=t.types=t.scope=void 0;const r=e=>e.replace(/$|( )|(?!^)(?=[A-Z])/g,"\\.?$1"),i=e=>"(?:".concat(e.join("|"),")\\b"),o=(e,t)=>new RegExp("(?:^| )(".concat(e,"$)"),t),a=i(["mr","mrs","ms","miss","dr","herr","monsieur","hr","frau","a v m","admiraal","admiral","air cdre","air commodore","air marshal","air vice marshal","alderman","alhaji","ambassador","baron","barones","brig","brig gen","brig general","brigadier","brigadier general","brother","canon","capt","captain","cardinal","cdr","chief","cik","cmdr","coach","col","col dr","colonel","commandant","commander","commissioner","commodore","comte","comtessa","congressman","conseiller","consul","conte","contessa","corporal","councillor","count","countess","crown prince","crown princess","dame","datin","dato","datuk","datuk seri","deacon","deaconess","dean","dhr","dipl ing","doctor","dott","dott sa","dr","dr ing","dra","drs","embajador","embajadora","en","encik","eng","eur ing","exma sra","exmo sr","f o","father","first lieutient","first officer","flt lieut","flying officer","fr","frau","fraulein","fru","gen","generaal","general","governor","graaf","gravin","group captain","grp capt","h e dr","h h","h m","h r h","hajah","haji","hajim","her highness","her majesty","herr","high chief","his highness","his holiness","his majesty","hon","hr","hra","ing","ir","jonkheer","judge","justice","khun ying","kolonel","lady","lcda","lic","lieut","lieut cdr","lieut col","lieut gen","lord","m","m l","m r","madame","mademoiselle","maj gen","major","master","mevrouw","miss","mlle","mme","monsieur","monsignor","mr","mrs","ms","mstr","nti","pastor","president","prince","princess","princesse","prinses","prof","prof dr","prof sir","professor","puan","puan sri","rabbi","rear admiral","rev","rev canon","rev dr","rev mother","reverend","rva","senator","sergeant","sheikh","sheikha","sig","sig na","sig ra","sir","sister","sqn ldr","sr","sr d","sra","srta","sultan","tan sri","tan sri dato","tengku","teuku","than puying","the hon dr","the hon justice","the hon miss","the hon mr","the hon mrs","the hon ms","the hon sir","the very rev","toh puan","tun","vice admiral","viscount","viscountess","wg cdr"].map(r)),s=i(["I","II","III","IV","V","Senior","Junior","Jr","Sr","PhD","Ph\\.D","APR","RPh","PE","MD","MA","DMD","CME","BVM","CFRE","CLU","CPA","CSC","CSJ","DC","DD","DDS","DO","DVM","EdD","Esq","JD","LLD","OD","OSB","PC","Ret","RGS","RN","RNC","SHCJ","SJ","SNJM","SSMO","USA","USAF","USAFR","USAR","USCG","USMC","USMCR","USN","USNR"].map(r)),l=i(["Vere","Von","Van","De","Del","Della","Di","Da","Pietro","Vanden","Du","St.","St","La","Lo","Ter","O","O'","Mac","Fitz"]),c=new RegExp("^((?:".concat(a," )*)(.*)$"),"i"),u=o("(?:".concat(s,", )*(?:").concat(s,")"),"i"),d=o("".concat(/(?:[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1C90-\u1CBA\u1CBD-\u1CBF\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2160-\u216F\u2183\u24B6-\u24CF\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AE\uA7B0-\uA7B4\uA7B6\uA7B8\uFF21-\uFF3A]|\uD801[\uDC00-\uDC27\uDCB0-\uDCD3]|\uD803[\uDC80-\uDCB2]|\uD806[\uDCA0-\uDCBF]|\uD81B[\uDE40-\uDE5F]|\uD835[\uDC00-\uDC19\uDC34-\uDC4D\uDC68-\uDC81\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB5\uDCD0-\uDCE9\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD38\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD6C-\uDD85\uDDA0-\uDDB9\uDDD4-\uDDED\uDE08-\uDE21\uDE3C-\uDE55\uDE70-\uDE89\uDEA8-\uDEC0\uDEE2-\uDEFA\uDF1C-\uDF34\uDF56-\uDF6E\uDF90-\uDFA8\uDFCA]|\uD83A[\uDD00-\uDD21]|\uD83C[\uDD30-\uDD49\uDD50-\uDD69\uDD70-\uDD89])/.source,".*")),p=o("(?:".concat(/(?:[a-z\xAA\xB5\xBA\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02B8\u02C0\u02C1\u02E0-\u02E4\u0345\u0371\u0373\u0377\u037A-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0560-\u0588\u10D0-\u10FA\u10FD-\u10FF\u13F8-\u13FD\u1C80-\u1C88\u1D00-\u1DBF\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\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\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B-\uA69D\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7AF\uA7B5\uA7B7\uA7B9\uA7F8-\uA7FA\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]|\uD801[\uDC28-\uDC4F\uDCD8-\uDCFB]|\uD803[\uDCC0-\uDCF2]|\uD806[\uDCC0-\uDCDF]|\uD81B[\uDE60-\uDE7F]|\uD835[\uDC1A-\uDC33\uDC4E-\uDC54\uDC56-\uDC67\uDC82-\uDC9B\uDCB6-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDCEA-\uDD03\uDD1E-\uDD37\uDD52-\uDD6B\uDD86-\uDD9F\uDDBA-\uDDD3\uDDEE-\uDE07\uDE22-\uDE3B\uDE56-\uDE6F\uDE8A-\uDEA5\uDEC2-\uDEDA\uDEDC-\uDEE1\uDEFC-\uDF14\uDF16-\uDF1B\uDF36-\uDF4E\uDF50-\uDF55\uDF70-\uDF88\uDF8A-\uDF8F\uDFAA-\uDFC2\uDFC4-\uDFC9\uDFCB]|\uD83A[\uDD22-\uDD43])/.source,".*|").concat(l,".*|\\S*)"));t.default=t.parse=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";"string"!==typeof e&&(e+="");let t="",r="",i="";if(/[^.], /.test(e)){const n=e.split(", ");i=n.shift();const o=RegExp(s).exec(n.join(", "));t=n.splice(o&&0!==o.index?0:-1,1)[0],r=n.join(", ")}else{const n=e.split(u,2),o=n.shift().split(p,2);t=o[0],i=o[1],r=n.pop()}const o=n(t.match(c),3),a=o[1],l=o[2],h=r,f=n(i.split(d,2).reverse(),2),m=f[0],g=f[1];if(!l&&m)return m.includes(" ")?{literal:m}:{family:m};if(m){const e={"dropping-particle":a,given:l,suffix:h,"non-dropping-particle":g,family:m};return Object.keys(e).forEach((t=>{e[t]||delete e[t]})),e}return{literal:e}};t.scope="@name";t.types="@name"},7320:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=["dropping-particle","given"],r=["suffix"],i=["non-dropping-particle","family"];var o=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=t=>t.map((t=>e[t]||"")).filter(Boolean).join(" ");if(e.literal)return e.literal;if(t){const e=o(r)?", ".concat(o(r)):"",t=o(n)?", ".concat(o(n)):"";return o(i)+e+t}return"".concat(o([...n,...r,...i]))};t.default=o},5408:(e,t,n)=>{"use strict";n.r(t),n.d(t,{formats:()=>b,parsers:()=>v,ref:()=>g});var r={};n.r(r),n.d(r,{quickscrapeRecord:()=>p,record:()=>h});var i=n(2268),o=n(6112);function a(e){const{firstname:t,lastname:n,firstName:r=t,lastName:i=n}=e;return r&&i?{given:r,family:i}:e.name?(0,o.parse)(e.name):void 0}const s=["PMID","PMCID","DOI","ISBN"],l=["ISSN"];function c(e,t){const n={};for(const r in e){const i=r.toUpperCase();t.includes(i)&&(n[i]=e[r])}if(e.identifier)for(let{id:r,type:i=""}of e.identifier)i=i.toUpperCase(),t.includes(i)&&(n[i]=r);return n}const u={article:"article",book:"book",booklet:"book",proceedings:"book",mastersthesis:"thesis",inbook:"chapter",incollection:"chapter",conference:"paper-conference",inproceedings:"paper-conference",online:"website",patent:"patent",phdthesis:"thesis",techreport:"report",unpublished:"manuscript",manual:void 0,misc:void 0};function d(e){const t={type:u[e.type]||"book"};if(e.title&&(t.title=e.title),e.author&&(t.author=e.author.map(a).filter(Boolean)),e.editor&&(t.editor=e.editor.map(a).filter(Boolean)),e.reviewer&&(e.author&&(t["reviewed-author"]=t.author),t.author=e.reviewer.map(a).filter(Boolean)),Array.isArray(e.keywords)?t.keyword=e.keywords.join():e.keywords&&(t.keyword=e.keywords),e.publisher&&(t.publisher=e.publisher.name||e.publisher),e.date&&Object.keys(e.date).length>0){const n=e.date;n.submitted&&(t.submitted=(0,i.K0)(n.submitted)),n.published&&(t.issued=(0,i.K0)(n.published))}else e.year&&(t.issued={"date-parts":[[+e.year]]});if(e.journal){const n=e.journal;n.name&&(t["container-title"]=n.name),n.volume&&(t.volume=+n.volume),n.issue&&(t.issue=+n.issue),Object.assign(t,c(n,l)),n.firstpage&&(t["page-first"]=n.firstpage),n.pages?t.page=n.pages.replace("--","-"):n.firstpage&&n.lastpage&&(t.page=n.firstpage+"-"+n.lastpage)}return e.link&&"object"===typeof e.link[0]&&(t.URL=e.link[0].url),Object.assign(t,c(e,s)),e.cid?t.id=e.cid:t.DOI&&(t.id=t.DOI),t}const p=function(e){return Object.assign(d(e),{type:"article-journal"})},h=function(e){return d(e)};var f=n(8660);const m=["fulltext_html","fulltext_xml","fulltext_pdf"],g="@bibjson",v={json:r},b={"@bibjson/quickscrape+record+object":{parse:p,parseType:{propertyConstraint:{props:"link",value:e=>m.some((t=>e.find((e=>{let{type:n}=e;return n===t}))))},extends:"@bibjson/record+object"}},"@bibjson/record+object":{parse:h,parseType:{dataType:"SimpleObject",propertyConstraint:[{props:"title"},{props:["author","editor"],match:"some",value:e=>Array.isArray(e)&&e[0]&&"name"in e[0]}]}},"@bibjson/collection+object":{parse:e=>e.records,parseType:{dataType:"SimpleObject",propertyConstraint:[{props:"metadata",value:e=>"collection"in e},{props:"records",value:e=>Array.isArray(e)}]}}};f.plugins.add(g,{input:b})},2268:(e,t,n)=>{"use strict";Object.defineProperty(t,"K0",{enumerable:!0,get:function(){return r.default}});var r=o(n(9724)),i=o(n(3520));function o(e){return e&&e.__esModule?e:{default:e}}},9724:(e,t)=>{"use strict";function n(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)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(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.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n+e<0)))return null;r=+n[0]<0||+n[0]>+n[1]&&+n[1]>0?n.pop():n.shift()}return[n.pop(),r]}return null}(e)||function(e){if("string"!==typeof e)return null;const t=e.match(/^(\d+) ?(a\.?d\.?|b\.?c\.?)$/i);if(t){const e=n(t.slice(1),2);return[e[0]*("a"===e[1].toLowerCase()[0]?1:-1)]}return/^-?\d+$/.test(e)?[e]:null}(e);return t&&t.map((e=>parseInt(e)))}var d=function(e,t){const n=[],r="string"===typeof e&&function(e){return a.test(e)?e.match(a).slice(1,3):e.split(o)}(e);t?n.push(e,t):r&&2===r.length?n.push(...r):n.push(e);const i=n.map(u);return i.filter(Boolean).length===n.length?{"date-parts":i}:{raw:t?n.join("/"):e}};t.default=d},3520:(e,t)=>{"use strict";function n(e,t,n){if(e.length>=t)return e;for(;e.length1&&void 0!==arguments[1]?arguments[1]:"-";if(!e["date-parts"])return e.raw;const r=e["date-parts"][0].map((e=>e.toString()));switch(r.length){case 3:r[2]=n(r[2],2,"0");case 2:r[1]=n(r[1],2,"0");case 1:r[0]=n(r[0],4,"0")}return r.join(t)};t.default=r},3304:(e,t,n)=>{"use strict";n.r(t);var r={};n.r(r),n.d(r,{argumentCommands:()=>b,commands:()=>h,defaultStrings:()=>f,diacritics:()=>p,fieldTypes:()=>d,formatting:()=>v,formattingCommands:()=>g,formattingEnvs:()=>m,ligaturePattern:()=>y,ligatures:()=>_,mathScriptFormatting:()=>x,mathScripts:()=>w,required:()=>u,sentenceCaseLanguages:()=>E});var i=n(8660),o=n(3240),a=n.n(o);const s=JSON.parse('{"biblatex":{"article":["author","title","journaltitle",["year","date"]],"book":["author","title",["year","date"]],"mvbook":["author","title",["year","date"]],"inbook":["author","title","booktitle",["year","date"]],"booklet":[["author","editor"],"title",["year","date"]],"collection":["editor","title",["year","date"]],"mvcollection":["editor","title",["year","date"]],"incollection":["author","title","booktitle",["year","date"]],"dataset":[["author","editor"],"title",["year","date"]],"online":[["author","editor"],"title",["year","date"],["doi","eprint","url"]],"patent":["author","title","number",["year","date"]],"periodical":["editor","title",["year","date"]],"proceedings":["title",["year","date"]],"mvproceedings":["title",["year","date"]],"inproceedings":["author","title","booktitle",["year","date"]],"report":["author","title","type","institution",["year","date"]],"thesis":["author","title","type","institution",["year","date"]],"unpublished":["author","title",["year","date"]],"conference":["author","title","booktitle",["year","date"]],"electronic":[["author","editor"],"title",["year","date"],["doi","eprint","url"]],"mastersthesis":["author","title","institution",["year","date"]],"phdthesis":["author","title","institution",["year","date"]],"techreport":["author","title","institution",["year","date"]],"www":[["author","editor"],"title",["year","date"],["doi","eprint","url"]]},"bibtex":{"article":["author","title","journal","year"],"book":[["author","editor"],"title","publisher","year"],"booklet":["title"],"inbook":[["author","editor"],"title",["chapter","pages"],"publisher","year"],"incollection":["author","title","booktitle","publisher","year"],"inproceedings":["author","title","booktitle","year"],"mastersthesis":["author","title","school","year"],"phdthesis":["author","title","school","year"],"proceedings":["title","year"],"techreport":["author","title","institution","year"],"unpublished":["author","title","note"]}}'),l=JSON.parse('{"abstract":["field","literal"],"addendum":["field","literal"],"afterword":["list","name"],"annotation":["field","literal"],"annotator":["list","name"],"author":["list","name"],"authortype":["field","key"],"bookauthor":["list","name"],"bookpagination":["field","key"],"booksubtitle":["field","literal"],"booktitle":["field","title"],"booktitleaddon":["field","literal"],"chapter":["field","literal"],"commentator":["list","name"],"date":["field","date"],"doi":["field","verbatim"],"edition":["field","literal"],"editor":["list","name"],"editora":["list","name"],"editorb":["list","name"],"editorc":["list","name"],"editortype":["field","key"],"editoratype":["field","key"],"editorbtype":["field","key"],"editorctype":["field","key"],"eid":["field","literal"],"entrysubtype":["field","literal"],"eprint":["field","verbatim"],"eprintclass":["field","literal"],"eprinttype":["field","literal"],"eventdate":["field","date"],"eventtitle":["field","title"],"eventtitleaddon":["field","literal"],"file":["field","verbatim"],"foreword":["list","name"],"holder":["list","name"],"howpublished":["field","literal"],"indextitle":["field","literal"],"institution":["list","literal"],"introduction":["list","name"],"isan":["field","literal"],"isbn":["field","literal"],"ismn":["field","literal"],"isrn":["field","literal"],"issn":["field","literal"],"issue":["field","literal"],"issuesubtitle":["field","literal"],"issuetitle":["field","literal"],"iswc":["field","literal"],"journalsubtitle":["field","literal"],"journaltitle":["field","literal"],"label":["field","literal"],"language":["list","key"],"library":["field","literal"],"location":["list","literal"],"mainsubtitle":["field","literal"],"maintitle":["field","title"],"maintitleaddon":["field","literal"],"month":["field","literal"],"nameaddon":["field","literal"],"note":["field","literal"],"number":["field","literal"],"organization":["list","literal"],"origdate":["field","date"],"origlanguage":["list","key"],"origlocation":["list","literal"],"origpublisher":["list","literal"],"origtitle":["field","title"],"pages":["field","range"],"pagetotal":["field","literal"],"pagination":["field","key"],"part":["field","literal"],"publisher":["list","literal"],"pubstate":["field","key"],"reprinttitle":["field","literal"],"series":["field","title"],"shortauthor":["list","name"],"shorteditor":["list","name"],"shorthand":["field","literal"],"shorthandintro":["field","literal"],"shortjournal":["field","literal"],"shortseries":["field","literal"],"shorttitle":["field","title"],"subtitle":["field","literal"],"title":["field","title"],"titleaddon":["field","literal"],"translator":["list","name"],"type":["field","title"],"url":["field","uri"],"urldate":["field","date"],"venue":["field","literal"],"version":["field","literal"],"volume":["field","integer"],"volumes":["field","integer"],"year":["field","literal"],"crossref":["field","entry key"],"entryset":["separated","literal"],"execute":["field","code"],"gender":["field","gender"],"langid":["field","identifier"],"langidopts":["field","literal"],"ids":["separated","entry key"],"indexsorttitle":["field","literal"],"keywords":["separated","literal"],"options":["separated","options"],"presort":["field","string"],"related":["separated","literal"],"relatedoptions":["separated","literal"],"relatedtype":["field","identifier"],"relatedstring":["field","literal"],"sortkey":["field","literal"],"sortname":["list","name"],"sortshorthand":["field","literal"],"sorttitle":["field","literal"],"sortyear":["field","integer"],"xdata":["separated","entry key"],"xref":["field","entry key"],"namea":["list","name"],"nameb":["list","name"],"namec":["list","name"],"nameatype":["field","key"],"namebtype":["field","key"],"namectype":["field","key"],"lista":["list","literal"],"listb":["list","literal"],"listc":["list","literal"],"listd":["list","literal"],"liste":["list","literal"],"listf":["list","literal"],"usera":["field","literal"],"userb":["field","literal"],"userc":["field","literal"],"userd":["field","literal"],"usere":["field","literal"],"userf":["field","literal"],"verba":["field","literal"],"verbb":["field","literal"],"verbc":["field","literal"],"address":["list","literal"],"annote":["field","literal"],"archiveprefix":["field","literal"],"journal":["field","literal"],"key":["field","literal"],"pdf":["field","verbatim"],"primaryclass":["field","literal"],"school":["list","literal"],"numpages":["field","integer"],"pmid":["field","literal"],"pmcid":["field","literal"]}'),c=JSON.parse('{"a":{"`":"\u0300","\'":"\u0301","^":"\u0302","~":"\u0303","=":"\u0304","u":"\u0306",".":"\u0307","\\"":"\u0308","r":"\u030a","H":"\u030b","v":"\u030c","b":"\u0332","d":"\u0323","c":"\u0327","k":"\u0328","t":"\u0361","textcommabelow":"\u0326"},"Y":{"textquotesingle":"\'","textasciigrave":"`","textquotedbl":"\\"","textdollar":"$","textless":"<","textgreater":">","textbackslash":"\\\\","textasciicircum":"^","textunderscore":"_","textbraceleft":"{","textbar":"|","textbraceright":"}","textasciitilde":"~","textexclamdown":"\xa1","textcent":"\xa2","textsterling":"\xa3","textcurrency":"\xa4","textyen":"\xa5","textbrokenbar":"\xa6","textsection":"\xa7","textasciidieresis":"\xa8","textcopyright":"\xa9","textordfeminine":"\xaa","guillemetleft":"\xab","guillemotleft":"\xab","textlnot":"\xac","textregistered":"\xae","textasciimacron":"\xaf","textdegree":"\xb0","textpm":"\xb1","texttwosuperior":"\xb2","textthreesuperior":"\xb3","textasciiacute":"\xb4","textmu":"\xb5","textparagraph":"\xb6","textperiodcentered":"\xb7","textonesuperior":"\xb9","textordmasculine":"\xba","guillemetright":"\xbb","guillemotright":"\xbb","textonequarter":"\xbc","textonehalf":"\xbd","textthreequarters":"\xbe","textquestiondown":"\xbf","AE":"\xc6","DH":"\xd0","texttimes":"\xd7","O":"\xd8","TH":"\xde","ss":"\xdf","ae":"\xe6","dh":"\xf0","textdiv":"\xf7","o":"\xf8","th":"\xfe","DJ":"\u0110","dj":"\u0111","i":"\u0131","IJ":"\u0132","ij":"\u0133","L":"\u0141","l":"\u0142","NG":"\u014a","ng":"\u014b","OE":"\u0152","oe":"\u0153","textflorin":"\u0192","j":"\u0237","textasciicaron":"\u02c7","textasciibreve":"\u02d8","textacutedbl":"\u02dd","textgravedbl":"\u02f5","texttildelow":"\u02f7","textbaht":"\u0e3f","SS":"\u1e9e","textcompwordmark":"\u200c","textendash":"\u2013","textemdash":"\u2014","textbardbl":"\u2016","textquoteleft":"\u2018","textquoteright":"\u2019","quotesinglbase":"\u201a","textquotedblleft":"\u201c","textquotedblright":"\u201d","quotedblbase":"\u201e","textdagger":"\u2020","textdaggerdbl":"\u2021","textbullet":"\u2022","textellipsis":"\u2026","textperthousand":"\u2030","textpertenthousand":"\u2031","guilsinglleft":"\u2039","guilsinglright":"\u203a","textreferencemark":"\u203b","textinterrobang":"\u203d","textfractionsolidus":"\u2044","textlquill":"\u2045","textrquill":"\u2046","textdiscount":"\u2052","textcolonmonetary":"\u20a1","textlira":"\u20a4","textnaira":"\u20a6","textwon":"\u20a9","textdong":"\u20ab","texteuro":"\u20ac","textpeso":"\u20b1","textcelsius":"\u2103","textnumero":"\u2116","textcircledP":"\u2117","textrecipe":"\u211e","textservicemark":"\u2120","texttrademark":"\u2122","textohm":"\u2126","textmho":"\u2127","textestimated":"\u212e","textleftarrow":"\u2190","textuparrow":"\u2191","textrightarrow":"\u2192","textdownarrow":"\u2193","textminus":"\u2212","Hwithstroke":"\u0126","hwithstroke":"\u0127","textasteriskcentered":"\u2217","textsurd":"\u221a","textlangle":"\u2329","textrangle":"\u232a","textblank":"\u2422","textvisiblespace":"\u2423","textopenbullet":"\u25e6","textbigcircle":"\u25ef","textmusicalnote":"\u266a","textmarried":"\u26ad","textdivorced":"\u26ae","textinterrobangdown":"\u2e18","textcommabelow":null,"copyright":"\xa9","Gamma":"\u0393","Delta":"\u0394","Theta":"\u0398","Lambda":"\u039b","Xi":"\u039e","Pi":"\u03a0","Sigma":"\u03a3","Phi":"\u03a6","Psi":"\u03a8","Omega":"\u03a9","alpha":"\u03b1","beta":"\u03b2","gamma":"\u03b3","delta":"\u03b4","varepsilon":"\u03b5","zeta":"\u03b6","eta":"\u03b7","theta":"\u03b8","iota":"\u03b9","kappa":"\u03ba","lambda":"\u03bb","mu":"\u03bc","nu":"\u03bd","xi":"\u03be","pi":"\u03c0","rho":"\u03c1","varsigma":"\u03c2","sigma":"\u03c3","tau":"\u03c4","upsilon":"\u03c5","varphi":"\u03c6","chi":"\u03c7","psi":"\u03c8","omega":"\u03c9","vartheta":"\u03d1","Upsilon":"\u03d2","phi":"\u03d5","varpi":"\u03d6","varrho":"\u03f1","epsilon":"\u03f5"}}'),u=s,d=l,p=c.a,h=c.Y,f={jan:"01",feb:"02",mar:"03",apr:"04",may:"05",jun:"06",jul:"07",aug:"08",sep:"09",oct:"10",nov:"11",dec:"12",acmcs:"ACM Computing Surveys",acta:"Acta Informatica",cacm:"Communications of the ACM",ibmjrd:"IBM Journal of Research and Development",ibmsj:"IBM Systems Journal",ieeese:"IEEE Transactions on Software Engineering",ieeetc:"IEEE Transactions on Computers",ieeetcad:"IEEE Transactions on Computer-Aided Design of Integrated Circuits",ipl:"Information Processing Letters",jacm:"Journal of the ACM",jcss:"Journal of Computer and System Sciences",scp:"Science of Computer Programming",sicomp:"SIAM Journal on Computing",tocs:"ACM Transactions on Computer Systems",tods:"ACM Transactions on Database Systems",tog:"ACM Transactions on Graphics",toms:"ACM Transactions on Mathematical Software",toois:"ACM Transactions on Office Information Systems",toplas:"ACM Transactions on Programming Languages and Systems",tcs:"Theoretical Computer Science"},m={it:"italics",itshape:"italics",sl:"italics",slshape:"italics",em:"italics",bf:"bold",bfseries:"bold",sc:"smallcaps",scshape:"smallcaps",rm:void 0,sf:void 0,tt:void 0},g={textit:"italics",textsl:"italics",emph:"italics",mkbibitalic:"italics",mkbibemph:"italics",textbf:"bold",strong:"bold",mkbibbold:"bold",textsc:"smallcaps",textsuperscript:"superscript",textsubscript:"subscript",enquote:"quotes",mkbibquote:"quotes",textmd:void 0,textrm:void 0,textsf:void 0,texttt:void 0,textup:void 0},v={italics:["",""],bold:["",""],superscript:["",""],subscript:["",""],smallcaps:['',""],nocase:['',""],quotes:["\u201c","\u201d"]},b={ElsevierGlyph:e=>String.fromCharCode(parseInt(e,16)),href:(e,t)=>e,url:e=>e},y=/---?|''|``|~/g,_={"--":"\u2013","---":"\u2014","``":"\u201c","''":"\u201d","~":"\xa0"},x={"^":"superscript",sp:"superscript",_:"subscript",sb:"subscript",mathrm:void 0},w={"^":{0:"\u2070",1:"\xb9",2:"\xb2",3:"\xb3",4:"\u2074",5:"\u2075",6:"\u2076",7:"\u2077",8:"\u2078",9:"\u2079","+":"\u207a","-":"\u207b","=":"\u207c","(":"\u207d",")":"\u207e",i:"\u2071",n:"\u207f"},_:{0:"\u2080",1:"\u2081",2:"\u2082",3:"\u2083",4:"\u2084",5:"\u2085",6:"\u2086",7:"\u2087",8:"\u2088",9:"\u2089","+":"\u208a","-":"\u208b","=":"\u208c","(":"\u208d",")":"\u208e",a:"\u2090",e:"\u2091",o:"\u2092",x:"\u2093","\u0259":"\u2094",h:"\u2095",k:"\u2096",l:"\u2097",m:"\u2098",n:"\u2099",s:"\u209a",p:"\u209b",t:"\u209c"}},E=["american","british","canadian","english","australian","newzealand","usenglish","ukenglish","en","eng","en-au","en-bz","en-ca","en-cb","en-gb","en-ie","en-jm","en-nz","en-ph","en-tt","en-us","en-za","en-zw","anglais"];function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t{const[,t,n]=e.match(R)||[];if(t&&n){const e={type:"book",label:t,properties:{}};return n.trim().split(N).filter((e=>e)).forEach((t=>{let[n,r]=t.split(D);r&&(n=n.trim(),r=r.trim(),"type"===n?e.type=r:e.properties[n]=r)})),e}return{}},B=JSON.parse('{"source":{"article":"article-journal","book":"book","mvbook":"book","inbook":"chapter","bookinbook":"book","booklet":"book","collection":"book","mvcollection":"book","incollection":"chapter","dataset":"dataset","online":"webpage","patent":"patent","periodical":"article-journal","proceedings":"book","mvproceedings":"book","inproceedings":"paper-conference","reference":"book","mvreference":"book","inreference":"entry","report":"report","software":"book","thesis":"thesis","unpublished":"manuscript","artwork":"graphic","audio":"song","image":"figure","jurisdiction":"legal_case","legislation":"legislation","legal":"treaty","letter":"personal_communication","movie":"motion_picture","music":"musical_score","review":"review","video":"motion_picture","conference":"paper-conference","electronic":"webpage","mastersthesis":"thesis","phdthesis":"thesis","techreport":"report","www":"webpage"},"target":{"article":"article","article-journal":"article","article-magazine":"article","article-newspaper":"article","bill":"legislation","book":"book","broadcast":"audio","chapter":"inbook","dataset":"dataset","entry":"inreference","entry-dictionary":"inreference","entry-encyclopedia":"inreference","figure":"artwork","graphic":"artwork","interview":"audio","legal_case":"jurisdiction","legislation":"legislation","manuscript":"unpublished","motion_picture":"movie","musical_score":"music","paper-conference":"inproceedings","patent":"patent","personal_communication":"letter","post":"online","post-weblog":"online","report":"report","review":"review","review-book":"review","song":"music","speech":"audio","thesis":"thesis","treaty":"legal","webpage":"online"}}'),Q=JSON.parse('{"source":{"article":"article-journal","book":"book","booklet":"book","conference":"paper-conference","inbook":"chapter","incollection":"chapter","inproceedings":"paper-conference","mastersthesis":"thesis","phdthesis":"thesis","proceedings":"book","techreport":"report","unpublished":"manuscript"},"target":{"article":"article","article-journal":"article","article-magazine":"article","article-newspaper":"article","book":"book","chapter":"inbook","manuscript":"unpublished","paper-conference":"inproceedings","report":"techreport","review":"article","review-book":"article"}}'),U={constants:r,types:{biblatex:B,bibtex:Q},parse:{biblatex:!0,strict:!1,sentenceCase:"never"},format:{useIdAsLabel:!1}},F=new Set(["the","a","an"]),z=/(?:<\/?.*?>|[\u0020-\u002F\u003A-\u0040\u005B-\u005E\u0060\u007B-\u007F])+/g,q=/[^\u0020-\u007F]+/g;function H(e){return e?e.normalize("NFKD").replace(q,"").split(z).find((e=>e.length&&!F.has(e.toLowerCase()))):""}const W=new i.util.Translator([{source:"given",target:"given"},{source:"family",target:"family"},{source:"suffix",target:"suffix"},{source:"prefix",target:"non-dropping-particle"},{source:"family",target:"literal",when:{source:!1,target:{family:!1,given:!1}}}]),G=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],V="BibTeX type",$="BibTeX label",K={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12,january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12},Y={bathesis:"Bachelor's thesis",mathesis:"Master's thesis",phdthesis:"PhD thesis",candthesis:"Candidate thesis",techreport:"technical report",resreport:"research report",software:"computer software",datacd:"data cd",audiocd:"audio cd",patent:"patent",patentde:"German patent",patenteu:"European patent",patentfr:"French patent",patentuk:"British patent",patentus:"U.S. patent",patreq:"patent request",patreqde:"German patent request",patreqeu:"European patent request",patreqfr:"French patent request",patrequk:"British patent request",patrequs:"U.S. patent request"},Z=/(^(?:ISAN )?(?:[0-9a-f]{4}-){4}[0-9a-z](?:-(?:[0-9a-f]{4}-){2}[0-9a-z])?$)|(^(?:979-?0-?|M-?)(?:\d{9}|(?=[\d-]{11}$)\d+-\d+-\d)$)|(^ISRN .{1,36}$)|(^(?:ISWC )?T-?\d{9}-?\d$)/i;function J(e){if(null==e)return[];if(+e)return[parseInt(e,10)];if((e=e.trim().toLowerCase())in K)return[K[e]];const t=e.split(/\s+/);let n,r;return t[0]in K?(n=K[t[0]],r=parseInt(t[1])):t[1]in K&&(n=K[t[1]],r=parseInt(t[0])),r?[n,r]:n?[n]:[]}const X={PICK:{toTarget(){for(var e=arguments.length,t=new Array(e),n=0;n[e]},DATE:{toTarget(e){const t=e.split("/").map((e=>e&&".."!==e?function(e){const t=e.split("T")[0].replace(/[?~%]$/,"").split("-"),n=+t[0].replace(/^Y(?=-?\d{4}\d+)/,"").replace(/X/g,"0"),r=+t[1],i=+t[2];return!r||r>20?[n]:i?[n,r,i]:[n,r]}(e):void 0));return isNaN(t[0][0])?{literal:e}:{"date-parts":t}},toSource(e){if("date-parts"in e)return e["date-parts"].map((e=>e.map((e=>e.toString().padStart(2,"0"))).join("-"))).join("/")}},YEAR_MONTH:{toTarget:(e,t,n)=>isNaN(+e)?{literal:e}:isNaN(+n)||isNaN(+t)?{"date-parts":[[+e,...J(t)]]}:{"date-parts":[[+e,+t,+n]]},toSource(e){if("date-parts"in e){const[t,n,r]=e["date-parts"][0];return[t.toString(),n?r?"".concat(G[n-1]," ").concat(r):n:void 0]}return[]}},EPRINT:{toTarget(e,t){if("pubmed"===t)return e},toSource:e=>[e,"pubmed"]},HOW_PUBLISHED:{toTarget(e){if(e.startsWith("http"))return e}},KEYWORDS:{toTarget:e=>e.join(","),toSource:e=>e.split(",")},LABEL:{toTarget:e=>[e,e],toSource(e,t,n,r,i,o){let a;return a=null===e?"null":void 0===e?"undefined":e.toString().replace(z,""),U.format.useIdAsLabel?a:t&&!z.test(t)?t:function(e,t,n,r){let i="";return e&&e[0]&&(i+=H(e[0].family||e[0].literal)),t&&t["date-parts"]&&t["date-parts"][0]&&(i+=t["date-parts"][0][0]),n?i+=n:r&&(i+=H(r)),i}(n,r,i,o)||a}},NAMES:{toTarget:e=>e.map(W.convertToTarget),toSource:e=>e.map(W.convertToSource)},STANDARD_NUMBERS:{toTarget(){for(var e=arguments.length,t=new Array(e),n=0;n(t&&(e+=": "+t),e),toSource:e=>[e]}};var ee=n(1732);const te=[{source:"note",target:"accessed",when:{source:!1,target:{note:!1}},convert:{toSource:e=>"[Online; accessed ".concat((0,ee.format)(e),"]")}},{source:"numpages",target:"number-of-pages",when:{source:{pagetotal:!1},target:!1}},{source:"pmid",target:"PMID",when:{source:{eprinttype:e=>"pmid"!==e,archiveprefix:e=>"pmid"!==e},target:!1}},{source:"pmcid",target:"PMCID",when:{target:!1}}],ne=[{source:"annote",target:"annote",when:{source:{annotation:!1},target:!1}},{source:"address",target:"publisher-place",convert:X.PICK,when:{source:{location:!1},target:!1}},{source:["eprint","archiveprefix"],target:"PMID",convert:X.EPRINT,when:{source:{eprinttype:!1},target:!1}},{source:"journal",target:"container-title",when:{source:{maintitle:!1,booktitle:!1,journaltitle:!1},target:!1}},{source:"school",target:"publisher",convert:X.PICK,when:{source:{institution:!1,organization:!1,publisher:!1},target:!1}}],re=new i.util.Translator([...ne,...te,{source:"abstract",target:"abstract"},{source:"urldate",target:"accessed",convert:X.DATE},{source:"annotation",target:"annote"},{source:"author",target:"author",convert:X.NAMES},{source:"library",target:"call-number"},{source:"chapter",target:"chapter-number"},{source:"bookauthor",target:"container-author",convert:X.NAMES},{source:["maintitle","mainsubtitle","maintitleaddon"],target:"container-title",when:{source:!0,target:{"number-of-volumes":!0}},convert:X.TITLE},{source:["booktitle","booksubtitle","booktitleaddon"],target:"container-title",when:{source:{maintitle:!1},target:{"number-of-volumes":!1,type:e=>!e.startsWith("article")}},convert:X.TITLE},{source:["journaltitle","journalsubtitle","journaltitleaddon"],target:"container-title",when:{source:{[V]:"article"},target:{type:["article","article-newspaper","article-journal","article-magazine"]}},convert:X.TITLE},{source:"shortjournal",target:"container-title-short",when:{source:{[V]:"article"},target:{type:["article","article-newspaper","article-journal","article-magazine"]}}},{source:"shortjournal",target:"journalAbbreviation",when:{source:!1,target:{"container-title-short":!1}}},{source:"number",target:"collection-number",when:{source:{[V]:["book","mvbook","inbook","bookinbook","suppbook","collection","mvcollection","incollection","suppcollection","manual","suppperiodical","proceedings","mvproceedings","refererence"]},target:{type:["bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legislation","legal_case","manuscript","map","motion_picture","musical_score","pamphlet","post","post-weblog","personal_communication","review","review-book","song","speech","thesis","treaty","webpage"]}}},{source:"series",target:"collection-title"},{source:"shortseries",target:"collection-title-short"},{source:"doi",target:"DOI"},{source:"edition",target:"edition"},{source:"editor",target:"editor",convert:X.NAMES},{source:[V,"entrysubtype","type"],target:["type","genre"],convert:{toTarget:(e,t,n)=>(n||("masterthesis"===e&&(n="mathesis"),"phdthesis"===e&&(n="phdthesis"),"techreport"===e&&(n="techreport")),[B.source[e]||"book",n||t]),toSource(e,t){const n=B.target[e]||"misc";return t in Y?[n,void 0,t]:[n,t]}}},{source:V,when:{target:{type:!1}},convert:{toSource:()=>"misc"}},{source:"eventdate",target:"event-date",convert:X.DATE},{source:"venue",target:"event-place"},{source:"eventtitle",target:"event"},{source:$,target:["id","citation-label","author","issued","year-suffix","title"],convert:X.LABEL},{source:"isbn",target:"ISBN"},{source:"issn",target:"ISSN"},{source:"issue",target:"issue",when:{source:{number:!1,[V]:["article","periodical"]},target:{issue:e=>"string"===typeof e&&!e.match(/\d+/),type:["article","article-journal","article-newspaper","article-magazine"]}}},{source:"number",target:"issue",when:{source:{[V]:["article","periodical","inproceedings"]},target:{issue:e=>e&&("number"===typeof e||e.match(/\d+/)),type:["article","article-journal","article-newspaper","article-magazine","paper-conference"]}}},{source:"date",target:"issued",convert:X.DATE},{source:["year","month","day"],target:"issued",convert:X.YEAR_MONTH,when:{source:{date:!1},target:!1}},{source:"location",target:"jurisdiction",when:{source:{type:"patent"},target:{type:"patent"}}},{source:"keywords",target:"keyword",convert:X.KEYWORDS},{source:"language",target:"language",convert:X.PICK},{source:"note",target:"note"},{source:["isan","ismn","isrn","iswc"],target:"number",convert:X.STANDARD_NUMBERS,when:{source:{[V]:e=>"patent"!==e},target:{type:e=>"patent"!==e}}},{source:"number",target:"number",when:{source:{[V]:["patent","report","techreport","legislation"]},target:{type:["patent","report","legislation"]}}},{source:"origdate",target:"original-date",convert:X.DATE},{source:"origlocation",target:"original-publisher-place",convert:X.PICK},{source:"origpublisher",target:"original-publisher",convert:X.PICK},{source:"origtitle",target:"original-title"},{source:["pages","eid"],target:"page",convert:{toTarget:(e,t)=>t?t.replace(/^e?/i,"e"):e.replace(/[\u2013\u2014]/,"-"),toSource:e=>/^e/i.test(e)?[e,e]:[e.replace("-","--")]}},{source:"pagetotal",target:"number-of-pages"},{source:["eprint","eprinttype"],target:"PMID",convert:X.EPRINT},{source:"location",target:"publisher-place",convert:X.PICK},{source:"publisher",target:"publisher",convert:X.PICK,when:{source:!0,target:{type:["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","regulation","review","review-book","song","speech","treaty"]}}},{source:"organization",target:"publisher",convert:X.PICK,when:{source:{publisher:!1},target:{type:"webpage"}}},{source:"institution",target:"publisher",convert:X.PICK,when:{source:{publisher:!1,organization:!1},target:{type:["report","thesis"]}}},{source:"howpublished",target:"publisher",convert:X.PICK,when:{source:{publisher:!1,organization:!1,institution:!1},target:{type:"manuscript"}}},{source:["pages","bookpagination"],target:"section",when:{source:{bookpagination:"section"},target:{page:!1}},convert:{toTarget:e=>e,toSource:e=>[e,"section"]}},{source:"pubstate",target:"status",convert:X.STATUS},{source:"shorttitle",target:"title-short"},{source:["title","subtitle","titleaddon"],target:"title",convert:X.TITLE},{source:"translator",target:"translator",convert:X.NAMES},{source:"url",target:"URL"},{source:"howpublished",target:"URL",convert:X.HOW_PUBLISHED,when:{source:{url:!1},target:!1}},{source:"version",target:"version"},{source:"volume",target:"volume"},{source:"volumes",target:"number-of-volumes"}]),ie=new i.util.Translator([{source:"note",target:"accessed",when:{source:!1,target:{note:!1}},convert:{toSource:e=>"[Online; accessed ".concat((0,ee.format)(e),"]")}},{source:"annote",target:"annote"},{source:"address",target:"publisher-place",convert:X.PICK},{source:"author",target:"author",convert:X.NAMES},{source:"chapter",target:"chapter-number"},{source:"number",target:"collection-number",when:{source:{[V]:["book","mvbook","inbook","collection","mvcollection","incollection","suppcollection","manual","suppperiodical","proceedings","mvproceedings","refererence"]},target:{type:["bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legislation","legal_case","manuscript","map","motion_picture","musical_score","pamphlet","post","post-weblog","personal_communication","review","review-book","song","speech","thesis","treaty","webpage"]}}},{source:"series",target:"collection-title"},{source:"booktitle",target:"container-title",when:{target:{type:["chapter","paper-conference"]}}},{source:"journal",target:"container-title",when:{source:{[V]:"article"},target:{type:["article","article-newspaper","article-journal","article-magazine"]}}},{source:"edition",target:"edition"},{source:"editor",target:"editor",convert:X.NAMES},{source:$,target:["id","citation-label","author","issued","year-suffix","title"],convert:X.LABEL},{source:"number",target:"issue",when:{source:{[V]:["article","periodical","inproceedings"]},target:{issue:e=>"number"===typeof e||"string"===typeof e&&e.match(/\d+/),type:["article","article-journal","article-newspaper","article-magazine","paper-conference"]}}},{source:["year","month","day"],target:"issued",convert:X.YEAR_MONTH},{source:"note",target:"note"},{source:"number",target:"number",when:{source:{[V]:["patent","report","techreport"]},target:{type:["patent","report"]}}},{source:"pages",target:"page",convert:{toTarget:e=>e.replace(/[\u2013\u2014]/,"-"),toSource:e=>e.replace("-","--")}},{source:"publisher",target:"publisher",convert:X.PICK,when:{target:{type:["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","map","motion_picture","musical_score","pamphlet","patent","personal_communication","post","post-weblog","review","review-book","song","speech","treaty","webpage"]}}},{source:"organization",target:"publisher",convert:X.PICK,when:{source:{publisher:!1},target:{type:"paper-conference"}}},{source:"institution",target:"publisher",convert:X.PICK,when:{source:{publisher:!1,organization:!1},target:{type:"report"}}},{source:"school",target:"publisher",convert:X.PICK,when:{source:{institution:!1,organization:!1,publisher:!1},target:{type:"thesis"}}},{source:"howpublished",target:"publisher",convert:X.PICK,when:{source:{publisher:!1,organization:!1,institution:!1,school:!1},target:{type:"manuscript"}}},{source:"title",target:"title"},{source:[V,"type"],target:["type","genre"],convert:{toTarget(e,t){const n=Q.source[e]||"book";return t?[n,t]:"mastersthesis"===e?[n,"Master's thesis"]:"phdthesis"===e?[n,"PhD thesis"]:[n]},toSource(e,t){const n=Q.target[e]||"misc";return/^(master'?s|diploma) thesis$/i.test(t)?["mastersthesis"]:/^(phd|doctoral) thesis$/i.test(t)?["phdthesis"]:[n,t]}}},{source:V,when:{target:{type:!1}},convert:{toSource:()=>"misc"}},{source:"howpublished",target:"URL",convert:X.HOW_PUBLISHED,when:{target:{publisher:!1}}},{source:"volume",target:"volume"}]);function oe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ae(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ce(e,t){if(e.crossref in t){const n=t[e.crossref].properties;return n===e?e:Object.assign({},ce(n,t),e)}return e}function ue(e,t){const n={};for(const r of e)n[r.label]=r;return e.map((e=>{let{type:r,label:i,properties:o}=e;return t.convertToTarget(function(e){for(var t=1;t{const n=t.convertToSource(e),{[V]:r,[$]:i}=n;return{type:r,label:i,properties:oe(n,[V,$].map(ae))}}))}function pe(e){const t=e.toUpperCase(),n=e.toLowerCase();for(let r=0;r1;){const{value:n,hyphenated:r}=e.shift();t+=n+(r?"-":" ")}const n=t+e[0].value;return n[0]&&n}function fe(e){if(e[0][0].label){const t={};for(const[{value:n,label:r}]of e)t[r]=n;return t}const t={},[n,r,i]=function(e){const t=[],n=[];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])for(;e.length>1&&!1!==e[0].upperCase;){for(t.push(...n),n.length=0;e.length>1&&!1!==e[0].upperCase&&!e[0].hyphenated;)t.push(e.shift());for(;e.length>0&&!1!==e[0].upperCase&&e[0].hyphenated;)n.push(e.shift())}const r=[],i=[];for(;e.length>1;){for(r.push(...i),i.length=0;e.length>1&&!1===e[0].upperCase;)r.push(e.shift());for(;e.length>0&&!1!==e[0].upperCase;)i.push(e.shift())}return n.length&&i.unshift(...n),e.length&&i.push(e[0]),[he(t),he(r),he(i)]}(e[0],1===e.length);return i&&(t.family=i),r&&(t.prefix=r),3===e.length?(t.given=he(e[2]),t.suffix=he(e[1])):2===e.length?t.given=he(e[1]):n&&(t.given=n),t}function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t=1;tbe[e],value:e=>e.slice(1).trim()},lbrace:{match:"{",push:"bracedLiteral"},mathShift:{match:"$",push:"mathLiteral"},whitespace:{match:/[\s]+|~/,lineBreaks:!0,value:e=>"~"===e?"\xa0":" "}},_e=a().states({stringLiteral:ge(ge({},ye),{},{text:/[^{$}\s~\\]+/}),namesLiteral:ge(ge({and:/\s+and\s+/,comma:",",hyphen:"-",equals:"="},ye),{},{text:/[^{$}\s~\\,=-]+/}),listLiteral:ge(ge({and:/\s+and\s+/},ye),{},{text:/[^{$}\s~\\]+/}),separatedLiteral:ge(ge({comma:","},ye),{},{text:/[^{$}\s~\\,]+/}),bracedLiteral:ge(ge({},ye),{},{rbrace:{match:"}",pop:!0},text:/[^{$}\s~\\]+/}),mathLiteral:ge(ge({},ye),{},{mathShift:{match:"$",pop:!0},script:/[\^_]/,text:/[^{$}\s~\\^_]+/})});function xe(e){return e[0],e}function we(e,t){return t in v?e&&v[t].join(e):e}const Ee=new i.util.Grammar({String(){let e="";for(;!this.matchEndOfFile();)e+=this.consumeRule("Text");return xe(e)},StringNames(){const e=[];for(;;){if(this.consumeToken("whitespace",!0),e.push(this.consumeRule("Name")),this.consumeToken("whitespace",!0),this.matchEndOfFile())return e;this.consumeToken("and")}},Name(){const e=[];for(;;){if(e.push(this.consumeRule("NamePiece")),this.matchEndOfFile()||this.matchToken("and"))return fe(e);this.consumeToken("comma"),this.consumeToken("whitespace",!0)}},NamePiece(){const e=[];for(;;){const t=this.consumeRule("NameToken");if(t.label)return t.label=he([...e,{value:t.label}]),[t];if(e.push(t),this.matchEndOfFile()||this.matchToken("and")||this.matchToken("comma"))return e;for(;this.matchToken("hyphen")||this.matchToken("whitespace");)this.consumeToken()}},NameToken(){let e=null,t="";for(;;)if(null===e&&this.matchToken("text")){const n=this.consumeToken().value;t+=n,e=pe(n)}else{if(this.matchEndOfFile()||this.matchToken("and")||this.matchToken("comma")||this.matchToken("whitespace"))return{value:t,upperCase:e};if(this.matchToken("hyphen"))return{value:t,upperCase:e,hyphenated:!0};if(this.matchToken("equals")){this.consumeToken("equals");const e=this.consumeRule("NamePiece");return e[0].label&&(t+="="+e[0].label),{value:he(e),label:t}}t+=this.consumeRule("Text")}},StringList(){const e=[];for(;!this.matchEndOfFile();){let t="";for(;!this.matchEndOfFile()&&!this.matchToken("and");)t+=this.consumeRule("Text");e.push(xe(t)),this.consumeToken("and",!0)}return 1===e.length?e[0]:e},StringSeparated(){const e=[];for(;!this.matchEndOfFile();){let t="";for(;!this.matchEndOfFile()&&!this.matchToken("comma");)t+=this.consumeRule("Text");e.push(t.trim()),this.consumeToken("comma",!0),this.consumeToken("whitespace",!0)}return e},StringVerbatim(){let e="";for(;!this.matchEndOfFile();)e+=this.consumeToken().text;return xe(e)},StringUri(){const e=this.consumeRule("StringVerbatim");try{return decodeURI(e)===e?encodeURI(e):e}catch(t){return encodeURI(e)}},StringTitleCase(){this.state.sentenceCase=!0;let e="";for(;!this.matchEndOfFile();)e+=this.consumeRule("Text");return xe(e)},BracketString(){var e;let t="";this.consumeToken("lbrace");const n=this.state.sentenceCase;for(this.state.sentenceCase=n&&this.matchToken("command"),(e=this.state).partlyLowercase&&(e.partlyLowercase=this.state.sentenceCase);!this.matchToken("rbrace");)t+=this.consumeRule("Text");const r=n&&!this.state.sentenceCase&&this.state.partlyLowercase;return this.state.sentenceCase=n,this.consumeToken("rbrace"),r?we(t,"nocase"):t},MathString(){let e="";for(this.consumeToken("mathShift");!this.matchToken("mathShift");)if(this.matchToken("script")){const t=this.consumeToken("script").value,n=this.consumeRule("Text").split("");if(n.every((e=>e in w[t])))e+=n.map((e=>w[t][e])).join("");else{const r=x[t];e+=v[r].join(n.join(""))}}else{if(this.matchToken("command")){const t=this.token.value;if(t in x){this.consumeToken("command");e+=we(this.consumeRule("BracketString"),x[t]);continue}}e+=this.consumeRule("Text")}return this.consumeToken("mathShift"),e},Text(){if(this.matchToken("lbrace"))return this.consumeRule("BracketString");if(this.matchToken("mathShift"))return this.consumeRule("MathString");if(this.matchToken("whitespace"))return this.consumeToken("whitespace").value;if(this.matchToken("commandBegin"))return this.consumeRule("EnclosedEnv");if(this.matchToken("command"))return this.consumeRule("Command");const e=this.consumeToken("text").value.replace(y,(e=>_[e])),t=this.state.afterPunctuation;var n;if(this.state.afterPunctuation=/[?!.:]$/.test(e),!this.state.sentenceCase)return(n=this.state).partlyLowercase||(n.partlyLowercase=e===e.toLowerCase()&&e!==e.toUpperCase()),e;const[r,...i]=e,o=i.join(""),a=o.toLowerCase();return o!==a?e:t?r+a:e.toLowerCase()},Command(){const e=this.consumeToken("command"),t=e.value;if(t in m){return we(this.consumeRule("Env"),m[t])}if(t in g){return we(this.consumeRule("BracketString"),g[t])}if(t in h)return h[t];if(t in p&&!this.matchEndOfFile()){const e=this.consumeRule("Text");return(e[0]+p[t]).normalize("NFC")+e.slice(1)}if(t in b){const e=b[t],n=[];let r=e.length;for(;r-- >0;)this.consumeToken("whitespace",!0),n.push(this.consumeRule("BracketString"));return e(...n)}return/^[&%$#_{}]$/.test(t)?e.text.slice(1):e.text},Env(){let e="";for(;!this.matchEndOfFile()&&!this.matchToken("rbrace");)e+=this.consumeRule("Text");return e},EnclosedEnv(){this.consumeToken("commandBegin");const e=this.consumeRule("BracketString");let t="";for(;!this.matchToken("commandEnd");)t+=this.consumeRule("Text");const n=this.consumeToken("commandEnd"),r=this.consumeRule("BracketString");if(e!==r)throw new SyntaxError(this.lexer.formatError(n,'environment started with "'.concat(e,'", ended with "').concat(r,'"')));return we(t,m[e])}},{sentenceCase:!1,partlyLowercase:!1,afterPunctuation:!0});function Te(e){return E.includes(e.toLowerCase())}function Ce(e,t){if("name"===e[1])return"list"===e[0]?"StringNames":"Name";if("title"===e[1]){const e=U.parse.sentenceCase;return"always"===e||"english"===e&&function(e){return Array.isArray(e)?e.every(Te):Te(e)}(t)?"StringTitleCase":"String"}switch("field"===e[0]?e[1]:e[0]){case"list":return"StringList";case"separated":return"StringSeparated";case"verbatim":return"StringVerbatim";case"uri":return"StringUri";default:return"String"}}function ke(e){if("name"===e[1])return"namesLiteral";switch(e[0]){case"list":return"listLiteral";case"separated":return"separatedLiteral";default:return"stringLiteral"}}function Se(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=d[t]||[];return Ee.parse(_e.reset(e,{state:ke(r),line:0,col:0}),Ce(r,n))}function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ae(e){for(var t=1;te in o))?e.push(n.join("/")):"string"!==typeof n||n in o||e.push(n);e.length&&n.push([i,"missing fields: ".concat(e.join(", "))])}else n.push([i,'invalid type: "'.concat(r,'"')]);if(n.length)throw new RangeError(["Invalid entries:"].concat(n.map((e=>{let[t,n]=e;return" - ".concat(t," has ").concat(n)}))).join("\n"))}function Ie(e){const t={};"language"in e.properties&&(t.language=Se(e.properties.language,"language"));for(const n in e.properties){const r=e.properties[n];""!==r&&(t[n]=Se(r+"",n,t.language))}return Ae(Ae({},e),{},{properties:t})}function Le(e){return U.parse.strict&&Pe(e,u.biblatex),ue(e.map(Ie),re)}function Re(e){return U.parse.strict&&Pe(e,u.bibtex),ue(e.map(Ie),ie)}const Ne={"@biblatex/text":{parse:I,parseType:{dataType:"String",predicate:/@\s{0,5}[A-Za-z]{1,13}\s{0,5}\{\s{0,5}[^@{}"=,\\\s]{0,100}\s{0,5},[\s\S]*\}/}},"@biblatex/entry+object":{parse:e=>Le([e]),parseType:{dataType:"SimpleObject",propertyConstraint:{props:["type","label","properties"]}}},"@biblatex/entries+list":{parse:Le,parseType:{elementConstraint:"@biblatex/entry+object"}},"@bibtex/text":{parse:I,outputs:"@bibtex/entries+list"},"@bibtex/entry+object":{parse:e=>Re([e])},"@bibtex/entries+list":{parse:Re},"@bibtxt/text":{parse:e=>e.trim().split(L).map(M),parseType:{dataType:"String",predicate:/^\s*(\[(?!\s*[{[]).*?\]\s*(\n\s*[^[]((?!:)\S)+\s*:\s*.+?\s*)*\s*)+$/}}},De={};for(const Ye in h)De[h[Ye]]=Ye;for(const Ye in p)De[p[Ye]]=Ye;for(const Ye in _)De[_[Ye]]=Ye;const Me=/[^a-zA-Z0-9\s!"#%&'()*+,\-./:;=?@[\]{}\u0300-\u0308\u030a-\u030c\u0332\u0323\u0327\u0328\u0361\u0326]/g,Be=/.[\u0300-\u0308\u030a-\u030c\u0332\u0323\u0327\u0328\u0361\u0326]+/g,Qe={separated:",",list:" and "},Ue={i:"\\textit{",b:"\\textbf{",sc:"\\textsc{",sup:"\\textsuperscript{",sub:"\\textsubscript{",'span style="font-variant:small-caps;"':"\\textsc{",'span class="nocase"':"{"};function Fe(e){return e.normalize("NFKD").replace(Me,(e=>e in De?De[e]in _?De[e]:"\\".concat(De[e],"{}"):"")).replace(Be,(e=>Array.from(e).reduce(((e,t)=>"{\\".concat(De[t]," ").concat(e,"}")))))}function ze(e){const t=[];let n=e.split(/<(\/?(?:i|b|sc|sup|sub|span)|span .*?)>/g);return n=n.map(((e,n)=>n%2===0?Fe(e):e in Ue?(t.push("/"+e.split(" ")[0]),Ue[e]):e===t[t.length-1]?(t.pop(),"}"):"")),n.join("")}function qe(e,t){switch(t){case"title":return ze(e).split(/(:\s*)/).map(((e,t)=>t%2?e:e.replace(/(?!^)\b[a-z]*[A-Z].*?\b/g,"{$&}"))).join("");case"literal":return ze(e.toString());case"name":return function(e){if(e.family&&!e.prefix&&!e.given&!e.suffix)return e.family.includes(Qe.list)?e.family:"{".concat(e.family,"}");const t=[""];return e.prefix&&e.family&&(t[0]+=e.prefix+" "),e.family&&(t[0]+=e.family),e.suffix?(t.push(e.suffix),t.push(e.given||"")):t.push(e.given),Fe(t.join(", ").trim())}(e);case"verbatim":case"uri":return e.toString();default:return Fe(e.toString())}}function He(e,t){if(!(e in d))return qe(t,"verbatim");const[n,r]=d[e];return n in Qe?function(e,t,n){const r=Qe[n];return e.map((e=>{const n=qe(e,t);return n.includes(r)?"{".concat(n,"}"):n})).join(r)}(t,r,n):qe(t,r)}function We(e){let{type:t,label:n,properties:r}=e;const i={};for(const o in r){const e=r[o];i[o]=He(o,e)}return{type:t,label:n,properties:i}}function Ge(e){return(t=e,de(t,ie)).map(We);var t}function Ve(e,t){const n=e.map((e=>function(e,t){let{type:n,label:r,properties:i}=e;const o=Object.entries(i).map((e=>{let[n,r]=e;return t.listItem.join("".concat(n," = {").concat(r,"},"))}));return t.entry.join("@".concat(n,"{").concat(r,",").concat(t.list.join(o.join("")),"}"))}(e,t))).join("");return t.bibliographyContainer.join(n)}const $e=function(e,t){return function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:o,format:a=o||"text"}=r;if(n=e(n),"object"===a)return n;if(i.plugins.dict.has(a))return t(n,i.plugins.dict.get(a),r);throw new RangeError('Output dictionary "'.concat(a,'" not available'))}},Ke={bibtex:$e(Ge,Ve),biblatex:$e((function(e){return(t=e,de(t,re)).map(We);var t}),Ve),bibtxt:$e(Ge,(function(e,t){const n=e.map((e=>function(e,t){let{type:n,label:r,properties:i}=e;const o=Object.entries(i).concat([["type",n]]).map((e=>{let[n,r]=e;return t.listItem.join("".concat(n,": ").concat(r))}));return t.entry.join("[".concat(r,"]").concat(t.list.join(o.join(""))))}(e,t))).join("\n");return t.bibliographyContainer.join(n)}))};i.plugins.add("@bibtex",{input:Ne,output:Ke,config:U})},1364:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(480)),i=a(n(9776));function o(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function a(e){return e&&e.__esModule?e:{default:e}}var s={constants:function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(2188)),types:{biblatex:r.default,bibtex:i.default},parse:{biblatex:!0,strict:!1,sentenceCase:"never"},format:{useIdAsLabel:!1}};t.default=s},2652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.textEntry=t.text=t.parse=void 0;const n=/\n\s*(?=\[)/g,r=/^\[(.+?)\]\s*(?:\n([\s\S]+))?$/,i=/((?=.)\s)*\n\s*/g,o=/:(.*)/,a=e=>{const[,t,n]=e.match(r)||[];if(t&&n){const e={type:"book",label:t,properties:{}};return n.trim().split(i).filter((e=>e)).forEach((t=>{let[n,r]=t.split(o);r&&(n=n.trim(),r=r.trim(),"type"===n?e.type=r:e.properties[n]=r)})),e}return{}};t.textEntry=a;t.text=t.parse=e=>e.trim().split(n).map(a)},2188:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sentenceCaseLanguages=t.required=t.mathScripts=t.mathScriptFormatting=t.ligatures=t.ligaturePattern=t.formattingEnvs=t.formattingCommands=t.formatting=t.fieldTypes=t.diacritics=t.defaultStrings=t.commands=t.argumentCommands=void 0;var r=a(n(8242)),i=a(n(7064)),o=a(n(5188));function a(e){return e&&e.__esModule?e:{default:e}}const s=r.default;t.required=s;const l=i.default;t.fieldTypes=l;const c=o.default.diacritics;t.diacritics=c;const u=o.default.commands;t.commands=u;t.defaultStrings={jan:"01",feb:"02",mar:"03",apr:"04",may:"05",jun:"06",jul:"07",aug:"08",sep:"09",oct:"10",nov:"11",dec:"12",acmcs:"ACM Computing Surveys",acta:"Acta Informatica",cacm:"Communications of the ACM",ibmjrd:"IBM Journal of Research and Development",ibmsj:"IBM Systems Journal",ieeese:"IEEE Transactions on Software Engineering",ieeetc:"IEEE Transactions on Computers",ieeetcad:"IEEE Transactions on Computer-Aided Design of Integrated Circuits",ipl:"Information Processing Letters",jacm:"Journal of the ACM",jcss:"Journal of Computer and System Sciences",scp:"Science of Computer Programming",sicomp:"SIAM Journal on Computing",tocs:"ACM Transactions on Computer Systems",tods:"ACM Transactions on Database Systems",tog:"ACM Transactions on Graphics",toms:"ACM Transactions on Mathematical Software",toois:"ACM Transactions on Office Information Systems",toplas:"ACM Transactions on Programming Languages and Systems",tcs:"Theoretical Computer Science"};const d={it:"italics",itshape:"italics",sl:"italics",slshape:"italics",em:"italics",bf:"bold",bfseries:"bold",sc:"smallcaps",scshape:"smallcaps",rm:void 0,sf:void 0,tt:void 0};t.formattingEnvs=d;const p={textit:"italics",textsl:"italics",emph:"italics",mkbibitalic:"italics",mkbibemph:"italics",textbf:"bold",strong:"bold",mkbibbold:"bold",textsc:"smallcaps",textsuperscript:"superscript",textsubscript:"subscript",enquote:"quotes",mkbibquote:"quotes",textmd:void 0,textrm:void 0,textsf:void 0,texttt:void 0,textup:void 0};t.formattingCommands=p;t.formatting={italics:["",""],bold:["",""],superscript:["",""],subscript:["",""],smallcaps:['',""],nocase:['',""],quotes:["\u201c","\u201d"]};const h={ElsevierGlyph:e=>String.fromCharCode(parseInt(e,16)),href:(e,t)=>e,url:e=>e};t.argumentCommands=h;t.ligaturePattern=/---?|''|``|~/g;t.ligatures={"--":"\u2013","---":"\u2014","``":"\u201c","''":"\u201d","~":"\xa0"};const f={"^":"superscript",sp:"superscript",_:"subscript",sb:"subscript",mathrm:void 0};t.mathScriptFormatting=f;t.mathScripts={"^":{0:"\u2070",1:"\xb9",2:"\xb2",3:"\xb3",4:"\u2074",5:"\u2075",6:"\u2076",7:"\u2077",8:"\u2078",9:"\u2079","+":"\u207a","-":"\u207b","=":"\u207c","(":"\u207d",")":"\u207e",i:"\u2071",n:"\u207f"},_:{0:"\u2080",1:"\u2081",2:"\u2082",3:"\u2083",4:"\u2084",5:"\u2085",6:"\u2086",7:"\u2087",8:"\u2088",9:"\u2089","+":"\u208a","-":"\u208b","=":"\u208c","(":"\u208d",")":"\u208e",a:"\u2090",e:"\u2091",o:"\u2092",x:"\u2093","\u0259":"\u2094",h:"\u2095",k:"\u2096",l:"\u2097",m:"\u2098",n:"\u2099",s:"\u209a",p:"\u209b",t:"\u209c"}};t.sentenceCaseLanguages=["american","british","canadian","english","australian","newzealand","usenglish","ukenglish","en","eng","en-au","en-bz","en-ca","en-cb","en-gb","en-ie","en-jm","en-nz","en-ph","en-tt","en-us","en-za","en-zw","anglais"]},2892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e){i.default.parse.strict&&d(e,s.required.biblatex);return(0,o.parse)(e.map(p))},t.parseBibtex=function(e){i.default.parse.strict&&d(e,s.required.bibtex);return(0,o.parseBibtex)(e.map(p))};var r,i=(r=n(1364))&&r.__esModule?r:{default:r},o=n(3272),a=n(7440),s=n(2188);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;te in o))?e.push(n.join("/")):"string"!==typeof n||n in o||e.push(n);e.length&&n.push([i,"missing fields: ".concat(e.join(", "))])}else n.push([i,'invalid type: "'.concat(r,'"')]);if(n.length)throw new RangeError(["Invalid entries:"].concat(n.map((e=>{let[t,n]=e;return" - ".concat(t," has ").concat(n)}))).join("\n"))}function p(e){const t={};"language"in e.properties&&(t.language=(0,a.parse)(e.properties.language,"language"));for(const n in e.properties){const r=e.properties[n];""!==r&&(t[n]=(0,a.parse)(r+"",n,t.language))}return c(c({},e),{},{properties:t})}},1072:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bibtexGrammar=void 0,t.parse=function(e){return f.parse(p.reset(e))};var r,i=n(8660),o=(r=n(3240))&&r.__esModule?r:{default:r},a=n(2188);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t{"use strict";t.qy=void 0;var r=n(1072),i=n(2652),o=n(2892);const a={"@biblatex/text":{parse:r.parse,parseType:{dataType:"String",predicate:/@\s{0,5}[A-Za-z]{1,13}\s{0,5}\{\s{0,5}[^@{}"=,\\\s]{0,100}\s{0,5},[\s\S]*\}/}},"@biblatex/entry+object":{parse:e=>(0,o.parse)([e]),parseType:{dataType:"SimpleObject",propertyConstraint:{props:["type","label","properties"]}}},"@biblatex/entries+list":{parse:o.parse,parseType:{elementConstraint:"@biblatex/entry+object"}},"@bibtex/text":{parse:r.parse,outputs:"@bibtex/entries+list"},"@bibtex/entry+object":{parse:e=>(0,o.parseBibtex)([e])},"@bibtex/entries+list":{parse:o.parseBibtex},"@bibtxt/text":{parse:i.parse,parseType:{dataType:"String",predicate:/^\s*(\[(?!\s*[{[]).*?\]\s*(\n\s*[^[]((?!:)\S)+\s*:\s*.+?\s*)*\s*)+$/}}};t.qy=a},5012:(e,t)=>{"use strict";function n(e){if(0===e.length)return;let t="";for(;e.length>1;){const{value:n,hyphenated:r}=e.shift();t+=n+(r?"-":" ")}const n=t+e[0].value;return n[0]&&n}function r(e){const t=[],r=[];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])for(;e.length>1&&!1!==e[0].upperCase;){for(t.push(...r),r.length=0;e.length>1&&!1!==e[0].upperCase&&!e[0].hyphenated;)t.push(e.shift());for(;e.length>0&&!1!==e[0].upperCase&&e[0].hyphenated;)r.push(e.shift())}const i=[],o=[];for(;e.length>1;){for(i.push(...o),o.length=0;e.length>1&&!1===e[0].upperCase;)i.push(e.shift());for(;e.length>0&&!1!==e[0].upperCase;)o.push(e.shift())}return r.length&&o.unshift(...r),e.length&&o.push(e[0]),[n(t),n(i),n(o)]}Object.defineProperty(t,"__esModule",{value:!0}),t.formatNameParts=n,t.getStringCase=function(e){const t=e.toUpperCase(),n=e.toLowerCase();for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=a.fieldTypes[t]||[];return b.parse(m.reset(e,{state:_(r),line:0,col:0}),function(e,t){if("name"===e[1])return"list"===e[0]?"StringNames":"Name";if("title"===e[1]){const e=o.default.parse.sentenceCase;return"always"===e||"english"===e&&function(e){if(Array.isArray(e))return e.every(y);return y(e)}(t)?"StringTitleCase":"String"}switch("field"===e[0]?e[1]:e[0]){case"list":return"StringList";case"separated":return"StringSeparated";case"verbatim":return"StringVerbatim";case"uri":return"StringUri";default:return"String"}}(r,n))},t.valueGrammar=void 0;var r=n(8660),i=c(n(3240)),o=c(n(1364)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(2188)),s=n(5012);function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;th[e],value:e=>e.slice(1).trim()},lbrace:{match:"{",push:"bracedLiteral"},mathShift:{match:"$",push:"mathLiteral"},whitespace:{match:/[\s]+|~/,lineBreaks:!0,value:e=>"~"===e?"\xa0":" "}},m=i.default.states({stringLiteral:d(d({},f),{},{text:/[^{$}\s~\\]+/}),namesLiteral:d(d({and:/\s+and\s+/,comma:",",hyphen:"-",equals:"="},f),{},{text:/[^{$}\s~\\,=-]+/}),listLiteral:d(d({and:/\s+and\s+/},f),{},{text:/[^{$}\s~\\]+/}),separatedLiteral:d(d({comma:","},f),{},{text:/[^{$}\s~\\,]+/}),bracedLiteral:d(d({},f),{},{rbrace:{match:"}",pop:!0},text:/[^{$}\s~\\]+/}),mathLiteral:d(d({},f),{},{mathShift:{match:"$",pop:!0},script:/[\^_]/,text:/[^{$}\s~\\^_]+/})});function g(e){return e[0],e}function v(e,t){return t in a.formatting?e&&a.formatting[t].join(e):e}const b=new r.util.Grammar({String(){let e="";for(;!this.matchEndOfFile();)e+=this.consumeRule("Text");return g(e)},StringNames(){const e=[];for(;;){if(this.consumeToken("whitespace",!0),e.push(this.consumeRule("Name")),this.consumeToken("whitespace",!0),this.matchEndOfFile())return e;this.consumeToken("and")}},Name(){const e=[];for(;;){if(e.push(this.consumeRule("NamePiece")),this.matchEndOfFile()||this.matchToken("and"))return(0,s.orderNamePieces)(e);this.consumeToken("comma"),this.consumeToken("whitespace",!0)}},NamePiece(){const e=[];for(;;){const t=this.consumeRule("NameToken");if(t.label)return t.label=(0,s.formatNameParts)([...e,{value:t.label}]),[t];if(e.push(t),this.matchEndOfFile()||this.matchToken("and")||this.matchToken("comma"))return e;for(;this.matchToken("hyphen")||this.matchToken("whitespace");)this.consumeToken()}},NameToken(){let e=null,t="";for(;;)if(null===e&&this.matchToken("text")){const n=this.consumeToken().value;t+=n,e=(0,s.getStringCase)(n)}else{if(this.matchEndOfFile()||this.matchToken("and")||this.matchToken("comma")||this.matchToken("whitespace"))return{value:t,upperCase:e};if(this.matchToken("hyphen"))return{value:t,upperCase:e,hyphenated:!0};if(this.matchToken("equals")){this.consumeToken("equals");const e=this.consumeRule("NamePiece");return e[0].label&&(t+="="+e[0].label),{value:(0,s.formatNameParts)(e),label:t}}t+=this.consumeRule("Text")}},StringList(){const e=[];for(;!this.matchEndOfFile();){let t="";for(;!this.matchEndOfFile()&&!this.matchToken("and");)t+=this.consumeRule("Text");e.push(g(t)),this.consumeToken("and",!0)}return 1===e.length?e[0]:e},StringSeparated(){const e=[];for(;!this.matchEndOfFile();){let t="";for(;!this.matchEndOfFile()&&!this.matchToken("comma");)t+=this.consumeRule("Text");e.push(t.trim()),this.consumeToken("comma",!0),this.consumeToken("whitespace",!0)}return e},StringVerbatim(){let e="";for(;!this.matchEndOfFile();)e+=this.consumeToken().text;return g(e)},StringUri(){const e=this.consumeRule("StringVerbatim");try{return decodeURI(e)===e?encodeURI(e):e}catch(t){return encodeURI(e)}},StringTitleCase(){this.state.sentenceCase=!0;let e="";for(;!this.matchEndOfFile();)e+=this.consumeRule("Text");return g(e)},BracketString(){var e;let t="";this.consumeToken("lbrace");const n=this.state.sentenceCase;for(this.state.sentenceCase=n&&this.matchToken("command"),(e=this.state).partlyLowercase&&(e.partlyLowercase=this.state.sentenceCase);!this.matchToken("rbrace");)t+=this.consumeRule("Text");const r=n&&!this.state.sentenceCase&&this.state.partlyLowercase;return this.state.sentenceCase=n,this.consumeToken("rbrace"),r?v(t,"nocase"):t},MathString(){let e="";for(this.consumeToken("mathShift");!this.matchToken("mathShift");)if(this.matchToken("script")){const t=this.consumeToken("script").value,n=this.consumeRule("Text").split("");if(n.every((e=>e in a.mathScripts[t])))e+=n.map((e=>a.mathScripts[t][e])).join("");else{const r=a.mathScriptFormatting[t];e+=a.formatting[r].join(n.join(""))}}else{if(this.matchToken("command")){const t=this.token.value;if(t in a.mathScriptFormatting){this.consumeToken("command");e+=v(this.consumeRule("BracketString"),a.mathScriptFormatting[t]);continue}}e+=this.consumeRule("Text")}return this.consumeToken("mathShift"),e},Text(){if(this.matchToken("lbrace"))return this.consumeRule("BracketString");if(this.matchToken("mathShift"))return this.consumeRule("MathString");if(this.matchToken("whitespace"))return this.consumeToken("whitespace").value;if(this.matchToken("commandBegin"))return this.consumeRule("EnclosedEnv");if(this.matchToken("command"))return this.consumeRule("Command");const e=this.consumeToken("text").value.replace(a.ligaturePattern,(e=>a.ligatures[e])),t=this.state.afterPunctuation;var n;if(this.state.afterPunctuation=/[?!.:]$/.test(e),!this.state.sentenceCase)return(n=this.state).partlyLowercase||(n.partlyLowercase=e===e.toLowerCase()&&e!==e.toUpperCase()),e;const[r,...i]=e,o=i.join(""),s=o.toLowerCase();return o!==s?e:t?r+s:e.toLowerCase()},Command(){const e=this.consumeToken("command"),t=e.value;if(t in a.formattingEnvs){return v(this.consumeRule("Env"),a.formattingEnvs[t])}if(t in a.formattingCommands){return v(this.consumeRule("BracketString"),a.formattingCommands[t])}if(t in a.commands)return a.commands[t];if(t in a.diacritics&&!this.matchEndOfFile()){const e=this.consumeRule("Text");return(e[0]+a.diacritics[t]).normalize("NFC")+e.slice(1)}if(t in a.argumentCommands){const e=a.argumentCommands[t],n=[];let r=e.length;for(;r-- >0;)this.consumeToken("whitespace",!0),n.push(this.consumeRule("BracketString"));return e(...n)}return/^[&%$#_{}]$/.test(t)?e.text.slice(1):e.text},Env(){let e="";for(;!this.matchEndOfFile()&&!this.matchToken("rbrace");)e+=this.consumeRule("Text");return e},EnclosedEnv(){this.consumeToken("commandBegin");const e=this.consumeRule("BracketString");let t="";for(;!this.matchToken("commandEnd");)t+=this.consumeRule("Text");const n=this.consumeToken("commandEnd"),r=this.consumeRule("BracketString");if(e!==r)throw new SyntaxError(this.lexer.formatError(n,'environment started with "'.concat(e,'", ended with "').concat(r,'"')));return v(t,a.formattingEnvs[e])}},{sentenceCase:!1,partlyLowercase:!1,afterPunctuation:!0});function y(e){return a.sentenceCaseLanguages.includes(e.toLowerCase())}function _(e){if("name"===e[1])return"namesLiteral";switch(e[0]){case"list":return"listLiteral";case"separated":return"separatedLiteral";default:return"stringLiteral"}}t.valueGrammar=b},9264:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(8660),o=n(1732),a=(r=n(480))&&r.__esModule?r:{default:r},s=n(448);const l=[{source:"note",target:"accessed",when:{source:!1,target:{note:!1}},convert:{toSource:e=>"[Online; accessed ".concat((0,o.format)(e),"]")}},{source:"numpages",target:"number-of-pages",when:{source:{pagetotal:!1},target:!1}},{source:"pmid",target:"PMID",when:{source:{eprinttype:e=>"pmid"!==e,archiveprefix:e=>"pmid"!==e},target:!1}},{source:"pmcid",target:"PMCID",when:{target:!1}}],c=[{source:"annote",target:"annote",when:{source:{annotation:!1},target:!1}},{source:"address",target:"publisher-place",convert:s.Converters.PICK,when:{source:{location:!1},target:!1}},{source:["eprint","archiveprefix"],target:"PMID",convert:s.Converters.EPRINT,when:{source:{eprinttype:!1},target:!1}},{source:"journal",target:"container-title",when:{source:{maintitle:!1,booktitle:!1,journaltitle:!1},target:!1}},{source:"school",target:"publisher",convert:s.Converters.PICK,when:{source:{institution:!1,organization:!1,publisher:!1},target:!1}}];var u=new i.util.Translator([...c,...l,{source:"abstract",target:"abstract"},{source:"urldate",target:"accessed",convert:s.Converters.DATE},{source:"annotation",target:"annote"},{source:"author",target:"author",convert:s.Converters.NAMES},{source:"library",target:"call-number"},{source:"chapter",target:"chapter-number"},{source:"bookauthor",target:"container-author",convert:s.Converters.NAMES},{source:["maintitle","mainsubtitle","maintitleaddon"],target:"container-title",when:{source:!0,target:{"number-of-volumes":!0}},convert:s.Converters.TITLE},{source:["booktitle","booksubtitle","booktitleaddon"],target:"container-title",when:{source:{maintitle:!1},target:{"number-of-volumes":!1,type:e=>!e.startsWith("article")}},convert:s.Converters.TITLE},{source:["journaltitle","journalsubtitle","journaltitleaddon"],target:"container-title",when:{source:{[s.TYPE]:"article"},target:{type:["article","article-newspaper","article-journal","article-magazine"]}},convert:s.Converters.TITLE},{source:"shortjournal",target:"container-title-short",when:{source:{[s.TYPE]:"article"},target:{type:["article","article-newspaper","article-journal","article-magazine"]}}},{source:"shortjournal",target:"journalAbbreviation",when:{source:!1,target:{"container-title-short":!1}}},{source:"number",target:"collection-number",when:{source:{[s.TYPE]:["book","mvbook","inbook","bookinbook","suppbook","collection","mvcollection","incollection","suppcollection","manual","suppperiodical","proceedings","mvproceedings","refererence"]},target:{type:["bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legislation","legal_case","manuscript","map","motion_picture","musical_score","pamphlet","post","post-weblog","personal_communication","review","review-book","song","speech","thesis","treaty","webpage"]}}},{source:"series",target:"collection-title"},{source:"shortseries",target:"collection-title-short"},{source:"doi",target:"DOI"},{source:"edition",target:"edition"},{source:"editor",target:"editor",convert:s.Converters.NAMES},{source:[s.TYPE,"entrysubtype","type"],target:["type","genre"],convert:{toTarget:(e,t,n)=>(n||("masterthesis"===e&&(n="mathesis"),"phdthesis"===e&&(n="phdthesis"),"techreport"===e&&(n="techreport")),[a.default.source[e]||"book",n||t]),toSource(e,t){const n=a.default.target[e]||"misc";return t in s.TYPE_KEYS?[n,void 0,t]:[n,t]}}},{source:s.TYPE,when:{target:{type:!1}},convert:{toSource:()=>"misc"}},{source:"eventdate",target:"event-date",convert:s.Converters.DATE},{source:"venue",target:"event-place"},{source:"eventtitle",target:"event"},{source:s.LABEL,target:["id","citation-label","author","issued","year-suffix","title"],convert:s.Converters.LABEL},{source:"isbn",target:"ISBN"},{source:"issn",target:"ISSN"},{source:"issue",target:"issue",when:{source:{number:!1,[s.TYPE]:["article","periodical"]},target:{issue:e=>"string"===typeof e&&!e.match(/\d+/),type:["article","article-journal","article-newspaper","article-magazine"]}}},{source:"number",target:"issue",when:{source:{[s.TYPE]:["article","periodical","inproceedings"]},target:{issue:e=>e&&("number"===typeof e||e.match(/\d+/)),type:["article","article-journal","article-newspaper","article-magazine","paper-conference"]}}},{source:"date",target:"issued",convert:s.Converters.DATE},{source:["year","month","day"],target:"issued",convert:s.Converters.YEAR_MONTH,when:{source:{date:!1},target:!1}},{source:"location",target:"jurisdiction",when:{source:{type:"patent"},target:{type:"patent"}}},{source:"keywords",target:"keyword",convert:s.Converters.KEYWORDS},{source:"language",target:"language",convert:s.Converters.PICK},{source:"note",target:"note"},{source:["isan","ismn","isrn","iswc"],target:"number",convert:s.Converters.STANDARD_NUMBERS,when:{source:{[s.TYPE]:e=>"patent"!==e},target:{type:e=>"patent"!==e}}},{source:"number",target:"number",when:{source:{[s.TYPE]:["patent","report","techreport","legislation"]},target:{type:["patent","report","legislation"]}}},{source:"origdate",target:"original-date",convert:s.Converters.DATE},{source:"origlocation",target:"original-publisher-place",convert:s.Converters.PICK},{source:"origpublisher",target:"original-publisher",convert:s.Converters.PICK},{source:"origtitle",target:"original-title"},{source:["pages","eid"],target:"page",convert:{toTarget:(e,t)=>t?t.replace(/^e?/i,"e"):e.replace(/[\u2013\u2014]/,"-"),toSource:e=>/^e/i.test(e)?[e,e]:[e.replace("-","--")]}},{source:"pagetotal",target:"number-of-pages"},{source:["eprint","eprinttype"],target:"PMID",convert:s.Converters.EPRINT},{source:"location",target:"publisher-place",convert:s.Converters.PICK},{source:"publisher",target:"publisher",convert:s.Converters.PICK,when:{source:!0,target:{type:["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","regulation","review","review-book","song","speech","treaty"]}}},{source:"organization",target:"publisher",convert:s.Converters.PICK,when:{source:{publisher:!1},target:{type:"webpage"}}},{source:"institution",target:"publisher",convert:s.Converters.PICK,when:{source:{publisher:!1,organization:!1},target:{type:["report","thesis"]}}},{source:"howpublished",target:"publisher",convert:s.Converters.PICK,when:{source:{publisher:!1,organization:!1,institution:!1},target:{type:"manuscript"}}},{source:["pages","bookpagination"],target:"section",when:{source:{bookpagination:"section"},target:{page:!1}},convert:{toTarget:e=>e,toSource:e=>[e,"section"]}},{source:"pubstate",target:"status",convert:s.Converters.STATUS},{source:"shorttitle",target:"title-short"},{source:["title","subtitle","titleaddon"],target:"title",convert:s.Converters.TITLE},{source:"translator",target:"translator",convert:s.Converters.NAMES},{source:"url",target:"URL"},{source:"howpublished",target:"URL",convert:s.Converters.HOW_PUBLISHED,when:{source:{url:!1},target:!1}},{source:"version",target:"version"},{source:"volume",target:"volume"},{source:"volumes",target:"number-of-volumes"}]);t.default=u},5928:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(8660),o=n(1732),a=(r=n(9776))&&r.__esModule?r:{default:r},s=n(448);var l=new i.util.Translator([{source:"note",target:"accessed",when:{source:!1,target:{note:!1}},convert:{toSource:e=>"[Online; accessed ".concat((0,o.format)(e),"]")}},{source:"annote",target:"annote"},{source:"address",target:"publisher-place",convert:s.Converters.PICK},{source:"author",target:"author",convert:s.Converters.NAMES},{source:"chapter",target:"chapter-number"},{source:"number",target:"collection-number",when:{source:{[s.TYPE]:["book","mvbook","inbook","collection","mvcollection","incollection","suppcollection","manual","suppperiodical","proceedings","mvproceedings","refererence"]},target:{type:["bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legislation","legal_case","manuscript","map","motion_picture","musical_score","pamphlet","post","post-weblog","personal_communication","review","review-book","song","speech","thesis","treaty","webpage"]}}},{source:"series",target:"collection-title"},{source:"booktitle",target:"container-title",when:{target:{type:["chapter","paper-conference"]}}},{source:"journal",target:"container-title",when:{source:{[s.TYPE]:"article"},target:{type:["article","article-newspaper","article-journal","article-magazine"]}}},{source:"edition",target:"edition"},{source:"editor",target:"editor",convert:s.Converters.NAMES},{source:s.LABEL,target:["id","citation-label","author","issued","year-suffix","title"],convert:s.Converters.LABEL},{source:"number",target:"issue",when:{source:{[s.TYPE]:["article","periodical","inproceedings"]},target:{issue:e=>"number"===typeof e||"string"===typeof e&&e.match(/\d+/),type:["article","article-journal","article-newspaper","article-magazine","paper-conference"]}}},{source:["year","month","day"],target:"issued",convert:s.Converters.YEAR_MONTH},{source:"note",target:"note"},{source:"number",target:"number",when:{source:{[s.TYPE]:["patent","report","techreport"]},target:{type:["patent","report"]}}},{source:"pages",target:"page",convert:{toTarget:e=>e.replace(/[\u2013\u2014]/,"-"),toSource:e=>e.replace("-","--")}},{source:"publisher",target:"publisher",convert:s.Converters.PICK,when:{target:{type:["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","map","motion_picture","musical_score","pamphlet","patent","personal_communication","post","post-weblog","review","review-book","song","speech","treaty","webpage"]}}},{source:"organization",target:"publisher",convert:s.Converters.PICK,when:{source:{publisher:!1},target:{type:"paper-conference"}}},{source:"institution",target:"publisher",convert:s.Converters.PICK,when:{source:{publisher:!1,organization:!1},target:{type:"report"}}},{source:"school",target:"publisher",convert:s.Converters.PICK,when:{source:{institution:!1,organization:!1,publisher:!1},target:{type:"thesis"}}},{source:"howpublished",target:"publisher",convert:s.Converters.PICK,when:{source:{publisher:!1,organization:!1,institution:!1,school:!1},target:{type:"manuscript"}}},{source:"title",target:"title"},{source:[s.TYPE,"type"],target:["type","genre"],convert:{toTarget(e,t){const n=a.default.source[e]||"book";return t?[n,t]:"mastersthesis"===e?[n,"Master's thesis"]:"phdthesis"===e?[n,"PhD thesis"]:[n]},toSource(e,t){const n=a.default.target[e]||"misc";return/^(master'?s|diploma) thesis$/i.test(t)?["mastersthesis"]:/^(phd|doctoral) thesis$/i.test(t)?["phdthesis"]:[n,t]}}},{source:s.TYPE,when:{target:{type:!1}},convert:{toSource:()=>"misc"}},{source:"howpublished",target:"URL",convert:s.Converters.HOW_PUBLISHED,when:{target:{publisher:!1}}},{source:"volume",target:"volume"}]);t.default=l},3272:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.format=function(e){return h(e,i.default)},t.formatBibtex=function(e){return h(e,o.default)},t.parse=function(e){return p(e,i.default)},t.parseBibtex=function(e){return p(e,o.default)};var r=n(448),i=a(n(9264)),o=a(n(5928));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(e.crossref in t){const n=t[e.crossref].properties;return n===e?e:Object.assign({},d(n,t),e)}return e}function p(e,t){const n={};for(const r of e)n[r.label]=r;return e.map((e=>{let{type:i,label:o,properties:a}=e;return t.convertToTarget(function(e){for(var t=1;t{const n=t.convertToSource(e),{[r.TYPE]:i,[r.LABEL]:o}=n;return{type:i,label:o,properties:s(n,[r.TYPE,r.LABEL].map(l))}}))}},448:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TYPE_KEYS=t.TYPE=t.STANDARD_NUMBERS_PATTERN=t.MONTHS=t.LABEL=t.Converters=void 0,t.formatLabel=g,t.parseDate=f,t.parseMonth=m;var r,i=n(8660),o=(r=n(1364))&&r.__esModule?r:{default:r};const a=new Set(["the","a","an"]),s=/(?:<\/?.*?>|[\u0020-\u002F\u003A-\u0040\u005B-\u005E\u0060\u007B-\u007F])+/g,l=/[^\u0020-\u007F]+/g;function c(e){return e?e.normalize("NFKD").replace(l,"").split(s).find((e=>e.length&&!a.has(e.toLowerCase()))):""}const u=new i.util.Translator([{source:"given",target:"given"},{source:"family",target:"family"},{source:"suffix",target:"suffix"},{source:"prefix",target:"non-dropping-particle"},{source:"family",target:"literal",when:{source:!1,target:{family:!1,given:!1}}}]),d=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"];t.TYPE="BibTeX type";t.LABEL="BibTeX label";const p={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12,january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12};t.MONTHS=p;t.TYPE_KEYS={bathesis:"Bachelor's thesis",mathesis:"Master's thesis",phdthesis:"PhD thesis",candthesis:"Candidate thesis",techreport:"technical report",resreport:"research report",software:"computer software",datacd:"data cd",audiocd:"audio cd",patent:"patent",patentde:"German patent",patenteu:"European patent",patentfr:"French patent",patentuk:"British patent",patentus:"U.S. patent",patreq:"patent request",patreqde:"German patent request",patreqeu:"European patent request",patreqfr:"French patent request",patrequk:"British patent request",patrequs:"U.S. patent request"};const h=/(^(?:ISAN )?(?:[0-9a-f]{4}-){4}[0-9a-z](?:-(?:[0-9a-f]{4}-){2}[0-9a-z])?$)|(^(?:979-?0-?|M-?)(?:\d{9}|(?=[\d-]{11}$)\d+-\d+-\d)$)|(^ISRN .{1,36}$)|(^(?:ISWC )?T-?\d{9}-?\d$)/i;function f(e){const t=e.split("T")[0].replace(/[?~%]$/,"").split("-"),n=+t[0].replace(/^Y(?=-?\d{4}\d+)/,"").replace(/X/g,"0"),r=+t[1],i=+t[2];return!r||r>20?[n]:i?[n,r,i]:[n,r]}function m(e){if(null==e)return[];if(+e)return[parseInt(e,10)];if((e=e.trim().toLowerCase())in p)return[p[e]];const t=e.split(/\s+/);let n,r;return t[0]in p?(n=p[t[0]],r=parseInt(t[1])):t[1]in p&&(n=p[t[1]],r=parseInt(t[0])),r?[n,r]:n?[n]:[]}function g(e,t,n,r){let i="";return e&&e[0]&&(i+=c(e[0].family||e[0].literal)),t&&t["date-parts"]&&t["date-parts"][0]&&(i+=t["date-parts"][0][0]),n?i+=n:r&&(i+=c(r)),i}t.STANDARD_NUMBERS_PATTERN=h;const v={PICK:{toTarget(){for(var e=arguments.length,t=new Array(e),n=0;n[e]},DATE:{toTarget(e){const t=e.split("/").map((e=>e&&".."!==e?f(e):void 0));return isNaN(t[0][0])?{literal:e}:{"date-parts":t}},toSource(e){if("date-parts"in e)return e["date-parts"].map((e=>e.map((e=>e.toString().padStart(2,"0"))).join("-"))).join("/")}},YEAR_MONTH:{toTarget:(e,t,n)=>isNaN(+e)?{literal:e}:isNaN(+n)||isNaN(+t)?{"date-parts":[[+e,...m(t)]]}:{"date-parts":[[+e,+t,+n]]},toSource(e){if("date-parts"in e){const[t,n,r]=e["date-parts"][0];return[t.toString(),n?r?"".concat(d[n-1]," ").concat(r):n:void 0]}return[]}},EPRINT:{toTarget(e,t){if("pubmed"===t)return e},toSource:e=>[e,"pubmed"]},HOW_PUBLISHED:{toTarget(e){if(e.startsWith("http"))return e}},KEYWORDS:{toTarget:e=>e.join(","),toSource:e=>e.split(",")},LABEL:{toTarget:e=>[e,e],toSource(e,t,n,r,i,a){let l;return l=null===e?"null":void 0===e?"undefined":e.toString().replace(s,""),o.default.format.useIdAsLabel?l:t&&!s.test(t)?t:g(n,r,i,a)||l}},NAMES:{toTarget:e=>e.map(u.convertToTarget),toSource:e=>e.map(u.convertToSource)},STANDARD_NUMBERS:{toTarget(){for(var e=arguments.length,t=new Array(e),n=0;n(t&&(e+=": "+t),e),toSource:e=>[e]}};t.Converters=v},4248:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.format=function(e,t){const n=e.map((e=>function(e,t){let{type:n,label:r,properties:i}=e;const o=Object.entries(i).map((e=>{let[n,r]=e;return t.listItem.join("".concat(n," = {").concat(r,"},"))}));return t.entry.join("@".concat(n,"{").concat(r,",").concat(t.list.join(o.join("")),"}"))}(e,t))).join("");return t.bibliographyContainer.join(n)}},2683:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.format=function(e,t){const n=e.map((e=>function(e,t){let{type:n,label:r,properties:i}=e;const o=Object.entries(i).concat([["type",n]]).map((e=>{let[n,r]=e;return t.listItem.join("".concat(n,": ").concat(r))}));return t.entry.join("[".concat(r,"]").concat(t.list.join(o.join(""))))}(e,t))).join("\n");return t.bibliographyContainer.join(n)}},5480:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.format=function(e){return(0,r.format)(e).map(o)},t.formatBibtex=function(e){return(0,r.formatBibtex)(e).map(o)};var r=n(3272),i=n(6720);function o(e){let{type:t,label:n,properties:r}=e;const o={};for(const a in r){const e=r[a];o[a]=(0,i.format)(a,e)}return{type:t,label:n,properties:o}}},3384:(e,t,n)=>{"use strict";t.c=void 0;var r=n(8660),i=n(5480),o=n(4248),a=n(2683);const s=function(e,t){return function(n){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:o,format:a=o||"text"}=i;if(n=e(n),"object"===a)return n;if(r.plugins.dict.has(a))return t(n,r.plugins.dict.get(a),i);throw new RangeError('Output dictionary "'.concat(a,'" not available'))}};var l={bibtex:s(i.formatBibtex,o.format),biblatex:s(i.format,o.format),bibtxt:s(i.formatBibtex,a.format)};t.c=l},6720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.format=function(e,t){if(!(e in r.fieldTypes))return d(t,"verbatim");const[n,i]=r.fieldTypes[e];return n in s?function(e,t,n){const r=s[n];return e.map((e=>{const n=d(e,t);return n.includes(r)?"{".concat(n,"}"):n})).join(r)}(t,i,n):d(t,i)};var r=n(2188);const i={};for(const p in r.commands)i[r.commands[p]]=p;for(const p in r.diacritics)i[r.diacritics[p]]=p;for(const p in r.ligatures)i[r.ligatures[p]]=p;const o=/[^a-zA-Z0-9\s!"#%&'()*+,\-./:;=?@[\]{}\u0300-\u0308\u030a-\u030c\u0332\u0323\u0327\u0328\u0361\u0326]/g,a=/.[\u0300-\u0308\u030a-\u030c\u0332\u0323\u0327\u0328\u0361\u0326]+/g,s={separated:",",list:" and "},l={i:"\\textit{",b:"\\textbf{",sc:"\\textsc{",sup:"\\textsuperscript{",sub:"\\textsubscript{",'span style="font-variant:small-caps;"':"\\textsc{",'span class="nocase"':"{"};function c(e){return e.normalize("NFKD").replace(o,(e=>e in i?i[e]in r.ligatures?i[e]:"\\".concat(i[e],"{}"):"")).replace(a,(e=>Array.from(e).reduce(((e,t)=>"{\\".concat(i[t]," ").concat(e,"}")))))}function u(e){const t=[];let n=e.split(/<(\/?(?:i|b|sc|sup|sub|span)|span .*?)>/g);return n=n.map(((e,n)=>n%2===0?c(e):e in l?(t.push("/"+e.split(" ")[0]),l[e]):e===t[t.length-1]?(t.pop(),"}"):"")),n.join("")}function d(e,t){switch(t){case"title":return u(e).split(/(:\s*)/).map(((e,t)=>t%2?e:e.replace(/(?!^)\b[a-z]*[A-Z].*?\b/g,"{$&}"))).join("");case"literal":return u(e.toString());case"name":return function(e){if(e.family&&!e.prefix&&!e.given&!e.suffix)return e.family.includes(s.list)?e.family:"{".concat(e.family,"}");const t=[""];return e.prefix&&e.family&&(t[0]+=e.prefix+" "),e.family&&(t[0]+=e.family),e.suffix?(t.push(e.suffix),t.push(e.given||"")):t.push(e.given),c(t.join(", ").trim())}(e);case"verbatim":case"uri":return e.toString();default:return c(e.toString())}}},1732:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"format",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return r.default}});var r=o(n(7764)),i=o(n(2348));function o(e){return e&&e.__esModule?e:{default:e}}},7764:(e,t)=>{"use strict";function n(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)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(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.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n+e<0)))return null;r=+n[0]<0||+n[0]>+n[1]&&+n[1]>0?n.pop():n.shift()}return[n.pop(),r]}return null}(e)||function(e){if("string"!==typeof e)return null;const t=e.match(/^(\d+) ?(a\.?d\.?|b\.?c\.?)$/i);if(t){const e=n(t.slice(1),2);return[e[0]*("a"===e[1].toLowerCase()[0]?1:-1)]}return/^-?\d+$/.test(e)?[e]:null}(e);return t&&t.map((e=>parseInt(e)))}var d=function(e,t){const n=[],r="string"===typeof e&&function(e){return a.test(e)?e.match(a).slice(1,3):e.split(o)}(e);t?n.push(e,t):r&&2===r.length?n.push(...r):n.push(e);const i=n.map(u);return i.filter(Boolean).length===n.length?{"date-parts":i}:{raw:t?n.join("/"):e}};t.default=d},2348:(e,t)=>{"use strict";function n(e,t,n){if(e.length>=t)return e;for(;e.length1&&void 0!==arguments[1]?arguments[1]:"-";if(!e["date-parts"])return e.raw;const r=e["date-parts"][0].map((e=>e.toString()));switch(r.length){case 3:r[2]=n(r[2],2,"0");case 2:r[1]=n(r[1],2,"0");case 1:r[0]=n(r[0],4,"0")}return r.join(t)};t.default=r},572:(e,t,n)=>{"use strict";n.r(t);var r=n(8660);const i=JSON.parse('{"en-US":"This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License2015-10-10T23:31:02+00:00accessedandand othersanonymousanon.atavailable atbycircac.citededitioneditionsed.et al.forthcomingfromibid.inin pressinternetinterviewletterno daten.d.onlinepresented at thereferencereferencesref.refs.retrievedscaleversionADBC\u201c\u201d\u2018\u2019\u2013thstndrdthththfirstsecondthirdfourthfifthsixthseventheighthninthtenthbookbookschapterchapterscolumncolumnsfigurefiguresfoliofoliosnumbernumberslinelinesnotenotesopusoperapagepagespagepagesparagraphparagraphspartpartssectionsectionssub verbosub verbisverseverses\\nvolumevolumesbk.bks.chap.chaps.col.cols.fig.figs.fol.fols.no.nos.l.ll.n.nn.op.opp.p.pp.p.pp.para.paras.pt.pts.sec.secs.s.v.s.vv.v.vv.vol.vols.\xb6\xb6\xb6\xa7\xa7\xa7directordirectorseditoreditorseditoreditorsillustratorillustratorstranslatortranslatorseditor & translatoreditors & translatorsdir.dirs.ed.eds.ed.eds.ill.ills.tran.trans.ed. & tran.eds. & trans.bydirected byedited byedited byillustrated byinterview bytobytranslated byedited & translated bydir. byed. byed. byillus. bytrans. byed. & trans. byJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptember\\nOctoberNovemberDecemberJan.Feb.Mar.Apr.MayJun.Jul.Aug.Sep.Oct.Nov.Dec.SpringSummerAutumnWinter","nl-NL":"Rintze Zellehttp://twitter.com/rintzezelleThis work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License2012-07-04T23:31:02+00:00geraadpleegdenen anderenanoniemanon.bijbeschikbaar opdoorcircac.geciteerdeditieeditiesed.e.a.in voorbereidingvanibid.inin drukinternetinterviewbriefzonder datumz.d.onlinegepresenteerd bijreferentiereferentiesref.refs.geraadpleegdschaalversieADBC\u201c\u201d\u2018\u2019\u2013stededededededededededededededededededeeerstetweedederdevierdevijfdezesdezevendeachtstenegendetiendeboekboekenhoofdstukhoofdstukkencolumncolumnsfiguurfigurenfoliofolio\'snummernummersregelregels\\naantekeningaantekeningenopusoperapaginapagina\'spaginapagina\'sparagraafparagrafendeeldelensectiesectiessub verbosub verbisversversenvolumevolumesbk.hfdst.col.fig.f.nr.l.n.op.p.pp.p.pp.par.deelsec.s.v.s.vv.v.vv.vol.vols.\xb6\xb6\xb6\xa7\xa7\xa7regisseurregisseursredacteurredacteurenredacteurredacteurenillustratorillustratorsvertalervertalersredacteur & vertalerredacteuren & vertalersreg.reg.red.red.red.red.ill.ill.vert.vert.red. & vert.red. & vert.doorgeregisseerd doorbewerkt doorbewerkt doorge\xefllustreerd doorge\xefnterviewd doorontvangen doordoorvertaald doorbewerkt & vertaald doorgeregisseerd doorbewerkt doorbewerkt doorge\xefllustreerd doorvertaald doorbewerkt & vertaald door\\njanuarifebruarimaartaprilmeijunijuliaugustusseptemberoktobernovemberdecemberjan.feb.mrt.apr.meijun.jul.aug.sep.okt.nov.dec.lentezomerherstwinter","fr-FR":"Gr\xe9goire CollyThis work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License2012-07-04T23:31:02+00:00consult\xe9 leetet autresanonymeanon.surdisponible surparversv.cit\xe9\xe9dition\xe9ditions\xe9d.et al.\xe0 para\xeetre\xe0 l\'adresseibid.insous presseInternetentretienlettresans dates. d.en lignepr\xe9sent\xe9 \xe0r\xe9f\xe9rencer\xe9f\xe9rencesr\xe9f.r\xe9f.consult\xe9\xe9chelleversionapr. J.-C.av. J.-C.\xab  \xbb\u201c\u201d\u1d49\u02b3\u1d49\u1d49\u02b3premierdeuxi\xe8metroisi\xe8mequatri\xe8mecinqui\xe8mesixi\xe8mesepti\xe8mehuiti\xe8meneuvi\xe8medixi\xe8melivrelivreschapitrechapitrescolonnecolonnesfigurefiguresfoliofoliosnum\xe9ronum\xe9roslignelignesnotenotesopusopuspagepagespagepagesparagrapheparagraphespartiepartiessectionsections\\nsub verbosub verbisversetversetsvolumevolumesliv.chap.col.fig.f\u1d52f\u1d52\u02e2n\u1d52n\u1d52\u02e2l.n.op.p.p.p.p.paragr.part.sect.s. v.s. vv.v.v.vol.vol.\xa7\xa7\xa7\xa7r\xe9alisateurr\xe9alisateurs\xe9diteur\xe9diteursdirecteurdirecteursillustrateurillustrateurstraducteurtraducteurs\xe9diteur et traducteur\xe9diteurs et traducteursr\xe9al.r\xe9al.\xe9d.\xe9d.dir.dir.ill.ill.trad.trad.\xe9d. et trad.\xe9d. et trad.parr\xe9alis\xe9 par\xe9dit\xe9 parsous la direction deillustr\xe9 parentretien r\xe9alis\xe9 par\xe0partraduit par\xe9dit\xe9 et traduit parr\xe9al. par\xe9d. parss la dir. deill. partrad. par\xe9d. et trad. parjanvierf\xe9vriermarsavrilmaijuinjuilletao\xfbtseptembre\\noctobrenovembred\xe9cembrejanv.f\xe9vr.marsavr.maijuinjuill.ao\xfbtsept.oct.nov.d\xe9c.printemps\xe9t\xe9automnehiver","de-DE":"This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License2012-07-04T23:31:02+00:00zugegriffenundund andereohne Autoro. A.aufverf\xfcgbar untervoncircaca.zitiertAuflageAuflagenAufl.u. a.i. E.vonebd.inim DruckInternetInterviewBriefohne Datumo. J.onlinegehalten auf derReferenzReferenzenRef.Ref.abgerufenMa\xdfstabVersionn. Chr.v. Chr.\u201e\u201c\u201a\u2018\u2013.ersterzweiterdrittervierterf\xfcnftersechstersiebterachterneunterzehnterBuchB\xfccherKapitelKapitelSpalteSpaltenAbbildungAbbildungenBlattBl\xe4tterNummerNummernZeileZeilenNoteNotenOpusOperaSeiteSeitenSeiteSeitenAbsatzAbs\xe4tzeTeilTeileAbschnittAbschnittesub verbosub verbisVersVerseBandB\xe4ndeB.\\nKap.Sp.Abb.Fol.Nr.Z.N.op.S.S.S.S.Abs.TeilAbschn.s. v.s. vv.V.V.Bd.Bde.\xb6\xb6\xb6\xa7\xa7\xa7RegisseurRegisseureHerausgeberHerausgeberReihenherausgeberReihenherausgeberHerausgeberHerausgeberIllustratorIllustratoren\xdcbersetzer\xdcbersetzerHerausgeber & \xdcbersetzerHerausgeber & \xdcbersetzerReg.Reg.Hrsg.Hrsg.Hrsg.Hrsg.Hrsg.Hrsg.Ill.Ill.\xdcbers.\xdcbers.Hrsg. & \xdcbers.Hrsg. & \xdcbersvonRegie vonherausgegeben vonherausgegeben vonherausgegeben vonillustriert voninterviewt vonanvon\xfcbersetzt vonherausgegeben und \xfcbersetzt vonReg.hg. vonhg. vonhg. vonillus. von\xfcbers. vonhg. & \xfcbers. vonJanuarFebruarM\xe4rzAprilMaiJuniJuliAugustSeptemberOktoberNovemberDezemberJan.Feb.\\nM\xe4rzApr.MaiJuniJuliAug.Sep.Okt.Nov.Dez.Fr\xfchjahrSommerHerbstWinter","es-ES":"This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License2012-07-04T23:31:02+00:00accedidoyy otrosan\xf3nimoan\xf3n.endisponible endecircac.citadoedici\xf3nedicionesed.et al.previstoa partir deibid.enen imprentainternetentrevistacartasin fechas. f.en l\xedneapresentado enreferenciareferenciasref.refs.recuperadoescalaversi\xf3nd. C.a. C.\xab\xbb\u201c\u201d-.\xaaprimerasegundaterceracuartaquintasextas\xe9ptimaoctavanovenad\xe9cimalibrolibroscap\xedtulocap\xedtuloscolumnacolumnasfigurafigurasfoliofoliosn\xfameron\xfamerosl\xedneal\xedneasnotanotasopusoperap\xe1ginap\xe1ginasp\xe1ginap\xe1ginasp\xe1rrafop\xe1rrafospartepartessecci\xf3nseccionessub vocesub vocibusversoversosvolumenvol\xfameneslib.\\ncap.col.fig.f.n.\xbal.n.op.p.pp.p.pp.p\xe1rr.pt.sec.s. v.s. vv.v.vv.vol.vols.\xa7\xa7\xa7\xa7directordirectoreseditoreditoreseditoreditoresilustradorilustradorestraductortraductoreseditor y traductoreditores y traductoresdir.dirs.ed.eds.ed.eds.ilust.ilusts.trad.trads.ed. y trad.eds. y trads.dedirigido poreditado poreditado porilustrado porentrevistado poraportraducido poreditado y traducido pordir.ed.ed.ilust.trad.ed. y trad.enerofebreromarzoabrilmayojuniojulioagostoseptiembreoctubrenoviembrediciembreene.feb.mar.abr.mayjun.jul.ago.sep.oct.nov.\\ndic.primaveraveranooto\xf1oinvierno"}'),o=new r.util.Register(i),a=JSON.parse('{"apa":"","vancouver":"","harvard1":""}'),s=new r.util.Register(a);var l=n(3024),c=n.n(l);const u=Symbol.for("proxied"),d=function(e){const t=function(t,n){if(t.sys.wrapBibliographyEntry){const[e,r]=t.sys.wrapBibliographyEntry(this.system_id);n=[e,n,r].join("")}return e.call(this,t,n)};return t[u]=!0,t};for(const g in c().Output.Formats){const e=c().Output.Formats[g]["@bibliography/entry"];e&&!e[u]&&(c().Output.Formats[g]["@bibliography/entry"]=d(e))}function p(e){const t=e.replace("-","_");return o.has(e)?o.get(e):o.has(t)?o.get(t):void 0}const h={},f=function(e,t,n,r){if(!c().Output.Formats[r]||!c().Output.Formats[r]["@bibliography/entry"])throw new TypeError("Cannot find format '".concat(r,"'"));const i=e.reduce(((e,t)=>(e[t.id]=t,e)),{}),a=s.get(s.has(t)?t:"apa"),l=function(e,t,n,r,i){const o="".concat(e,"|").concat(t);let a;return h[o]instanceof c().Engine?(a=h[o],a.sys.retrieveItem=r,a.updateItems([])):a=h[o]=new(c().Engine)({retrieveLocale:i,retrieveItem:r},n,t,!0),a}(t,n=o.has(n)?n:"en-US",a,(function(e){if(Object.prototype.hasOwnProperty.call(i,e))return i[e];throw new Error("Cannot find entry with id '".concat(e,"'"))}),p);return l.setOutputFormat(r),l},m=(e,t)=>"function"===typeof t?t(e):t||"";r.plugins.add("@csl",{output:{bibliography:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{template:n="apa",lang:r="en-US",format:i="text",nosort:o=!1}=t,a=t.entry?[].concat(t.entry):e.map((e=>{let{id:t}=e;return t})),s=f(e,n,r,i),l=s.updateItems(a,o);if(t.append||t.prepend){const n=e.reduce(((e,t)=>(e[t.id]=t,e)),{});s.sys.wrapBibliographyEntry=function(e){const r=n[e];return[m(r,t.prepend),m(r,t.append)]}}else s.sys.wrapBibliographyEntry=()=>["",""];const c=s.makeBibliography(),[{bibstart:u,bibend:d},p]=c,h=p.map(((e,t)=>{return n=e,r=l[t],((e,t,n)=>e.replace(/^\s*<[a-z]+/i,"$& data-".concat(t,'="').concat(n,'"')))(n,"csl-entry-id",r);var n,r}));return t.asEntryArray?h.map(((e,t)=>[l[t],e])):u+h.join("")+d},citation:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{template:n="apa",lang:r="en-US",format:i="text"}=t,o=e.map((e=>{let{id:t}=e;return t})),a=t.entry?[].concat(t.entry):o,s=f(e,n,r,i);s.updateItems(o);const{citationsPre:l=[],citationsPost:c=[]}=t;return s.previewCitationCluster({citationItems:a.map((e=>"object"===typeof e?e:{id:e})),properties:{noteIndex:0}},l,c,i)}},config:{engine:f,locales:o,templates:s}})},376:(e,t,n)=>{"use strict";t.ig=void 0;var r,i=(r=n(3024))&&r.__esModule?r:{default:r},o=n(9400),a=n(3548);const s=Symbol.for("proxied"),l=function(e){const t=function(t,n){if(t.sys.wrapBibliographyEntry){const[e,r]=t.sys.wrapBibliographyEntry(this.system_id);n=[e,n,r].join("")}return e.call(this,t,n)};return t[s]=!0,t};for(const p in i.default.Output.Formats){const e=i.default.Output.Formats[p]["@bibliography/entry"];e&&!e[s]&&(i.default.Output.Formats[p]["@bibliography/entry"]=l(e))}function c(e){const t=e.replace("-","_");return a.locales.has(e)?a.locales.get(e):a.locales.has(t)?a.locales.get(t):void 0}const u={},d=function(e,t,n,r,o){const a="".concat(e,"|").concat(t);let s;return u[a]instanceof i.default.Engine?(s=u[a],s.sys.retrieveItem=r,s.updateItems([])):s=u[a]=new i.default.Engine({retrieveLocale:o,retrieveItem:r},n,t,!0),s};t.ig=d},3548:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locales=t.default=void 0;var r,i=n(8660),o=(r=n(9240))&&r.__esModule?r:{default:r};const a=new i.util.Register(o.default);t.locales=a;var s=e=>a.has(e)?a.get(e):a.get("en-US");t.default=s},9400:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.templates=t.default=void 0;var r,i=n(8660),o=(r=n(5832))&&r.__esModule?r:{default:r};const a=new i.util.Register(o.default);t.templates=a;var s=e=>a.has(e)?a.get(e):a.get("apa");t.default=s},3092:(e,t,n)=>{"use strict";n.r(t),n.d(t,{formats:()=>y,parsers:()=>b,ref:()=>v});var r={};n.r(r),n.d(r,{default:()=>l,parse:()=>l});var i={};n.r(i),n.d(i,{default:()=>u,parse:()=>u});var o={};n.r(o),n.d(o,{default:()=>d,parse:()=>d});var a={};n.r(a),n.d(a,{parse:()=>g,parseAsync:()=>f});var s=n(8660);function l(e){return(Array.isArray(e)?e:e.trim().split(/(?:\s+)/g)).map((e=>"https://doi.org/".concat(e)))}const c={"journal-article":"article-journal","book-chapter":"chapter","posted-content":"manuscript","proceedings-article":"paper-conference"};function u(e,t){return"posted-content"===e&&"preprint"===t.subtype?"article":c[e]||e}function d(e){const t={type:u(e.type,e)};return["submitted","issued","event-date","original-date","container","accessed"].forEach((t=>{const n=e[t];n&&n["date-parts"]&&"number"===typeof n["date-parts"][0]&&(n["date-parts"]=[n["date-parts"]])})),Object.assign({},e,t)}const p={checkContentType:!0,headers:{Accept:"application/vnd.citationstyles.csl+json"}};async function h(e){const t=await s.util.fetchFileAsync(e,p);return"[]"===t?{}:JSON.parse(t)}async function f(e){return(await Promise.all([].concat(e).map(h))).map(d)}function m(e){const t=s.util.fetchFile(e,p);return"[]"===t?{}:JSON.parse(t)}function g(e){return[].concat(e).map(m).map(d)}const v="@doi",b={id:r,api:a,json:o,type:i},y={"@doi/api":{parse:g,parseAsync:f,parseType:{dataType:"String",predicate:/^\s*(https?:\/\/(?:dx\.)?doi\.org\/(10.\d{4,9}\/[-._;()/:A-Z0-9]+))\s*$/i,extends:"@else/url"}},"@doi/id":{parse:l,parseType:{dataType:"String",predicate:/^\s*(10.\d{4,9}\/[-._;()/:A-Z0-9]+)\s*$/i}},"@doi/list+text":{parse:l,parseType:{dataType:"String",tokenList:/^10.\d{4,9}\/[-._;()/:A-Z0-9]+$/i}},"@doi/list+object":{parse:l,parseType:{dataType:"Array",elementConstraint:"@doi/id"}},"@doi/type":{parse:u}};s.plugins.add(v,{input:y})},8616:(e,t,n)=>{"use strict";n.r(t);var r=n(8660);const i=JSON.parse('{"outputSpec":"mixed"}'),o=JSON.parse('{"u":{"ABST":"article-journal","ADVS":"motion_picture","AGGR":"dataset","ANCIENT":"manuscript","ART":"graphic","BILL":"bill","BLOG":"post-weblog","BOOK":"book","CASE":"legal_case","CHAP":"chapter","CHART":"figure","CLSWK":"manuscript","COMP":"book","CONF":"paper-conference","CPAPER":"paper-conference","CTLG":"entry","DATA":"dataset","DBASE":"dataset","DICT":"entry-dictionary","EBOOK":"book","ECHAP":"chapter","EDBOOK":"book","EJOUR":"article-journal","ELEC":"webpage","ENCYC":"entry-encyclopedia","EQUA":"article","FIGURE":"figure","GEN":"book","GOVDOC":"report","GRANT":"article","HEAR":"interview","ICOMM":"personal_communication","INPR":"article-journal","JFULL":"article-journal","JOUR":"article-journal","LEGAL":"legislation","MANSCPT":"manuscript","MAP":"map","MGZN":"article-magazine","MPCT":"broadcast","MULTI":"motion_picture","MUSIC":"musical_score","NEWS":"article-newspaper","PAMP":"pamphlet","PAT":"patent","PCOMM":"personal_communication","RPRT":"report","SER":"book","SLIDE":"motion_picture","SOUND":"motion_picture","STAND":"report","STAT":"legislation","THES":"thesis","UNBILL":"manuscript","UNPB":"manuscript","VIDEO":"motion_picture","WEB":"webpage"},"a":{"article-journal":"JOUR","article-magazine":"MGZN","article-newspaper":"NEWS","article":"JOUR","bill":"BILL","book":"BOOK","broadcast":"MPCT","chapter":"CHAP","dataset":"DATA","entry":"CTLG","entry-dictionary":"DICT","entry-encyclopedia":"ENCYC","figure":"FIGURE","graphic":"ART","interview":"GEN","legal_case":"CASE","legislation":"LEGAL","manuscript":"MANSCPT","map":"MAP","motion_picture":"MPCT","musical_score":"MUSIC","pamphlet":"PAMP","paper-conference":"CONF","patent":"PAT","personal_communication":"PCOMM","post-weblog":"BLOG","post":"ICOMM","report":"RPRT","review-book":"BOOK","review":"JOUR","song":"SOUND","speech":"SOUND","thesis":"THES","treaty":"GEN","webpage":"ELEC"}}'),a=JSON.parse('[{"source":"A2","target":"editor","when":{"source":{"TY":["ANCIENT","BLOG","CHAP","CONF","CPAPER","DICT","EBOOK","ECHAP","ENCYC","MUSIC","SER"]},"target":{"type":["chapter","entry-dictionary","entry-encyclopedia","musical_score","paper-conference","post-weblog"]}}},{"source":"A2","target":"collection-editor","when":{"source":{"TY":["BOOK","CLSWK","COMP","EDBOOK","ELEC","MAP","MULTI","RPRT","UNPB"]},"target":{"type":["book","map","report","review-book","webpage"]}}},{"source":"A2","target":"reporter","when":{"source":{"TY":["CASE"]},"target":{"type":["legal_case"]}}},{"source":"A2","target":"recipient","when":{"source":{"TY":["ICOMM","PCOMM"]},"target":{"type":["personal_communication","post"]}}},{"source":"A3","target":"collection-editor","when":{"source":{"TY":["ADVS","CHAP","CONF","EBOOK","MUSIC","SER","SLIDE","SOUND","VIDEO"]},"target":{"type":["chapter","musical_score","paper-conference","song","speech"]}}},{"source":"A3","target":"illustrator","when":{"source":{"TY":["BLOG"]},"target":{"type":["post-weblog"]}}},{"source":"A3","target":"editor","when":{"source":{"TY":["BOOK"]},"target":{"type":["book","review-book"]}}},{"source":["A3","PB"],"target":"publisher","when":{"source":{"TY":["RPRT"]},"target":{"type":["report"]}}},{"source":"A4","target":"translator","when":{"source":{"TY":["ANCIENT","BOOK","CHAP","CLSWK","CTLG","DICT","EDBOOK","ENCYC","GRANT","PAMP"]},"target":{"type":["book","chapter","entry","entry-dictionary","entry-encyclopedia","pamphlet","review-book"]}}},{"source":"AB","target":"abstract","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"AU","target":"author","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BLOG","BOOK","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MULTI","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","THES","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","book","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legislation","manuscript","map","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"AU","target":"editor","when":{"source":{"TY":["EDBOOK"]},"target":false}},{"source":"AU","target":"director","when":{"source":{"TY":["MPCT"]},"target":{"type":["broadcast","motion_picture"]}}},{"source":"AU","target":"composer","when":{"source":{"TY":["MUSIC"]},"target":{"type":["musical_score"]}}},{"source":"AU","target":"reporter","when":{"source":{"TY":["NEWS"]},"target":{"type":["article-newspaper"]}}},{"source":"C1","target":"section","when":{"source":{"TY":["CHAP","ECHAP","SER"]},"target":{"type":["chapter"]}}},{"source":"C1","target":"publisher-place","when":{"source":{"TY":["CONF","CPAPER"]},"target":{"type":["paper-conference"]}}},{"source":"C1","target":"scale","when":{"source":{"TY":["MAP"]},"target":{"type":["map"]}}},{"source":"C2","target":"PMCID","when":{"source":{"TY":["ABST","INPR","JFULL","JOUR"]},"target":{"type":["article","article-journal","review"]}}},{"source":"C2","target":"issue","when":{"source":{"TY":["NEWS"]},"target":{"type":["article-newspaper"]}}},{"source":"C2","target":"number","when":{"source":{"TY":["SER"]},"target":false}},{"source":["C2","DA"],"target":"issued","when":{"source":{"TY":["CONF"]},"target":{"type":["paper-conference"]}}},{"source":["C2","DA","PY"],"target":"issued","when":{"source":{"TY":["PAT"]},"target":{"type":["patent"]}}},{"source":"C3","target":"dimensions","when":{"source":{"TY":["ADVS","MAP","SLIDE","SOUND","VIDEO"]},"target":{"type":["map","song","speech"]}}},{"source":"C3","target":"container-title","when":{"source":{"TY":["CONF"]},"target":{"type":["paper-conference"]}}},{"source":"C3","target":"PMCID","when":{"source":{"TY":["EJOUR"]},"target":false}},{"source":"C3","target":"jurisdiction","when":{"source":{"TY":["PAT"]},"target":{"type":["patent"]}}},{"source":["C3","M1"],"target":"dimensions","when":{"source":{"TY":["ART"]},"target":{"type":["graphic"]}}},{"source":"C5","target":"number","when":{"source":{"TY":["GRANT"]},"target":false}},{"source":"C5","target":"dimensions","when":{"source":{"TY":["MULTI"]},"target":false}},{"source":"C5","target":"references","when":{"source":{"TY":["PAT"]},"target":{"type":["patent"]}}},{"source":["C5","PB"],"target":"publisher","when":{"source":{"TY":["STAT"]},"target":false}},{"source":["C5","PY"],"target":"issued","when":{"source":{"TY":["EBOOK"]},"target":false}},{"source":"C6","target":"status","when":{"source":{"TY":["PAT"]},"target":{"type":["patent"]}}},{"source":"C6","target":"issue","when":{"source":{"TY":["RPRT"]},"target":{"type":["report"]}}},{"source":"C6","target":"volume","when":{"source":{"TY":["STAT"]},"target":false}},{"source":"C7","target":"number","when":{"source":{"TY":["ABST","INPR","JFULL","JOUR"]},"target":{"type":["article","article-journal","review"]}}},{"source":"C7","target":"PMCID","when":{"source":{"TY":["EBOOK","ECHAP"]},"target":false}},{"source":["C7","NV"],"target":"number","when":{"source":{"TY":["EJOUR"]},"target":false}},{"source":"CN","target":"call-number","when":{"source":{"TY":["ABST","ADVS","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CTLG","DATA","DICT","EBOOK","ECHAP","EDBOOK","ELEC","ENCYC","EQUA","FIGURE","GEN","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"CY","target":"publisher-place","when":{"source":{"TY":["ADVS","AGGR","ANCIENT","ART","BLOG","BOOK","CHAP","CHART","CLSWK","COMP","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","HEAR","ICOMM","LEGAL","MANSCPT","MAP","MGZN","MUSIC","NEWS","PAMP","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","THES","UNPB","VIDEO"]},"target":{"type":["article-magazine","article-newspaper","book","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legislation","manuscript","map","musical_score","pamphlet","personal_communication","post","post-weblog","report","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"CY","target":"event-place","when":{"source":{"TY":["CONF","CPAPER"]},"target":{"type":["paper-conference"]}}},{"source":"DA","target":"accessed","when":{"source":{"TY":["AGGR","DBASE","EBOOK","EJOUR","MULTI"]},"target":false}},{"source":["DA","PY"],"target":"issued","when":{"source":{"TY":["ABST","ADVS","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHART","CPAPER","CTLG","DATA","EDBOOK","ELEC","ENCYC","EQUA","FIGURE","GEN","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MUSIC","PAMP","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","bill","book","broadcast","dataset","entry","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":["DA","PY","Y2"],"target":"issued","when":{"source":{"TY":["STAT"]},"target":false}},{"source":["DA","Y2"],"target":"accessed","when":{"source":{"TY":["ECHAP"]},"target":false}},{"source":"DB","target":"source","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"DO","target":"DOI","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"ET","target":"edition","when":{"source":{"TY":["ADVS","ANCIENT","ART","BLOG","BOOK","CHAP","CLSWK","CONF","CTLG","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","GEN","GOVDOC","LEGAL","MAP","MGZN","MPCT","MUSIC","NEWS","PAMP","RPRT","SER","SLIDE","SOUND","VIDEO"]},"target":{"type":["article-magazine","article-newspaper","book","broadcast","chapter","entry","entry-dictionary","entry-encyclopedia","graphic","interview","legislation","map","motion_picture","musical_score","pamphlet","paper-conference","post-weblog","report","review-book","song","speech","treaty","webpage"]}}},{"source":"ET","target":"version","when":{"source":{"TY":["CHART","COMP","DATA","EQUA","FIGURE"]},"target":{"type":["dataset","figure"]}}},{"source":"ET","target":"medium","when":{"source":{"TY":["MANSCPT"]},"target":{"type":["manuscript"]}}},{"source":["ET","PY"],"target":"issued","when":{"source":{"TY":["AGGR","DBASE"]},"target":false}},{"source":"ID","target":"id"},{"source":"IS","target":"number-of-volumes","when":{"source":{"TY":["CHAP"]},"target":{"type":["chapter"]}}},{"source":"IS","target":"issue","when":{"source":{"TY":["ABST","INPR","JFULL","JOUR"]},"target":{"type":["article","article-journal","review"]}}},{"source":"J2","target":"container-title-short","when":{"source":{"TY":["ABST","ANCIENT","BOOK","CHAP","CTLG","DATA","DICT","ENCYC","GRANT","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MGZN","PAMP","PCOMM","SER","STAND","STAT","UNPB"]},"target":{"type":["article","article-journal","article-magazine","book","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","legislation","manuscript","pamphlet","personal_communication","post","review","review-book"]}}},{"source":"KW","target":"keyword","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":["L4","UR"],"target":"URL","when":{"source":{"TY":["HEAR"]},"target":false}},{"source":"LA","target":"language","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"LB","target":"citation-label","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"M1","target":"number","when":{"source":{"TY":["ADVS","AGGR","ANCIENT","BILL","CHART","DICT","EQUA","FIGURE","GEN","HEAR","SLIDE","SOUND","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["bill","entry-dictionary","figure","interview","song","speech","thesis","treaty"]}}},{"source":"M1","target":"collection-number","when":{"source":{"TY":["BOOK","CLSWK","CTLG","EDBOOK","PAMP","SER"]},"target":{"type":["book","entry","pamphlet","review-book"]}}},{"source":"M1","target":"issue","when":{"source":{"TY":["CONF","EJOUR","GOVDOC","MGZN"]},"target":{"type":["article-magazine","paper-conference"]}}},{"source":"M1","target":"chapter-number","when":{"source":{"TY":["ECHAP"]},"target":false}},{"source":"M1","target":"status","when":{"source":{"TY":["GRANT"]},"target":false}},{"source":"M1","target":"page-first","when":{"source":{"TY":["LEGAL","NEWS","STAND"]},"target":{"type":["article-newspaper","legislation"]}}},{"source":["M1","NV"],"target":"number","when":{"source":{"TY":["ICOMM","MANSCPT","PCOMM","STAT"]},"target":{"type":["manuscript","personal_communication","post"]}}},{"source":["M1","SE","SN"],"target":"number","when":{"source":{"TY":["PAT"]},"target":{"type":["patent"]}}},{"source":["M1","SN"],"target":"number","when":{"source":{"TY":["RPRT"]},"target":{"type":["report"]}}},{"source":["M1","VL"],"target":"accessed","when":{"source":{"TY":["ELEC"]},"target":{"type":["webpage"]}}},{"source":"M2","target":"page-first","when":{"source":{"TY":["ABST","INPR","JFULL","JOUR"]},"target":{"type":["article","article-journal","review"]}}},{"source":"M2","target":"number-of-pages","when":{"source":{"TY":["PAMP"]},"target":{"type":["pamphlet"]}}},{"source":"M3","target":"genre","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BOOK","CHART","CLSWK","COMP","CPAPER","CTLG","DBASE","DICT","ECHAP","EDBOOK","EJOUR","EQUA","FIGURE","GEN","GRANT","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MULTI","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","THES","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","book","entry","entry-dictionary","figure","graphic","interview","legislation","manuscript","map","pamphlet","patent","personal_communication","post","report","review","review-book","song","speech","thesis","treaty"]}}},{"source":"M3","target":"medium","when":{"source":{"TY":["BLOG","EBOOK","ELEC","MPCT","MUSIC"]},"target":{"type":["broadcast","motion_picture","musical_score","post-weblog","webpage"]}}},{"source":["N1","RN"],"target":"note","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PCOMM","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","personal_communication","post","post-weblog","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":["N1","RN","RP"],"target":"note","when":{"source":{"TY":["PAT","RPRT"]},"target":{"type":["patent","report"]}}},{"source":"NV","target":"number-of-volumes","when":{"source":{"TY":["ANCIENT","BOOK","CLSWK","CONF","DICT","ECHAP","EDBOOK","ENCYC","GEN","HEAR","MUSIC","SER"]},"target":{"type":["book","entry-dictionary","entry-encyclopedia","interview","musical_score","paper-conference","review-book","treaty"]}}},{"source":"NV","target":"number","when":{"source":{"TY":["CTLG","DATA"]},"target":{"type":["dataset","entry"]}}},{"source":"NV","target":"version","when":{"source":{"TY":["EBOOK"]},"target":false}},{"source":"NV","target":"dimensions","when":{"source":{"TY":["GRANT"]},"target":false}},{"source":"NV","target":"collection-number","when":{"source":{"TY":["RPRT"]},"target":{"type":["report"]}}},{"source":"OP","target":"original-title","when":{"source":{"TY":["ABST","AGGR","ANCIENT","BOOK","CHAP","CLSWK","CTLG","DICT","EBOOK","ECHAP","EDBOOK","ENCYC","GEN","INPR","JFULL","JOUR","MGZN","MUSIC","PAMP","SER"]},"target":{"type":["article","article-journal","article-magazine","book","chapter","entry","entry-dictionary","entry-encyclopedia","interview","musical_score","pamphlet","review","review-book","treaty"]}}},{"source":"OP","target":"references","when":{"source":{"TY":["BILL","CASE","HEAR","LEGAL","STAT","UNBILL"]},"target":{"type":["bill","legal_case","legislation"]}}},{"source":"PB","target":"publisher","when":{"source":{"TY":["ADVS","AGGR","ANCIENT","ART","BLOG","BOOK","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","LEGAL","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PCOMM","SER","SLIDE","SOUND","STAND","THES","UNPB","VIDEO"]},"target":{"type":["article-magazine","article-newspaper","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legislation","map","motion_picture","musical_score","pamphlet","paper-conference","personal_communication","post","post-weblog","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"PB","target":"authority","when":{"source":{"TY":["CASE"]},"target":{"type":["legal_case"]}}},{"source":"PB","target":"archive","when":{"source":{"TY":["MANSCPT"]},"target":{"type":["manuscript"]}}},{"source":"PY","target":"issued","when":{"source":{"TY":["CHAP","CLSWK","COMP","DICT","ECHAP","GOVDOC","MULTI","NEWS"]},"target":{"type":["article-newspaper","chapter","entry-dictionary"]}}},{"source":"PY","target":"event-date","when":{"source":{"TY":["CONF"]},"target":{"type":["paper-conference"]}}},{"source":["PY","SE"],"target":"issued","when":{"source":{"TY":["EJOUR"]},"target":false}},{"source":"RI","target":"reviewed-title","when":{"source":{"TY":["ABST","ANCIENT","CHAP","DICT","EBOOK","ECHAP","EJOUR","ENCYC","GEN","GRANT","INPR","JFULL","JOUR","MGZN","NEWS","SER"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","chapter","entry-dictionary","entry-encyclopedia","interview","review","treaty"]}}},{"source":"RI","target":"locator","when":{"source":{"TY":["STAT"]},"target":false}},{"source":"SE","target":"section","when":{"source":{"TY":["BILL","GEN","GOVDOC","MUSIC","NEWS","STAT","UNBILL"]},"target":{"type":["article-newspaper","bill","interview","musical_score","treaty"]}}},{"source":"SE","target":"number","when":{"source":{"TY":["BLOG"]},"target":{"type":["post-weblog"]}}},{"source":"SE","target":"chapter-number","when":{"source":{"TY":["CHAP","SER"]},"target":{"type":["chapter"]}}},{"source":"SE","target":"page","when":{"source":{"TY":["BOOK"]},"target":{"type":["book","review-book"]}}},{"source":"SE","target":"submitted","when":{"source":{"TY":["CASE"]},"target":{"type":["legal_case"]}}},{"source":"SE","target":"number-of-pages","when":{"source":{"TY":["CTLG"]},"target":{"type":["entry"]}}},{"source":"SE","target":"original-date","when":{"source":{"TY":["DATA"]},"target":{"type":["dataset"]}}},{"source":"SE","target":"version","when":{"source":{"TY":["DICT"]},"target":{"type":["entry-dictionary"]}}},{"source":"SE","target":"locator","when":{"source":{"TY":["STAND"]},"target":false}},{"source":"SE","target":"page-first","when":{"source":{"TY":["MANSCPT","MGZN"]},"target":{"type":["article-magazine","manuscript"]}}},{"source":["SE","T2"],"target":"locator","when":{"source":{"TY":["LEGAL"]},"target":{"type":["legislation"]}}},{"source":"SN","target":["ISBN","ISSN"],"when":{"source":{"TY":["AGGR","CLSWK","GEN"]},"target":{"type":["interview","treaty"]}}},{"source":"SN","target":"ISBN","when":{"source":{"TY":["ADVS","ANCIENT","BLOG","BOOK","CHAP","COMP","CONF","CTLG","DICT","EBOOK","ECHAP","EDBOOK","ELEC","ENCYC","HEAR","MAP","PAMP","SER","SLIDE","SOUND","VIDEO"]},"target":{"type":["book","chapter","entry","entry-dictionary","entry-encyclopedia","map","pamphlet","paper-conference","post-weblog","review-book","song","speech","webpage"]}}},{"source":"SN","target":"ISSN","when":{"source":{"TY":["ABST","DATA","EJOUR","INPR","JFULL","JOUR","MGZN","MUSIC","NEWS"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","dataset","musical_score","review"]}}},{"source":"SN","target":"number","when":{"source":{"TY":["DBASE","GOVDOC"]},"target":false}},{"source":["SN","T3"],"target":"number","when":{"source":{"TY":["LEGAL","STAND"]},"target":{"type":["legislation"]}}},{"source":"SP","target":"page","when":{"source":{"TY":["ABST","AGGR","ANCIENT","BILL","CHAP","CONF","CPAPER","CTLG","DBASE","DICT","ECHAP","EJOUR","ENCYC","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MGZN","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","STAND","STAT","UNBILL","UNPB"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","chapter","entry","entry-dictionary","entry-encyclopedia","interview","legislation","manuscript","musical_score","pamphlet","paper-conference","patent","personal_communication","post","report","review","treaty"]}}},{"source":"SP","target":"number-of-pages","when":{"source":{"TY":["BOOK","CLSWK","EBOOK","EDBOOK","THES"]},"target":{"type":["book","review-book","thesis"]}}},{"source":"SP","target":"page-first","when":{"source":{"TY":["CASE"]},"target":{"type":["legal_case"]}}},{"source":"SP","target":"dimensions","when":{"source":{"TY":["MPCT"]},"target":{"type":["broadcast","motion_picture"]}}},{"source":"ST","target":"title-short","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CLSWK","COMP","CONF","CTLG","DATA","DICT","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","GEN","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","MANSCPT","MAP","MGZN","MPCT","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","graphic","interview","legal_case","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"SV","target":"collection-number","when":{"source":{"TY":["CHAP"]},"target":{"type":["chapter"]}}},{"source":"T2","target":"collection-title","when":{"source":{"TY":["AGGR","BOOK","CLSWK","COMP","CTLG","DBASE","ELEC","MANSCPT","MAP","MPCT","MULTI","RPRT","UNPB"]},"target":{"type":["book","broadcast","entry","manuscript","map","motion_picture","report","review-book","webpage"]}}},{"source":"T2","target":"container-title","when":{"source":{"TY":["ABST","ANCIENT","BILL","BLOG","CHAP","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ENCYC","GEN","INPR","JFULL","JOUR","MGZN","MUSIC","NEWS","PAMP","PAT","SER","STAT","THES","UNBILL"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","chapter","entry-dictionary","entry-encyclopedia","interview","musical_score","pamphlet","patent","post-weblog","review","thesis","treaty"]}}},{"source":"T2","target":"event","when":{"source":{"TY":["CONF","CPAPER"]},"target":{"type":["paper-conference"]}}},{"source":"T2","target":"committee","when":{"source":{"TY":["HEAR"]},"target":false}},{"source":"T2","target":"section","when":{"source":{"TY":["STAND"]},"target":false}},{"source":"T3","target":"collection-title","when":{"source":{"TY":["ADVS","ANCIENT","CHAP","CONF","DATA","EBOOK","ECHAP","EJOUR","GEN","GOVDOC","MUSIC","SER","SLIDE","SOUND","VIDEO"]},"target":{"type":["chapter","dataset","interview","musical_score","paper-conference","song","speech","treaty"]}}},{"source":"TI","target":"title","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"TY","target":"type"},{"source":"UR","target":"URL","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"VL","target":"volume","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","BILL","BOOK","CASE","CHAP","CLSWK","CONF","CPAPER","CTLG","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ENCYC","GEN","GOVDOC","INPR","JFULL","JOUR","LEGAL","MANSCPT","MGZN","MUSIC","NEWS","RPRT","SER","SLIDE","SOUND","STAND","UNBILL","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","chapter","entry","entry-dictionary","entry-encyclopedia","interview","legal_case","legislation","manuscript","musical_score","paper-conference","report","review","review-book","song","speech","treaty"]}}},{"source":"VL","target":"dimensions","when":{"source":{"TY":["CHART","EQUA","FIGURE"]},"target":{"type":["figure"]}}},{"source":"VL","target":"edition","when":{"source":{"TY":["COMP"]},"target":false}},{"source":"VL","target":"number","when":{"source":{"TY":["PAMP"]},"target":{"type":["pamphlet"]}}},{"source":"VL","target":"version","when":{"source":{"TY":["PAT"]},"target":{"type":["patent"]}}},{"source":["VL","Y2"],"target":"accessed","when":{"source":{"TY":["BLOG"]},"target":{"type":["post-weblog"]}}},{"source":"Y2","target":"accessed","when":{"source":{"TY":["ABST","ADVS","ANCIENT","ART","BILL","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DICT","EDBOOK","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","THES","UNBILL","UNPB","VIDEO"]},"target":{"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","report","review","review-book","song","speech","thesis","treaty"]}}},{"source":"C4","target":"author","when":{"source":{"TY":["BOOK","CHAP","EBOOK","ECHAP","EJOUR"]},"target":{"reviewed-author":true,"type":["book","chapter","review-book","review"]}}},{"source":"AU","target":"reviewed-author","when":{"source":{"C4":true,"TY":["BOOK","CHAP","EBOOK","ECHAP","EJOUR"]},"target":{"type":["book","chapter","review-book","review"]}}},{"source":"TA","target":"author","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"original-author":true,"translator":true,"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"AU","target":"original-author","when":{"source":{"TA":true,"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"translator":true,"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"TT","target":"title","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"original-author":true,"translator":true,"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{"source":"TI","target":"original-title","when":{"source":{"TT":true,"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"]},"target":{"translator":true,"type":["article","article-journal","article-magazine","article-newspaper","bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}}]');var s=n(9136);const l=/^\d{4}-\d{4}$/,c=/10(?:\.[0-9]{4,})?\/[^\s]*[^\s.,]/,u={ANY:{toTarget(){for(var e=arguments.length,t=new Array(e),n=0;n[e]},PAGE:{keepAll:!0,toTarget:(e,t)=>[e,t].filter(Boolean).join("-"),toSource:e=>e.replace(/[-\u2013\u2014]/g,"-")},ISBN:{toTarget:e=>l.test(e)?[e]:[void 0,e],toSource(){for(var e=arguments.length,t=new Array(e),n=0;ne&&(0,s.K0)(e.split("/").slice(0,3).filter(Boolean).join("/")),toSource(e){const t=Array(4).fill("");return e["date-parts"][0].forEach(((e,n)=>{t[n]=e})),e.season&&(t[3]=e.season),t.join("/")}},NAME:{toTarget:e=>e&&[].concat(e).map((e=>{const t=e.split(/, ?/),[n,r,i]=t;switch(t.length){case 3:return{family:n,given:r,suffix:i};case 2:return{family:n,given:r};case 1:if(n.indexOf(" ")>-1)return{family:n};default:return{literal:e}}})),toSource:e=>e.map((e=>{let{family:t,given:n,suffix:r,literal:i}=e;const o=[t,n,r].filter(Boolean);return o.length?o.join(", "):i}))},KEYWORD:{toTarget:e=>(e=[].concat(e)).join(","),toSource:e=>e.split(",")},ID:{toSource:e=>e.slice(0,20)},TYPE:{toTarget:e=>o.u[e],toSource:e=>o.a[e]},DOI:{toTarget:e=>e.match(c)[0],toSource:e=>e.match(c)[0]}},d=[{source:"TY",target:"type"},{source:"ID",target:"id"},{source:["T1","TI","CT"],target:"title"},{source:"BT",target:"title",when:{source:{type:["BOOK","UNPB"],T1:!1,TI:!1,CT:!1},target:!1}},{source:"T2",target:"container-title",when:{target:{type:["bill","book","broadcast","chapter","dataset","entry","entry-dictionary","entry-encyclopedia","figure","graphic","interview","legal_case","legislation","manuscript","map","motion_picture","musical_score","pamphlet","paper-conference","patent","personal_communication","post","post-weblog","report","review","review-book","song","speech","thesis","treaty","webpage"]}}},{source:"BT",target:"container-title",when:{source:{type:["ABST","ADVS","ART","BILL","CASE","CHAP","COMP","CONF","CTLG","DATA","ELEC","GEN","HEAR","ICOMM","INPR","JFULL","JOUR","MAP","MGZN","MPCT","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAT","THES","UNBILL","VIDEO"],T2:!1},target:!1}},{source:"T3",target:"collection-title"},{source:["A1","AU"],target:"author"},{source:["A2","ED"],target:"editor"},{source:"A3",target:"collection-editor"},{source:["Y1","PY"],target:"issued"},{source:"Y2",target:"event-date",convert:u.DATE,when:{source:{type:["CONF","CPAPER"]},target:{type:["paper-conference"]}}},{source:"Y2",target:"submitted",convert:u.DATE,when:{source:{type:["PAT"]},target:{type:"patent"}}},{source:["AB","N1"],target:"note"},{source:"N2",target:"abstract"},{source:"KW",target:"keyword"},{source:["JF","JO"],target:"container-title",convert:u.ANY,when:{target:{type:["article","article-journal","article-magazine","article-newspaper"]}}},{source:["JA","J1","J2"],target:"container-title-short"},{source:"VL",target:"volume"},{source:["IS","CP"],target:"issue"},{source:"SP",target:"page-first"},{source:["SP","EP"],target:"page",convert:u.PAGE,when:{source:{SP:!0,EP:!0}}},{source:"CY",target:"publisher-place"},{source:"PB",target:"publisher"},{source:"SN",target:["ISSN","ISBN"]},{source:"AV",target:"archive_location"},{source:"UR",target:"URL"}],p=JSON.parse('[{"source":["T1","BT"],"target":"title","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"],"TI":false},"target":false}},{"source":"A1","target":"author","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BLOG","BOOK","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MULTI","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","THES","UNPB","VIDEO"],"AU":false},"target":false}},{"source":"Y1","target":"issued","when":{"source":{"TY":["CONF"],"C2":false,"DA":false},"target":false}},{"source":"Y1","target":"issued","when":{"source":{"TY":["PAT"],"C2":false,"DA":false,"PY":false},"target":false}},{"source":"Y1","target":"issued","when":{"source":{"TY":["EBOOK"],"C5":false,"PY":false},"target":false}},{"source":"Y1","target":"issued","when":{"source":{"TY":["ABST","ADVS","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHART","CPAPER","CTLG","DATA","EDBOOK","ELEC","ENCYC","EQUA","FIGURE","GEN","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MUSIC","PAMP","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","THES","UNBILL","UNPB","VIDEO"],"DA":false,"PY":false},"target":false}},{"source":"Y1","target":"issued","when":{"source":{"TY":["STAT"],"DA":false,"PY":false,"Y2":false},"target":false}},{"source":"Y1","target":"issued","when":{"source":{"TY":["AGGR","DBASE"],"ET":false,"PY":false},"target":false}},{"source":"Y1","target":"issued","when":{"source":{"TY":["CHAP","CLSWK","COMP","DICT","ECHAP","GOVDOC","MULTI","NEWS"],"PY":false},"target":false}},{"source":"Y1","target":"issued","when":{"source":{"TY":["EJOUR"],"PY":false,"SE":false},"target":false}},{"source":["JO","JF","J1"],"target":"container-title","when":{"source":{"TY":["CONF"],"C3":false},"target":false}},{"source":["JO","JF","J1"],"target":"container-title","when":{"source":{"TY":["ABST","ANCIENT","BILL","BLOG","CHAP","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ENCYC","GEN","INPR","JFULL","JOUR","MGZN","MUSIC","NEWS","PAMP","PAT","SER","STAT","THES","UNBILL"],"T2":false},"target":false}},{"source":"JA","target":"container-title-short","when":{"source":{"TY":["ABST","ANCIENT","BOOK","CHAP","CTLG","DATA","DICT","ENCYC","GRANT","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MGZN","PAMP","PCOMM","SER","STAND","STAT","UNPB"],"J2":false},"target":false}},{"source":"N2","target":"abstract","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"],"AB":false},"target":false}},{"source":["SP","EP"],"target":"page","when":{"source":{"TY":["BOOK"],"SE":false},"target":false}},{"source":["SP","EP"],"target":"page","when":{"source":{"TY":["ABST","AGGR","ANCIENT","BILL","CHAP","CONF","CPAPER","CTLG","DBASE","DICT","ECHAP","EJOUR","ENCYC","GEN","GOVDOC","GRANT","HEAR","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MGZN","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","STAND","STAT","UNBILL","UNPB"],"EP":true},"target":false}},{"source":"AV","target":"archive_location","when":{"target":false}},{"source":"LK","target":"URL","when":{"source":{"TY":["HEAR"],"L4":false,"UR":false},"target":false}},{"source":"LK","target":"URL","when":{"source":{"TY":["ABST","ADVS","AGGR","ANCIENT","ART","BILL","BLOG","BOOK","CASE","CHAP","CHART","CLSWK","COMP","CONF","CPAPER","CTLG","DATA","DBASE","DICT","EBOOK","ECHAP","EDBOOK","EJOUR","ELEC","ENCYC","EQUA","FIGURE","GEN","GOVDOC","GRANT","ICOMM","INPR","JFULL","JOUR","LEGAL","MANSCPT","MAP","MGZN","MPCT","MULTI","MUSIC","NEWS","PAMP","PAT","PCOMM","RPRT","SER","SLIDE","SOUND","STAND","STAT","THES","UNBILL","UNPB","VIDEO"],"UR":false},"target":false}},{"source":"IS","target":"issue","when":{"source":{"TY":"MGZN","M1":false},"target":false}}]'),h=a.concat(p),f={new:a,old:d,mixed:h},m=JSON.parse('{"author":"NAME","collection-editor":"NAME","composer":"NAME","container-author":"NAME","director":"NAME","editor":"NAME","editorial-director":"NAME","interviewer":"NAME","illustrator":"NAME","original-author":"NAME","recipient":"NAME","reviewed-author":"NAME","translator":"NAME","accessed":"DATE","container":"DATE","event-date":"DATE","issued":"DATE","original-date":"DATE","submitted":"DATE","id":"ID","ISSN,ISBN":"ISBN","keyword":"KEYWORD","page":"PAGE","type":"TYPE","DOI":"DOI"}'),g=/^[A-Z][A-Z0-9] {2}-( |$)/,v=/ {2}-(?: |$)/,b=new Map;function y(e){if(!b.has(e)){for(const t of e)if(t.target in m&&(t.convert=u[m[t.target]]),(!t.convert||!0!==t.convert.keepAll)&&Array.isArray(t.source))if(t.convert){const{toSource:e,toTarget:n}=t.convert;t.convert={toTarget(){return n(u.ANY.toTarget(...arguments))},toSource(){return u.ANY.toSource(e(...arguments))}}}else t.convert=u.ANY;b.set(e,new r.util.Translator(e))}return b.get(e)}const _=["A1","AV","BT","CP","ED","EP","ID","J1","JA","JF","JO","L2","L3","N2","T1","U1","U2","U3","U4","U5","U6","Y1"],x=["A4","AD","AN","C1","C2","C3","C4","C5","C6","C7","C8","CA","CN","DA","DB","DO","DP","ET","LA","LB","NV","OP","PY","RI","RN","SE","ST","SV","TA","TT"];r.plugins.add("@ris",{input:{"@ris/file":{parse:function(e){const t=[];let n,r;for(let i of e.split(/\r?\n/)){if(i=i.trim(),!g.test(i)){n&&r&&(n[r]+=" "+i);continue}const[e,o]=i.split(v);switch(e){case"ER":n=void 0,r=void 0;break;case"TY":n={},t.push(n);default:Array.isArray(n[e])?n[e].push(o):n[e]=n[e]?[n[e],o]:o,r=e}}return t},parseType:{dataType:"String",predicate:/^TY {2}- /m}},"@ris/record":{parse:function(e){return y(f.mixed).convertToTarget(e)},parseType:{dataType:"SimpleObject",propertyConstraint:{props:["TY"]}}},"@ris/new+record":{parse:function(e){return y(f.new).convertToTarget(e)},parseType:{extends:"@ris/record",propertyConstraint:[{props:x,match:"some"},{props:_,match:"none"}]}},"@ris/old+record":{parse:function(e){return y(f.old).convertToTarget(e)},parseType:{extends:"@ris/record",propertyConstraint:[{props:_,match:"some"},{props:x,match:"none"}]}}},config:i,output:{ris:function(e){let{type:t,format:n=t||"text",spec:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=r||i.outputSpec,a=e.map(y(f[o]).convertToSource);return"object"===n?a:a.map((e=>{const t=[];for(const n in e)"TY"!==n&&t.push(...[].concat(e[n]).map((e=>"".concat(n," - ").concat(e.toString().replace(/(.{70})/g,"$1\n")))));return t.unshift("TY - ".concat(e.TY)),t.push("ER - "),t.join("\n")})).join("\n")}}})},9136:(e,t,n)=>{"use strict";Object.defineProperty(t,"K0",{enumerable:!0,get:function(){return r.default}});var r=o(n(5208)),i=o(n(7412));function o(e){return e&&e.__esModule?e:{default:e}}},5208:(e,t)=>{"use strict";function n(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)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(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.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n+e<0)))return null;r=+n[0]<0||+n[0]>+n[1]&&+n[1]>0?n.pop():n.shift()}return[n.pop(),r]}return null}(e)||function(e){if("string"!==typeof e)return null;const t=e.match(/^(\d+) ?(a\.?d\.?|b\.?c\.?)$/i);if(t){const e=n(t.slice(1),2);return[e[0]*("a"===e[1].toLowerCase()[0]?1:-1)]}return/^-?\d+$/.test(e)?[e]:null}(e);return t&&t.map((e=>parseInt(e)))}var d=function(e,t){const n=[],r="string"===typeof e&&function(e){return a.test(e)?e.match(a).slice(1,3):e.split(o)}(e);t?n.push(e,t):r&&2===r.length?n.push(...r):n.push(e);const i=n.map(u);return i.filter(Boolean).length===n.length?{"date-parts":i}:{raw:t?n.join("/"):e}};t.default=d},7412:(e,t)=>{"use strict";function n(e,t,n){if(e.length>=t)return e;for(;e.length1&&void 0!==arguments[1]?arguments[1]:"-";if(!e["date-parts"])return e.raw;const r=e["date-parts"][0].map((e=>e.toString()));switch(r.length){case 3:r[2]=n(r[2],2,"0");case 2:r[1]=n(r[1],2,"0");case 1:r[0]=n(r[0],4,"0")}return r.join(t)};t.default=r},9156:(e,t,n)=>{"use strict";n.r(t),n.d(t,{formats:()=>te,parsers:()=>ee,ref:()=>X});var r={};n.r(r),n.d(r,{default:()=>p,parse:()=>p});var i={};n.r(i),n.d(i,{parse:()=>m,parseAsync:()=>g});var o={};n.r(o),n.d(o,{default:()=>z,getLabel:()=>H,parse:()=>z,parseProp:()=>z,parseType:()=>q});var a={};n.r(a),n.d(a,{default:()=>Z,parse:()=>Z,parseAsync:()=>Y,parseEntities:()=>Z,parseEntitiesAsync:()=>Y,parseEntity:()=>K});var s={};n.r(s),n.d(s,{parse:()=>J});var l=n(8660),c=n(1168),u=n.n(c);const d={langs:["en"]},p=function(e,t){const n=[].concat(e);return[].concat(u().getManyEntities(n,t||d.langs))},{fetchFile:h,fetchFileAsync:f}=l.util;function m(e){return[].concat(e).map(h)}function g(e){return Promise.all([].concat(e).map(f))}const v={keepQualifiers:!0,timeConverter:"simple-day"},b={P17:null},y={P740:b,P159:b},_={P50:null,P57:null,P86:null,P98:null,P110:null,P655:null,P1817:null,P921:{P50:null},P407:null,P364:null,P123:y,P629:{P50:null,P123:y},P437:null,P186:null,P179:{P98:null},P1433:{P4745:{P276:b}},P361:{P50:null}};function x(e,t){return e.push(...t),e}function w(e,t){return t?(e._needed=Object.assign(e._needed||{},t),Object.keys(e.claims).filter((e=>e in t)).map((t=>e.claims[t].map((e=>{let{value:t}=e;return t.id||t})))).reduce(x,[])):[]}function E(e,t){if(!t){const t=[];for(const n in e){const r=w(e[n],_);for(const e of r)t.includes(e)||t.push(e)}return t}const n=[];for(const r of t){const t=e[r];if(t._needed){for(const r in t.claims)if(r in t._needed)for(const i of t.claims[r])i.value&&i.value.id||(i.value=e[i.value],n.push(...w(i.value,t._needed[r])));delete t._needed}}return n}function T(e){return c.simplify.entities(e,v)}function C(e,t){return{needed:E(t),incomplete:Object.keys(e)}}function k(e,t){const n=e.filter(((n,r)=>!(n in t)&&e.indexOf(n)===r));return p(n)}function S(e,t){const{entities:n}=JSON.parse(e);Object.assign(t,T(n))}function O(e,t){return{needed:E(t,e.incomplete),incomplete:e.needed}}function A(e,t){return Object.keys(e).map((e=>t[e]))}function j(e){const t=function(e){const t=T(e);let n=C(e,t);for(;n.needed.length;)k(n.needed,t).map((e=>S(m(e),t))),n=O(n,t);return t}(e);return A(e,t)}async function P(e){const t=await async function(e){const t=T(e);let n=C(e,t);for(;n.needed.length;){const e=k(n.needed,t);await Promise.all(e.map((async e=>S(await g(e),t)))),n=O(n,t)}return t}(e);return A(e,t)}var I=n(6112),L=n(6908);const R=JSON.parse('{"Q191067":"article","Q1266946":"thesis","Q187685":"thesis","Q265158":"review","Q1172284":"dataset","Q2352616":"dataset","Q367035":"dataset","Q4006":"map","Q133792":"map","Q842617":"map","Q1425895":"map","Q2334719":"legal_case","Q36774":"webpage","Q15474042":"webpage","Q58494026":"webpage","Q17379835":"webpage","Q17442446":"webpage","Q21281405":"webpage","Q16222597":"webpage","Q653848":"map","Q21944833":"map","Q11424":"motion_picture","Q157443":"motion_picture","Q571":"book","Q87167":"manuscript","Q131569":"treaty","Q216665":"book","Q686822":"bill","Q10870555":"report","Q3099732":"report","Q252550":"treaty","Q3536928":"treaty","Q5707594":"article-newspaper","Q59908":"article","Q1164267":"book","Q18011172":"motion_picture","Q19389637":"article","Q11578774":"broadcast","Q15416":"broadcast","Q1555508":"broadcast","Q26260507":"broadcast","Q580922":"article","Q651270":"article","Q759838":"article","Q1580166":"entry-dictionary","Q1809676":"article","Q2106255":"article","Q1004391":"report","Q2438528":"article","Q6646525":"article","Q7216866":"post","Q7318358":"article","Q7582241":"article","Q10389811":"entry","Q13442814":"article-journal","Q17518557":"article","Q19917774":"article","Q30070590":"article-magazine","Q37974534":"article","Q637866":"review-book","Q5196473":"review","Q5251247":"review","Q42350535":"article","Q51282711":"thesis","Q51282766":"thesis","Q51282798":"thesis","Q51282875":"thesis","Q51282918":"thesis","Q51282969":"thesis","Q51282999":"thesis","Q51283026":"thesis","Q51283053":"thesis","Q51283145":"thesis","Q51283327":"thesis","Q55399605":"thesis","Q58010711":"article","Q60559362":"article","Q480498":"legal_case","Q697327":"legal_case","Q1469824":"dataset","Q2055205":"legal_case","Q162827":"map","Q460214":"map","Q2259701":"map","Q253623":"patent","Q22909582":"review","Q1172480":"dataset","Q45941145":"dataset","Q56515249":"review","Q61992233":"review","Q16968990":"book","Q21191270":"broadcast","Q26225677":"motion_picture","Q56753859":"map","Q57933693":"book","Q2823677":"legal_case","Q2865639":"legal_case","Q7307130":"legal_case","Q8016240":"legal_case","Q11827307":"legal_case","Q16738832":"legal_case","Q18146819":"legal_case","Q18536127":"legal_case","Q20917517":"legal_case","Q7366":"song","Q7302866":"song","Q25203386":"song","Q30637971":"legal_case","Q52768654":"map","Q56123235":"song","Q56612794":"song","Q60566516":"song","Q60809954":"song","Q61221204":"legal_case","Q24634210":"broadcast","Q61855877":"broadcast","Q1006160":"dataset","Q1980247":"chapter","Q19692072":"legal_case","Q23927052":"paper-conference","Q178651":"interview","Q861911":"speech","Q216526":"map","Q2940514":"map","Q3391101":"map","Q55089312":"dataset","Q56704157":"legal_case","Q26205359":"webpage","Q28326484":"webpage","Q28326490":"webpage","Q57312861":"webpage","Q106833":"book","Q128093":"book","Q20540385":"book","Q7433672":"book","Q193495":"book","Q3831846":"book","Q203490":"book","Q254554":"book","Q448980":"book","Q604219":"book","Q605076":"book","Q642946":"book","Q48498":"manuscript","Q727715":"book","Q747381":"book","Q855753":"book","Q890239":"book","Q913554":"book","Q918038":"book","Q922203":"book","Q944359":"book","Q1009641":"book","Q1631107":"dataset","Q26876682":"dataset","Q47114558":"dataset","Q1050259":"book","Q1062404":"book","Q1106827":"book","Q1173065":"book","Q1184488":"book","Q1238720":"book","Q1414013":"book","Q1415108":"book","Q162206":"map","Q191072":"map","Q320228":"map","Q352416":"map","Q441903":"map","Q573980":"map","Q602481":"map","Q715789":"map","Q728502":"map","Q1403728":"map","Q1410020":"map","Q1496857":"book","Q1528894":"book","Q1609706":"book","Q1616547":"book","Q1650727":"book","Q1760610":"book","Q1785330":"book","Q1870591":"book","Q1883939":"book","Q1977520":"book","Q1986787":"book","Q2069066":"book","Q2072218":"book","Q2104296":"book","Q2122442":"book","Q2128336":"book","Q2135225":"book","Q2208044":"book","Q2314679":"book","Q2331348":"book","Q2363145":"book","Q2374324":"book","Q2377289":"book","Q2396513":"book","Q2514954":"book","Q2537127":"book","Q2787237":"book","Q2831984":"book","Q3045706":"book","Q3831821":"book","Q3831847":"book","Q3915339":"book","Q4067007":"book","Q4224691":"book","Q4515179":"book","Q4677625":"book","Q4686085":"book","Q4931288":"book","Q5073531":"book","Q5093328":"book","Q5159310":"book","Q6675210":"book","Q8275050":"book","Q10666342":"book","Q11396303":"book","Q11750596":"book","Q12308638":"book","Q12410152":"book","Q12731131":"book","Q13137339":"book","Q13430107":"book","Q13636757":"book","Q13751595":"book","Q16046027":"book","Q16385949":"book","Q16507688":"book","Q16736578":"book","Q17134316":"book","Q21598767":"book","Q21662746":"book","Q22988237":"book","Q25679217":"book","Q12912091":"motion_picture","Q1453402":"map","Q1502030":"map","Q1664468":"map","Q1783108":"map","Q1787111":"dataset","Q1875628":"map","Q2089517":"map","Q2127425":"map","Q2353983":"map","Q2368091":"map","Q2426254":"map","Q2470969":"map","Q2471702":"map","Q2620815":"map","Q2656361":"map","Q2940478":"map","Q3509676":"map","Q3515498":"map","Q4505959":"map","Q4845530":"map","Q26267321":"book","Q26271823":"book","Q27560760":"book","Q29154430":"book","Q29586870":"book","Q31946409":"book","Q38143661":"book","Q52005090":"book","Q52153485":"book","Q55610842":"book","Q56552233":"book","Q57790812":"book","Q58142059":"book","Q58211632":"book","Q58807269":"book","Q60226001":"book","Q60475414":"book","Q60475468":"book","Q60627667":"book","Q61696018":"book","Q5047387":"map","Q5177325":"map","Q5434353":"map","Q6017843":"map","Q6664848":"map","Q7104865":"map","Q10544122":"map","Q11426259":"map","Q11618908":"map","Q14321585":"map","Q15877105":"map","Q17047956":"map","Q21935483":"map","Q22125384":"map","Q59457513":"map","Q60054914":"map","Q846662":"broadcast","Q5778924":"motion_picture","Q8513":"dataset","Q178376":"dataset","Q1675302":"map","Q267628":"article","Q871232":"article","Q3694604":"article","Q3719255":"article","Q19375673":"article","Q442919":"interview","Q850171":"interview","Q1384479":"interview","Q1477475":"interview","Q1067324":"motion_picture","Q1941707":"motion_picture","Q3055290":"interview","Q3055291":"interview","Q450873":"patent","Q681875":"patent","Q913351":"patent","Q5465504":"patent","Q2049275":"manuscript","Q213924":"manuscript","Q274076":"manuscript","Q597695":"manuscript","Q720106":"manuscript","Q865595":"manuscript","Q1067768":"manuscript","Q1266076":"manuscript","Q2209578":"manuscript","Q2217259":"manuscript","Q2531964":"manuscript","Q2816501":"manuscript","Q19787436":"patent","Q19787437":"patent","Q35639987":"patent","Q43305660":"patent","Q59818481":"dataset","Q1949797":"legal_case","Q18918145":"article-journal","Q2782326":"article-journal","Q3149408":"legal_case","Q18342738":"speech","Q3228788":"speech","Q3731370":"legal_case","Q17123524":"book","Q336144":"motion_picture","Q867242":"book","Q1093720":"treaty","Q193170":"treaty","Q625298":"treaty","Q837144":"treaty","Q864737":"treaty","Q931855":"treaty","Q1242841":"treaty","Q1414340":"treaty","Q1414472":"treaty","Q1498487":"treaty","Q1646218":"treaty","Q1671773":"treaty","Q1711115":"treaty","Q2290707":"treaty","Q2300991":"treaty","Q2465017":"treaty","Q3125472":"manuscript","Q3220177":"manuscript","Q3240926":"manuscript","Q3252544":"manuscript","Q3560324":"manuscript","Q3749265":"manuscript","Q3824506":"treaty","Q3960554":"manuscript","Q4426710":"treaty","Q4475654":"manuscript","Q4872029":"treaty","Q4985043":"treaty","Q7012086":"manuscript","Q7452368":"manuscript","Q9026959":"manuscript","Q11613006":"manuscript","Q13430250":"manuscript","Q17143154":"manuscript","Q21089188":"manuscript","Q22669850":"manuscript","Q22948347":"manuscript","Q25351420":"manuscript","Q31078443":"manuscript","Q33308141":"manuscript","Q11122":"treaty","Q451584":"legal_case","Q876477":"bill","Q1006544":"bill","Q1288220":"legal_case","Q2206565":"legal_case","Q2783852":"legal_case","Q5500839":"legal_case","Q7246224":"bill","Q7257705":"bill","Q7885007":"bill","Q859161":"dataset","Q1650567":"webpage","Q11439":"webpage","Q16602140":"bill","Q16821677":"bill","Q28457660":"bill","Q2261569":"webpage","Q2641220":"webpage","Q2737701":"webpage","Q14204246":"webpage","Q21025364":"webpage","Q23691297":"webpage","Q58040463":"webpage","Q44873079":"interview","Q4202018":"interview","Q4317093":"interview","Q7256239":"interview","Q7625207":"interview","Q8776455":"interview","Q45933791":"interview","Q60723716":"interview","Q6908053":"treaty","Q6934728":"treaty","Q6944158":"treaty","Q9160460":"treaty","Q9557810":"treaty","Q11455760":"treaty","Q11637357":"treaty","Q16567729":"treaty","Q19357149":"book","Q184528":"speech","Q203737":"speech","Q261197":"speech","Q554211":"speech","Q749054":"speech","Q787020":"speech","Q805093":"speech","Q960189":"speech","Q1346967":"speech","Q1840948":"speech","Q1980740":"speech","Q2183050":"speech","Q2895132":"speech","Q3030189":"speech","Q3040417":"speech","Q4329077":"speech","Q4388316":"speech","Q5152362":"speech","Q200092":"motion_picture","Q224700":"motion_picture","Q248583":"motion_picture","Q457832":"motion_picture","Q622548":"motion_picture","Q624771":"motion_picture","Q16835935":"treaty","Q16956642":"treaty","Q19958750":"treaty","Q27768121":"treaty","Q29526855":"treaty","Q29527278":"treaty","Q29527544":"treaty","Q29883540":"treaty","Q30921722":"treaty","Q38653134":"treaty","Q39234269":"treaty","Q41535471":"treaty","Q50192946":"treaty","Q57205857":"treaty","Q1194534":"dataset","Q7979513":"speech","Q11261492":"speech","Q11496736":"speech","Q11504413":"speech","Q13611058":"speech","Q13632631":"speech","Q15853847":"speech","Q18907443":"speech","Q19776345":"speech","Q28472611":"speech","Q56191193":"speech","Q56192445":"speech","Q60061482":"speech","Q60780612":"speech","Q47123453":"report","Q1054574":"motion_picture","Q860626":"motion_picture","Q959790":"motion_picture","Q1788980":"motion_picture","Q2331945":"motion_picture","Q188473":"motion_picture","Q2678111":"motion_picture","Q2991560":"motion_picture","Q2484376":"motion_picture","Q16950433":"motion_picture","Q18331260":"motion_picture","Q19952560":"motion_picture","Q5428822":"broadcast","Q13582719":"song","Q388480":"song","Q950683":"book","Q39825":"dataset","Q49918":"dataset","Q82753":"dataset","Q186588":"dataset","Q15706459":"article-journal","Q59387148":"report","Q6960620":"book","Q7094076":"dataset","Q367680":"dataset","Q857354":"dataset","Q1503133":"book","Q3219655":"dataset","Q3304360":"dataset","Q5227330":"dataset","Q7943567":"dataset","Q17305522":"dataset","Q18814183":"dataset","Q21264512":"dataset","Q43570203":"dataset","Q44106130":"dataset","Q50826803":"dataset","Q55387750":"dataset","Q593744":"dataset","Q83790":"book","Q539662":"dataset","Q605175":"dataset","Q550089":"dataset","Q36524":"dataset","Q1673963":"dataset","Q17152639":"dataset","Q20088085":"entry-dictionary","Q15633587":"webpage","Q15138389":"webpage","Q20088089":"entry-dictionary","Q5398426":"broadcast","Q1259759":"broadcast","Q7724161":"broadcast","Q21664088":"broadcast","Q234262":"chapter","Q21481766":"chapter","Q26989423":"chapter","Q29154515":"chapter","Q43148525":"chapter","Q43180447":"chapter","Q53460949":"chapter","Q327349":"dataset","Q1394657":"dataset","Q1988927":"dataset","Q201456":"dataset","Q220393":"dataset","Q3071343":"dataset","Q254213":"dataset","Q319949":"dataset","Q672598":"dataset","Q780605":"dataset","Q815410":"dataset","Q819688":"dataset","Q854459":"dataset","Q897682":"dataset","Q1114135":"dataset","Q1147639":"dataset","Q1400059":"dataset","Q1665882":"dataset","Q1754061":"dataset","Q1915979":"dataset","Q1991865":"dataset","Q2038458":"dataset","Q2249973":"dataset","Q2597555":"dataset","Q3346024":"dataset","Q5141544":"dataset","Q5146094":"dataset","Q5962346":"dataset","Q6941730":"dataset","Q7096331":"dataset","Q10413470":"dataset","Q15194024":"dataset","Q11722865":"dataset","Q273057":"dataset","Q16832380":"dataset","Q20820424":"dataset","Q22692845":"dataset","Q52666561":"dataset","Q59209277":"dataset","Q59977151":"dataset","Q60686104":"dataset","Q2262868":"dataset","Q7449052":"dataset","Q596138":"motion_picture","Q3464665":"broadcast","Q24862":"motion_picture","Q7751682":"motion_picture","Q187044":"article-newspaper","Q22812458":"broadcast","Q170238":"broadcast","Q309481":"article-newspaper","Q2495037":"article-newspaper","Q2602337":"article-newspaper","Q5149212":"article-newspaper","Q17628188":"article-newspaper","Q17633526":"article-newspaper","Q17928402":"post-weblog","Q50081413":"webpage","Q20136634":"article","Q43290228":"article","Q57988118":"post","Q40745":"legal_case","Q245072":"legal_case","Q321568":"legal_case","Q375727":"legal_case","Q699735":"report","Q836925":"report","Q788874":"legal_case","Q830689":"report","Q1668727":"report","Q1498464":"legal_case","Q1926270":"report","Q2070370":"legal_case","Q2145003":"legal_case","Q2307704":"report","Q2309880":"report","Q2677586":"report","Q3000100":"report","Q3922396":"legal_case","Q4343952":"report","Q4690599":"report","Q6451276":"report","Q7968600":"legal_case","Q7918438":"report","Q12038591":"legal_case","Q13433827":"entry","Q15629444":"report","Q17090395":"report","Q17329259":"entry-encyclopedia","Q19355445":"report","Q61704031":"broadcast","Q27027169":"report","Q41274869":"report","Q47126552":"report","Q56013707":"report","Q58089619":"legal_case","Q157394":"motion_picture","Q207601":"broadcast","Q1504425":"article-journal","Q1241826":"broadcast","Q2155186":"broadcast","Q2435927":"broadcast","Q2774197":"article-journal","Q3588923":"broadcast","Q5177022":"broadcast","Q7316896":"article-journal","Q7551315":"motion_picture","Q10709386":"broadcast","Q622812":"broadcast","Q11079003":"broadcast","Q10885494":"article-journal","Q11293915":"broadcast","Q11325507":"broadcast","Q11334197":"broadcast","Q11351206":"broadcast","Q11378697":"broadcast","Q187947":"musical_score","Q11451968":"broadcast","Q11483878":"broadcast","Q11491683":"broadcast","Q12183006":"article-journal","Q18458820":"broadcast","Q56478376":"article-journal","Q58038936":"article-journal","Q58898396":"article-journal","Q58900805":"article-journal","Q58901470":"article-journal","Q58902427":"article-journal","Q59458414":"article-journal","Q4249087":"legal_case","Q5710433":"legal_case","Q60456691":"legal_case","Q17074865":"map","Q18609332":"legal_case","Q29197":"broadcast","Q18011171":"motion_picture","Q506240":"motion_picture","Q653916":"motion_picture","Q240862":"motion_picture","Q914242":"motion_picture","Q5287435":"broadcast","Q5338721":"motion_picture","Q13359539":"broadcast","Q21191265":"broadcast","Q26225765":"motion_picture","Q29555881":"broadcast","Q50062923":"broadcast","Q50914552":"broadcast","Q61220733":"broadcast","Q1924747":"dataset","Q26868375":"dataset","Q61782522":"dataset","Q2033233":"dataset","Q39086821":"review","Q595971":"dataset","Q3539533":"dataset","Q276":"broadcast","Q182415":"broadcast","Q336181":"broadcast","Q356055":"broadcast","Q358942":"broadcast","Q431102":"broadcast","Q661436":"broadcast","Q677466":"motion_picture","Q854995":"broadcast","Q986699":"broadcast","Q1261214":"broadcast","Q1358344":"broadcast","Q1366112":"broadcast","Q1407240":"broadcast","Q1407245":"broadcast","Q1472288":"broadcast","Q1619206":"broadcast","Q1684600":"broadcast","Q1819008":"broadcast","Q1962634":"broadcast","Q1857766":"broadcast","Q1924371":"broadcast","Q1948292":"broadcast","Q2081003":"broadcast","Q2231383":"broadcast","Q2304946":"broadcast","Q3744532":"broadcast","Q5455086":"broadcast","Q6626746":"broadcast","Q7697093":"broadcast","Q14623351":"broadcast","Q3511312":"broadcast","Q10676514":"broadcast","Q202866":"motion_picture","Q1107":"motion_picture","Q581714":"broadcast","Q21191019":"broadcast","Q11086742":"motion_picture","Q11504513":"broadcast","Q14942329":"broadcast","Q15836186":"broadcast","Q16068806":"broadcast","Q16206641":"broadcast","Q17145545":"broadcast","Q18640746":"broadcast","Q19845560":"broadcast","Q19973797":"broadcast","Q21217315":"broadcast","Q25090976":"broadcast","Q27912070":"broadcast","Q28664032":"broadcast","Q34682961":"broadcast","Q46706005":"broadcast","Q118171":"dataset","Q192588":"dataset","Q193351":"dataset","Q212805":"dataset","Q333761":"dataset","Q702448":"dataset","Q1869909":"motion_picture","Q29982285":"broadcast","Q780524":"dataset","Q989016":"dataset","Q1172362":"dataset","Q1235236":"dataset","Q1373925":"dataset","Q1391125":"dataset","Q1393704":"dataset","Q1414426":"dataset","Q1494224":"dataset","Q1519460":"dataset","Q1787017":"dataset","Q1957894":"dataset","Q2599456":"dataset","Q2274762":"dataset","Q2302053":"dataset","Q2404903":"dataset","Q2532732":"dataset","Q2881060":"dataset","Q2912944":"dataset","Q3133368":"dataset","Q3454922":"dataset","Q4117139":"dataset","Q4501235":"dataset","Q4677551":"dataset","Q5062195":"dataset","Q5322831":"dataset","Q5473309":"dataset","Q5572370":"dataset","Q7246853":"dataset","Q7702836":"dataset","Q9067653":"dataset","Q14806568":"dataset","Q15097084":"dataset","Q15100572":"dataset","Q16155335":"dataset","Q17014602":"dataset","Q22811662":"dataset","Q24579448":"dataset","Q28146196":"dataset","Q33270056":"dataset","Q36570165":"dataset","Q45028176":"dataset","Q54933017":"dataset","Q55341040":"dataset","Q59157251":"dataset","Q13406463":"webpage","Q60856733":"dataset","Q521414":"dataset","Q883895":"dataset","Q986756":"dataset","Q1345528":"dataset","Q3404855":"dataset","Q3405306":"dataset","Q3518943":"dataset","Q3664416":"dataset","Q4127466":"dataset","Q4350734":"dataset","Q60557971":"dataset","Q4350735":"dataset","Q4350754":"dataset","Q5058966":"dataset","Q5058970":"dataset","Q5058971":"dataset","Q5058968":"dataset","Q5058969":"dataset","Q5058974":"dataset","Q5058975":"dataset","Q5058972":"dataset","Q5058978":"dataset","Q5058977":"dataset","Q5058981":"dataset","Q5058989":"dataset","Q5334384":"dataset","Q7015254":"dataset","Q10497456":"dataset","Q12058091":"dataset","Q16056280":"dataset","Q19894430":"dataset","Q24934691":"dataset","Q25383554":"dataset","Q26207721":"dataset","Q28730356":"dataset","Q29795177":"dataset","Q8025448":"book","Q1114458":"book","Q3027814":"book","Q3268307":"book","Q3491290":"book","Q4955683":"book","Q5197887":"book","Q6071891":"book","Q5296":"webpage","Q57819011":"legal_case","Q57821094":"legal_case","Q218013":"dataset","Q283579":"dataset","Q426674":"dataset","Q479833":"dataset","Q721795":"dataset","Q838281":"dataset","Q843670":"dataset","Q877809":"dataset","Q900856":"dataset","Q949532":"dataset","Q1265166":"dataset","Q1571814":"dataset","Q2025786":"book","Q2250844":"book","Q4034405":"book","Q5227352":"dataset","Q2115":"dataset","Q14679":"dataset","Q577697":"map","Q5150048":"map","Q16840211":"book","Q21032630":"book","Q8034663":"book","Q11191558":"book","Q13769783":"dataset","Q14902318":"dataset","Q24063789":"dataset","Q25975660":"dataset","Q26260540":"dataset","Q11266439":"webpage","Q26267864":"dataset","Q26987229":"dataset","Q27198004":"dataset","Q28948553":"dataset","Q29053519":"dataset","Q29694587":"dataset","Q41709380":"dataset","Q47459830":"dataset","Q57936091":"book","Q58902997":"book","Q7572716":"dataset","Q59913845":"song","Q2143665":"motion_picture","Q1957385":"motion_picture","Q5769663":"motion_picture","Q5855976":"motion_picture","Q1441669":"broadcast","Q1441929":"broadcast","Q16943561":"broadcast","Q19858063":"broadcast","Q19858074":"broadcast","Q19858077":"broadcast","Q19858082":"broadcast","Q19858080":"broadcast","Q19858086":"broadcast","Q19858087":"broadcast","Q19858088":"broadcast","Q19858095":"broadcast","Q19858093":"broadcast","Q19858098":"broadcast","Q19858107":"broadcast","Q19858110":"broadcast","Q19858108":"broadcast","Q19858123":"broadcast","Q19858126":"broadcast","Q19858124":"broadcast","Q19858125":"broadcast","Q19858142":"broadcast","Q19858143":"broadcast","Q19858140":"broadcast","Q19858141":"broadcast","Q19859744":"broadcast","Q19859780":"broadcast","Q1271915":"dataset","Q2250805":"map","Q2359829":"map","Q2415383":"map","Q2869471":"map","Q4816871":"map","Q5135690":"map","Q11025270":"map","Q21936815":"map","Q21938018":"map","Q26885495":"map","Q333779":"map","Q640492":"map","Q690851":"manuscript","Q1105486":"manuscript","Q1501880":"map","Q1501945":"map","Q1550537":"map","Q1974665":"map","Q2915844":"map","Q54298448":"map","Q21188110":"broadcast","Q918098":"broadcast","Q4765080":"broadcast","Q17113138":"broadcast","Q856314":"manuscript","Q928128":"manuscript","Q19969434":"manuscript","Q5647631":"manuscript","Q1190781":"manuscript","Q1620808":"manuscript","Q1675712":"manuscript","Q3637297":"manuscript","Q18558914":"manuscript","Q492264":"musical_score","Q10590726":"motion_picture","Q60259696":"manuscript","Q60323106":"manuscript","Q60325498":"manuscript","Q60363009":"manuscript","Q2552822":"musical_score","Q7452061":"musical_score","Q3962157":"map","Q16825889":"map","Q1826720":"map","Q3935817":"dataset","Q18616720":"dataset","Q7601206":"dataset","Q7620972":"map","Q1353555":"dataset","Q22961568":"book","Q93204":"motion_picture","Q7832972":"motion_picture","Q312083":"map","Q322943":"treaty","Q459435":"motion_picture","Q587240":"manuscript","Q595819":"treaty","Q850950":"dataset","Q1003870":"treaty","Q1688818":"map","Q1048515":"map","Q1473669":"manuscript","Q1667520":"map","Q2723202":"map","Q2941628":"dataset","Q2981686":"manuscript","Q2981685":"manuscript","Q7551149":"motion_picture","Q2933856":"book","Q266680":"map","Q1702772":"map","Q2035351":"map","Q2073537":"manuscript","Q2204393":"map","Q2325507":"map","Q5469880":"report","Q5469893":"report","Q5469912":"report","Q10438653":"map","Q42793629":"speech","Q2678443":"dataset","Q1923776":"book","Q2981450":"book","Q1413174":"dataset","Q185529":"motion_picture","Q16254232":"motion_picture","Q31803237":"treaty","Q32945468":"dataset","Q59825643":"dataset","Q934552":"dataset","Q200562":"broadcast","Q303064":"broadcast","Q1484397":"broadcast","Q2049337":"broadcast","Q2123557":"broadcast","Q2308891":"report","Q2665960":"report","Q5227671":"broadcast","Q18030695":"report","Q18385907":"broadcast","Q21190411":"broadcast","Q47512784":"report","Q56330488":"book","Q33111614":"motion_picture","Q484692":"song","Q1033831":"song","Q1497584":"book","Q19705":"book","Q628080":"book","Q1535505":"book","Q2333573":"book","Q3357101":"book","Q12041885":"book","Q5151497":"motion_picture","Q7999883":"article","Q18398246":"motion_picture","Q56309057":"manuscript","Q61314299":"dataset","Q234280":"chapter","Q234300":"chapter","Q862334":"book","Q2973181":"motion_picture","Q3072049":"motion_picture","Q1747837":"motion_picture","Q12029612":"dataset","Q50380591":"book","Q51881567":"book","Q60029764":"book","Q914229":"article","Q5465451":"article","Q20135338":"motion_picture","Q1541065":"report","Q2594143":"dataset","Q16664076":"report","Q441261":"dataset","Q457843":"dataset","Q783287":"dataset","Q1115961":"dataset","Q1713174":"dataset","Q3327521":"dataset","Q151":"dataset","Q17123180":"motion_picture","Q15982056":"article-newspaper","Q59191021":"dataset","Q59248059":"dataset","Q59248072":"dataset","Q1371849":"dataset","Q17438413":"dataset","Q61914117":"dataset","Q3352071":"motion_picture","Q25051296":"webpage","Q25054829":"dataset","Q267136":"dataset","Q488053":"book","Q914881":"book","Q1397073":"dataset","Q1662581":"dataset","Q2268965":"dataset","Q3292731":"book","Q3406872":"dataset","Q5033354":"dataset","Q5227322":"dataset","Q5532670":"dataset","Q7515656":"book","Q7598341":"dataset","Q7995661":"dataset","Q14523803":"book","Q17146953":"dataset","Q25110279":"book","Q30008669":"book","Q30009376":"book","Q41623316":"dataset","Q38647918":"book","Q249697":"speech","Q1428914":"dataset","Q255135":"book","Q471894":"book","Q586744":"book","Q956165":"book","Q1569753":"book","Q2939758":"book","Q12040484":"book","Q13583784":"book","Q59351530":"book","Q61020892":"book","Q17086104":"map","Q17147147":"map","Q19393521":"map","Q58884":"broadcast","Q2635894":"broadcast","Q193842":"map","Q261468":"map","Q943929":"song","Q1123037":"song","Q336822":"song","Q336371":"map","Q459798":"map","Q831939":"map","Q865144":"map","Q889561":"map","Q1152543":"map","Q1187667":"broadcast","Q1281814":"map","Q1674401":"map","Q1742009":"broadcast","Q1778220":"map","Q1800237":"map","Q2126801":"map","Q2125867":"broadcast","Q2298569":"map","Q2940627":"map","Q4903803":"map","Q5687679":"map","Q10480692":"map","Q10604395":"map","Q10916116":"book","Q11960416":"map","Q12008992":"map","Q58901209":"dataset","Q19969268":"broadcast","Q20741385":"book","Q21009694":"book","Q24879310":"dataset","Q56028349":"book","Q56240541":"broadcast","Q56697520":"book","Q60586493":"dataset","Q183169":"webpage","Q825914":"book","Q1391116":"dataset","Q1516252":"book","Q1569406":"dataset","Q1609353":"dataset","Q1609504":"dataset","Q1862738":"book","Q2110197":"dataset","Q3237931":"broadcast","Q3956369":"broadcast","Q3962380":"dataset","Q4769616":"dataset","Q4804740":"book","Q5051330":"dataset","Q5615468":"dataset","Q6822329":"dataset","Q6912943":"broadcast","Q7144753":"dataset","Q10688394":"book","Q12331427":"dataset","Q15961983":"broadcast","Q18311760":"broadcast","Q1499601":"dataset","Q5374928":"map","Q7444356":"motion_picture","Q6729489":"motion_picture","Q7444692":"map","Q8036547":"map","Q1383152":"dataset","Q3564515":"speech","Q3890208":"dataset","Q21050458":"dataset","Q21050912":"dataset","Q26721650":"dataset","Q31841013":"dataset","Q1865123":"dataset","Q206290":"dataset","Q1088118":"dataset","Q7502102":"dataset","Q17121221":"map","Q23888763":"book","Q46992920":"speech","Q52506277":"dataset","Q51719975":"broadcast","Q19364663":"book","Q22938710":"book","Q193977":"motion_picture","Q59032066":"song","Q1989725":"song","Q2135500":"manuscript","Q3153927":"speech","Q526877":"broadcast","Q742157":"article-newspaper","Q6899707":"map","Q725377":"book","Q10541153":"book","Q21198407":"book","Q369074":"dataset","Q3249257":"motion_picture","Q4373044":"motion_picture","Q172067":"motion_picture","Q1046788":"motion_picture","Q24886171":"broadcast","Q53746253":"broadcast","Q16709869":"book","Q16960707":"book","Q19941906":"book","Q21660824":"book","Q21818614":"book","Q57987419":"interview","Q57987455":"interview","Q57987589":"interview","Q61725752":"book","Q225672":"book","Q263790":"book","Q284465":"book","Q431193":"book","Q608971":"book","Q634123":"book","Q817063":"book","Q833590":"book","Q1027825":"book","Q1385360":"book","Q1754581":"book","Q2114246":"book","Q2144117":"book","Q2732056":"book","Q2955456":"book","Q4203401":"book","Q7163040":"book","Q7603925":"broadcast","Q12765421":"book","Q15276670":"book","Q15627042":"book","Q6548306":"book","Q12046416":"map","Q472298":"legal_case","Q1261319":"map","Q5563391":"map","Q26644852":"broadcast","Q29167422":"dataset","Q7211":"dataset","Q48473":"dataset","Q217327":"legal_case","Q951437":"dataset","Q636033":"dataset","Q672593":"dataset","Q739047":"dataset","Q891854":"legal_case","Q1207369":"dataset","Q1391014":"dataset","Q1642648":"dataset","Q2859990":"dataset","Q3307317":"dataset","Q4330194":"dataset","Q6813020":"legal_case","Q6901292":"legal_case","Q7251471":"dataset","Q18711682":"legal_case","Q20057286":"dataset","Q23015465":"dataset","Q24243801":"dataset","Q24249534":"dataset","Q25917186":"legal_case","Q27214933":"dataset","Q28934204":"legal_case","Q39740866":"dataset","Q59495116":"dataset","Q60208424":"dataset","Q61037469":"legal_case","Q40426579":"map","Q43037778":"map","Q47008743":"map","Q26225493":"book","Q29043181":"dataset","Q55850593":"song","Q55850643":"song","Q58885732":"song","Q58885754":"song","Q927803":"song","Q430010":"song","Q2292588":"song","Q2499178":"dataset","Q2560570":"dataset","Q3077240":"dataset","Q3491832":"dataset","Q1235234":"dataset","Q7096323":"dataset","Q7831478":"song","Q1564816":"legal_case","Q2698974":"legal_case","Q20089346":"motion_picture","Q5366020":"motion_picture","Q11526166":"speech","Q4167410":"webpage","Q845159":"motion_picture","Q1003021":"dataset","Q4167836":"webpage","Q1249224":"report","Q11382506":"webpage","Q15475226":"webpage","Q15475319":"webpage","Q1991869":"book","Q11690026":"book","Q31209114":"webpage","Q35243371":"webpage","Q48781895":"motion_picture","Q56005592":"webpage","Q17586363":"book","Q20043999":"book","Q59738577":"webpage","Q61033232":"webpage","Q61033736":"dataset","Q61034350":"webpage","Q29573701":"dataset","Q645928":"motion_picture","Q3209941":"report","Q5165404":"bill","Q11078958":"report","Q45182324":"article-journal","Q56119332":"post-weblog","Q60797":"speech","Q1474597":"speech","Q2069352":"book","Q2983424":"motion_picture","Q19359000":"report","Q24067746":"post-weblog","Q51844620":"dataset","Q51539995":"webpage","Q55422400":"broadcast","Q130232":"motion_picture","Q635115":"dataset","Q1553078":"dataset","Q1784036":"book","Q1813223":"book","Q2326951":"book","Q2500820":"book","Q3423635":"dataset","Q4363806":"book","Q14605760":"webpage","Q21875313":"book","Q24633474":"broadcast","Q28136925":"broadcast","Q28135032":"broadcast","Q28472638":"speech","Q28472722":"speech","Q1011299":"broadcast","Q3276244":"broadcast","Q29883647":"treaty","Q42214612":"treaty","Q60215679":"broadcast","Q60215966":"broadcast","Q7033567":"treaty","Q8576":"treaty","Q3257212":"book","Q5166307":"treaty","Q7865023":"treaty","Q8187836":"treaty","Q16923948":"treaty","Q17211914":"treaty","Q20874666":"treaty","Q39233713":"treaty","Q8041497":"patent","Q50823049":"report","Q61715571":"book","Q193934":"book","Q193955":"book","Q990683":"book","Q12047175":"book","Q1250520":"dataset","Q2334774":"song","Q22001389":"dataset","Q61782519":"dataset","Q112762":"song","Q177771":"song","Q178122":"song","Q207683":"song","Q216860":"song","Q261434":"song","Q318894":"song","Q319448":"song","Q380233":"song","Q493169":"song","Q502658":"song","Q523896":"song","Q591990":"song","Q608253":"song","Q744327":"song","Q758422":"song","Q783874":"song","Q784074":"song","Q820119":"song","Q844450":"song","Q873000":"song","Q944800":"song","Q959583":"song","Q988502":"song","Q1009280":"song","Q2281713":"song","Q1033810":"song","Q1033813":"song","Q1151663":"song","Q1195253":"song","Q1195630":"song","Q1228189":"song","Q20477577":"dataset","Q1972954":"dataset","Q842256":"motion_picture","Q643684":"motion_picture","Q1033573":"dataset","Q1205607":"dataset","Q1971947":"dataset","Q2145124":"dataset","Q2819247":"dataset","Q4685824":"dataset","Q7002108":"dataset","Q7200622":"dataset","Q8267601":"dataset","Q9732903":"webpage","Q11002482":"webpage","Q12096573":"webpage","Q16059585":"webpage","Q16059613":"webpage","Q16059624":"webpage","Q19208935":"webpage","Q21450877":"webpage","Q31936067":"dataset","Q47500192":"dataset","Q1229479":"song","Q1232283":"song","Q1236108":"song","Q1288193":"song","Q1372064":"song","Q1382036":"song","Q1779217":"song","Q1779319":"song","Q1899706":"song","Q1905727":"song","Q1942905":"song","Q1956166":"song","Q1963108":"song","Q1966622":"song","Q2038845":"song","Q2058312":"song","Q2108499":"song","Q2165184":"song","Q2235992":"song","Q2298624":"song","Q2312959":"song","Q2358279":"song","Q2544997":"song","Q2707688":"song","Q2737175":"song","Q2891357":"song","Q2894096":"song","Q2956164":"song","Q2956172":"song","Q3033130":"song","Q3246270":"song","Q3299089":"song","Q3482281":"song","Q3562031":"song","Q3843655":"song","Q3889661":"song","Q3918025":"song","Q4056436":"song","Q4130112":"song","Q4528554":"song","Q4770819":"song","Q4797274":"song","Q5031532":"song","Q5037289":"song","Q5747946":"song","Q5766029":"song","Q6109162":"song","Q7148059":"song","Q7314000":"song","Q7561608":"song","Q7824869":"song","Q8053529":"song","Q8261762":"song","Q10677514":"song","Q21653344":"song","Q56572789":"song","Q503354":"song","Q11214531":"song","Q12115862":"song","Q12135013":"song","Q12313565":"song","Q13829124":"song","Q15810872":"song","Q15907187":"song","Q16084298":"song","Q16194930":"song","Q16912992":"song","Q17118203":"song","Q17150323":"song","Q18012876":"song","Q18406550":"song","Q19607140":"song","Q20087039":"song","Q20107778":"song","Q20980372":"song","Q21127215":"song","Q22086714":"song","Q23072435":"song","Q25022242":"song","Q27981708":"song","Q27981857":"song","Q29051387":"song","Q37731261":"song","Q42681239":"song","Q46863086":"song","Q55596270":"song","Q56425213":"song","Q56425237":"song","Q61688673":"song","Q229390":"motion_picture","Q319221":"motion_picture","Q369747":"motion_picture","Q370630":"motion_picture","Q421719":"motion_picture","Q430525":"motion_picture","Q455315":"motion_picture","Q459290":"motion_picture","Q505119":"motion_picture","Q517386":"motion_picture","Q652256":"motion_picture","Q663106":"motion_picture","Q790192":"motion_picture","Q848512":"motion_picture","Q1060398":"motion_picture","Q1146335":"motion_picture","Q1200678":"motion_picture","Q1251417":"motion_picture","Q1320115":"motion_picture","Q1361932":"motion_picture","Q1397462":"motion_picture","Q1933746":"motion_picture","Q1935609":"motion_picture","Q2125170":"motion_picture","Q2156835":"motion_picture","Q2165644":"motion_picture","Q2301591":"motion_picture","Q4382232":"broadcast","Q2321734":"motion_picture","Q2553613":"motion_picture","Q2903140":"motion_picture","Q3072043":"motion_picture","Q3250548":"motion_picture","Q3585697":"motion_picture","Q3648909":"motion_picture","Q3677141":"motion_picture","Q3677185":"motion_picture","Q3745400":"motion_picture","Q3745430":"motion_picture","Q4220915":"motion_picture","Q4484381":"motion_picture","Q5145881":"motion_picture","Q5378150":"motion_picture","Q7130449":"motion_picture","Q7858343":"motion_picture","Q9259727":"motion_picture","Q12309044":"motion_picture","Q12377598":"motion_picture","Q16721823":"motion_picture","Q16909344":"motion_picture","Q19799105":"motion_picture","Q19799133":"motion_picture","Q20442589":"motion_picture","Q20650540":"motion_picture","Q21182682":"motion_picture","Q24887738":"motion_picture","Q28735856":"motion_picture","Q29017630":"motion_picture","Q30070675":"motion_picture","Q30897819":"motion_picture","Q33373157":"motion_picture","Q43079104":"motion_picture","Q54086290":"motion_picture","Q54344007":"motion_picture","Q56192069":"motion_picture","Q58415294":"motion_picture","Q58903570":"motion_picture","Q61283808":"motion_picture","Q219557":"motion_picture","Q226730":"motion_picture","Q24865":"motion_picture","Q24869":"motion_picture","Q31235":"motion_picture","Q3956596":"book","Q20012720":"book","Q27070652":"book","Q738826":"speech","Q2623953":"speech","Q2781658":"speech","Q3479856":"speech","Q7454995":"speech","Q735478":"motion_picture","Q124922":"motion_picture","Q472637":"motion_picture","Q1092621":"motion_picture","Q1323308":"motion_picture","Q1352102":"motion_picture","Q1464369":"motion_picture","Q1474387":"motion_picture","Q1480924":"motion_picture","Q1760864":"motion_picture","Q1800833":"motion_picture","Q2084909":"motion_picture","Q27697957":"motion_picture","Q2670855":"motion_picture","Q3566966":"motion_picture","Q4765076":"motion_picture","Q20732395":"motion_picture","Q1684595":"dataset","Q7168625":"motion_picture","Q8192124":"motion_picture","Q5008290":"dataset","Q220399":"dataset","Q285745":"dataset","Q542475":"motion_picture","Q846544":"motion_picture","Q3072039":"motion_picture","Q23739":"broadcast","Q338632":"broadcast","Q288608":"broadcast","Q3421644":"broadcast","Q5465514":"broadcast","Q5812300":"broadcast","Q18340550":"webpage","Q21232614":"broadcast","Q1224870":"dataset","Q79715":"broadcast","Q278425":"dataset","Q548206":"motion_picture","Q632149":"motion_picture","Q996838":"motion_picture","Q1147986":"motion_picture","Q2258523":"map","Q2514870":"dataset","Q2559958":"broadcast","Q4342538":"map","Q15518544":"broadcast","Q15518777":"broadcast","Q20707560":"dataset","Q20871935":"motion_picture","Q55960075":"motion_picture","Q1224984":"dataset","Q5227308":"dataset","Q12328550":"dataset","Q20089094":"motion_picture","Q21040941":"dataset","Q668312":"motion_picture","Q30047053":"dataset","Q18493502":"legal_case","Q1067692":"motion_picture","Q18655723":"motion_picture","Q844993":"song","Q4763437":"book","Q19894488":"book","Q262533":"speech","Q591055":"speech","Q1851305":"speech","Q3588034":"speech","Q20669604":"speech","Q29642901":"dataset","Q1061420":"map","Q2914518":"map","Q186286":"broadcast","Q940462":"broadcast","Q15823625":"map","Q54328426":"broadcast","Q1713326":"motion_picture","Q4453959":"motion_picture","Q5905221":"musical_score","Q23368955":"motion_picture","Q55848868":"motion_picture","Q3072024":"motion_picture","Q965136":"map","Q3546572":"broadcast","Q5449041":"motion_picture","Q6645282":"broadcast","Q25360500":"broadcast","Q376820":"dataset","Q2422383":"dataset","Q14552560":"article-newspaper","Q219897":"dataset","Q787397":"map","Q14943256":"book","Q15715669":"map","Q3196335":"book","Q4700148":"book","Q11669289":"map","Q56683168":"map","Q6749508":"dataset","Q13039854":"dataset","Q19354904":"legal_case","Q25917154":"legal_case","Q25456031":"dataset","Q47484674":"dataset","Q948454":"dataset","Q1734165":"dataset","Q5441632":"book","Q7321644":"book","Q7890265":"book","Q28406796":"dataset","Q46130774":"dataset","Q54820068":"book","Q17146139":"map","Q23691":"song","Q54251760":"motion_picture","Q851995":"map","Q25336664":"dataset","Q11310550":"dataset","Q18086661":"dataset","Q18086666":"dataset","Q18086667":"dataset","Q18086665":"dataset","Q18086671":"dataset","Q18089574":"dataset","Q18089575":"dataset","Q18099930":"dataset","Q18100125":"dataset","Q18889352":"dataset","Q18922463":"dataset","Q20005020":"dataset","Q798134":"thesis","Q1414362":"thesis","Q30749496":"thesis","Q46629343":"thesis","Q51282441":"thesis","Q52823264":"thesis","Q58210330":"thesis","Q1907875":"thesis","Q23745":"broadcast","Q399811":"broadcast","Q775344":"broadcast","Q1658957":"broadcast","Q1786567":"broadcast","Q4783297":"broadcast","Q5219865":"broadcast","Q7185299":"broadcast","Q7731786":"broadcast","Q7892363":"broadcast","Q11086745":"broadcast","Q20986817":"broadcast","Q60393504":"broadcast","Q16342":"dataset","Q632285":"dataset","Q1751819":"dataset","Q2560532":"dataset","Q6517465":"dataset","Q1898445":"map","Q41436524":"book","Q50310598":"dataset","Q5366501":"broadcast","Q9018710":"broadcast","Q11935070":"broadcast","Q688869":"manuscript","Q962741":"manuscript","Q7797194":"dataset","Q1662452":"motion_picture","Q4499034":"song","Q6009879":"book","Q595801":"book","Q894351":"map","Q1352815":"broadcast","Q1569955":"dataset","Q2538131":"book","Q3348148":"dataset","Q5535082":"dataset","Q7574095":"dataset","Q47214765":"broadcast","Q61990518":"broadcast","Q2933978":"broadcast","Q6537693":"dataset","Q6888313":"book","Q12270042":"book","Q21292860":"broadcast","Q350514":"map","Q357674":"map","Q5191437":"dataset","Q24265951":"dataset","Q25110971":"book","Q29966258":"dataset","Q25894883":"dataset","Q2093973":"book","Q1711400":"broadcast","Q3071014":"broadcast","Q61029068":"webpage","Q61996773":"webpage","Q175902":"dataset","Q1295532":"webpage","Q1474116":"webpage","Q1501313":"dataset","Q1916557":"dataset","Q5333554":"dataset","Q7247749":"dataset","Q4330198":"dataset","Q5570651":"dataset","Q7251500":"dataset","Q7277178":"dataset","Q7689673":"dataset","Q15407973":"webpage","Q15647814":"webpage","Q16335141":"dataset","Q18392279":"dataset","Q15623926":"webpage","Q22808320":"webpage","Q24571879":"webpage","Q24574745":"webpage","Q17362920":"webpage","Q28065731":"webpage","Q28208970":"dataset","Q30432511":"webpage","Q54662266":"webpage","Q56428020":"webpage","Q58036154":"webpage","Q58181524":"webpage","Q58423626":"webpage","Q59541917":"webpage","Q59542487":"webpage","Q5227321":"dataset","Q178840":"broadcast","Q482612":"broadcast","Q662197":"broadcast","Q1054760":"broadcast","Q1273568":"broadcast","Q1676730":"broadcast","Q1802588":"broadcast","Q2388283":"broadcast","Q3189895":"broadcast","Q3951815":"broadcast","Q5778915":"broadcast","Q7050677":"broadcast","Q7135559":"broadcast","Q9335577":"broadcast","Q9671105":"broadcast","Q20061443":"broadcast","Q20220309":"broadcast","Q20267837":"broadcast","Q21233490":"broadcast","Q21191068":"broadcast","Q27868077":"broadcast","Q30939244":"broadcast","Q55082620":"broadcast","Q56320653":"broadcast","Q45787211":"dataset","Q1799894":"broadcast","Q19220511":"dataset","Q7841716":"motion_picture","Q5987970":"book","Q7864671":"motion_picture","Q21504449":"broadcast","Q61896850":"motion_picture","Q61911910":"motion_picture","Q15184295":"webpage","Q29581299":"book","Q3507630":"dataset","Q5571730":"webpage","Q13231199":"webpage","Q15851373":"webpage","Q19692233":"webpage","Q2921195":"book","Q20009925":"webpage","Q21167233":"webpage","Q25456482":"webpage","Q26884324":"webpage","Q28197061":"webpage","Q30032916":"webpage","Q33532284":"webpage","Q37152856":"webpage","Q19887878":"webpage","Q30044873":"report","Q11664270":"broadcast","Q1852859":"map","Q2297927":"motion_picture","Q2188827":"manuscript","Q4922471":"broadcast","Q16247289":"broadcast","Q25381170":"book","Q25696292":"dataset","Q11398":"dataset","Q210918":"dataset","Q267474":"dataset","Q1062352":"dataset","Q548492":"dataset","Q732744":"dataset","Q1520859":"dataset","Q1744559":"dataset","Q2748242":"dataset","Q3445240":"dataset","Q3518464":"dataset","Q3546241":"dataset","Q5172500":"dataset","Q6857882":"dataset","Q7398671":"dataset","Q22808060":"song","Q22298551":"dataset","Q22935148":"dataset","Q23014490":"dataset","Q23015153":"dataset","Q185867":"motion_picture","Q192625":"dataset","Q784969":"dataset","Q917904":"dataset","Q3546232":"dataset","Q4382932":"dataset","Q2357684":"dataset","Q2490652":"dataset","Q562667":"treaty","Q11510761":"treaty","Q39234115":"treaty","Q39235586":"treaty","Q39236188":"treaty","Q39236506":"treaty","Q39237589":"treaty","Q691836":"dataset","Q2299775":"dataset","Q2584888":"dataset","Q934210":"dataset","Q16355541":"dataset","Q57560929":"song","Q59826893":"dataset","Q478216":"dataset","Q1138178":"dataset","Q2621880":"dataset","Q2859969":"dataset","Q2964498":"dataset","Q4223049":"dataset","Q4421014":"dataset","Q16549505":"dataset","Q21441341":"dataset","Q26975748":"dataset","Q5366097":"motion_picture","Q1137588":"song","Q6022825":"broadcast","Q15977715":"broadcast","Q24906243":"broadcast","Q471839":"motion_picture","Q1794431":"motion_picture","Q3080071":"broadcast","Q6942568":"motion_picture","Q11900986":"motion_picture","Q16677772":"motion_picture","Q17517379":"motion_picture","Q20667187":"motion_picture","Q29168811":"motion_picture","Q34487266":"broadcast","Q47486001":"motion_picture","Q57780531":"motion_picture","Q223770":"motion_picture","Q4836991":"motion_picture","Q212781":"motion_picture","Q41270":"song","Q383904":"song","Q564848":"song","Q721644":"song","Q5158512":"song","Q6037387":"song","Q3962943":"motion_picture","Q21759196":"motion_picture","Q60630702":"motion_picture","Q222639":"motion_picture","Q1033891":"motion_picture","Q1535153":"motion_picture","Q1740789":"motion_picture","Q1776156":"motion_picture","Q1894374":"motion_picture","Q2421031":"motion_picture","Q332564":"motion_picture","Q853630":"motion_picture","Q909586":"motion_picture","Q987831":"motion_picture","Q1341051":"motion_picture","Q1342372":"motion_picture","Q1696148":"motion_picture","Q2584671":"motion_picture","Q4174664":"motion_picture","Q883179":"motion_picture","Q4925568":"motion_picture","Q5551875":"motion_picture","Q13377551":"motion_picture","Q16247268":"motion_picture","Q18089587":"motion_picture","Q18355406":"motion_picture","Q18648407":"motion_picture","Q4840473":"motion_picture","Q20656232":"motion_picture","Q23044991":"motion_picture","Q25110269":"motion_picture","Q27959357":"motion_picture","Q28968258":"motion_picture","Q28968511":"motion_picture","Q43911809":"motion_picture","Q1276148":"dataset","Q3546236":"dataset","Q819652":"motion_picture","Q1433443":"motion_picture","Q2096633":"motion_picture","Q10654943":"motion_picture","Q15898171":"motion_picture","Q1502766":"motion_picture","Q22981906":"motion_picture","Q33218678":"dataset","Q33219080":"dataset","Q1502102":"dataset","Q290066":"dataset","Q21473954":"dataset","Q884257":"map","Q1136047":"song","Q3442060":"motion_picture","Q6722594":"motion_picture","Q22802898":"dataset","Q1147354":"song","Q541947":"song","Q762917":"song","Q896981":"song","Q1329536":"song","Q1523875":"song","Q1802243":"song","Q4666464":"song","Q5419334":"song","Q5956747":"song","Q5956766":"song","Q10288496":"song","Q13142456":"song","Q54932319":"broadcast","Q16523070":"book","Q1345076":"dataset","Q1331138":"dataset","Q4984974":"motion_picture","Q5442753":"motion_picture","Q59688552":"motion_picture","Q1030329":"motion_picture","Q2560052":"motion_picture","Q50306849":"dataset","Q9351310":"dataset","Q17093751":"motion_picture","Q55616422":"motion_picture","Q5400070":"motion_picture","Q7097859":"motion_picture","Q2518205":"motion_picture","Q39774781":"song","Q40039114":"song","Q496523":"motion_picture","Q586250":"motion_picture","Q658334":"song","Q1206090":"song","Q2642760":"motion_picture","Q2956178":"song","Q3656521":"song","Q4184716":"song","Q4400497":"song","Q5897543":"motion_picture","Q10743749":"song","Q11989328":"song","Q12623540":"song","Q19367312":"motion_picture","Q47011432":"broadcast","Q61057707":"broadcast","Q1192644":"broadcast","Q1193356":"broadcast","Q1193877":"broadcast","Q1193889":"broadcast","Q1198546":"broadcast","Q1200102":"broadcast","Q1200891":"broadcast","Q1203502":"broadcast","Q1328971":"broadcast","Q15548228":"broadcast","Q18611586":"broadcast","Q27986339":"broadcast","Q16984663":"motion_picture","Q535518":"motion_picture","Q583768":"motion_picture","Q1377546":"motion_picture","Q2254193":"motion_picture","Q2292320":"motion_picture","Q3677202":"motion_picture","Q4044177":"motion_picture","Q4075563":"motion_picture","Q731194":"motion_picture","Q5578091":"motion_picture","Q5768328":"motion_picture","Q6926334":"motion_picture","Q7116678":"motion_picture","Q2527949":"dataset","Q6410349":"song","Q58006100":"dataset","Q1065413":"dataset","Q1334294":"dataset","Q5281480":"dataset","Q14806579":"dataset","Q21629439":"broadcast","Q27965091":"broadcast","Q27965088":"broadcast","Q27965089":"broadcast","Q1117103":"motion_picture","Q15077373":"song","Q21848887":"song","Q42525933":"song","Q1246452":"song","Q1564657":"song","Q1786016":"song","Q4138449":"song","Q26211803":"dataset","Q28107644":"dataset","Q438958":"dataset","Q893182":"dataset","Q1361620":"dataset","Q1744558":"dataset","Q2558761":"broadcast","Q3663344":"dataset","Q5837451":"dataset","Q17080472":"dataset","Q18762344":"dataset","Q22936940":"dataset","Q51282626":"thesis","Q51283070":"thesis","Q51283092":"thesis","Q51283110":"thesis","Q51283164":"thesis","Q51283181":"thesis","Q51283199":"thesis","Q51283219":"thesis","Q51283231":"thesis","Q51283362":"thesis","Q1789476":"dataset","Q1741854":"broadcast","Q11396323":"motion_picture","Q1428162":"song","Q4440575":"song","Q2137852":"motion_picture","Q20443008":"motion_picture","Q9049284":"song","Q2976573":"dataset","Q7247163":"dataset","Q18327786":"dataset","Q18327800":"dataset","Q28444881":"song","Q47009776":"motion_picture","Q4078107":"song","Q12242979":"broadcast","Q1308255":"dataset","Q828962":"dataset","Q2976602":"dataset","Q881912":"broadcast","Q16861376":"dataset","Q59784758":"broadcast","Q829147":"song","Q6457531":"motion_picture","Q28030321":"broadcast","Q28225717":"broadcast","Q4663261":"webpage","Q15145755":"webpage","Q18707678":"webpage","Q18711811":"webpage","Q20160182":"webpage","Q20870830":"webpage","Q22676729":"webpage","Q26214208":"webpage","Q28801937":"webpage","Q30279428":"webpage","Q55510433":"webpage","Q59259626":"webpage","Q20769287":"webpage","Q23894233":"webpage","Q24046192":"webpage","Q24514938":"webpage","Q30330522":"webpage","Q38084761":"webpage","Q58118449":"webpage","Q2886579":"dataset","Q21623879":"webpage","Q28092864":"webpage","Q52147067":"webpage","Q18043430":"webpage","Q18810260":"dataset","Q18889371":"dataset","Q18889411":"dataset","Q20893947":"legal_case","Q43096126":"motion_picture","Q56876503":"webpage","Q58408484":"webpage","Q58492747":"webpage","Q61984657":"webpage","Q3309896":"motion_picture","Q5864844":"motion_picture","Q6190581":"webpage","Q25826840":"webpage","Q220898":"motion_picture","Q2513417":"dataset","Q56885002":"webpage","Q179600":"dataset","Q714750":"dataset","Q15101896":"dataset","Q56558180":"song","Q845648":"webpage","Q58310010":"book","Q16937368":"song","Q28135297":"song","Q50309914":"dataset","Q57560968":"song","Q61740934":"song","Q61729725":"song","Q1047299":"motion_picture","Q2281511":"motion_picture","Q4292083":"motion_picture","Q11446446":"motion_picture","Q11464558":"motion_picture","Q11620244":"motion_picture","Q11673786":"motion_picture","Q16000226":"motion_picture","Q43069510":"motion_picture","Q8066387":"motion_picture","Q16824564":"motion_picture","Q52631698":"song","Q20589414":"song","Q20621902":"song","Q19659229":"song","Q2997685":"song","Q5124548":"song","Q512410":"song","Q23978249":"song","Q6647160":"webpage","Q18170752":"song","Q5881246":"song","Q1723850":"motion_picture","Q169672":"motion_picture","Q622310":"motion_picture","Q3072042":"motion_picture","Q5104880":"motion_picture","Q193605":"song","Q20818018":"dataset","Q1065444":"motion_picture","Q5258881":"motion_picture","Q856638":"dataset","Q5769583":"motion_picture","Q5769580":"motion_picture","Q5769586":"motion_picture","Q5769589":"motion_picture","Q5769592":"motion_picture","Q34848596":"motion_picture","Q2145099":"motion_picture","Q43082648":"broadcast","Q21441352":"dataset","Q2976563":"dataset","Q4680764":"dataset","Q4936202":"dataset","Q4992609":"dataset","Q5281190":"dataset","Q5281191":"dataset","Q5281189":"dataset","Q5281192":"dataset","Q5281193":"dataset","Q5465786":"dataset","Q5575198":"dataset","Q7133628":"dataset","Q7133619":"dataset","Q7133626":"dataset","Q7133625":"dataset","Q7133631":"dataset","Q7133632":"dataset","Q7133633":"dataset","Q7135076":"dataset","Q7136196":"dataset","Q7532102":"dataset","Q7539622":"dataset","Q7539620":"dataset","Q7992082":"dataset","Q7992083":"dataset","Q7992119":"dataset","Q7992116":"dataset","Q7992128":"dataset","Q7992164":"dataset","Q17145514":"dataset","Q28130146":"dataset","Q28130147":"dataset","Q28130145":"dataset","Q28134034":"dataset","Q28134060":"dataset","Q28134100":"dataset","Q28134126":"dataset","Q4179738":"song","Q26829682":"webpage","Q22870229":"webpage","Q22875692":"webpage","Q22876063":"webpage","Q22876332":"webpage","Q25737003":"webpage","Q25830508":"webpage","Q57971242":"webpage","Q5611964":"webpage","Q5613278":"webpage","Q5615491":"webpage","Q5618337":"webpage","Q5620523":"webpage","Q5621344":"webpage","Q5622928":"webpage","Q5624848":"webpage","Q5626725":"webpage","Q5636579":"webpage","Q5827463":"webpage","Q5904431":"webpage","Q5911510":"webpage","Q6072180":"webpage","Q6232685":"webpage","Q6305829":"webpage","Q6372354":"webpage","Q6419146":"webpage","Q6499145":"webpage","Q6584170":"webpage","Q6584434":"webpage","Q6606549":"webpage","Q6622740":"webpage","Q6632234":"webpage","Q7241821":"webpage","Q7485705":"webpage","Q8784047":"webpage","Q10560362":"webpage","Q10584970":"webpage","Q10712699":"webpage","Q10730006":"webpage","Q10805463":"webpage","Q10992965":"webpage","Q11011669":"webpage","Q11052053":"webpage","Q11223110":"webpage","Q11839555":"webpage","Q12930680":"webpage","Q13383621":"webpage","Q13394564":"webpage","Q13492790":"webpage","Q13512760":"webpage","Q13763959":"webpage","Q14335223":"webpage","Q14336297":"webpage","Q14336339":"webpage","Q14358273":"webpage","Q14358335":"webpage","Q14358826":"webpage","Q14358898":"webpage","Q14358899":"webpage","Q14396951":"webpage","Q14404469":"webpage","Q14445515":"webpage","Q22867433":"webpage","Q15709178":"webpage","Q17615621":"webpage","Q18340985":"webpage","Q18881752":"webpage","Q22668105":"webpage","Q22706969":"webpage","Q22830149":"webpage","Q22834716":"webpage","Q22834726":"webpage","Q22838914":"webpage","Q22844738":"webpage","Q22846593":"webpage","Q22846942":"webpage","Q22846954":"webpage","Q22846964":"webpage","Q22858302":"webpage","Q22862005":"webpage","Q22867722":"webpage","Q22869003":"webpage","Q33130924":"motion_picture","Q30415057":"webpage","Q55648788":"webpage","Q4663903":"webpage","Q21528878":"webpage","Q22247630":"webpage","Q249083":"dataset","Q1750705":"dataset","Q955185":"dataset","Q1326107":"dataset","Q1520639":"dataset","Q2943040":"dataset","Q6404298":"dataset","Q7248117":"dataset","Q7674850":"dataset","Q29057009":"webpage","Q35250433":"webpage","Q35779580":"webpage","Q47382471":"webpage","Q47524402":"webpage","Q54734643":"webpage","Q58573615":"webpage","Q61866692":"webpage","Q8615872":"webpage","Q21286738":"webpage","Q21469493":"webpage","Q21479588":"webpage","Q23841178":"webpage","Q24571886":"webpage","Q26211786":"dataset","Q28368760":"webpage","Q28373483":"webpage","Q849666":"motion_picture","Q18089617":"motion_picture","Q18889701":"dataset","Q20010800":"webpage","Q163126":"dataset","Q1967745":"dataset","Q2122972":"dataset","Q2565860":"dataset","Q3516420":"dataset","Q13331174":"webpage","Q15088954":"dataset","Q15885744":"dataset","Q16069643":"dataset","Q17146890":"dataset","Q18435139":"dataset","Q20107258":"dataset","Q23894246":"webpage","Q57733325":"dataset","Q17175676":"motion_picture","Q26196748":"motion_picture","Q21484471":"webpage","Q265147":"song","Q56558213":"song","Q627181":"song","Q1151259":"song","Q7023411":"song","Q190635":"dataset","Q526334":"dataset","Q1982918":"dataset","Q2362354":"dataset","Q22842824":"webpage","Q3129804":"motion_picture","Q22677515":"webpage","Q48552277":"webpage","Q56876519":"webpage","Q11753321":"webpage","Q15671253":"webpage","Q20769160":"webpage","Q24731821":"webpage","Q26142649":"webpage","Q36330215":"webpage","Q6306272":"webpage","Q14385296":"webpage","Q14403646":"webpage","Q20107493":"dataset","Q20743001":"webpage","Q14460829":"webpage","Q11643859":"song","Q16141944":"song","Q17990546":"song","Q20043946":"song","Q44292661":"webpage","Q29075123":"webpage","Q40218570":"webpage","Q910144":"dataset","Q5622823":"webpage","Q13565583":"webpage","Q19648608":"webpage","Q19915239":"dataset","Q21278897":"webpage","Q21441359":"dataset","Q21441363":"dataset","Q23841351":"webpage","Q26932615":"webpage","Q26961029":"webpage","Q27949687":"webpage","Q27949697":"webpage","Q28858528":"webpage","Q29075121":"webpage","Q922853":"song","Q3879286":"song","Q3368338":"dataset","Q10997407":"webpage","Q19842659":"webpage","Q56062113":"webpage"}'),N=e=>{let{P1545:t}=e;return t?parseInt(t[0]):-1},D=e=>{let{value:t,qualifiers:n}=e,[r]=(e=>[].concat(...[e.P1932,e.P1810].filter(Boolean)))(n);return r||(r="string"===typeof t?t:H(t)),r=r?(0,I.parse)(r):{literal:r},r._ordinal=N(n),r},M=e=>e.map(D).sort(((e,t)=>e._ordinal-t._ordinal)),B=e=>{const t=e.claims.P17[0].value,n=t.claims.P1813.filter((e=>{let{qualifiers:{P31:t}}=e;return!t||"Q28840786"!==t[0]}));return H(e)+", "+(n[0]||t.claims.P1448[0]).value},Q=e=>e.claims.P1476?e.claims.P1476[0].value:H(e),U=e=>e.map((e=>{let{value:t}=e;return H(t)})).join(","),F=e=>({"date-parts":e.map((e=>(0,L.K0)(e.value))).filter((e=>e&&e["date-parts"])).map((e=>e["date-parts"][0]))});function z(e,t,n){switch(e){case"type":return q(t);case"author":case"director":case"container-author":case"collection-editor":case"composer":case"editor":case"illustrator":case"original-author":case"recipient":case"reviewed-author":case"translator":return M(t);case"issued":case"original-date":return(0,L.K0)(t);case"event-date":return F(t);case"keyword":return U(t);case"container-title":case"collection-title":case"event":case"medium":case"publisher":case"original-publisher":return Q(t);case"event-place":case"original-publisher-place":case"publisher-place":return B(t);case"collection-number":return N(t[0].qualifiers);case"number-of-volumes":return t.length;default:return t}}function q(e){return R[e]?R[e]:(l.logger.unmapped("[plugin-wikidata]","publication type",e),"book")}function H(e){if(!e)return;const t=d.langs.find((t=>e.labels[t]));return e.labels[t]}const W=JSON.parse('{"author":{"values":"all","props":["P50","P2093"]},"composer":{"values":"all","props":["P86"]},"collection-editor":{"values":"all","props":["P179.P98"]},"collection-number":{"values":"all","props":["P179"]},"collection-title":"P179","container-author":{"values":"all","props":["P1433.P50","P1433.P2093","P361.P50","P361.P2093"]},"container-title":{"values":"any","props":["P1433","P361"]},"container-title-short":{"values":"any","props":["P1433.P1813","P1433.P1160"]},"director":{"values":"all","props":["P57"]},"DOI":"P356","edition":"P393","editor":{"values":"all","props":["P98"]},"event":"P1433.P4745","event-date":{"values":"all","props":["P1433.P4745.P580","P1433.P4745.P582"]},"event-place":"P1433.P4745.P276","illustrator":{"values":"all","props":["P110"]},"ISBN":{"values":"any","props":["P212","P957"]},"ISSN":"P1433.P236","issue":"P433","issued":"P577","journalAbbreviation":{"values":"any","props":["P1433.P1813","P1433.P1160"]},"keyword":{"values":"all","props":["P921"]},"language":{"values":"any","props":["P407.P218","P364.P218"]},"medium":{"values":"any","props":["P437","P186"]},"number-of-pages":"P1104","number-of-volumes":{"values":"all","props":["P179.P527"]},"original-author":{"values":"all","props":["P629.P50","P629.P2093"]},"original-date":"P629.P577","original-publisher":"P629.P123","original-publisher-place":{"values":"any","props":["P629.P123.P740","P629.P123.P159"]},"original-title":"P629.P1476","page":"P304","PMID":"P698","PMCID":"P932","publisher":"P123","publisher-place":{"values":"any","props":["P123.P740","P123.P159"]},"recipient":{"values":"all","props":["P1817"]},"reviewed-title":"P921.P1476","reviewed-author":{"values":"all","props":["P921.P50","P921.P2093"]},"scale":"P1752","title":"P1476","translator":{"values":"all","props":["P655"]},"type":"P31","version":"P348","volume":"P478","URL":{"values":"any","props":["P856","P953","P973","P2699"]}}'),G=JSON.parse('{"P2860":"Cites","P921":"Main subject","P3181":"OpenCitations bibliographic resource ID","P364":"Original language of work"}');function V(e,t,n){const r=e.split(".");return n.delete(r[0]),function e(t,n){let[r,...i]=t,{claims:o}=n;return i.length?o[r]&&o[r].length?e(i,o[r][0].value):void 0:o[r]}(r,t)}function $(e,t,n){if("object"!==typeof e){const r=V(e,t,n);return r&&r[0].value}const r=[].concat(...e.props.map((e=>V(e,t,n))).filter(Boolean));return"all"===e.values?r[0]&&r:r[0]&&r[0].value}function K(e){const t={id:e.id,_wikiId:e.id,source:"Wikidata"},n=new Set(Object.keys(e.claims));for(const r in W){const i=$(W[r],e,n);if(i){const e=z(r,i);e&&(t[r]=e)}}for(const r of n)r in G||l.logger.unmapped("[plugin-wikidata]","property",r);return t.title||(t.title=H(e)),(t["reviewed-title"]||t["reviewed-author"])&&("review"!==t.type.slice(0,6)&&(t.type="review"),delete t.keyword),t.recipient&&(t.type="personal_communication"),t.event&&(t.type="paper-conference"),t}async function Y(e){let{entities:t}=e;return(await P(t)).map(K)}function Z(e){let{entities:t}=e;return j(t).map(K)}const J=e=>e.match(/\/(Q\d+)(?:[#?/]|\s*$)/)[1],X="@wikidata",ee={id:r,entity:a,prop:o,url:s,api:i},te={"@wikidata/id":{parse:p,parseType:{dataType:"String",predicate:/^Q\d+$/}},"@wikidata/list+text":{parse:e=>e.trim().split(/(?:[\s,]\s*)/g),parseType:{dataType:"String",predicate:/^\s*((?:Q\d+(?:[\s,]\s*))*Q\d+)\s*$/}},"@wikidata/api":{parse:m,parseAsync:g,parseType:{dataType:"String",predicate:/^(https?:\/\/(?:www\.)?wikidata.org\/w\/api\.php(?:\?.*)?)$/,extends:"@else/url"}},"@wikidata/array+api":{parse:m,parseAsync:g,parseType:{dataType:"Array",elementConstraint:"@wikidata/api"}},"@wikidata/url":{parse:J,parseType:{dataType:"String",predicate:/\/(Q\d+)(?:[#?/]|\s*$)/,extends:"@else/url"}},"@wikidata/list+object":{parse:p,parseType:{dataType:"Array",elementConstraint:"@wikidata/id"}},"@wikidata/object":{parse:Z,parseAsync:Y,parseType:{dataType:"SimpleObject",propertyConstraint:{props:"entities"}}},"@wikidata/array+object":{parse:e=>e.reduce(((e,t)=>{let{success:n,entities:r}=t;return e.success&=n,Object.assign(e.entities,r),e}),{}),parseType:{dataType:"Array",elementConstraint:"@wikidata/object"},outputs:"@wikidata/object"},"@wikidata/prop":{parse:z},"@wikidata/type":{parse:q}};l.plugins.add(X,{input:te,config:d})},6908:(e,t,n)=>{"use strict";Object.defineProperty(t,"K0",{enumerable:!0,get:function(){return r.default}});var r=o(n(112)),i=o(n(3688));function o(e){return e&&e.__esModule?e:{default:e}}},112:(e,t)=>{"use strict";function n(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)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(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.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n+e<0)))return null;r=+n[0]<0||+n[0]>+n[1]&&+n[1]>0?n.pop():n.shift()}return[n.pop(),r]}return null}(e)||function(e){if("string"!==typeof e)return null;const t=e.match(/^(\d+) ?(a\.?d\.?|b\.?c\.?)$/i);if(t){const e=n(t.slice(1),2);return[e[0]*("a"===e[1].toLowerCase()[0]?1:-1)]}return/^-?\d+$/.test(e)?[e]:null}(e);return t&&t.map((e=>parseInt(e)))}var d=function(e,t){const n=[],r="string"===typeof e&&function(e){return a.test(e)?e.match(a).slice(1,3):e.split(o)}(e);t?n.push(e,t):r&&2===r.length?n.push(...r):n.push(e);const i=n.map(u);return i.filter(Boolean).length===n.length?{"date-parts":i}:{raw:t?n.join("/"):e}};t.default=d},3688:(e,t)=>{"use strict";function n(e,t,n){if(e.length>=t)return e;for(;e.length1&&void 0!==arguments[1]?arguments[1]:"-";if(!e["date-parts"])return e.raw;const r=e["date-parts"][0].map((e=>e.toString()));switch(r.length){case 3:r[2]=n(r[2],2,"0");case 2:r[1]=n(r[1],2,"0");case 1:r[0]=n(r[0],4,"0")}return r.join(t)};t.default=r},4484:(e,t,n)=>{"use strict";n.d(t,{c:()=>u});var r=n(5984),i=n(2540),o=n(1468),a=n(5504),s=n(1512),l=n(3620),c=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,u=e.color,d=void 0===u?"inherit":u,p=e.component,h=void 0===p?"svg":p,f=e.fontSize,m=void 0===f?"medium":f,g=e.htmlColor,v=e.titleAccess,b=e.viewBox,y=void 0===b?"0 0 24 24":b,_=(0,i.c)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(h,(0,r.c)({className:(0,a.c)(s.root,c,"inherit"!==d&&s["color".concat((0,l.c)(d))],"default"!==m&&"medium"!==m&&s["fontSize".concat((0,l.c)(m))]),focusable:"false",viewBox:y,color:g,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:t},_),n,v?o.createElement("title",null,v):null)}));c.muiName="SvgIcon";const u=(0,s.c)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(c)},9816:(e,t,n)=>{"use strict";n.d(t,{IV:()=>h,OM:()=>s,SS:()=>u,W4:()=>d,ct:()=>c,sP:()=>p});var r=n(1856);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.c)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function l(e){var t="hsl"===(e=o(e)).type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),a({type:c,values:u})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return l(e)>.5?p(e,t):h(e,t)}function u(e,t){return d(e,t)}function d(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function p(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function h(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},78:(e,t,n)=>{"use strict";n.d(t,{c:()=>R});var r=n(2540),i=n(8384),o=n(5984),a=["xs","sm","md","lg","xl"];var s=n(2312);function l(e,t,n){var r;return(0,o.c)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,o.c)({paddingLeft:t(2),paddingRight:t(2)},n,(0,s.c)({},e.up("sm"),(0,o.c)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,s.c)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,s.c)(r,e.up("sm"),{minHeight:64}),r)},n)}var c=n(1856);const u={black:"#000",white:"#fff"};const d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};const p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};const h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};const f={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};const m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};const g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};const v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var b=n(9816),y={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:u.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},_={text:{primary:u.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:u.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function x(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,b.IV)(e.main,i):"dark"===t&&(e.dark=(0,b.sP)(e.main,o)))}function w(e){return Math.round(1e5*e)/1e5}function E(e){return w(e)}var T={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function k(e,t){var n="function"===typeof t?t(e):t,a=n.fontFamily,s=void 0===a?C:a,l=n.fontSize,c=void 0===l?14:l,u=n.fontWeightLight,d=void 0===u?300:u,p=n.fontWeightRegular,h=void 0===p?400:p,f=n.fontWeightMedium,m=void 0===f?500:f,g=n.fontWeightBold,v=void 0===g?700:g,b=n.htmlFontSize,y=void 0===b?16:b,_=n.allVariants,x=n.pxToRem,k=(0,r.c)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var S=c/14,O=x||function(e){return"".concat(e/y*S,"rem")},A=function(e,t,n,r,i){return(0,o.c)({fontFamily:s,fontWeight:e,fontSize:O(t),lineHeight:n},s===C?{letterSpacing:"".concat(w(r/t),"em")}:{},i,_)},j={h1:A(d,96,1.167,-1.5),h2:A(d,60,1.2,-.5),h3:A(h,48,1.167,0),h4:A(h,34,1.235,.25),h5:A(h,24,1.334,0),h6:A(m,20,1.6,.15),subtitle1:A(h,16,1.75,.15),subtitle2:A(m,14,1.57,.1),body1:A(h,16,1.5,.15),body2:A(h,14,1.43,.15),button:A(m,14,1.75,.4,T),caption:A(h,12,1.66,.4),overline:A(h,12,2.66,1,T)};return(0,i.c)((0,o.c)({htmlFontSize:y,pxToRem:O,round:E,fontFamily:s,fontSize:c,fontWeightLight:d,fontWeightRegular:h,fontWeightMedium:m,fontWeightBold:v},j),k,{clone:!1})}function S(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const O=["none",S(0,2,1,-1,0,1,1,0,0,1,3,0),S(0,3,1,-2,0,2,2,0,0,1,5,0),S(0,3,3,-2,0,3,4,0,0,1,8,0),S(0,2,4,-1,0,4,5,0,0,1,10,0),S(0,3,5,-1,0,5,8,0,0,1,14,0),S(0,3,5,-1,0,6,10,0,0,1,18,0),S(0,4,5,-2,0,7,10,1,0,2,16,1),S(0,5,5,-3,0,8,10,1,0,3,14,2),S(0,5,6,-3,0,9,12,1,0,3,16,2),S(0,6,6,-3,0,10,14,1,0,4,18,3),S(0,6,7,-4,0,11,15,1,0,4,20,3),S(0,7,8,-4,0,12,17,2,0,5,22,4),S(0,7,8,-4,0,13,19,2,0,5,24,4),S(0,7,9,-4,0,14,21,2,0,5,26,4),S(0,8,9,-5,0,15,22,2,0,6,28,5),S(0,8,10,-5,0,16,24,2,0,6,30,5),S(0,8,11,-5,0,17,26,2,0,6,32,5),S(0,9,11,-5,0,18,28,2,0,7,34,6),S(0,9,12,-6,0,19,29,2,0,7,36,6),S(0,10,13,-6,0,20,31,3,0,8,38,7),S(0,10,13,-6,0,21,33,3,0,8,40,7),S(0,10,14,-6,0,22,35,3,0,8,42,7),S(0,11,14,-7,0,23,36,3,0,9,44,8),S(0,11,15,-7,0,24,38,3,0,9,46,8)];const A={borderRadius:4};var j=n(6304);var P=n(4880),I=n(8848);function L(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,s=e.mixins,w=void 0===s?{}:s,E=e.palette,T=void 0===E?{}:E,C=e.spacing,S=e.typography,L=void 0===S?{}:S,R=(0,r.c)(e,["breakpoints","mixins","palette","spacing","typography"]),N=function(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,a=e.secondary,s=void 0===a?{light:h.A200,main:h.A400,dark:h.A700}:a,l=e.error,w=void 0===l?{light:f[300],main:f[500],dark:f[700]}:l,E=e.warning,T=void 0===E?{light:m[300],main:m[500],dark:m[700]}:E,C=e.info,k=void 0===C?{light:g[300],main:g[500],dark:g[700]}:C,S=e.success,O=void 0===S?{light:v[300],main:v[500],dark:v[700]}:S,A=e.type,j=void 0===A?"light":A,P=e.contrastThreshold,I=void 0===P?3:P,L=e.tonalOffset,R=void 0===L?.2:L,N=(0,r.c)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function D(e){return(0,b.OM)(e,_.text.primary)>=I?_.text.primary:y.text.primary}var M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,o.c)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,c.c)(4,t));if("string"!==typeof e.main)throw new Error((0,c.c)(5,JSON.stringify(e.main)));return x(e,"light",n,R),x(e,"dark",r,R),e.contrastText||(e.contrastText=D(e.main)),e},B={dark:_,light:y};return(0,i.c)((0,o.c)({common:u,type:j,primary:M(n),secondary:M(s,"A400","A200","A700"),error:M(w),warning:M(T),info:M(k),success:M(O),grey:d,contrastThreshold:I,getContrastText:D,augmentColor:M,tonalOffset:R},B[j]),N)}(T),D=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,i=e.unit,s=void 0===i?"px":i,l=e.step,c=void 0===l?5:l,u=(0,r.c)(e,["values","unit","step"]);function d(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=a.indexOf(t);return r===a.length-1?d(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[a[r+1]]?n[a[r+1]]:t)-c/100).concat(s,")")}return(0,o.c)({keys:a,values:n,up:d,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?d("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-c/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return n[e]}},u)}(n),M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,j.I)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r1?Q-1:0),F=1;F{"use strict";n.d(t,{c:()=>r});const r=(0,n(78).c)()},4880:(e,t,n)=>{"use strict";n.d(t,{cp:()=>s,rV:()=>o});var r=n(2540),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}const s={easing:i,duration:o,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?o.standard:n,l=t.easing,c=void 0===l?i.easeInOut:l,u=t.delay,d=void 0===u?0:u;(0,r.c)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:a(s)," ").concat(c," ").concat("string"===typeof d?d:a(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},1512:(e,t,n)=>{"use strict";n.d(t,{c:()=>h});var r=n(5984),i=n(2540),o=n(1468),a=n(9996),s=n.n(a),l=n(3236),c=n(4328),u=n(2200);const d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,d=t.withTheme,p=void 0!==d&&d,h=t.name,f=(0,i.c)(t,["defaultTheme","withTheme","name"]);var m=h,g=(0,l.c)(e,(0,r.c)({defaultTheme:a,Component:n,name:h||n.displayName,classNamePrefix:m},f)),v=o.forwardRef((function(e,t){e.classes;var s,l=e.innerRef,d=(0,i.c)(e,["classes","innerRef"]),f=g((0,r.c)({},n.defaultProps,e)),m=d;return("string"===typeof h||p)&&(s=(0,u.c)()||a,h&&(m=(0,c.c)({theme:s,name:h,props:d})),p&&!m.theme&&(m.theme=s)),o.createElement(n,(0,r.c)({ref:l||t,classes:f},m))}));return s()(v,n),v}};var p=n(3376);const h=function(e,t){return d(e,(0,r.c)({defaultTheme:p.c},t))}},8848:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},3620:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(1856);function i(e){if("string"!==typeof e)throw new Error((0,r.c)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},2656:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;nr})},5696:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(5984),i=n(1468),o=n(4484);function a(e,t){var n=function(t,n){return i.createElement(o.c,(0,r.c)({ref:n},t),e)};return n.muiName=o.c.muiName,i.memo(i.forwardRef(n))}},664:(e,t,n)=>{"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;or})},8148:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>r.c,createChainedFunction:()=>i.c,createSvgIcon:()=>o.c,debounce:()=>a.c,deprecatedPropType:()=>s,isMuiElement:()=>l.c,ownerDocument:()=>c.c,ownerWindow:()=>u.c,requirePropFactory:()=>d,setRef:()=>p.c,unstable_useId:()=>v.c,unsupportedProp:()=>h,useControlled:()=>f.c,useEventCallback:()=>m.c,useForkRef:()=>g.c,useIsFocusVisible:()=>b.c});var r=n(3620),i=n(2656),o=n(5696),a=n(664);function s(e,t){return function(){return null}}var l=n(168),c=n(7376),u=n(6804);function d(e){return function(){return null}}var p=n(9184);function h(e,t,n,r,i){return null}var f=n(6960),m=n(9568),g=n(576),v=n(5064),b=n(2880)},168:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(1468);function i(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},7376:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{c:()=>r})},6804:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(7376);function i(e){return(0,r.c)(e).defaultView||window}},9184:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{c:()=>r})},5064:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(1468);function i(e){var t=r.useState(e),n=t[0],i=t[1],o=e||n;return r.useEffect((function(){null==n&&i("mui-".concat(Math.round(1e5*Math.random())))}),[n]),o}},6960:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(1468);function i(e){var t=e.controlled,n=e.default,i=(e.name,e.state,r.useRef(void 0!==t).current),o=r.useState(n),a=o[0],s=o[1];return[i?t:a,r.useCallback((function(e){i||s(e)}),[])]}},9568:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(1468),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function o(e){var t=r.useRef(e);return i((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},576:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(1468),i=n(9184);function o(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,i.c)(e,n),(0,i.c)(t,n)}}),[e,t])}},2880:(e,t,n)=>{"use strict";n.d(t,{c:()=>f});var r=n(1468),i=n(4840),o=!0,a=!1,s=null,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function u(){o=!1}function d(){"hidden"===this.visibilityState&&a&&(o=!0)}function p(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return o||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function h(){a=!0,window.clearTimeout(s),s=window.setTimeout((function(){a=!1}),100)}function f(){return{isFocusVisible:p,onBlurVisible:h,ref:r.useCallback((function(e){var t,n=i.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[])}}},3564:(e,t,n)=>{"use strict";var r=n(5272),i=n(6536);t.c=void 0;var o=i(n(1468)),a=(0,r(n(1204)).default)(o.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");t.c=a},5140:(e,t,n)=>{"use strict";var r=n(5272),i=n(6536);t.c=void 0;var o=i(n(1468)),a=(0,r(n(1204)).default)(o.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");t.c=a},6212:(e,t,n)=>{"use strict";var r=n(5272),i=n(6536);t.c=void 0;var o=i(n(1468)),a=(0,r(n(1204)).default)(o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");t.c=a},6968:(e,t,n)=>{"use strict";var r=n(5272),i=n(6536);t.c=void 0;var o=i(n(1468)),a=(0,r(n(1204)).default)(o.createElement("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}),"DragHandle");t.c=a},3651:(e,t,n)=>{"use strict";var r=n(5272),i=n(6536);t.c=void 0;var o=i(n(1468)),a=(0,r(n(1204)).default)(o.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.c=a},4968:(e,t,n)=>{"use strict";var r=n(5272),i=n(6536);t.c=void 0;var o=i(n(1468)),a=(0,r(n(1204)).default)(o.createElement("path",{d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"}),"Translate");t.c=a},1204:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(8148)},9928:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__"},4328:(e,t,n)=>{"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}n.d(t,{c:()=>r})},3236:(e,t,n)=>{"use strict";n.d(t,{c:()=>cn});var r=n(2540),i=n(5984),o=n(1468),a="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};const s="object"===("undefined"===typeof window?"undefined":a(window))&&"object"===("undefined"===typeof document?"undefined":a(document))&&9===document.nodeType;var l=n(4816),c=n(5776),u=n(4316),d=n(1632),p={}.constructor;function h(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(h);if(e.constructor!==p)return e;var t={};for(var n in e)t[n]=h(e[n]);return t}function f(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=h(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var m=function(e,t){for(var n="",r=0;r<+~=|^:(),"'`\s])/g,x="undefined"!==typeof CSS&&CSS.escape,w=function(e){return x?x(e):e.replace(_,"\\$1")},E=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),T=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l((0,u.c)((0,u.c)(i)),s),i.selectorText="."+w(i.id)),i}(0,c.c)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=g(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,i.c)({},e,{allowEmpty:!0}):e;return y(this.selectorText,this.style,n)},(0,l.c)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(E),C={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new T(e,t,n)}},k={indent:1,children:!0},S=/@([\w-]+)/,O=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(S);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new J((0,i.c)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=k);var t=v(e).linebreak;if(null==e.indent&&(e.indent=k.indent),null==e.children&&(e.children=k.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),A=/@container|@media|@supports\s+/,j={onCreateRule:function(e,t,n){return A.test(e)?new O(e,t,n):null}},P={indent:1,children:!0},I=/@keyframes\s+([\w-]+)/,L=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(I);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,a=n.sheet,s=n.generateId;for(var l in this.id=!1===o?this.name:w(s(this,a)),this.rules=new J((0,i.c)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,i.c)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=P);var t=v(e).linebreak;if(null==e.indent&&(e.indent=P.indent),null==e.children&&(e.children=P.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),R=/@keyframes\s+/,N=/\$([\w-]+)/g,D=function(e,t){return"string"===typeof e?e.replace(N,(function(e,n){return n in t?t[n]:e})):e},M=function(e,t,n){var r=e[t],i=D(r,n);i!==r&&(e[t]=i)},B={onCreateRule:function(e,t,n){return"string"===typeof e&&R.test(e)?new L(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&M(e,"animation-name",n.keyframes),"animation"in e&&M(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return D(e,r.keyframes);default:return e}}},Q=function(e){function t(){return e.apply(this,arguments)||this}return(0,c.c)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,i.c)({},e,{allowEmpty:!0}):e;return y(this.key,this.style,n)},t}(E),U={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Q(e,t,n):null}},F=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=v(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r=this.index)t.push(e);else for(var r=0;rn)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,d.c)(t,["attached"]),i=v(r).linebreak,o="",a=0;a-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(a){return!1}return!0},ue=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},de=function(e,t){return e.selectorText=t,e.selectorText===t},pe=se((function(){return document.querySelector("head")}));function he(e){var t=ne.registry;if(t.length>0){var n=function(e,t){for(var n=0;nt.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var i=function(e){for(var t=pe(),n=0;nn?n:t},ve=function(){function e(e){this.getPropertyValue=le,this.setProperty=ce,this.removeProperty=ue,this.setSelector=de,this.hasInsertedRules=!1,this.cssRules=[],e&&ne.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=fe();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=he(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else pe().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n-1){var i=Nt[e];if(!Array.isArray(i))return ht.js+yt(i)in t&&ht.css+i;if(!r)return!1;for(var o=0;ot?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Oe.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Se.c]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(i).concat(c())}}(),nn={disableGeneration:!1,generateClassName:tn,jss:en,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},rn=o.createContext(nn);var on=-1e9;var an=n(8384);const sn={};function ln(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,a=e.stylesCreator,s=e.name;if(!o.disableGeneration){var l=Ce.get(o.sheetsManager,a,r);l||(l={refs:0,staticSheet:null,dynamicStyles:null},Ce.set(o.sheetsManager,a,r,l));var c=(0,i.c)({},a.options,o,{theme:r,flip:"boolean"===typeof o.flip?o.flip:"rtl"===r.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var u=o.sheetsRegistry;if(0===l.refs){var d;o.sheetsCache&&(d=Ce.get(o.sheetsCache,a,r));var p=a.create(r,s);d||((d=o.jss.createStyleSheet(p,(0,i.c)({link:!1},c))).attach(),o.sheetsCache&&Ce.set(o.sheetsCache,a,r,d)),u&&u.add(d),l.staticSheet=d,l.dynamicStyles=we(p)}if(l.dynamicStyles){var h=o.jss.createStyleSheet(l.dynamicStyles,(0,i.c)({link:!0},c));h.update(t),h.attach(),n.dynamicSheet=h,n.classes=(0,Ee.c)({baseClasses:l.staticSheet.classes,newClasses:h.classes}),u&&u.add(h)}else n.classes=l.staticSheet.classes;l.refs+=1}}function cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,s=t.Component,l=t.defaultTheme,c=void 0===l?sn:l,u=(0,r.c)(t,["name","classNamePrefix","Component","defaultTheme"]),d=function(e){var t="function"===typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(l){throw l}if(!r||!n.overrides||!n.overrides[r])return o;var a=n.overrides[r],s=(0,i.c)({},o);return Object.keys(a).forEach((function(e){s[e]=(0,an.c)(s[e],a[e])})),s},options:{}}}(e),p=n||a||"makeStyles";d.options={index:on+=1,name:n,meta:p,classNamePrefix:p};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,ke.c)()||c,r=(0,i.c)({},o.useContext(rn),u),a=o.useRef(),l=o.useRef();!function(e,t){var n,r=o.useRef([]),i=o.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),o.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var i={name:n,state:{},stylesCreator:d,stylesOptions:r,theme:t};return ln(i,e),l.current=!1,a.current=i,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=Ce.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(Ce.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(i)}}),[t,d]),o.useEffect((function(){l.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(a.current,e),l.current=!0}));var p=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=(0,Ee.c)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(a.current,e.classes,s);return p}}},4928:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(5984);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var i=(0,r.c)({},t);return Object.keys(n).forEach((function(e){n[e]&&(i[e]="".concat(t[e]," ").concat(n[e]))})),i}},7792:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=n(1468).createContext(null)},2200:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(1468),i=n(7792);function o(){return r.useContext(i.c)}},1880:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var r=n(2784),i={xs:0,sm:600,md:960,lg:1280,xl:1920},o={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(i[e],"px)")}};function a(e,t,n){if(Array.isArray(t)){var i=e.theme.breakpoints||o;return t.reduce((function(e,r,o){return e[i.up(i.keys[o])]=n(t[o]),e}),{})}if("object"===(0,r.c)(t)){var a=e.theme.breakpoints||o;return Object.keys(t).reduce((function(e,r){return e[a.up(r)]=n(t[r]),e}),{})}return n(t)}},208:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(8384);const i=function(e,t){return t?(0,r.c)(e,t,{clone:!1}):e}},6304:(e,t,n)=>{"use strict";n.d(t,{I:()=>d,c:()=>f});var r=n(5376),i=n(1880),o=n(208);var a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!l[e])return[e];e=l[e]}var t=e.split(""),n=(0,r.c)(t,2),i=n[0],o=n[1],c=a[i],u=s[o]||"";return Array.isArray(u)?u.map((function(e){return c+e})):[c+u]})),u=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function d(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function p(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function h(e){var t=d(e.theme);return Object.keys(e).map((function(n){if(-1===u.indexOf(n))return null;var r=p(c(n),t),o=e[n];return(0,i.l)(e,o,r)})).reduce(o.c,{})}h.propTypes={},h.filterProps=u;const f=h},8384:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(5984),i=n(2784);function o(e){return e&&"object"===(0,i.c)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?(0,r.c)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(o(t[r])&&r in e?i[r]=a(e[r],t[r],n):i[r]=t[r])})),i}},1856:(e,t,n)=>{"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;nr})},9112:(e,t,n)=>{"use strict";n.d(t,{wp:()=>h,ud:()=>v,WS:()=>g,m2:()=>f});var r=n(8992),i=n(4156),o=n(4184),a=n(1276),s=n(5016),l=n(3104),c=n(4756),u=n(5980),d=function(){function e(e){this.errors=0,this.sid=(0,i.OW)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=c.G.Ok,e&&this.update(e)}return e.prototype.update=function(e){void 0===e&&(e={}),e.user&&(e.user.ip_address&&(this.ipAddress=e.user.ip_address),e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Date.now(),e.sid&&(this.sid=32===e.sid.length?e.sid:(0,i.OW)()),e.did&&(this.did=""+e.did),"number"===typeof e.started&&(this.started=e.started),"number"===typeof e.duration?this.duration=e.duration:this.duration=this.timestamp-this.started,e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),e.ipAddress&&(this.ipAddress=e.ipAddress),e.userAgent&&(this.userAgent=e.userAgent),"number"===typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===c.G.Ok?this.update({status:c.G.Exited}):this.update()},e.prototype.toJSON=function(){return(0,u.Sy)({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"===typeof this.did||"string"===typeof this.did?""+this.did:void 0,duration:this.duration,attrs:(0,u.Sy)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),p=3,h=function(){function e(e,t,n){void 0===t&&(t=new l.k),void 0===n&&(n=p),this._version=n,this._stack=[{}],this.getStackTop().scope=t,this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version{"use strict";n.d(t,{e:()=>u,k:()=>l});var r=n(8992),i=n(5336),o=n(4184),a=n(5044),s=n(4156),l=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=(0,r.KQ)(t._breadcrumbs),n._tags=(0,r.C3)({},t._tags),n._extra=(0,r.C3)({},t._extra),n._contexts=(0,r.C3)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=(0,r.KQ)(t._eventProcessors)),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.setTags=function(e){return this._tags=(0,r.C3)((0,r.C3)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=(0,r.C3)((0,r.C3)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=(0,r.C3)((0,r.C3)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=(0,r.C3)((0,r.C3)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=(0,r.C3)((0,r.C3)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,i=this.getSpan();return(null===(e=i)||void 0===e?void 0:e.transaction)?null===(t=i)||void 0===t?void 0:t.transaction:(null===(r=null===(n=i)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?i.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"===typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=(0,r.C3)((0,r.C3)({},this._tags),t._tags),this._extra=(0,r.C3)((0,r.C3)({},this._extra),t._extra),this._contexts=(0,r.C3)((0,r.C3)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint)):(0,i.oF)(t)&&(this._tags=(0,r.C3)((0,r.C3)({},this._tags),t.tags),this._extra=(0,r.C3)((0,r.C3)({},this._extra),t.extra),this._contexts=(0,r.C3)((0,r.C3)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=(0,r.C3)({timestamp:(0,o.CG)()},e);return this._breadcrumbs=void 0!==t&&t>=0?(0,r.KQ)(this._breadcrumbs,[n]).slice(-t):(0,r.KQ)(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=(0,r.C3)((0,r.C3)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=(0,r.C3)((0,r.C3)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=(0,r.C3)((0,r.C3)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=(0,r.C3)((0,r.C3)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=(0,r.C3)({trace:this._span.getTraceContext()},e.contexts);var i=null===(n=this._span.transaction)||void 0===n?void 0:n.name;i&&(e.tags=(0,r.C3)({transaction:i},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=(0,r.KQ)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors((0,r.KQ)(c(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,o){var s=this;return void 0===o&&(o=0),new a.G((function(a,l){var c=e[o];if(null===t||"function"!==typeof c)a(t);else{var u=c((0,r.C3)({},t),n);(0,i.Oe)(u)?u.then((function(t){return s._notifyEventProcessors(e,t,n,o+1).then(a)})).then(null,l):s._notifyEventProcessors(e,u,n,o+1).then(a).then(null,l)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function c(){var e=(0,s.mm)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function u(e){c().push(e)}},7090:(e,t,n)=>{"use strict";n.d(t,{Mh:()=>x,Iz:()=>_});var r,i=n(8992),o=n(9112);!function(e){e.Explicit="explicitly_set",e.Sampler="client_sampler",e.Rate="client_rate",e.Inheritance="inheritance"}(r||(r={}));var a=n(1276),s=n(5016),l=n(5336),c=n(4156),u=n(3456),d=n(8888),p=n(6360);function h(){var e=(0,p.gB)();e&&(a.Q.log("[Tracing] Transaction: "+d.D.InternalError+" -> Global error occured"),e.setStatus(d.D.InternalError))}var f=n(9916),m=n(8300);function g(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function v(e,t,n){var o,s,l=e.getClient(),c=l&&l.getOptions()||{};return l&&(0,p.KQ)(c)?void 0!==t.sampled?(t.tags=(0,i.C3)((0,i.C3)({},t.tags),{__sentry_samplingMethod:r.Explicit}),t):("function"===typeof c.tracesSampler?(s=c.tracesSampler(n),t.tags=(0,i.C3)((0,i.C3)({},t.tags),{__sentry_samplingMethod:r.Sampler,__sentry_sampleRate:String(Number(s))})):void 0!==n.parentSampled?(s=n.parentSampled,t.tags=(0,i.C3)((0,i.C3)({},t.tags),{__sentry_samplingMethod:r.Inheritance})):(s=c.tracesSampleRate,t.tags=(0,i.C3)((0,i.C3)({},t.tags),{__sentry_samplingMethod:r.Rate,__sentry_sampleRate:String(Number(s))})),function(e){if(isNaN(e)||"number"!==typeof e&&"boolean"!==typeof e)return a.Q.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(e)+" of type "+JSON.stringify(typeof e)+"."),!1;if(e<0||e>1)return a.Q.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+e+"."),!1;return!0}(s)?s?(t.sampled=Math.random(){"use strict";n.d(t,{Y1:()=>c,if:()=>d});var r=n(8992),i=n(4184),o=n(1276),a=n(2696),s=n(8888),l=n(8300),c=1e3,u=function(e){function t(t,n,r,i){void 0===r&&(r="");var o=e.call(this,i)||this;return o._pushActivity=t,o._popActivity=n,o.transactionSpanId=r,o}return(0,r.ct)(t,e),t.prototype.add=function(t){var n=this;t.spanId!==this.transactionSpanId&&(t.finish=function(e){t.endTimestamp="number"===typeof e?e:(0,i.gb)(),n._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),e.prototype.add.call(this,t)},t}(a.U),d=function(e){function t(t,n,r,i){void 0===r&&(r=c),void 0===i&&(i=!1);var a=e.call(this,t,n)||this;return a._idleHub=n,a._idleTimeout=r,a._onScope=i,a.activities={},a._heartbeatTimer=0,a._heartbeatCounter=0,a._finished=!1,a._beforeFinishCallbacks=[],n&&i&&(p(n),o.Q.log("Setting idle transaction on scope. Span ID: "+a.spanId),n.configureScope((function(e){return e.setSpan(a)}))),a}return(0,r.ct)(t,e),t.prototype.finish=function(t){var n,a,l=this;if(void 0===t&&(t=(0,i.gb)()),this._finished=!0,this.activities={},this.spanRecorder){o.Q.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);try{for(var c=(0,r.gR)(this._beforeFinishCallbacks),u=c.next();!u.done;u=c.next()){(0,u.value)(this,t)}}catch(d){n={error:d}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(e){if(e.spanId===l.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus(s.D.Cancelled),o.Q.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));var n=e.startTimestamp=3?(o.Q.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus(s.D.DeadlineExceeded),this.setTag("heartbeat","failed"),this.finish()):this._pingHeartbeat()}},t.prototype._pingHeartbeat=function(){var e=this;o.Q.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),this._heartbeatTimer=setTimeout((function(){e._beat()}),5e3)},t}(l.I);function p(e){if(e){var t=e.getScope();if(t)t.getTransaction()&&t.setSpan(void 0)}}},7416:(e,t,n)=>{"use strict";n.d(t,{g:()=>c});var r=n(8992),i=n(5016),o=n(1276),a=n(5980);e=n.hmd(e);var s=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],l={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]},c=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._operations=Array.isArray(e.operations)?e.operations:s,this._describeOperations=!("describeOperations"in e)||e.describeOperations}return t.prototype.setupOnce=function(t,n){var r;try{r=(0,i.iq)(e,"mongodb").Collection}catch(a){return void o.Q.error("Mongo Integration was unable to require `mongodb` package.")}this._instrumentOperations(r,this._operations,n)},t.prototype._instrumentOperations=function(e,t,n){var r=this;t.forEach((function(t){return r._patchOperation(e,t,n)}))},t.prototype._patchOperation=function(e,t,n){if(t in e.prototype){var i=this._getSpanContextFromOperationArguments.bind(this);(0,a.ym)(e.prototype,t,(function(e){return function(){for(var o,a,s,l=[],c=0;c",i[a[1]]="string"===typeof d?d:d.name||""}else for(var p=0;p{"use strict";n.d(t,{W:()=>a});var r=n(5016),i=n(1276),o=n(5980);e=n.hmd(e);var a=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(t,n){var a;try{a=(0,r.iq)(e,"mysql/lib/Connection.js")}catch(s){return void i.Q.error("Mysql Integration was unable to require `mysql` package.")}(0,o.ym)(a.prototype,"query",(function(e){return function(t,r,i){var o,a,s=null===(a=null===(o=n().getScope())||void 0===o?void 0:o.getSpan())||void 0===a?void 0:a.startChild({description:"string"===typeof t?t:t.sql,op:"db"});return"function"===typeof i?e.call(this,t,r,(function(e,t,n){var r;null===(r=s)||void 0===r||r.finish(),i(e,t,n)})):"function"===typeof r?e.call(this,t,(function(e,t,n){var i;null===(i=s)||void 0===i||i.finish(),r(e,t,n)})):e.call(this,t,r,i)}}))},t.id="Mysql",t}()},3160:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var r=n(5016),i=n(1276),o=n(5980);e=n.hmd(e);var a=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(t,n){var a;try{a=(0,r.iq)(e,"pg").Client}catch(s){return void i.Q.error("Postgres Integration was unable to require `pg` package.")}(0,o.ym)(a.prototype,"query",(function(e){return function(t,r,i){var o,a,s=null===(a=null===(o=n().getScope())||void 0===o?void 0:o.getSpan())||void 0===a?void 0:a.startChild({description:"string"===typeof t?t:t.text,op:"db"});return"function"===typeof i?e.call(this,t,r,(function(e,t){var n;null===(n=s)||void 0===n||n.finish(),i(e,t)})):"function"===typeof r?e.call(this,t,(function(e,t){var n;null===(n=s)||void 0===n||n.finish(),r(e,t)})):e.call(this,t,r).then((function(e){var t;return null===(t=s)||void 0===t||t.finish(),e}))}}))},t.id="Postgres",t}()},2696:(e,t,n)=>{"use strict";n.d(t,{C:()=>c,U:()=>l});var r=n(8992),i=n(4156),o=n(4184),a=n(5980),s=n(8888),l=function(){function e(e){void 0===e&&(e=1e3),this.spans=[],this._maxlen=e}return e.prototype.add=function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)},e}(),c=function(){function e(e){if(this.traceId=(0,i.OW)(),this.spanId=(0,i.OW)().substring(16),this.startTimestamp=(0,o.gb)(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return e.prototype.child=function(e){return this.startChild(e)},e.prototype.startChild=function(t){var n=new e((0,r.C3)((0,r.C3)({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},e.prototype.setTag=function(e,t){var n;return this.tags=(0,r.C3)((0,r.C3)({},this.tags),((n={})[e]=t,n)),this},e.prototype.setData=function(e,t){var n;return this.data=(0,r.C3)((0,r.C3)({},this.data),((n={})[e]=t,n)),this},e.prototype.setStatus=function(e){return this.status=e,this},e.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var t=s.D.fromHttpCode(e);return t!==s.D.UnknownError&&this.setStatus(t),this},e.prototype.isSuccess=function(){return this.status===s.D.Ok},e.prototype.finish=function(e){this.endTimestamp="number"===typeof e?e:(0,o.gb)()},e.prototype.toTraceparent=function(){var e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},e.prototype.getTraceContext=function(){return(0,a.Sy)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},e.prototype.toJSON=function(){return(0,a.Sy)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},e}()},8888:(e,t,n)=>{"use strict";var r;n.d(t,{D:()=>r}),function(e){e.Ok="ok",e.DeadlineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}(r||(r={})),function(e){e.fromHttpCode=function(t){if(t<400)return e.Ok;if(t>=400&&t<500)switch(t){case 401:return e.Unauthenticated;case 403:return e.PermissionDenied;case 404:return e.NotFound;case 409:return e.AlreadyExists;case 413:return e.FailedPrecondition;case 429:return e.ResourceExhausted;default:return e.InvalidArgument}if(t>=500&&t<600)switch(t){case 501:return e.Unimplemented;case 503:return e.Unavailable;case 504:return e.DeadlineExceeded;default:return e.InternalError}return e.UnknownError}}(r||(r={}))},8300:(e,t,n)=>{"use strict";n.d(t,{I:()=>l});var r=n(8992),i=n(9112),o=n(5336),a=n(1276),s=n(2696),l=function(e){function t(t,n){var r=e.call(this,t)||this;return r._measurements={},r._hub=(0,i.WS)(),(0,o.aG)(n,i.wp)&&(r._hub=n),r.name=t.name?t.name:"",r._trimEnd=t.trimEnd,r.transaction=r,r}return(0,r.ct)(t,e),t.prototype.setName=function(e){this.name=e},t.prototype.initSpanRecorder=function(e){void 0===e&&(e=1e3),this.spanRecorder||(this.spanRecorder=new s.U(e)),this.spanRecorder.add(this)},t.prototype.setMeasurements=function(e){this._measurements=(0,r.C3)({},e)},t.prototype.finish=function(t){var n=this;if(void 0===this.endTimestamp){if(this.name||(a.Q.warn("Transaction has no name, falling back to ``."),this.name=""),e.prototype.finish.call(this,t),!0===this.sampled){var r=this.spanRecorder?this.spanRecorder.spans.filter((function(e){return e!==n&&e.endTimestamp})):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e})).endTimestamp);var i={contexts:{trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction"};return Object.keys(this._measurements).length>0&&(a.Q.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),this._hub.captureEvent(i)}a.Q.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.")}},t}(s.C)},6360:(e,t,n)=>{"use strict";n.d(t,{Cg:()=>a,GW:()=>c,KQ:()=>o,gB:()=>s,kV:()=>l});var r=n(9112),i=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function o(e){return"tracesSampleRate"in e||"tracesSampler"in e}function a(e){var t=e.match(i);if(t){var n=void 0;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}}function s(e){var t,n;return void 0===e&&(e=(0,r.WS)()),null===(n=null===(t=e)||void 0===t?void 0:t.getScope())||void 0===n?void 0:n.getTransaction()}function l(e){return e/1e3}function c(e){return 1e3*e}},4756:(e,t,n)=>{"use strict";var r;n.d(t,{G:()=>r}),function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(r||(r={}))},8972:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var r=n(5336);function i(e){try{for(var t=e,n=[],r=0,i=0,a=void 0;t&&r++<5&&!("html"===(a=o(t))||r>1&&i+3*n.length+a.length>=80);)n.push(a),i+=a.length,t=t.parentNode;return n.reverse().join(" > ")}catch(s){return""}}function o(e){var t,n,i,o,a,s=e,l=[];if(!s||!s.tagName)return"";if(l.push(s.tagName.toLowerCase()),s.id&&l.push("#"+s.id),(t=s.className)&&(0,r.ct)(t))for(n=t.split(/\s+/),a=0;a{"use strict";n.d(t,{c:()=>m});var r,i=n(8992),o=n(5336),a=n(1276),s=n(4156),l=n(5980),c=n(1496),u=n(648),d=(0,s.mm)(),p={},h={};function f(e){if(!h[e])switch(h[e]=!0,e){case"console":!function(){if(!("console"in d))return;["debug","info","warn","error","log","assert"].forEach((function(e){e in d.console&&(0,l.ym)(d.console,e,(function(t){return function(){for(var n=[],r=0;r2?t[2]:void 0;if(i){var o=r,a=String(i);r=a,g("history",{from:o,to:a})}return e.apply(this,t)}}d.onpopstate=function(){for(var t=[],n=0;n{"use strict";function r(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return m(e,Error)}}function i(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function o(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function a(e){return"[object DOMException]"===Object.prototype.toString.call(e)}function s(e){return"[object String]"===Object.prototype.toString.call(e)}function l(e){return null===e||"object"!==typeof e&&"function"!==typeof e}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e){return"undefined"!==typeof Event&&m(e,Event)}function d(e){return"undefined"!==typeof Element&&m(e,Element)}function p(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function h(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function f(e){return c(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function m(e,t){try{return e instanceof t}catch(n){return!1}}n.d(t,{K7:()=>f,KI:()=>d,Oe:()=>h,QX:()=>p,Qn:()=>a,SO:()=>u,Sc:()=>o,aG:()=>m,ct:()=>s,cz:()=>i,eU:()=>r,oF:()=>c,od:()=>l})},1276:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});var r=n(4156),i=(0,r.mm)(),o="Sentry Logger ",a=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t{"use strict";n.d(t,{Mt:()=>f,NP:()=>u,OW:()=>a,QD:()=>c,UX:()=>s,mm:()=>o,qW:()=>d,s5:()=>p,y_:()=>l});var r=n(5016),i={};function o(){return(0,r.ao)()?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:i}function a(){var e=o(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function s(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function l(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||""}return e.event_id||""}function c(e){var t=o();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var i=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),i}function u(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function d(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(n){}}function p(){try{return document.location.href}catch(e){return""}}var h=6e4;function f(e,t){if(!t)return h;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?h:r-e}},5016:(e,t,n)=>{"use strict";n.d(t,{Kw:()=>l,ao:()=>o,iq:()=>a});var r=n(5336),i=n(5980);function o(){return"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function a(e,t){return e.require(t)}e=n.hmd(e);var s=["cookies","data","headers","method","query_string","url"];function l(t,n){if(void 0===n&&(n=s),!o())throw new Error("Can't get node request data outside of a node environment");var l={},c=t.headers||t.header||{},u=t.method,d=t.hostname||t.host||c.host||"",p="https"===t.protocol||t.secure||(t.socket||{}).encrypted?"https":"http",h=t.originalUrl||t.url||"",f=p+"://"+d+h;return n.forEach((function(n){switch(n){case"headers":l.headers=c;break;case"method":l.method=u;break;case"url":l.url=f;break;case"cookies":l.cookies=t.cookies||a(e,"cookie").parse(c.cookie||"");break;case"query_string":l.query_string=a(e,"url").parse(h||"",!1).query;break;case"data":if("GET"===u||"HEAD"===u)break;void 0!==t.body&&(l.data=(0,r.ct)(t.body)?t.body:JSON.stringify((0,i.Cs)(t.body)));break;default:({}).hasOwnProperty.call(t,n)&&(l[n]=t[n])}})),l}},5980:(e,t,n)=>{"use strict";n.d(t,{Sy:()=>b,yq:()=>v,ym:()=>c,Cs:()=>g,yY:()=>h,OW:()=>u});var r=n(8992),i=n(8972),o=n(5336),a=function(){function e(){this._hasWeakSet="function"===typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t"}try{s.currentTarget=(0,o.KI)(a.currentTarget)?(0,i.I)(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(l){s.currentTarget=""}for(var r in"undefined"!==typeof CustomEvent&&(0,o.aG)(e,CustomEvent)&&(s.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,r)&&(s[r]=a);return s}return e}function p(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function h(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=g(e,t);return p(r)>n?h(e,t-1,n):r}function f(e,t){return"domain"===t&&e&&"object"===typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!==typeof n.g&&e===n.g?"[Global]":"undefined"!==typeof window&&e===window?"[Window]":"undefined"!==typeof document&&e===document?"[Document]":(0,o.K7)(e)?"[SyntheticEvent]":"number"===typeof e&&e!==e?"[NaN]":void 0===e?"[undefined]":"function"===typeof e?"[Function: "+(0,s.k)(e)+"]":"symbol"===typeof e?"["+String(e)+"]":"bigint"===typeof e?"[BigInt: "+String(e)+"]":e}function m(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new a),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"===typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=f(e);return(0,o.od)(n)?n:t}(t);if(null!==t&&void 0!==t&&"function"===typeof t.toJSON)return t.toJSON();var i=f(t,e);if((0,o.od)(i))return i;var s=d(t),l=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(l[c]=m(c,s[c],n-1,r));return r.unmemoize(t),l}function g(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return m(e,n,t)})))}catch(n){return"**non-serializable**"}}function v(e,t){void 0===t&&(t=40);var n=Object.keys(d(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,l.E3)(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:(0,l.E3)(i,t)}return""}function b(e){var t,n;if((0,o.oF)(e)){var i=e,a={};try{for(var s=(0,r.gR)(Object.keys(i)),l=s.next();!l.done;l=s.next()){var c=l.value;"undefined"!==typeof i[c]&&(a[c]=b(i[c]))}}catch(u){t={error:u}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return a}return Array.isArray(e)?e.map(b):e}},1496:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r="";function i(e){try{return e&&"function"===typeof e&&e.name||r}catch(t){return r}}},8776:(e,t,n)=>{"use strict";n.d(t,{AU:()=>a,E3:()=>i,Y9:()=>o});var r=n(5336);function i(e,t){return void 0===t&&(t=0),"string"!==typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function o(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r{"use strict";n.d(t,{Gk:()=>o,Ix:()=>c,K4:()=>l,T0:()=>s});var r=n(1276),i=n(4156);function o(){if(!("fetch"in(0,i.mm)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function s(){if(!o())return!1;var e=(0,i.mm)();if(a(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"===typeof n.createElement)try{var s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s),s.contentWindow&&s.contentWindow.fetch&&(t=a(s.contentWindow.fetch)),n.head.removeChild(s)}catch(l){r.Q.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",l)}return t}function l(){if(!o())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}function c(){var e=(0,i.mm)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}},5044:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var r,i=n(5336);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(r||(r={}));var o=function(){function e(e){var t=this;this._state=r.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(r.RESOLVED,e)},this._reject=function(e){t._setResult(r.REJECTED,e)},this._setResult=function(e,n){t._state===r.PENDING&&((0,i.Oe)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==r.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===r.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===r.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var i=t.length,o=[];t.forEach((function(t,a){e.resolve(t).then((function(e){o[a]=e,0===(i-=1)&&n(o)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,i){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(r){return void i(r)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(r){return void i(r)}else i(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var i,o;return n.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){o?r(i):e(i)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}()},4184:(e,t,n)=>{"use strict";n.d(t,{CG:()=>l,W2:()=>u,gb:()=>c});var r=n(4156),i=n(5016);e=n.hmd(e);var o={nowSeconds:function(){return Date.now()/1e3}};var a=(0,i.ao)()?function(){try{return(0,i.iq)(e,"perf_hooks").performance}catch(t){return}}():function(){var e=(0,r.mm)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},l=o.nowSeconds.bind(o),c=s.nowSeconds.bind(s),u=function(){var e=(0,r.mm)().performance;if(e)return e.timeOrigin?e.timeOrigin:e.timing&&e.timing.navigationStart||Date.now()}()},6248:e=>{"use strict";const t=(e,t,n)=>{const r=t<0?e.length+t:t;if(r>=0&&r(e=[...e],t(e,n,r),e),e.exports.mutate=t},8364:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],l=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,d=l>0?a-4:a;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,c=r-i;sc?c:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},3344:(e,t,n)=>{"use strict";const r=n(8364),i=n(924),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Sn=l,t.ZK=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|f(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||Y(e.length)?s(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|f(e))}function p(e){const t=e.length<0?0:0|f(e.length),n=s(t);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(i)return r?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128===(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128===(192&n)&&128===(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n);for(let l=0;l>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":case"latin1":case"binary":return w(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const S=4096;function O(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let o=t;on)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function R(e,t,n,r,i){z(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function N(e,t,n,r,i){z(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function D(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,o){return t=+t,n>>>=0,o||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,o){return t=+t,n>>>=0,o||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=J((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=J((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||I(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){L(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!r){L(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=J((function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=J((function(e){return N(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=J((function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=J((function(e){return N(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function z(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?">= 0".concat(r," and < 2").concat(r," ** ").concat(8*(o+1)).concat(r):">= -(2".concat(r," ** ").concat(8*(o+1)-1).concat(r,") and < 2 ** ")+"".concat(8*(o+1)-1).concat(r):">= ".concat(t).concat(r," and <= ").concat(n).concat(r),new Q.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||H(t,e.length-(n+1))}(r,i,o)}function q(e,t){if("number"!==typeof e)throw new Q.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,n){if(Math.floor(e)!==e)throw q(e,n),new Q.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new Q.ERR_BUFFER_OUT_OF_BOUNDS;throw new Q.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,n){let r='The value of "'.concat(e,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=F(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=F(i)),i+="n"),r+=" It must be ".concat(t,". Received ").concat(i),r}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function G(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function $(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!==e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function J(e){return"undefined"===typeof BigInt?X:e}function X(){throw new Error("BigInt not supported")}},3616:(e,t,n)=>{const r=n(8660);n(5408),n(3304),n(572),n(3092),n(8616),n(9156);const i=n(3024),o=n(6112),a=n(6576);const s={getAttributedEntry:(e,t,n)=>e.replace(/^\s*<[a-z]+/i,"$& data-".concat(t,'="').concat(n,'"')),getPrefixedEntry:(e,t)=>s.getAttributedEntry(e,"csl-entry-id",t),getWrappedEntry(e,t,n){const r=(e,t)=>"function"===typeof t?t(e):null==t?t:"";if(null==n.prepend&&null==n.append)return e;const i=r(t,n.prepend),o=r(t,n.append);let a="",s="";const l=e.match(/^([^>]+>)([\s\S]+)(<[^<]+)$/i);return l&&(a=l[1],e=l[2],s=l[3]),a+i+e+o+s}};function l(e,t){if(!(this instanceof l))return new l(e,t);const n=new r.Cite(e,t);this._options=n._options,this.log=n.log,this.data=n.data}l.prototype=Object.create(r.Cite.prototype),l.async=r.Cite.async,l.validateOptions=r.Cite.validateOptions,l.validateOutputOptions=r.Cite.validateOutputOptions,l.input=r.plugins.input.chain,l.inputAsync=r.plugins.input.chainAsync,l.util=Object.assign({attr:s},r.util),l.version={cite:r.version,citeproc:i.PROCESSOR_VERSION};const c=r.plugins.config.get("@csl");var u,d,p,h,f,m;l.CSL={engine:n(376).ig,item:e=>t=>e.find((e=>e.id===t)),locale:e=>c.styles.get(c.styles.has(e)?e:"en-US"),style:e=>c.templates.get(c.templates.has(e)?e:"apa"),register:{addTemplate:c.templates.add.bind(c.templates),getTemplate:c.templates.get.bind(c.templates),hasTemplate:c.templates.has.bind(c.templates),addLocale:c.locales.add.bind(c.locales),getLocale:c.locales.get.bind(c.locales),hasLocale:c.locales.has.bind(c.locales)}},l.plugins=function e(t){const n={};for(const r in t)n[r]="object"===typeof t[r]?e(t[r]):t[r];return n}(r.plugins),delete l.plugins.input.util.clean,l.parse=Object.assign({input:{chain:r.plugins.input.chain,chainAsync:r.plugins.input.chainAsync,chainLink:r.plugins.input.chainLink,chainLinkAsync:r.plugins.input.chainLinkAsync,data:r.plugins.input.data,dataAsync:r.plugins.input.dataAsync,type:r.plugins.input.type,async:{chain:r.plugins.input.chainAsync,chainLink:r.plugins.input.chainLinkAsync,data:r.plugins.input.dataAsync}},name:o.parse,date:a.parse,csl:r.plugins.input.util.clean,bibjson:n(5408).parsers.json.record,bibtex:(h=n(940).qy,f=n(2892),m=n(9776).target,{json:e=>e.parse([].concat(e)),prop(e,t){const n=f.parse([{type:"book",properties:{[e]:t}}])[0],r=Object.keys(n).find((e=>{let[t]=e;return"type"!==t}));return[r,n[r]]},text:e=>h["@biblatex/text"].parse(e),type:e=>m[e]||"book"}),bibtxt:(p=n(2652),{text:p.parse,textEntry:p.textEntry}),doi:(d=n(3092),{api:d.parsers.api.parse,id:d.parsers.id.parse,async:{api:d.parsers.api.parseAsync}}),json:n(7767).a8.json.parse,wikidata:(u=n(9156),{json:u.parsers.entity.parse,list:u.parsers.id.parse,prop:u.parsers.prop.parse,type:u.parsers.prop.parseType,async:{json:u.parsers.entity.parseAsync,prop(){for(var e=arguments.length,t=new Array(e),n=0;n({json:e=>t.formatBibtex([e])[0],label(e){let{id:t,"citation-label":r,author:i,issued:o,"year-suffix":a,title:s}=e;return n.LABEL.toSource(t,r,i,o,a,s)},text:(t,n)=>e.bibtex(t,{format:n?"html":"text"}),type:e=>r[e]||"misc"}))(n(3384).c,n(5480),n(448).Converters,n(9776).target),bibtxt:n(2683).format,json:n(6532).c.data,label:n(6532).c.label},l.plugins.output),e.exports=l},6576:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"format",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return r.default}});var r=o(n(1920)),i=o(n(7600));function o(e){return e&&e.__esModule?e:{default:e}}},1920:(e,t)=>{"use strict";function n(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)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(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.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n+e<0)))return null;r=+n[0]<0||+n[0]>+n[1]&&+n[1]>0?n.pop():n.shift()}return[n.pop(),r]}return null}(e)||function(e){if("string"!==typeof e)return null;const t=e.match(/^(\d+) ?(a\.?d\.?|b\.?c\.?)$/i);if(t){const e=n(t.slice(1),2);return[e[0]*("a"===e[1].toLowerCase()[0]?1:-1)]}return/^-?\d+$/.test(e)?[e]:null}(e);return t&&t.map((e=>parseInt(e)))}var d=function(e,t){const n=[],r="string"===typeof e&&function(e){return a.test(e)?e.match(a).slice(1,3):e.split(o)}(e);t?n.push(e,t):r&&2===r.length?n.push(...r):n.push(e);const i=n.map(u);return i.filter(Boolean).length===n.length?{"date-parts":i}:{raw:t?n.join("/"):e}};t.default=d},7600:(e,t)=>{"use strict";function n(e,t,n){if(e.length>=t)return e;for(;e.length1&&void 0!==arguments[1]?arguments[1]:"-";if(!e["date-parts"])return e.raw;const r=e["date-parts"][0].map((e=>e.toString()));switch(r.length){case 3:r[2]=n(r[2],2,"0");case 2:r[1]=n(r[1],2,"0");case 1:r[0]=n(r[0],4,"0")}return r.join(t)};t.default=r},3024:e=>{"use strict";var t={PROCESSOR_VERSION:"1.4.61",error:function(e){throw"undefined"===typeof Error?new Error("citeproc-js error: "+e):"citeproc-js error: "+e},debug:function(e){"undefined"===typeof console?dump("CSL: "+e+"\n"):console.log("citeproc-js warning: "+e)},toLocaleUpperCase(e){var t=this.tmp.lang_array;try{e=e.toLocaleUpperCase(t)}catch(n){e=e.toUpperCase()}return e},toLocaleLowerCase(e){var t=this.tmp.lang_array;try{e=e.toLocaleLowerCase(t)}catch(n){e=e.toLowerCase()}return e},LOCATOR_LABELS_REGEXP:new RegExp("^((vrs|sv|subpara|op|subch|add|amend|annot|app|art|bibliog|bk|ch|cl|col|cmt|dec|dept|div|ex|fig|fld|fol|n|hypo|illus|intro|l|no|p|pp|para|pt|pmbl|princ|pub|r|rn|sched|sec|ser|subdiv|subsec|supp|tbl|tit|vol)\\.)\\s+(.*)"),STATUTE_SUBDIV_PLAIN_REGEX:/(?:(?:^| )(?:vrs|sv|subpara|op|subch|add|amend|annot|app|art|bibliog|bk|ch|cl|col|cmt|dec|dept|div|ex|fig|fld|fol|n|hypo|illus|intro|l|no|p|pp|para|pt|pmbl|princ|pub|r|rn|sched|sec|ser|subdiv|subsec|supp|tbl|tit|vol)\. *)/,STATUTE_SUBDIV_PLAIN_REGEX_FRONT:/(?:^\s*[.,;]*\s*(?:vrs|sv|subpara|op|subch|add|amend|annot|app|art|bibliog|bk|ch|cl|col|cmt|dec|dept|div|ex|fig|fld|fol|n|hypo|illus|intro|l|no|p|pp|para|pt|pmbl|princ|pub|r|rn|sched|sec|ser|subdiv|subsec|supp|tbl|tit|vol)\. *)/,STATUTE_SUBDIV_STRINGS:{"vrs.":"verse","sv.":"sub-verbo","subpara.":"subparagraph","op.":"opus","subch.":"subchapter","add.":"addendum","amend.":"amendment","annot.":"annotation","app.":"appendix","art.":"article","bibliog.":"bibliography","bk.":"book","ch.":"chapter","cl.":"clause","col.":"column","cmt.":"comment","dec.":"decision","dept.":"department","ex.":"example","fig.":"figure","fld.":"field","fol.":"folio","n.":"note","hypo.":"hypothetical","illus.":"illustration","intro.":"introduction","l.":"line","no.":"issue","p.":"page","pp.":"page","para.":"paragraph","pt.":"part","pmbl.":"preamble","princ.":"principle","pub.":"publication","r.":"rule","rn.":"randnummer","sched.":"schedule","sec.":"section","ser.":"series,","subdiv.":"subdivision","subsec.":"subsection","supp.":"supplement","tbl.":"table","tit.":"title","vol.":"volume"},STATUTE_SUBDIV_STRINGS_REVERSE:{verse:"vrs.","sub-verbo":"sv.","sub verbo":"sv.",subparagraph:"subpara.",opus:"op.",subchapter:"subch.",addendum:"add.",amendment:"amend.",annotation:"annot.",appendix:"app.",article:"art.",bibliography:"bibliog.",book:"bk.",chapter:"ch.",clause:"cl.",column:"col.",comment:"cmt.",decision:"dec.",department:"dept.",example:"ex.",figure:"fig.",field:"fld.",folio:"fol.",note:"n.",hypothetical:"hypo.",illustration:"illus.",introduction:"intro.",line:"l.",issue:"no.",page:"p.",paragraph:"para.",part:"pt.",preamble:"pmbl.",principle:"princ.",publication:"pub.",rule:"r.",randnummer:"rn.",schedule:"sched.",section:"sec.","series,":"ser.",subdivision:"subdiv.",subsection:"subsec.",supplement:"supp.",table:"tbl.",title:"tit.",volume:"vol."},LOCATOR_LABELS_MAP:{vrs:"verse",sv:"sub-verbo",subpara:"subparagraph",op:"opus",subch:"subchapter",add:"addendum",amend:"amendment",annot:"annotation",app:"appendix",art:"article",bibliog:"bibliography",bk:"book",ch:"chapter",cl:"clause",col:"column",cmt:"comment",dec:"decision",dept:"department",ex:"example",fig:"figure",fld:"field",fol:"folio",n:"note",hypo:"hypothetical",illus:"illustration",intro:"introduction",l:"line",no:"issue",p:"page",pp:"page",para:"paragraph",pt:"part",pmbl:"preamble",princ:"principle",pub:"publication",r:"rule",rn:"randnummer",sched:"schedule",sec:"section",ser:"series,",subdiv:"subdivision",subsec:"subsection",supp:"supplement",tbl:"table",tit:"title",vol:"volume"},MODULE_MACROS:{"juris-pretitle":!0,"juris-title":!0,"juris-pretitle-short":!0,"juris-title-short":!0,"juris-main":!0,"juris-main-short":!0,"juris-tail":!0,"juris-tail-short":!0,"juris-locator":!0},MODULE_TYPES:{legal_case:!0,legislation:!0,bill:!0,hearing:!0,gazette:!0,report:!0,regulation:!0,standard:!0,patent:!0,locator:!0},checkNestedBrace:function(e){"note"===e.opt.xclass?(this.depth=0,this.update=function(e){for(var t=(e=e||"").split(/([\(\)])/),n=1,r=t.length;n-1;a--)if(e.opt.availableAbbrevDomains[t].indexOf(o[a])>-1){r=o[a];break}if(!r&&i)for(a=i.length-1;a>-1;a--)if(e.opt.availableAbbrevDomains[t].indexOf(i[a])>-1){r=i[a];break}}return r},FIELD_CATEGORY_REMAP:{title:"title","container-title":"container-title","collection-title":"collection-title",country:"place",number:"number",place:"place",archive:"container-title","title-short":"title",genre:"title",event:"title",medium:"title","archive-place":"place","publisher-place":"place","event-place":"place",jurisdiction:"place","language-name":"place","language-name-original":"place","call-number":"number","chapter-number":"number","collection-number":"number",edition:"number",page:"number",issue:"number",locator:"number","locator-extra":"number","number-of-pages":"number","number-of-volumes":"number",volume:"number","citation-number":"number",publisher:"institution-part"},parseLocator:function(e){if(this.opt.development_extensions.locator_date_and_revision&&e.locator){e.locator=""+e.locator;var t=e.locator.indexOf("|");if(t>-1){var n=e.locator;e.locator=n.slice(0,t);var r=(n=n.slice(t+1)).match(/^([0-9]{4}-[0-9]{2}-[0-9]{2}).*/);r&&(e["locator-date"]=this.fun.dateparser.parseDateToObject(r[1]),n=n.slice(r[1].length)),e["locator-extra"]=n.replace(/^\s+/,"").replace(/\s+$/,"")}}return e.locator&&(e.locator=(""+e.locator).replace(/\s+$/,"")),e},normalizeLocaleStr:function(e){if(e){var t=e.split("-");return t[0]=t[0].toLowerCase(),t[1]&&(t[1]=t[1].toUpperCase()),t.join("-")}},parseNoteFieldHacks:function(e,n,r){if("string"===typeof e.note){for(var i=[],o=e.note.split("\n"),a=0,s=o.length;a0||u>1)||i[u-1].match(t.NOTE_FIELD_REGEXP));u+=2)i[u]="\n"+i[u].slice(2,-1).trim()+"\n";o[a]=i.join("")}}var p=0,h={};for(a=0,s=(o=o.join("\n").split("\n")).length;a-1)e[g]&&!r||(e[g]=t.DateParser.parseDateToArray(v),(!n||n[g]&&this.isDateString(v))&&(o[a]=""));else if(!e[g]){if(t.NAME_VARIABLES.indexOf(g.replace(/^alt-/,""))>-1){h[g]||(h[g]=[]);var b=v.split(/\s*\|\|\s*/);if(1===b.length)h[g].push({literal:b[0]});else if(2===b.length){var y={family:b[0],given:b[1]};t.parseParticles(y),h[g].push(y)}}else e[g]=v;n&&!n[g]||(o[a]="")}}}for(var g in h)e[g]=h[g];if(n){o[p].trim()&&(o[p]="\n"+o[p]);for(a=p-1;a>-1;a--)o[a].trim()||(o=o.slice(0,a).concat(o.slice(a+1)))}e.note=o.join("\n").trim()}},checkPrefixSpaceAppend:function(e,n){n||(n="");var r="",i=n.replace(/<[^>]+>/g,"").replace(/["'\u201d\u2019\u00bb\u202f\u00a0 ]+$/g,""),o=i.slice(-1);return(i.match(t.ENDSWITH_ROMANESQUE_REGEXP)||t.TERMINAL_PUNCTUATION.slice(0,-1).indexOf(o)>-1||o.match(/[\)\],0-9]/))&&(r=" "),n=(n+r).replace(/\s+/g," ")},checkIgnorePredecessor:function(e,n){var r=n.replace(/<[^>]+>/g,"").replace(/["'\u201d\u2019\u00bb\u202f\u00a0 ]+$/g,"").slice(-1);return t.TERMINAL_PUNCTUATION.slice(0,-1).indexOf(r)>-1&&n.trim().indexOf(" ")>-1&&(e.tmp.term_predecessor=!1,!0)},checkSuffixSpacePrepend:function(e,n){return n?((n.match(t.STARTSWITH_ROMANESQUE_REGEXP)||["[","("].indexOf(n.slice(0,1))>-1)&&(n=" "+n),n):""},GENDERS:["masculine","feminine"],ERROR_NO_RENDERED_FORM:1,PREVIEW:"Just for laughs.",ASSUME_ALL_ITEMS_REGISTERED:2,START:0,END:1,SINGLETON:2,SEEN:6,SUCCESSOR:3,SUCCESSOR_OF_SUCCESSOR:4,SUPPRESS:5,SINGULAR:0,PLURAL:1,LITERAL:!0,BEFORE:1,AFTER:2,DESCENDING:1,ASCENDING:2,PRIMARY:1,SECONDARY:2,POSITION_FIRST:0,POSITION_SUBSEQUENT:1,POSITION_IBID:2,POSITION_IBID_WITH_LOCATOR:3,POSITION_CONTAINER_SUBSEQUENT:4,POSITION_MAP:{0:0,4:1,1:2,2:3,3:4},POSITION_TEST_VARS:["position","first-reference-note-number","near-note"],AREAS:["citation","citation_sort","bibliography","bibliography_sort","intext"],CITE_FIELDS:["first-reference-note-number","first-container-reference-note-number","locator","locator-extra"],SWAPPING_PUNCTUATION:[".","!","?",":",","],TERMINAL_PUNCTUATION:[":",".",";","!","?"," "],NONE:0,NUMERIC:1,POSITION:2,TRIGRAPH:3,DATE_PARTS:["year","month","day"],DATE_PARTS_ALL:["year","month","day","season"],DATE_PARTS_INTERNAL:["year","month","day","year_end","month_end","day_end"],NAME_PARTS:["non-dropping-particle","family","given","dropping-particle","suffix","literal"],DISAMBIGUATE_OPTIONS:["disambiguate-add-names","disambiguate-add-givenname","disambiguate-add-year-suffix"],GIVENNAME_DISAMBIGUATION_RULES:["all-names","all-names-with-initials","primary-name","primary-name-with-initials","by-cite"],NAME_ATTRIBUTES:["and","delimiter-precedes-last","delimiter-precedes-et-al","initialize-with","initialize","name-as-sort-order","sort-separator","et-al-min","et-al-use-first","et-al-subsequent-min","et-al-subsequent-use-first","form","prefix","suffix","delimiter"],LOOSE:0,STRICT:1,TOLERANT:2,PREFIX_PUNCTUATION:/[.;:]\s*$/,SUFFIX_PUNCTUATION:/^\s*[.;:,\(\)]/,NUMBER_REGEXP:/(?:^\d+|\d+$)/,NAME_INITIAL_REGEXP:/^([A-Z\u0e01-\u0e5b\u00c0-\u017f\u0400-\u042f\u0590-\u05d4\u05d6-\u05ff\u0600-\u06ff\u0370\u0372\u0376\u0386\u0388-\u03ab\u03e2\u03e4\u03e6\u03e8\u03ea\u03ec\u03ee\u03f4\u03f7\u03fd-\u03ff])([a-zA-Z\u0e01-\u0e5b\u00c0-\u017f\u0400-\u052f\u0600-\u06ff\u0370-\u03ff\u1f00-\u1fff]*|)(\.)*/,ROMANESQUE_REGEXP:/[-0-9a-zA-Z\u0e01-\u0e5b\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]/,ROMANESQUE_NOT_REGEXP:/[^a-zA-Z\u0e01-\u0e5b\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]/g,STARTSWITH_ROMANESQUE_REGEXP:/^[&a-zA-Z\u0e01-\u0e5b\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]/,ENDSWITH_ROMANESQUE_REGEXP:/[.;:&a-zA-Z\u0e01-\u0e5b\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]$/,ALL_ROMANESQUE_REGEXP:/^[a-zA-Z\u0e01-\u0e5b\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]+$/,VIETNAMESE_SPECIALS:/[\u00c0-\u00c3\u00c8-\u00ca\u00cc\u00cd\u00d2-\u00d5\u00d9\u00da\u00dd\u00e0-\u00e3\u00e8-\u00ea\u00ec\u00ed\u00f2-\u00f5\u00f9\u00fa\u00fd\u0101\u0103\u0110\u0111\u0128\u0129\u0168\u0169\u01a0\u01a1\u01af\u01b0\u1ea0-\u1ef9]/,VIETNAMESE_NAMES:/^(?:(?:[.AaBbCcDdEeGgHhIiKkLlMmNnOoPpQqRrSsTtUuVvXxYy \u00c0-\u00c3\u00c8-\u00ca\u00cc\u00cd\u00d2-\u00d5\u00d9\u00da\u00dd\u00e0-\u00e3\u00e8-\u00ea\u00ec\u00ed\u00f2-\u00f5\u00f9\u00fa\u00fd\u0101\u0103\u0110\u0111\u0128\u0129\u0168\u0169\u01a0\u01a1\u01af\u01b0\u1ea0-\u1ef9]{2,6})(\s+|$))+$/,NOTE_FIELDS_REGEXP:/\{:(?:[\-_a-z]+|[A-Z]+):[^\}]+\}/g,NOTE_FIELD_REGEXP:/^([\-_a-z]+|[A-Z]+):\s*([^\}]+)$/,PARTICLE_GIVEN_REGEXP:/^([^ ]+(?:\u02bb |\u2019 | |\' ) *)(.+)$/,PARTICLE_FAMILY_REGEXP:/^([^ ]+(?:\-|\u02bb|\u2019| |\') *)(.+)$/,DISPLAY_CLASSES:["block","left-margin","right-inline","indent"],NAME_VARIABLES:["author","chair","collection-editor","compiler","composer","container-author","contributor","curator","director","editor","editor-translator","editorial-director","executive-producer","guest","host","illustrator","interviewer","narrator","organizer","original-author","performer","producer","recipient","reviewed-author","script-writer","series-creator","translator","commenter"],CREATORS:["author","chair","collection-editor","compiler","composer","container-author","contributor","curator","director","editor","editor-translator","editorial-director","executive-producer","guest","host","illustrator","interviewer","narrator","organizer","original-author","performer","producer","recipient","reviewed-author","script-writer","series-creator","translator","commenter"],NUMERIC_VARIABLES:["call-number","chapter-number","collection-number","division","edition","page","issue","locator","locator-extra","number","number-of-pages","number-of-volumes","part-number","printing-number","section","supplement-number","version","volume","supplement","citation-number"],DATE_VARIABLES:["locator-date","issued","event-date","accessed","original-date","publication-date","available-date","submitted","alt-issued","alt-event"],VARIABLES_WITH_SHORT_FORM:["title","container-title"],TITLE_FIELD_SPLITS:function(e){for(var t=["title","short","main","sub","subjoin"],n={},r=0,i=t.length;r-1&&r.indexOf(t[o].toLowerCase())>-1;o+=-1)i.push(t.pop());t.reverse();var a=t.join(" "),s=i.join(" ");"drop"!==n&&s?"demote"===n&&(t=[a,s].join(", ")):t=a}return t},extractTitleAndSubtitle:function(e,n){var r=n?"\u202f":"",i=[""];this.opt.development_extensions.split_container_title&&i.push("container-");for(var o=0,a=i.length;o-1&&(h[l.subjoin]=r+": "),(h[l.subjoin].indexOf("-")>-1||h[l.subjoin].indexOf("\u2014")>-1)&&(h[l.subjoin]="\u2014")),u)for(var _ in h)e.multi._keys[_]||(e.multi._keys[_]={}),e.multi._keys[_][u]=h[_];else for(var _ in h)e[_]=h[_]}}},titlecaseSentenceOrNormal:function(e,n,r,i,o){var a=t.TITLE_FIELD_SPLITS(r),s={};if(i&&n.multi?(n.multi._keys[a.title]&&(s[a.title]=n.multi._keys[a.title][i]),n.multi._keys[a.main]&&(s[a.main]=n.multi._keys[a.main][i]),n.multi._keys[a.sub]&&(s[a.sub]=n.multi._keys[a.sub][i]),n.multi._keys[a.subjoin]&&(s[a.subjoin]=n.multi._keys[a.subjoin][i])):(s[a.title]=n[a.title],s[a.main]=n[a.main],s[a.sub]=n[a.sub],s[a.subjoin]=n[a.subjoin]),s[a.main]&&s[a.sub]){var l=s[a.main],c=s[a.subjoin],u=s[a.sub];return o?(l=t.Output.Formatters.sentence(e,l),u=t.Output.Formatters.sentence(e,u)):e.opt.development_extensions.uppercase_subtitles&&(u=t.Output.Formatters["capitalize-first"](e,u)),[l,c,u].join("")}if(s[a.title]){if(o)return t.Output.Formatters.sentence(e,s[a.title]);if(e.opt.development_extensions.uppercase_subtitles){for(var d=t.TITLE_SPLIT(s[a.title]),p=0,h=d.length;p-1||d[p].indexOf("\u2014")>-1)&&(d[p]="\u2014")}return s[a.title]=d.join(""),s[a.title]}return s[a.title]}return""},getSafeEscape:function(e){if(["bibliography","citation"].indexOf(e.tmp.area)>-1){var n=[];return e.opt.development_extensions.thin_non_breaking_space_html_hack&&"html"===e.opt.mode&&n.push((function(e){return e.replace(/\u202f/g,'')})),n.length?function(r){for(var i=0,o=n.length;i"@vertical-align"===e[0])).length>0||r&&r.strings.suffix?e.tmp.just_did_number=!1:t&&(t.match(/[0-9]$/)?e.tmp.just_did_number=!0:e.tmp.just_did_number=!1)}},EVALUATE_GROUP_CONDITION:function(e,n){if(e.opt.use_context_condition){var r,i="comma-safe-numbers-only"===n.condition.test;if("empty-label"===n.condition.test)r=!n.condition.termtxt;else if("empty-label-no-decor"===n.condition.test)r=!n.condition.termtxt||n.condition.termtxt.indexOf("%s")>-1;else if(["comma-safe","comma-safe-numbers-only"].indexOf(n.condition.test)>-1){var o=n.condition.termtxt,a=!1;n.condition.termtxt&&(a=n.condition.termtxt.slice(0,1).match(t.ALL_ROMANESQUE_REGEXP)),r=e.tmp.just_did_number?n.condition.valueTerm?!i:!o||(a?!i:["always","after-number"].indexOf(e.opt.require_comma_on_symbol)>-1):!n.condition.valueTerm&&(!!o&&(a?!i:"always"===e.opt.require_comma_on_symbol))}if(r)var s=!1;else s=!0;return n.condition.not&&(s=!s),s}},SYS_OPTIONS:["prioritize_disambiguate_condition","csl_reverse_lookup_support","main_title_from_short_title","uppercase_subtitles","force_short_title_casing_alignment","implicit_short_title","split_container_title"],TITLE_SPLIT_REGEXP:function(){var e=["\\.\\s+","\\!\\s+","\\?\\s+","\\s*::*\\s+","\\s*\u2014\\s*","\\s+\\-\\s+","\\s*\\-\\-\\-*\\s*"];return{match:new RegExp("("+e.join("|")+")","g"),matchfirst:new RegExp("^("+e.join("|")+")"),split:new RegExp("(?:"+e.join("|")+")")}}(),TITLE_SPLIT:function(e){if(!e)return e;for(var n=e.match(t.TITLE_SPLIT_REGEXP.match),r=e.split(t.TITLE_SPLIT_REGEXP.split),i=r.length-2;i>-1;i--)r[i]=r[i].trim(),r[i]&&r[i].slice(-1).toLowerCase()!==r[i].slice(-1)?(r[i]=r[i]+n[i]+r[i+1],r=r.slice(0,i+1).concat(r.slice(i+2))):r=r.slice(0,i+1).concat([n[i]]).concat(r.slice(i+1));return r},GET_COURT_CLASS:function(e,t,n){var r="",i=null,o=t.jurisdiction?t.jurisdiction.split(":")[0]:null,a="court_condition_classes";return n&&(a="court_key_classes"),o&&t.authority&&("string"===typeof t.authority?i=t.authority:t.authority[0]&&t.authority[0].literal&&(i=t.authority[0].literal)),i&&(this.lang&&e.locale[this.lang].opts[a]&&e.locale[this.lang].opts[a][o]&&e.locale[this.lang].opts[a][o][i]?r=e.locale[this.lang].opts[a][o][i]:e.locale[e.opt["default-locale"][0]].opts[a]&&e.locale[e.opt["default-locale"][0]].opts[a][o]&&e.locale[e.opt["default-locale"][0]].opts[a][o][i]&&(r=e.locale[e.opt["default-locale"][0]].opts[a][o][i])),r},SET_COURT_CLASSES:function(e,t,n,r){for(var i=n.getNodesByName(r,"court-class"),o=0,a=n.numberofnodes(i);o-1)||e.children[r].attrs.prefix||e.children[r].attrs.suffix){t=!1;break}n=n.slice(0,o).concat(n.slice(o+1))}t&&!n.length&&(e.attrs["has-publisher-and-publisher-place"]=!0)}for(r=0,i=e.children.length;r0){var t=e.slice();return"substitute"===t.pop()||this.isChildOfSubstitute(t)}return!1},t.XmlJSON.prototype.addMissingNameNodes=function(e,t){if(t||(t=[]),"names"===e.name&&!this.isChildOfSubstitute(t)){for(var n=!0,r=0,i=e.children.length;r-1){var c=this.nodeCopy(this.institution);for(i=0,o=t.INSTITUTION_KEYS.length;i/,"")).replace(//g,"")).replace(/^\s+/g,"")).replace(/\s+$/g,""):e},t.parseXml=function(e){var t={children:[]},n=[t.children];function r(e){return e.split("&").join("&").split(""").join('"').split(">").join(">").split("<").join("<").replace(/&#([0-9]{1,6});/gi,(function(e,t){var n=parseInt(t,10);return String.fromCharCode(n)})).replace(/&#x([a-f0-9]{1,6});/gi,(function(e,t){var n=parseInt(t,16);return String.fromCharCode(n)}))}function i(e,t){var n=RegExp("^.*[\t ]+"+t+"=(\"(?:[^\"]*)\"|'(?:[^']*)').*$"),r=e.match(n);return r?r[1].slice(1,-1):null}function o(e){var t=RegExp("^<([^\t />]+)"),n=e.match(t);return n?n[1]:null}function a(e){var t={};t.name=o(e),t.attrs={};var n=function(e){var t=e.match(/([^\'\"=\x09 ]+)=(?:\"[^\"]*\"|\'[^\']*\')/g);if(t)for(var n=0,r=t.length;n([^<]*)<.*$/)[1])}function l(e){n.slice(-1)[0].push(e)}function c(e){var t;e.slice(1).indexOf("<")>-1?((t=a(e.slice(0,e.indexOf(">")+1))).children=[s(e)],l(t)):"/>"===e.slice(-2)?(t=a(e),"term"===o(e)&&t.children.push(""),l(t)):"[\x09 ]+<").replace(/<\!--.*?-->/g,"")).split("><"),n=null,r=0,i=t.length;r0&&(t[r]="<"+t[r]),r"),"number"!=typeof n&&("","vancouver":"","harvard1":""}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.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),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/metadata-entry-form/",(()=>{"use strict";var e={};n.r(e),n.d(e,{Express:()=>Ze,Mongo:()=>tt.g,Mysql:()=>et.W,Postgres:()=>Xe.a});var t={};n.r(t),n.d(t,{hasBrowserEnv:()=>lM,hasStandardBrowserEnv:()=>cM,hasStandardBrowserWebWorkerEnv:()=>dM});var r,i=n(1468),o=n(4840),a=n(8992),s=n(3104),l=n(9112),c=n(1276),u=n(4156),d=n(8776),p=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],h=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){(0,s.e)((function(t){var n=(0,l.WS)();if(!n)return t;var r=n.getIntegration(e);if(r){var i=n.getClient(),o=i?i.getOptions():{},a=r._mergeOptions(o);if(r._shouldDropEvent(t,a))return null}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(c.Q.warn("Event dropped due to being internal Sentry Error.\nEvent: "+(0,u.y_)(e)),!0):this._isIgnoredError(e,t)?(c.Q.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,u.y_)(e)),!0):this._isDeniedUrl(e,t)?(c.Q.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,u.y_)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(c.Q.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,u.y_)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(n){return!1}},e.prototype._isIgnoredError=function(e,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return(0,d.AU)(e,t)}))}))},e.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.denyUrls.some((function(e){return(0,d.AU)(n,e)}))},e.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.allowUrls.some((function(e){return(0,d.AU)(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:(0,a.KQ)(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:(0,a.KQ)(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:(0,a.KQ)(this._options.ignoreErrors||[],e.ignoreErrors||[],p),ignoreInternal:"undefined"===typeof this._options.ignoreInternal||this._options.ignoreInternal}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,i=t.value,o=void 0===i?"":i;return[""+o,r+": "+o]}catch(a){return c.Q.error("Cannot extract message for event "+(0,u.y_)(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(r){return c.Q.error("Cannot extract url for event "+(0,u.y_)(e)),null}},e.id="InboundFilters",e}(),f=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){r=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t1&&(d=h.slice(0,-1).join("/"),p=h.pop()),p){var f=p.match(/^\d+/);f&&(p=f[0])}this._fromComponents({host:l,pass:s,path:d,projectId:p,port:u,protocol:r,user:i})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach((function(t){if(!e[t])throw new v(y+": "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new v(y+": Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new v(y+": Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new v(y+": Invalid port "+this.port)},e}(),x=n(5336),w=n(5044),E=n(4184),T=n(5980),C=[];function k(e){var t={};return function(e){var t=e.defaultIntegrations&&(0,a.KQ)(e.defaultIntegrations)||[],n=e.integrations,r=[];if(Array.isArray(n)){var i=n.map((function(e){return e.name})),o=[];t.forEach((function(e){-1===i.indexOf(e.name)&&-1===o.indexOf(e.name)&&(r.push(e),o.push(e.name))})),n.forEach((function(e){-1===o.indexOf(e.name)&&(r.push(e),o.push(e.name))}))}else"function"===typeof n?(r=n(t),r=Array.isArray(r)?r:[r]):r=(0,a.KQ)(t);var s=r.map((function(e){return e.name})),l="Debug";return-1!==s.indexOf(l)&&r.push.apply(r,(0,a.KQ)(r.splice(s.indexOf(l),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===C.indexOf(e.name)&&(e.setupOnce(s.e,l.WS),C.push(e.name),c.Q.log("Integration installed: "+e.name))}(e)})),t}var S,O=function(){function e(e,t){this._integrations={},this._processing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new _(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this,i=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){i=e}))),i},e.prototype.captureMessage=function(e,t,n,r){var i=this,o=n&&n.event_id,a=(0,x.od)(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then((function(e){return i._captureEvent(e,n,r)})).then((function(e){o=e}))),o},e.prototype.captureEvent=function(e,t,n){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){r=e}))),r},e.prototype.captureSession=function(e){e.release?this._sendSession(e):c.Q.warn("Discarded session because of missing release")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(n){return t._getBackend().getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=k(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return c.Q.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,i,o=!1,s=!1,l=t.exception&&t.exception.values;if(l){s=!0;try{for(var c=(0,a.gR)(l),u=c.next();!u.done;u=c.next()){var d=u.value.mechanism;if(d&&!1===d.handled){o=!0;break}}}catch(g){n={error:g}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}var p=t.user;if(!e.userAgent){var h=t.request?t.request.headers:{};for(var f in h)if("user-agent"===f.toLowerCase()){i=h[f];break}}e.update((0,a.C3)((0,a.C3)({},o&&{status:m.G.Crashed}),{user:p,userAgent:i,errors:e.errors+Number(s||o)}))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientProcessing=function(e){var t=this;return new w.G((function(n){var r=0,i=setInterval((function(){0==t._processing?(clearInterval(i),n(!0)):(r+=1,e&&r>=e&&(clearInterval(i),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,i=this.getOptions().normalizeDepth,o=void 0===i?3:i,l=(0,a.C3)((0,a.C3)({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:(0,u.OW)()),timestamp:e.timestamp||(0,E.CG)()});this._applyClientOptions(l),this._applyIntegrationsMetadata(l);var c=t;n&&n.captureContext&&(c=s.k.clone(c).update(n.captureContext));var d=w.G.resolve(l);return c&&(d=c.applyToEvent(l,n)),d.then((function(e){return"number"===typeof o&&o>0?r._normalizeEvent(e,o):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=(0,a.C3)((0,a.C3)((0,a.C3)((0,a.C3)((0,a.C3)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return(0,a.C3)((0,a.C3)({},e),e.data&&{data:(0,T.Cs)(e.data,t)})}))}),e.user&&{user:(0,T.Cs)(e.user,t)}),e.contexts&&{contexts:(0,T.Cs)(e.contexts,t)}),e.extra&&{extra:(0,T.Cs)(e.extra,t)});return e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace),n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,i=t.dist,o=t.maxValueLength,a=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,d.E3)(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,d.E3)(s.value,a));var l=e.request;l&&l.url&&(l.url=(0,d.E3)(l.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=e.sdk,n=Object.keys(this._integrations);t&&n.length>0&&(t.integrations=n)},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){c.Q.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate;if(!this._isEnabled())return w.G.reject(new v("SDK not enabled, will not send event."));var s="transaction"===e.type;return!s&&"number"===typeof a&&Math.random()>a?w.G.reject(new v("Discarding event because it's not included in the random sample (sampling rate = "+a+")")):this._prepareEvent(e,n,t).then((function(e){if(null===e)throw new v("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||s||!o)return e;var n=o(e,t);if("undefined"===typeof n)throw new v("`beforeSend` method has to return `null` or a valid event.");return(0,x.Oe)(n)?n.then((function(e){return e}),(function(e){throw new v("beforeSend rejected with "+e)})):n})).then((function(e){if(null===e)throw new v("`beforeSend` returned `null`, will not send event.");var t=n&&n.getSession&&n.getSession();return!s&&t&&r._updateSessionFromEvent(t,e),r._sendEvent(e),e})).then(null,(function(e){if(e instanceof v)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new v("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._processing+=1,e.then((function(e){return t._processing-=1,e}),(function(e){return t._processing-=1,e}))},e}();!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(S||(S={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(S||(S={}));var A,j=function(){function e(){}return e.prototype.sendEvent=function(e){return w.G.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:S.Skipped})},e.prototype.close=function(e){return w.G.resolve(!0)},e}(),P=function(){function e(e){this._options=e,this._options.dsn||c.Q.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new v("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new v("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){c.Q.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){c.Q.error("Error while sending session: "+e)})):c.Q.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new j},e}();!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(A||(A={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;default:return e.Log}}}(A||(A={}));var I=n(648),L="?",R=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,N=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,D=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,M=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,B=/\((\S*)(?::(\d+))(?::(\d+))\)/,Q=/Minified React error #\d+;/i;function U(e){var t=null,n=0;e&&("number"===typeof e.framesToPop?n=e.framesToPop:Q.test(e.message)&&(n=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=e.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=n.split("\n"),a=[],s=0;s eval")>-1&&(t=M.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==a||n[5]||void 0===e.columnNumber||(i[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||L,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=L),i.push(r)}if(!i.length)return null;return{message:z(e),name:e.name,stack:i}}(e),t)return F(t,n)}catch(r){}return{message:z(e),name:e&&e.name,stack:[],failed:!0}}function F(e,t){try{return(0,a.C3)((0,a.C3)({},e),{stack:e.stack.slice(t)})}catch(n){return e}}function z(e){var t=e&&e.message;return t?t.error&&"string"===typeof t.error.message?t.error.message:t:"No error message"}var q=50;function H(e){var t=G(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function W(e){return{exception:{values:[H(e)]}}}function G(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,q).map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).reverse()}function V(e,t,n){var r;if(void 0===n&&(n={}),(0,x.cz)(e)&&e.error)return r=W(U(e=e.error));if((0,x.Sc)(e)||(0,x.Qn)(e)){var i=e,o=i.name||((0,x.Sc)(i)?"DOMError":"DOMException"),s=i.message?o+": "+i.message:o;return r=$(s,t,n),(0,u.NP)(r,s),"code"in i&&(r.tags=(0,a.C3)((0,a.C3)({},r.tags),{"DOMException.code":""+i.code})),r}return(0,x.eU)(e)?r=W(U(e)):(0,x.oF)(e)||(0,x.SO)(e)?(r=function(e,t,n){var r={exception:{values:[{type:(0,x.SO)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+(0,T.yq)(e)}]},extra:{__serialized__:(0,T.yY)(e)}};if(t){var i=G(U(t).stack);r.stacktrace={frames:i}}return r}(e,t,n.rejection),(0,u.qW)(r,{synthetic:!0}),r):(r=$(e,t,n),(0,u.NP)(r,""+e,void 0),(0,u.qW)(r,{synthetic:!0}),r)}function $(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var i=G(U(t).stack);r.stacktrace={frames:i}}return r}function K(e,t){return{body:JSON.stringify({sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(e),type:"session",url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function Y(e,t){var n=e.tags||{},r=n.__sentry_samplingMethod,i=n.__sentry_sampleRate,o=(0,a.sX)(n,["__sentry_samplingMethod","__sentry_sampleRate"]);e.tags=o;var s="transaction"===e.type,l={body:JSON.stringify(e),type:e.type||"event",url:s?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(s){var c=JSON.stringify({event_id:e.event_id,sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:e.type,sample_rates:[{id:r,rate:i}]})+"\n"+l.body;l.body=c}return l}var Z=function(){function e(e){this.dsn=e,this._dsnObject=new _(e)}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getBaseApiEndpoint=function(){var e=this._dsnObject,t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"},e.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject,r=["Sentry sentry_version=7"];return r.push("sentry_client="+e+"/"+t),r.push("sentry_key="+n.user),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var i in r.push("dsn="+t.toString()),e)if("dsn"!==i)if("user"===i){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return r.length?n+"?"+r.join("&"):n},e.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(e){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+e+"/"},e.prototype._encodedAuth=function(){var e={sentry_key:this._dsnObject.user,sentry_version:"7"};return(0,T.OW)(e)},e}(),J=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()0&&n(!1)}),e);w.G.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),X=function(){function e(e){this.options=e,this._buffer=new J(30),this._rateLimits={},this._api=new Z(this.options.dsn),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new v("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,i=e.resolve,o=e.reject,a=S.fromHttpCode(n.status);this._handleRateLimit(r)&&c.Q.warn("Too many requests, backing off until: "+this._disabledUntil(t)),a!==S.Success?o(n):i({status:a})},e.prototype._disabledUntil=function(e){return this._rateLimits[e]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,r,i,o=Date.now(),s=e["x-sentry-rate-limits"],l=e["retry-after"];if(s){try{for(var c=(0,a.gR)(s.trim().split(",")),d=c.next();!d.done;d=c.next()){var p=d.value.split(":",2),h=parseInt(p[0],10),f=1e3*(isNaN(h)?60:h);try{for(var m=(r=void 0,(0,a.gR)(p[1].split(";"))),g=m.next();!g.done;g=m.next()){var v=g.value;this._rateLimits[v||"all"]=new Date(o+f)}}catch(b){r={error:b}}finally{try{g&&!g.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}}}catch(y){t={error:y}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return!0}return!!l&&(this._rateLimits.all=new Date(o+(0,u.Mt)(o,l)),!0)},e}(),ee=(0,u.mm)(),te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.ct)(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(Y(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(K(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:(0,I.K4)()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add(new w.G((function(t,i){ee.fetch(e.url,r).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:o,resolve:t,reject:i})})).catch(i)})))},t}(X),ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.ct)(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(Y(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(K(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429}):this._buffer.add(new w.G((function(t,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:i,headers:o,resolve:t,reject:r})}},i.open("POST",e.url),n.options.headers)n.options.headers.hasOwnProperty(o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(e.body)})))},t}(X),re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.ct)(t,e),t.prototype.eventFromException=function(e,t){return function(e,t,n){var r=V(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return(0,u.qW)(r,{handled:!0,type:"generic"}),r.level=A.Error,n&&n.event_id&&(r.event_id=n.event_id),w.G.resolve(r)}(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=A.Info),function(e,t,n,r){void 0===n&&(n=A.Info);var i=$(t,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),w.G.resolve(i)}(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=(0,a.C3)((0,a.C3)({},this._options.transportOptions),{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):(0,I.Gk)()?new te(t):new ne(t)},t}(P);function ie(e){for(var t=[],n=1;n0}function le(e,t,n){if(void 0===t&&(t={}),"function"!==typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(o){return e}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);var i=r.map((function(e){return le(e,t)}));return e.handleEvent?e.handleEvent.apply(this,i):e.apply(this,i)}catch(o){throw ae+=1,setTimeout((function(){ae-=1})),ie("withScope",(function(e){e.addEventProcessor((function(e){var n=(0,a.C3)({},e);return t.mechanism&&((0,u.NP)(n,void 0,void 0),(0,u.qW)(n,t.mechanism)),n.extra=(0,a.C3)((0,a.C3)({},n.extra),{arguments:r}),n})),oe(o)})),o}};try{for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch(s){}e.prototype=e.prototype||{},r.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(s){}return r}function ce(e){if(void 0===e&&(e={}),e.eventId)if(e.dsn){var t=document.createElement("script");t.async=!0,t.src=new Z(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad),(document.head||document.body).appendChild(t)}else c.Q.error("Missing dsn option in showReportDialog call");else c.Q.error("Missing eventId option in showReportDialog call")}var ue=n(3456),de=n(8972),pe=function(){function e(t){this.name=e.id,this._options=(0,a.C3)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&(0,l.WS)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,u.y_)(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&(0,ue.c)({callback:function(){for(var t=[],n=0;n"}0!==t.length&&(0,l.WS)().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,i=t.status_code,o=t.body;(0,l.WS)().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:i},type:"http"},{xhr:e.xhr,input:o})}else;},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?(0,l.WS)().addBreadcrumb({category:"fetch",data:e.fetchData,level:A.Error,type:"http"},{data:e.error,input:e.args}):(0,l.WS)().addBreadcrumb({category:"fetch",data:(0,a.C3)((0,a.C3)({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=(0,u.mm)(),n=e.from,r=e.to,i=(0,u.UX)(t.location.href),o=(0,u.UX)(n),a=(0,u.UX)(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),(0,l.WS)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.id="Breadcrumbs",e}(),he="5.30.0",fe=function(e){function t(t){return void 0===t&&(t={}),e.call(this,re,t)||this}return(0,a.ct)(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),(0,u.mm)().document&&(this._isEnabled()?ce((0,a.C3)((0,a.C3)({},e),{dsn:e.dsn||this.getDsn()})):c.Q.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",t.sdk=(0,a.C3)((0,a.C3)({},t.sdk),{name:"sentry.javascript.browser",packages:(0,a.KQ)(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:he}]),version:he}),e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(pe);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(O),me=n(1496),ge=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],ve=function(){function e(t){this.name=e.id,this._options=(0,a.C3)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=(0,u.mm)();(this._options.setTimeout&&(0,T.ym)(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&(0,T.ym)(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&(0,T.ym)(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&(0,T.ym)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget)&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:ge).forEach(this._wrapEventTarget.bind(this))},e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n0?t:(0,u.s5)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:i,filename:a,function:"?",in_app:!0,lineno:o}),e},e.id="GlobalHandlers",e}(),ye=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){(0,s.e)((function(t,n){var r=(0,l.WS)().getIntegration(e);return r?r._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!e.exception||!e.exception.values||!t||!(0,x.aG)(t.originalException,Error))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=(0,a.KQ)(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!(0,x.aG)(e[t],Error)||n.length+1>=this._limit)return n;var r=H(U(e[t]));return this._walkErrorTree(e[t],t,(0,a.KQ)([r],n))},e.id="LinkedErrors",e}(),_e=(0,u.mm)(),xe=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){(0,s.e)((function(t){var n,r,i;if((0,l.WS)().getIntegration(e)){if(!_e.navigator&&!_e.location&&!_e.document)return t;var o=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(r=_e.location)||void 0===r?void 0:r.href),s=(_e.document||{}).referrer,c=(_e.navigator||{}).userAgent,u=(0,a.C3)((0,a.C3)((0,a.C3)({},null===(i=t.request)||void 0===i?void 0:i.headers),s&&{Referer:s}),c&&{"User-Agent":c}),d=(0,a.C3)((0,a.C3)({},o&&{url:o}),{headers:u});return(0,a.C3)((0,a.C3)({},t),{request:d})}return t}))},e.id="UserAgent",e}(),we=[new h,new f,new ve,new pe,new be,new ye,new xe];var Ee=n(7090),Te=n(9916),Ce=n(8888),ke=n(6360),Se=(0,u.mm)();var Oe,Ae,je=function(e,t,n,r){var i;return function(){n&&t.isFinal&&n.disconnect(),t.value>=0&&(r||t.isFinal||"hidden"===document.visibilityState)&&(t.delta=t.value-(i||0),(t.delta||t.isFinal||void 0===i)&&(e(t),i=t.value))}},Pe=function(e,t){return void 0===t&&(t=-1),{name:e,value:t,delta:0,entries:[],id:Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12),isFinal:!1}},Ie=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(r){}},Le=!1,Re=!1,Ne=function(e){Le=!e.persisted},De=function(e,t){void 0===t&&(t=!1),Re||(addEventListener("pagehide",Ne),addEventListener("beforeunload",(function(){})),Re=!0),addEventListener("visibilitychange",(function(t){var n=t.timeStamp;"hidden"===document.visibilityState&&e({timeStamp:n,isUnloading:Le})}),{capture:!0,once:t})},Me=function(){return void 0===Oe&&(Oe="hidden"===document.visibilityState?0:1/0,De((function(e){var t=e.timeStamp;return Oe=t}),!0)),{get timeStamp(){return Oe}}},Be=function(e,t){void 0===t&&(t=!1);var n,r=Pe("LCP"),i=Me(),o=function(e){var t=e.startTime;t-1&&(r=f)}})),void 0!==r&&void 0!==i&&He(e,{description:"evaluation",endTimestamp:i,op:"script",startTimestamp:r}),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(e),"pageload"===e.op){var s=(0,ke.kV)(E.W2);["fcp","fp","lcp","ttfb"].forEach((function(n){if(t._measurements[n]&&!(s>=e.startTimestamp)){var r=t._measurements[n].value,i=s+(0,ke.kV)(r),o=Math.abs(1e3*(i-e.startTimestamp)),a=o-r;c.Q.log("[Measurements] Normalized "+n+" from "+r+" to "+o+" ("+a+")"),t._measurements[n].value=o}})),this._measurements["mark.fid"]&&this._measurements.fid&&He(e,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+(0,ke.kV)(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),e.setMeasurements(this._measurements)}}},e.prototype._trackCLS=function(){var e=this;!function(e,t){void 0===t&&(t=!1);var n,r=Pe("CLS",0),i=function(e){e.hadRecentInput||(r.value+=e.value,r.entries.push(e),n())},o=Ie("layout-shift",i);o&&(n=je(e,r,o,t),De((function(e){var t=e.isUnloading;o.takeRecords().map(i),t&&(r.isFinal=!0),n()})))}((function(t){t.entries.pop()&&(c.Q.log("[Measurements] Adding CLS"),e._measurements.cls={value:t.value})}))},e.prototype._trackNavigator=function(e){var t=Fe.navigator;if(t){var n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),We(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),We(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),We(t.deviceMemory)&&e.setTag("deviceMemory",String(t.deviceMemory)),We(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}},e.prototype._trackLCP=function(){var e=this;Be((function(t){var n=t.entries.pop();if(n){var r=(0,ke.kV)(performance.timeOrigin),i=(0,ke.kV)(n.startTime);c.Q.log("[Measurements] Adding LCP"),e._measurements.lcp={value:t.value},e._measurements["mark.lcp"]={value:r+i}}}))},e.prototype._trackFID=function(){var e=this;!function(e){var t=Pe("FID"),n=Me(),r=function(e){e.startTimen&&(e.startTimestamp=n),e.startChild((0,a.C3)({startTimestamp:n},r))}function We(e){return"number"===typeof e&&isFinite(e)}var Ge={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function Ve(e){var t=(0,a.C3)((0,a.C3)({},Ge),e),n=t.traceFetch,r=t.traceXHR,i=t.tracingOrigins,o=t.shouldCreateSpanForRequest,s={},c=function(e){if(s[e])return s[e];var t=i;return s[e]=t.some((function(t){return(0,d.AU)(e,t)}))&&!(0,d.AU)(e,"sentry_key"),s[e]},u=c;"function"===typeof o&&(u=function(e){return c(e)&&o(e)});var p={};n&&(0,ue.c)({callback:function(e){!function(e,t,n){var r,i=null===(r=(0,l.WS)().getClient())||void 0===r?void 0:r.getOptions();if(!i||!(0,ke.KQ)(i)||!e.fetchData||!t(e.fetchData.url))return;if(e.endTimestamp&&e.fetchData.__span){if(c=n[e.fetchData.__span]){var o=e.response;o&&c.setHttpStatus(o.status),c.finish(),delete n[e.fetchData.__span]}return}var s=(0,ke.gB)();if(s){var c=s.startChild({data:(0,a.C3)((0,a.C3)({},e.fetchData),{type:"fetch"}),description:e.fetchData.method+" "+e.fetchData.url,op:"http"});e.fetchData.__span=c.spanId,n[c.spanId]=c;var u=e.args[0]=e.args[0],d=e.args[1]=e.args[1]||{},p=d.headers;(0,x.aG)(u,Request)&&(p=u.headers),p?"function"===typeof p.append?p.append("sentry-trace",c.toTraceparent()):p=Array.isArray(p)?(0,a.KQ)(p,[["sentry-trace",c.toTraceparent()]]):(0,a.C3)((0,a.C3)({},p),{"sentry-trace":c.toTraceparent()}):p={"sentry-trace":c.toTraceparent()},d.headers=p}}(e,u,p)},type:"fetch"}),r&&(0,ue.c)({callback:function(e){!function(e,t,n){var r,i=null===(r=(0,l.WS)().getClient())||void 0===r?void 0:r.getOptions();if(!i||!(0,ke.KQ)(i)||!(e.xhr&&e.xhr.__sentry_xhr__&&t(e.xhr.__sentry_xhr__.url))||e.xhr.__sentry_own_request__)return;var o=e.xhr.__sentry_xhr__;if(e.endTimestamp&&e.xhr.__sentry_xhr_span_id__){return void((c=n[e.xhr.__sentry_xhr_span_id__])&&(c.setHttpStatus(o.status_code),c.finish(),delete n[e.xhr.__sentry_xhr_span_id__]))}var s=(0,ke.gB)();if(s){var c=s.startChild({data:(0,a.C3)((0,a.C3)({},o.data),{type:"xhr",method:o.method,url:o.url}),description:o.method+" "+o.url,op:"http"});if(e.xhr.__sentry_xhr_span_id__=c.spanId,n[e.xhr.__sentry_xhr_span_id__]=c,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",c.toTraceparent())}catch(u){}}}(e,u,p)},type:"xhr"})}var $e=(0,u.mm)();var Ke=(0,a.C3)({idleTimeout:Te.Y1,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:function(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=!0),$e&&$e.location){var r,i=$e.location.href;t&&(r=e({name:$e.location.pathname,op:"pageload"})),n&&(0,ue.c)({callback:function(t){var n=t.to,o=t.from;void 0===o&&i&&-1!==i.indexOf(n)?i=void 0:o!==n&&(i=void 0,r&&(c.Q.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=e({name:$e.location.pathname,op:"navigation"}))},type:"history"})}else c.Q.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},Ge),Ye=function(){function e(t){this.name=e.id,this._metrics=new ze,this._emitOptionsWarning=!1;var n=Ge.tracingOrigins;t&&t.tracingOrigins&&Array.isArray(t.tracingOrigins)&&0!==t.tracingOrigins.length?n=t.tracingOrigins:this._emitOptionsWarning=!0,this.options=(0,a.C3)((0,a.C3)((0,a.C3)({},Ke),t),{tracingOrigins:n})}return e.prototype.setupOnce=function(e,t){var n=this;this._getCurrentHub=t,this._emitOptionsWarning&&(c.Q.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),c.Q.warn("[Tracing] We added a reasonable default for you: "+Ge.tracingOrigins));var r=this.options,i=r.routingInstrumentation,o=r.startTransactionOnLocationChange,a=r.startTransactionOnPageLoad,s=r.markBackgroundTransactions,l=r.traceFetch,u=r.traceXHR,d=r.tracingOrigins,p=r.shouldCreateSpanForRequest;i((function(e){return n._createRouteTransaction(e)}),a,o),s&&(Se&&Se.document?Se.document.addEventListener("visibilitychange",(function(){var e=(0,ke.gB)();Se.document.hidden&&e&&(c.Q.log("[Tracing] Transaction: "+Ce.D.Cancelled+" -> since tab moved to the background, op: "+e.op),e.status||e.setStatus(Ce.D.Cancelled),e.setTag("visibilitychange","document.hidden"),e.finish())})):c.Q.warn("[Tracing] Could not set up background tab detection due to lack of global document")),Ve({traceFetch:l,traceXHR:u,tracingOrigins:d,shouldCreateSpanForRequest:p})},e.prototype._createRouteTransaction=function(e){var t=this;if(this._getCurrentHub){var n=this.options,r=n.beforeNavigate,i=n.idleTimeout,o=n.maxTransactionDuration,s="pageload"===e.op?function(){var e=function(e){var t=document.querySelector("meta[name="+e+"]");return t?t.getAttribute("content"):null}("sentry-trace");if(e)return(0,ke.Cg)(e);return}():void 0,l=(0,a.C3)((0,a.C3)((0,a.C3)({},e),s),{trimEnd:!0}),u="function"===typeof r?r(l):l,d=void 0===u?(0,a.C3)((0,a.C3)({},l),{sampled:!1}):u;!1===d.sampled&&c.Q.log("[Tracing] Will not send "+d.op+" transaction because of beforeNavigate.");var p=this._getCurrentHub(),h=(0,Ee.Iz)(p,d,i,!0);return c.Q.log("[Tracing] Starting "+d.op+" transaction on scope"),h.registerBeforeFinishCallback((function(e,n){t._metrics.addPerformanceEntries(e),function(e,t,n){var r=n-t.startTimestamp,i=n&&(r>e||r<0);i&&(t.setStatus(Ce.D.DeadlineExceeded),t.setTag("maxTransactionDurationExceeded","true"))}((0,ke.GW)(o),e,n)})),h}c.Q.warn("[Tracing] Did not create "+e.op+" transaction because _getCurrentHub is invalid.")},e.id="BrowserTracing",e}();var Ze=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}return e.prototype.setupOnce=function(){this._router?function(e,t){void 0===t&&(t=[]);t.forEach((function(t){return function(e,t){var n=e[t];return e[t]=function(){for(var e=[],r=0;r=0;u--){var d=i[u];"."===d?lt(i,u):".."===d?(lt(i,u),c++):c&&(lt(i,u),c--)}if(!s)for(;c--;c)i.unshift("..");!s||""===i[0]||i[0]&&st(i[0])||i.unshift("");var p=i.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function ut(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const dt=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=ut(t),i=ut(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var pt=!0,ht="Invariant failed";function ft(e,t){if(!e){if(pt)throw new Error(ht);var n="function"===typeof t?t():t,r=n?"".concat(ht,": ").concat(n):ht;throw new Error(r)}}function mt(e){return"/"===e.charAt(0)?e:"/"+e}function gt(e){return"/"===e.charAt(0)?e.substr(1):e}function vt(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function bt(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function yt(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function _t(e,t,n,r){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=(0,at.c)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=ct(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function xt(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return(0,Sn.c)(e,(0,at.c)({defaultTheme:On.c},t))};var jn=n(2200);function Pn(){return(0,jn.c)()||On.c}var In=n(5696);const Ln=(0,In.c)(i.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),Rn=(0,In.c)(i.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Nn=(0,In.c)(i.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Dn=(0,In.c)(i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"}),"AccountCircle"),Mn=(0,In.c)(i.createElement("path",{d:"M19 5v14H5V5h14m1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9zM11 7h6v2h-6V7zm0 4h6v2h-6v-2zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt"),Bn=(0,In.c)(i.createElement("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-2 14l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"}),"AssignmentTurnedIn"),Qn=(0,In.c)(i.createElement("path",{d:"M20 0H4v2h16V0zM4 24h16v-2H4v2zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 2.75c1.24 0 2.25 1.01 2.25 2.25s-1.01 2.25-2.25 2.25S9.75 10.24 9.75 9 10.76 6.75 12 6.75zM17 17H7v-1.5c0-1.67 3.33-2.5 5-2.5s5 .83 5 2.5V17z"}),"Contacts"),Un=(0,In.c)(i.createElement("path",{d:"M23 6H1v12h22V6zm-2 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z"}),"StraightenSharp"),Fn=(0,In.c)(i.createElement("path",{d:"M20 21c-1.39 0-2.78-.47-4-1.32-2.44 1.71-5.56 1.71-8 0C6.78 20.53 5.39 21 4 21H2v2h2c1.38 0 2.74-.35 4-.99 2.52 1.29 5.48 1.29 8 0 1.26.65 2.62.99 4 .99h2v-2h-2zM3.95 19H4c1.6 0 3.02-.88 4-2 .98 1.12 2.4 2 4 2s3.02-.88 4-2c.98 1.12 2.4 2 4 2h.05l2.18-7.65-2.23-.73V4h-5V1H9v3H4v6.62l-2.23.73L3.95 19zM6 6h12v3.97L12 8 6 9.97V6z"}),"DirectionsBoatSharp"),zn=(0,In.c)(i.createElement("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2v1z"}),"FolderShared"),qn=(0,In.c)(i.createElement("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14H6zm12 0h-7.5l2-2H18v2z"}),"RateReview"),Hn=(0,In.c)(i.createElement("path",{d:"M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7C15.12 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5C7.34 5 6 6.34 6 8s1.34 3 3 3zm7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75zM9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"}),"SupervisorAccount"),Wn=(0,In.c)(i.createElement("path",{d:"M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"ExitToApp");var Gn=n(1512),Vn={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},$n=function(e){return(0,at.c)({color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}})};const Kn=(0,Gn.c)((function(e){return{"@global":{html:Vn,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,at.c)({margin:0},$n(e),{"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"})((function(e){var t=e.children,n=void 0===t?null:t;return e.classes,i.createElement(i.Fragment,null,n)}));var Yn=n(2540),Zn=n(3620),Jn=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,a=void 0===o?"div":o,s=e.square,l=void 0!==s&&s,c=e.elevation,u=void 0===c?1:c,d=e.variant,p=void 0===d?"elevation":d,h=(0,Yn.c)(e,["classes","className","component","square","elevation","variant"]);return i.createElement(a,(0,at.c)({className:(0,kn.c)(n.root,r,"outlined"===p?n.outlined:n["elevation".concat(u)],!l&&n.rounded),ref:t},h))}));const Xn=(0,Gn.c)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,at.c)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(Jn);var er=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,a=void 0===o?"primary":o,s=e.position,l=void 0===s?"fixed":s,c=(0,Yn.c)(e,["classes","className","color","position"]);return i.createElement(Xn,(0,at.c)({square:!0,component:"header",elevation:4,className:(0,kn.c)(n.root,n["position".concat((0,Zn.c)(l))],n["color".concat((0,Zn.c)(a))],r,"fixed"===l&&"mui-fixed"),ref:t},c))}));const tr=(0,Gn.c)((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}}),{name:"MuiAppBar"})(er);var nr=n(2312),rr=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,a=void 0===o?"div":o,s=e.disableGutters,l=void 0!==s&&s,c=e.variant,u=void 0===c?"regular":c,d=(0,Yn.c)(e,["classes","className","component","disableGutters","variant"]);return i.createElement(a,(0,at.c)({className:(0,kn.c)(n.root,n[u],r,!l&&n.gutters),ref:t},d))}));const ir=(0,Gn.c)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:(0,nr.c)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(rr);var or=n(9816),ar=n(576),sr=n(9568),lr=n(2880),cr=n(3188),ur=n(4316);const dr=i.createContext(null);function pr(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function hr(e,t,n){return null!=n[t]?n[t]:e.props[t]}function fr(e,t,n){var r=pr(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&h.current)h.current=!1;else{"touchstart"===e.type&&(h.current=!0);var u,d,p,b=c?null:g.current,y=b?b.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(y.width/2),d=Math.round(y.height/2);else{var _=e.touches?e.touches[0]:e,x=_.clientX,w=_.clientY;u=Math.round(x-y.left),d=Math.round(w-y.top)}if(s)(p=Math.sqrt((2*Math.pow(y.width,2)+Math.pow(y.height,2))/3))%2===0&&(p+=1);else{var E=2*Math.max(Math.abs((b?b.clientWidth:0)-u),u)+2,T=2*Math.max(Math.abs((b?b.clientHeight:0)-d),d)+2;p=Math.sqrt(Math.pow(E,2)+Math.pow(T,2))}e.touches?null===m.current&&(m.current=function(){v({pulsate:o,rippleX:u,rippleY:d,rippleSize:p,cb:n})},f.current=setTimeout((function(){m.current&&(m.current(),m.current=null)}),80)):v({pulsate:o,rippleX:u,rippleY:d,rippleSize:p,cb:n})}}),[r,v]),y=i.useCallback((function(){b({},{pulsate:!0})}),[b]),_=i.useCallback((function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&m.current)return e.persist(),m.current(),m.current=null,void(f.current=setTimeout((function(){_(e,t)})));m.current=null,u((function(e){return e.length>0?e.slice(1):e})),p.current=t}),[]);return i.useImperativeHandle(t,(function(){return{pulsate:y,start:b,stop:_}}),[y,b,_]),i.createElement("span",(0,at.c)({className:(0,kn.c)(o.root,a),ref:g},s),i.createElement(vr,{component:null,exit:!0},c))}));const xr=(0,Gn.c)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(i.memo(_r));var wr=i.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,a=e.centerRipple,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,p=void 0===d?"button":d,h=e.disabled,f=void 0!==h&&h,m=e.disableRipple,g=void 0!==m&&m,v=e.disableTouchRipple,b=void 0!==v&&v,y=e.focusRipple,_=void 0!==y&&y,x=e.focusVisibleClassName,w=e.onBlur,E=e.onClick,T=e.onFocus,C=e.onFocusVisible,k=e.onKeyDown,S=e.onKeyUp,O=e.onMouseDown,A=e.onMouseLeave,j=e.onMouseUp,P=e.onTouchEnd,I=e.onTouchMove,L=e.onTouchStart,R=e.onDragLeave,N=e.tabIndex,D=void 0===N?0:N,M=e.TouchRippleProps,B=e.type,Q=void 0===B?"button":B,U=(0,Yn.c)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=i.useRef(null);var z=i.useRef(null),q=i.useState(!1),H=q[0],W=q[1];f&&H&&W(!1);var G=(0,lr.c)(),V=G.isFocusVisible,$=G.onBlurVisible,K=G.ref;function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;return(0,sr.c)((function(r){return t&&t(r),!n&&z.current&&z.current[e](r),!0}))}i.useImperativeHandle(n,(function(){return{focusVisible:function(){W(!0),F.current.focus()}}}),[]),i.useEffect((function(){H&&_&&!g&&z.current.pulsate()}),[g,_,H]);var Z=Y("start",O),J=Y("stop",R),X=Y("stop",j),ee=Y("stop",(function(e){H&&e.preventDefault(),A&&A(e)})),te=Y("start",L),ne=Y("stop",P),re=Y("stop",I),ie=Y("stop",(function(e){H&&($(e),W(!1)),w&&w(e)}),!1),oe=(0,sr.c)((function(e){F.current||(F.current=e.currentTarget),V(e)&&(W(!0),C&&C(e)),T&&T(e)})),ae=function(){var e=o.findDOMNode(F.current);return p&&"button"!==p&&!("A"===e.tagName&&e.href)},se=i.useRef(!1),le=(0,sr.c)((function(e){_&&!se.current&&H&&z.current&&" "===e.key&&(se.current=!0,e.persist(),z.current.stop(e,(function(){z.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!f&&(e.preventDefault(),E&&E(e))})),ce=(0,sr.c)((function(e){_&&" "===e.key&&z.current&&H&&!e.defaultPrevented&&(se.current=!1,e.persist(),z.current.stop(e,(function(){z.current.pulsate(e)}))),S&&S(e),E&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&E(e)})),ue=p;"button"===ue&&U.href&&(ue="a");var de={};"button"===ue?(de.type=Q,de.disabled=f):("a"===ue&&U.href||(de.role="button"),de["aria-disabled"]=f);var pe=(0,ar.c)(r,t),he=(0,ar.c)(K,F),fe=(0,ar.c)(pe,he),me=i.useState(!1),ge=me[0],ve=me[1];i.useEffect((function(){ve(!0)}),[]);var be=ge&&!g&&!f;return i.createElement(ue,(0,at.c)({className:(0,kn.c)(c.root,u,H&&[c.focusVisible,x],f&&c.disabled),onBlur:ie,onClick:E,onFocus:oe,onKeyDown:le,onKeyUp:ce,onMouseDown:Z,onMouseLeave:ee,onMouseUp:X,onDragLeave:J,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:fe,tabIndex:f?-1:D},de,U),l,be?i.createElement(xr,(0,at.c)({ref:z,center:s},M)):null)}));const Er=(0,Gn.c)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(wr);var Tr=i.forwardRef((function(e,t){var n=e.edge,r=void 0!==n&&n,o=e.children,a=e.classes,s=e.className,l=e.color,c=void 0===l?"default":l,u=e.disabled,d=void 0!==u&&u,p=e.disableFocusRipple,h=void 0!==p&&p,f=e.size,m=void 0===f?"medium":f,g=(0,Yn.c)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return i.createElement(Er,(0,at.c)({className:(0,kn.c)(a.root,s,"default"!==c&&a["color".concat((0,Zn.c)(c))],d&&a.disabled,"small"===m&&a["size".concat((0,Zn.c)(m))],{start:a.edgeStart,end:a.edgeEnd}[r]),centerRipple:!0,focusRipple:!h,disabled:d,ref:t},g),i.createElement("span",{className:a.label},o))}));const Cr=(0,Gn.c)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,or.W4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,or.W4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,or.W4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(Tr);var kr={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Sr=i.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,a=e.className,s=e.color,l=void 0===s?"initial":s,c=e.component,u=e.display,d=void 0===u?"initial":u,p=e.gutterBottom,h=void 0!==p&&p,f=e.noWrap,m=void 0!==f&&f,g=e.paragraph,v=void 0!==g&&g,b=e.variant,y=void 0===b?"body1":b,_=e.variantMapping,x=void 0===_?kr:_,w=(0,Yn.c)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),E=c||(v?"p":x[y]||kr[y])||"span";return i.createElement(E,(0,at.c)({className:(0,kn.c)(o.root,a,"inherit"!==y&&o[y],"initial"!==l&&o["color".concat((0,Zn.c)(l))],m&&o.noWrap,h&&o.gutterBottom,v&&o.paragraph,"inherit"!==r&&o["align".concat((0,Zn.c)(r))],"initial"!==d&&o["display".concat((0,Zn.c)(d))]),ref:t},w))}));const Or=(0,Gn.c)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Sr);var Ar=n(4928),jr=n(5376),Pr=n(2784),Ir=n(1856),Lr=(n(52),n(7376)),Rr=n(664),Nr=n(6804),Dr=n(2656),Mr=n(4328),Br=n(9184);var Qr="undefined"!==typeof window?i.useLayoutEffect:i.useEffect;const Ur=i.forwardRef((function(e,t){var n=e.children,r=e.container,a=e.disablePortal,s=void 0!==a&&a,l=e.onRendered,c=i.useState(null),u=c[0],d=c[1],p=(0,ar.c)(i.isValidElement(n)?n.ref:null,t);return Qr((function(){s||d(function(e){return e="function"===typeof e?e():e,o.findDOMNode(e)}(r)||document.body)}),[r,s]),Qr((function(){if(u&&!s)return(0,Br.c)(t,u),function(){(0,Br.c)(t,null)}}),[t,u,s]),Qr((function(){l&&(u||s)&&l()}),[l,u,s]),s?i.isValidElement(n)?i.cloneElement(n,{ref:p}):n:u?o.createPortal(n,u):u}));var Fr=n(8848);function zr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var qr=n(4816);function Hr(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function Wr(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Gr(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Vr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat((0,cr.c)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&Wr(e,i)}))}function $r(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Kr(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,Lr.c)(e);return t.body===e?(0,Nr.c)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=Hr();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(Gr(o)+a,"px"),n=(0,Lr.c)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(Gr(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var Yr=function(){function e(){zr(this,e),this.modals=[],this.containers=[]}return(0,qr.c)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Wr(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Vr(t,e.mountNode,e.modalRef,r,!0);var i=$r(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=$r(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Kr(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=$r(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&Wr(e.modalRef,!0),Vr(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&Wr(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();const Zr=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,a=e.disableEnforceFocus,s=void 0!==a&&a,l=e.disableRestoreFocus,c=void 0!==l&&l,u=e.getDoc,d=e.isEnabled,p=e.open,h=i.useRef(),f=i.useRef(null),m=i.useRef(null),g=i.useRef(),v=i.useRef(null),b=i.useCallback((function(e){v.current=o.findDOMNode(e)}),[]),y=(0,ar.c)(t.ref,b),_=i.useRef();return i.useEffect((function(){_.current=p}),[p]),!_.current&&p&&"undefined"!==typeof window&&(g.current=u().activeElement),i.useEffect((function(){if(p){var e=(0,Lr.c)(v.current);r||!v.current||v.current.contains(e.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex",-1),v.current.focus());var t=function(){null!==v.current&&(e.hasFocus()&&!s&&d()&&!h.current?v.current&&!v.current.contains(e.activeElement)&&v.current.focus():h.current=!1)},n=function(t){!s&&d()&&9===t.keyCode&&e.activeElement===v.current&&(h.current=!0,t.shiftKey?m.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),c||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[r,s,c,d,p]),i.createElement(i.Fragment,null,i.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),i.cloneElement(t,{ref:y}),i.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelEnd"}))};var Jr={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};const Xr=i.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,a=(0,Yn.c)(e,["invisible","open"]);return o?i.createElement("div",(0,at.c)({"aria-hidden":!0,ref:t},a,{style:(0,at.c)({},Jr.root,r?Jr.invisible:{},a.style)})):null}));var ei=new Yr;const ti=i.forwardRef((function(e,t){var n=(0,jn.c)(),r=(0,Mr.c)({name:"MuiModal",props:(0,at.c)({},e),theme:n}),a=r.BackdropComponent,s=void 0===a?Xr:a,l=r.BackdropProps,c=r.children,u=r.closeAfterTransition,d=void 0!==u&&u,p=r.container,h=r.disableAutoFocus,f=void 0!==h&&h,m=r.disableBackdropClick,g=void 0!==m&&m,v=r.disableEnforceFocus,b=void 0!==v&&v,y=r.disableEscapeKeyDown,_=void 0!==y&&y,x=r.disablePortal,w=void 0!==x&&x,E=r.disableRestoreFocus,T=void 0!==E&&E,C=r.disableScrollLock,k=void 0!==C&&C,S=r.hideBackdrop,O=void 0!==S&&S,A=r.keepMounted,j=void 0!==A&&A,P=r.manager,I=void 0===P?ei:P,L=r.onBackdropClick,R=r.onClose,N=r.onEscapeKeyDown,D=r.onRendered,M=r.open,B=(0,Yn.c)(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Q=i.useState(!0),U=Q[0],F=Q[1],z=i.useRef({}),q=i.useRef(null),H=i.useRef(null),W=(0,ar.c)(H,t),G=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),V=function(){return(0,Lr.c)(q.current)},$=function(){return z.current.modalRef=H.current,z.current.mountNode=q.current,z.current},K=function(){I.mount($(),{disableScrollLock:k}),H.current.scrollTop=0},Y=(0,sr.c)((function(){var e=function(e){return e="function"===typeof e?e():e,o.findDOMNode(e)}(p)||V().body;I.add($(),e),H.current&&K()})),Z=i.useCallback((function(){return I.isTopModal($())}),[I]),J=(0,sr.c)((function(e){q.current=e,e&&(D&&D(),M&&Z()?K():Wr(H.current,!0))})),X=i.useCallback((function(){I.remove($())}),[I]);if(i.useEffect((function(){return function(){X()}}),[X]),i.useEffect((function(){M?Y():G&&d||X()}),[M,X,G,d,Y]),!j&&!M&&(!G||U))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:Fr.c}),te={};return void 0===c.props.tabIndex&&(te.tabIndex=c.props.tabIndex||"-1"),G&&(te.onEnter=(0,Dr.c)((function(){F(!1)}),c.props.onEnter),te.onExited=(0,Dr.c)((function(){F(!0),d&&X()}),c.props.onExited)),i.createElement(Ur,{ref:J,container:p,disablePortal:w},i.createElement("div",(0,at.c)({ref:W,onKeyDown:function(e){"Escape"===e.key&&Z()&&(N&&N(e),_||(e.stopPropagation(),R&&R(e,"escapeKeyDown")))},role:"presentation"},B,{style:(0,at.c)({},ee.root,!M&&U?ee.hidden:{},B.style)}),O?null:i.createElement(s,(0,at.c)({open:M,onClick:function(e){e.target===e.currentTarget&&(L&&L(e),!g&&R&&R(e,"backdropClick"))}},l)),i.createElement(Zr,{disableEnforceFocus:b,disableAutoFocus:f,disableRestoreFocus:T,getDoc:V,isEnabled:Z,open:M},i.cloneElement(c,te))))})),ni=!1;var ri=function(e){return e.scrollTop},ii="unmounted",oi="exited",ai="entering",si="entered",li="exiting",ci=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=oi,r.appearStatus=ai):i=si:i=t.unmountOnExit||t.mountOnEnter?ii:oi,r.state={status:i},r.nextCallback=null,r}(0,rt.c)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ii?{status:oi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ai&&n!==si&&(t=ai):n!==ai&&n!==si||(t=li)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ai){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this);n&&ri(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===oi&&this.setState({status:ii})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[o.findDOMNode(this),r],a=i[0],s=i[1],l=this.getTimeouts(),c=r?l.appear:l.enter;!e&&!n||ni?this.safeSetState({status:si},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,s),this.safeSetState({status:ai},(function(){t.props.onEntering(a,s),t.onTransitionEnd(c,(function(){t.safeSetState({status:si},(function(){t.props.onEntered(a,s)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:o.findDOMNode(this);t&&!ni?(this.props.onExit(r),this.safeSetState({status:li},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:oi},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:oi},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],s=i[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ii)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,Mt.c)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(dr.Provider,{value:null},"function"===typeof n?n(e,r):i.cloneElement(i.Children.only(n),r))},t}(i.Component);function ui(){}ci.contextType=dr,ci.propTypes={},ci.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ui,onEntering:ui,onEntered:ui,onExit:ui,onExiting:ui,onExited:ui},ci.UNMOUNTED=ii,ci.EXITED=oi,ci.ENTERING=ai,ci.ENTERED=si,ci.EXITING=li;const di=ci;var pi=function(e){return e.scrollTop};function hi(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}function fi(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var mi={entering:{opacity:1,transform:fi(1)},entered:{opacity:1,transform:"none"}},gi=i.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,a=e.in,s=e.onEnter,l=e.onEntered,c=e.onEntering,u=e.onExit,d=e.onExited,p=e.onExiting,h=e.style,f=e.timeout,m=void 0===f?"auto":f,g=e.TransitionComponent,v=void 0===g?di:g,b=(0,Yn.c)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),y=i.useRef(),_=i.useRef(),x=Pn(),w=x.unstable_strictMode&&!o,E=i.useRef(null),T=(0,ar.c)(n.ref,t),C=(0,ar.c)(w?E:void 0,T),k=function(e){return function(t,n){if(e){var r=w?[E.current,t]:[t,n],i=(0,jr.c)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},S=k(c),O=k((function(e,t){pi(e);var n,r=hi({style:h,timeout:m},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===m?(n=x.transitions.getAutoHeightDuration(e.clientHeight),_.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),s&&s(e,t)})),A=k(l),j=k(p),P=k((function(e){var t,n=hi({style:h,timeout:m},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===m?(t=x.transitions.getAutoHeightDuration(e.clientHeight),_.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=fi(.75),u&&u(e)})),I=k(d);return i.useEffect((function(){return function(){clearTimeout(y.current)}}),[]),i.createElement(v,(0,at.c)({appear:!0,in:a,nodeRef:w?E:void 0,onEnter:O,onEntered:A,onEntering:S,onExit:P,onExited:I,onExiting:j,addEndListener:function(e,t){var n=w?e:t;"auto"===m&&(y.current=setTimeout(n,_.current||0))},timeout:"auto"===m?null:m},b),(function(e,t){return i.cloneElement(n,(0,at.c)({style:(0,at.c)({opacity:0,transform:fi(.75),visibility:"exited"!==e||a?void 0:"hidden"},mi[e],h,n.props.style),ref:C},t))}))}));gi.muiSupportAuto=!0;const vi=gi;function bi(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function yi(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function _i(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function xi(e){return"function"===typeof e?e():e}var wi=i.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,a=e.anchorOrigin,s=void 0===a?{vertical:"top",horizontal:"left"}:a,l=e.anchorPosition,c=e.anchorReference,u=void 0===c?"anchorEl":c,d=e.children,p=e.classes,h=e.className,f=e.container,m=e.elevation,g=void 0===m?8:m,v=e.getContentAnchorEl,b=e.marginThreshold,y=void 0===b?16:b,_=e.onEnter,x=e.onEntered,w=e.onEntering,E=e.onExit,T=e.onExited,C=e.onExiting,k=e.open,S=e.PaperProps,O=void 0===S?{}:S,A=e.transformOrigin,j=void 0===A?{vertical:"top",horizontal:"left"}:A,P=e.TransitionComponent,I=void 0===P?vi:P,L=e.transitionDuration,R=void 0===L?"auto":L,N=e.TransitionProps,D=void 0===N?{}:N,M=(0,Yn.c)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),B=i.useRef(),Q=i.useCallback((function(e){if("anchorPosition"===u)return l;var t=xi(r),n=(t&&1===t.nodeType?t:(0,Lr.c)(B.current).body).getBoundingClientRect(),i=0===e?s.vertical:"center";return{top:n.top+bi(n,i),left:n.left+yi(n,s.horizontal)}}),[r,s.horizontal,s.vertical,l,u]),U=i.useCallback((function(e){var t=0;if(v&&"anchorEl"===u){var n=v(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[s.vertical,u,v]),F=i.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:bi(e,j.vertical)+t,horizontal:yi(e,j.horizontal)}}),[j.horizontal,j.vertical]),z=i.useCallback((function(e){var t=U(e),n={width:e.offsetWidth,height:e.offsetHeight},i=F(n,t);if("none"===u)return{top:null,left:null,transformOrigin:_i(i)};var o=Q(t),a=o.top-i.vertical,s=o.left-i.horizontal,l=a+n.height,c=s+n.width,d=(0,Nr.c)(xi(r)),p=d.innerHeight-y,h=d.innerWidth-y;if(ap){var m=l-p;a-=m,i.vertical+=m}if(sh){var v=c-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:_i(i)}}),[r,u,Q,U,F,y]),q=i.useCallback((function(){var e=B.current;if(e){var t=z(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[z]),H=i.useCallback((function(e){B.current=o.findDOMNode(e)}),[]);i.useEffect((function(){k&&q()})),i.useImperativeHandle(n,(function(){return k?{updatePosition:function(){q()}}:null}),[k,q]),i.useEffect((function(){if(k){var e=(0,Rr.c)((function(){q()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[k,q]);var W=R;"auto"!==R||I.muiSupportAuto||(W=void 0);var G=f||(r?(0,Lr.c)(xi(r)).body:void 0);return i.createElement(ti,(0,at.c)({container:G,open:k,ref:t,BackdropProps:{invisible:!0},className:(0,kn.c)(p.root,h)},M),i.createElement(I,(0,at.c)({appear:!0,in:k,onEnter:_,onEntered:x,onExit:E,onExited:T,onExiting:C,timeout:W},D,{onEntering:(0,Dr.c)((function(e,t){w&&w(e,t),q()}),D.onEntering)}),i.createElement(Xn,(0,at.c)({elevation:g,ref:H},O,{className:(0,kn.c)(p.paper,O.className)}),d)))}));const Ei=(0,Gn.c)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(wi);const Ti=i.createContext({});var Ci=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.component,s=void 0===a?"ul":a,l=e.dense,c=void 0!==l&&l,u=e.disablePadding,d=void 0!==u&&u,p=e.subheader,h=(0,Yn.c)(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=i.useMemo((function(){return{dense:c}}),[c]);return i.createElement(Ti.Provider,{value:f},i.createElement(s,(0,at.c)({className:(0,kn.c)(r.root,o,c&&r.dense,!d&&r.padding,p&&r.subheader),ref:t},h),p,n))}));const ki=(0,Gn.c)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Ci);function Si(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Oi(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ai(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function ji(e,t,n,r,i,o){for(var a=!1,s=i(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var l=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Ai(s,o)&&!l)return void s.focus();s=i(e,s,n)}}var Pi="undefined"===typeof window?i.useEffect:i.useLayoutEffect,Ii=i.forwardRef((function(e,t){var n=e.actions,r=e.autoFocus,a=void 0!==r&&r,s=e.autoFocusItem,l=void 0!==s&&s,c=e.children,u=e.className,d=e.disabledItemsFocusable,p=void 0!==d&&d,h=e.disableListWrap,f=void 0!==h&&h,m=e.onKeyDown,g=e.variant,v=void 0===g?"selectedMenu":g,b=(0,Yn.c)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),y=i.useRef(null),_=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Pi((function(){a&&y.current.focus()}),[a]),i.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!y.current.style.width;if(e.clientHeight0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var s=r&&!i.repeating&&Ai(r,i);i.previousKeyMatched&&(s||ji(t,r,!1,p,Si,i))?e.preventDefault():i.previousKeyMatched=!1}m&&m(e)},tabIndex:a?0:-1},b),T)}));const Li=Ii;var Ri={vertical:"top",horizontal:"right"},Ni={vertical:"top",horizontal:"left"},Di=i.forwardRef((function(e,t){var n=e.autoFocus,r=void 0===n||n,a=e.children,s=e.classes,l=e.disableAutoFocusItem,c=void 0!==l&&l,u=e.MenuListProps,d=void 0===u?{}:u,p=e.onClose,h=e.onEntering,f=e.open,m=e.PaperProps,g=void 0===m?{}:m,v=e.PopoverClasses,b=e.transitionDuration,y=void 0===b?"auto":b,_=e.TransitionProps,x=(_=void 0===_?{}:_).onEntering,w=(0,Yn.c)(_,["onEntering"]),E=e.variant,T=void 0===E?"selectedMenu":E,C=(0,Yn.c)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),k=Pn(),S=r&&!c&&f,O=i.useRef(null),A=i.useRef(null),j=-1;i.Children.map(a,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("menu"!==T&&e.props.selected||-1===j)&&(j=t))}));var P=i.Children.map(a,(function(e,t){return t===j?i.cloneElement(e,{ref:function(t){A.current=o.findDOMNode(t),(0,Br.c)(e.ref,t)}}):e}));return i.createElement(Ei,(0,at.c)({getContentAnchorEl:function(){return A.current},classes:v,onClose:p,TransitionProps:(0,at.c)({onEntering:function(e,t){O.current&&O.current.adjustStyleForScrollbar(e,k),h&&h(e,t),x&&x(e,t)}},w),anchorOrigin:"rtl"===k.direction?Ri:Ni,transformOrigin:"rtl"===k.direction?Ri:Ni,PaperProps:(0,at.c)({},g,{classes:(0,at.c)({},g.classes,{root:s.paper})}),open:f,ref:t,transitionDuration:y},C),i.createElement(Li,(0,at.c)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),p&&p(e,"tabKeyDown"))},actions:O,autoFocus:r&&(-1===j||c),autoFocusItem:S,variant:T},d,{className:(0,kn.c)(s.list,d.className)}),P))}));const Mi=(0,Gn.c)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(Di);function Bi(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Qi(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Bi(e.value)&&""!==e.value||t&&Bi(e.defaultValue)&&""!==e.defaultValue)}var Ui=n(6960);function Fi(e,t){return"object"===(0,Pr.c)(t)&&null!==t?e===t:String(e)===String(t)}var zi=i.forwardRef((function(e,t){var n=e["aria-label"],r=e.autoFocus,o=e.autoWidth,a=e.children,s=e.classes,l=e.className,c=e.defaultValue,u=e.disabled,d=e.displayEmpty,p=e.IconComponent,h=e.inputRef,f=e.labelId,m=e.MenuProps,g=void 0===m?{}:m,v=e.multiple,b=e.name,y=e.onBlur,_=e.onChange,x=e.onClose,w=e.onFocus,E=e.onOpen,T=e.open,C=e.readOnly,k=e.renderValue,S=e.SelectDisplayProps,O=void 0===S?{}:S,A=e.tabIndex,j=(e.type,e.value),P=e.variant,I=void 0===P?"standard":P,L=(0,Yn.c)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),R=(0,Ui.c)({controlled:j,default:c,name:"Select"}),N=(0,jr.c)(R,2),D=N[0],M=N[1],B=i.useRef(null),Q=i.useState(null),U=Q[0],F=Q[1],z=i.useRef(null!=T).current,q=i.useState(),H=q[0],W=q[1],G=i.useState(!1),V=G[0],$=G[1],K=(0,ar.c)(t,h);i.useImperativeHandle(K,(function(){return{focus:function(){U.focus()},node:B.current,value:D}}),[U,D]),i.useEffect((function(){r&&U&&U.focus()}),[r,U]),i.useEffect((function(){if(U){var e=(0,Lr.c)(U).getElementById(f);if(e){var t=function(){getSelection().isCollapsed&&U.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[f,U]);var Y,Z,J=function(e,t){e?E&&E(t):x&&x(t),z||(W(o?null:U.clientWidth),$(e))},X=i.Children.toArray(a),ee=function(e){return function(t){var n;if(v||J(!1,t),v){n=Array.isArray(D)?D.slice():[];var r=D.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),D!==n&&(M(n),_&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:b}}),_(t,e)))}},te=null!==U&&(z?T:V);delete L["aria-invalid"];var ne=[],re=!1;(Qi({value:D})||d)&&(k?Y=k(D):re=!0);var ie=X.map((function(e){if(!i.isValidElement(e))return null;var t;if(v){if(!Array.isArray(D))throw new Error((0,Ir.c)(2));(t=D.some((function(t){return Fi(t,e.props.value)})))&&re&&ne.push(e.props.children)}else(t=Fi(D,e.props.value))&&re&&(Z=e.props.children);return t&&!0,i.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:ee(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));re&&(Y=v?ne.join(", "):Z);var oe,ae=H;!o&&z&&U&&(ae=U.clientWidth),oe="undefined"!==typeof A?A:u?null:0;var se=O.id||(b?"mui-component-select-".concat(b):void 0);return i.createElement(i.Fragment,null,i.createElement("div",(0,at.c)({className:(0,kn.c)(s.root,s.select,s.selectMenu,s[I],l,u&&s.disabled),ref:F,tabIndex:oe,role:"button","aria-disabled":u?"true":void 0,"aria-expanded":te?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[f,se].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!C){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),J(!0,e))}},onMouseDown:u||C?null:function(e){0===e.button&&(e.preventDefault(),U.focus(),J(!0,e))},onBlur:function(e){!te&&y&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:b}}),y(e))},onFocus:w},O,{id:se}),function(e){return null==e||"string"===typeof e&&!e.trim()}(Y)?i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):Y),i.createElement("input",(0,at.c)({value:Array.isArray(D)?D.join(","):D,name:b,ref:B,"aria-hidden":!0,onChange:function(e){var t=X.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=X[t];M(n.props.value),_&&_(e,n)}},tabIndex:-1,className:s.nativeInput,autoFocus:r},L)),i.createElement(p,{className:(0,kn.c)(s.icon,s["icon".concat((0,Zn.c)(I))],te&&s.iconOpen,u&&s.disabled)}),i.createElement(Mi,(0,at.c)({id:"menu-".concat(b||""),anchorEl:U,open:te,onClose:function(e){J(!1,e)}},g,{MenuListProps:(0,at.c)({"aria-labelledby":f,role:"listbox",disableListWrap:!0},g.MenuListProps),PaperProps:(0,at.c)({},g.PaperProps,{style:(0,at.c)({minWidth:ae},null!=g.PaperProps?g.PaperProps.style:null)})}),ie))}));const qi=zi;function Hi(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}var Wi=i.createContext();function Gi(){return i.useContext(Wi)}const Vi=Wi;function $i(){return i.useContext(Vi)}const Ki=(0,In.c)(i.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Yi(e,t){return parseInt(e[t],10)||0}var Zi="undefined"!==typeof window?i.useLayoutEffect:i.useEffect,Ji={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},Xi=i.forwardRef((function(e,t){var n=e.onChange,r=e.rows,o=e.rowsMax,a=e.rowsMin,s=e.maxRows,l=e.minRows,c=void 0===l?1:l,u=e.style,d=e.value,p=(0,Yn.c)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),h=s||o,f=r||a||c,m=i.useRef(null!=d).current,g=i.useRef(null),v=(0,ar.c)(t,g),b=i.useRef(null),y=i.useRef(0),_=i.useState({}),x=_[0],w=_[1],E=i.useCallback((function(){var t=g.current,n=window.getComputedStyle(t),r=b.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var i=n["box-sizing"],o=Yi(n,"padding-bottom")+Yi(n,"padding-top"),a=Yi(n,"border-bottom-width")+Yi(n,"border-top-width"),s=r.scrollHeight-o;r.value="x";var l=r.scrollHeight-o,c=s;f&&(c=Math.max(Number(f)*l,c)),h&&(c=Math.min(Number(h)*l,c));var u=(c=Math.max(c,l))+("border-box"===i?o+a:0),d=Math.abs(c-s)<=1;w((function(e){return y.current<20&&(u>0&&Math.abs((e.outerHeightStyle||0)-u)>1||e.overflow!==d)?(y.current+=1,{overflow:d,outerHeightStyle:u}):e}))}),[h,f,e.placeholder]);i.useEffect((function(){var e=(0,Rr.c)((function(){y.current=0,E()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[E]),Zi((function(){E()})),i.useEffect((function(){y.current=0}),[d]);return i.createElement(i.Fragment,null,i.createElement("textarea",(0,at.c)({value:d,onChange:function(e){y.current=0,m||E(),n&&n(e)},ref:v,rows:f,style:(0,at.c)({height:x.outerHeightStyle,overflow:x.overflow?"hidden":null},u)},p)),i.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:b,tabIndex:-1,style:(0,at.c)({},Ji,u)}))}));const eo=Xi;var to="undefined"===typeof window?i.useEffect:i.useLayoutEffect,no=i.forwardRef((function(e,t){var n=e["aria-describedby"],r=e.autoComplete,o=e.autoFocus,a=e.classes,s=e.className,l=(e.color,e.defaultValue),c=e.disabled,u=e.endAdornment,d=(e.error,e.fullWidth),p=void 0!==d&&d,h=e.id,f=e.inputComponent,m=void 0===f?"input":f,g=e.inputProps,v=void 0===g?{}:g,b=e.inputRef,y=(e.margin,e.multiline),_=void 0!==y&&y,x=e.name,w=e.onBlur,E=e.onChange,T=e.onClick,C=e.onFocus,k=e.onKeyDown,S=e.onKeyUp,O=e.placeholder,A=e.readOnly,j=e.renderSuffix,P=e.rows,I=e.rowsMax,L=e.rowsMin,R=e.maxRows,N=e.minRows,D=e.startAdornment,M=e.type,B=void 0===M?"text":M,Q=e.value,U=(0,Yn.c)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),F=null!=v.value?v.value:Q,z=i.useRef(null!=F).current,q=i.useRef(),H=i.useCallback((function(e){0}),[]),W=(0,ar.c)(v.ref,H),G=(0,ar.c)(b,W),V=(0,ar.c)(q,G),$=i.useState(!1),K=$[0],Y=$[1],Z=Gi();var J=Hi({props:e,muiFormControl:Z,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});J.focused=Z?Z.focused:K,i.useEffect((function(){!Z&&c&&K&&(Y(!1),w&&w())}),[Z,c,K,w]);var X=Z&&Z.onFilled,ee=Z&&Z.onEmpty,te=i.useCallback((function(e){Qi(e)?X&&X():ee&&ee()}),[X,ee]);to((function(){z&&te({value:F})}),[F,te,z]);i.useEffect((function(){te(q.current)}),[]);var ne=m,re=(0,at.c)({},v,{ref:V});"string"!==typeof ne?re=(0,at.c)({inputRef:V,type:B},re,{ref:null}):_?!P||R||N||I||L?(re=(0,at.c)({minRows:P||N,rowsMax:I,maxRows:R},re),ne=eo):ne="textarea":re=(0,at.c)({type:B},re);return i.useEffect((function(){Z&&Z.setAdornedStart(Boolean(D))}),[Z,D]),i.createElement("div",(0,at.c)({className:(0,kn.c)(a.root,a["color".concat((0,Zn.c)(J.color||"primary"))],s,J.disabled&&a.disabled,J.error&&a.error,p&&a.fullWidth,J.focused&&a.focused,Z&&a.formControl,_&&a.multiline,D&&a.adornedStart,u&&a.adornedEnd,"dense"===J.margin&&a.marginDense),onClick:function(e){q.current&&e.currentTarget===e.target&&q.current.focus(),T&&T(e)},ref:t},U),D,i.createElement(Vi.Provider,{value:null},i.createElement(ne,(0,at.c)({"aria-invalid":J.error,"aria-describedby":n,autoComplete:r,autoFocus:o,defaultValue:l,disabled:J.disabled,id:h,onAnimationStart:function(e){te("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:x,placeholder:O,readOnly:A,required:J.required,rows:P,value:F,onKeyDown:k,onKeyUp:S},re,{className:(0,kn.c)(a.input,v.className,J.disabled&&a.disabled,_&&a.inputMultiline,J.hiddenLabel&&a.inputHiddenLabel,D&&a.inputAdornedStart,u&&a.inputAdornedEnd,"search"===B&&a.inputTypeSearch,"dense"===J.margin&&a.inputMarginDense),onBlur:function(e){w&&w(e),v.onBlur&&v.onBlur(e),Z&&Z.onBlur?Z.onBlur(e):Y(!1)},onChange:function(e){if(!z){var t=e.target||q.current;if(null==t)throw new Error((0,Ir.c)(1));te({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0?.75*a+8:.01;return i.createElement("fieldset",(0,at.c)({"aria-hidden":!0,style:(0,at.c)((0,nr.c)({},"padding".concat((0,Zn.c)(u)),8),l),className:(0,kn.c)(n.root,r),ref:t},c),i.createElement("legend",{className:n.legend,style:{width:s?d:.01}},i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))}));const mo=(0,Gn.c)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(fo);var go=i.forwardRef((function(e,t){var n=e.classes,r=e.fullWidth,o=void 0!==r&&r,a=e.inputComponent,s=void 0===a?"input":a,l=e.label,c=e.labelWidth,u=void 0===c?0:c,d=e.multiline,p=void 0!==d&&d,h=e.notched,f=e.type,m=void 0===f?"text":f,g=(0,Yn.c)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return i.createElement(ro,(0,at.c)({renderSuffix:function(e){return i.createElement(mo,{className:n.notchedOutline,label:l,labelWidth:u,notched:"undefined"!==typeof h?h:Boolean(e.startAdornment||e.filled||e.focused)})},classes:(0,at.c)({},n,{root:(0,kn.c)(n.root,n.underline),notchedOutline:null}),fullWidth:o,inputComponent:s,multiline:p,ref:t,type:m},g))}));go.muiName="Input";const vo=(0,Gn.c)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(go);var bo=lo,yo=i.createElement(oo,null),_o=i.createElement(ho,null),xo=i.forwardRef((function e(t,n){var r=t.autoWidth,o=void 0!==r&&r,a=t.children,s=t.classes,l=t.displayEmpty,c=void 0!==l&&l,u=t.IconComponent,d=void 0===u?Ki:u,p=t.id,h=t.input,f=t.inputProps,m=t.label,g=t.labelId,v=t.labelWidth,b=void 0===v?0:v,y=t.MenuProps,_=t.multiple,x=void 0!==_&&_,w=t.native,E=void 0!==w&&w,T=t.onClose,C=t.onOpen,k=t.open,S=t.renderValue,O=t.SelectDisplayProps,A=t.variant,j=void 0===A?"standard":A,P=(0,Yn.c)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),I=E?so:qi,L=Hi({props:t,muiFormControl:$i(),states:["variant"]}).variant||j,R=h||{standard:yo,outlined:i.createElement(vo,{label:m,labelWidth:b}),filled:_o}[L];return i.cloneElement(R,(0,at.c)({inputComponent:I,inputProps:(0,at.c)({children:a,IconComponent:d,variant:L,type:void 0,multiple:x},E?{id:p}:{autoWidth:o,displayEmpty:c,labelId:g,MenuProps:y,onClose:T,onOpen:C,open:k,renderValue:S,SelectDisplayProps:(0,at.c)({id:p},O)},f,{classes:f?(0,Ar.c)({baseClasses:s,newClasses:f.classes,Component:e}):s},h?h.props.inputProps:{}),ref:n},P))}));xo.muiName="Select";const wo=(0,Gn.c)(bo,{name:"MuiSelect"})(xo);var Eo=n(168),To="undefined"===typeof window?i.useEffect:i.useLayoutEffect,Co=i.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,a=e.autoFocus,s=void 0!==a&&a,l=e.button,c=void 0!==l&&l,u=e.children,d=e.classes,p=e.className,h=e.component,f=e.ContainerComponent,m=void 0===f?"li":f,g=e.ContainerProps,v=(g=void 0===g?{}:g).className,b=(0,Yn.c)(g,["className"]),y=e.dense,_=void 0!==y&&y,x=e.disabled,w=void 0!==x&&x,E=e.disableGutters,T=void 0!==E&&E,C=e.divider,k=void 0!==C&&C,S=e.focusVisibleClassName,O=e.selected,A=void 0!==O&&O,j=(0,Yn.c)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),P=i.useContext(Ti),I={dense:_||P.dense||!1,alignItems:r},L=i.useRef(null);To((function(){s&&L.current&&L.current.focus()}),[s]);var R=i.Children.toArray(u),N=R.length&&(0,Eo.c)(R[R.length-1],["ListItemSecondaryAction"]),D=i.useCallback((function(e){L.current=o.findDOMNode(e)}),[]),M=(0,ar.c)(D,t),B=(0,at.c)({className:(0,kn.c)(d.root,p,I.dense&&d.dense,!T&&d.gutters,k&&d.divider,w&&d.disabled,c&&d.button,"center"!==r&&d.alignItemsFlexStart,N&&d.secondaryAction,A&&d.selected),disabled:w},j),Q=h||"li";return c&&(B.component=h||"div",B.focusVisibleClassName=(0,kn.c)(d.focusVisible,S),Q=Er),N?(Q=B.component||h?Q:"div","li"===m&&("li"===Q?Q="div":"li"===B.component&&(B.component="div")),i.createElement(Ti.Provider,{value:I},i.createElement(m,(0,at.c)({className:(0,kn.c)(d.container,v),ref:M},b),i.createElement(Q,B,R),R.pop()))):i.createElement(Ti.Provider,{value:I},i.createElement(Q,(0,at.c)({ref:M},B),R))}));const ko=(0,Gn.c)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(Co);var So=i.forwardRef((function(e,t){var n,r=e.classes,o=e.className,a=e.component,s=void 0===a?"li":a,l=e.disableGutters,c=void 0!==l&&l,u=e.ListItemClasses,d=e.role,p=void 0===d?"menuitem":d,h=e.selected,f=e.tabIndex,m=(0,Yn.c)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==f?f:-1),i.createElement(ko,(0,at.c)({button:!0,role:p,tabIndex:n,component:s,selected:h,disableGutters:c,classes:(0,at.c)({dense:r.dense},u),className:(0,kn.c)(r.root,o,h&&r.selected,!c&&r.gutters),ref:t},m))}));const Oo=(0,Gn.c)((function(e){return{root:(0,at.c)({},e.typography.body1,(0,nr.c)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,at.c)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(So);var Ao=n(4880),jo={entering:{opacity:1},entered:{opacity:1}},Po={enter:Ao.rV.enteringScreen,exit:Ao.rV.leavingScreen},Io=i.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,a=e.in,s=e.onEnter,l=e.onEntered,c=e.onEntering,u=e.onExit,d=e.onExited,p=e.onExiting,h=e.style,f=e.TransitionComponent,m=void 0===f?di:f,g=e.timeout,v=void 0===g?Po:g,b=(0,Yn.c)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),y=Pn(),_=y.unstable_strictMode&&!o,x=i.useRef(null),w=(0,ar.c)(n.ref,t),E=(0,ar.c)(_?x:void 0,w),T=function(e){return function(t,n){if(e){var r=_?[x.current,t]:[t,n],i=(0,jr.c)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},C=T(c),k=T((function(e,t){pi(e);var n=hi({style:h,timeout:v},{mode:"enter"});e.style.webkitTransition=y.transitions.create("opacity",n),e.style.transition=y.transitions.create("opacity",n),s&&s(e,t)})),S=T(l),O=T(p),A=T((function(e){var t=hi({style:h,timeout:v},{mode:"exit"});e.style.webkitTransition=y.transitions.create("opacity",t),e.style.transition=y.transitions.create("opacity",t),u&&u(e)})),j=T(d);return i.createElement(m,(0,at.c)({appear:!0,in:a,nodeRef:_?x:void 0,onEnter:k,onEntered:S,onEntering:C,onExit:A,onExited:j,onExiting:O,timeout:v},b),(function(e,t){return i.cloneElement(n,(0,at.c)({style:(0,at.c)({opacity:0,visibility:"exited"!==e||a?void 0:"hidden"},jo[e],h,n.props.style),ref:E},t))}))}));const Lo=Io;var Ro=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.invisible,s=void 0!==a&&a,l=e.open,c=e.transitionDuration,u=e.TransitionComponent,d=void 0===u?Lo:u,p=(0,Yn.c)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return i.createElement(d,(0,at.c)({in:l,timeout:c},p),i.createElement("div",{className:(0,kn.c)(r.root,o,s&&r.invisible),"aria-hidden":!0,ref:t},n))}));const No=(0,Gn.c)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(Ro);function Do(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var i=window.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var o=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var s=n.split("(")[1].split(")")[0].split(",");o=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(o-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-o,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var Mo={enter:Ao.rV.enteringScreen,exit:Ao.rV.leavingScreen},Bo=i.forwardRef((function(e,t){var n=e.children,r=e.direction,a=void 0===r?"down":r,s=e.in,l=e.onEnter,c=e.onEntered,u=e.onEntering,d=e.onExit,p=e.onExited,h=e.onExiting,f=e.style,m=e.timeout,g=void 0===m?Mo:m,v=e.TransitionComponent,b=void 0===v?di:v,y=(0,Yn.c)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),_=Pn(),x=i.useRef(null),w=i.useCallback((function(e){x.current=o.findDOMNode(e)}),[]),E=(0,ar.c)(n.ref,w),T=(0,ar.c)(E,t),C=function(e){return function(t){e&&(void 0===t?e(x.current):e(x.current,t))}},k=C((function(e,t){Do(a,e),pi(e),l&&l(e,t)})),S=C((function(e,t){var n=hi({timeout:g,style:f},{mode:"enter"});e.style.webkitTransition=_.transitions.create("-webkit-transform",(0,at.c)({},n,{easing:_.transitions.easing.easeOut})),e.style.transition=_.transitions.create("transform",(0,at.c)({},n,{easing:_.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",u&&u(e,t)})),O=C(c),A=C(h),j=C((function(e){var t=hi({timeout:g,style:f},{mode:"exit"});e.style.webkitTransition=_.transitions.create("-webkit-transform",(0,at.c)({},t,{easing:_.transitions.easing.sharp})),e.style.transition=_.transitions.create("transform",(0,at.c)({},t,{easing:_.transitions.easing.sharp})),Do(a,e),d&&d(e)})),P=C((function(e){e.style.webkitTransition="",e.style.transition="",p&&p(e)})),I=i.useCallback((function(){x.current&&Do(a,x.current)}),[a]);return i.useEffect((function(){if(!s&&"down"!==a&&"right"!==a){var e=(0,Rr.c)((function(){x.current&&Do(a,x.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[a,s]),i.useEffect((function(){s||I()}),[s,I]),i.createElement(b,(0,at.c)({nodeRef:x,onEnter:k,onEntered:O,onEntering:S,onExit:j,onExited:P,onExiting:A,appear:!0,in:s,timeout:g},y),(function(e,t){return i.cloneElement(n,(0,at.c)({ref:T,style:(0,at.c)({visibility:"exited"!==e||s?void 0:"hidden"},f,n.props.style)},t))}))}));const Qo=Bo;var Uo={left:"right",right:"left",top:"down",bottom:"up"};var Fo={enter:Ao.rV.enteringScreen,exit:Ao.rV.leavingScreen},zo=i.forwardRef((function(e,t){var n=e.anchor,r=void 0===n?"left":n,o=e.BackdropProps,a=e.children,s=e.classes,l=e.className,c=e.elevation,u=void 0===c?16:c,d=e.ModalProps,p=(d=void 0===d?{}:d).BackdropProps,h=(0,Yn.c)(d,["BackdropProps"]),f=e.onClose,m=e.open,g=void 0!==m&&m,v=e.PaperProps,b=void 0===v?{}:v,y=e.SlideProps,_=e.TransitionComponent,x=void 0===_?Qo:_,w=e.transitionDuration,E=void 0===w?Fo:w,T=e.variant,C=void 0===T?"temporary":T,k=(0,Yn.c)(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),S=Pn(),O=i.useRef(!1);i.useEffect((function(){O.current=!0}),[]);var A=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?Uo[t]:t}(S,r),j=i.createElement(Xn,(0,at.c)({elevation:"temporary"===C?u:0,square:!0},b,{className:(0,kn.c)(s.paper,s["paperAnchor".concat((0,Zn.c)(A))],b.className,"temporary"!==C&&s["paperAnchorDocked".concat((0,Zn.c)(A))])}),a);if("permanent"===C)return i.createElement("div",(0,at.c)({className:(0,kn.c)(s.root,s.docked,l),ref:t},k),j);var P=i.createElement(x,(0,at.c)({in:g,direction:Uo[A],timeout:E,appear:O.current},y),j);return"persistent"===C?i.createElement("div",(0,at.c)({className:(0,kn.c)(s.root,s.docked,l),ref:t},k),P):i.createElement(ti,(0,at.c)({BackdropProps:(0,at.c)({},o,p,{transitionDuration:E}),BackdropComponent:No,className:(0,kn.c)(s.root,s.modal,l),open:g,onClose:f,ref:t},k,h),P)}));const qo=(0,Gn.c)((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(zo);var Ho=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=(0,Yn.c)(e,["classes","className"]),a=i.useContext(Ti);return i.createElement("div",(0,at.c)({className:(0,kn.c)(n.root,r,"flex-start"===a.alignItems&&n.alignItemsFlexStart),ref:t},o))}));const Wo=(0,Gn.c)((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Ho),Go=(0,In.c)(i.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var Vo=i.forwardRef((function(e,t){var n=e.alt,r=e.children,o=e.classes,a=e.className,s=e.component,l=void 0===s?"div":s,c=e.imgProps,u=e.sizes,d=e.src,p=e.srcSet,h=e.variant,f=void 0===h?"circular":h,m=(0,Yn.c)(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),g=null,v=function(e){var t=e.src,n=e.srcSet,r=i.useState(!1),o=r[0],a=r[1];return i.useEffect((function(){if(t||n){a(!1);var e=!0,r=new Image;return r.src=t,r.srcSet=n,r.onload=function(){e&&a("loaded")},r.onerror=function(){e&&a("error")},function(){e=!1}}}),[t,n]),o}({src:d,srcSet:p}),b=d||p,y=b&&"error"!==v;return g=y?i.createElement("img",(0,at.c)({alt:n,src:d,srcSet:p,sizes:u,className:o.img},c)):null!=r?r:b&&n?n[0]:i.createElement(Go,{className:o.fallback}),i.createElement(l,(0,at.c)({className:(0,kn.c)(o.root,o.system,o[f],a,!y&&o.colorDefault),ref:t},m),g)}));const $o=(0,Gn.c)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},circular:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}}),{name:"MuiAvatar"})(Vo);var Ko=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.disableTypography,s=void 0!==a&&a,l=e.inset,c=void 0!==l&&l,u=e.primary,d=e.primaryTypographyProps,p=e.secondary,h=e.secondaryTypographyProps,f=(0,Yn.c)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=i.useContext(Ti).dense,g=null!=u?u:n;null==g||g.type===Or||s||(g=i.createElement(Or,(0,at.c)({variant:m?"body2":"body1",className:r.primary,component:"span",display:"block"},d),g));var v=p;return null==v||v.type===Or||s||(v=i.createElement(Or,(0,at.c)({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},h),v)),i.createElement("div",(0,at.c)({className:(0,kn.c)(r.root,o,m&&r.dense,c&&r.inset,g&&v&&r.multiline),ref:t},f),g,v)}));const Yo=(0,Gn.c)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Ko);var Zo=i.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,o=e.classes,a=e.className,s=e.component,l=void 0===s?"hr":s,c=e.flexItem,u=void 0!==c&&c,d=e.light,p=void 0!==d&&d,h=e.orientation,f=void 0===h?"horizontal":h,m=e.role,g=void 0===m?"hr"!==l?"separator":void 0:m,v=e.variant,b=void 0===v?"fullWidth":v,y=(0,Yn.c)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return i.createElement(l,(0,at.c)({className:(0,kn.c)(o.root,a,"fullWidth"!==b&&o[b],r&&o.absolute,u&&o.flexItem,p&&o.light,"vertical"===f&&o.vertical),role:g,ref:t},y))}));const Jo=(0,Gn.c)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:(0,or.W4)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(Zo);var Xo=n(8384),ea="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,ta=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();var na=ea&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),ta))}};function ra(e){return e&&"[object Function]"==={}.toString.call(e)}function ia(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function oa(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function aa(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=ia(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:aa(oa(e))}function sa(e){return e&&e.referenceNode?e.referenceNode:e}var la=ea&&!(!window.MSInputMethodContext||!document.documentMode),ca=ea&&/MSIE 10/.test(navigator.userAgent);function ua(e){return 11===e?la:10===e?ca:la||ca}function da(e){if(!e)return document.documentElement;for(var t=ua(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===ia(n,"position")?da(n):n:e?e.ownerDocument.documentElement:document.documentElement}function pa(e){return null!==e.parentNode?pa(e.parentNode):e}function ha(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||da(e.firstElementChild)===e)}(a)?a:da(a);var s=pa(e);return s.host?ha(s.host,t):ha(e,pa(t).host)}function fa(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function ma(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function ga(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ua(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function va(e){var t=e.body,n=e.documentElement,r=ua(10)&&getComputedStyle(n);return{height:ga("Height",t,n,r),width:ga("Width",t,n,r)}}var ba=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=ua(10),i="HTML"===t.nodeName,o=wa(e),a=wa(t),s=aa(e),l=ia(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=xa({top:o.top-a.top-c,left:o.left-a.left-u,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var p=parseFloat(l.marginTop),h=parseFloat(l.marginLeft);d.top-=c-p,d.bottom-=c-p,d.left-=u-h,d.right-=u-h,d.marginTop=p,d.marginLeft=h}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=fa(t,"top"),i=fa(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}(d,t)),d}function Ta(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===ia(e,"position"))return!0;var n=oa(e);return!!n&&Ta(n)}function Ca(e){if(!e||!e.parentElement||ua())return document.documentElement;for(var t=e.parentElement;t&&"none"===ia(t,"transform");)t=t.parentElement;return t||document.documentElement}function ka(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?Ca(e):ha(e,sa(t));if("viewport"===r)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Ea(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:fa(n),s=t?0:fa(n,"left");return xa({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}(a,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=aa(oa(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=Ea(s,a,i);if("HTML"!==s.nodeName||Ta(a))o=l;else{var c=va(e.ownerDocument),u=c.height,d=c.width;o.top+=l.top-l.marginTop,o.bottom=u+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}}var p="number"===typeof(n=n||0);return o.left+=p?n:n.left||0,o.top+=p?n:n.top||0,o.right-=p?n:n.right||0,o.bottom-=p?n:n.bottom||0,o}function Sa(e){return e.width*e.height}function Oa(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=ka(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return _a({key:e},s[e],{area:Sa(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function Aa(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Ea(n,r?Ca(t):ha(t,sa(n)),r)}function ja(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Pa(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function Ia(e,t,n){n=n.split("-")[0];var r=ja(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[c]:t[Pa(s)],i}function La(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Ra(e,t,n){var r=void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=La(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n));return r.forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&ra(n)&&(t.offsets.popper=xa(t.offsets.popper),t.offsets.reference=xa(t.offsets.reference),t=n(t,e))})),t}function Na(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Aa(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Oa(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Ia(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Ra(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Da(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Ma(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=Ka.indexOf(e),r=Ka.slice(n+1).concat(Ka.slice(0,n));return t?r.reverse():r}var Za="flip",Ja="clockwise",Xa="counterclockwise";function es(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(La(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return c=c.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){return xa("%p"===a?n:r)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,i,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,r){Ha(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var ts={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:ya({},l,o[l]),end:ya({},l,o[l]+o[c]-a[c])};e.offsets.popper=_a({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=Ha(+n)?[+n,0]:es(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||da(e.instance.popper);e.instance.reference===n&&(n=da(n));var r=Ma("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=ka(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),ya({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=_a({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Va(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",f=ja(r)[c];s[h]-fa[h]&&(e.offsets.popper[d]+=s[d]+f-a[h]),e.offsets.popper=xa(e.offsets.popper);var m=s[d]+s[c]/2-f/2,g=ia(e.instance.popper),v=parseFloat(g["margin"+u]),b=parseFloat(g["border"+u+"Width"]),y=m-e.offsets.popper[d]-v-b;return y=Math.max(Math.min(a[c]-f,y),0),e.arrowElement=r,e.offsets.arrow=(ya(n={},d,Math.round(y)),ya(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Da(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=ka(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Pa(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Za:a=[r,i];break;case Ja:a=Ya(r);break;case Xa:a=Ya(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=Pa(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)d(u.top)||"bottom"===r&&d(c.top)d(n.right),m=d(c.top)d(n.bottom),v="left"===r&&h||"right"===r&&f||"top"===r&&m||"bottom"===r&&g,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===o&&h||b&&"end"===o&&f||!b&&"start"===o&&m||!b&&"end"===o&&g),_=!!t.flipVariationsByContent&&(b&&"start"===o&&f||b&&"end"===o&&h||!b&&"start"===o&&g||!b&&"end"===o&&m),x=y||_;(p||v||x)&&(e.flipped=!0,(p||v)&&(r=a[l+1]),x&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=_a({},e.offsets.popper,Ia(e.instance.popper,e.offsets.reference,e.placement)),e=Ra(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=Pa(t),e.offsets.popper=xa(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Va(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=La(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=na(this.update.bind(this)),this.options=_a({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(_a({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){r.options.modifiers[t]=_a({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return _a({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&ra(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return ba(e,[{key:"update",value:function(){return Na.call(this)}},{key:"destroy",value:function(){return Ba.call(this)}},{key:"enableEventListeners",value:function(){return za.call(this)}},{key:"disableEventListeners",value:function(){return qa.call(this)}}]),e}();rs.Utils=("undefined"!==typeof window?window:n.g).PopperUtils,rs.placements=$a,rs.Defaults=ns;const is=rs;function os(e){return"function"===typeof e?e():e}var as="undefined"!==typeof window?i.useLayoutEffect:i.useEffect,ss={},ls=i.forwardRef((function(e,t){var n=e.anchorEl,r=e.children,o=e.container,a=e.disablePortal,s=void 0!==a&&a,l=e.keepMounted,c=void 0!==l&&l,u=e.modifiers,d=e.open,p=e.placement,h=void 0===p?"bottom":p,f=e.popperOptions,m=void 0===f?ss:f,g=e.popperRef,v=e.style,b=e.transition,y=void 0!==b&&b,_=(0,Yn.c)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),x=i.useRef(null),w=(0,ar.c)(x,t),E=i.useRef(null),T=(0,ar.c)(E,g),C=i.useRef(T);as((function(){C.current=T}),[T]),i.useImperativeHandle(g,(function(){return E.current}),[]);var k=i.useState(!0),S=k[0],O=k[1],A=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(h,(0,jn.c)()),j=i.useState(A),P=j[0],I=j[1];i.useEffect((function(){E.current&&E.current.update()}));var L=i.useCallback((function(){if(x.current&&n&&d){E.current&&(E.current.destroy(),C.current(null));var e=function(e){I(e.placement)},t=(os(n),new is(os(n),x.current,(0,at.c)({placement:A},m,{modifiers:(0,at.c)({},s?{}:{preventOverflow:{boundariesElement:"window"}},u,m.modifiers),onCreate:(0,Dr.c)(e,m.onCreate),onUpdate:(0,Dr.c)(e,m.onUpdate)})));C.current(t)}}),[n,s,u,d,A,m]),R=i.useCallback((function(e){(0,Br.c)(w,e),L()}),[w,L]),N=function(){E.current&&(E.current.destroy(),C.current(null))};if(i.useEffect((function(){return function(){N()}}),[]),i.useEffect((function(){d||y||N()}),[d,y]),!c&&!d&&(!y||S))return null;var D={placement:P};return y&&(D.TransitionProps={in:d,onEnter:function(){O(!1)},onExited:function(){O(!0),N()}}),i.createElement(Ur,{disablePortal:s,container:o},i.createElement("div",(0,at.c)({ref:R,role:"tooltip"},_,{style:(0,at.c)({position:"fixed",top:0,left:0,display:d||!c||y?null:"none"},v)}),"function"===typeof r?r(D):r))}));const cs=ls;var us=n(5064);function ds(e){return Math.round(1e5*e)/1e5}var ps=!1,hs=null;var fs=i.forwardRef((function(e,t){var n=e.arrow,r=void 0!==n&&n,a=e.children,s=e.classes,l=e.disableFocusListener,c=void 0!==l&&l,u=e.disableHoverListener,d=void 0!==u&&u,p=e.disableTouchListener,h=void 0!==p&&p,f=e.enterDelay,m=void 0===f?100:f,g=e.enterNextDelay,v=void 0===g?0:g,b=e.enterTouchDelay,y=void 0===b?700:b,_=e.id,x=e.interactive,w=void 0!==x&&x,E=e.leaveDelay,T=void 0===E?0:E,C=e.leaveTouchDelay,k=void 0===C?1500:C,S=e.onClose,O=e.onOpen,A=e.open,j=e.placement,P=void 0===j?"bottom":j,I=e.PopperComponent,L=void 0===I?cs:I,R=e.PopperProps,N=e.title,D=e.TransitionComponent,M=void 0===D?vi:D,B=e.TransitionProps,Q=(0,Yn.c)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),U=Pn(),F=i.useState(),z=F[0],q=F[1],H=i.useState(null),W=H[0],G=H[1],V=i.useRef(!1),$=i.useRef(),K=i.useRef(),Y=i.useRef(),Z=i.useRef(),J=(0,Ui.c)({controlled:A,default:!1,name:"Tooltip",state:"open"}),X=(0,jr.c)(J,2),ee=X[0],te=X[1],ne=ee,re=(0,us.c)(_);i.useEffect((function(){return function(){clearTimeout($.current),clearTimeout(K.current),clearTimeout(Y.current),clearTimeout(Z.current)}}),[]);var ie=function(e){clearTimeout(hs),ps=!0,te(!0),O&&O(e)},oe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=a.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),V.current&&"touchstart"!==t.type||(z&&z.removeAttribute("title"),clearTimeout(K.current),clearTimeout(Y.current),m||ps&&v?(t.persist(),K.current=setTimeout((function(){ie(t)}),ps?v:m)):ie(t))}},ae=(0,lr.c)(),se=ae.isFocusVisible,le=ae.onBlurVisible,ce=ae.ref,ue=i.useState(!1),de=ue[0],pe=ue[1],he=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){z||q(t.currentTarget),se(t)&&(pe(!0),oe()(t));var n=a.props;n.onFocus&&e&&n.onFocus(t)}},fe=function(e){clearTimeout(hs),hs=setTimeout((function(){ps=!1}),800+T),te(!1),S&&S(e),clearTimeout($.current),$.current=setTimeout((function(){V.current=!1}),U.transitions.duration.shortest)},me=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=a.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),de&&(pe(!1),le())),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===z&&n.onMouseLeave(t),clearTimeout(K.current),clearTimeout(Y.current),t.persist(),Y.current=setTimeout((function(){fe(t)}),T)}},ge=function(e){V.current=!0;var t=a.props;t.onTouchStart&&t.onTouchStart(e)},ve=(0,ar.c)(q,t),be=(0,ar.c)(ce,ve),ye=i.useCallback((function(e){(0,Br.c)(be,o.findDOMNode(e))}),[be]),_e=(0,ar.c)(a.ref,ye);""===N&&(ne=!1);var xe=!ne&&!d,we=(0,at.c)({"aria-describedby":ne?re:null,title:xe&&"string"===typeof N?N:null},Q,a.props,{className:(0,kn.c)(Q.className,a.props.className),onTouchStart:ge,ref:_e}),Ee={};h||(we.onTouchStart=function(e){ge(e),clearTimeout(Y.current),clearTimeout($.current),clearTimeout(Z.current),e.persist(),Z.current=setTimeout((function(){oe()(e)}),y)},we.onTouchEnd=function(e){a.props.onTouchEnd&&a.props.onTouchEnd(e),clearTimeout(Z.current),clearTimeout(Y.current),e.persist(),Y.current=setTimeout((function(){fe(e)}),k)}),d||(we.onMouseOver=oe(),we.onMouseLeave=me(),w&&(Ee.onMouseOver=oe(!1),Ee.onMouseLeave=me(!1))),c||(we.onFocus=he(),we.onBlur=me(),w&&(Ee.onFocus=he(!1),Ee.onBlur=me(!1)));var Te=i.useMemo((function(){return(0,Xo.c)({popperOptions:{modifiers:{arrow:{enabled:Boolean(W),element:W}}}},R)}),[W,R]);return i.createElement(i.Fragment,null,i.cloneElement(a,we),i.createElement(L,(0,at.c)({className:(0,kn.c)(s.popper,w&&s.popperInteractive,r&&s.popperArrow),placement:P,anchorEl:z,open:!!z&&ne,id:we["aria-describedby"],transition:!0},Ee,Te),(function(e){var t=e.placement,n=e.TransitionProps;return i.createElement(M,(0,at.c)({timeout:U.transitions.duration.shorter},n,B),i.createElement("div",{className:(0,kn.c)(s.tooltip,s["tooltipPlacement".concat((0,Zn.c)(t.split("-")[0]))],V.current&&s.touch,r&&s.tooltipArrow)},N,r?i.createElement("span",{className:s.arrow,ref:G}):null))})))}));const ms=(0,Gn.c)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:(0,or.W4)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(ds(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:(0,or.W4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(ds(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:(0,nr.c)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:(0,nr.c)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:(0,nr.c)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:(0,nr.c)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(fs),gs=!1,vs=!1,bs="${JSCORE_VERSION}",ys=function(e,t){if(!e)throw _s(t)},_s=function(e){return new Error("Firebase Database ("+bs+") INTERNAL ASSERT FAILED: "+e)},xs=function(e){const t=[];let n=0;for(let r=0;r>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},ws={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i>2,u=(3&t)<<4|a>>4;let d=(15&a)<<2|l>>6,p=63&l;s||(p=64,o||(d=64)),r.push(n[c],n[u],n[d],n[p])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(xs(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){const o=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{const o=e[n++],a=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i>4;if(r.push(l),64!==a){const e=o<<4&240|a>>2;if(r.push(e),64!==s){const e=a<<6&192|s;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class Es extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Ts=function(e){const t=xs(e);return ws.encodeByteArray(t,!0)},Cs=function(e){return Ts(e).replace(/\./g,"")},ks=function(e){try{return ws.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function Ss(e){return Os(void 0,e)}function Os(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(const n in t)t.hasOwnProperty(n)&&As(n)&&(e[n]=Os(e[n],t[n]));return e}function As(e){return"__proto__"!==e}const js=()=>function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__,Ps=()=>{try{return js()||(()=>{if("undefined"===typeof process)return;const e={NODE_ENV:"production",PUBLIC_URL:"/metadata-entry-form",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_GOOGLE_CLOUD_API_KEY:"AIzaSyBz4kb3hJHXw0voYZgHZuAgmqGosxntMHM",REACT_APP_GOOGLE_CLOUD_API_KEY_DEV:"AIzaSyADkNENzpoqj3O7uGPsRA_4s1zQdbH708c"}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"===typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}const t=e&&ks(e[1]);return t&&JSON.parse(t)})()}catch(e){return void console.info("Unable to get __FIREBASE_DEFAULTS__ due to: ".concat(e))}},Is=e=>{var t,n;return null===(n=null===(t=Ps())||void 0===t?void 0:t.emulatorHosts)||void 0===n?void 0:n[e]},Ls=e=>{const t=Is(e);if(!t)return;const n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error("Invalid host ".concat(t," with no separate hostname and port!"));const r=parseInt(t.substring(n+1),10);return"["===t[0]?[t.substring(1,n-1),r]:[t.substring(0,n),r]},Rs=()=>{var e;return null===(e=Ps())||void 0===e?void 0:e.config},Ns=e=>{var t;return null===(t=Ps())||void 0===t?void 0:t["_".concat(e)]};class Ds{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"===typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,n))}}}function Ms(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function Bs(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ms())}function Qs(){return"object"===typeof navigator&&"ReactNative"===navigator.product}function Us(){return!0===gs||!0===vs}class Fs extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,Fs.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,zs.prototype.create)}}class zs{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e){const t=(arguments.length<=1?void 0:arguments[1])||{},n="".concat(this.service,"/").concat(e),r=this.errors[e],i=r?function(e,t){return e.replace(qs,((e,n)=>{const r=t[n];return null!=r?String(r):"<".concat(n,"?>")}))}(r,t):"Error",o="".concat(this.serviceName,": ").concat(i," (").concat(n,").");return new Fs(n,o,t)}}const qs=/\{\$([^}]+)}/g;function Hs(e){return JSON.parse(e)}function Ws(e){return JSON.stringify(e)}const Gs=function(e){let t={},n={},r={},i="";try{const o=e.split(".");t=Hs(ks(o[0])||""),n=Hs(ks(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(o){}return{header:t,claims:n,data:r,signature:i}};function Vs(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $s(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function Ks(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function Ys(e,t,n){const r={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}function Zs(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const n=e[i],o=t[i];if(Js(n)&&Js(o)){if(!Zs(n,o))return!1}else if(n!==o)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function Js(e){return null!==e&&"object"===typeof e}function Xs(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach((e=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))})):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function el(e){const t={};return e.replace(/^\?/,"").split("&").forEach((e=>{if(e){const[n,r]=e.split("=");t[decodeURIComponent(n)]=decodeURIComponent(r)}})),t}function tl(e){const t=e.indexOf("?");if(!t)return"";const n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}class nl{constructor(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(let e=1;e>>31)}let r,i,o=this.chain_[0],a=this.chain_[1],s=this.chain_[2],l=this.chain_[3],c=this.chain_[4];for(let u=0;u<80;u++){u<40?u<20?(r=l^a&(s^l),i=1518500249):(r=a^s^l,i=1859775393):u<60?(r=a&s|l&(a|s),i=2400959708):(r=a^s^l,i=3395469782);const e=(o<<5|o>>>27)+r+c+i+n[u]&4294967295;c=l,l=s,s=4294967295&(a<<30|a>>>2),a=o,o=e}this.chain_[0]=this.chain_[0]+o&4294967295,this.chain_[1]=this.chain_[1]+a&4294967295,this.chain_[2]=this.chain_[2]+s&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+c&4294967295}update(e,t){if(null==e)return;void 0===t&&(t=e.length);const n=t-this.blockSize;let r=0;const i=this.buf_;let o=this.inbuf_;for(;r=56;r--)this.buf_[r]=255&t,t/=256;this.compress_(this.buf_);let n=0;for(let r=0;r<5;r++)for(let t=24;t>=0;t-=8)e[n]=this.chain_[r]>>t&255,++n;return e}}class rl{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((()=>{e(this)})).catch((e=>{this.error(e)}))}next(e){this.forEachObserver((t=>{t.next(e)}))}error(e){this.forEachObserver((t=>{t.error(e)})),this.close(e)}complete(){this.forEachObserver((e=>{e.complete()})),this.close()}subscribe(e,t,n){let r;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");r=function(e,t){if("object"!==typeof e||null===e)return!1;for(const n of t)if(n in e&&"function"===typeof e[n])return!0;return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n},void 0===r.next&&(r.next=il),void 0===r.error&&(r.error=il),void 0===r.complete&&(r.complete=il);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch(e){}})),this.observers.push(r),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(n){"undefined"!==typeof console&&console.error&&console.error(n)}}))}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((()=>{this.observers=void 0,this.onNoObservers=void 0})))}}function il(){}function ol(e,t){return"".concat(e," failed: ").concat(t," argument ")}const al=function(e){let t=0;for(let n=0;n=55296&&r<=56319?(t+=4,n++):t+=3}return t};function sl(e){return e&&e._delegate?e._delegate:e}class ll{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const cl="[DEFAULT]";class ul{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new Ds;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(n){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),r=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error("Service ".concat(this.name," is not available"))}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error("Mismatching Component ".concat(e.name," for Provider ").concat(this.name,"."));if(this.component)throw Error("Component for ".concat(this.name," has already been provided"));if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:cl})}catch(t){}for(const[e,n]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:r});n.resolve(e)}catch(t){}}}}clearInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cl;this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cl;return this.instances.has(e)}getOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cl;return this.instancesOptions.get(e)||{}}initialize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error("".concat(this.name,"(").concat(n,") has already been initialized"));if(!this.isComponentSet())throw Error("Component ".concat(this.name," has not been registered yet"));const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[i,o]of this.instancesDeferred.entries()){n===this.normalizeInstanceIdentifier(i)&&o.resolve(r)}return r}onInit(e,t){var n;const r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);const o=this.instances.get(r);return o&&e(o,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const i of n)try{i(e,t)}catch(r){}}getOrInitializeService(e){let{instanceIdentifier:t,options:n={}}=e,r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:(i=t,i===cl?void 0:i),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch(o){}var i;return r||null}normalizeInstanceIdentifier(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cl;return this.component?this.component.multipleInstances?e:cl:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class dl{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component ".concat(e.name," has already been registered with ").concat(this.name));t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new ul(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}const pl=[];var hl;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(hl||(hl={}));const fl={debug:hl.DEBUG,verbose:hl.VERBOSE,info:hl.INFO,warn:hl.WARN,error:hl.ERROR,silent:hl.SILENT},ml=hl.INFO,gl={[hl.DEBUG]:"log",[hl.VERBOSE]:"log",[hl.INFO]:"info",[hl.WARN]:"warn",[hl.ERROR]:"error"},vl=function(e,t){if(t2?i-2:0),a=2;at.some((t=>e instanceof t));let _l,xl;const wl=new WeakMap,El=new WeakMap,Tl=new WeakMap,Cl=new WeakMap,kl=new WeakMap;let Sl={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return El.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Tl.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return jl(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Ol(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(xl||(xl=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)}));El.set(e,t)}(e),yl(e,_l||(_l=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,Sl):e)}function jl(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(jl(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)}));return t.then((t=>{t instanceof IDBCursor&&wl.set(t,e)})).catch((()=>{})),kl.set(t,e),t}(e);if(Cl.has(e))return Cl.get(e);const t=Al(e);return t!==e&&(Cl.set(e,t),kl.set(t,e)),t}const Pl=e=>kl.get(e);const Il=["get","getKey","getAll","getAllKeys","count"],Ll=["put","add","delete","clear"],Rl=new Map;function Nl(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(Rl.get(t))return Rl.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=Ll.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!Il.includes(n))return;const o=async function(e){const t=this.transaction(e,i?"readwrite":"readonly");let o=t.store;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l({...e,get:(t,n,r)=>Nl(t,n)||e.get(t,n,r),has:(t,n)=>!!Nl(t,n)||e.has(t,n)}))(Sl);class Dl{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){const t=e.getImmediate();return"".concat(t.library,"/").concat(t.version)}return null})).filter((e=>e)).join(" ")}}const Ml="@firebase/app",Bl="0.9.27",Ql=new bl("@firebase/app"),Ul="[DEFAULT]",Fl={[Ml]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},zl=new Map,ql=new Map;function Hl(e,t){try{e.container.addComponent(t)}catch(n){Ql.debug("Component ".concat(t.name," failed to register with FirebaseApp ").concat(e.name),n)}}function Wl(e){const t=e.name;if(ql.has(t))return Ql.debug("There were multiple attempts to register component ".concat(t,".")),!1;ql.set(t,e);for(const n of zl.values())Hl(n,e);return!0}function Gl(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}const Vl=new zs("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});class $l{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new ll("app",(()=>this),"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Vl.create("app-deleted",{appName:this._name})}}const Kl="10.8.0";function Yl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if("object"!==typeof t){t={name:t}}const r=Object.assign({name:Ul,automaticDataCollectionEnabled:!1},t),i=r.name;if("string"!==typeof i||!i)throw Vl.create("bad-app-name",{appName:String(i)});if(n||(n=Rs()),!n)throw Vl.create("no-options");const o=zl.get(i);if(o){if(Zs(n,o.options)&&Zs(r,o.config))return o;throw Vl.create("duplicate-app",{appName:i})}const a=new dl(i);for(const l of ql.values())a.addComponent(l);const s=new $l(n,r,a);return zl.set(i,s),s}function Zl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ul;const t=zl.get(e);if(!t&&e===Ul&&Rs())return Yl();if(!t)throw Vl.create("no-app",{appName:e});return t}function Jl(e,t,n){var r;let i=null!==(r=Fl[e])&&void 0!==r?r:e;n&&(i+="-".concat(n));const o=i.match(/\s|\//),a=t.match(/\s|\//);if(o||a){const e=['Unable to register library "'.concat(i,'" with version "').concat(t,'":')];return o&&e.push('library name "'.concat(i,'" contains illegal characters (whitespace or "/")')),o&&a&&e.push("and"),a&&e.push('version name "'.concat(t,'" contains illegal characters (whitespace or "/")')),void Ql.warn(e.join(" "))}Wl(new ll("".concat(i,"-version"),(()=>({library:i,version:t})),"VERSION"))}const Xl="firebase-heartbeat-database",ec=1,tc="firebase-heartbeat-store";let nc=null;function rc(){return nc||(nc=function(e,t){let{blocked:n,upgrade:r,blocking:i,terminated:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=indexedDB.open(e,t),s=jl(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(jl(a.result),e.oldVersion,e.newVersion,jl(a.transaction),e)})),n&&a.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{o&&e.addEventListener("close",(()=>o())),i&&e.addEventListener("versionchange",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}(Xl,ec,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(tc)}catch(n){console.warn(n)}}}).catch((e=>{throw Vl.create("idb-open",{originalErrorMessage:e.message})}))),nc}async function ic(e,t){try{const n=(await rc()).transaction(tc,"readwrite"),r=n.objectStore(tc);await r.put(t,oc(e)),await n.done}catch(n){if(n instanceof Fs)Ql.warn(n.message);else{const e=Vl.create("idb-set",{originalErrorMessage:null===n||void 0===n?void 0:n.message});Ql.warn(e.message)}}}function oc(e){return"".concat(e.name,"!").concat(e.options.appId)}class ac{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new lc(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){var e,t;const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=sc();if((null!=(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||(this._heartbeatsCache=await this._heartbeatsCachePromise,null!=(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)))&&this._heartbeatsCache.lastSentHeartbeatDate!==r&&!this._heartbeatsCache.heartbeats.some((e=>e.date===r)))return this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((e=>{const t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){var e;if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=sc(),{heartbeatsToSend:n,unsentEntries:r}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1024;const n=[];let r=e.slice();for(const i of e){const e=n.find((e=>e.agent===i.agent));if(e){if(e.dates.push(i.date),cc(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),cc(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),i=Cs(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}}function sc(){return(new Date).toISOString().substring(0,10)}class lc{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!function(){try{return"object"===typeof indexedDB}catch(e){return!1}}()&&new Promise(((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(gh){t(gh)}})).then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await rc()).transaction(tc),n=await t.objectStore(tc).get(oc(e));return await t.done,n}catch(t){if(t instanceof Fs)Ql.warn(t.message);else{const e=Vl.create("idb-get",{originalErrorMessage:null===t||void 0===t?void 0:t.message});Ql.warn(e.message)}}}(this.app);return(null===e||void 0===e?void 0:e.heartbeats)?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return ic(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return ic(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function cc(e){return Cs(JSON.stringify({version:2,heartbeats:e})).length}var uc;uc="",Wl(new ll("platform-logger",(e=>new Dl(e)),"PRIVATE")),Wl(new ll("heartbeat",(e=>new ac(e)),"PRIVATE")),Jl(Ml,Bl,uc),Jl(Ml,Bl,"esm2017"),Jl("fire-js","");function dc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r2?n-2:0),i=2;ie,"Short delay should be less than long delay!"),this.isMobile=Bs()||Qs()}get(){return Oc()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function jc(e,t){Tc(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?"".concat(n).concat(t.startsWith("/")?t.slice(1):t):n}class Pc{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!==typeof self&&"fetch"in self?self.fetch:"undefined"!==typeof globalThis&&globalThis.fetch?globalThis.fetch:"undefined"!==typeof fetch?fetch:void Ec("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!==typeof self&&"Headers"in self?self.Headers:"undefined"!==typeof globalThis&&globalThis.Headers?globalThis.Headers:"undefined"!==typeof Headers?Headers:void Ec("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!==typeof self&&"Response"in self?self.Response:"undefined"!==typeof globalThis&&globalThis.Response?globalThis.Response:"undefined"!==typeof Response?Response:void Ec("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const Ic={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},Lc=new Ac(3e4,6e4);function Rc(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function Nc(e,t,n,r){return Dc(e,arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},(async()=>{let i={},o={};r&&("GET"===t?o=r:i={body:JSON.stringify(r)});const a=Xs(Object.assign({key:e.config.apiKey},o)).slice(1),s=await e._getAdditionalHeaders();return s["Content-Type"]="application/json",e.languageCode&&(s["X-Firebase-Locale"]=e.languageCode),Pc.fetch()(Bc(e,e.config.apiHost,n,a),Object.assign({method:t,headers:s,referrerPolicy:"no-referrer"},i))}))}async function Dc(e,t,n){e._canInitEmulator=!1;const r=Object.assign(Object.assign({},Ic),t);try{const t=new Uc(e),i=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();const o=await i.json();if("needConfirmation"in o)throw Fc(e,"account-exists-with-different-credential",o);if(i.ok&&!("errorMessage"in o))return o;{const t=i.ok?o.errorMessage:o.error.message,[n,a]=t.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===n)throw Fc(e,"credential-already-in-use",o);if("EMAIL_EXISTS"===n)throw Fc(e,"email-already-in-use",o);if("USER_DISABLED"===n)throw Fc(e,"user-disabled",o);const s=r[n]||n.toLowerCase().replace(/[_\s]+/g,"-");if(a)throw yc(e,s,a);vc(e,s)}}catch(i){if(i instanceof Fs)throw i;vc(e,"network-request-failed",{message:String(i)})}}async function Mc(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const o=await Nc(e,t,n,r,i);return"mfaPendingCredential"in o&&vc(e,"multi-factor-auth-required",{_serverResponse:o}),o}function Bc(e,t,n,r){const i="".concat(t).concat(n,"?").concat(r);return e.config.emulator?jc(e.config,i):"".concat(e.config.apiScheme,"://").concat(i)}function Qc(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class Uc{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise(((e,t)=>{this.timer=setTimeout((()=>t(bc(this.auth,"network-request-failed"))),Lc.get())}))}clearNetworkTimeout(){clearTimeout(this.timer)}}function Fc(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=bc(e,t,r);return i.customData._tokenResponse=n,i}function zc(e){return void 0!==e&&void 0!==e.enterprise}class qc{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===e.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)return Qc(t.enforcementState);return null}isProviderEnabled(e){return"ENFORCE"===this.getProviderEnforcementState(e)||"AUDIT"===this.getProviderEnforcementState(e)}}async function Hc(e,t){return Nc(e,"GET","/v2/recaptchaConfig",Rc(e,t))}function Wc(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(t){}}function Gc(e){return 1e3*Number(e)}function Vc(e){const[t,n,r]=e.split(".");if(void 0===t||void 0===n||void 0===r)return gc("JWT malformed, contained fewer than 3 sections"),null;try{const e=ks(n);return e?JSON.parse(e):(gc("Failed to decode base64 JWT payload"),null)}catch(i){return gc("Caught error parsing JWT payload as JSON",null===i||void 0===i?void 0:i.toString()),null}}async function $c(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])return t;try{return await t}catch(n){throw n instanceof Fs&&function(e){let{code:t}=e;return t==="auth/".concat("user-disabled")||t==="auth/".concat("user-token-expired")}(n)&&e.auth.currentUser===e&&await e.auth.signOut(),n}}class Kc{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){var t;if(e){const e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}{this.errorBackoff=3e4;const e=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,e)}}schedule(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isRunning)return;const t=this.getInterval(e);this.timerId=setTimeout((async()=>{await this.iteration()}),t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){return void((null===e||void 0===e?void 0:e.code)==="auth/".concat("network-request-failed")&&this.schedule(!0))}this.schedule()}}class Yc{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=Wc(this.lastLoginAt),this.creationTime=Wc(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function Zc(e){var t;const n=e.auth,r=await e.getIdToken(),i=await $c(e,async function(e,t){return Nc(e,"POST","/v1/accounts:lookup",t)}(n,{idToken:r}));wc(null===i||void 0===i?void 0:i.users.length,n,"internal-error");const o=i.users[0];e._notifyReloadListener(o);const a=(null===(t=o.providerUserInfo)||void 0===t?void 0:t.length)?o.providerUserInfo.map((e=>{var{providerId:t}=e,n=dc(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}})):[];const s=function(e,t){const n=e.filter((e=>!t.some((t=>t.providerId===e.providerId))));return[...n,...t]}(e.providerData,a),l=e.isAnonymous,c=!(e.email&&o.passwordHash)&&!(null===s||void 0===s?void 0:s.length),u=!!l&&c,d={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:s,metadata:new Yc(o.createdAt,o.lastLoginAt),isAnonymous:u};Object.assign(e,d)}class Jc{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){wc(e.idToken,"internal-error"),wc("undefined"!==typeof e.idToken,"internal-error"),wc("undefined"!==typeof e.refreshToken,"internal-error");const t="expiresIn"in e&&"undefined"!==typeof e.expiresIn?Number(e.expiresIn):function(e){const t=Vc(e);return wc(t,"internal-error"),wc("undefined"!==typeof t.exp,"internal-error"),wc("undefined"!==typeof t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}async getToken(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return wc(!this.accessToken||this.refreshToken,e,"user-token-expired"),t||!this.accessToken||this.isExpired?this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null:this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){const{accessToken:n,refreshToken:r,expiresIn:i}=await async function(e,t){const n=await Dc(e,{},(async()=>{const n=Xs({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:r,apiKey:i}=e.config,o=Bc(e,r,"/v1/token","key=".concat(i)),a=await e._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",Pc.fetch()(o,{method:"POST",headers:a,body:n})}));return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}(e,t);this.updateTokensAndExpiration(n,r,Number(i))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){const{refreshToken:n,accessToken:r,expirationTime:i}=t,o=new Jc;return n&&(wc("string"===typeof n,"internal-error",{appName:e}),o.refreshToken=n),r&&(wc("string"===typeof r,"internal-error",{appName:e}),o.accessToken=r),i&&(wc("number"===typeof i,"internal-error",{appName:e}),o.expirationTime=i),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Jc,this.toJSON())}_performRefresh(){return Ec("not implemented")}}function Xc(e,t){wc("string"===typeof e||"undefined"===typeof e,"internal-error",{appName:t})}class eu{constructor(e){var{uid:t,auth:n,stsTokenManager:r}=e,i=dc(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Kc(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new Yc(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){const t=await $c(this,this.stsTokenManager.getToken(this.auth,e));return wc(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=sl(e),r=await n.getIdToken(t),i=Vc(r);wc(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const o="object"===typeof i.firebase?i.firebase:void 0,a=null===o||void 0===o?void 0:o.sign_in_provider;return{claims:i,token:r,authTime:Wc(Gc(i.auth_time)),issuedAtTime:Wc(Gc(i.iat)),expirationTime:Wc(Gc(i.exp)),signInProvider:a||null,signInSecondFactor:(null===o||void 0===o?void 0:o.sign_in_second_factor)||null}}(this,e)}reload(){return async function(e){const t=sl(e);await Zc(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}(this)}_assign(e){this!==e&&(wc(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map((e=>Object.assign({},e))),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new eu(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){wc(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await Zc(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){const e=await this.getIdToken();return await $c(this,async function(e,t){return Nc(e,"POST","/v1/accounts:delete",t)}(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map((e=>Object.assign({},e))),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var n,r,i,o,a,s,l,c;const u=null!==(n=t.displayName)&&void 0!==n?n:void 0,d=null!==(r=t.email)&&void 0!==r?r:void 0,p=null!==(i=t.phoneNumber)&&void 0!==i?i:void 0,h=null!==(o=t.photoURL)&&void 0!==o?o:void 0,f=null!==(a=t.tenantId)&&void 0!==a?a:void 0,m=null!==(s=t._redirectEventId)&&void 0!==s?s:void 0,g=null!==(l=t.createdAt)&&void 0!==l?l:void 0,v=null!==(c=t.lastLoginAt)&&void 0!==c?c:void 0,{uid:b,emailVerified:y,isAnonymous:_,providerData:x,stsTokenManager:w}=t;wc(b&&w,e,"internal-error");const E=Jc.fromJSON(this.name,w);wc("string"===typeof b,e,"internal-error"),Xc(u,e.name),Xc(d,e.name),wc("boolean"===typeof y,e,"internal-error"),wc("boolean"===typeof _,e,"internal-error"),Xc(p,e.name),Xc(h,e.name),Xc(f,e.name),Xc(m,e.name),Xc(g,e.name),Xc(v,e.name);const T=new eu({uid:b,auth:e,email:d,emailVerified:y,displayName:u,isAnonymous:_,photoURL:h,phoneNumber:p,tenantId:f,stsTokenManager:E,createdAt:g,lastLoginAt:v});return x&&Array.isArray(x)&&(T.providerData=x.map((e=>Object.assign({},e)))),m&&(T._redirectEventId=m),T}static async _fromIdTokenResponse(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=new Jc;r.updateFromServerResponse(t);const i=new eu({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await Zc(i),i}}const tu=new Map;function nu(e){Tc(e instanceof Function,"Expected a class definition");let t=tu.get(e);return t?(Tc(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,tu.set(e,t),t)}class ru{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){const t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}ru.type="NONE";const iu=ru;function ou(e,t,n){return"firebase".concat(":",e,":").concat(t,":").concat(n)}class au{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const{config:r,name:i}=this.auth;this.fullUserKey=ou(this.userKey,r.apiKey,i),this.fullPersistenceKey=ou("persistence",r.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);return e?eu._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const t=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=e,t?this.setCurrentUser(t):void 0}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"authUser";if(!t.length)return new au(nu(iu),e,n);const r=(await Promise.all(t.map((async e=>{if(await e._isAvailable())return e})))).filter((e=>e));let i=r[0]||nu(iu);const o=ou(n,e.config.apiKey,e.name);let a=null;for(const c of t)try{const t=await c._get(o);if(t){const n=eu._fromJSON(e,t);c!==i&&(a=n),i=c;break}}catch(l){}const s=r.filter((e=>e._shouldAllowMigration));return i._shouldAllowMigration&&s.length?(i=s[0],a&&await i._set(o,a.toJSON()),await Promise.all(t.map((async e=>{if(e!==i)try{await e._remove(o)}catch(l){}}))),new au(i,e,n)):new au(i,e,n)}}function su(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(du(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(lu(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(hu(t))return"Blackberry";if(fu(t))return"Webos";if(cu(t))return"Safari";if((t.includes("chrome/")||uu(t))&&!t.includes("edge/"))return"Chrome";if(pu(t))return"Android";{const t=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=e.match(t);if(2===(null===n||void 0===n?void 0:n.length))return n[1]}return"Other"}function lu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms();return/firefox\//i.test(e)}function cu(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms()).toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function uu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms();return/crios\//i.test(e)}function du(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms();return/iemobile/i.test(e)}function pu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms();return/android/i.test(e)}function hu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms();return/blackberry/i.test(e)}function fu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms();return/webos/i.test(e)}function mu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms();return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function gu(){return function(){const e=Ms();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}()&&10===document.documentMode}function vu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms();return mu(e)||pu(e)||fu(e)||hu(e)||/windows phone/i.test(e)||du(e)}function bu(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];switch(e){case"Browser":t=su(Ms());break;case"Worker":t="".concat(su(Ms()),"-").concat(e);break;default:t=e}const r=n.length?n.join(","):"FirebaseCore-web";return"".concat(t,"/","JsCore","/").concat(Kl,"/").concat(r)}class yu{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const n=t=>new Promise(((n,r)=>{try{n(e(t))}catch(i){r(i)}}));n.onAbort=t,this.queue.push(n);const r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const t=[];try{for(const n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(n){t.reverse();for(const e of t)try{e()}catch(r){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null===n||void 0===n?void 0:n.message})}}}class _u{constructor(e){var t,n,r,i;const o=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(t=o.minPasswordLength)&&void 0!==t?t:6,o.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=o.maxPasswordLength),void 0!==o.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=o.containsLowercaseCharacter),void 0!==o.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=o.containsUppercaseCharacter),void 0!==o.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=o.containsNumericCharacter),void 0!==o.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=o.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(r=null===(n=e.allowedNonAlphanumericCharacters)||void 0===n?void 0:n.join(""))&&void 0!==r?r:"",this.forceUpgradeOnSignin=null!==(i=e.forceUpgradeOnSignin)&&void 0!==i&&i,this.schemaVersion=e.schemaVersion}validatePassword(e){var t,n,r,i,o,a;const s={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,s),this.validatePasswordCharacterOptions(e,s),s.isValid&&(s.isValid=null===(t=s.meetsMinPasswordLength)||void 0===t||t),s.isValid&&(s.isValid=null===(n=s.meetsMaxPasswordLength)||void 0===n||n),s.isValid&&(s.isValid=null===(r=s.containsLowercaseLetter)||void 0===r||r),s.isValid&&(s.isValid=null===(i=s.containsUppercaseLetter)||void 0===i||i),s.isValid&&(s.isValid=null===(o=s.containsNumericCharacter)||void 0===o||o),s.isValid&&(s.isValid=null===(a=s.containsNonAlphanumericCharacter)||void 0===a||a),s}validatePasswordLengthOptions(e,t){const n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),r&&(t.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,t){let n;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let r=0;r="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,t,n,r,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}class xu{constructor(e,t,n,r){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Eu(this),this.idTokenSubscription=new Eu(this),this.beforeStateQueue=new yu(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=fc,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=nu(t)),this._initializationPromise=this.queue((async()=>{var n,r;if(!this._deleted&&(this.persistenceManager=await au.create(this,e),!this._deleted)){if(null===(n=this._popupRedirectResolver)||void 0===n?void 0:n._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(i){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null===(r=this.currentUser)||void 0===r?void 0:r.uid)||null,this._deleted||(this._isInitialized=!0)}})),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();return this.currentUser||e?this.currentUser&&e&&this.currentUser.uid===e.uid?(this._currentUser._assign(e),void await this.currentUser.getIdToken()):void await this._updateCurrentUser(e,!0):void 0}async initializeCurrentUser(e){var t;const n=await this.assertedPersistence.getCurrentUser();let r=n,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const n=null===(t=this.redirectUser)||void 0===t?void 0:t._redirectEventId,o=null===r||void 0===r?void 0:r._redirectEventId,a=await this.tryRedirectSignIn(e);n&&n!==o||!(null===a||void 0===a?void 0:a.user)||(r=a.user,i=!0)}if(!r)return this.directlySetCurrentUser(null);if(!r._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(r)}catch(o){r=n,this._popupRedirectResolver._overrideRedirectResult(this,(()=>Promise.reject(o)))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return wc(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(n){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await Zc(e)}catch(t){if((null===t||void 0===t?void 0:t.code)!=="auth/".concat("network-request-failed"))return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"===typeof navigator)return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}async updateCurrentUser(e){const t=e?sl(e):null;return t&&wc(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._deleted)return e&&wc(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue((async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()}))}async signOut(){return await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0)}setPersistence(e){return this.queue((async()=>{await this.assertedPersistence.setPersistence(nu(e))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await async function(e){return Nc(e,"GET","/v2/passwordPolicy",Rc(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}(this),t=new _u(e);null===this.tenantId?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new zs("auth","Firebase",e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}authStateReady(){return new Promise(((e,t)=>{if(this.currentUser)e();else{const n=this.onAuthStateChanged((()=>{n(),e()}),t)}}))}async revokeAccessToken(e){if(this.currentUser){const t={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:await this.currentUser.getIdToken()};null!=this.tenantId&&(t.tenantId=this.tenantId),await async function(e,t){return Nc(e,"POST","/v2/accounts:revokeToken",Rc(e,t))}(this,t)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}async _setRedirectUser(e,t){const n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&nu(e)||this._popupRedirectResolver;wc(t,this,"argument-error"),this.redirectPersistenceManager=await au.create(this,[nu(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,n;return this._isInitialized&&await this.queue((async()=>{})),(null===(t=this._currentUser)||void 0===t?void 0:t._redirectEventId)===e?this._currentUser:(null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue((async()=>this.directlySetCurrentUser(e)))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return"".concat(this.config.authDomain,":").concat(this.config.apiKey,":").concat(this.name)}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const n=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};const i="function"===typeof t?t:t.next.bind(t);let o=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(wc(a,this,"internal-error"),a.then((()=>{o||i(this.currentUser)})),"function"===typeof t){const i=e.addObserver(t,n,r);return()=>{o=!0,i()}}{const n=e.addObserver(t);return()=>{o=!0,n()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return wc(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=bu(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const n=await(null===(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getHeartbeatsHeader());n&&(t["X-Firebase-Client"]=n);const r=await this._getAppCheckToken();return r&&(t["X-Firebase-AppCheck"]=r),t}async _getAppCheckToken(){var e;const t=await(null===(e=this.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getToken());return(null===t||void 0===t?void 0:t.error)&&function(e){if(mc.logLevel<=hl.WARN){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rthis.observer=e))}get next(){return wc(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let Tu={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Cu(e){return Tu.loadJS(e)}function ku(e){return"__".concat(e).concat(Math.floor(1e6*Math.random()))}class Su{constructor(e){this.type="recaptcha-enterprise",this.auth=wu(e)}async verify(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"verify",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(t,n,r){const i=window.grecaptcha;zc(i)?i.enterprise.ready((()=>{i.enterprise.execute(t,{action:e}).then((e=>{n(e)})).catch((()=>{n("NO_RECAPTCHA")}))})):r(Error("No reCAPTCHA enterprise script loaded."))}return new Promise(((e,r)=>{(async function(e){if(!t){if(null==e.tenantId&&null!=e._agentRecaptchaConfig)return e._agentRecaptchaConfig.siteKey;if(null!=e.tenantId&&void 0!==e._tenantRecaptchaConfigs[e.tenantId])return e._tenantRecaptchaConfigs[e.tenantId].siteKey}return new Promise((async(t,n)=>{Hc(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then((r=>{if(void 0!==r.recaptchaKey){const n=new qc(r);return null==e.tenantId?e._agentRecaptchaConfig=n:e._tenantRecaptchaConfigs[e.tenantId]=n,t(n.siteKey)}n(new Error("recaptcha Enterprise site key undefined"))})).catch((e=>{n(e)}))}))})(this.auth).then((i=>{if(!t&&zc(window.grecaptcha))n(i,e,r);else{if("undefined"===typeof window)return void r(new Error("RecaptchaVerifier is only supported in browser"));let t=Tu.recaptchaEnterpriseScript;0!==t.length&&(t+=i),Cu(t).then((()=>{n(i,e,r)})).catch((e=>{r(e)}))}})).catch((e=>{r(e)}))}))}}async function Ou(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=new Su(e);let o;try{o=await i.verify(n)}catch(gh){o=await i.verify(n,!0)}const a=Object.assign({},t);return r?Object.assign(a,{captchaResp:o}):Object.assign(a,{captchaResponse:o}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}async function Au(e,t,n,r){var i;if(null===(i=e._getRecaptchaConfig())||void 0===i?void 0:i.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const i=await Ou(e,t,n,"getOobCode"===n);return r(e,i)}return r(e,t).catch((async i=>{if(i.code==="auth/".concat("missing-recaptcha-token")){console.log("".concat(n," is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow."));const i=await Ou(e,t,n,"getOobCode"===n);return r(e,i)}return Promise.reject(i)}))}function ju(e,t,n){const r=wu(e);wc(r._canInitEmulator,r,"emulator-config-failed"),wc(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const i=!!(null===n||void 0===n?void 0:n.disableWarnings),o=Pu(t),{host:a,port:s}=function(e){const t=Pu(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const e=i[1];return{host:e,port:Iu(r.substr(e.length+1))}}{const[e,t]=r.split(":");return{host:e,port:Iu(t)}}}(t),l=null===s?"":":".concat(s);r.config.emulator={url:"".concat(o,"//").concat(a).concat(l,"/")},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:a,port:s,protocol:o.replace(":",""),options:Object.freeze({disableWarnings:i})}),i||function(){function e(){const e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!==typeof console&&"function"===typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials.");"undefined"!==typeof window&&"undefined"!==typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}()}function Pu(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function Iu(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}class Lu{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return Ec("not implemented")}_getIdTokenResponse(e){return Ec("not implemented")}_linkToIdToken(e,t){return Ec("not implemented")}_getReauthenticationResolver(e){return Ec("not implemented")}}async function Ru(e,t){return Nc(e,"POST","/v1/accounts:signUp",t)}async function Nu(e,t){return Mc(e,"POST","/v1/accounts:signInWithPassword",Rc(e,t))}class Du extends Lu{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;super("password",n),this._email=e,this._password=t,this._tenantId=r}static _fromEmailAndPassword(e,t){return new Du(e,t,"password")}static _fromEmailAndCode(e,t){return new Du(e,t,"emailLink",arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e;if((null===t||void 0===t?void 0:t.email)&&(null===t||void 0===t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return Au(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",Nu);case"emailLink":return async function(e,t){return Mc(e,"POST","/v1/accounts:signInWithEmailLink",Rc(e,t))}(e,{email:this._email,oobCode:this._password});default:vc(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return Au(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Ru);case"emailLink":return async function(e,t){return Mc(e,"POST","/v1/accounts:signInWithEmailLink",Rc(e,t))}(e,{idToken:t,email:this._email,oobCode:this._password});default:vc(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}async function Mu(e,t){return Mc(e,"POST","/v1/accounts:signInWithIdp",Rc(e,t))}class Bu extends Lu{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new Bu(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):vc("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r}=t,i=dc(t,["providerId","signInMethod"]);if(!n||!r)return null;const o=new Bu(n,r);return o.idToken=i.idToken||void 0,o.accessToken=i.accessToken||void 0,o.secret=i.secret,o.nonce=i.nonce,o.pendingToken=i.pendingToken||null,o}_getIdTokenResponse(e){return Mu(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,Mu(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Mu(e,t)}buildRequest(){const e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=Xs(t)}return e}}const Qu={USER_NOT_FOUND:"user-not-found"};class Uu extends Lu{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new Uu({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new Uu({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return async function(e,t){return Mc(e,"POST","/v1/accounts:signInWithPhoneNumber",Rc(e,t))}(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return async function(e,t){const n=await Mc(e,"POST","/v1/accounts:signInWithPhoneNumber",Rc(e,t));if(n.temporaryProof)throw Fc(e,"account-exists-with-different-credential",n);return n}(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return async function(e,t){return Mc(e,"POST","/v1/accounts:signInWithPhoneNumber",Rc(e,Object.assign(Object.assign({},t),{operation:"REAUTH"})),Qu)}(e,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:r}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:r}}toJSON(){const e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"===typeof e&&(e=JSON.parse(e));const{verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}=e;return n||t||r||i?new Uu({verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}):null}}class Fu{constructor(e){var t,n,r,i,o,a;const s=el(tl(e)),l=null!==(t=s.apiKey)&&void 0!==t?t:null,c=null!==(n=s.oobCode)&&void 0!==n?n:null,u=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(r=s.mode)&&void 0!==r?r:null);wc(l&&c&&u,"argument-error"),this.apiKey=l,this.operation=u,this.code=c,this.continueUrl=null!==(i=s.continueUrl)&&void 0!==i?i:null,this.languageCode=null!==(o=s.languageCode)&&void 0!==o?o:null,this.tenantId=null!==(a=s.tenantId)&&void 0!==a?a:null}static parseLink(e){const t=function(e){const t=el(tl(e)).link,n=t?el(tl(t)).deep_link_id:null,r=el(tl(e)).deep_link_id;return(r?el(tl(r)).link:null)||r||n||t||e}(e);try{return new Fu(t)}catch(n){return null}}}class zu{constructor(){this.providerId=zu.PROVIDER_ID}static credential(e,t){return Du._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){const n=Fu.parseLink(t);return wc(n,"argument-error"),Du._fromEmailAndCode(e,n.code,n.tenantId)}}zu.PROVIDER_ID="password",zu.EMAIL_PASSWORD_SIGN_IN_METHOD="password",zu.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class qu{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}class Hu extends qu{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class Wu extends Hu{constructor(){super("facebook.com")}static credential(e){return Bu._fromParams({providerId:Wu.PROVIDER_ID,signInMethod:Wu.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Wu.credentialFromTaggedObject(e)}static credentialFromError(e){return Wu.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return Wu.credential(t.oauthAccessToken)}catch(n){return null}}}Wu.FACEBOOK_SIGN_IN_METHOD="facebook.com",Wu.PROVIDER_ID="facebook.com";class Gu extends Hu{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return Bu._fromParams({providerId:Gu.PROVIDER_ID,signInMethod:Gu.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return Gu.credentialFromTaggedObject(e)}static credentialFromError(e){return Gu.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r}=t;if(!n&&!r)return null;try{return Gu.credential(n,r)}catch(i){return null}}}Gu.GOOGLE_SIGN_IN_METHOD="google.com",Gu.PROVIDER_ID="google.com";class Vu extends Hu{constructor(){super("github.com")}static credential(e){return Bu._fromParams({providerId:Vu.PROVIDER_ID,signInMethod:Vu.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Vu.credentialFromTaggedObject(e)}static credentialFromError(e){return Vu.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return Vu.credential(t.oauthAccessToken)}catch(n){return null}}}Vu.GITHUB_SIGN_IN_METHOD="github.com",Vu.PROVIDER_ID="github.com";class $u extends Hu{constructor(){super("twitter.com")}static credential(e,t){return Bu._fromParams({providerId:$u.PROVIDER_ID,signInMethod:$u.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return $u.credentialFromTaggedObject(e)}static credentialFromError(e){return $u.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return $u.credential(n,r)}catch(i){return null}}}$u.TWITTER_SIGN_IN_METHOD="twitter.com",$u.PROVIDER_ID="twitter.com";class Ku{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=await eu._fromIdTokenResponse(e,n,r),o=Yu(n);return new Ku({user:i,providerId:o,_tokenResponse:n,operationType:t})}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,!0);const r=Yu(n);return new Ku({user:e,providerId:r,_tokenResponse:n,operationType:t})}}function Yu(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}class Zu extends Fs{constructor(e,t,n,r){var i;super(t.code,t.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,Zu.prototype),this.customData={appName:e.name,tenantId:null!==(i=e.tenantId)&&void 0!==i?i:void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,r){return new Zu(e,t,n,r)}}function Ju(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch((n=>{if(n.code==="auth/".concat("multi-factor-auth-required"))throw Zu._fromErrorAndOperation(e,n,t,r);throw n}))}async function Xu(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=await $c(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return Ku._forOperation(e,"link",r)}async function ed(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{auth:r}=e,i="reauthenticate";try{const o=await $c(e,Ju(r,i,t,e),n);wc(o.idToken,r,"internal-error");const a=Vc(o.idToken);wc(a,r,"internal-error");const{sub:s}=a;return wc(e.uid===s,r,"user-mismatch"),Ku._forOperation(e,i,o)}catch(o){throw(null===o||void 0===o?void 0:o.code)==="auth/".concat("user-not-found")&&vc(r,"user-mismatch"),o}}async function td(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r="signIn",i=await Ju(e,r,t),o=await Ku._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(o.user),o}function nd(e,t,n,r){return sl(e).onAuthStateChanged(t,n,r)}new WeakMap;const rd="__sak";class id{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(rd,"1"),this.storage.removeItem(rd),Promise.resolve(!0)):Promise.resolve(!1)}catch(e){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){const t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}class od extends id{constructor(){super((()=>window.localStorage),"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function(){const e=Ms();return cu(e)||mu(e)}()&&function(){try{return!(!window||window===window.top)}catch(e){return!1}}(),this.fallbackToPolling=vu(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const t of Object.keys(this.listeners)){const n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}onStorageEvent(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.key)return void this.forAllChangedKeys(((e,t,n)=>{this.notifyListeners(e,n)}));const n=e.key;if(t?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const r=this.storage.getItem(n);if(e.newValue!==r)null!==e.newValue?this.storage.setItem(n,e.newValue):this.storage.removeItem(n);else if(this.localCache[n]===e.newValue&&!t)return}const r=()=>{const e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},i=this.storage.getItem(n);gu()&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,10):r()}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((()=>{this.forAllChangedKeys(((e,t,n)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:n}),!0)}))}),1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){const t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}od.type="LOCAL";const ad=od;class sd extends id{constructor(){super((()=>window.sessionStorage),"SESSION")}_addListener(e,t){}_removeListener(e,t){}}sd.type="SESSION";const ld=sd;class cd{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const t=this.receivers.find((t=>t.isListeningto(e)));if(t)return t;const n=new cd(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const t=e,{eventId:n,eventType:r,data:i}=t.data,o=this.handlersMap[r];if(!(null===o||void 0===o?void 0:o.size))return;t.ports[0].postMessage({status:"ack",eventId:n,eventType:r});const a=Array.from(o).map((async e=>e(t.origin,i))),s=await function(e){return Promise.all(e.map((async e=>{try{return{fulfilled:!0,value:await e}}catch(t){return{fulfilled:!1,reason:t}}})))}(a);t.ports[0].postMessage({status:"done",eventId:n,eventType:r,response:s})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}function ud(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n="";for(let r=0;r2&&void 0!==arguments[2]?arguments[2]:50;const r="undefined"!==typeof MessageChannel?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let i,o;return new Promise(((a,s)=>{const l=ud("",20);r.port1.start();const c=setTimeout((()=>{s(new Error("unsupported_event"))}),n);o={messageChannel:r,onMessage(e){const t=e;if(t.data.eventId===l)switch(t.data.status){case"ack":clearTimeout(c),i=setTimeout((()=>{s(new Error("timeout"))}),3e3);break;case"done":clearTimeout(i),a(t.data.response);break;default:clearTimeout(c),clearTimeout(i),s(new Error("invalid_response"))}}},this.handlers.add(o),r.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[r.port2])})).finally((()=>{o&&this.removeMessageHandler(o)}))}}function pd(){return window}function hd(){return"undefined"!==typeof pd().WorkerGlobalScope&&"function"===typeof pd().importScripts}const fd="firebaseLocalStorageDb",md="firebaseLocalStorage",gd="fbase_key";class vd{constructor(e){this.request=e}toPromise(){return new Promise(((e,t)=>{this.request.addEventListener("success",(()=>{e(this.request.result)})),this.request.addEventListener("error",(()=>{t(this.request.error)}))}))}}function bd(e,t){return e.transaction([md],t?"readwrite":"readonly").objectStore(md)}function yd(){const e=indexedDB.open(fd,1);return new Promise(((t,n)=>{e.addEventListener("error",(()=>{n(e.error)})),e.addEventListener("upgradeneeded",(()=>{const t=e.result;try{t.createObjectStore(md,{keyPath:gd})}catch(r){n(r)}})),e.addEventListener("success",(async()=>{const n=e.result;n.objectStoreNames.contains(md)?t(n):(n.close(),await function(){const e=indexedDB.deleteDatabase(fd);return new vd(e).toPromise()}(),t(await yd()))}))}))}async function _d(e,t,n){const r=bd(e,!0).put({[gd]:t,value:n});return new vd(r).toPromise()}function xd(e,t){const n=bd(e,!0).delete(t);return new vd(n).toPromise()}class wd{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then((()=>{}),(()=>{}))}async _openDb(){return this.db||(this.db=await yd()),this.db}async _withRetries(e){let t=0;for(;;)try{const t=await this._openDb();return await e(t)}catch(n){if(t++>3)throw n;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return hd()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=cd._getInstance(hd()?self:null),this.receiver._subscribe("keyChanged",(async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)}))),this.receiver._subscribe("ping",(async(e,t)=>["keyChanged"]))}async initializeSender(){var e,t;if(this.activeServiceWorker=await async function(){if(!(null===navigator||void 0===navigator?void 0:navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch(e){return null}}(),!this.activeServiceWorker)return;this.sender=new dd(this.activeServiceWorker);const n=await this.sender._send("ping",{},800);n&&(null===(e=n[0])||void 0===e?void 0:e.fulfilled)&&(null===(t=n[0])||void 0===t?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(this.sender&&this.activeServiceWorker&&function(){var e;return(null===(e=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===e?void 0:e.controller)||null}()===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(t){}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await yd();return await _d(e,rd,"1"),await xd(e,rd),!0}catch(e){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite((async()=>(await this._withRetries((n=>_d(n,e,t))),this.localCache[e]=t,this.notifyServiceWorker(e))))}async _get(e){const t=await this._withRetries((t=>async function(e,t){const n=bd(e,!1).get(t),r=await new vd(n).toPromise();return void 0===r?null:r.value}(t,e)));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite((async()=>(await this._withRetries((t=>xd(t,e))),delete this.localCache[e],this.notifyServiceWorker(e))))}async _poll(){const e=await this._withRetries((e=>{const t=bd(e,!1).getAll();return new vd(t).toPromise()}));if(!e)return[];if(0!==this.pendingWrites)return[];const t=[],n=new Set;if(0!==e.length)for(const{fbase_key:r,value:i}of e)n.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(i)&&(this.notifyListeners(r,i),t.push(r));for(const r of Object.keys(this.localCache))this.localCache[r]&&!n.has(r)&&(this.notifyListeners(r,null),t.push(r));return t}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((async()=>this._poll()),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}wd.type="LOCAL";const Ed=wd;ku("rcb"),new Ac(3e4,6e4);const Td="recaptcha";async function Cd(e,t,n){var r;const i=await n.verify();try{let o;if(wc("string"===typeof i,e,"argument-error"),wc(n.type===Td,e,"argument-error"),o="string"===typeof t?{phoneNumber:t}:t,"session"in o){const t=o.session;if("phoneNumber"in o){wc("enroll"===t.type,e,"internal-error");const n=await function(e,t){return Nc(e,"POST","/v2/accounts/mfaEnrollment:start",Rc(e,t))}(e,{idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:o.phoneNumber,recaptchaToken:i}});return n.phoneSessionInfo.sessionInfo}{wc("signin"===t.type,e,"internal-error");const n=(null===(r=o.multiFactorHint)||void 0===r?void 0:r.uid)||o.multiFactorUid;wc(n,e,"missing-multi-factor-info");const a=await function(e,t){return Nc(e,"POST","/v2/accounts/mfaSignIn:start",Rc(e,t))}(e,{mfaPendingCredential:t.credential,mfaEnrollmentId:n,phoneSignInInfo:{recaptchaToken:i}});return a.phoneResponseInfo.sessionInfo}}{const{sessionInfo:t}=await async function(e,t){return Nc(e,"POST","/v1/accounts:sendVerificationCode",Rc(e,t))}(e,{phoneNumber:o.phoneNumber,recaptchaToken:i});return t}}finally{n._reset()}}class kd{constructor(e){this.providerId=kd.PROVIDER_ID,this.auth=wu(e)}verifyPhoneNumber(e,t){return Cd(this.auth,e,sl(t))}static credential(e,t){return Uu._fromVerification(e,t)}static credentialFromResult(e){const t=e;return kd.credentialFromTaggedObject(t)}static credentialFromError(e){return kd.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{phoneNumber:n,temporaryProof:r}=t;return n&&r?Uu._fromTokenResponse(n,r):null}}function Sd(e,t){return t?nu(t):(wc(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}kd.PROVIDER_ID="phone",kd.PHONE_SIGN_IN_METHOD="phone";class Od extends Lu{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Mu(e,this._buildIdpRequest())}_linkToIdToken(e,t){return Mu(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return Mu(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function Ad(e){return td(e.auth,new Od(e),e.bypassAuthState)}function jd(e){const{auth:t,user:n}=e;return wc(n,t,"internal-error"),ed(n,new Od(e),e.bypassAuthState)}async function Pd(e){const{auth:t,user:n}=e;return wc(n,t,"internal-error"),Xu(n,new Od(e),e.bypassAuthState)}class Id{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise((async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(n){this.reject(n)}}))}async onAuthEvent(e){const{urlResponse:t,sessionId:n,postBody:r,tenantId:i,error:o,type:a}=e;if(o)return void this.reject(o);const s={auth:this.auth,requestUri:t,sessionId:n,tenantId:i||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(s))}catch(l){this.reject(l)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return Ad;case"linkViaPopup":case"linkViaRedirect":return Pd;case"reauthViaPopup":case"reauthViaRedirect":return jd;default:vc(this.auth,"internal-error")}}resolve(e){Tc(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){Tc(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const Ld=new Ac(2e3,1e4);class Rd extends Id{constructor(e,t,n,r,i){super(e,t,r,i),this.provider=n,this.authWindow=null,this.pollId=null,Rd.currentPopupAction&&Rd.currentPopupAction.cancel(),Rd.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return wc(e,this.auth,"internal-error"),e}async onExecution(){Tc(1===this.filter.length,"Popup operations only handle one event");const e=ud();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch((e=>{this.reject(e)})),this.resolver._isIframeWebStorageSupported(this.auth,(e=>{e||this.reject(bc(this.auth,"web-storage-unsupported"))})),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(bc(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Rd.currentPopupAction=null}pollUserCancellation(){const e=()=>{var t,n;(null===(n=null===(t=this.authWindow)||void 0===t?void 0:t.window)||void 0===n?void 0:n.closed)?this.pollId=window.setTimeout((()=>{this.pollId=null,this.reject(bc(this.auth,"popup-closed-by-user"))}),8e3):this.pollId=window.setTimeout(e,Ld.get())};e()}}Rd.currentPopupAction=null;const Nd="pendingRedirect",Dd=new Map;class Md extends Id{constructor(e,t){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,arguments.length>2&&void 0!==arguments[2]&&arguments[2]),this.eventId=null}async execute(){let e=Dd.get(this.auth._key());if(!e){try{const t=await async function(e,t){const n=Ud(t),r=Qd(e);if(!await r._isAvailable())return!1;const i="true"===await r._get(n);return await r._remove(n),i}(this.resolver,this.auth),n=t?await super.execute():null;e=()=>Promise.resolve(n)}catch(t){e=()=>Promise.reject(t)}Dd.set(this.auth._key(),e)}return this.bypassAuthState||Dd.set(this.auth._key(),(()=>Promise.resolve(null))),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}function Bd(e,t){Dd.set(e._key(),t)}function Qd(e){return nu(e._redirectPersistence)}function Ud(e){return ou(Nd,e.config.apiKey,e.name)}async function Fd(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=wu(e),i=Sd(r,t),o=new Md(r,i,n),a=await o.execute();return a&&!n&&(delete a.user._redirectEventId,await r._persistUserIfCurrent(a.user),await r._setRedirectUser(null,t)),a}class zd{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach((n=>{this.isEventForConsumer(e,n)&&(t=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))})),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Hd(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var n;if(e.error&&!Hd(e)){const r=(null===(n=e.error.code)||void 0===n?void 0:n.split("auth/")[1])||"internal-error";t.onError(bc(this.auth,r))}else t.onAuthEvent(e)}isEventForConsumer(e,t){const n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(qd(e))}saveEventToCache(e){this.cachedEventUids.add(qd(e)),this.lastProcessedEventTime=Date.now()}}function qd(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter((e=>e)).join("-")}function Hd(e){let{type:t,error:n}=e;return"unknown"===t&&(null===n||void 0===n?void 0:n.code)==="auth/".concat("no-auth-event")}const Wd=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Gd=/^https?/;async function Vd(e){if(e.config.emulator)return;const{authorizedDomains:t}=await async function(e){return Nc(e,"GET","/v1/projects",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}(e);for(const r of t)try{if($d(r))return}catch(n){}vc(e,"unauthorized-domain")}function $d(e){const t=Cc(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const i=new URL(e);return""===i.hostname&&""===r?"chrome-extension:"===n&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===n&&i.hostname===r}if(!Gd.test(n))return!1;if(Wd.test(e))return r===e;const i=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}const Kd=new Ac(3e4,6e4);function Yd(){const e=pd().___jsl;if(null===e||void 0===e?void 0:e.H)for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n{var r,i,o;function a(){Yd(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{Yd(),n(bc(e,"network-request-failed"))},timeout:Kd.get()})}if(null===(i=null===(r=pd().gapi)||void 0===r?void 0:r.iframes)||void 0===i?void 0:i.Iframe)t(gapi.iframes.getContext());else{if(!(null===(o=pd().gapi)||void 0===o?void 0:o.load)){const t=ku("iframefcb");return pd()[t]=()=>{gapi.load?a():n(bc(e,"network-request-failed"))},Cu("".concat(Tu.gapiScript,"?onload=").concat(t)).catch((e=>n(e)))}a()}})).catch((e=>{throw Jd=null,e}))}let Jd=null;const Xd=new Ac(5e3,15e3),ep="__/auth/iframe",tp="emulator/auth/iframe",np={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},rp=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function ip(e){const t=e.config;wc(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?jc(t,tp):"https://".concat(e.config.authDomain,"/").concat(ep),r={apiKey:t.apiKey,appName:e.name,v:Kl},i=rp.get(e.config.apiHost);i&&(r.eid=i);const o=e._getFrameworks();return o.length&&(r.fw=o.join(",")),"".concat(n,"?").concat(Xs(r).slice(1))}async function op(e){const t=await function(e){return Jd=Jd||Zd(e),Jd}(e),n=pd().gapi;return wc(n,e,"internal-error"),t.open({where:document.body,url:ip(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:np,dontclear:!0},(t=>new Promise((async(n,r)=>{await t.restyle({setHideOnLeave:!1});const i=bc(e,"network-request-failed"),o=pd().setTimeout((()=>{r(i)}),Xd.get());function a(){pd().clearTimeout(o),n(t)}t.ping(a).then(a,(()=>{r(i)}))}))))}const ap={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class sp{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}function lp(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:600;const o=Math.max((window.screen.availHeight-i)/2,0).toString(),a=Math.max((window.screen.availWidth-r)/2,0).toString();let s="";const l=Object.assign(Object.assign({},ap),{width:r.toString(),height:i.toString(),top:o,left:a}),c=Ms().toLowerCase();n&&(s=uu(c)?"_blank":n),lu(c)&&(t=t||"http://localhost",l.scrollbars="yes");const u=Object.entries(l).reduce(((e,t)=>{let[n,r]=t;return"".concat(e).concat(n,"=").concat(r,",")}),"");if(function(){var e;return mu(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ms())&&!!(null===(e=window.navigator)||void 0===e?void 0:e.standalone)}(c)&&"_self"!==s)return function(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}(t||"",s),new sp(null);const d=window.open(t||"",s,u);wc(d,e,"popup-blocked");try{d.focus()}catch(p){}return new sp(d)}const cp="__/auth/handler",up="emulator/auth/handler",dp=encodeURIComponent("fac");async function pp(e,t,n,r,i,o){wc(e.config.authDomain,e,"auth-domain-config-required"),wc(e.config.apiKey,e,"invalid-api-key");const a={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:Kl,eventId:i};if(t instanceof qu){t.setDefaultLanguage(e.languageCode),a.providerId=t.providerId||"",Ks(t.getCustomParameters())||(a.customParameters=JSON.stringify(t.getCustomParameters()));for(const[e,t]of Object.entries(o||{}))a[e]=t}if(t instanceof Hu){const e=t.getScopes().filter((e=>""!==e));e.length>0&&(a.scopes=e.join(","))}e.tenantId&&(a.tid=e.tenantId);const s=a;for(const u of Object.keys(s))void 0===s[u]&&delete s[u];const l=await e._getAppCheckToken(),c=l?"#".concat(dp,"=").concat(encodeURIComponent(l)):"";return"".concat(function(e){let{config:t}=e;if(!t.emulator)return"https://".concat(t.authDomain,"/").concat(cp);return jc(t,up)}(e),"?").concat(Xs(s).slice(1)).concat(c)}const hp="webStorageSupport";const fp=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=ld,this._completeRedirectFn=Fd,this._overrideRedirectResult=Bd}async _openPopup(e,t,n,r){var i;Tc(null===(i=this.eventManagers[e._key()])||void 0===i?void 0:i.manager,"_initialize() not called before _openPopup()");return lp(e,await pp(e,t,n,Cc(),r),ud())}async _openRedirect(e,t,n,r){await this._originValidation(e);return function(e){pd().location.href=e}(await pp(e,t,n,Cc(),r)),new Promise((()=>{}))}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(Tc(n,"If manager is not set, promise should be"),n)}const n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch((()=>{delete this.eventManagers[t]})),n}async initAndGetManager(e){const t=await op(e),n=new zd(e);return t.register("authEvent",(t=>{wc(null===t||void 0===t?void 0:t.authEvent,e,"invalid-auth-event");return{status:n.onEvent(t.authEvent)?"ACK":"ERROR"}}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(hp,{type:hp},(n=>{var r;const i=null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r[hp];void 0!==i&&t(!!i),vc(e,"internal-error")}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=Vd(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return vu()||cu()||mu()}};var mp="@firebase/auth",gp="1.6.0";class vp{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}async getToken(e){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;return{accessToken:await this.auth.currentUser.getIdToken(e)}}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged((t=>{e((null===t||void 0===t?void 0:t.stsTokenManager.accessToken)||null)}));this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){wc(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const bp=Ns("authIdTokenMaxAge")||300;let yp=null;function _p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl();const t=Gl(e,"auth");if(t.isInitialized())return t.getImmediate();const n=function(e,t){const n=Gl(e,"auth");if(n.isInitialized()){const e=n.getImmediate();if(Zs(n.getOptions(),null!==t&&void 0!==t?t:{}))return e;vc(e,"already-initialized")}return n.initialize({options:t})}(e,{popupRedirectResolver:fp,persistence:[Ed,ad,ld]}),r=Ns("authTokenSyncURL");if(r){const e=(i=r,async e=>{const t=e&&await e.getIdTokenResult(),n=t&&((new Date).getTime()-Date.parse(t.issuedAtTime))/1e3;if(n&&n>bp)return;const r=null===t||void 0===t?void 0:t.token;yp!==r&&(yp=r,await fetch(i,{method:r?"POST":"DELETE",headers:r?{Authorization:"Bearer ".concat(r)}:{}}))});!function(e,t,n){sl(e).beforeAuthStateChanged(t,n)}(n,e,(()=>e(n.currentUser))),function(e,t,n,r){sl(e).onIdTokenChanged(t,n,r)}(n,(t=>e(t)))}var i;const o=Is("auth");return o&&ju(n,"http://".concat(o)),n}var xp,wp;xp={loadJS:e=>new Promise(((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=e=>{const t=bc("internal-error");t.customData=e,n(t)},r.type="text/javascript",r.charset="UTF-8",function(){var e,t;return null!==(t=null===(e=document.getElementsByTagName("head"))||void 0===e?void 0:e[0])&&void 0!==t?t:document}().appendChild(r)})),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="},Tu=xp,wp="Browser",Wl(new ll("auth",((e,t)=>{let{options:n}=t;const r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),o=e.getProvider("app-check-internal"),{apiKey:a,authDomain:s}=r.options;wc(a&&!a.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:a,authDomain:s,clientPlatform:wp,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:bu(wp)},c=new xu(r,i,o,l);return function(e,t){const n=(null===t||void 0===t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(nu);(null===t||void 0===t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null===t||void 0===t?void 0:t.popupRedirectResolver)}(c,n),c}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback(((e,t,n)=>{e.getProvider("auth-internal").initialize()}))),Wl(new ll("auth-internal",(e=>(e=>new vp(e))(wu(e.getProvider("auth").getImmediate()))),"PRIVATE").setInstantiationMode("EXPLICIT")),Jl(mp,gp,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(wp)),Jl(mp,gp,"esm2017");Jl("firebase","10.8.0","app");const Ep={NODE_ENV:"production",PUBLIC_URL:"/metadata-entry-form",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_GOOGLE_CLOUD_API_KEY:"AIzaSyBz4kb3hJHXw0voYZgHZuAgmqGosxntMHM",REACT_APP_GOOGLE_CLOUD_API_KEY_DEV:"AIzaSyADkNENzpoqj3O7uGPsRA_4s1zQdbH708c"}.REACT_APP_DEV_DEPLOYMENT,Tp=Ep?{apiKey:"AIzaSyADkNENzpoqj3O7uGPsRA_4s1zQdbH708c",authDomain:"cioos-metadata-form-dev.firebaseapp.com",databaseURL:"https://cioos-metadata-form-dev-default-rtdb.firebaseio.com/",projectId:"cioos-metadata-form-dev",storageBucket:"cioos-metadata-form-dev.appspot.com",messagingSenderId:"392401521083",appId:"1:392401521083:web:45d1539f9d284f446d5c9e"}:{apiKey:"AIzaSyBz4kb3hJHXw0voYZgHZuAgmqGosxntMHM",authDomain:"cioos-metadata-form.firebaseapp.com",databaseURL:"https://cioos-metadata-form.firebaseio.com",projectId:"cioos-metadata-form",storageBucket:"cioos-metadata-form.appspot.com",messagingSenderId:"646114203434",appId:"1:646114203434:web:bccceadc5144270f98f053"};"localhost"===window.location.hostname&&Ep&&(Tp.databaseURL="http://localhost:9001?ns=cioos-metadata-form");const Cp=Yl(Tp),kp=new Gu;kp.setCustomParameters({promt:"select_account"});const Sp=_p(Cp),Op=()=>async function(e,t,n){const r=wu(e);_c(e,t,qu);const i=Sd(r,n);return new Rd(r,"signInViaPopup",t,i).executeNotNull()}(Sp,kp);var Ap=n(492);const jp=e=>t=>{let{children:n}=t;const{language:r}=mn();return r===e&&(0,Ap.jsx)(Ap.Fragment,{children:n})},Pp=jp("en"),Ip=jp("fr"),Lp=e=>{const{en:t,fr:n,children:r}=e,{language:i="en"}=mn();return t||n?t&&n?"en"===i?t:n:(console.error("Tag missing french or english!"),null):(Array.isArray(r)&&2!==r.length&&console.error(e,"Tag missing french or english!"),r)},Rp="type.googleapis.com/google.protobuf.Int64Value",Np="type.googleapis.com/google.protobuf.UInt64Value";function Dp(e,t){const n={};for(const r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}function Mp(e){if(null==e)return null;if(e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&isFinite(e))return e;if(!0===e||!1===e)return e;if("[object String]"===Object.prototype.toString.call(e))return e;if(e instanceof Date)return e.toISOString();if(Array.isArray(e))return e.map((e=>Mp(e)));if("function"===typeof e||"object"===typeof e)return Dp(e,(e=>Mp(e)));throw new Error("Data cannot be encoded in JSON: "+e)}function Bp(e){if(null==e)return e;if(e["@type"])switch(e["@type"]){case Rp:case Np:{const t=Number(e.value);if(isNaN(t))throw new Error("Data cannot be decoded from JSON: "+e);return t}default:throw new Error("Data cannot be decoded from JSON: "+e)}return Array.isArray(e)?e.map((e=>Bp(e))):"function"===typeof e||"object"===typeof e?Dp(e,(e=>Bp(e))):e}const Qp="functions",Up={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class Fp extends Fs{constructor(e,t,n){super("".concat(Qp,"/").concat(e),t||""),this.details=n}}class zp{constructor(e,t,n){this.auth=null,this.messaging=null,this.appCheck=null,this.auth=e.getImmediate({optional:!0}),this.messaging=t.getImmediate({optional:!0}),this.auth||e.get().then((e=>this.auth=e),(()=>{})),this.messaging||t.get().then((e=>this.messaging=e),(()=>{})),this.appCheck||n.get().then((e=>this.appCheck=e),(()=>{}))}async getAuthToken(){if(this.auth)try{const e=await this.auth.getToken();return null===e||void 0===e?void 0:e.accessToken}catch(e){return}}async getMessagingToken(){if(this.messaging&&"Notification"in self&&"granted"===Notification.permission)try{return await this.messaging.getToken()}catch(e){return}}async getAppCheckToken(e){if(this.appCheck){const t=e?await this.appCheck.getLimitedUseToken():await this.appCheck.getToken();return t.error?null:t.token}return null}async getContext(e){return{authToken:await this.getAuthToken(),messagingToken:await this.getMessagingToken(),appCheckToken:await this.getAppCheckToken(e)}}}const qp="us-central1";class Hp{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:qp,o=arguments.length>5?arguments[5]:void 0;this.app=e,this.fetchImpl=o,this.emulatorOrigin=null,this.contextProvider=new zp(t,n,r),this.cancelAllRequests=new Promise((e=>{this.deleteService=()=>Promise.resolve(e())}));try{const e=new URL(i);this.customDomain=e.origin,this.region=qp}catch(a){this.customDomain=null,this.region=i}}_delete(){return this.deleteService()}_url(e){const t=this.app.options.projectId;if(null!==this.emulatorOrigin){const n=this.emulatorOrigin;return"".concat(n,"/").concat(t,"/").concat(this.region,"/").concat(e)}return null!==this.customDomain?"".concat(this.customDomain,"/").concat(e):"https://".concat(this.region,"-").concat(t,".cloudfunctions.net/").concat(e)}}function Wp(e,t,n){return r=>function(e,t,n,r){const i=e._url(t);return Vp(e,i,n,r)}(e,t,r,n||{})}async function Gp(e,t,n,r){let i;n["Content-Type"]="application/json";try{i=await r(e,{method:"POST",body:JSON.stringify(t),headers:n})}catch(a){return{status:0,json:null}}let o=null;try{o=await i.json()}catch(a){}return{status:i.status,json:o}}async function Vp(e,t,n,r){const i={data:n=Mp(n)},o={},a=await e.contextProvider.getContext(r.limitedUseAppCheckTokens);a.authToken&&(o.Authorization="Bearer "+a.authToken),a.messagingToken&&(o["Firebase-Instance-ID-Token"]=a.messagingToken),null!==a.appCheckToken&&(o["X-Firebase-AppCheck"]=a.appCheckToken);const s=function(e){let t=null;return{promise:new Promise(((n,r)=>{t=setTimeout((()=>{r(new Fp("deadline-exceeded","deadline-exceeded"))}),e)})),cancel:()=>{t&&clearTimeout(t)}}}(r.timeout||7e4),l=await Promise.race([Gp(t,i,o,e.fetchImpl),s.promise,e.cancelAllRequests]);if(s.cancel(),!l)throw new Fp("cancelled","Firebase Functions instance was deleted.");const c=function(e,t){let n,r=function(e){if(e>=200&&e<300)return"ok";switch(e){case 0:case 500:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(e),i=r;try{const e=t&&t.error;if(e){const t=e.status;if("string"===typeof t){if(!Up[t])return new Fp("internal","internal");r=Up[t],i=t}const o=e.message;"string"===typeof o&&(i=o),n=e.details,void 0!==n&&(n=Bp(n))}}catch(o){}return"ok"===r?null:new Fp(r,i,n)}(l.status,l.json);if(c)throw c;if(!l.json)throw new Fp("internal","Response is not valid JSON object.");let u=l.json.data;if("undefined"===typeof u&&(u=l.json.result),"undefined"===typeof u)throw new Fp("internal","Response is missing data field.");return{data:Bp(u)}}const $p="@firebase/functions",Kp="0.11.1";function Yp(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qp;const n=Gl(sl(e),Qp).getImmediate({identifier:t}),r=Ls("functions");return r&&function(e,t,n){!function(e,t,n){e.emulatorOrigin="http://".concat(t,":").concat(n)}(sl(e),t,n)}(n,...r),n}function Zp(e,t,n){return Wp(sl(e),t,n)}!function(e,t){Wl(new ll(Qp,((t,n)=>{let{instanceIdentifier:r}=n;const i=t.getProvider("app").getImmediate(),o=t.getProvider("auth-internal"),a=t.getProvider("messaging-internal"),s=t.getProvider("app-check-internal");return new Hp(i,o,a,s,r,e)}),"PUBLIC").setMultipleInstances(!0)),Jl($p,Kp,t),Jl($p,Kp,"esm2017")}(fetch.bind(self));const Jp="@firebase/database",Xp="1.0.3";let eh="";function th(e){eh=e}class nh{constructor(e){this.domStorage_=e,this.prefix_="firebase:"}set(e,t){null==t?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),Ws(t))}get(e){const t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:Hs(t)}remove(e){this.domStorage_.removeItem(this.prefixedName_(e))}prefixedName_(e){return this.prefix_+e}toString(){return this.domStorage_.toString()}}class rh{constructor(){this.cache_={},this.isInMemoryStorage=!0}set(e,t){null==t?delete this.cache_[e]:this.cache_[e]=t}get(e){return Vs(this.cache_,e)?this.cache_[e]:null}remove(e){delete this.cache_[e]}}const ih=function(e){try{if("undefined"!==typeof window&&"undefined"!==typeof window[e]){const t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new nh(t)}}catch(t){}return new rh},oh=ih("localStorage"),ah=ih("sessionStorage"),sh=new bl("@firebase/database"),lh=function(){let e=1;return function(){return e++}}(),ch=function(e){const t=function(e){const t=[];let n=0;for(let r=0;r=55296&&i<=56319){const t=i-55296;r++,ys(r>6|192,t[n++]=63&i|128):i<65536?(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t}(e),n=new nl;n.update(t);const r=n.digest();return ws.encodeByteArray(r)},uh=function(){let e="";for(let t=0;tn?r.push(e.substring(i,n)):r.push(e.substring(i,i+t));return r};function Sh(e,t){for(const n in e)e.hasOwnProperty(n)&&t(n,e[n])}const Oh=function(e){ys(!yh(e),"Invalid JSON number");const t=1023;let n,r,i,o,a;0===e?(r=0,i=0,n=1/e===-1/0?1:0):(n=e<0,(e=Math.abs(e))>=Math.pow(2,-1022)?(o=Math.min(Math.floor(Math.log(e)/Math.LN2),t),r=o+t,i=Math.round(e*Math.pow(2,52-o)-Math.pow(2,52))):(r=0,i=Math.round(e/Math.pow(2,-1074))));const s=[];for(a=52;a;a-=1)s.push(i%2?1:0),i=Math.floor(i/2);for(a=11;a;a-=1)s.push(r%2?1:0),r=Math.floor(r/2);s.push(n?1:0),s.reverse();const l=s.join("");let c="";for(a=0;a<64;a+=8){let e=parseInt(l.substr(a,8),2).toString(16);1===e.length&&(e="0"+e),c+=e}return c.toLowerCase()};const Ah=new RegExp("^-?(0*)\\d{1,10}$"),jh=function(e){if(Ah.test(e)){const t=Number(e);if(t>=-2147483648&&t<=2147483647)return t}return null},Ph=function(e){try{e()}catch(t){setTimeout((()=>{const e=t.stack||"";throw bh("Exception was thrown by user callback.",e),t}),Math.floor(0))}},Ih=function(e,t){const n=setTimeout(e,t);return"number"===typeof n&&"undefined"!==typeof Deno&&Deno.unrefTimer?Deno.unrefTimer(n):"object"===typeof n&&n.unref&&n.unref(),n};class Lh{constructor(e,t){this.appName_=e,this.appCheckProvider=t,this.appCheck=null===t||void 0===t?void 0:t.getImmediate({optional:!0}),this.appCheck||null===t||void 0===t||t.get().then((e=>this.appCheck=e))}getToken(e){return this.appCheck?this.appCheck.getToken(e):new Promise(((t,n)=>{setTimeout((()=>{this.appCheck?this.getToken(e).then(t,n):t(null)}),0)}))}addTokenChangeListener(e){var t;null===(t=this.appCheckProvider)||void 0===t||t.get().then((t=>t.addTokenListener(e)))}notifyForInvalidToken(){bh('Provided AppCheck credentials for the app named "'.concat(this.appName_,'" ')+"are invalid. This usually indicates your app was not initialized correctly.")}}class Rh{constructor(e,t,n){this.appName_=e,this.firebaseOptions_=t,this.authProvider_=n,this.auth_=null,this.auth_=n.getImmediate({optional:!0}),this.auth_||n.onInit((e=>this.auth_=e))}getToken(e){return this.auth_?this.auth_.getToken(e).catch((e=>e&&"auth/token-not-initialized"===e.code?(fh("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(e))):new Promise(((t,n)=>{setTimeout((()=>{this.auth_?this.getToken(e).then(t,n):t(null)}),0)}))}addTokenChangeListener(e){this.auth_?this.auth_.addAuthTokenListener(e):this.authProvider_.get().then((t=>t.addAuthTokenListener(e)))}removeTokenChangeListener(e){this.authProvider_.get().then((t=>t.removeAuthTokenListener(e)))}notifyForInvalidToken(){let e='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.firebaseOptions_?e+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?e+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':e+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',bh(e)}}class Nh{constructor(e){this.accessToken=e}getToken(e){return Promise.resolve({accessToken:this.accessToken})}addTokenChangeListener(e){e(this.accessToken)}removeTokenChangeListener(e){}notifyForInvalidToken(){}}Nh.OWNER="owner";const Dh="5",Mh=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,Bh="ac",Qh="websocket",Uh="long_polling";class Fh{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];this.secure=t,this.namespace=n,this.webSocketOnly=r,this.nodeAdmin=i,this.persistenceKey=o,this.includeNamespaceInQueryParams=a,this.isUsingEmulator=s,this._host=e.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=oh.get("host:"+e)||this._host}isCacheableHost(){return"s-"===this.internalHost.substr(0,2)}isCustomHost(){return"firebaseio.com"!==this._domain&&"firebaseio-demo.com"!==this._domain}get host(){return this._host}set host(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&oh.set("host:"+this._host,this.internalHost))}toString(){let e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e}toURLString(){const e=this.secure?"https://":"http://",t=this.includeNamespaceInQueryParams?"?ns=".concat(this.namespace):"";return"".concat(e).concat(this.host,"/").concat(t)}}function zh(e,t,n){let r;if(ys("string"===typeof t,"typeof type must == string"),ys("object"===typeof n,"typeof params must == object"),t===Qh)r=(e.secure?"wss://":"ws://")+e.internalHost+"/.ws?";else{if(t!==Uh)throw new Error("Unknown connection type: "+t);r=(e.secure?"https://":"http://")+e.internalHost+"/.lp?"}(function(e){return e.host!==e.internalHost||e.isCustomHost()||e.includeNamespaceInQueryParams})(e)&&(n.ns=e.namespace);const i=[];return Sh(n,((e,t)=>{i.push(e+"="+t)})),r+i.join("&")}class qh{constructor(){this.counters_={}}incrementCounter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;Vs(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t}get(){return Ss(this.counters_)}}const Hh={},Wh={};function Gh(e){const t=e.toString();return Hh[t]||(Hh[t]=new qh),Hh[t]}class Vh{constructor(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}closeAfter(e,t){this.closeAfterResponse=e,this.onClose=t,this.closeAfterResponse{this.onMessage_(e[t])}));if(this.currentResponseNum===this.closeAfterResponse){this.onClose&&(this.onClose(),this.onClose=null);break}this.currentResponseNum++}}}const $h="start";class Kh{constructor(e,t,n,r,i,o,a){this.connId=e,this.repoInfo=t,this.applicationId=n,this.appCheckToken=r,this.authToken=i,this.transportSessionId=o,this.lastSessionId=a,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=mh(e),this.stats_=Gh(t),this.urlFn=e=>(this.appCheckToken&&(e[Bh]=this.appCheckToken),zh(t,Uh,e))}open(e,t){var n=this;this.curSegmentNum=0,this.onDisconnect_=t,this.myPacketOrderer=new Vh(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout((()=>{this.log_("Timed out trying to connect."),this.onClosed_(),this.connectTimeoutTimer_=null}),Math.floor(3e4)),function(e){if(Us()||"complete"===document.readyState)e();else{let t=!1;const n=function(){document.body?t||(t=!0,e()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",(()=>{"complete"===document.readyState&&n()})),window.attachEvent("onload",n))}}((()=>{if(this.isClosed_)return;this.scriptTagHolder=new Yh((function(){for(var e=arguments.length,t=new Array(e),r=0;r{n.onClosed_()}))):n.onClosed_()}}),(function(){for(var e=arguments.length,t=new Array(e),r=0;r{this.onClosed_()}),this.urlFn);const e={};e[$h]="t",e.ser=Math.floor(1e8*Math.random()),this.scriptTagHolder.uniqueCallbackIdentifier&&(e.cb=this.scriptTagHolder.uniqueCallbackIdentifier),e.v=Dh,this.transportSessionId&&(e.s=this.transportSessionId),this.lastSessionId&&(e.ls=this.lastSessionId),this.applicationId&&(e.p=this.applicationId),this.appCheckToken&&(e[Bh]=this.appCheckToken),"undefined"!==typeof location&&location.hostname&&Mh.test(location.hostname)&&(e.r="f");const t=this.urlFn(e);this.log_("Connecting via long-poll to "+t),this.scriptTagHolder.addTag(t,(()=>{}))}))}start(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)}static forceAllow(){Kh.forceAllow_=!0}static forceDisallow(){Kh.forceDisallow_=!0}static isAvailable(){return!Us()&&(!!Kh.forceAllow_||!Kh.forceDisallow_&&"undefined"!==typeof document&&null!=document.createElement&&!("object"===typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href))&&!("object"===typeof Windows&&"object"===typeof Windows.UI))}markConnectionHealthy(){}shutdown_(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)}onClosed_(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))}close(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())}send(e){const t=Ws(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);const n=Ts(t),r=kh(n,1840);for(let i=0;idocument.domain="'+document.domain+'";<\/script>'}const r=""+n+"";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(r),this.myIFrame.doc.close()}catch(i){fh("frame writing exception"),i.stack&&fh(i.stack),fh(i)}}}static createIFrame_(){const e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{e.contentWindow.document||fh("No IE domain setting required")}catch(t){const n=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+n+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e}close(){this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.textContent="",setTimeout((()=>{null!==this.myIFrame&&(document.body.removeChild(this.myIFrame),this.myIFrame=null)}),Math.floor(0)));const e=this.onDisconnect;e&&(this.onDisconnect=null,e())}startLongPoll(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););}newRequest_(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;const e={};e.id=this.myID,e.pw=this.myPW,e.ser=this.currentSerial;let t=this.urlFn(e),n="",r=0;for(;this.pendingSegs.length>0;){if(!(this.pendingSegs[0].d.length+30+n.length<=1870))break;{const e=this.pendingSegs.shift();n=n+"&seg"+r+"="+e.seg+"&ts"+r+"="+e.ts+"&d"+r+"="+e.d,r++}}return t+=n,this.addLongPollTag_(t,this.currentSerial),!0}return!1}enqueueSegment(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()}addLongPollTag_(e,t){this.outstandingRequests.add(t);const n=()=>{this.outstandingRequests.delete(t),this.newRequest_()},r=setTimeout(n,Math.floor(25e3));this.addTag(e,(()=>{clearTimeout(r),n()}))}addTag(e,t){Us()?this.doNodeLongPoll(e,t):setTimeout((()=>{try{if(!this.sendNewPolls)return;const n=this.myIFrame.doc.createElement("script");n.type="text/javascript",n.async=!0,n.src=e,n.onload=n.onreadystatechange=function(){const e=n.readyState;e&&"loaded"!==e&&"complete"!==e||(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),t())},n.onerror=()=>{fh("Long-poll script failed to load: "+e),this.sendNewPolls=!1,this.close()},this.myIFrame.doc.body.appendChild(n)}catch(n){}}),Math.floor(1))}}let Zh=null;"undefined"!==typeof MozWebSocket?Zh=MozWebSocket:"undefined"!==typeof WebSocket&&(Zh=WebSocket);class Jh{constructor(e,t,n,r,i,o,a){this.connId=e,this.applicationId=n,this.appCheckToken=r,this.authToken=i,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=mh(this.connId),this.stats_=Gh(t),this.connURL=Jh.connectionURL_(t,o,a,r,n),this.nodeAdmin=t.nodeAdmin}static connectionURL_(e,t,n,r,i){const o={};return o.v=Dh,!Us()&&"undefined"!==typeof location&&location.hostname&&Mh.test(location.hostname)&&(o.r="f"),t&&(o.s=t),n&&(o.ls=n),r&&(o[Bh]=r),i&&(o.p=i),zh(e,Qh,o)}open(e,t){this.onDisconnect=t,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,oh.set("previous_websocket_failure",!0);try{let e;if(Us()){const t=this.nodeAdmin?"AdminNode":"Node";e={headers:{"User-Agent":"Firebase/".concat(Dh,"/").concat(eh,"/").concat(process.platform,"/").concat(t),"X-Firebase-GMPID":this.applicationId||""}},this.authToken&&(e.headers.Authorization="Bearer ".concat(this.authToken)),this.appCheckToken&&(e.headers["X-Firebase-AppCheck"]=this.appCheckToken);const n={NODE_ENV:"production",PUBLIC_URL:"/metadata-entry-form",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_GOOGLE_CLOUD_API_KEY:"AIzaSyBz4kb3hJHXw0voYZgHZuAgmqGosxntMHM",REACT_APP_GOOGLE_CLOUD_API_KEY_DEV:"AIzaSyADkNENzpoqj3O7uGPsRA_4s1zQdbH708c"},r=0===this.connURL.indexOf("wss://")?n.HTTPS_PROXY||n.https_proxy:n.HTTP_PROXY||n.http_proxy;r&&(e.proxy={origin:r})}this.mySock=new Zh(this.connURL,[],e)}catch(n){this.log_("Error instantiating WebSocket.");const e=n.message||n.data;return e&&this.log_(e),void this.onClosed_()}this.mySock.onopen=()=>{this.log_("Websocket connected."),this.everConnected_=!0},this.mySock.onclose=()=>{this.log_("Websocket connection was disconnected."),this.mySock=null,this.onClosed_()},this.mySock.onmessage=e=>{this.handleIncomingFrame(e)},this.mySock.onerror=e=>{this.log_("WebSocket error. Closing connection.");const t=e.message||e.data;t&&this.log_(t),this.onClosed_()}}start(){}static forceDisallow(){Jh.forceDisallow_=!0}static isAvailable(){let e=!1;if("undefined"!==typeof navigator&&navigator.userAgent){const t=/Android ([0-9]{0,}\.[0-9]{0,})/,n=navigator.userAgent.match(t);n&&n.length>1&&parseFloat(n[1])<4.4&&(e=!0)}return!e&&null!==Zh&&!Jh.forceDisallow_}static previouslyFailed(){return oh.isInMemoryStorage||!0===oh.get("previous_websocket_failure")}markConnectionHealthy(){oh.remove("previous_websocket_failure")}appendFrame_(e){if(this.frames.push(e),this.frames.length===this.totalFrames){const e=this.frames.join("");this.frames=null;const t=Hs(e);this.onMessage(t)}}handleNewFrameCount_(e){this.totalFrames=e,this.frames=[]}extractFrameCount_(e){if(ys(null===this.frames,"We already have a frame buffer"),e.length<=6){const t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e}handleIncomingFrame(e){if(null===this.mySock)return;const t=e.data;if(this.bytesReceived+=t.length,this.stats_.incrementCounter("bytes_received",t.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(t);else{const e=this.extractFrameCount_(t);null!==e&&this.appendFrame_(e)}}send(e){this.resetKeepAlive();const t=Ws(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);const n=kh(t,16384);n.length>1&&this.sendString_(String(n.length));for(let r=0;r{this.mySock&&this.sendString_("0"),this.resetKeepAlive()}),Math.floor(45e3))}sendString_(e){try{this.mySock.send(e)}catch(t){this.log_("Exception thrown from WebSocket.send():",t.message||t.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}}}Jh.responsesRequiredToBeHealthy=2,Jh.healthyTimeout=3e4;class Xh{constructor(e){this.initTransports_(e)}static get ALL_TRANSPORTS(){return[Kh,Jh]}static get IS_TRANSPORT_INITIALIZED(){return this.globalTransportInitialized_}initTransports_(e){const t=Jh&&Jh.isAvailable();let n=t&&!Jh.previouslyFailed();if(e.webSocketOnly&&(t||bh("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),n=!0),n)this.transports_=[Jh];else{const e=this.transports_=[];for(const t of Xh.ALL_TRANSPORTS)t&&t.isAvailable()&&e.push(t);Xh.globalTransportInitialized_=!0}}initialTransport(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")}upgradeTransport(){return this.transports_.length>1?this.transports_[1]:null}}Xh.globalTransportInitialized_=!1;class ef{constructor(e,t,n,r,i,o,a,s,l,c){this.id=e,this.repoInfo_=t,this.applicationId_=n,this.appCheckToken_=r,this.authToken_=i,this.onMessage_=o,this.onReady_=a,this.onDisconnect_=s,this.onKill_=l,this.lastSessionId=c,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=mh("c:"+this.id+":"),this.transportManager_=new Xh(t),this.log_("Connection created"),this.start_()}start_(){const e=this.transportManager_.initialTransport();this.conn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;const t=this.connReceiver_(this.conn_),n=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout((()=>{this.conn_&&this.conn_.open(t,n)}),Math.floor(0));const r=e.healthyTimeout||0;r>0&&(this.healthyTimeout_=Ih((()=>{this.healthyTimeout_=null,this.isHealthy_||(this.conn_&&this.conn_.bytesReceived>102400?(this.log_("Connection exceeded healthy timeout but has received "+this.conn_.bytesReceived+" bytes. Marking connection healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()):this.conn_&&this.conn_.bytesSent>10240?this.log_("Connection exceeded healthy timeout but has sent "+this.conn_.bytesSent+" bytes. Leaving connection alive."):(this.log_("Closing unhealthy connection after timeout."),this.close()))}),Math.floor(r)))}nextTransportId_(){return"c:"+this.id+":"+this.connectionCount++}disconnReceiver_(e){return t=>{e===this.conn_?this.onConnectionLost_(t):e===this.secondaryConn_?(this.log_("Secondary connection lost."),this.onSecondaryConnectionLost_()):this.log_("closing an old connection")}}connReceiver_(e){return t=>{2!==this.state_&&(e===this.rx_?this.onPrimaryMessageReceived_(t):e===this.secondaryConn_?this.onSecondaryMessageReceived_(t):this.log_("message on old connection"))}}sendRequest(e){const t={t:"d",d:e};this.sendData_(t)}tryCleanupConnection(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)}onSecondaryControl_(e){if("t"in e){const t=e.t;"a"===t?this.upgradeIfSecondaryHealthy_():"r"===t?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===t&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}}onSecondaryMessageReceived_(e){const t=Th("t",e),n=Th("d",e);if("c"===t)this.onSecondaryControl_(n);else{if("d"!==t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(n)}}upgradeIfSecondaryHealthy_(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))}proceedWithUpgrade_(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()}onPrimaryMessageReceived_(e){const t=Th("t",e),n=Th("d",e);"c"===t?this.onControl_(n):"d"===t&&this.onDataMessage_(n)}onDataMessage_(e){this.onPrimaryResponse_(),this.onMessage_(e)}onPrimaryResponse_(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))}onControl_(e){const t=Th("t",e);if("d"in e){const n=e.d;if("h"===t){const e=Object.assign({},n);this.repoInfo_.isUsingEmulator&&(e.h=this.repoInfo_.host),this.onHandshake_(e)}else if("n"===t){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(let e=0;e{this.secondaryConn_&&(this.log_("Timed out trying to upgrade."),this.secondaryConn_.close())}),Math.floor(6e4))}onReset_(e){this.log_("Reset packet received. New host: "+e),this.repoInfo_.host=e,1===this.state_?this.close():(this.closeConnections_(),this.start_())}onConnectionEstablished_(e,t){this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(t,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):Ih((()=>{this.sendPingOnPrimaryIfNecessary_()}),Math.floor(5e3))}sendPingOnPrimaryIfNecessary_(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))}onSecondaryConnectionLost_(){const e=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==e&&this.rx_!==e||this.close()}onConnectionLost_(e){this.conn_=null,e||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(oh.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()}onConnectionShutdown_(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()}sendData_(e){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(e)}close(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))}closeConnections_(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)}}class tf{put(e,t,n,r){}merge(e,t,n,r){}refreshAuthToken(e){}refreshAppCheckToken(e){}onDisconnectPut(e,t,n){}onDisconnectMerge(e,t,n){}onDisconnectCancel(e,t){}reportStats(e){}}class nf{constructor(e){this.allowedEvents_=e,this.listeners_={},ys(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}trigger(e){if(Array.isArray(this.listeners_[e])){const i=[...this.listeners_[e]];for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rt===e)),"Unknown event: "+e)}}class rf extends nf{constructor(){super(["online"]),this.online_=!0,"undefined"===typeof window||"undefined"===typeof window.addEventListener||Bs()||(window.addEventListener("online",(()=>{this.online_||(this.online_=!0,this.trigger("online",!0))}),!1),window.addEventListener("offline",(()=>{this.online_&&(this.online_=!1,this.trigger("online",!1))}),!1))}static getInstance(){return new rf}getInitialEvent(e){return ys("online"===e,"Unknown event type: "+e),[this.online_]}currentlyOnline(){return this.online_}}const of=32,af=768;class sf{constructor(e,t){if(void 0===t){this.pieces_=e.split("/");let t=0;for(let e=0;e0&&(this.pieces_[t]=this.pieces_[e],t++);this.pieces_.length=t,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}toString(){let e="";for(let t=this.pieceNum_;t=e.pieces_.length?null:e.pieces_[e.pieceNum_]}function uf(e){return e.pieces_.length-e.pieceNum_}function df(e){let t=e.pieceNum_;return t1&&void 0!==arguments[1]?arguments[1]:0;return e.pieces_.slice(e.pieceNum_+t)}function ff(e){if(e.pieceNum_>=e.pieces_.length)return null;const t=[];for(let n=e.pieceNum_;n0&&n.push(e[t])}return new sf(n,0)}function gf(e){return e.pieceNum_>=e.pieces_.length}function vf(e,t){const n=cf(e),r=cf(t);if(null===n)return t;if(n===r)return vf(df(e),df(t));throw new Error("INTERNAL ERROR: innerPath ("+t+") is not within outerPath ("+e+")")}function bf(e,t){const n=hf(e,0),r=hf(t,0);for(let i=0;iuf(t))return!1;for(;naf)throw new Error(e.errorPrefix_+"has a key path longer than "+af+" bytes ("+e.byteLength_+").");if(e.parts_.length>of)throw new Error(e.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+of+") or object contains a cycle "+Ef(e))}function Ef(e){return 0===e.parts_.length?"":"in property '"+e.parts_.join(".")+"'"}class Tf extends nf{constructor(){let e,t;super(["visible"]),"undefined"!==typeof document&&"undefined"!==typeof document.addEventListener&&("undefined"!==typeof document.hidden?(t="visibilitychange",e="hidden"):"undefined"!==typeof document.mozHidden?(t="mozvisibilitychange",e="mozHidden"):"undefined"!==typeof document.msHidden?(t="msvisibilitychange",e="msHidden"):"undefined"!==typeof document.webkitHidden&&(t="webkitvisibilitychange",e="webkitHidden")),this.visible_=!0,t&&document.addEventListener(t,(()=>{const t=!document[e];t!==this.visible_&&(this.visible_=t,this.trigger("visible",t))}),!1)}static getInstance(){return new Tf}getInitialEvent(e){return ys("visible"===e,"Unknown event type: "+e),[this.visible_]}}const Cf=1e3;class kf extends tf{constructor(e,t,n,r,i,o,a,s){if(super(),this.repoInfo_=e,this.applicationId_=t,this.onDataUpdate_=n,this.onConnectStatus_=r,this.onServerInfoUpdate_=i,this.authTokenProvider_=o,this.appCheckTokenProvider_=a,this.authOverride_=s,this.id=kf.nextPersistentConnectionId_++,this.log_=mh("p:"+this.id+":"),this.interruptReasons_={},this.listens=new Map,this.outstandingPuts_=[],this.outstandingGets_=[],this.outstandingPutCount_=0,this.outstandingGetCount_=0,this.onDisconnectRequestQueue_=[],this.connected_=!1,this.reconnectDelay_=Cf,this.maxReconnectDelay_=3e5,this.securityDebugCallback_=null,this.lastSessionId=null,this.establishConnectionTimer_=null,this.visible_=!1,this.requestCBHash_={},this.requestNumber_=0,this.realtime_=null,this.authToken_=null,this.appCheckToken_=null,this.forceTokenRefresh_=!1,this.invalidAuthTokenCount_=0,this.invalidAppCheckTokenCount_=0,this.firstConnection_=!0,this.lastConnectionAttemptTime_=null,this.lastConnectionEstablishedTime_=null,s&&!Us())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");Tf.getInstance().on("visible",this.onVisible_,this),-1===e.host.indexOf("fblocal")&&rf.getInstance().on("online",this.onOnline_,this)}sendRequest(e,t,n){const r=++this.requestNumber_,i={r:r,a:e,b:t};this.log_(Ws(i)),ys(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(i),n&&(this.requestCBHash_[r]=n)}get(e){this.initConnection_();const t=new Ds,n={action:"g",request:{p:e._path.toString(),q:e._queryObject},onComplete:e=>{const n=e.d;"ok"===e.s?t.resolve(n):t.reject(n)}};this.outstandingGets_.push(n),this.outstandingGetCount_++;const r=this.outstandingGets_.length-1;return this.connected_&&this.sendGet_(r),t.promise}listen(e,t,n,r){this.initConnection_();const i=e._queryIdentifier,o=e._path.toString();this.log_("Listen called for "+o+" "+i),this.listens.has(o)||this.listens.set(o,new Map),ys(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"listen() called for non-default but complete query"),ys(!this.listens.get(o).has(i),"listen() called twice for same path/queryId.");const a={onComplete:r,hashFn:t,query:e,tag:n};this.listens.get(o).set(i,a),this.connected_&&this.sendListen_(a)}sendGet_(e){const t=this.outstandingGets_[e];this.sendRequest("g",t.request,(n=>{delete this.outstandingGets_[e],this.outstandingGetCount_--,0===this.outstandingGetCount_&&(this.outstandingGets_=[]),t.onComplete&&t.onComplete(n)}))}sendListen_(e){const t=e.query,n=t._path.toString(),r=t._queryIdentifier;this.log_("Listen on "+n+" for "+r);const i={p:n};e.tag&&(i.q=t._queryObject,i.t=e.tag),i.h=e.hashFn(),this.sendRequest("q",i,(i=>{const o=i.d,a=i.s;kf.warnOnListenWarnings_(o,t);(this.listens.get(n)&&this.listens.get(n).get(r))===e&&(this.log_("listen response",i),"ok"!==a&&this.removeListen_(n,r),e.onComplete&&e.onComplete(a,o))}))}static warnOnListenWarnings_(e,t){if(e&&"object"===typeof e&&Vs(e,"w")){const n=$s(e,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){const e='".indexOn": "'+t._queryParams.getIndex().toString()+'"',n=t._path.toString();bh("Using an unspecified index. Your data will be downloaded and "+"filtered on the client. Consider adding ".concat(e," at ")+"".concat(n," to your security rules for better performance."))}}}refreshAuthToken(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},(()=>{})),this.reduceReconnectDelayIfAdminCredential_(e)}reduceReconnectDelayIfAdminCredential_(e){(e&&40===e.length||function(e){const t=Gs(e).claims;return"object"===typeof t&&!0===t.admin}(e))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=3e4)}refreshAppCheckToken(e){this.appCheckToken_=e,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},(()=>{}))}tryAuth(){if(this.connected_&&this.authToken_){const e=this.authToken_,t=function(e){const t=Gs(e).claims;return!!t&&"object"===typeof t&&t.hasOwnProperty("iat")}(e)?"auth":"gauth",n={cred:e};null===this.authOverride_?n.noauth=!0:"object"===typeof this.authOverride_&&(n.authvar=this.authOverride_),this.sendRequest(t,n,(t=>{const n=t.s,r=t.d||"error";this.authToken_===e&&("ok"===n?this.invalidAuthTokenCount_=0:this.onAuthRevoked_(n,r))}))}}tryAppCheck(){this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},(e=>{const t=e.s,n=e.d||"error";"ok"===t?this.invalidAppCheckTokenCount_=0:this.onAppCheckRevoked_(t,n)}))}unlisten(e,t){const n=e._path.toString(),r=e._queryIdentifier;this.log_("Unlisten called for "+n+" "+r),ys(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"unlisten() called for non-default but complete query");this.removeListen_(n,r)&&this.connected_&&this.sendUnlisten_(n,r,e._queryObject,t)}sendUnlisten_(e,t,n,r){this.log_("Unlisten on "+e+" for "+t);const i={p:e};r&&(i.q=n,i.t=r),this.sendRequest("n",i)}onDisconnectPut(e,t,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:t,onComplete:n})}onDisconnectMerge(e,t,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:t,onComplete:n})}onDisconnectCancel(e,t){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",e,null,t):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:t})}sendOnDisconnect_(e,t,n,r){const i={p:t,d:n};this.log_("onDisconnect "+e,i),this.sendRequest(e,i,(e=>{r&&setTimeout((()=>{r(e.s,e.d)}),Math.floor(0))}))}put(e,t,n,r){this.putInternal("p",e,t,n,r)}merge(e,t,n,r){this.putInternal("m",e,t,n,r)}putInternal(e,t,n,r,i){this.initConnection_();const o={p:t,d:n};void 0!==i&&(o.h=i),this.outstandingPuts_.push({action:e,request:o,onComplete:r}),this.outstandingPutCount_++;const a=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(a):this.log_("Buffering put: "+t)}sendPut_(e){const t=this.outstandingPuts_[e].action,n=this.outstandingPuts_[e].request,r=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(t,n,(n=>{this.log_(t+" response",n),delete this.outstandingPuts_[e],this.outstandingPutCount_--,0===this.outstandingPutCount_&&(this.outstandingPuts_=[]),r&&r(n.s,n.d)}))}reportStats(e){if(this.connected_){const t={c:e};this.log_("reportStats",t),this.sendRequest("s",t,(e=>{if("ok"!==e.s){const t=e.d;this.log_("reportStats","Error sending stats: "+t)}}))}}onDataMessage_(e){if("r"in e){this.log_("from server: "+Ws(e));const t=e.r,n=this.requestCBHash_[t];n&&(delete this.requestCBHash_[t],n(e.b))}else{if("error"in e)throw"A server-side error has occurred: "+e.error;"a"in e&&this.onDataPush_(e.a,e.b)}}onDataPush_(e,t){this.log_("handleServerMessage",e,t),"d"===e?this.onDataUpdate_(t.p,t.d,!1,t.t):"m"===e?this.onDataUpdate_(t.p,t.d,!0,t.t):"c"===e?this.onListenRevoked_(t.p,t.q):"ac"===e?this.onAuthRevoked_(t.s,t.d):"apc"===e?this.onAppCheckRevoked_(t.s,t.d):"sd"===e?this.onSecurityDebugPacket_(t):gh("Unrecognized action received from server: "+Ws(e)+"\nAre you using the latest client?")}onReady_(e,t){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(e),this.lastSessionId=t,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)}scheduleConnect_(e){ys(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout((()=>{this.establishConnectionTimer_=null,this.establishConnection_()}),Math.floor(e))}initConnection_(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)}onVisible_(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible. Reducing delay."),this.reconnectDelay_=Cf,this.realtime_||this.scheduleConnect_(0)),this.visible_=e}onOnline_(e){e?(this.log_("Browser went online."),this.reconnectDelay_=Cf,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline. Killing connection."),this.realtime_&&this.realtime_.close())}onRealtimeDisconnect_(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){if(this.visible_){if(this.lastConnectionEstablishedTime_){(new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=Cf),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();const e=(new Date).getTime()-this.lastConnectionAttemptTime_;let t=Math.max(0,this.reconnectDelay_-e);t=Math.random()*t,this.log_("Trying to reconnect in "+t+"ms"),this.scheduleConnect_(t),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)}async establishConnection_(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;const e=this.onDataMessage_.bind(this),t=this.onReady_.bind(this),n=this.onRealtimeDisconnect_.bind(this),r=this.id+":"+kf.nextConnectionId_++,i=this.lastSessionId;let o=!1,a=null;const s=function(){a?a.close():(o=!0,n())},l=function(e){ys(a,"sendRequest call when we're not connected not allowed."),a.sendRequest(e)};this.realtime_={close:s,sendRequest:l};const c=this.forceTokenRefresh_;this.forceTokenRefresh_=!1;try{const[s,l]=await Promise.all([this.authTokenProvider_.getToken(c),this.appCheckTokenProvider_.getToken(c)]);o?fh("getToken() completed but was canceled"):(fh("getToken() completed. Creating connection."),this.authToken_=s&&s.accessToken,this.appCheckToken_=l&&l.token,a=new ef(r,this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,e,t,n,(e=>{bh(e+" ("+this.repoInfo_.toString()+")"),this.interrupt("server_kill")}),i))}catch(gh){this.log_("Failed to get token: "+gh),o||(this.repoInfo_.nodeAdmin&&bh(gh),s())}}}interrupt(e){fh("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())}resume(e){fh("Resuming connection for reason: "+e),delete this.interruptReasons_[e],Ks(this.interruptReasons_)&&(this.reconnectDelay_=Cf,this.realtime_||this.scheduleConnect_(0))}handleTimestamp_(e){const t=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:t})}cancelSentTransactions_(){for(let e=0;eCh(e))).join("$"):"default";const r=this.removeListen_(e,n);r&&r.onComplete&&r.onComplete("permission_denied")}removeListen_(e,t){const n=new sf(e).toString();let r;if(this.listens.has(n)){const e=this.listens.get(n);r=e.get(t),e.delete(t),0===e.size&&this.listens.delete(n)}else r=void 0;return r}onAuthRevoked_(e,t){fh("Auth token revoked: "+e+"/"+t),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))}onAppCheckRevoked_(e,t){fh("App check token revoked: "+e+"/"+t),this.appCheckToken_=null,this.forceTokenRefresh_=!0,"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=3&&this.appCheckTokenProvider_.notifyForInvalidToken())}onSecurityDebugPacket_(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e.msg.replace("\n","\nFIREBASE: "))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of this.listens.values())for(const t of e.values())this.sendListen_(t);for(let e=0;e4&&void 0!==arguments[4]?arguments[4]:null;this.isReverse_=r,this.resultGenerator_=i,this.nodeStack_=[];let o=1;for(;!e.isEmpty();)if(o=t?n(e.key,t):1,r&&(o*=-1),o<0)e=this.isReverse_?e.left:e.right;else{if(0===o){this.nodeStack_.push(e);break}this.nodeStack_.push(e),e=this.isReverse_?e.right:e.left}}getNext(){if(0===this.nodeStack_.length)return null;let e,t=this.nodeStack_.pop();if(e=this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value},this.isReverse_)for(t=t.left;!t.isEmpty();)this.nodeStack_.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack_.push(t),t=t.left;return e}hasNext(){return this.nodeStack_.length>0}peek(){if(0===this.nodeStack_.length)return null;const e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}}}class Lf{constructor(e,t,n,r,i){this.key=e,this.value=t,this.color=null!=n?n:Lf.RED,this.left=null!=r?r:Rf.EMPTY_NODE,this.right=null!=i?i:Rf.EMPTY_NODE}copy(e,t,n,r,i){return new Lf(null!=e?e:this.key,null!=t?t:this.value,null!=n?n:this.color,null!=r?r:this.left,null!=i?i:this.right)}count(){return this.left.count()+1+this.right.count()}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||!!e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min_(){return this.left.isEmpty()?this:this.left.min_()}minKey(){return this.min_().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,n){let r=this;const i=n(e,r.key);return r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n)),r.fixUp_()}removeMin_(){if(this.left.isEmpty())return Rf.EMPTY_NODE;let e=this;return e.left.isRed_()||e.left.left.isRed_()||(e=e.moveRedLeft_()),e=e.copy(null,null,null,e.left.removeMin_(),null),e.fixUp_()}remove(e,t){let n,r;if(n=this,t(e,n.key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===t(e,n.key)){if(n.right.isEmpty())return Rf.EMPTY_NODE;r=n.right.min_(),n=n.copy(r.key,r.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp_()}isRed_(){return this.color}fixUp_(){let e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e}moveRedLeft_(){let e=this.colorFlip_();return e.right.left.isRed_()&&(e=e.copy(null,null,null,null,e.right.rotateRight_()),e=e.rotateLeft_(),e=e.colorFlip_()),e}moveRedRight_(){let e=this.colorFlip_();return e.left.left.isRed_()&&(e=e.rotateRight_(),e=e.colorFlip_()),e}rotateLeft_(){const e=this.copy(null,null,Lf.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight_(){const e=this.copy(null,null,Lf.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip_(){const e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth_(){const e=this.check_();return Math.pow(2,e)<=this.count()+1}check_(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");const e=this.left.check_();if(e!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)}}Lf.RED=!0,Lf.BLACK=!1;class Rf{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rf.EMPTY_NODE;this.comparator_=e,this.root_=t}insert(e,t){return new Rf(this.comparator_,this.root_.insert(e,t,this.comparator_).copy(null,null,Lf.BLACK,null,null))}remove(e){return new Rf(this.comparator_,this.root_.remove(e,this.comparator_).copy(null,null,Lf.BLACK,null,null))}get(e){let t,n=this.root_;for(;!n.isEmpty();){if(t=this.comparator_(e,n.key),0===t)return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null}getPredecessorKey(e){let t,n=this.root_,r=null;for(;!n.isEmpty();){if(t=this.comparator_(e,n.key),0===t){if(n.left.isEmpty())return r?r.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}t<0?n=n.left:t>0&&(r=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")}isEmpty(){return this.root_.isEmpty()}count(){return this.root_.count()}minKey(){return this.root_.minKey()}maxKey(){return this.root_.maxKey()}inorderTraversal(e){return this.root_.inorderTraversal(e)}reverseTraversal(e){return this.root_.reverseTraversal(e)}getIterator(e){return new If(this.root_,null,this.comparator_,!1,e)}getIteratorFrom(e,t){return new If(this.root_,e,this.comparator_,!1,t)}getReverseIteratorFrom(e,t){return new If(this.root_,e,this.comparator_,!0,t)}getReverseIterator(e){return new If(this.root_,null,this.comparator_,!0,e)}}function Nf(e,t){return wh(e.name,t.name)}function Df(e,t){return wh(e,t)}let Mf;Rf.EMPTY_NODE=new class{copy(e,t,n,r,i){return this}insert(e,t,n){return new Lf(e,t,null)}remove(e,t){return this}count(){return 0}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}check_(){return 0}isRed_(){return!1}};const Bf=function(e){return"number"===typeof e?"number:"+Oh(e):"string:"+e},Qf=function(e){if(e.isLeafNode()){const t=e.val();ys("string"===typeof t||"number"===typeof t||"object"===typeof t&&Vs(t,".sv"),"Priority must be a string or number.")}else ys(e===Mf||e.isEmpty(),"priority of unexpected type.");ys(e===Mf||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")};let Uf,Ff,zf;class qf{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qf.__childrenNodeConstructor.EMPTY_NODE;this.value_=e,this.priorityNode_=t,this.lazyHash_=null,ys(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),Qf(this.priorityNode_)}static set __childrenNodeConstructor(e){Uf=e}static get __childrenNodeConstructor(){return Uf}isLeafNode(){return!0}getPriority(){return this.priorityNode_}updatePriority(e){return new qf(this.value_,e)}getImmediateChild(e){return".priority"===e?this.priorityNode_:qf.__childrenNodeConstructor.EMPTY_NODE}getChild(e){return gf(e)?this:".priority"===cf(e)?this.priorityNode_:qf.__childrenNodeConstructor.EMPTY_NODE}hasChild(){return!1}getPredecessorChildName(e,t){return null}updateImmediateChild(e,t){return".priority"===e?this.updatePriority(t):t.isEmpty()&&".priority"!==e?this:qf.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(e,t).updatePriority(this.priorityNode_)}updateChild(e,t){const n=cf(e);return null===n?t:t.isEmpty()&&".priority"!==n?this:(ys(".priority"!==n||1===uf(e),".priority must be the last token in a path"),this.updateImmediateChild(n,qf.__childrenNodeConstructor.EMPTY_NODE.updateChild(df(e),t)))}isEmpty(){return!1}numChildren(){return 0}forEachChild(e,t){return!1}val(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()}hash(){if(null===this.lazyHash_){let e="";this.priorityNode_.isEmpty()||(e+="priority:"+Bf(this.priorityNode_.val())+":");const t=typeof this.value_;e+=t+":",e+="number"===t?Oh(this.value_):this.value_,this.lazyHash_=ch(e)}return this.lazyHash_}getValue(){return this.value_}compareTo(e){return e===qf.__childrenNodeConstructor.EMPTY_NODE?1:e instanceof qf.__childrenNodeConstructor?-1:(ys(e.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(e))}compareToLeafNode_(e){const t=typeof e.value_,n=typeof this.value_,r=qf.VALUE_TYPE_ORDER.indexOf(t),i=qf.VALUE_TYPE_ORDER.indexOf(n);return ys(r>=0,"Unknown leaf type: "+t),ys(i>=0,"Unknown leaf type: "+n),r===i?"object"===n?0:this.value_{const i=$s(this.indexSet_,r);if(ys(i,"Missing index implementation for "+r),n===Kf){if(i.isDefinedOn(e.node)){const n=[],r=t.getIterator(Sf.Wrap);let o=r.getNext();for(;o;)o.name!==e.name&&n.push(o),o=r.getNext();return n.push(e),Vf(n,i.getCompare())}return Kf}{const r=t.get(e.name);let i=n;return r&&(i=i.remove(new Sf(e.name,r))),i.insert(e,e.node)}}));return new Yf(n,this.indexSet_)}removeFromIndexes(e,t){const n=Ys(this.indexes_,(n=>{if(n===Kf)return n;{const r=t.get(e.name);return r?n.remove(new Sf(e.name,r)):n}}));return new Yf(n,this.indexSet_)}}let Zf;class Jf{constructor(e,t,n){this.children_=e,this.priorityNode_=t,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&Qf(this.priorityNode_),this.children_.isEmpty()&&ys(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}static get EMPTY_NODE(){return Zf||(Zf=new Jf(new Rf(Df),null,Yf.Default))}isLeafNode(){return!1}getPriority(){return this.priorityNode_||Zf}updatePriority(e){return this.children_.isEmpty()?this:new Jf(this.children_,e,this.indexMap_)}getImmediateChild(e){if(".priority"===e)return this.getPriority();{const t=this.children_.get(e);return null===t?Zf:t}}getChild(e){const t=cf(e);return null===t?this:this.getImmediateChild(t).getChild(df(e))}hasChild(e){return null!==this.children_.get(e)}updateImmediateChild(e,t){if(ys(t,"We should always be passing snapshot nodes"),".priority"===e)return this.updatePriority(t);{const n=new Sf(e,t);let r,i;t.isEmpty()?(r=this.children_.remove(e),i=this.indexMap_.removeFromIndexes(n,this.children_)):(r=this.children_.insert(e,t),i=this.indexMap_.addToIndexes(n,this.children_));const o=r.isEmpty()?Zf:this.priorityNode_;return new Jf(r,o,i)}}updateChild(e,t){const n=cf(e);if(null===n)return t;{ys(".priority"!==cf(e)||1===uf(e),".priority must be the last token in a path");const r=this.getImmediateChild(n).updateChild(df(e),t);return this.updateImmediateChild(n,r)}}isEmpty(){return this.children_.isEmpty()}numChildren(){return this.children_.count()}val(e){if(this.isEmpty())return null;const t={};let n=0,r=0,i=!0;if(this.forEachChild(Hf,((o,a)=>{t[o]=a.val(e),n++,i&&Jf.INTEGER_REGEXP_.test(o)?r=Math.max(r,Number(o)):i=!1})),!e&&i&&r<2*n){const e=[];for(const n in t)e[n]=t[n];return e}return e&&!this.getPriority().isEmpty()&&(t[".priority"]=this.getPriority().val()),t}hash(){if(null===this.lazyHash_){let e="";this.getPriority().isEmpty()||(e+="priority:"+Bf(this.getPriority().val())+":"),this.forEachChild(Hf,((t,n)=>{const r=n.hash();""!==r&&(e+=":"+t+":"+r)})),this.lazyHash_=""===e?"":ch(e)}return this.lazyHash_}getPredecessorChildName(e,t,n){const r=this.resolveIndex_(n);if(r){const n=r.getPredecessorKey(new Sf(e,t));return n?n.name:null}return this.children_.getPredecessorKey(e)}getFirstChildName(e){const t=this.resolveIndex_(e);if(t){const e=t.minKey();return e&&e.name}return this.children_.minKey()}getFirstChild(e){const t=this.getFirstChildName(e);return t?new Sf(t,this.children_.get(t)):null}getLastChildName(e){const t=this.resolveIndex_(e);if(t){const e=t.maxKey();return e&&e.name}return this.children_.maxKey()}getLastChild(e){const t=this.getLastChildName(e);return t?new Sf(t,this.children_.get(t)):null}forEachChild(e,t){const n=this.resolveIndex_(e);return n?n.inorderTraversal((e=>t(e.name,e.node))):this.children_.inorderTraversal(t)}getIterator(e){return this.getIteratorFrom(e.minPost(),e)}getIteratorFrom(e,t){const n=this.resolveIndex_(t);if(n)return n.getIteratorFrom(e,(e=>e));{const n=this.children_.getIteratorFrom(e.name,Sf.Wrap);let r=n.peek();for(;null!=r&&t.compare(r,e)<0;)n.getNext(),r=n.peek();return n}}getReverseIterator(e){return this.getReverseIteratorFrom(e.maxPost(),e)}getReverseIteratorFrom(e,t){const n=this.resolveIndex_(t);if(n)return n.getReverseIteratorFrom(e,(e=>e));{const n=this.children_.getReverseIteratorFrom(e.name,Sf.Wrap);let r=n.peek();for(;null!=r&&t.compare(r,e)>0;)n.getNext(),r=n.peek();return n}}compareTo(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===Xf?-1:0}withIndex(e){if(e===Pf||this.indexMap_.hasIndex(e))return this;{const t=this.indexMap_.addIndex(e,this.children_);return new Jf(this.children_,this.priorityNode_,t)}}isIndexed(e){return e===Pf||this.indexMap_.hasIndex(e)}equals(e){if(e===this)return!0;if(e.isLeafNode())return!1;{const t=e;if(this.getPriority().equals(t.getPriority())){if(this.children_.count()===t.children_.count()){const e=this.getIterator(Hf),n=t.getIterator(Hf);let r=e.getNext(),i=n.getNext();for(;r&&i;){if(r.name!==i.name||!r.node.equals(i.node))return!1;r=e.getNext(),i=n.getNext()}return null===r&&null===i}return!1}return!1}}resolveIndex_(e){return e===Pf?null:this.indexMap_.get(e.toString())}}Jf.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/;const Xf=new class extends Jf{constructor(){super(new Rf(Df),Jf.EMPTY_NODE,Yf.Default)}compareTo(e){return e===this?0:1}equals(e){return e===this}getPriority(){return this}getImmediateChild(e){return Jf.EMPTY_NODE}isEmpty(){return!1}};Object.defineProperties(Sf,{MIN:{value:new Sf(_h,Jf.EMPTY_NODE)},MAX:{value:new Sf(xh,Xf)}}),jf.__EMPTY_NODE=Jf.EMPTY_NODE,qf.__childrenNodeConstructor=Jf,Mf=Xf,function(e){zf=e}(Xf);const em=!0;function tm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null===e)return Jf.EMPTY_NODE;if("object"===typeof e&&".priority"in e&&(t=e[".priority"]),ys(null===t||"string"===typeof t||"number"===typeof t||"object"===typeof t&&".sv"in t,"Invalid priority type found: "+typeof t),"object"===typeof e&&".value"in e&&null!==e[".value"]&&(e=e[".value"]),"object"!==typeof e||".sv"in e){return new qf(e,tm(t))}if(e instanceof Array||!em){let n=Jf.EMPTY_NODE;return Sh(e,((t,r)=>{if(Vs(e,t)&&"."!==t.substring(0,1)){const e=tm(r);!e.isLeafNode()&&e.isEmpty()||(n=n.updateImmediateChild(t,e))}})),n.updatePriority(tm(t))}{const n=[];let r=!1;if(Sh(e,((e,t)=>{if("."!==e.substring(0,1)){const i=tm(t);i.isEmpty()||(r=r||!i.getPriority().isEmpty(),n.push(new Sf(e,i)))}})),0===n.length)return Jf.EMPTY_NODE;const i=Vf(n,Nf,(e=>e.name),Df);if(r){const e=Vf(n,Hf.getCompare());return new Jf(i,tm(t),new Yf({".priority":e},{".priority":Hf}))}return new Jf(i,tm(t),Yf.Default)}}!function(e){Ff=e}(tm);class nm extends Of{constructor(e){super(),this.indexPath_=e,ys(!gf(e)&&".priority"!==cf(e),"Can't create PathIndex with empty path or .priority key")}extractChild(e){return e.getChild(this.indexPath_)}isDefinedOn(e){return!e.getChild(this.indexPath_).isEmpty()}compare(e,t){const n=this.extractChild(e.node),r=this.extractChild(t.node),i=n.compareTo(r);return 0===i?wh(e.name,t.name):i}makePost(e,t){const n=tm(e),r=Jf.EMPTY_NODE.updateChild(this.indexPath_,n);return new Sf(t,r)}maxPost(){const e=Jf.EMPTY_NODE.updateChild(this.indexPath_,Xf);return new Sf(xh,e)}toString(){return hf(this.indexPath_,0).join("/")}}const rm=new class extends Of{compare(e,t){const n=e.node.compareTo(t.node);return 0===n?wh(e.name,t.name):n}isDefinedOn(e){return!0}indexedValueChanged(e,t){return!e.equals(t)}minPost(){return Sf.MIN}maxPost(){return Sf.MAX}makePost(e,t){const n=tm(e);return new Sf(t,n)}toString(){return".value"}};function im(e){return{type:"value",snapshotNode:e}}function om(e,t){return{type:"child_added",snapshotNode:t,childName:e}}function am(e,t){return{type:"child_removed",snapshotNode:t,childName:e}}function sm(e,t,n){return{type:"child_changed",snapshotNode:t,childName:e,oldSnap:n}}class lm{constructor(e){this.index_=e}updateChild(e,t,n,r,i,o){ys(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");const a=e.getImmediateChild(t);return a.getChild(r).equals(n.getChild(r))&&a.isEmpty()===n.isEmpty()?e:(null!=o&&(n.isEmpty()?e.hasChild(t)?o.trackChildChange(am(t,a)):ys(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):a.isEmpty()?o.trackChildChange(om(t,n)):o.trackChildChange(sm(t,n,a))),e.isLeafNode()&&n.isEmpty()?e:e.updateImmediateChild(t,n).withIndex(this.index_))}updateFullNode(e,t,n){return null!=n&&(e.isLeafNode()||e.forEachChild(Hf,((e,r)=>{t.hasChild(e)||n.trackChildChange(am(e,r))})),t.isLeafNode()||t.forEachChild(Hf,((t,r)=>{if(e.hasChild(t)){const i=e.getImmediateChild(t);i.equals(r)||n.trackChildChange(sm(t,r,i))}else n.trackChildChange(om(t,r))}))),t.withIndex(this.index_)}updatePriority(e,t){return e.isEmpty()?Jf.EMPTY_NODE:e.updatePriority(t)}filtersNodes(){return!1}getIndexedFilter(){return this}getIndex(){return this.index_}}class cm{constructor(e){this.indexedFilter_=new lm(e.getIndex()),this.index_=e.getIndex(),this.startPost_=cm.getStartPost_(e),this.endPost_=cm.getEndPost_(e),this.startIsInclusive_=!e.startAfterSet_,this.endIsInclusive_=!e.endBeforeSet_}getStartPost(){return this.startPost_}getEndPost(){return this.endPost_}matches(e){const t=this.startIsInclusive_?this.index_.compare(this.getStartPost(),e)<=0:this.index_.compare(this.getStartPost(),e)<0,n=this.endIsInclusive_?this.index_.compare(e,this.getEndPost())<=0:this.index_.compare(e,this.getEndPost())<0;return t&&n}updateChild(e,t,n,r,i,o){return this.matches(new Sf(t,n))||(n=Jf.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,n,r,i,o)}updateFullNode(e,t,n){t.isLeafNode()&&(t=Jf.EMPTY_NODE);let r=t.withIndex(this.index_);r=r.updatePriority(Jf.EMPTY_NODE);const i=this;return t.forEachChild(Hf,((e,t)=>{i.matches(new Sf(e,t))||(r=r.updateImmediateChild(e,Jf.EMPTY_NODE))})),this.indexedFilter_.updateFullNode(e,r,n)}updatePriority(e,t){return e}filtersNodes(){return!0}getIndexedFilter(){return this.indexedFilter_}getIndex(){return this.index_}static getStartPost_(e){if(e.hasStart()){const t=e.getIndexStartName();return e.getIndex().makePost(e.getIndexStartValue(),t)}return e.getIndex().minPost()}static getEndPost_(e){if(e.hasEnd()){const t=e.getIndexEndName();return e.getIndex().makePost(e.getIndexEndValue(),t)}return e.getIndex().maxPost()}}class um{constructor(e){this.withinDirectionalStart=e=>this.reverse_?this.withinEndPost(e):this.withinStartPost(e),this.withinDirectionalEnd=e=>this.reverse_?this.withinStartPost(e):this.withinEndPost(e),this.withinStartPost=e=>{const t=this.index_.compare(this.rangedFilter_.getStartPost(),e);return this.startIsInclusive_?t<=0:t<0},this.withinEndPost=e=>{const t=this.index_.compare(e,this.rangedFilter_.getEndPost());return this.endIsInclusive_?t<=0:t<0},this.rangedFilter_=new cm(e),this.index_=e.getIndex(),this.limit_=e.getLimit(),this.reverse_=!e.isViewFromLeft(),this.startIsInclusive_=!e.startAfterSet_,this.endIsInclusive_=!e.endBeforeSet_}updateChild(e,t,n,r,i,o){return this.rangedFilter_.matches(new Sf(t,n))||(n=Jf.EMPTY_NODE),e.getImmediateChild(t).equals(n)?e:e.numChildren()e(n,t)}else o=this.index_.getCompare();const a=e;ys(a.numChildren()===this.limit_,"");const s=new Sf(t,n),l=this.reverse_?a.getFirstChild(this.index_):a.getLastChild(this.index_),c=this.rangedFilter_.matches(s);if(a.hasChild(t)){const e=a.getImmediateChild(t);let u=r.getChildAfterChild(this.index_,l,this.reverse_);for(;null!=u&&(u.name===t||a.hasChild(u.name));)u=r.getChildAfterChild(this.index_,u,this.reverse_);const d=null==u?1:o(u,s);if(c&&!n.isEmpty()&&d>=0)return null!=i&&i.trackChildChange(sm(t,n,e)),a.updateImmediateChild(t,n);{null!=i&&i.trackChildChange(am(t,e));const n=a.updateImmediateChild(t,Jf.EMPTY_NODE);return null!=u&&this.rangedFilter_.matches(u)?(null!=i&&i.trackChildChange(om(u.name,u.node)),n.updateImmediateChild(u.name,u.node)):n}}return n.isEmpty()?e:c&&o(l,s)>=0?(null!=i&&(i.trackChildChange(am(l.name,l.node)),i.trackChildChange(om(t,n))),a.updateImmediateChild(t,n).updateImmediateChild(l.name,Jf.EMPTY_NODE)):e}}class dm{constructor(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=Hf}hasStart(){return this.startSet_}isViewFromLeft(){return""===this.viewFrom_?this.startSet_:"l"===this.viewFrom_}getIndexStartValue(){return ys(this.startSet_,"Only valid if start has been set"),this.indexStartValue_}getIndexStartName(){return ys(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:_h}hasEnd(){return this.endSet_}getIndexEndValue(){return ys(this.endSet_,"Only valid if end has been set"),this.indexEndValue_}getIndexEndName(){return ys(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:xh}hasLimit(){return this.limitSet_}hasAnchoredLimit(){return this.limitSet_&&""!==this.viewFrom_}getLimit(){return ys(this.limitSet_,"Only valid if limit has been set"),this.limit_}getIndex(){return this.index_}loadsAllData(){return!(this.startSet_||this.endSet_||this.limitSet_)}isDefault(){return this.loadsAllData()&&this.index_===Hf}copy(){const e=new dm;return e.limitSet_=this.limitSet_,e.limit_=this.limit_,e.startSet_=this.startSet_,e.startAfterSet_=this.startAfterSet_,e.indexStartValue_=this.indexStartValue_,e.startNameSet_=this.startNameSet_,e.indexStartName_=this.indexStartName_,e.endSet_=this.endSet_,e.endBeforeSet_=this.endBeforeSet_,e.indexEndValue_=this.indexEndValue_,e.endNameSet_=this.endNameSet_,e.indexEndName_=this.indexEndName_,e.index_=this.index_,e.viewFrom_=this.viewFrom_,e}}function pm(e){const t={};if(e.isDefault())return t;let n;if(e.index_===Hf?n="$priority":e.index_===rm?n="$value":e.index_===Pf?n="$key":(ys(e.index_ instanceof nm,"Unrecognized index type!"),n=e.index_.toString()),t.orderBy=Ws(n),e.startSet_){const n=e.startAfterSet_?"startAfter":"startAt";t[n]=Ws(e.indexStartValue_),e.startNameSet_&&(t[n]+=","+Ws(e.indexStartName_))}if(e.endSet_){const n=e.endBeforeSet_?"endBefore":"endAt";t[n]=Ws(e.indexEndValue_),e.endNameSet_&&(t[n]+=","+Ws(e.indexEndName_))}return e.limitSet_&&(e.isViewFromLeft()?t.limitToFirst=e.limit_:t.limitToLast=e.limit_),t}function hm(e){const t={};if(e.startSet_&&(t.sp=e.indexStartValue_,e.startNameSet_&&(t.sn=e.indexStartName_),t.sin=!e.startAfterSet_),e.endSet_&&(t.ep=e.indexEndValue_,e.endNameSet_&&(t.en=e.indexEndName_),t.ein=!e.endBeforeSet_),e.limitSet_){t.l=e.limit_;let n=e.viewFrom_;""===n&&(n=e.isViewFromLeft()?"l":"r"),t.vf=n}return e.index_!==Hf&&(t.i=e.index_.toString()),t}class fm extends tf{constructor(e,t,n,r){super(),this.repoInfo_=e,this.onDataUpdate_=t,this.authTokenProvider_=n,this.appCheckTokenProvider_=r,this.log_=mh("p:rest:"),this.listens_={}}reportStats(e){throw new Error("Method not implemented.")}static getListenId_(e,t){return void 0!==t?"tag$"+t:(ys(e._queryParams.isDefault(),"should have a tag if it's not a default query."),e._path.toString())}listen(e,t,n,r){const i=e._path.toString();this.log_("Listen called for "+i+" "+e._queryIdentifier);const o=fm.getListenId_(e,n),a={};this.listens_[o]=a;const s=pm(e._queryParams);this.restRequest_(i+".json",s,((e,t)=>{let s=t;if(404===e&&(s=null,e=null),null===e&&this.onDataUpdate_(i,s,!1,n),$s(this.listens_,o)===a){let t;t=e?401===e?"permission_denied":"rest_error:"+e:"ok",r(t,null)}}))}unlisten(e,t){const n=fm.getListenId_(e,t);delete this.listens_[n]}get(e){const t=pm(e._queryParams),n=e._path.toString(),r=new Ds;return this.restRequest_(n+".json",t,((e,t)=>{let i=t;404===e&&(i=null,e=null),null===e?(this.onDataUpdate_(n,i,!1,null),r.resolve(i)):r.reject(new Error(i))})),r.promise}refreshAuthToken(e){}restRequest_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return t.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then((r=>{let[i,o]=r;i&&i.accessToken&&(t.auth=i.accessToken),o&&o.token&&(t.ac=o.token);const a=(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host+e+"?ns="+this.repoInfo_.namespace+Xs(t);this.log_("Sending REST request for "+a);const s=new XMLHttpRequest;s.onreadystatechange=()=>{if(n&&4===s.readyState){this.log_("REST Response for "+a+" received. status:",s.status,"response:",s.responseText);let t=null;if(s.status>=200&&s.status<300){try{t=Hs(s.responseText)}catch(e){bh("Failed to parse JSON response for "+a+": "+s.responseText)}n(null,t)}else 401!==s.status&&404!==s.status&&bh("Got unsuccessful REST response for "+a+" Status: "+s.status),n(s.status);n=null}},s.open("GET",a,!0),s.send()}))}}class mm{constructor(){this.rootNode_=Jf.EMPTY_NODE}getNode(e){return this.rootNode_.getChild(e)}updateSnapshot(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)}}function gm(){return{value:null,children:new Map}}function vm(e,t,n){if(gf(t))e.value=n,e.children.clear();else if(null!==e.value)e.value=e.value.updateChild(t,n);else{const r=cf(t);e.children.has(r)||e.children.set(r,gm());vm(e.children.get(r),t=df(t),n)}}function bm(e,t,n){null!==e.value?n(t,e.value):function(e,t){e.children.forEach(((e,n)=>{t(n,e)}))}(e,((e,r)=>{bm(r,new sf(t.toString()+"/"+e),n)}))}class ym{constructor(e){this.collection_=e,this.last_=null}get(){const e=this.collection_.get(),t=Object.assign({},e);return this.last_&&Sh(this.last_,((e,n)=>{t[e]=t[e]-n})),this.last_=e,t}}class _m{constructor(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new ym(e);const n=1e4+2e4*Math.random();Ih(this.reportStats_.bind(this),Math.floor(n))}reportStats_(){const e=this.statsListener_.get(),t={};let n=!1;Sh(e,((e,r)=>{r>0&&Vs(this.statsToReport_,e)&&(t[e]=r,n=!0)})),n&&this.server_.reportStats(t),Ih(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))}}var xm;function wm(e){return{fromUser:!1,fromServer:!0,queryId:e,tagged:!0}}!function(e){e[e.OVERWRITE=0]="OVERWRITE",e[e.MERGE=1]="MERGE",e[e.ACK_USER_WRITE=2]="ACK_USER_WRITE",e[e.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"}(xm||(xm={}));class Em{constructor(e,t,n){this.path=e,this.affectedTree=t,this.revert=n,this.type=xm.ACK_USER_WRITE,this.source={fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}operationForChild(e){if(gf(this.path)){if(null!=this.affectedTree.value)return ys(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;{const t=this.affectedTree.subtree(new sf(e));return new Em(lf(),t,this.revert)}}return ys(cf(this.path)===e,"operationForChild called for unrelated child."),new Em(df(this.path),this.affectedTree,this.revert)}}class Tm{constructor(e,t){this.source=e,this.path=t,this.type=xm.LISTEN_COMPLETE}operationForChild(e){return gf(this.path)?new Tm(this.source,lf()):new Tm(this.source,df(this.path))}}class Cm{constructor(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=xm.OVERWRITE}operationForChild(e){return gf(this.path)?new Cm(this.source,lf(),this.snap.getImmediateChild(e)):new Cm(this.source,df(this.path),this.snap)}}class km{constructor(e,t,n){this.source=e,this.path=t,this.children=n,this.type=xm.MERGE}operationForChild(e){if(gf(this.path)){const t=this.children.subtree(new sf(e));return t.isEmpty()?null:t.value?new Cm(this.source,lf(),t.value):new km(this.source,lf(),t)}return ys(cf(this.path)===e,"Can't get a merge for a child not on the path of the operation"),new km(this.source,df(this.path),this.children)}toString(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"}}class Sm{constructor(e,t,n){this.node_=e,this.fullyInitialized_=t,this.filtered_=n}isFullyInitialized(){return this.fullyInitialized_}isFiltered(){return this.filtered_}isCompleteForPath(e){if(gf(e))return this.isFullyInitialized()&&!this.filtered_;const t=cf(e);return this.isCompleteForChild(t)}isCompleteForChild(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)}getNode(){return this.node_}}class Om{constructor(e){this.query_=e,this.index_=this.query_._queryParams.getIndex()}}function Am(e,t,n,r,i,o){const a=r.filter((e=>e.type===n));a.sort(((t,n)=>function(e,t,n){if(null==t.childName||null==n.childName)throw _s("Should only compare child_ events.");const r=new Sf(t.childName,t.snapshotNode),i=new Sf(n.childName,n.snapshotNode);return e.index_.compare(r,i)}(e,t,n))),a.forEach((n=>{const r=function(e,t,n){return"value"===t.type||"child_removed"===t.type||(t.prevName=n.getPredecessorChildName(t.childName,t.snapshotNode,e.index_)),t}(e,n,o);i.forEach((i=>{i.respondsTo(n.type)&&t.push(i.createEvent(r,e.query_))}))}))}function jm(e,t){return{eventCache:e,serverCache:t}}function Pm(e,t,n,r){return jm(new Sm(t,n,r),e.serverCache)}function Im(e,t,n,r){return jm(e.eventCache,new Sm(t,n,r))}function Lm(e){return e.eventCache.isFullyInitialized()?e.eventCache.getNode():null}function Rm(e){return e.serverCache.isFullyInitialized()?e.serverCache.getNode():null}let Nm;class Dm{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Nm||(Nm=new Rf(Eh)),Nm);this.value=e,this.children=t}static fromObject(e){let t=new Dm(null);return Sh(e,((e,n)=>{t=t.set(new sf(e),n)})),t}isEmpty(){return null===this.value&&this.children.isEmpty()}findRootMostMatchingPathAndValue(e,t){if(null!=this.value&&t(this.value))return{path:lf(),value:this.value};if(gf(e))return null;{const n=cf(e),r=this.children.get(n);if(null!==r){const i=r.findRootMostMatchingPathAndValue(df(e),t);if(null!=i){return{path:mf(new sf(n),i.path),value:i.value}}return null}return null}}findRootMostValueAndPath(e){return this.findRootMostMatchingPathAndValue(e,(()=>!0))}subtree(e){if(gf(e))return this;{const t=cf(e),n=this.children.get(t);return null!==n?n.subtree(df(e)):new Dm(null)}}set(e,t){if(gf(e))return new Dm(t,this.children);{const n=cf(e),r=(this.children.get(n)||new Dm(null)).set(df(e),t),i=this.children.insert(n,r);return new Dm(this.value,i)}}remove(e){if(gf(e))return this.children.isEmpty()?new Dm(null):new Dm(null,this.children);{const t=cf(e),n=this.children.get(t);if(n){const r=n.remove(df(e));let i;return i=r.isEmpty()?this.children.remove(t):this.children.insert(t,r),null===this.value&&i.isEmpty()?new Dm(null):new Dm(this.value,i)}return this}}get(e){if(gf(e))return this.value;{const t=cf(e),n=this.children.get(t);return n?n.get(df(e)):null}}setTree(e,t){if(gf(e))return t;{const n=cf(e),r=(this.children.get(n)||new Dm(null)).setTree(df(e),t);let i;return i=r.isEmpty()?this.children.remove(n):this.children.insert(n,r),new Dm(this.value,i)}}fold(e){return this.fold_(lf(),e)}fold_(e,t){const n={};return this.children.inorderTraversal(((r,i)=>{n[r]=i.fold_(mf(e,r),t)})),t(e,this.value,n)}findOnPath(e,t){return this.findOnPath_(e,lf(),t)}findOnPath_(e,t,n){const r=!!this.value&&n(t,this.value);if(r)return r;if(gf(e))return null;{const r=cf(e),i=this.children.get(r);return i?i.findOnPath_(df(e),mf(t,r),n):null}}foreachOnPath(e,t){return this.foreachOnPath_(e,lf(),t)}foreachOnPath_(e,t,n){if(gf(e))return this;{this.value&&n(t,this.value);const r=cf(e),i=this.children.get(r);return i?i.foreachOnPath_(df(e),mf(t,r),n):new Dm(null)}}foreach(e){this.foreach_(lf(),e)}foreach_(e,t){this.children.inorderTraversal(((n,r)=>{r.foreach_(mf(e,n),t)})),this.value&&t(e,this.value)}foreachChild(e){this.children.inorderTraversal(((t,n)=>{n.value&&e(t,n.value)}))}}class Mm{constructor(e){this.writeTree_=e}static empty(){return new Mm(new Dm(null))}}function Bm(e,t,n){if(gf(t))return new Mm(new Dm(n));{const r=e.writeTree_.findRootMostValueAndPath(t);if(null!=r){const i=r.path;let o=r.value;const a=vf(i,t);return o=o.updateChild(a,n),new Mm(e.writeTree_.set(i,o))}{const r=new Dm(n),i=e.writeTree_.setTree(t,r);return new Mm(i)}}}function Qm(e,t,n){let r=e;return Sh(n,((e,n)=>{r=Bm(r,mf(t,e),n)})),r}function Um(e,t){if(gf(t))return Mm.empty();{const n=e.writeTree_.setTree(t,new Dm(null));return new Mm(n)}}function Fm(e,t){return null!=zm(e,t)}function zm(e,t){const n=e.writeTree_.findRootMostValueAndPath(t);return null!=n?e.writeTree_.get(n.path).getChild(vf(n.path,t)):null}function qm(e){const t=[],n=e.writeTree_.value;return null!=n?n.isLeafNode()||n.forEachChild(Hf,((e,n)=>{t.push(new Sf(e,n))})):e.writeTree_.children.inorderTraversal(((e,n)=>{null!=n.value&&t.push(new Sf(e,n.value))})),t}function Hm(e,t){if(gf(t))return e;{const n=zm(e,t);return new Mm(null!=n?new Dm(n):e.writeTree_.subtree(t))}}function Wm(e){return e.writeTree_.isEmpty()}function Gm(e,t){return Vm(lf(),e.writeTree_,t)}function Vm(e,t,n){if(null!=t.value)return n.updateChild(e,t.value);{let r=null;return t.children.inorderTraversal(((t,i)=>{".priority"===t?(ys(null!==i.value,"Priority writes must always be leaf nodes"),r=i.value):n=Vm(mf(e,t),i,n)})),n.getChild(e).isEmpty()||null===r||(n=n.updateChild(mf(e,".priority"),r)),n}}function $m(e,t){return sg(t,e)}function Km(e,t){const n=e.allWrites.findIndex((e=>e.writeId===t));ys(n>=0,"removeWrite called with nonexistent writeId.");const r=e.allWrites[n];e.allWrites.splice(n,1);let i=r.visible,o=!1,a=e.allWrites.length-1;for(;i&&a>=0;){const t=e.allWrites[a];t.visible&&(a>=n&&Ym(t,r.path)?i=!1:_f(r.path,t.path)&&(o=!0)),a--}if(i){if(o)return function(e){e.visibleWrites=Jm(e.allWrites,Zm,lf()),e.allWrites.length>0?e.lastWriteId=e.allWrites[e.allWrites.length-1].writeId:e.lastWriteId=-1}(e),!0;if(r.snap)e.visibleWrites=Um(e.visibleWrites,r.path);else{Sh(r.children,(t=>{e.visibleWrites=Um(e.visibleWrites,mf(r.path,t))}))}return!0}return!1}function Ym(e,t){if(e.snap)return _f(e.path,t);for(const n in e.children)if(e.children.hasOwnProperty(n)&&_f(mf(e.path,n),t))return!0;return!1}function Zm(e){return e.visible}function Jm(e,t,n){let r=Mm.empty();for(let i=0;i{r=r.updateImmediateChild(e,t)})),r;if(n){const i=Hm(e.visibleWrites,t);return n.forEachChild(Hf,((e,t)=>{const n=Gm(Hm(i,new sf(e)),t);r=r.updateImmediateChild(e,n)})),qm(i).forEach((e=>{r=r.updateImmediateChild(e.name,e.node)})),r}return qm(Hm(e.visibleWrites,t)).forEach((e=>{r=r.updateImmediateChild(e.name,e.node)})),r}(e.writeTree,e.treePath,t)}function ng(e,t,n,r){return function(e,t,n,r,i){ys(r||i,"Either existingEventSnap or existingServerSnap must exist");const o=mf(t,n);if(Fm(e.visibleWrites,o))return null;{const t=Hm(e.visibleWrites,o);return Wm(t)?i.getChild(n):Gm(t,i.getChild(n))}}(e.writeTree,e.treePath,t,n,r)}function rg(e,t){return function(e,t){return zm(e.visibleWrites,t)}(e.writeTree,mf(e.treePath,t))}function ig(e,t,n,r,i,o){return function(e,t,n,r,i,o,a){let s;const l=Hm(e.visibleWrites,t),c=zm(l,lf());if(null!=c)s=c;else{if(null==n)return[];s=Gm(l,n)}if(s=s.withIndex(a),s.isEmpty()||s.isLeafNode())return[];{const e=[],t=a.getCompare(),n=o?s.getReverseIteratorFrom(r,a):s.getIteratorFrom(r,a);let l=n.getNext();for(;l&&e.length2&&void 0!==arguments[2]?arguments[2]:null;this.writes_=e,this.viewCache_=t,this.optCompleteServerCache_=n}getCompleteChild(e){const t=this.viewCache_.eventCache;if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);{const t=null!=this.optCompleteServerCache_?new Sm(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return og(this.writes_,e,t)}}getChildAfterChild(e,t,n){const r=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:Rm(this.viewCache_),i=ig(this.writes_,r,t,1,n,e);return 0===i.length?null:i[0]}}function dg(e,t,n,r,i){const o=new lg;let a,s;if(n.type===xm.OVERWRITE){const l=n;l.source.fromUser?a=fg(e,t,l.path,l.snap,r,i,o):(ys(l.source.fromServer,"Unknown source."),s=l.source.tagged||t.serverCache.isFiltered()&&!gf(l.path),a=hg(e,t,l.path,l.snap,r,i,s,o))}else if(n.type===xm.MERGE){const l=n;l.source.fromUser?a=function(e,t,n,r,i,o,a){let s=t;return r.foreach(((r,l)=>{const c=mf(n,r);mg(t,cf(c))&&(s=fg(e,s,c,l,i,o,a))})),r.foreach(((r,l)=>{const c=mf(n,r);mg(t,cf(c))||(s=fg(e,s,c,l,i,o,a))})),s}(e,t,l.path,l.children,r,i,o):(ys(l.source.fromServer,"Unknown source."),s=l.source.tagged||t.serverCache.isFiltered(),a=vg(e,t,l.path,l.children,r,i,s,o))}else if(n.type===xm.ACK_USER_WRITE){const s=n;a=s.revert?function(e,t,n,r,i,o){let a;if(null!=rg(r,n))return t;{const s=new ug(r,t,i),l=t.eventCache.getNode();let c;if(gf(n)||".priority"===cf(n)){let n;if(t.serverCache.isFullyInitialized())n=eg(r,Rm(t));else{const e=t.serverCache.getNode();ys(e instanceof Jf,"serverChildren would be complete if leaf node"),n=tg(r,e)}c=e.filter.updateFullNode(l,n,o)}else{const i=cf(n);let u=og(r,i,t.serverCache);null==u&&t.serverCache.isCompleteForChild(i)&&(u=l.getImmediateChild(i)),c=null!=u?e.filter.updateChild(l,i,u,df(n),s,o):t.eventCache.getNode().hasChild(i)?e.filter.updateChild(l,i,Jf.EMPTY_NODE,df(n),s,o):l,c.isEmpty()&&t.serverCache.isFullyInitialized()&&(a=eg(r,Rm(t)),a.isLeafNode()&&(c=e.filter.updateFullNode(c,a,o)))}return a=t.serverCache.isFullyInitialized()||null!=rg(r,lf()),Pm(t,c,a,e.filter.filtersNodes())}}(e,t,s.path,r,i,o):function(e,t,n,r,i,o,a){if(null!=rg(i,n))return t;const s=t.serverCache.isFiltered(),l=t.serverCache;if(null!=r.value){if(gf(n)&&l.isFullyInitialized()||l.isCompleteForPath(n))return hg(e,t,n,l.getNode().getChild(n),i,o,s,a);if(gf(n)){let r=new Dm(null);return l.getNode().forEachChild(Pf,((e,t)=>{r=r.set(new sf(e),t)})),vg(e,t,n,r,i,o,s,a)}return t}{let c=new Dm(null);return r.foreach(((e,t)=>{const r=mf(n,e);l.isCompleteForPath(r)&&(c=c.set(e,l.getNode().getChild(r)))})),vg(e,t,n,c,i,o,s,a)}}(e,t,s.path,s.affectedTree,r,i,o)}else{if(n.type!==xm.LISTEN_COMPLETE)throw _s("Unknown operation type: "+n.type);a=function(e,t,n,r,i){const o=t.serverCache,a=Im(t,o.getNode(),o.isFullyInitialized()||gf(n),o.isFiltered());return pg(e,a,n,r,cg,i)}(e,t,n.path,r,o)}const l=o.getChanges();return function(e,t,n){const r=t.eventCache;if(r.isFullyInitialized()){const i=r.getNode().isLeafNode()||r.getNode().isEmpty(),o=Lm(e);(n.length>0||!e.eventCache.isFullyInitialized()||i&&!r.getNode().equals(o)||!r.getNode().getPriority().equals(o.getPriority()))&&n.push(im(Lm(t)))}}(t,a,l),{viewCache:a,changes:l}}function pg(e,t,n,r,i,o){const a=t.eventCache;if(null!=rg(r,n))return t;{let s,l;if(gf(n))if(ys(t.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),t.serverCache.isFiltered()){const n=Rm(t),i=tg(r,n instanceof Jf?n:Jf.EMPTY_NODE);s=e.filter.updateFullNode(t.eventCache.getNode(),i,o)}else{const n=eg(r,Rm(t));s=e.filter.updateFullNode(t.eventCache.getNode(),n,o)}else{const c=cf(n);if(".priority"===c){ys(1===uf(n),"Can't have a priority with additional path components");const i=a.getNode();l=t.serverCache.getNode();const o=ng(r,n,i,l);s=null!=o?e.filter.updatePriority(i,o):a.getNode()}else{const u=df(n);let d;if(a.isCompleteForChild(c)){l=t.serverCache.getNode();const e=ng(r,n,a.getNode(),l);d=null!=e?a.getNode().getImmediateChild(c).updateChild(u,e):a.getNode().getImmediateChild(c)}else d=og(r,c,t.serverCache);s=null!=d?e.filter.updateChild(a.getNode(),c,d,u,i,o):a.getNode()}}return Pm(t,s,a.isFullyInitialized()||gf(n),e.filter.filtersNodes())}}function hg(e,t,n,r,i,o,a,s){const l=t.serverCache;let c;const u=a?e.filter:e.filter.getIndexedFilter();if(gf(n))c=u.updateFullNode(l.getNode(),r,null);else if(u.filtersNodes()&&!l.isFiltered()){const e=l.getNode().updateChild(n,r);c=u.updateFullNode(l.getNode(),e,null)}else{const e=cf(n);if(!l.isCompleteForPath(n)&&uf(n)>1)return t;const i=df(n),o=l.getNode().getImmediateChild(e).updateChild(i,r);c=".priority"===e?u.updatePriority(l.getNode(),o):u.updateChild(l.getNode(),e,o,i,cg,null)}const d=Im(t,c,l.isFullyInitialized()||gf(n),u.filtersNodes());return pg(e,d,n,i,new ug(i,d,o),s)}function fg(e,t,n,r,i,o,a){const s=t.eventCache;let l,c;const u=new ug(i,t,o);if(gf(n))c=e.filter.updateFullNode(t.eventCache.getNode(),r,a),l=Pm(t,c,!0,e.filter.filtersNodes());else{const i=cf(n);if(".priority"===i)c=e.filter.updatePriority(t.eventCache.getNode(),r),l=Pm(t,c,s.isFullyInitialized(),s.isFiltered());else{const o=df(n),c=s.getNode().getImmediateChild(i);let d;if(gf(o))d=r;else{const e=u.getCompleteChild(i);d=null!=e?".priority"===pf(o)&&e.getChild(ff(o)).isEmpty()?e:e.updateChild(o,r):Jf.EMPTY_NODE}if(c.equals(d))l=t;else{l=Pm(t,e.filter.updateChild(s.getNode(),i,d,o,u,a),s.isFullyInitialized(),e.filter.filtersNodes())}}}return l}function mg(e,t){return e.eventCache.isCompleteForChild(t)}function gg(e,t,n){return n.foreach(((e,n)=>{t=t.updateChild(e,n)})),t}function vg(e,t,n,r,i,o,a,s){if(t.serverCache.getNode().isEmpty()&&!t.serverCache.isFullyInitialized())return t;let l,c=t;l=gf(n)?r:new Dm(null).setTree(n,r);const u=t.serverCache.getNode();return l.children.inorderTraversal(((n,r)=>{if(u.hasChild(n)){const l=gg(0,t.serverCache.getNode().getImmediateChild(n),r);c=hg(e,c,new sf(n),l,i,o,a,s)}})),l.children.inorderTraversal(((n,r)=>{const l=!t.serverCache.isCompleteForChild(n)&&null===r.value;if(!u.hasChild(n)&&!l){const l=gg(0,t.serverCache.getNode().getImmediateChild(n),r);c=hg(e,c,new sf(n),l,i,o,a,s)}})),c}class bg{constructor(e,t){this.query_=e,this.eventRegistrations_=[];const n=this.query_._queryParams,r=new lm(n.getIndex()),i=(o=n).loadsAllData()?new lm(o.getIndex()):o.hasLimit()?new um(o):new cm(o);var o;this.processor_=function(e){return{filter:e}}(i);const a=t.serverCache,s=t.eventCache,l=r.updateFullNode(Jf.EMPTY_NODE,a.getNode(),null),c=i.updateFullNode(Jf.EMPTY_NODE,s.getNode(),null),u=new Sm(l,a.isFullyInitialized(),r.filtersNodes()),d=new Sm(c,s.isFullyInitialized(),i.filtersNodes());this.viewCache_=jm(d,u),this.eventGenerator_=new Om(this.query_)}get query(){return this.query_}}function yg(e,t){const n=Rm(e.viewCache_);return n&&(e.query._queryParams.loadsAllData()||!gf(t)&&!n.getImmediateChild(cf(t)).isEmpty())?n.getChild(t):null}function _g(e){return 0===e.eventRegistrations_.length}function xg(e,t,n){const r=[];if(n){ys(null==t,"A cancel should cancel all event registrations.");const i=e.query._path;e.eventRegistrations_.forEach((e=>{const t=e.createCancelEvent(n,i);t&&r.push(t)}))}if(t){let n=[];for(let r=0;r{var n;"child_changed"===t.type&&e.index_.indexedValueChanged(t.oldSnap,t.snapshotNode)&&o.push((n=t.childName,{type:"child_moved",snapshotNode:t.snapshotNode,childName:n}))})),Am(e,i,"child_removed",t,r,n),Am(e,i,"child_added",t,r,n),Am(e,i,"child_moved",o,r,n),Am(e,i,"child_changed",t,r,n),Am(e,i,"value",t,r,n),i}(e.eventGenerator_,t,n,i)}let Tg,Cg;class kg{constructor(){this.views=new Map}}function Sg(e,t,n,r){const i=t.source.queryId;if(null!==i){const o=e.views.get(i);return ys(null!=o,"SyncTree gave us an op for an invalid query."),wg(o,t,n,r)}{let i=[];for(const o of e.views.values())i=i.concat(wg(o,t,n,r));return i}}function Og(e,t,n,r,i){const o=t._queryIdentifier,a=e.views.get(o);if(!a){let e=eg(n,i?r:null),o=!1;e?o=!0:r instanceof Jf?(e=tg(n,r),o=!1):(e=Jf.EMPTY_NODE,o=!1);const a=jm(new Sm(e,o,!1),new Sm(r,i,!1));return new bg(t,a)}return a}function Ag(e,t,n,r,i,o){const a=Og(e,t,r,i,o);return e.views.has(t._queryIdentifier)||e.views.set(t._queryIdentifier,a),function(e,t){e.eventRegistrations_.push(t)}(a,n),function(e,t){const n=e.viewCache_.eventCache,r=[];n.getNode().isLeafNode()||n.getNode().forEachChild(Hf,((e,t)=>{r.push(om(e,t))}));return n.isFullyInitialized()&&r.push(im(n.getNode())),Eg(e,r,n.getNode(),t)}(a,n)}function jg(e,t,n,r){const i=t._queryIdentifier,o=[];let a=[];const s=Ng(e);if("default"===i)for(const[l,c]of e.views.entries())a=a.concat(xg(c,n,r)),_g(c)&&(e.views.delete(l),c.query._queryParams.loadsAllData()||o.push(c.query));else{const t=e.views.get(i);t&&(a=a.concat(xg(t,n,r)),_g(t)&&(e.views.delete(i),t.query._queryParams.loadsAllData()||o.push(t.query)))}return s&&!Ng(e)&&o.push(new(ys(Tg,"Reference.ts has not been loaded"),Tg)(t._repo,t._path)),{removed:o,events:a}}function Pg(e){const t=[];for(const n of e.views.values())n.query._queryParams.loadsAllData()||t.push(n);return t}function Ig(e,t){let n=null;for(const r of e.views.values())n=n||yg(r,t);return n}function Lg(e,t){if(t._queryParams.loadsAllData())return Dg(e);{const n=t._queryIdentifier;return e.views.get(n)}}function Rg(e,t){return null!=Lg(e,t)}function Ng(e){return null!=Dg(e)}function Dg(e){for(const t of e.views.values())if(t.query._queryParams.loadsAllData())return t;return null}let Mg=1;class Bg{constructor(e){this.listenProvider_=e,this.syncPointTree_=new Dm(null),this.pendingWriteTree_={visibleWrites:Mm.empty(),allWrites:[],lastWriteId:-1},this.tagToQueryMap=new Map,this.queryToTagMap=new Map}}function Qg(e,t,n,r,i){return function(e,t,n,r,i){ys(r>e.lastWriteId,"Stacking an older write on top of newer ones"),void 0===i&&(i=!0),e.allWrites.push({path:t,snap:n,writeId:r,visible:i}),i&&(e.visibleWrites=Bm(e.visibleWrites,t,n)),e.lastWriteId=r}(e.pendingWriteTree_,t,n,r,i),i?$g(e,new Cm({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},t,n)):[]}function Ug(e,t,n,r){!function(e,t,n,r){ys(r>e.lastWriteId,"Stacking an older merge on top of newer ones"),e.allWrites.push({path:t,children:n,writeId:r,visible:!0}),e.visibleWrites=Qm(e.visibleWrites,t,n),e.lastWriteId=r}(e.pendingWriteTree_,t,n,r);const i=Dm.fromObject(n);return $g(e,new km({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},t,i))}function Fg(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=function(e,t){for(let n=0;n{t=t.set(new sf(e),!0)})),$g(e,new Em(r.path,t,n))}return[]}function zg(e,t,n){return $g(e,new Cm({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t,n))}function qg(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=t._path,a=e.syncPointTree_.get(o);let s=[];if(a&&("default"===t._queryIdentifier||Rg(a,t))){const l=jg(a,t,n,r);0===a.views.size&&(e.syncPointTree_=e.syncPointTree_.remove(o));const c=l.removed;if(s=l.events,!i){const n=-1!==c.findIndex((e=>e._queryParams.loadsAllData())),i=e.syncPointTree_.findOnPath(o,((e,t)=>Ng(t)));if(n&&!i){const t=e.syncPointTree_.subtree(o);if(!t.isEmpty()){const n=function(e){return e.fold(((e,t,n)=>{if(t&&Ng(t)){return[Dg(t)]}{let e=[];return t&&(e=Pg(t)),Sh(n,((t,n)=>{e=e.concat(n)})),e}}))}(t);for(let t=0;t0&&!r)if(n){const n=null;e.listenProvider_.stopListening(rv(t),n)}else c.forEach((t=>{const n=e.queryToTagMap.get(Xg(t));e.listenProvider_.stopListening(rv(t),n)}))}!function(e,t){for(let n=0;n3&&void 0!==arguments[3]&&arguments[3];const i=t._path;let o=null,a=!1;e.syncPointTree_.foreachOnPath(i,((e,t)=>{const n=vf(e,i);o=o||Ig(t,n),a=a||Ng(t)}));let s,l=e.syncPointTree_.get(i);if(l?(a=a||Ng(l),o=o||Ig(l,lf())):(l=new kg,e.syncPointTree_=e.syncPointTree_.set(i,l)),null!=o)s=!0;else{s=!1,o=Jf.EMPTY_NODE;e.syncPointTree_.subtree(i).foreachChild(((e,t)=>{const n=Ig(t,lf());n&&(o=o.updateImmediateChild(e,n))}))}const c=Rg(l,t);if(!c&&!t._queryParams.loadsAllData()){const n=Xg(t);ys(!e.queryToTagMap.has(n),"View does not exist, but we have a tag");const r=Mg++;e.queryToTagMap.set(n,r),e.tagToQueryMap.set(r,n)}let u=Ag(l,t,n,$m(e.pendingWriteTree_,i),o,s);if(!c&&!a&&!r){const n=Lg(l,t);u=u.concat(function(e,t,n){const r=t._path,i=Jg(e,t),o=Zg(e,n),a=e.listenProvider_.startListening(rv(t),i,o.hashFn,o.onComplete),s=e.syncPointTree_.subtree(r);if(i)ys(!Ng(s.value),"If we're adding a query, it shouldn't be shadowed");else{const t=s.fold(((e,t,n)=>{if(!gf(e)&&t&&Ng(t))return[Dg(t).query];{let e=[];return t&&(e=e.concat(Pg(t).map((e=>e.query)))),Sh(n,((t,n)=>{e=e.concat(n)})),e}}));for(let n=0;n{const r=Ig(n,vf(e,t));if(r)return r}));return Xm(r,t,i,n,!0)}function Vg(e,t){const n=t._path;let r=null;e.syncPointTree_.foreachOnPath(n,((e,t)=>{const i=vf(e,n);r=r||Ig(t,i)}));let i=e.syncPointTree_.get(n);i?r=r||Ig(i,lf()):(i=new kg,e.syncPointTree_=e.syncPointTree_.set(n,i));const o=null!=r,a=o?new Sm(r,!0,!1):null;return function(e){return Lm(e.viewCache_)}(Og(i,t,$m(e.pendingWriteTree_,t._path),o?a.getNode():Jf.EMPTY_NODE,o))}function $g(e,t){return Kg(t,e.syncPointTree_,null,$m(e.pendingWriteTree_,lf()))}function Kg(e,t,n,r){if(gf(e.path))return Yg(e,t,n,r);{const i=t.get(lf());null==n&&null!=i&&(n=Ig(i,lf()));let o=[];const a=cf(e.path),s=e.operationForChild(a),l=t.children.get(a);if(l&&s){const e=n?n.getImmediateChild(a):null,t=ag(r,a);o=o.concat(Kg(s,l,e,t))}return i&&(o=o.concat(Sg(i,e,r,n))),o}}function Yg(e,t,n,r){const i=t.get(lf());null==n&&null!=i&&(n=Ig(i,lf()));let o=[];return t.children.inorderTraversal(((t,i)=>{const a=n?n.getImmediateChild(t):null,s=ag(r,t),l=e.operationForChild(t);l&&(o=o.concat(Yg(l,i,a,s)))})),i&&(o=o.concat(Sg(i,e,r,n))),o}function Zg(e,t){const n=t.query,r=Jg(e,n);return{hashFn:()=>{const e=function(e){return e.viewCache_.serverCache.getNode()}(t)||Jf.EMPTY_NODE;return e.hash()},onComplete:t=>{if("ok"===t)return r?function(e,t,n){const r=ev(e,n);if(r){const n=tv(r),i=n.path,o=n.queryId,a=vf(i,t);return nv(e,i,new Tm(wm(o),a))}return[]}(e,n._path,r):function(e,t){return $g(e,new Tm({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t))}(e,n._path);{const r=function(e,t){let n="Unknown Error";"too_big"===e?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===e?n="Client doesn't have permission to access the desired data.":"unavailable"===e&&(n="The service is unavailable");const r=new Error(e+" at "+t._path.toString()+": "+n);return r.code=e.toUpperCase(),r}(t,n);return qg(e,n,null,r)}}}}function Jg(e,t){const n=Xg(t);return e.queryToTagMap.get(n)}function Xg(e){return e._path.toString()+"$"+e._queryIdentifier}function ev(e,t){return e.tagToQueryMap.get(t)}function tv(e){const t=e.indexOf("$");return ys(-1!==t&&t{const i=pv(r,t.getImmediateChild(e),n);i!==r&&(o=o.updateImmediateChild(e,i))})),o}}class hv{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{children:{},childCount:0};this.name=e,this.parent=t,this.node=n}}function fv(e,t){let n=t instanceof sf?t:new sf(t),r=e,i=cf(n);for(;null!==i;){const e=$s(r.node.children,i)||{children:{},childCount:0};r=new hv(i,r,e),n=df(n),i=cf(n)}return r}function mv(e){return e.node.value}function gv(e,t){e.node.value=t,xv(e)}function vv(e){return e.node.childCount>0}function bv(e,t){Sh(e.node.children,((n,r)=>{t(new hv(n,e,r))}))}function yv(e,t,n,r){n&&!r&&t(e),bv(e,(e=>{yv(e,t,!0,r)})),n&&r&&t(e)}function _v(e){return new sf(null===e.parent?e.name:_v(e.parent)+"/"+e.name)}function xv(e){null!==e.parent&&function(e,t,n){const r=function(e){return void 0===mv(e)&&!vv(e)}(n),i=Vs(e.node.children,t);r&&i?(delete e.node.children[t],e.node.childCount--,xv(e)):r||i||(e.node.children[t]=n.node,e.node.childCount++,xv(e))}(e.parent,e.name,e)}const wv=/[\[\].#$\/\u0000-\u001F\u007F]/,Ev=/[\[\].#$\u0000-\u001F\u007F]/,Tv=10485760,Cv=function(e){return"string"===typeof e&&0!==e.length&&!wv.test(e)},kv=function(e){return"string"===typeof e&&0!==e.length&&!Ev.test(e)},Sv=function(e){return null===e||"string"===typeof e||"number"===typeof e&&!yh(e)||e&&"object"===typeof e&&Vs(e,".sv")},Ov=function(e,t,n,r){r&&void 0===t||Av(ol(e,"value"),t,n)},Av=function(e,t,n){const r=n instanceof sf?new xf(n,e):n;if(void 0===t)throw new Error(e+"contains undefined "+Ef(r));if("function"===typeof t)throw new Error(e+"contains a function "+Ef(r)+" with contents = "+t.toString());if(yh(t))throw new Error(e+"contains "+t.toString()+" "+Ef(r));if("string"===typeof t&&t.length>Tv/3&&al(t)>Tv)throw new Error(e+"contains a string greater than "+Tv+" utf8 bytes "+Ef(r)+" ('"+t.substring(0,50)+"...')");if(t&&"object"===typeof t){let n=!1,i=!1;if(Sh(t,((t,o)=>{if(".value"===t)n=!0;else if(".priority"!==t&&".sv"!==t&&(i=!0,!Cv(t)))throw new Error(e+" contains an invalid key ("+t+") "+Ef(r)+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');!function(e,t){e.parts_.length>0&&(e.byteLength_+=1),e.parts_.push(t),e.byteLength_+=al(t),wf(e)}(r,t),Av(e,o,r),function(e){const t=e.parts_.pop();e.byteLength_-=al(t),e.parts_.length>0&&(e.byteLength_-=1)}(r)})),n&&i)throw new Error(e+' contains ".value" child '+Ef(r)+" in addition to actual children.")}},jv=function(e,t,n,r){if(r&&void 0===t)return;const i=ol(e,"values");if(!t||"object"!==typeof t||Array.isArray(t))throw new Error(i+" must be an object containing the children to replace.");const o=[];Sh(t,((e,t)=>{const r=new sf(e);if(Av(i,t,mf(n,r)),".priority"===pf(r)&&!Sv(t))throw new Error(i+"contains an invalid value for '"+r.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");o.push(r)})),function(e,t){let n,r;for(n=0;nyf(e,t)))}function Bv(e,t,n){Dv(e,n),Qv(e,(e=>_f(e,t)||_f(t,e)))}function Qv(e,t){e.recursionDepth_++;let n=!0;for(let r=0;r=0)e.server_=new fm(e.repoInfo_,((t,n,r,i)=>{Vv(e,t,n,r,i)}),e.authTokenProvider_,e.appCheckProvider_),setTimeout((()=>$v(e,!0)),0);else{if("undefined"!==typeof n&&null!==n){if("object"!==typeof n)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{Ws(n)}catch(r){throw new Error("Invalid authOverride provided: "+r)}}e.persistentConnection_=new kf(e.repoInfo_,t,((t,n,r,i)=>{Vv(e,t,n,r,i)}),(t=>{$v(e,t)}),(t=>{!function(e,t){Sh(t,((t,n)=>{Kv(e,t,n)}))}(e,t)}),e.authTokenProvider_,e.appCheckProvider_,n),e.server_=e.persistentConnection_}e.authTokenProvider_.addTokenChangeListener((t=>{e.server_.refreshAuthToken(t)})),e.appCheckProvider_.addTokenChangeListener((t=>{e.server_.refreshAppCheckToken(t.token)})),e.statsReporter_=function(e,t){const n=e.toString();return Wh[n]||(Wh[n]=t()),Wh[n]}(e.repoInfo_,(()=>new _m(e.stats_,e.server_))),e.infoData_=new mm,e.infoSyncTree_=new Bg({startListening:(t,n,r,i)=>{let o=[];const a=e.infoData_.getNode(t._path);return a.isEmpty()||(o=zg(e.infoSyncTree_,t._path,a),setTimeout((()=>{i("ok")}),0)),o},stopListening:()=>{}}),Kv(e,"connected",!1),e.serverSyncTree_=new Bg({startListening:(t,n,r,i)=>(e.server_.listen(t,r,n,((n,r)=>{const o=i(n,r);Bv(e.eventQueue_,t._path,o)})),[]),stopListening:(t,n)=>{e.server_.unlisten(t,n)}})}function Wv(e){const t=e.infoData_.getNode(new sf(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+t}function Gv(e){return av({timestamp:Wv(e)})}function Vv(e,t,n,r,i){e.dataUpdateCount++;const o=new sf(t);n=e.interceptServerDataCallback_?e.interceptServerDataCallback_(t,n):n;let a=[];if(i)if(r){const t=Ys(n,(e=>tm(e)));a=function(e,t,n,r){const i=ev(e,r);if(i){const r=tv(i),o=r.path,a=r.queryId,s=vf(o,t),l=Dm.fromObject(n);return nv(e,o,new km(wm(a),s,l))}return[]}(e.serverSyncTree_,o,t,i)}else{const t=tm(n);a=Hg(e.serverSyncTree_,o,t,i)}else if(r){const t=Ys(n,(e=>tm(e)));a=function(e,t,n){const r=Dm.fromObject(n);return $g(e,new km({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t,r))}(e.serverSyncTree_,o,t)}else{const t=tm(n);a=zg(e.serverSyncTree_,o,t)}let s=o;a.length>0&&(s=ib(e,o)),Bv(e.eventQueue_,s,a)}function $v(e,t){Kv(e,"connected",t),!1===t&&function(e){eb(e,"onDisconnectEvents");const t=Gv(e),n=gm();bm(e.onDisconnect_,lf(),((r,i)=>{const o=uv(r,i,e.serverSyncTree_,t);vm(n,r,o)}));let r=[];bm(n,lf(),((t,n)=>{r=r.concat(zg(e.serverSyncTree_,t,n));const i=cb(e,t);ib(e,i)})),e.onDisconnect_=gm(),Bv(e.eventQueue_,lf(),r)}(e)}function Kv(e,t,n){const r=new sf("/.info/"+t),i=tm(n);e.infoData_.updateSnapshot(r,i);const o=zg(e.infoSyncTree_,r,i);Bv(e.eventQueue_,r,o)}function Yv(e){return e.nextWriteId_++}function Zv(e,t,n,r,i){eb(e,"set",{path:t.toString(),value:n,priority:r});const o=Gv(e),a=tm(n,r),s=Gg(e.serverSyncTree_,t),l=dv(a,s,o),c=Yv(e),u=Qg(e.serverSyncTree_,t,l,c,!0);Dv(e.eventQueue_,u),e.server_.put(t.toString(),a.val(!0),((n,r)=>{const o="ok"===n;o||bh("set at "+t+" failed: "+n);const a=Fg(e.serverSyncTree_,c,!o);Bv(e.eventQueue_,t,a),tb(e,i,n,r)}));const d=cb(e,t);ib(e,d),Bv(e.eventQueue_,d,[])}function Jv(e,t,n){let r;r=".info"===cf(t._path)?qg(e.infoSyncTree_,t,n):qg(e.serverSyncTree_,t,n),Mv(e.eventQueue_,t._path,r)}function Xv(e){e.persistentConnection_&&e.persistentConnection_.interrupt(Fv)}function eb(e){let t="";e.persistentConnection_&&(t=e.persistentConnection_.id+":");for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{if("ok"===n)t(null);else{const e=(n||"error").toUpperCase();let i=e;r&&(i+=": "+r);const o=new Error(i);o.code=e,t(o)}}))}function nb(e,t,n){return Gg(e.serverSyncTree_,t,n)||Jf.EMPTY_NODE}function rb(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.transactionQueueTree_;if(t||lb(e,t),mv(t)){const n=ab(e,t);ys(n.length>0,"Sending zero length transaction queue");n.every((e=>0===e.status))&&function(e,t,n){const r=n.map((e=>e.currentWriteId)),i=nb(e,t,r);let o=i;const a=i.hash();for(let c=0;c{eb(e,"transaction put response",{path:l.toString(),status:r});let i=[];if("ok"===r){const r=[];for(let t=0;tn[t].onComplete(null,!0,n[t].currentOutputSnapshotResolved))),n[t].unwatcher();lb(e,fv(e.transactionQueueTree_,t)),rb(e,e.transactionQueueTree_),Bv(e.eventQueue_,t,i);for(let e=0;e{rb(e,t)}))}function ib(e,t){const n=ob(e,t),r=_v(n);return function(e,t,n){if(0===t.length)return;const r=[];let i=[];const o=t.filter((e=>0===e.status)),a=o.map((e=>e.currentWriteId));for(let l=0;l=zv)d=!0,u="maxretry",i=i.concat(Fg(e.serverSyncTree_,o.currentWriteId,!0));else{const n=nb(e,o.path,a);o.currentInputSnapshot=n;const r=t[l].update(n.val());if(void 0!==r){Av("transaction failed: Data returned ",r,o.path);let t=tm(r);"object"===typeof r&&null!=r&&Vs(r,".priority")||(t=t.updatePriority(n.getPriority()));const s=o.currentWriteId,l=Gv(e),c=dv(t,n,l);o.currentOutputSnapshotRaw=t,o.currentOutputSnapshotResolved=c,o.currentWriteId=Yv(e),a.splice(a.indexOf(s),1),i=i.concat(Qg(e.serverSyncTree_,o.path,c,o.currentWriteId,o.applyLocally)),i=i.concat(Fg(e.serverSyncTree_,s,!0))}else d=!0,u="nodata",i=i.concat(Fg(e.serverSyncTree_,o.currentWriteId,!0))}Bv(e.eventQueue_,n,i),i=[],d&&(t[l].status=2,s=t[l].unwatcher,setTimeout(s,Math.floor(0)),t[l].onComplete&&("nodata"===u?r.push((()=>t[l].onComplete(null,!1,t[l].currentInputSnapshot))):r.push((()=>t[l].onComplete(new Error(u),!1,null)))))}var s;lb(e,e.transactionQueueTree_);for(let l=0;le.order-t.order)),n}function sb(e,t,n){const r=mv(t);if(r)for(let i=0;i{sb(e,t,n)}))}function lb(e,t){const n=mv(t);if(n){let e=0;for(let t=0;t0?n:void 0)}bv(t,(t=>{lb(e,t)}))}function cb(e,t){const n=_v(ob(e,t)),r=fv(e.transactionQueueTree_,t);return function(e,t,n){let r=n?e:e.parent;for(;null!==r;){if(t(r))return!0;r=r.parent}}(r,(t=>{ub(e,t)})),ub(e,r),yv(r,(t=>{ub(e,t)})),n}function ub(e,t){const n=mv(t);if(n){const r=[];let i=[],o=-1;for(let t=0;t.firebaseio.com instead"),r&&"undefined"!==r||"localhost"===n.domain||vh("Cannot parse Firebase url. Please use https://.firebaseio.com"),n.secure||"undefined"!==typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&bh("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().");const i="ws"===n.scheme||"wss"===n.scheme;return{repoInfo:new Fh(n.host,n.secure,r,i,t,"",r!==n.subdomain),path:new sf(n.pathString)}},pb=function(e){let t="",n="",r="",i="",o="",a=!0,s="https",l=443;if("string"===typeof e){let c=e.indexOf("//");c>=0&&(s=e.substring(0,c-1),e=e.substring(c+2));let u=e.indexOf("/");-1===u&&(u=e.length);let d=e.indexOf("?");-1===d&&(d=e.length),t=e.substring(0,Math.min(u,d)),u0){let e=n[i];try{e=decodeURIComponent(e.replace(/\+/g," "))}catch(r){}t+="/"+e}return t}(e.substring(u,d)));const p=function(e){const t={};"?"===e.charAt(0)&&(e=e.substring(1));for(const n of e.split("&")){if(0===n.length)continue;const r=n.split("=");2===r.length?t[decodeURIComponent(r[0])]=decodeURIComponent(r[1]):bh("Invalid query segment '".concat(n,"' in query '").concat(e,"'"))}return t}(e.substring(Math.min(e.length,d)));c=t.indexOf(":"),c>=0?(a="https"===s||"wss"===s,l=parseInt(t.substring(c+1),10)):c=t.length;const h=t.slice(0,c);if("localhost"===h.toLowerCase())n="localhost";else if(h.split(".").length<=2)n=h;else{const e=t.indexOf(".");r=t.substring(0,e).toLowerCase(),n=t.substring(e+1),o=r}"ns"in p&&(o=p.ns)}return{host:t,port:l,domain:n,subdomain:r,secure:a,scheme:s,pathString:i,namespace:o}},hb="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",fb=function(){let e=0;const t=[];return function(n){const r=n===e;let i;e=n;const o=new Array(8);for(i=7;i>=0;i--)o[i]=hb.charAt(n%64),n=Math.floor(n/64);ys(0===n,"Cannot push at time == 0");let a=o.join("");if(r){for(i=11;i>=0&&63===t[i];i--)t[i]=0;t[i]++}else for(i=0;i<12;i++)t[i]=Math.floor(64*Math.random());for(i=0;i<12;i++)a+=hb.charAt(t[i]);return ys(20===a.length,"nextPushId: Length should be 20."),a}}();class mb{constructor(e,t,n,r){this.eventType=e,this.eventRegistration=t,this.snapshot=n,this.prevName=r}getPath(){const e=this.snapshot.ref;return"value"===this.eventType?e._path:e.parent._path}getEventType(){return this.eventType}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.getPath().toString()+":"+this.eventType+":"+Ws(this.snapshot.exportVal())}}class gb{constructor(e,t,n){this.eventRegistration=e,this.error=t,this.path=n}getPath(){return this.path}getEventType(){return"cancel"}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.path.toString()+":cancel"}}class vb{constructor(e,t){this.snapshotCallback=e,this.cancelCallback=t}onValue(e,t){this.snapshotCallback.call(null,e,t)}onCancel(e){return ys(this.hasCancelCallback,"Raising a cancel event on a listener with no cancel callback"),this.cancelCallback.call(null,e)}get hasCancelCallback(){return!!this.cancelCallback}matches(e){return this.snapshotCallback===e.snapshotCallback||void 0!==this.snapshotCallback.userCallback&&this.snapshotCallback.userCallback===e.snapshotCallback.userCallback&&this.snapshotCallback.context===e.snapshotCallback.context}}class bb{constructor(e,t,n,r){this._repo=e,this._path=t,this._queryParams=n,this._orderByCalled=r}get key(){return gf(this._path)?null:pf(this._path)}get ref(){return new yb(this._repo,this._path)}get _queryIdentifier(){const e=hm(this._queryParams),t=Ch(e);return"{}"===t?"default":t}get _queryObject(){return hm(this._queryParams)}isEqual(e){if(!((e=sl(e))instanceof bb))return!1;const t=this._repo===e._repo,n=yf(this._path,e._path),r=this._queryIdentifier===e._queryIdentifier;return t&&n&&r}toJSON(){return this.toString()}toString(){return this._repo.toString()+function(e){let t="";for(let n=e.pieceNum_;ne(new _b(n,wb(this.ref,t),Hf))))}hasChild(e){const t=new sf(e);return!this._node.getChild(t).isEmpty()}hasChildren(){return!this._node.isLeafNode()&&!this._node.isEmpty()}toJSON(){return this.exportVal()}val(){return this._node.val()}}function xb(e,t){return(e=sl(e))._checkNotDeleted("ref"),void 0!==t?wb(e._root,t):e._root}function wb(e,t){return null===cf((e=sl(e))._path)?Iv("child","path",t,!1):Pv("child","path",t,!1),new yb(e._repo,mf(e._path,t))}function Eb(e,t){e=sl(e),Lv("push",e._path),Ov("push",t,e._path,!0);const n=Wv(e._repo),r=fb(n),i=wb(e,r),o=wb(e,r);let a;return a=null!=t?Cb(o,t).then((()=>o)):Promise.resolve(o),i.then=a.then.bind(a),i.catch=a.then.bind(a,void 0),i}function Tb(e){return Lv("remove",e._path),Cb(e,null)}function Cb(e,t){e=sl(e),Lv("set",e._path),Ov("set",t,e._path,!1);const n=new Ds;return Zv(e._repo,e._path,t,null,n.wrapCallback((()=>{}))),n.promise}function kb(e,t){jv("update",t,e._path,!1);const n=new Ds;return function(e,t,n,r){eb(e,"update",{path:t.toString(),value:n});let i=!0;const o=Gv(e),a={};if(Sh(n,((n,r)=>{i=!1,a[n]=uv(mf(t,n),tm(r),e.serverSyncTree_,o)})),i)fh("update() called with empty data. Don't do anything."),tb(0,r,"ok",void 0);else{const i=Yv(e),o=Ug(e.serverSyncTree_,t,a,i);Dv(e.eventQueue_,o),e.server_.merge(t.toString(),n,((n,o)=>{const a="ok"===n;a||bh("update at "+t+" failed: "+n);const s=Fg(e.serverSyncTree_,i,!a),l=s.length>0?ib(e,t):t;Bv(e.eventQueue_,l,s),tb(0,r,n,o)})),Sh(n,(n=>{const r=cb(e,mf(t,n));ib(e,r)})),Bv(e.eventQueue_,t,[])}}(e._repo,e._path,t,n.wrapCallback((()=>{}))),n.promise}function Sb(e){e=sl(e);const t=new vb((()=>{})),n=new Ob(t);return function(e,t,n){const r=Vg(e.serverSyncTree_,t);return null!=r?Promise.resolve(r):e.server_.get(t).then((r=>{const i=tm(r).withIndex(t._queryParams.getIndex());let o;if(Wg(e.serverSyncTree_,t,n,!0),t._queryParams.loadsAllData())o=zg(e.serverSyncTree_,t._path,i);else{const n=Jg(e.serverSyncTree_,t);o=Hg(e.serverSyncTree_,t._path,i,n)}return Bv(e.eventQueue_,t._path,o),qg(e.serverSyncTree_,t,n,null,!0),i}),(n=>(eb(e,"get for query "+Ws(t)+" failed: "+n),Promise.reject(new Error(n)))))}(e._repo,e,n).then((t=>new _b(t,new yb(e._repo,e._path),e._queryParams.getIndex())))}class Ob{constructor(e){this.callbackContext=e}respondsTo(e){return"value"===e}createEvent(e,t){const n=t._queryParams.getIndex();return new mb("value",this,new _b(e.snapshotNode,new yb(t._repo,t._path),n))}getEventRunner(e){return"cancel"===e.getEventType()?()=>this.callbackContext.onCancel(e.error):()=>this.callbackContext.onValue(e.snapshot,null)}createCancelEvent(e,t){return this.callbackContext.hasCancelCallback?new gb(this,e,t):null}matches(e){return e instanceof Ob&&(!e.callbackContext||!this.callbackContext||e.callbackContext.matches(this.callbackContext))}hasAnyCallback(){return null!==this.callbackContext}}class Ab{constructor(e,t){this.eventType=e,this.callbackContext=t}respondsTo(e){let t="children_added"===e?"child_added":e;return t="children_removed"===t?"child_removed":t,this.eventType===t}createCancelEvent(e,t){return this.callbackContext.hasCancelCallback?new gb(this,e,t):null}createEvent(e,t){ys(null!=e.childName,"Child events should have a childName.");const n=wb(new yb(t._repo,t._path),e.childName),r=t._queryParams.getIndex();return new mb(e.type,this,new _b(e.snapshotNode,n,r),e.prevName)}getEventRunner(e){return"cancel"===e.getEventType()?()=>this.callbackContext.onCancel(e.error):()=>this.callbackContext.onValue(e.snapshot,e.prevName)}matches(e){return e instanceof Ab&&(this.eventType===e.eventType&&(!this.callbackContext||!e.callbackContext||this.callbackContext.matches(e.callbackContext)))}hasAnyCallback(){return!!this.callbackContext}}function jb(e,t,n,r,i){let o;if("object"===typeof r&&(o=void 0,i=r),"function"===typeof r&&(o=r),i&&i.onlyOnce){const t=n,r=(n,r)=>{Jv(e._repo,e,s),t(n,r)};r.userCallback=n.userCallback,r.context=n.context,n=r}const a=new vb(n,o||void 0),s="value"===t?new Ob(a):new Ab(t,a);return function(e,t,n){let r;r=".info"===cf(t._path)?Wg(e.infoSyncTree_,t,n):Wg(e.serverSyncTree_,t,n),Mv(e.eventQueue_,t._path,r)}(e._repo,e,s),()=>Jv(e._repo,e,s)}function Pb(e,t,n,r){return jb(e,"value",t,n,r)}function Ib(e,t,n){let r=null;const i=n?new vb(n):null;"value"===t?r=new Ob(i):t&&(r=new Ab(t,i)),Jv(e._repo,e,r)}!function(e){ys(!Tg,"__referenceConstructor has already been defined"),Tg=e}(yb),function(e){ys(!Cg,"__referenceConstructor has already been defined"),Cg=e}(yb);const Lb="FIREBASE_DATABASE_EMULATOR_HOST",Rb={};let Nb=!1;function Db(e,t,n,r,i){let o=r||e.options.databaseURL;void 0===o&&(e.options.projectId||vh("Can't determine Firebase Database URL. Be sure to include a Project ID when calling firebase.initializeApp()."),fh("Using default host for project ",e.options.projectId),o="".concat(e.options.projectId,"-default-rtdb.firebaseio.com"));let a,s,l=db(o,i),c=l.repoInfo;"undefined"!==typeof process&&(s={NODE_ENV:"production",PUBLIC_URL:"/metadata-entry-form",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_GOOGLE_CLOUD_API_KEY:"AIzaSyBz4kb3hJHXw0voYZgHZuAgmqGosxntMHM",REACT_APP_GOOGLE_CLOUD_API_KEY_DEV:"AIzaSyADkNENzpoqj3O7uGPsRA_4s1zQdbH708c"}[Lb]),s?(a=!0,o="http://".concat(s,"?ns=").concat(c.namespace),l=db(o,i),c=l.repoInfo):a=!l.repoInfo.secure;const u=i&&a?new Nh(Nh.OWNER):new Rh(e.name,e.options,t);Rv("Invalid Firebase Database URL",l),gf(l.path)||vh("Database URL must point to the root of a Firebase Database (not including a child path).");const d=function(e,t,n,r){let i=Rb[t.name];i||(i={},Rb[t.name]=i);let o=i[e.toURLString()];o&&vh("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call.");return o=new qv(e,Nb,n,r),i[e.toURLString()]=o,o}(c,e,u,new Lh(e.name,n));return new Mb(d,e)}class Mb{constructor(e,t){this._repoInternal=e,this.app=t,this.type="database",this._instanceStarted=!1}get _repo(){return this._instanceStarted||(Hv(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),this._instanceStarted=!0),this._repoInternal}get _root(){return this._rootInternal||(this._rootInternal=new yb(this._repo,lf())),this._rootInternal}_delete(){return null!==this._rootInternal&&(!function(e,t){const n=Rb[t];n&&n[e.key]===e||vh("Database ".concat(t,"(").concat(e.repoInfo_,") has already been deleted.")),Xv(e),delete n[e.key]}(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null),Promise.resolve()}_checkNotDeleted(e){null===this._rootInternal&&vh("Cannot call "+e+" on a deleted database.")}}function Bb(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl(),t=arguments.length>1?arguments[1]:void 0;const n=Gl(e,"database").getImmediate({identifier:t});if(!n._instanceStarted){const e=Ls("database");e&&function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e=sl(e),e._checkNotDeleted("useEmulator"),e._instanceStarted&&vh("Cannot call useEmulator() after instance has already been initialized.");const i=e._repoInternal;let o;if(i.repoInfo_.nodeAdmin)r.mockUserToken&&vh('mockUserToken is not supported by the Admin SDK. For client access with mock users, please use the "firebase" package instead of "firebase-admin".'),o=new Nh(Nh.OWNER);else if(r.mockUserToken){const t="string"===typeof r.mockUserToken?r.mockUserToken:function(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n=t||"demo-project",r=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const o=Object.assign({iss:"https://securetoken.google.com/".concat(n),aud:n,iat:r,exp:r+3600,auth_time:r,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[Cs(JSON.stringify({alg:"none",type:"JWT"})),Cs(JSON.stringify(o)),""].join(".")}(r.mockUserToken,e.app.options.projectId);o=new Nh(t)}!function(e,t,n,r){e.repoInfo_=new Fh("".concat(t,":").concat(n),!1,e.repoInfo_.namespace,e.repoInfo_.webSocketOnly,e.repoInfo_.nodeAdmin,e.repoInfo_.persistenceKey,e.repoInfo_.includeNamespaceInQueryParams,!0),r&&(e.authTokenProvider_=r)}(i,t,n,o)}(n,...e)}return n}kf.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)},kf.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)};!function(e){th(Kl),Wl(new ll("database",((e,t)=>{let{instanceIdentifier:n}=t;return Db(e.getProvider("app").getImmediate(),e.getProvider("auth-internal"),e.getProvider("app-check-internal"),n)}),"PUBLIC").setMultipleInstances(!0)),Jl(Jp,Xp,e),Jl(Jp,Xp,"esm2017")}();class Qb extends i.Component{constructor(){super(),this.listenerRefs=[]}componentDidUpdate(e){const{match:t}=this.props;t.params.region!==e.match.params.region&&(this.unsubscribeAndCloseListeners(),this.componentDidMount())}componentWillUnmount(){this.unsubscribeAndCloseListeners()}unsubscribeAndCloseListeners(){this.unsubscribe&&this.unsubscribe(),this.listenerRefs.length&&this.listenerRefs.forEach((e=>Ib(e)))}}const Ub=Qb,Fb=(0,i.createContext)({user:null,authIsLoading:!1});const zb=dn(class extends Ub{constructor(e){super(e),this.componentDidMount=()=>{const{match:e}=this.props,{region:t}=e.params;this.setState({authIsLoading:!0}),this.unsubscribe=nd(_p(Cp),(e=>{if(e){const{displayName:n,email:r,uid:i}=e;this.setState({user:e,authIsLoading:!1,loggedIn:!0}),function(e){ie("configureScope",e)}((e=>{e.setUser({email:r,username:r})}));Zp(Yp(),"getDatacitePrefix")(t).then((e=>{this.setState({datacitePrefix:null===e||void 0===e?void 0:e.data})}));const o=Bb(Cp);kb(xb(o,"".concat(t,"/users/").concat(i,"/userinfo")),{displayName:n,email:r});const a=xb(o,"admin/".concat(t,"/permissions"));Pb(a,(e=>{const t=e.toJSON(),n=(null===t||void 0===t?void 0:t.admins)||"",i=(null===t||void 0===t?void 0:t.reviewers)||"",o=n.includes(r),a=i.includes(r);this.setState({admins:n,reviewers:i,isAdmin:o,isReviewer:a})})),this.listenerRefs.push(a);const s=xb(o,"".concat(t,"/shares/").concat(i));Pb(s,(e=>{const t=e.exists();this.setState({hasSharedRecords:t,authIsLoading:!1})})),this.listenerRefs.push(s)}else this.setState({loggedIn:!1,authIsLoading:!1});this.setState({user:e,authIsLoading:!1})}))},this.state={user:null,authIsLoading:!1,admins:[],reviewers:[],isReviewer:!1,loggedIn:!1,hasSharedRecords:!1}}render(){const{children:e}=this.props,t=Yp(),n=Zp(t,"translate"),r=Zp(t,"regenerateXMLforRecord"),i=Zp(t,"downloadRecord"),o=Zp(t,"createDraftDoi"),a=Zp(t,"updateDraftDoi"),s=Zp(t,"deleteDraftDoi"),l=Zp(t,"getDoiStatus"),c=Zp(t,"checkURLActive"),u=Zp(t,"getCredentialsStored"),d=Zp(t,"getDatacitePrefix");return(0,Ap.jsx)(Fb.Provider,{value:{...this.state,translate:n,regenerateXMLforRecord:r,downloadRecord:i,createDraftDoi:o,updateDraftDoi:a,deleteDraftDoi:s,getDoiStatus:l,checkURLActive:c,getCredentialsStored:u,getDatacitePrefix:d},children:e})}}),qb=240,Hb=An((e=>({root:{display:"flex",flexGrow:1},appBar:{zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})},appBarShift:{marginLeft:qb,width:"calc(100% - ".concat(qb,"px)"),transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},menuButton:{marginRight:36},languageSelector:{"&:before":{borderColor:"white"},"&:hover:not(.Mui-disabled):before":{borderColor:"white"},color:"white",borderColor:"white",marginRight:e.spacing(2)},hide:{display:"none"},drawer:{width:qb,flexShrink:0,whiteSpace:"nowrap"},drawerOpen:{width:qb,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},drawerClose:{transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:e.spacing(7)+1,[e.breakpoints.up("sm")]:{width:e.spacing(9)+1}},toolbar:{display:"flex",alignItems:"center",justifyContent:"flex-end",padding:e.spacing(0,1),...e.mixins.toolbar},content:{flexGrow:1,padding:e.spacing(3)}})));function Wb(e){let{children:t}=e;const n=hn(),r=Hb(),o=Pn(),{user:a,isReviewer:s,isAdmin:l,authIsLoading:c,hasSharedRecords:u}=(0,i.useContext)(Fb);let{language:d="en",region:p="region-select"}=mn();["en","fr"].includes(d)||(d="en"),Object.keys(Cn).includes(p)||(p="");const{pathname:h}=fn(),f=h.split("/").map((e=>e)).slice(2).join("/"),m="/".concat(d,"/").concat(p),[g,v]=i.useState(Boolean(p)),b={home:(0,Ap.jsx)(Lp,{en:"Home",fr:"Accueil"}),new:(0,Ap.jsx)(Lp,{en:"Metadata Editor",fr:"\xc9diteur de m\xe9ta-donn\xe9es"}),contacts:(0,Ap.jsx)(Lp,{en:"Contacts",fr:"Contacts"}),instruments:(0,Ap.jsx)(Lp,{en:"Instruments",fr:"Instruments"}),platforms:(0,Ap.jsx)(Lp,{en:"Platforms",fr:"Plateformes"}),saved:(0,Ap.jsx)(Lp,{en:"My Records",fr:"Enregistrements"}),published:(0,Ap.jsx)(Lp,{en:"Published Records",fr:"Dossiers publi\xe9s"}),review:(0,Ap.jsx)(Lp,{en:"Review submissions",fr:"Examen des soumissions"}),admin:(0,Ap.jsx)(Lp,{en:"Admin",fr:"Admin"}),signIn:(0,Ap.jsx)(Lp,{en:"Sign in",fr:"Se Connecter"}),logout:(0,Ap.jsx)(Lp,{en:"Logout",fr:"D\xe9connexion"}),sharedWithMe:(0,Ap.jsx)(Lp,{en:"Shared with me",fr:"Partag\xe9 avec moi"})},y=p?Cn[p].colors.primary:"#52a79b",_={NODE_ENV:"production",PUBLIC_URL:"/metadata-entry-form",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_GOOGLE_CLOUD_API_KEY:"AIzaSyBz4kb3hJHXw0voYZgHZuAgmqGosxntMHM",REACT_APP_GOOGLE_CLOUD_API_KEY_DEV:"AIzaSyADkNENzpoqj3O7uGPsRA_4s1zQdbH708c"}.REACT_APP_DEV_DEPLOYMENT||!1;return(0,Ap.jsxs)("div",{className:r.root,children:[(0,Ap.jsx)(Kn,{}),(0,Ap.jsx)(tr,{position:"fixed",className:(0,kn.c)(r.appBar,{[r.appBarShift]:g}),children:(0,Ap.jsxs)(ir,{style:{backgroundColor:y,alignItems:"end"},children:[p&&(0,Ap.jsx)(Cr,{"aria-label":"open drawer",onClick:()=>{v(!0)},edge:"start",className:(0,kn.c)(r.menuButton,{[r.hide]:g}),children:(0,Ap.jsx)(Ln,{})}),(0,Ap.jsx)(Or,{variant:"h5",noWrap:!0,style:{marginLeft:"10px",marginBottom:"10px",flex:1,color:"white"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Metadata Entry Tool"}),(0,Ap.jsx)(Ip,{children:"Outil de saisie de m\xe9tadonn\xe9es"})]})}),(0,Ap.jsxs)("div",{style:{marginLeft:"auto"},children:[(0,Ap.jsx)("img",{src:"".concat("/metadata-entry-form","/cioos_website_top_banner_").concat(d,".png"),alt:"CIOOS/SIOOC",width:350,style:{verticalAlign:"bottom",paddingRight:"15px"}}),(0,Ap.jsxs)(wo,{color:"primary",className:r.languageSelector,value:d,onChange:e=>n.push("/".concat(e.target.value,"/").concat(f)),children:[(0,Ap.jsx)(Oo,{value:"en",children:"EN"}),(0,Ap.jsx)(Oo,{value:"fr",children:"FR"})]})]})]})}),p&&(0,Ap.jsxs)(qo,{variant:"permanent",className:(0,kn.c)(r.drawer,{[r.drawerOpen]:g,[r.drawerClose]:!g}),classes:{paper:(0,kn.c)({[r.drawerOpen]:g,[r.drawerClose]:!g})},children:[(0,Ap.jsx)("div",{className:r.toolbar,children:(0,Ap.jsx)(Cr,{onClick:()=>{v(!1)},children:"rtl"===o.direction?(0,Ap.jsx)(Rn,{}):(0,Ap.jsx)(Nn,{})})}),a&&(0,Ap.jsxs)(ko,{children:[(0,Ap.jsx)(Wo,{children:(0,Ap.jsx)($o,{src:a.photoURL})}),(0,Ap.jsx)(Yo,{primary:a.displayName})]},"userInfo"),(0,Ap.jsx)(Jo,{}),(0,Ap.jsxs)(ki,{children:[!a&&p&&(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.signIn,children:(0,Ap.jsxs)(ko,{disabled:c,button:!0,onClick:async()=>{try{await Op(),n.push(h)}catch(gh){if("auth/cancelled-popup-request"!==gh.code)throw gh}},children:[(0,Ap.jsx)(Wo,{children:(0,Ap.jsx)(Dn,{})}),(0,Ap.jsx)(Yo,{primary:b.signIn})]},"Sign in")}),a&&p&&(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.saved,children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>n.push("".concat(m,"/submissions")),children:[(0,Ap.jsx)(Wo,{children:(0,Ap.jsx)(Mn,{})}),(0,Ap.jsx)(Yo,{primary:b.saved})]},"My Records")}),(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.saved,children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>n.push("".concat(m,"/published")),children:[(0,Ap.jsx)(Wo,{children:(0,Ap.jsx)(Bn,{})}),(0,Ap.jsx)(Yo,{primary:b.published})]},"Region's Published Records")}),(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.contacts,children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>n.push("".concat(m,"/contacts")),children:[(0,Ap.jsx)(Wo,{disabled:!0,children:(0,Ap.jsx)(Qn,{})}),(0,Ap.jsx)(Yo,{primary:b.contacts})]},"Contacts")}),(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.instruments,children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>n.push("".concat(m,"/instruments")),children:[(0,Ap.jsx)(Wo,{disabled:!0,children:(0,Ap.jsx)(Un,{})}),(0,Ap.jsx)(Yo,{primary:b.instruments})]},"instruments")}),(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.instruments,children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>n.push("".concat(m,"/platforms")),children:[(0,Ap.jsx)(Wo,{disabled:!0,children:(0,Ap.jsx)(Fn,{})}),(0,Ap.jsx)(Yo,{primary:b.platforms})]},"Platforms")}),u&&(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.sharedWithMe,children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>n.push("".concat(m,"/shared")),children:[(0,Ap.jsx)(Wo,{children:(0,Ap.jsx)(zn,{})}),(0,Ap.jsx)(Yo,{primary:b.sharedWithMe})]},"SharedWithMe")}),s&&(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.review,children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>n.push("".concat(m,"/reviewer")),children:[(0,Ap.jsx)(Wo,{children:(0,Ap.jsx)(qn,{})}),(0,Ap.jsx)(Yo,{primary:b.review})]},"Review")}),l&&(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.admin,children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>n.push("".concat(m,"/admin")),children:[(0,Ap.jsx)(Wo,{children:(0,Ap.jsx)(Hn,{})}),(0,Ap.jsx)(Yo,{primary:b.admin})]},"Admin")})]}),a&&(0,Ap.jsx)(ms,{placement:"right-start",title:g?"":b.logout,children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>Sp.signOut().then((()=>n.push(m))),children:[(0,Ap.jsx)(Wo,{children:(0,Ap.jsx)(Wn,{})}),(0,Ap.jsx)(Yo,{primary:b.logout})]},"Logout")})]}),(0,Ap.jsx)(Jo,{}),_&&(0,Ap.jsx)("h5",{children:"Connected to development database"})]}),(0,Ap.jsxs)("main",{className:r.content,children:[(0,Ap.jsx)("div",{className:r.toolbar}),t]})]})}var Gb=n(3460),Vb=n.n(Gb),$b=n(7920),Kb=n.n($b),Yb=n(4697),Zb=n.n(Yb),Jb="bodyAttributes",Xb="htmlAttributes",ey="titleAttributes",ty={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},ny=(Object.keys(ty).map((function(e){return ty[e]})),"charset"),ry="cssText",iy="href",oy="http-equiv",ay="innerHTML",sy="itemprop",ly="name",cy="property",uy="rel",dy="src",py="target",hy={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},fy="defaultTitle",my="defer",gy="encodeSpecialCharacters",vy="onChangeClientState",by="titleTemplate",yy=Object.keys(hy).reduce((function(e,t){return e[hy[t]]=t,e}),{}),_y=[ty.NOSCRIPT,ty.SCRIPT,ty.STYLE],xy="data-react-helmet",wy="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},Ey=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},ky=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},Sy=function(e){var t=Iy(e,ty.TITLE),n=Iy(e,by);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Iy(e,fy);return t||r||void 0},Oy=function(e){return Iy(e,vy)||function(){}},Ay=function(e,t){return t.filter((function(t){return"undefined"!==typeof t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return Ty({},e,t)}),{})},jy=function(e,t){return t.filter((function(e){return"undefined"!==typeof e[ty.BASE]})).map((function(e){return e[ty.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},Ly=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout((function(){Ly(t)}),0)}}(),Ry=function(e){return clearTimeout(e)},Ny="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Ly:n.g.requestAnimationFrame||Ly,Dy="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Ry:n.g.cancelAnimationFrame||Ry,My=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},By=null,Qy=function(e,t){var n=e.baseTag,r=e.bodyAttributes,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,d=e.title,p=e.titleAttributes;zy(ty.BODY,r),zy(ty.HTML,i),Fy(d,p);var h={baseTag:qy(ty.BASE,n),linkTags:qy(ty.LINK,o),metaTags:qy(ty.META,a),noscriptTags:qy(ty.NOSCRIPT,s),scriptTags:qy(ty.SCRIPT,c),styleTags:qy(ty.STYLE,u)},f={},m={};Object.keys(h).forEach((function(e){var t=h[e],n=t.newTags,r=t.oldTags;n.length&&(f[e]=n),r.length&&(m[e]=h[e].oldTags)})),t&&t(),l(e,f,m)},Uy=function(e){return Array.isArray(e)?e.join(""):e},Fy=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=Uy(e)),zy(ty.TITLE,t)},zy=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(xy),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s=0;d--)n.removeAttribute(o[d]);i.length===o.length?n.removeAttribute(xy):n.getAttribute(xy)!==a.join(",")&&n.setAttribute(xy,a.join(","))}},qy=function(e,t){var n=document.head||document.querySelector(ty.HEAD),r=n.querySelectorAll(e+"["+xy+"]"),i=Array.prototype.slice.call(r),o=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===ay)n.innerHTML=t.innerHTML;else if(r===ry)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s="undefined"===typeof t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(xy,"true"),i.some((function(e,t){return a=t,n.isEqualNode(e)}))?i.splice(a,1):o.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),o.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:o}},Hy=function(e){return Object.keys(e).reduce((function(t,n){var r="undefined"!==typeof e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},Wy=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[hy[n]||n]=e[n],t}),t)},Gy=function(e,t,n){switch(e){case ty.TITLE:return{toComponent:function(){return function(e,t,n){var r,o=((r={key:t})[xy]=!0,r),a=Wy(n,o);return[i.createElement(ty.TITLE,a,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,n,r){var i=Hy(n),o=Uy(t);return i?"<"+e+" "+xy+'="true" '+i+">"+ky(o,r)+"":"<"+e+" "+xy+'="true">'+ky(o,r)+""}(e,t.title,t.titleAttributes,n)}};case Jb:case Xb:return{toComponent:function(){return Wy(t)},toString:function(){return Hy(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[xy]=!0,r);return Object.keys(t).forEach((function(e){var n=hy[e]||e;if(n===ay||n===ry){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),i.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!(e===ay||e===ry)})).reduce((function(e,t){var i="undefined"===typeof r[t]?t:t+'="'+ky(r[t],n)+'"';return e?e+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===_y.indexOf(e);return t+"<"+e+" "+xy+'="true" '+i+(a?"/>":">"+o+"")}),"")}(e,t,n)}}}},Vy=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.scriptTags,c=e.styleTags,u=e.title,d=void 0===u?"":u,p=e.titleAttributes;return{base:Gy(ty.BASE,t,r),bodyAttributes:Gy(Jb,n,r),htmlAttributes:Gy(Xb,i,r),link:Gy(ty.LINK,o,r),meta:Gy(ty.META,a,r),noscript:Gy(ty.NOSCRIPT,s,r),script:Gy(ty.SCRIPT,l,r),style:Gy(ty.STYLE,c,r),title:Gy(ty.TITLE,{title:d,titleAttributes:p},r)}},$y=function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.shouldComponentUpdate=function(e){return!Kb()(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case ty.SCRIPT:case ty.NOSCRIPT:return{innerHTML:t};case ty.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,i=e.newChildProps,o=e.nestedChildren;return Ty({},r,((t={})[n.type]=[].concat(r[n.type]||[],[Ty({},i,this.mapNestedChildrenToProps(n,o))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(r.type){case ty.TITLE:return Ty({},i,((t={})[r.type]=a,t.titleAttributes=Ty({},o),t));case ty.BODY:return Ty({},i,{bodyAttributes:Ty({},o)});case ty.HTML:return Ty({},i,{htmlAttributes:Ty({},o)})}return Ty({},i,((n={})[r.type]=Ty({},o),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=Ty({},t);return Object.keys(e).forEach((function(t){var r;n=Ty({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return i.Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,o=i.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[yy[n]||n]=e[n],t}),t)}(Cy(i,["children"]));switch(n.warnOnInvalidChildren(e,o),e.type){case ty.LINK:case ty.META:case ty.NOSCRIPT:case ty.SCRIPT:case ty.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:o})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=Cy(t,["children"]),o=Ty({},r);return n&&(o=this.mapChildrenToProps(n,o)),i.createElement(e,o)},Ey(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(i.Component),t.propTypes={base:ot().object,bodyAttributes:ot().object,children:ot().oneOfType([ot().arrayOf(ot().node),ot().node]),defaultTitle:ot().string,defer:ot().bool,encodeSpecialCharacters:ot().bool,htmlAttributes:ot().object,link:ot().arrayOf(ot().object),meta:ot().arrayOf(ot().object),noscript:ot().arrayOf(ot().object),onChangeClientState:ot().func,script:ot().arrayOf(ot().object),style:ot().arrayOf(ot().object),title:ot().string,titleAttributes:ot().object,titleTemplate:ot().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=Vy({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(Vb()((function(e){return{baseTag:jy([iy,py],e),bodyAttributes:Ay(Jb,e),defer:Iy(e,my),encode:Iy(e,gy),htmlAttributes:Ay(Xb,e),linkTags:Py(ty.LINK,[uy,iy],e),metaTags:Py(ty.META,[ly,ny,oy,cy,sy],e),noscriptTags:Py(ty.NOSCRIPT,[ay],e),onChangeClientState:Oy(e),scriptTags:Py(ty.SCRIPT,[dy,ay],e),styleTags:Py(ty.STYLE,[ry],e),title:Sy(e),titleAttributes:Ay(ey,e)}}),(function(e){By&&Dy(By),e.defer?By=Ny((function(){Qy(e,(function(){By=null}))})):(Qy(e),By=null)}),Vy)((function(){return null})));$y.renderStatic=$y.rewind;var Ky=[0,1,2,3,4,5,6,7,8,9,10],Yy=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function Zy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var Jy=i.forwardRef((function(e,t){var n=e.alignContent,r=void 0===n?"stretch":n,o=e.alignItems,a=void 0===o?"stretch":o,s=e.classes,l=e.className,c=e.component,u=void 0===c?"div":c,d=e.container,p=void 0!==d&&d,h=e.direction,f=void 0===h?"row":h,m=e.item,g=void 0!==m&&m,v=e.justify,b=e.justifyContent,y=void 0===b?"flex-start":b,_=e.lg,x=void 0!==_&&_,w=e.md,E=void 0!==w&&w,T=e.sm,C=void 0!==T&&T,k=e.spacing,S=void 0===k?0:k,O=e.wrap,A=void 0===O?"wrap":O,j=e.xl,P=void 0!==j&&j,I=e.xs,L=void 0!==I&&I,R=e.zeroMinWidth,N=void 0!==R&&R,D=(0,Yn.c)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),M=(0,kn.c)(s.root,l,p&&[s.container,0!==S&&s["spacing-xs-".concat(String(S))]],g&&s.item,N&&s.zeroMinWidth,"row"!==f&&s["direction-xs-".concat(String(f))],"wrap"!==A&&s["wrap-xs-".concat(String(A))],"stretch"!==a&&s["align-items-xs-".concat(String(a))],"stretch"!==r&&s["align-content-xs-".concat(String(r))],"flex-start"!==(v||y)&&s["justify-content-xs-".concat(String(v||y))],!1!==L&&s["grid-xs-".concat(String(L))],!1!==C&&s["grid-sm-".concat(String(C))],!1!==E&&s["grid-md-".concat(String(E))],!1!==x&&s["grid-lg-".concat(String(x))],!1!==P&&s["grid-xl-".concat(String(P))]);return i.createElement(u,(0,at.c)({className:M,ref:t},D))})),Xy=(0,Gn.c)((function(e){return(0,at.c)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return Ky.forEach((function(r){var i=e.spacing(r);0!==i&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(Zy(i,2)),width:"calc(100% + ".concat(Zy(i),")"),"& > $item":{padding:Zy(i,2)}})})),n}(e,"xs"),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};Yy.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var i="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:i,flexGrow:0,maxWidth:i}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?(0,at.c)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(Jy);const e_=Xy;var t_=44,n_=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,a=void 0===o?"primary":o,s=e.disableShrink,l=void 0!==s&&s,c=e.size,u=void 0===c?40:c,d=e.style,p=e.thickness,h=void 0===p?3.6:p,f=e.value,m=void 0===f?0:f,g=e.variant,v=void 0===g?"indeterminate":g,b=(0,Yn.c)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),y={},_={},x={};if("determinate"===v||"static"===v){var w=2*Math.PI*((t_-h)/2);y.strokeDasharray=w.toFixed(3),x["aria-valuenow"]=Math.round(m),y.strokeDashoffset="".concat(((100-m)/100*w).toFixed(3),"px"),_.transform="rotate(-90deg)"}return i.createElement("div",(0,at.c)({className:(0,kn.c)(n.root,r,"inherit"!==a&&n["color".concat((0,Zn.c)(a))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[v]),style:(0,at.c)({width:u,height:u},_,d),ref:t,role:"progressbar"},x,b),i.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(t_," ").concat(t_)},i.createElement("circle",{className:(0,kn.c)(n.circle,l&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[v]),style:y,cx:t_,cy:t_,r:(t_-h)/2,fill:"none",strokeWidth:h})))}));const r_=(0,Gn.c)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(n_);var i_=n(78),o_=n(7792),a_=n(9928);const s_=function(e){var t=e.children,n=e.theme,r=(0,jn.c)(),o=i.useMemo((function(){var e=null===r?n:function(e,t){return"function"===typeof t?t(e):(0,at.c)({},e,t)}(r,n);return null!=e&&(e[a_.c]=null!==r),e}),[n,r]);return i.createElement(o_.c.Provider,{value:o},t)};var l_=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.color,s=void 0===a?"default":a,l=e.component,c=void 0===l?"button":l,u=e.disabled,d=void 0!==u&&u,p=e.disableElevation,h=void 0!==p&&p,f=e.disableFocusRipple,m=void 0!==f&&f,g=e.endIcon,v=e.focusVisibleClassName,b=e.fullWidth,y=void 0!==b&&b,_=e.size,x=void 0===_?"medium":_,w=e.startIcon,E=e.type,T=void 0===E?"button":E,C=e.variant,k=void 0===C?"text":C,S=(0,Yn.c)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),O=w&&i.createElement("span",{className:(0,kn.c)(r.startIcon,r["iconSize".concat((0,Zn.c)(x))])},w),A=g&&i.createElement("span",{className:(0,kn.c)(r.endIcon,r["iconSize".concat((0,Zn.c)(x))])},g);return i.createElement(Er,(0,at.c)({className:(0,kn.c)(r.root,r[k],o,"inherit"===s?r.colorInherit:"default"!==s&&r["".concat(k).concat((0,Zn.c)(s))],"medium"!==x&&[r["".concat(k,"Size").concat((0,Zn.c)(x))],r["size".concat((0,Zn.c)(x))]],h&&r.disableElevation,d&&r.disabled,y&&r.fullWidth),component:c,disabled:d,focusRipple:!m,focusVisibleClassName:(0,kn.c)(r.focusVisible,v),ref:t,type:T},S),i.createElement("span",{className:r.label},O,n,A))}));const c_=(0,Gn.c)((function(e){return{root:(0,at.c)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,or.W4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,or.W4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,or.W4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,or.W4)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,or.W4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,or.W4)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,or.W4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(l_),u_=(0,In.c)(i.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");var d_,p_=new Uint8Array(16);function h_(){if(!d_&&!(d_="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return d_(p_)}const f_=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const m_=function(e){return"string"===typeof e&&f_.test(e)};for(var g_=[],v_=0;v_<256;++v_)g_.push((v_+256).toString(16).substr(1));const b_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(g_[e[t+0]]+g_[e[t+1]]+g_[e[t+2]]+g_[e[t+3]]+"-"+g_[e[t+4]]+g_[e[t+5]]+"-"+g_[e[t+6]]+g_[e[t+7]]+"-"+g_[e[t+8]]+g_[e[t+9]]+"-"+g_[e[t+10]]+g_[e[t+11]]+g_[e[t+12]]+g_[e[t+13]]+g_[e[t+14]]+g_[e[t+15]]).toLowerCase();if(!m_(n))throw TypeError("Stringified UUID is invalid");return n};const y_=function(e,t,n){var r=(e=e||{}).random||(e.rng||h_)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return b_(r)};function __(e){return JSON.parse(JSON.stringify(e))}function x_(e,t){return JSON.stringify(e)===JSON.stringify(t)}function w_(e){if("object"===typeof e&&"0"===Object.keys(e)[0]){const t=Object.entries(e).map((e=>{let[,t]=e;return Object.keys(t).forEach((e=>{try{t[e]=w_(t[e])}catch(gh){if(gh instanceof TypeError)return t[e]}return t[e]})),t}));return t}return e}function E_(e){if(!e)return null;const t=__(e);return Object.keys(t).forEach((n=>{t[n]=w_(t[n]),e.keywords&&(t.keywords={en:Object.values(e.keywords.en||{}),fr:Object.values(e.keywords.fr||{})})})),t.contacts&&Object.values(t.contacts).forEach((e=>{e.role&&(e.role=Object.values(e.role))})),t}const T_=(e,t)=>"string"===typeof t?t.trim():t;function C_(e){return"".concat(e.title[e.language].slice(0,30),"_").concat(e.identifier.slice(0,5)).trim().toLowerCase().replace(/[^a-zA-Z0-9]/g,"_")}const k_=e=>[...new Set(e)],S_={title:{en:"",fr:""},abstract:{en:"",fr:""},keywords:{en:[],fr:[]},eov:[],progress:"",distribution:[],dateStart:null,dateEnd:null,map:{north:"",south:"",east:"",west:"",polygon:""},verticalExtentMin:"",verticalExtentMax:"",datePublished:null,dateRevised:null,edition:"",recordID:"",instruments:[],platforms:[],language:"",license:"",contacts:[],status:"",comment:"",limitations:"",lastEditedBy:{},category:"",verticalExtentDirection:"",datasetIdentifier:"",doiCreationStatus:"",noPlatform:!1,filename:"",organization:"",timeFirstPublished:"",history:[],associated_resources:[]};function O_(){const e=__(S_);return e.identifier=y_(),e.created=(new Date).toISOString(),e}const A_={role:[],orgName:"",orgEmail:"",orgURL:"",orgAdress:"",orgCity:"",orgCountry:"",orgRor:"",indPosition:"",indEmail:"",indOrcid:"",givenNames:"",lastName:"",inCitation:!0};function j_(){return __(A_)}const P_={id:"",manufacturer:"",version:"",type:{en:"",fr:""},description:{en:"",fr:""}};function I_(){return __(P_)}const L_={type:"",id:"",description:{en:"",fr:""}};function R_(){return __(L_)}async function N_(e,t,n,r){const i=Bb(Cp),o=xb(i,"".concat(r,"/users/").concat(t,"/records")),a=(await Sb(wb(o,e))).val();a.recordID="",a.status="",a.lastEditedBy={},a.created=(new Date).toISOString(),a.filename="",a.timeFirstPublished="",a.title.en&&(a.title.en="".concat(a.title.en," (Copy)")),a.title.fr&&(a.title.fr="".concat(a.title.fr," (Copte)")),a.identifier=y_(),a.created=(new Date).toISOString();Eb(xb(i,"".concat(r,"/users/").concat(n,"/records")),a)}function D_(e){return{...j_(),...e}}function M_(e,t,n,r){const i={...O_(),...e};return r&&(i.recordID=r),t&&n&&(i.userinfo={...null===t||void 0===t?void 0:t.userinfo,userID:n}),i.contacts=i.contacts.map(D_),i}function B_(e,t){const n=e.toJSON(),r=[];return Object.entries(n).forEach((e=>{let[n,i]=e;i.records&&Object.entries(i.records).forEach((e=>{let[o,a]=e;t.includes(a.status)&&r.push(M_(E_(a),i,n,o))}))})),r}async function Q_(e,t,n,r,i){const o=xb(Bb(Cp),"".concat(e,"/users/").concat(t,"/records/").concat(n));if(await Cb(wb(o,"status"),r),"published"===r&&await Cb(wb(o,"timeFirstPublished"),(new Date).toISOString()),i&&!i.filename){const e=C_(i);await Cb(wb(o,"filename"),e)}}function U_(e,t,n){return Tb(xb(Bb(Cp),"".concat(e,"/users/").concat(t,"/records/").concat(n)))}async function F_(e){const t=Bb(Cp);return Object.values((await Sb(xb(t,"admin/".concat(e,"/projects")))).toJSON()||{})}const z_=e=>Object.entries(e||{}).reduce(((e,t)=>{let[n,r]=t;return e[n]=M_(E_(__(r))),e}),{});async function q_(e,t,n,r,i){const o=xb(Bb(Cp),"".concat(r,"/shares/").concat(e,"/").concat(n,"/").concat(t));i?await Cb(o,{shared:!0}).catch((t=>{throw new Error("Error sharing record by author ".concat(n," with user ").concat(e,": ").concat(t))})):await Tb(o).catch((t=>{throw new Error("Error unsharing record by author ".concat(n," with user ").concat(e,": ").concat(t))}))}function H_(){return Math.round(20*Math.random())-10}function W_(){const e=50+H_(),t=50+H_();return{top:"".concat(e,"%"),left:"".concat(t,"%"),transform:"translate(-".concat(e,"%, -").concat(t,"%)")}}const G_=An((e=>({paper:{position:"absolute",width:400,backgroundColor:e.palette.background.paper,border:"2px solid #000",boxShadow:e.shadows[5],padding:e.spacing(2,4,3)}})));function V_(e){let{open:t,onClose:n,onAccept:r,modalQuestion:o}=e;const a=G_(),[s]=i.useState(W_);return(0,Ap.jsx)("div",{children:(0,Ap.jsx)(ti,{open:t,onClose:n,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",onKeyPress:e=>{"y"===e.key&&(n(),r())},children:(0,Ap.jsxs)("div",{style:s,className:a.paper,children:[(0,Ap.jsx)("h2",{id:"simple-modal-title",children:o||(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Are you sure?"}),(0,Ap.jsx)(Ip,{children:"Vous \xeates s\xfbr ?"})]})}),(0,Ap.jsx)("button",{type:"button",onClick:()=>{n(),r()},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Yes"}),(0,Ap.jsx)(Ip,{children:"Oui"})]})}),(0,Ap.jsx)("button",{type:"button",onClick:()=>n(),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"No"}),(0,Ap.jsx)(Ip,{children:"Non"})]})})]})})})}var $_=n(3948),K_=n.n($_),Y_=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=(0,Yn.c)(e,["classes","className"]),a=i.useContext(Ti);return i.createElement("div",(0,at.c)({className:(0,kn.c)(n.root,r,"flex-start"===a.alignItems&&n.alignItemsFlexStart),ref:t},o))}));const Z_=(0,Gn.c)({root:{minWidth:56,flexShrink:0},alignItemsFlexStart:{marginTop:8}},{name:"MuiListItemAvatar"})(Y_);var J_=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=(0,Yn.c)(e,["classes","className"]);return i.createElement("div",(0,at.c)({className:(0,kn.c)(n.root,r),ref:t},o))}));J_.muiName="ListItemSecondaryAction";const X_=(0,Gn.c)({root:{position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"}},{name:"MuiListItemSecondaryAction"})(J_),ex=(0,In.c)(i.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility"),tx=(0,In.c)(i.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit"),nx=(0,In.c)(i.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),rx=(0,In.c)(i.createElement("path",{d:"M5 4v2h14V4H5zm0 10h4v6h6v-6h4l-7-7-7 7z"}),"Publish"),ix=(0,In.c)(i.createElement("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject"),ox=(0,In.c)(i.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy"),ax=(0,In.c)(i.createElement("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"}),"CloudDownload"),sx=(0,In.c)(i.createElement("path",{d:"M16.49 15.5v-1.75L14 16.25l2.49 2.5V17H22v-1.5zm3.02 4.25H14v1.5h5.51V23L22 20.5 19.51 18zM9.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5.75 8.9L3 23h2.1l1.75-8L9 17v6h2v-7.55L8.95 13.4l.6-3C10.85 12 12.8 13 15 13v-2c-1.85 0-3.45-1-4.35-2.45l-.95-1.6C9.35 6.35 8.7 6 8 6c-.25 0-.5.05-.75.15L2 8.3V13h2V9.65l1.75-.75"}),"TransferWithinAStation"),lx=(0,In.c)(i.createElement("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNew"),cx=n.p+"static/media/emlTemplate.c7cac6e90d63ddf2962e.j2",ux=n.p+"static/media/emlCoverage.ba6b51994dacf1f20971.j2";var dx=n(3616),px=n.n(dx);function hx(e,t,n){const{title:r,datasetIdentifier:i="",created:o,contacts:a=[],datePublished:s,dateRevised:l,metadataScope:c}=e,u=a.filter((e=>e.inCitation&&e.role.includes("publisher"))).map((e=>e.orgName)),d=[{title:r[t],author:a.filter((e=>!(e.role.includes("publisher")&&1===e.role.length))).filter((e=>{var t,n,r;return e.inCitation&&((null===(t=e.givenNames)||void 0===t?void 0:t.length)>1&&(null===(n=e.lastName)||void 0===n?void 0:n.length)>1||(null===(r=e.orgName)||void 0===r?void 0:r.length)>1)})).map((e=>{var t,n;return(null===(t=e.givenNames)||void 0===t?void 0:t.length)>1&&(null===(n=e.lastName)||void 0===n?void 0:n.length)>1?{given:e.givenNames,family:e.lastName}:{family:e.orgName}})),issued:{"date-parts":[[l||s||o]]},publisher:u.join(", "),DOI:i.replace(/https?:\/\/doi\.org\//,""),version:"v".concat(e.edition),type:c}];try{const e=px()(d);return e.format("bibliography",{format:n,template:"apa",lang:"en-US"})}catch(p){return""}}function fx(e){let{record:t,language:n}=e;const r=hx(t,n,"html");return(0,Ap.jsx)("div",{children:(0,Ap.jsx)("div",{dangerouslySetInnerHTML:{__html:r},style:{padding:"5px"}})})}const mx=n(6411);function gx(e,t){return e.some((e=>t.includes(e)))}function vx(e){return e}const bx={creator:["author","originator"],metadataProvider:["distributor","custodian"],associatedParty:["principalInvestigator","editor"]};const yx=async function(e){mx.configure(window.location.origin,{autoescape:!0,web:!0});let t=await fetch(cx).then((e=>e.text()));const n=await fetch(ux).then((e=>e.text()));return t=t.replace("{% include 'emlCoverage.j2' %}",n),mx.renderString(t,{record:e,translateRole:vx,arrayOverlap:gx,citation:hx(e,e.language,"text"),roleMapping:bx,roleMappingKeys:Object.keys(bx)})};var _x=n(5740),xx=n.n(_x);const wx={"CC-BY-4.0":{title:{en:"Creative Commons Attribution 4.0 Attribution"},url:"https://creativecommons.org/licenses/by/4.0",code:"CC-BY-4.0"},"CC-BY-SA-4.0":{title:{en:"Creative Commons Attribution 4.0 Attribution-ShareAlike"},url:"https://creativecommons.org/licenses/by-sa/4.0/",code:"CC-BY-SA-4.0"},"CC-BY-ND-4.0":{title:{en:"Creative Commons Attribution 4.0 Attribution-NoDerivs"},url:"https://creativecommons.org/licenses/by-nd/4.0/",code:"CC-BY-ND-4.0"},"CC-BY-NC-4.0":{title:{en:"Creative Commons Attribution 4.0 Attribution-NonCommercial"},url:"https://creativecommons.org/licenses/by-nc/4.0/",code:"CC-BY-NC-4.0"},"CC-BY-NC-SA-4.0":{title:{en:"Creative Commons Attribution 4.0 Attribution-NonCommercial-ShareAlike"},url:"https://creativecommons.org/licenses/by-nc-sa/4.0/",code:"CC-BY-NC-SA-4.0"},"CC-BY-NC-ND-4.0":{title:{en:"Creative Commons Attribution 4.0 Attribution-NonCommercial-NoDerivs"},url:"https://creativecommons.org/licenses/by-nc-nd/4.0/",code:"CC-BY-NC-ND-4.0"},CC0:{title:{en:"Creative Commons 0"},url:"https://creativecommons.org/share-your-work/public-domain/cc0",code:"CC0"},"government-open-license-canada":{title:{en:"Open Government Licence - Canada",fr:"Licence du gouvernement ouvert \u2013 Canada "},url:"https://open.canada.ca/en/open-government-licence-canada",code:"government-open-license-canada"},"government-open-license-nova-scotia":{title:{en:"Open Government Licence - Nova Scotia"},url:"https://novascotia.ca/opendata/licence.asp",code:"government-open-license-nova-scotia"},"OGL-NB":{title:{en:"Open Government Licence \u2013 New Brunswick"},url:"http://www.snb.ca/e/2000/data-E.html",code:"OGL-NB"},"OGL-BC":{title:{en:"Open Government Licence - British Columbia"},url:"https://www2.gov.bc.ca/gov/content/data/open-data/open-government-licence-bc",code:"OGL-BC"},"government-open-license-newfoundland":{title:{en:"Open Government Licence - Newfoundland and Labrador"},url:"https://opendata.gov.nl.ca/public/opendata/page/?page-id=licence",code:"government-open-license-newfoundland"},"Apache-2.0":{title:{en:"Apache License, Version 2.0"},url:"https://www.apache.org/licenses/LICENSE-2.0",code:"Apache-2.0"},"No License":{title:{en:"No License",fr:"Aucune licence"},url:"https://choosealicense.com/no-permission/",code:"None"},"ca-eccc-odl":{title:{en:"Environment and Climate Change Canada Data Servers End-use Licence",fr:"Licence d\u2019utilisation finale pour les serveurs de donn\xe9es d\u2019Environnement et Changement climatique Canada"},url:"https://eccc-msc.github.io/open-data/licence/readme_en/",code:"ca-eccc-odl"}};function Ex(e,t){return e.some((e=>t.includes(e)))}const Tx=function(e){var t,n,r,i,o,a;const{contacts:s,language:l}=e,c=s.find((e=>Ex(e.role,["publisher","custodian"]))),u=s.find((e=>Ex(e.role,["orginator","owner"]))),d={citation:hx(e,e.language,"text"),creator_email:null===u||void 0===u?void 0:u.indEmail,creator_name:null===u||void 0===u?void 0:u.indName,creator_url:null===u||void 0===u?void 0:u.orgURL,creator_institution:null===u||void 0===u?void 0:u.orgName,publisher_email:null===c||void 0===c?void 0:c.indEmail,publisher_institution:null===c||void 0===c?void 0:c.orgName,publisher_url:null===c||void 0===c?void 0:c.orgURL,publisher_name:null===c||void 0===c?void 0:c.indName,date_created:(p=e.created,p.slice(0,10)),geospatial_lat_max:null===(t=e.map)||void 0===t?void 0:t.north,geospatial_lat_min:null===(n=e.map)||void 0===n?void 0:n.south,geospatial_lon_max:null===(r=e.map)||void 0===r?void 0:r.east,geospatial_lon_min:null===(i=e.map)||void 0===i?void 0:i.west,geospatial_vertical_min:e.verticalExtentMin,geospatial_vertical_max:e.verticalExtentMax,institution:s.map((e=>e.orgName)).filter((e=>e)).join(),project:null===(o=e.projects)||void 0===o?void 0:o.join(),product_version:e.edition,license:(null===(a=wx[e.license])||void 0===a?void 0:a.url)||e.license,instrument:e.instruments.map((e=>[e.manufacturer,e.id,e.version].join(" - "))).filter((e=>e)).join(),id:e.identifier,naming_authority:"ca.cioos",references:"https://doi.org/".concat(e.datasetIdentifier),keywords:e.keywords[l],platform:e.platform,platform_vocabulary:e.platform&&"http://vocab.nerc.ac.uk/collection/L06/current/",summary:e.abstract[l],title:e.title[l]};var p;const h=Object.entries(d).filter((e=>{let[,t]=e;return t})).map((e=>{let[t,n]=e;return' ').concat(xx()(String(n)),"")})).join("\n");return"\n/your/waf/".concat(e.filename||C_(e),".xml\n\n").concat(h,"\n")};var Cx=n(7152),kx=n.n(Cx);const Sx=e=>!e||kx().isEmail(e),Ox=e=>!e||kx().isURL(e),Ax=Zp(Yp(),"checkURLActive"),jx=/^(https:\/\/doi.org\/)?10\.\d{4,9}\/[-._;()/:A-Z0-9]+$/i;const Px=e=>!e||jx.test(e)&&function(e){let t;try{t=new URL(e)}catch(n){return!1}return"http:"===t.protocol||"https:"===t.protocol}(e),Ix=e=>e>=-90&&e<=90,Lx=e=>e>=-360&&e<=360,Rx=e=>{const t=e.split(" ").map((e=>e.split(",")));return!(t.length<2)&&(n=t[0],r=t[t.length-1],!!JSON.parse(JSON.stringify(n)===JSON.stringify(r))&&t.filter((e=>{let[t,n]=e;return Lx(parseFloat(n))&&Ix(parseFloat(t))})).length===t.length);var n,r},Nx=e=>Boolean(e.role&&e.role.length&&(e.orgName||e.givenNames||e.lastName)),Dx={title:{validation:e=>e&&e.en&&e.fr,tab:"start",error:{en:"Missing title in French or English",fr:"Titre manquant en fran\xe7ais ou en anglais"}},resourceType:{validation:e=>e,tab:"start",error:{en:"Please select a theme for this record",fr:"Veuillez s\xe9lectionner un th\xe8me pour cet enregistrement"}},abstract:{validation:e=>e&&e.en&&e.fr,tab:"dataID",error:{en:"Missing abstract in French or English",fr:"Abr\xe9g\xe9 manquant en fran\xe7ais ou en anglais"}},keywords:{validation:e=>e&&(e.en.length||e.fr.length),tab:"dataID",error:{en:"At least one keyword is required",fr:"Au moins un mot cl\xe9 est requis"}},eov:{validation:e=>e&&e.length,tab:"dataID",error:{en:"At least one EOV is required",fr:"Au moins un variable essentielle oc\xe9anique est requise"}},datasetIdentifier:{validation:Px,optional:!0,tab:"start",error:{en:"Invalid DOI",fr:"DOI non valide"}},metadataScope:{tab:"start",validation:e=>e,error:{en:"Please select a resource type",fr:"Veuillez s\xe9lectionner un type de ressources"}},progress:{tab:"dataID",validation:e=>e,error:{en:"Please select a dataset status",fr:"L'information spatiale est manquante"}},language:{tab:"dataID",validation:e=>e,error:{en:"Language field is missing",fr:"Le champ de langue est vide"}},license:{tab:"dataID",validation:e=>e,error:{en:"Please select a license for the dataset",fr:"Veuillez s\xe9lectionner une licence pour le jeu de donn\xe9es"}},map:{error:{en:"Spatial information is missing",fr:"L'information g\xe9ographique est manquante"},tab:"spatial",validation:(e,t)=>{if(!e)return!1;const n=parseFloat(e.north),r=parseFloat(e.south),i=parseFloat(e.east),o=parseFloat(e.west),{polygon:a,description:s}=e;return n&&r&&i&&o&&n>=r&&i>=o&&Ix(n)&&Ix(r)&&Lx(i)&&Lx(o)||a&&Rx(a)||!t.resourceType||Array.isArray(t.resourceType)&&t.resourceType.includes("biological")&&s}},verticalExtentMin:{tab:"spatial",validation:(e,t)=>e||t.noVerticalExtent,error:{en:"Missing Vertical Extent Min",fr:"\xc9tendue verticale manquante Min"}},verticalExtentMax:{tab:"spatial",validation:(e,t)=>e||t.noVerticalExtent,error:{en:"Missing Vertical Extent Max",fr:"\xc9tendue verticale manquante Max"}},verticalExtentDirection:{tab:"spatial",validation:(e,t)=>e||t.noVerticalExtent,error:{en:"Missing Vertical Extent Direction",fr:"Direction de l'\xe9tendue verticale manquante"}},contacts:{tab:"contacts",validation:e=>e&&e.every(Nx)&&e.every((e=>Sx(e.indEmail)&&Sx(e.orgEmail)&&Ox(e.orgURL)))&&e.filter(Nx).find((e=>e.role.includes("custodian")))&&e.filter(Nx).find((e=>e.role.includes("owner")))&&e.filter(Nx).find((e=>e.inCitation)),error:{en:"Every contact must have at least one role checked, and 'Data Owner' or 'Metadata Custodian' must be added to at least one contact. One contact can occupy multiple roles. Email addresses must be in the form of user@example.com and URLs must be valid. At least one contact must be selected to appear in the citation.",fr:"Chaque contact doit avoir au moins un r\xf4le coch\xe9, et \xab Propri\xe9taire des donn\xe9es \xbb ou \xab D\xe9positaire des m\xe9tadonn\xe9es \xbb doit \xeatre ajout\xe9 \xe0 au moins un contact. Un contact peut occuper plusieurs r\xf4les. Les adresses e-mail doivent \xeatre au format user@example.com et les URL doivent \xeatre valides. Au moins un contact doit \xeatre s\xe9lectionn\xe9 pour appara\xeetre dans la citation."}},distribution:{tab:"resources",validation:e=>Array.isArray(e)&&e.filter((e=>e.name&&e.url&&kx().isURL(e.url))).length,error:{en:"Must have at least one resource. If a URL is included it must be valid.",fr:"Doit avoir au moins une ressource. V\xe9rifiez si votre URL est valide."}},associated_resources:{tab:"relatedworks",validation:e=>!e||e&&e.every((e=>e.title&&e.title.en&&e.title.fr&&e.authority&&e.code&&e.association_type)),error:{en:"Related works must contain a Title, Identifier, Identifier Type, and a Relation Type to be valid.",fr:"Les \u0153uvres connexes doivent contenir un titre, un identifiant, un type d'identifiant et un type de relation pour \xeatre valides."}},history:{tab:"lineage",validation:e=>!e||Array.isArray(e)&&e.every((e=>!e.processingStep||e.processingStep&&e.processingStep.every((e=>e.title&&e.description))))&&e.every((e=>!e.source||e.source&&e.source.every((e=>e.title&&e.description))))&&e.every((e=>"collectionSession"!==e.scope||"collectionSession"===e.scope&&e.statement.en&&e.statement.fr)),error:{en:"Lineage must contain a title and description for each processing step and source. If lineage scope is set to 'data collection' then lineage statement is required",fr:"Le lignage doit contenir un titre et une description pour chaque \xe9tape de traitement. Si la port\xe9e du lignage est d\xe9finie sur \xab collecte de donn\xe9es \xbb, alors une d\xe9claration de lignage est requise"}},platforms:{tab:"platform",validation:(e,t)=>t.noPlatform||e.every((e=>e.type&&e.id))||!t.metadataScope||"model"===t.metadataScope,error:{en:"Missing platform type or ID",fr:"Type ou ID de plateforme manquant"}},instruments:{tab:"platformInstruments",validation:e=>e.every((e=>e.id)),error:{en:"Instrument ID is required",fr:"L'identifiant de l'instrument est requis"}},taxa:{tab:"taxa",validation:(e,t)=>t.noTaxa||e,error:{en:"Missing Taxonomic Coverage",fr:"Couverture taxonomique manquante"}}},Mx=(e,t)=>{const n=e[t],r=Dx[t]&&Dx[t].validation||(()=>!0);return r&&r(n,e)},Bx={distribution:{tab:"resources",validation:async e=>{const t=await Promise.all(e.map((async e=>{const t=await Ax(e.url);return{...e,status:t.data}}))),n=t.filter((e=>!e.status));return n.length},error:{en:"Resource URL is not accessible. This could be because it has not been created yet or is otherwise unreachable",fr:"L'URL de la ressource n'est pas accessible. Cela peut \xeatre d\xfb au fait qu'il n'a pas encore \xe9t\xe9 cr\xe9\xe9 ou qu'il est autrement inaccessible."}}},Qx=e=>{const t=Object.keys(Dx),n=t.filter((e=>!Dx[e].optional)).length;return t.filter((t=>!Dx[t].optional&&Mx(e,t))).length/n},Ux=e=>{const t=Object.entries(Dx).filter((e=>{let[,t]=e;return t.optional})).every((t=>{let[n]=t;return Mx(e,n)}));return 1===Qx(e)&&t};const Fx=function(e,t,n,r){const i=e.contacts?e.contacts.reduce(((e,t)=>{let n;if(t.inCitation&&!t.role.includes("publisher")){const{givenNames:e,lastName:r,orgName:i,indOrcid:o,orgRor:a}=t;e&&(n={name:"".concat(r,", ").concat(e),nameType:"Personal",givenName:e,familyName:r,affiliation:i?[{name:i,schemeUri:"https://ror.org",affiliationIdentifier:a,affiliationIdentifierScheme:"ROR"}]:[]},o&&(n.nameIdentifiers=[{schemeUri:"https://orcid.org",nameIdentifier:o,nameIdentifierScheme:"ORCID"}]))}return n&&e.push(n),e}),[]):[],o=e.contacts.find((e=>e.role.includes("publisher"))),a=e.contacts.filter((e=>e.role.includes("funder")));let s;if(e.dateRevised){const t=parseInt(e.dateRevised.slice(0,4),10);s=Number.isNaN(t)?void 0:t}else if(e.datePublished){const t=parseInt(e.datePublished.slice(0,4),10);s=Number.isNaN(t)?void 0:t}else s=void 0;const l=e.keywords?Object.entries(e.keywords).flatMap((e=>{let[t,n]=e;return n.map((e=>({lang:t,subject:e})))})):void 0,c=[];e.dateStart&&c.push({date:e.dateStart,dateType:"Collected",dateInformation:"Start date when data was first collected"}),e.dateEnd&&c.push({date:e.dateEnd,dateType:"Collected",dateInformation:"End date when data was last collected"}),e.dateRevised&&c.push({date:e.dateRevised,dateType:"Updated",dateInformation:"Date when the data was last revised"});const u=wx[e.license],d=u&&u.title?[{rights:u.title.en,rightsUri:u.url,schemeUri:"https://spdx.org/licenses/",rightsIdentifier:u.code,rightsIdentifierScheme:"SPDX"}]:[];let{east:p,north:h,south:f,west:m}=e.map?e.map:{};p=Number.isNaN(p)?void 0:p,h=Number.isNaN(h)?void 0:h,f=Number.isNaN(f)?void 0:f,m=Number.isNaN(m)?void 0:m;const g=e.map&&p&&h&&f&&m?[{geoLocationBox:{eastBoundLongitude:parseFloat(p),northBoundLatitude:parseFloat(h),southBoundLatitude:parseFloat(f),westBoundLongitude:parseFloat(m)}}]:[],v={data:{type:"dois",attributes:{prefix:r,creators:i,titles:[]}}};return e.title.en&&v.data.attributes.titles.push({lang:"en",title:e.title.en}),e.title.fr&&v.data.attributes.titles.push({lang:"fr",title:e.title.fr}),o&&(v.data.attributes.publisher=o.orgName||o.indName),a&&a.length>0&&(v.data.attributes.fundingReferences=a.map((e=>{const t={funderName:e.orgName};return e.orgRor&&(t.funderIdentifier=e.orgRor,t.funderIdentifierType="ROR"),t}))),e.datePublished&&(v.data.attributes.publicationYear=s),e.keywords&&(v.data.attributes.subjects=l),e.edition&&(v.data.attributes.version=e.edition),c.length>0&&(v.data.attributes.dates=c),v.data.attributes.rightsList=d,delete e.abstract.translations,v.data.attributes.descriptions=Object.entries(e.abstract).map((e=>{let[t,n]=e;return{lang:t,description:n,descriptionType:"Abstract"}})),e.map&&(v.data.attributes.geoLocations=g),v.data.attributes.types={resourceTypeGeneral:e.metadataScope||"Dataset"},e.associated_resources&&(v.data.attributes.relatedIdentifiers=[...e.associated_resources.map((e=>{let{authority:t,code:n,association_type:r}=e;return{relatedIdentifier:n,relatedIdentifierType:t,relationType:r}}))]),e.history&&(v.data.attributes.relatedIdentifiers=[...v.data.attributes.relatedIdentifiers,...e.history.flatMap((e=>{let{source:t,processingStep:n,additionalDocumentation:r}=e;return[...(null===t||void 0===t?void 0:t.map((e=>{let{authority:t,code:n}=e;return{relatedIdentifier:n,relatedIdentifierType:t,relationType:"isDerivedFrom"}})))||[],...(null===n||void 0===n?void 0:n.map((e=>{let{authority:t,code:n}=e;return{relatedIdentifier:n,relatedIdentifierType:t,relationType:"IsDocumentedBy"}})))||[],...(null===r||void 0===r?void 0:r.map((e=>{let{authority:t,code:n}=e;return{relatedIdentifier:n,relatedIdentifierType:t,relationType:"IsDocumentedBy"}})))||[]]}))]),v.data.attributes.relatedIdentifiers&&(v.data.attributes.relatedIdentifiers=v.data.attributes.relatedIdentifiers.filter((e=>e.relatedIdentifier&&e.relatedIdentifierType))),v.data.attributes.url="".concat(Cn[n].catalogueURL[t],"dataset/ca-cioos_").concat(e.identifier),v};var zx="en",qx={},Hx={};function Wx(){return zx}function Gx(e){return qx[e]?e:Hx[e.toLowerCase()]?Hx[e.toLowerCase()]:void 0}function Vx(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).localeMatcher||"lookup";switch(t){case"lookup":case"best fit":return $x(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(t))}}function $x(e){var t=Gx(e);if(t)return t;for(var n=e.split("-");e.length>1;){n.pop();var r=Gx(e=n.join("-"));if(r)return r}}var Kx={af:function(e){return 1==e?"one":"other"},am:function(e){return e>=0&&e<=1?"one":"other"},ar:function(e){var t=String(e).split("."),n=Number(t[0])==e&&t[0].slice(-2);return 0==e?"zero":1==e?"one":2==e?"two":n>=3&&n<=10?"few":n>=11&&n<=99?"many":"other"},ast:function(e){var t=!String(e).split(".")[1];return 1==e&&t?"one":"other"},be:function(e){var t=String(e).split("."),n=Number(t[0])==e,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2);return 1==r&&11!=i?"one":r>=2&&r<=4&&(i<12||i>14)?"few":n&&0==r||r>=5&&r<=9||i>=11&&i<=14?"many":"other"},br:function(e){var t=String(e).split("."),n=Number(t[0])==e,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2),o=n&&t[0].slice(-6);return 1==r&&11!=i&&71!=i&&91!=i?"one":2==r&&12!=i&&72!=i&&92!=i?"two":(3==r||4==r||9==r)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=e&&n&&0==o?"many":"other"},bs:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",i=!t[1],o=n.slice(-1),a=n.slice(-2),s=r.slice(-1),l=r.slice(-2);return i&&1==o&&11!=a||1==s&&11!=l?"one":i&&o>=2&&o<=4&&(a<12||a>14)||s>=2&&s<=4&&(l<12||l>14)?"few":"other"},ca:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-6);return 1==e&&r?"one":0!=n&&0==i&&r?"many":"other"},ceb:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",i=!t[1],o=n.slice(-1),a=r.slice(-1);return i&&(1==n||2==n||3==n)||i&&4!=o&&6!=o&&9!=o||!i&&4!=a&&6!=a&&9!=a?"one":"other"},cs:function(e){var t=String(e).split("."),n=t[0],r=!t[1];return 1==e&&r?"one":n>=2&&n<=4&&r?"few":r?"other":"many"},cy:function(e){return 0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other"},da:function(e){var t=String(e).split("."),n=t[0],r=Number(t[0])==e;return 1!=e&&(r||0!=n&&1!=n)?"other":"one"},dsb:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",i=!t[1],o=n.slice(-2),a=r.slice(-2);return i&&1==o||1==a?"one":i&&2==o||2==a?"two":i&&(3==o||4==o)||3==a||4==a?"few":"other"},dz:function(e){return"other"},es:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-6);return 1==e?"one":0!=n&&0==i&&r?"many":"other"},ff:function(e){return e>=0&&e<2?"one":"other"},fr:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e>=0&&e<2?"one":0!=n&&0==i&&r?"many":"other"},ga:function(e){var t=String(e).split("."),n=Number(t[0])==e;return 1==e?"one":2==e?"two":n&&e>=3&&e<=6?"few":n&&e>=7&&e<=10?"many":"other"},gd:function(e){var t=String(e).split("."),n=Number(t[0])==e;return 1==e||11==e?"one":2==e||12==e?"two":n&&e>=3&&e<=10||n&&e>=13&&e<=19?"few":"other"},he:function(e){var t=String(e).split("."),n=t[0],r=!t[1];return 1==n&&r||0==n&&!r?"one":2==n&&r?"two":"other"},is:function(e){var t=String(e).split("."),n=t[0],r=(t[1]||"").replace(/0+$/,""),i=Number(t[0])==e,o=n.slice(-1),a=n.slice(-2);return i&&1==o&&11!=a||r%10==1&&r%100!=11?"one":"other"},ksh:function(e){return 0==e?"zero":1==e?"one":"other"},lt:function(e){var t=String(e).split("."),n=t[1]||"",r=Number(t[0])==e,i=r&&t[0].slice(-1),o=r&&t[0].slice(-2);return 1==i&&(o<11||o>19)?"one":i>=2&&i<=9&&(o<11||o>19)?"few":0!=n?"many":"other"},lv:function(e){var t=String(e).split("."),n=t[1]||"",r=n.length,i=Number(t[0])==e,o=i&&t[0].slice(-1),a=i&&t[0].slice(-2),s=n.slice(-2),l=n.slice(-1);return i&&0==o||a>=11&&a<=19||2==r&&s>=11&&s<=19?"zero":1==o&&11!=a||2==r&&1==l&&11!=s||2!=r&&1==l?"one":"other"},mk:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",i=!t[1],o=n.slice(-1),a=n.slice(-2),s=r.slice(-1),l=r.slice(-2);return i&&1==o&&11!=a||1==s&&11!=l?"one":"other"},mt:function(e){var t=String(e).split("."),n=Number(t[0])==e&&t[0].slice(-2);return 1==e?"one":2==e?"two":0==e||n>=3&&n<=10?"few":n>=11&&n<=19?"many":"other"},pa:function(e){return 0==e||1==e?"one":"other"},pl:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-1),o=n.slice(-2);return 1==e&&r?"one":r&&i>=2&&i<=4&&(o<12||o>14)?"few":r&&1!=n&&(0==i||1==i)||r&&i>=5&&i<=9||r&&o>=12&&o<=14?"many":"other"},pt:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-6);return 0==n||1==n?"one":0!=n&&0==i&&r?"many":"other"},ro:function(e){var t=String(e).split("."),n=!t[1],r=Number(t[0])==e&&t[0].slice(-2);return 1==e&&n?"one":!n||0==e||1!=e&&r>=1&&r<=19?"few":"other"},ru:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-1),o=n.slice(-2);return r&&1==i&&11!=o?"one":r&&i>=2&&i<=4&&(o<12||o>14)?"few":r&&0==i||r&&i>=5&&i<=9||r&&o>=11&&o<=14?"many":"other"},se:function(e){return 1==e?"one":2==e?"two":"other"},si:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"";return 0==e||1==e||0==n&&1==r?"one":"other"},sl:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-2);return r&&1==i?"one":r&&2==i?"two":r&&(3==i||4==i)||!r?"few":"other"}};Kx.as=Kx.am,Kx.az=Kx.af,Kx.bg=Kx.af,Kx.bn=Kx.am,Kx.brx=Kx.af,Kx.ce=Kx.af,Kx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z,Kx.wae=Kx.af,Kx.wo=Kx.dz,Kx.xh=Kx.af,Kx.yi=Kx.ast,Kx.yo=Kx.dz,Kx.yue=Kx.dz,Kx.zh=Kx.dz,Kx.zu=Kx.am;const Yx=Kx;function Zx(e){return"pt-PT"===e?e:function(e){var t=e.match(Jx);if(!t)throw new TypeError("Invalid locale: ".concat(e));return t[1]}(e)}var Jx=/^([a-z0-9]+)/i;function Xx(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=n.numeric,i=n.style,o=n.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",void 0!==r){if(cw.indexOf(r)<0)throw new RangeError('Invalid "numeric" option: '.concat(r));this.numeric=r}if(void 0!==i){if(uw.indexOf(i)<0)throw new RangeError('Invalid "style" option: '.concat(i));this.style=i}if(void 0!==o){if(dw.indexOf(o)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(o));this.localeMatcher=o}if("string"===typeof t&&(t=[t]),t.push(Wx()),this.locale=e.supportedLocalesOf(t,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");ew.supportedLocalesOf(this.locale).length>0?this.pluralRules=new ew(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),"undefined"!==typeof Intl&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=Vx(this.locale,{localeMatcher:this.localeMatcher})}var t,n,r;return t=e,n=[{key:"format",value:function(){var e=ow(vw(arguments),2),t=e[0],n=e[1];return this.getRule(t,n).replace("{0}",this.formatNumber(Math.abs(t)))}},{key:"formatToParts",value:function(){var e=ow(vw(arguments),2),t=e[0],n=e[1],r=this.getRule(t,n),i=r.indexOf("{0}");if(i<0)return[{type:"literal",value:r}];var o=[];return i>0&&o.push({type:"literal",value:r.slice(0,i)}),o=o.concat(this.formatNumberToParts(Math.abs(t)).map((function(e){return rw(rw({},e),{},{unit:n})}))),i+31&&void 0!==arguments[1]?arguments[1]:{};if("string"===typeof e)e=[e];else if(!Array.isArray(e))throw new TypeError('Invalid "locales" argument');return e.filter((function(e){return Vx(e,t)}))},pw.addLocale=function(e){if(!e)throw new Error("No locale data passed");qx[e.locale]=e,Hx[e.locale.toLowerCase()]=e.locale},pw.setDefaultLocale=function(e){zx=e},pw.getDefaultLocale=Wx,pw.PluralRules=ew;var hw='Invalid "unit" argument';function fw(e){if("symbol"===tw(e))throw new TypeError(hw);if("string"!==typeof e)throw new RangeError("".concat(hw,": ").concat(e));if("s"===e[e.length-1]&&(e=e.slice(0,e.length-1)),lw.indexOf(e)<0)throw new RangeError("".concat(hw,": ").concat(e));return e}var mw='Invalid "number" argument';function gw(e){if(e=Number(e),Number.isFinite&&!Number.isFinite(e))throw new RangeError("".concat(mw,": ").concat(e));return e}function vw(e){if(e.length<2)throw new TypeError('"unit" argument is required');return[gw(e[0]),fw(e[1])]}function bw(e){return bw="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},bw(e)}function yw(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ew(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0}))}(e,a);var l=function(e,t,n){var r=n.now,i=n.future,o=n.round;if(0===e.length)return;var a=Hw(e,t,{now:r,future:i||t<0,round:o});if(-1===a)return;var s=e[a];if(s.granularity){if(0===Dw(o)(Math.abs(t)/Nw(s)/s.granularity)*s.granularity&&a>0)return e[a-1]}return s}(e,t,{now:r,future:i,round:o});return s?l?[e[e.indexOf(l)-1],l,e[e.indexOf(l)+1]]:[void 0,void 0,e[0]]:l}function Hw(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=Qw(e[r],function(e){for(var t=1;tr,s=Math.abs(t-r),l=Dw(i)(s/o)*o;return a?l>0?s-l+function(e,t){return(1-Mw(e))*t+1}(i,o):s-l+1:-(s-l)+function(e,t){return Mw(e)*t}(i,o)}}var Gw=31536e9;function Vw(e,t,n){var r=n.prevStep,i=n.nextStep,o=n.now,a=n.future,s=n.round,l=e.getTime?e.getTime():e,c=function(e){return Ww(e,l,{now:o,round:s})},u=function(e,t,n){var r=n.now,i=n.future,o=n.round,a=n.prevStep;if(e){var s=function(e,t,n){var r=n.now,i=n.future,o=n.round,a=n.prevStep,s=Qw(e,{timestamp:t,now:r,future:i,round:o,prevStep:a});if(void 0===s)return;return i?t-1e3*s+1:0===s&&t===r?Gw:t+1e3*s}(e,t,{now:r,future:i,round:o,prevStep:a});if(void 0===s)return;return s-r}return i?t-r+1:Gw}(a?t:i,l,{future:a,now:o,round:s,prevStep:a?r:t});if(void 0!==u){var d;if(t&&(t.getTimeToNextUpdate&&(d=t.getTimeToNextUpdate(l,{getTimeToNextUpdateForUnit:c,getRoundFunction:Dw,now:o,future:a,round:s})),void 0===d)){var p=t.unit||t.formatAs;p&&(d=c(p))}return void 0===d?u:Math.min(d,u)}}var $w={};function Kw(e){return $w[e]}function Yw(e){if(!e)throw new Error("[javascript-time-ago] No locale data passed.");$w[e.locale]=e}const Zw={steps:[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],labels:"long"};function Jw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xw(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).polyfill;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"string"===typeof t&&(t=[t]),this.locale=function(e,t){for(var n,r=ww(e);!(n=r()).done;){var i=n.value;if(t(i))return i;for(var o=i.split("-");o.length>1;)if(o.pop(),t(i=o.join("-")))return i}throw new Error("No locale data has been registered for any of the locales: ".concat(e.join(", ")))}(t.concat(e.getDefaultLocale()),Kw),"undefined"!==typeof Intl&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),!1===n?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=pw,this.IntlPluralRules=pw.PluralRules),this.relativeTimeFormatCache=new _w,this.pluralRulesCache=new _w}var t,n,r;return t=e,n=[{key:"format",value:function(e,t,n){var r;n||(t&&"string"!==typeof(r=t)&&!kw(r)?(n=t,t=void 0):n={}),t||(t=tE),"string"===typeof t&&(t=function(e){switch(e){case"default":case"round":return Zw;case"round-minute":return tE;case"approximate":default:return rE;case"time":case"approximate-time":return iE;case"mini":return SE;case"mini-now":return PE;case"mini-minute":return NE;case"mini-minute-now":return QE;case"twitter":return uE;case"twitter-now":return fE;case"twitter-minute":return bE;case"twitter-minute-now":return wE;case"twitter-first-minute":return kE}}(t));var i,o=function(e){if(e.constructor===Date||function(e){return"object"===UE(e)&&"function"===typeof e.getTime}(e))return e.getTime();if("number"===typeof e)return e;throw new Error("Unsupported relative time formatter input: ".concat(UE(e),", ").concat(e))}(e),a=this.getLabels(t.flavour||t.labels),s=a.labels,l=a.labelsType;void 0!==t.now&&(i=t.now),void 0===i&&void 0!==n.now&&(i=n.now),void 0===i&&(i=Date.now());var c=(i-o)/1e3,u=n.future||c<0,d=function(e,t,n,r){var i=e.now||t&&t.now;return i?"string"===typeof i?i:r?i.future:i.past:n&&n.second&&n.second.current?n.second.current:void 0}(s,Kw(this.locale).now,Kw(this.locale).long,u);if(t.custom){var p=t.custom({now:i,date:new Date(o),time:o,elapsed:c,locale:this.locale});if(void 0!==p)return p}var h=function(e,t,n){var r=Object.keys(t);return n&&r.push("now"),e&&(r=e.filter((function(e){return"now"===e||r.indexOf(e)>=0}))),r}(t.units,s,d),f=n.round||t.round,m=FE(qw(t.gradation||t.steps||tE.steps,c,{now:i,units:h,round:f,future:u,getNextStep:!0}),3),g=m[0],v=m[1],b=m[2],y=this.formatDateForStep(o,v,c,{labels:s,labelsType:l,nowLabel:d,now:i,future:u,round:f})||"";return n.getTimeToNextUpdate?[y,Vw(o,v,{nextStep:b,prevStep:g,now:i,future:u,round:f})]:y}},{key:"formatDateForStep",value:function(e,t,n,r){var i=this,o=r.labels,a=r.labelsType,s=r.nowLabel,l=r.now,c=r.future,u=r.round;if(t){if(t.format)return t.format(e,this.locale,{formatAs:function(e,t){return i.formatValue(t,e,{labels:o,future:c})},now:l,future:c});var d=t.unit||t.formatAs;if(!d)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(t)));if("now"===d)return s;var p=Math.abs(n)/Nw(t);t.granularity&&(p=Dw(u)(p/t.granularity)*t.granularity);var h=-1*Math.sign(n)*Dw(u)(p);switch(0===h&&(h=c?0:-0),a){case"long":case"short":case"narrow":return this.getFormatter(a).format(h,d);default:return this.formatValue(h,d,{labels:o,future:c})}}}},{key:"formatValue",value:function(e,t,n){var r=n.labels,i=n.future;return this.getFormattingRule(r,t,e,{future:i}).replace("{0}",this.formatNumber(Math.abs(e)))}},{key:"getFormattingRule",value:function(e,t,n,r){var i=r.future;if(this.locale,"string"===typeof(e=e[t]))return e;var o=e[0===n?i?"future":"past":n<0?"past":"future"]||e;return"string"===typeof o?o:o[this.getPluralRules().select(Math.abs(n))]||o.other}},{key:"formatNumber",value:function(e){return this.numberFormat?this.numberFormat.format(e):String(e)}},{key:"getFormatter",value:function(e){return this.relativeTimeFormatCache.get(this.locale,e)||this.relativeTimeFormatCache.put(this.locale,e,new this.IntlRelativeTimeFormat(this.locale,{style:e}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];"string"===typeof e&&(e=[e]),e=(e=e.map((function(e){switch(e){case"tiny":case"mini-time":return"mini";default:return e}}))).concat("long");for(var t,n=Kw(this.locale),r=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=zE(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(t=r()).done;){var i=t.value;if(n[i])return{labelsType:i,labels:n[i]}}}}],n&&HE(t.prototype,n),r&&HE(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),VE="en";GE.getDefaultLocale=function(){return VE},GE.setDefaultLocale=function(e){return VE=e},GE.addDefaultLocale=function(e){if(WE)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");WE=!0,GE.setDefaultLocale(e.locale),GE.addLocale(e)},GE.addLocale=function(e){Yw(e),pw.addLocale(e)},GE.locale=GE.addLocale,GE.addLabels=function(e,t,n){var r=Kw(e);r||(Yw({locale:e}),r=Kw(e)),r[t]=n};const $E={locale:"en",long:{year:{previous:"last year",current:"this year",next:"next year",past:{one:"{0} year ago",other:"{0} years ago"},future:{one:"in {0} year",other:"in {0} years"}},quarter:{previous:"last quarter",current:"this quarter",next:"next quarter",past:{one:"{0} quarter ago",other:"{0} quarters ago"},future:{one:"in {0} quarter",other:"in {0} quarters"}},month:{previous:"last month",current:"this month",next:"next month",past:{one:"{0} month ago",other:"{0} months ago"},future:{one:"in {0} month",other:"in {0} months"}},week:{previous:"last week",current:"this week",next:"next week",past:{one:"{0} week ago",other:"{0} weeks ago"},future:{one:"in {0} week",other:"in {0} weeks"}},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:{one:"{0} hour ago",other:"{0} hours ago"},future:{one:"in {0} hour",other:"in {0} hours"}},minute:{current:"this minute",past:{one:"{0} minute ago",other:"{0} minutes ago"},future:{one:"in {0} minute",other:"in {0} minutes"}},second:{current:"now",past:{one:"{0} second ago",other:"{0} seconds ago"},future:{one:"in {0} second",other:"in {0} seconds"}}},short:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0} yr. ago",future:"in {0} yr."},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},future:{one:"in {0} qtr.",other:"in {0} qtrs."}},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0} mo. ago",future:"in {0} mo."},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0} wk. ago",future:"in {0} wk."},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:"{0} hr. ago",future:"in {0} hr."},minute:{current:"this minute",past:"{0} min. ago",future:"in {0} min."},second:{current:"now",past:"{0} sec. ago",future:"in {0} sec."}},narrow:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0}y ago",future:"in {0}y"},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:"{0}q ago",future:"in {0}q"},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0}mo ago",future:"in {0}mo"},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0}w ago",future:"in {0}w"},day:{previous:"yesterday",current:"today",next:"tomorrow",past:"{0}d ago",future:"in {0}d"},hour:{current:"this hour",past:"{0}h ago",future:"in {0}h"},minute:{current:"this minute",past:"{0}m ago",future:"in {0}m"},second:{current:"now",past:"{0}s ago",future:"in {0}s"}},now:{now:{current:"now",future:"in a moment",past:"just now"}},mini:{year:"{0}yr",month:"{0}mo",week:"{0}wk",day:"{0}d",hour:"{0}h",minute:"{0}m",second:"{0}s",now:"now"},"short-time":{year:"{0} yr.",month:"{0} mo.",week:"{0} wk.",day:{one:"{0} day",other:"{0} days"},hour:"{0} hr.",minute:"{0} min.",second:"{0} sec."},"long-time":{year:{one:"{0} year",other:"{0} years"},month:{one:"{0} month",other:"{0} months"},week:{one:"{0} week",other:"{0} weeks"},day:{one:"{0} day",other:"{0} days"},hour:{one:"{0} hour",other:"{0} hours"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} second",other:"{0} seconds"}}},KE={locale:"fr",long:{year:{previous:"l\u2019ann\xe9e derni\xe8re",current:"cette ann\xe9e",next:"l\u2019ann\xe9e prochaine",past:{one:"il y a {0} an",other:"il y a {0} ans"},future:{one:"dans {0} an",other:"dans {0} ans"}},quarter:{previous:"le trimestre dernier",current:"ce trimestre",next:"le trimestre prochain",past:{one:"il y a {0} trimestre",other:"il y a {0} trimestres"},future:{one:"dans {0} trimestre",other:"dans {0} trimestres"}},month:{previous:"le mois dernier",current:"ce mois-ci",next:"le mois prochain",past:"il y a {0} mois",future:"dans {0} mois"},week:{previous:"la semaine derni\xe8re",current:"cette semaine",next:"la semaine prochaine",past:{one:"il y a {0} semaine",other:"il y a {0} semaines"},future:{one:"dans {0} semaine",other:"dans {0} semaines"}},day:{previous:"hier","previous-2":"avant-hier",current:"aujourd\u2019hui",next:"demain","next-2":"apr\xe8s-demain",past:{one:"il y a {0} jour",other:"il y a {0} jours"},future:{one:"dans {0} jour",other:"dans {0} jours"}},hour:{current:"cette heure-ci",past:{one:"il y a {0} heure",other:"il y a {0} heures"},future:{one:"dans {0} heure",other:"dans {0} heures"}},minute:{current:"cette minute-ci",past:{one:"il y a {0} minute",other:"il y a {0} minutes"},future:{one:"dans {0} minute",other:"dans {0} minutes"}},second:{current:"maintenant",past:{one:"il y a {0} seconde",other:"il y a {0} secondes"},future:{one:"dans {0} seconde",other:"dans {0} secondes"}}},short:{year:{previous:"l\u2019ann\xe9e derni\xe8re",current:"cette ann\xe9e",next:"l\u2019ann\xe9e prochaine",past:"il y a {0} a",future:"dans {0} a"},quarter:{previous:"le trimestre dernier",current:"ce trimestre",next:"le trimestre prochain",past:"il y a {0} trim.",future:"dans {0} trim."},month:{previous:"le mois dernier",current:"ce mois-ci",next:"le mois prochain",past:"il y a {0} m.",future:"dans {0} m."},week:{previous:"la semaine derni\xe8re",current:"cette semaine",next:"la semaine prochaine",past:"il y a {0} sem.",future:"dans {0} sem."},day:{previous:"hier","previous-2":"avant-hier",current:"aujourd\u2019hui",next:"demain","next-2":"apr\xe8s-demain",past:"il y a {0}\xa0j",future:"dans {0}\xa0j"},hour:{current:"cette heure-ci",past:"il y a {0}\xa0h",future:"dans {0}\xa0h"},minute:{current:"cette minute-ci",past:"il y a {0}\xa0min",future:"dans {0}\xa0min"},second:{current:"maintenant",past:"il y a {0}\xa0s",future:"dans {0}\xa0s"}},narrow:{year:{previous:"l\u2019ann\xe9e derni\xe8re",current:"cette ann\xe9e",next:"l\u2019ann\xe9e prochaine",past:"-{0} a",future:"+{0} a"},quarter:{previous:"le trimestre dernier",current:"ce trimestre",next:"le trimestre prochain",past:"-{0} trim.",future:"+{0} trim."},month:{previous:"le mois dernier",current:"ce mois-ci",next:"le mois prochain",past:"-{0} m.",future:"+{0} m."},week:{previous:"la semaine derni\xe8re",current:"cette semaine",next:"la semaine prochaine",past:"-{0} sem.",future:"+{0} sem."},day:{previous:"hier","previous-2":"avant-hier",current:"aujourd\u2019hui",next:"demain","next-2":"apr\xe8s-demain",past:"-{0} j",future:"+{0} j"},hour:{current:"cette heure-ci",past:"-{0} h",future:"+{0} h"},minute:{current:"cette minute-ci",past:"-{0} min",future:"+{0} min"},second:{current:"maintenant",past:"-{0} s",future:"+{0} s"}},now:{now:{current:"maintenant",future:"dans un instant",past:"\xe0 l'instant"}},mini:{year:{one:"{0} an",other:"{0} ans"},month:"{0} mois",week:"{0} sem.",day:{one:"{0} jour",other:"{0} jours"},hour:"{0} h",minute:"{0} min.",second:"{0} sec.",now:"maintenant"},"long-time":{year:{one:"{0} an",other:"{0} ans"},month:{one:"{0} mois",other:"{0} mois"},week:{one:"{0} semaine",other:"{0} semaines"},day:{one:"{0} jour",other:"{0} jours"},hour:{one:"{0} heure",other:"{0} heures"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} seconde",other:"{0} secondes"}}},YE=e=>{let{dateStr:t}=e;const{language:n}=mn();if(!t)return null;let r;return"en"===n?(GE.addLocale($E),r=new GE("en-US")):(GE.addLocale(KE),r=new GE("fr-FR")),(0,Ap.jsxs)("span",{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Last edited"}),(0,Ap.jsx)(Ip,{children:"Derni\xe8re modification"})]})," ",r.format(new Date(t)),". "]})},ZE=(0,In.c)(i.createElement("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"}),"Description"),JE=(0,In.c)(i.createElement("path",{d:"M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"}),"Drafts"),XE=e=>{let{status:t}=e;return"published"===t?(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Published",fr:"Publi\xe9"}),children:(0,Ap.jsx)(Bn,{color:"primary"})}):"submitted"===t?(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Submitted",fr:"Soumis"}),children:(0,Ap.jsx)(ZE,{color:"secondary"})}):""===t?(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Draft",fr:"Brouillon"}),children:(0,Ap.jsx)(JE,{color:"action"})}):null},eT=e=>{var t,n,r;let{record:o,onViewEditClick:a,onDeleteClick:s,onCloneClick:l,onSubmitClick:c,showAuthor:u,showDeleteAction:d,showSubmitAction:p,showPublishAction:h,showUnPublishAction:f,showUnSubmitAction:m,showViewAction:g,showEditAction:v,showPercentComplete:b,showCloneAction:y,onUnSubmitClick:_,onUnPublishClick:x,showDownloadButton:w=!0,showTransferButton:E,onTransferClick:T}=e;const{language:C,region:k}=mn(),S="published"===o.status,{downloadRecord:O,datacitePrefix:A}=(0,i.useContext)(Fb),[j,P]=(0,i.useState)({downloadXML:!1}),I="".concat(Cn[k].catalogueURL[C],"dataset/ca-cioos_").concat(o.identifier),[L,R]=i.useState(null),N=Boolean(L),D=()=>{R(null)};if(!o.title)return console.log(o),(0,Ap.jsx)(Ap.Fragment,{});const M=(p||w)&&Ux(o),B=b&&Math.round(100*Qx(o));async function Q(e){const t={erddap:"_erddap.txt",xml:".xml",yaml:".yaml",eml:"_eml.xml",json:".json"};P({downloadXML:!0});try{let n;if("eml"===e){n=[await yx(o)]}else if("erddap"===e)n=[Tx(o)];else if("json"===e)n=await([JSON.stringify(Fx(o,C,k,A),null,2)]);else{const t=await O({record:o,fileType:e,region:k});n=Object.values(t.data.message)}const r=new Blob(n,{type:"".concat({xml:"application/xml",yaml:"application/x-yaml",eml:"application/xml",erddap:"application/xml",json:"application/json"}[e],";charset=utf-8")});K_().saveAs(r,"".concat(C_(o)).concat(t[e])),P({downloadXML:!1})}catch(n){console.log(n),P({downloadXML:!1})}}return(0,Ap.jsxs)(ko,{children:[(0,Ap.jsx)(Z_,{children:(0,Ap.jsx)(Cr,{onClick:a,children:(0,Ap.jsx)($o,{children:(0,Ap.jsx)(XE,{status:o.status})})})}),(0,Ap.jsx)(Yo,{primary:(0,Ap.jsx)("div",{style:{width:"80%"},children:null===(t=o.title)||void 0===t?void 0:t[C]}),secondaryTypographyProps:{variant:"body2"},secondary:(0,Ap.jsxs)("span",{children:[u&&(0,Ap.jsxs)("span",{children:[(0,Ap.jsx)(Lp,{en:"Author",fr:"Auteur"}),": ",null===(n=o.userinfo)||void 0===n?void 0:n.displayName," ",null===(r=o.userinfo)||void 0===r?void 0:r.email]}),(0,Ap.jsxs)("span",{style:{display:"block"},children:[(0,Ap.jsx)(YE,{dateStr:o.created}),b&&(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:[B,"% complete"]}),(0,Ap.jsxs)(Ip,{children:[B,"% Achev\xe9e"]})]})]}),(0,Ap.jsxs)("span",{style:{display:"block"},children:["UUID: ",o.identifier]})]})}),(0,Ap.jsxs)(X_,{children:[g&&(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"View",fr:"Vue"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:a,edge:"end","aria-label":"view record",children:(0,Ap.jsx)(ex,{})})})}),v&&(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Edit record",fr:"\xc9diter un enregistrement"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>a(),edge:"end","aria-label":"Edit record",children:(0,Ap.jsx)(tx,{})})})}),d&&(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Delete",fr:"Supprimer"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>s(),edge:"end","aria-label":"delete",children:(0,Ap.jsx)(nx,{})})})}),h&&(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Publish",fr:"Publier"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>c(),edge:"end","aria-label":"delete",children:(0,Ap.jsx)(rx,{})})})}),p&&(""===o.status?(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Ap.Fragment,{children:M?(0,Ap.jsx)(Lp,{en:"Submit for review",fr:"Soumettre pour examen"}):(0,Ap.jsx)(Lp,{en:"Can't submit incomplete or invalid record",fr:"Impossible de soumettre un enregistrement incomplet ou non valide"})}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>c(),edge:"end","aria-label":"submit",disabled:!M,children:(0,Ap.jsx)(rx,{})})})}):(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Return record to draft for editing",fr:"Retourner l'enregistrement au brouillon pour modification"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>c(),edge:"end","aria-label":"delete",children:(0,Ap.jsx)(ix,{})})})})),f&&(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Un-publish",fr:"De-Publier"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>x(),edge:"end","aria-label":"delete",children:(0,Ap.jsx)(ix,{})})})}),y&&(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Clone",fr:"Cloner"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>l(),edge:"end","aria-label":"clone",children:(0,Ap.jsx)(ox,{})})})}),m&&(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Return to draft",fr:"Revenir au brouillon"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>_(),edge:"end","aria-label":"delete",children:(0,Ap.jsx)(ix,{})})})}),w&&(0,Ap.jsx)(ms,{disableHoverListener:N,title:(0,Ap.jsx)(Lp,{en:"Download",fr:"Download"}),children:(0,Ap.jsxs)("span",{children:[(0,Ap.jsx)(Cr,{"aria-label":"more",id:"long-button","aria-controls":"long-menu","aria-expanded":N?"true":void 0,"aria-haspopup":"true",onClick:e=>{R(e.currentTarget)},disabled:!M,children:j.downloadXML?(0,Ap.jsx)(r_,{}):(0,Ap.jsx)(ax,{})}),(0,Ap.jsxs)(Mi,{id:"long-menu",MenuListProps:{"aria-labelledby":"long-button"},anchorEl:L,open:N,onClose:D,PaperProps:{style:{width:"20ch"}},children:[(0,Ap.jsx)(Oo,{onClick:()=>{Q("xml"),D()},children:"ISO 19115 XML"},"xml"),(0,Ap.jsx)(Oo,{onClick:()=>{Q("yaml"),D()},children:"YAML"},"yaml"),(0,Ap.jsx)(Oo,{onClick:()=>{Q("erddap"),D()},children:"ERDDAP snippet"},"erddap"),(0,Ap.jsx)(Oo,{onClick:()=>{Q("eml"),D()},children:"EML for OBIS IPT"},"eml"),(0,Ap.jsx)(Oo,{onClick:()=>{Q("json"),D()},children:"DATACITE JSON"},"json")]})]})}),E&&(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Transfer to user",fr:"Transfert vers l'utilisateur"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:T,edge:"end","aria-label":"transfer",children:(0,Ap.jsx)(sx,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Open catalogue entry in new window",fr:"Ouvrir l'entr\xe9e dans le catalogue dans une nouvelle fen\xeatre"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{disabled:!S,onClick:()=>{window.open(I,"_blank").focus()},edge:"end","aria-label":"transfer",children:(0,Ap.jsx)(lx,{})})})})]})]},o.recordID)};const tT=class extends Ub{constructor(e){super(e),this.state={records:{},deleteModalOpen:!1,submitModalOpen:!1,withdrawModalOpen:!1,modalKey:"",modalRecord:null,loading:!1}}async loadRecords(){this.setState({loading:!0});const{match:e}=this.props,{region:t}=e.params;this.unsubscribe=nd(_p(Cp),(e=>{if(e){const n=xb(Bb(Cp),"".concat(t,"/users/").concat(e.uid,"/records"));Pb(n,(e=>{const t=e.toJSON();this.setState({records:z_(t),loading:!1})})),this.listenerRefs.push(n)}}))}componentWillUnmount(){this.unsubscribeAndCloseListeners()}unsubscribeAndCloseListeners(){this.unsubscribe&&this.unsubscribe(),this.listenerRefs.length&&this.listenerRefs.forEach((e=>Ib(e)))}async componentDidMount(){this.loadRecords()}editRecord(e){const{match:t,history:n}=this.props,{language:r,region:i}=t.params,{currentUser:o}=Sp;n.push("/".concat(r,"/").concat(i,"/").concat(o.uid,"/").concat(e))}handleSubmitRecord(e){const{match:t}=this.props,{region:n}=t.params;return!(!Sp.currentUser||!e)&&Q_(n,Sp.currentUser.uid,e,"submitted")}withdrawRecord(e){const{match:t}=this.props,{region:n}=t.params;return!(!Sp.currentUser||!e)&&function(e,t,n){return Cb(xb(Bb(Cp),"".concat(e,")/users/").concat(t,"/records/").concat(n,"/status")),"")}(n,Sp.currentUser.uid,e)}cloneRecord(e){const{match:t}=this.props,{region:n}=t.params;Sp.currentUser&&N_(e,Sp.currentUser.uid,Sp.currentUser.uid,n)}deleteRecord(e){const{match:t}=this.props,{region:n}=t.params;return!!Sp.currentUser&&U_(n,Sp.currentUser.uid,e)}toggleModal(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.setState({modalKey:n,[e]:t,modalRecord:r})}render(){const{match:e,history:t}=this.props,{language:n,region:r}=e.params,{deleteModalOpen:i,withdrawModalOpen:o,modalKey:a,modalRecord:s,submitModalOpen:l,records:c,loading:u}=this.state;return(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(V_,{open:i,onClose:()=>this.toggleModal("deleteModalOpen",!1),onAccept:()=>this.deleteRecord(a),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(V_,{open:l,onClose:()=>this.toggleModal("submitModalOpen",!1),onAccept:()=>this.handleSubmitRecord(a,s),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(V_,{open:o,onClose:()=>this.toggleModal("withdrawModalOpen",!1),onAccept:()=>this.withdrawRecord(a),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"My Records"}),(0,Ap.jsx)(Ip,{children:"Mes dossiers"})]})}),u?(0,Ap.jsx)(r_,{}):(0,Ap.jsxs)("span",{children:[(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:['To start a new record, click on "New Record" and begin adding information. To continue working on a record, select it from the list below. Once your record is completed and information has been provided for all mandatory fields, you can submit your record for review by clicking the "Submit for review" icon to the right of your record title. The record will not be published until it is reviewed and approved by ',Cn[r].title[n]," staff."]}),(0,Ap.jsxs)(Ip,{children:["Afin de soumettre vos m\xe9tadonn\xe9es, cliquez sur \xab Nouvel enregistrement \xbb et ajoutez-y les informations demand\xe9es. Si vous d\xe9sirez reprendre la saisie d\u2019un formulaire d\xe9j\xe0 entam\xe9, s\xe9lectionnez-le dans la liste ci-dessous. Lorsque les informations sont saisies pour tous les champs obligatoires, vous pouvez soumettre vos m\xe9tadonn\xe9es pour validation en cliquant sur l\u2019ic\xf4ne \xab soumettre pour validation \xbb. Vos m\xe9tadonn\xe9es seront publi\xe9es lorsqu\u2019elles auront \xe9t\xe9 valid\xe9es et approuv\xe9es par un professionel du"," ",Cn[r].title[n],"."]})]})}),(0,Ap.jsx)("div",{style:{marginTop:"10px"},children:(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>t.push("/".concat(n,"/").concat(r,"/new")),children:(0,Ap.jsx)(Lp,{en:"New Record",fr:"Nouvel enregistrement"})})}),(0,Ap.jsx)(ki,{children:Object.entries(c||{}).sort(((e,t)=>new Date(t[1].created)-new Date(e[1].created))).map((e=>{let[t,n]=e;const{status:r,title:i}=n;return null!==i&&void 0!==i&&i.en||null===i||void 0===i||!i.fr?(0,Ap.jsx)(eT,{record:n,showCloneAction:!0,onCloneClick:()=>this.cloneRecord(t),showDeleteAction:!0,onDeleteClick:()=>this.toggleModal("deleteModalOpen",!0,t),showEditAction:!0,showPercentComplete:!0,onViewEditClick:()=>this.editRecord(t),showSubmitAction:!0,onSubmitClick:()=>{""===r?this.toggleModal("submitModalOpen",!0,t,n):this.toggleModal("withdrawModalOpen",!0,t)}},t):null}))})]}),!c&&(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You don't have any records."}),(0,Ap.jsx)(Ip,{children:"Vous n'avez pas d'historique de saisie."})]})})]})]})}};const nT=class extends Ub{constructor(e){super(e),this.state={records:{},deleteModalOpen:!1,submitModalOpen:!1,withdrawModalOpen:!1,modalKey:"",modalRecord:null,loading:!1}}async loadRecords(){this.setState({loading:!0});const{match:e}=this.props,{region:t}=e.params;this.unsubscribe=nd(_p(Cp),(async e=>{if(e){const e=xb(Bb(Cp),"".concat(t,"/users"));Pb(e,(e=>{const t=B_(e,["published"]);this.setState({records:t,loading:!1})})),this.listenerRefs.push(e)}}))}async componentDidMount(){this.loadRecords()}editRecord(e,t){const{match:n,history:r}=this.props,{language:i,region:o}=n.params;r.push("/".concat(i,"/").concat(o,"/").concat(t,"/").concat(e))}handleCloneRecord(e,t){const{match:n}=this.props,{region:r}=n.params;Sp.currentUser&&N_(e,t,Sp.currentUser.uid,r)}render(){const{match:e}=this.props,{region:t}=e.params,{records:n,loading:r}=this.state;return(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Published Records"}),(0,Ap.jsx)(Ip,{children:"Dossiers publi\xe9s"})]})}),r?(0,Ap.jsx)(r_,{}):(0,Ap.jsxs)("span",{children:[(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"These are the published records in your region."}),(0,Ap.jsx)(Ip,{children:"Il s'agit des enregistrements publi\xe9s dans votre r\xe9gion."})]})}),(0,Ap.jsx)(ki,{children:n&&n.length?n.sort(((e,t)=>new Date(t.created)-new Date(e.created))).filter((e=>"published"===e.status)).map((e=>{const{title:n}=e;return null!==n&&void 0!==n&&n.en||null===n||void 0===n||!n.fr?(0,Ap.jsx)(eT,{record:e,onViewEditClick:()=>{var t;return this.editRecord(e.recordID,null===(t=e.userinfo)||void 0===t?void 0:t.userID)},showDeleteAction:!1,showUnSubmitAction:!1,showCloneAction:!0,showAuthor:!0,showViewAction:!0,onCloneClick:()=>{var n;return this.handleCloneRecord(e.recordID,null===(n=e.userinfo)||void 0===n?void 0:n.userID,t)}},e.recordID):null})):""})]}),!n&&(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"There are no published records."}),(0,Ap.jsx)(Ip,{children:"Il n'y a pas de documents publi\xe9s."})]})})]})]})}},rT=(0,In.c)(i.createElement("path",{d:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1z"}),"PermContactCalendar");const iT=function(e){return function(e){const{orgName:t,givenNames:n,lastName:r}=e;return[[r,n].filter((e=>e)).join(", "),t].filter((e=>e)).map((e=>e.trim())).filter((e=>e)).join(" - ")}(e)||(0,Ap.jsx)(Lp,{en:"New contact",fr:"Nouveau contact"})};const oT=class extends Ub{constructor(e){super(e),this.state={contacts:{},modalOpen:!1,modalKey:"",loading:!1}}async componentDidMount(){this.setState({loading:!0});const{match:e}=this.props,{region:t}=e.params;this.unsubscribe=nd(_p(Cp),(e=>{if(e){const n=xb(Bb(Cp),"".concat(t,"/users/").concat(e.uid,"/contacts"));Pb(n,(e=>this.setState({contacts:e.toJSON(),loading:!1}))),this.listenerRefs.push(n)}}))}handleDeleteContact(e){const{match:t}=this.props,{region:n}=t.params;Sp.currentUser&&function(e,t,n){Tb(xb(Bb(Cp),"".concat(e,"/users/").concat(t,"/contacts/").concat(n)))}(n,Sp.currentUser.uid,e)}handleCloneContact(e){const{match:t}=this.props,{region:n}=t.params;return!!Sp.currentUser&&async function(e,t,n){const r=xb(Bb(Cp),"".concat(e,"/users/").concat(t,"/contacts")),i=(await Sb(wb(r,n))).val();i.lastName?i.lastName+=" (Copy)":i.orgName+=" (Copy)",Eb(r,i)}(n,Sp.currentUser.uid,e)}addContact(){const{history:e,match:t}=this.props,{language:n,region:r}=t.params;Sp.currentUser&&async function(e,t){const n=Bb(Cp);return(await Eb(xb(n,"".concat(e,"/users/").concat(t,"/contacts")),{})).key}(r,Sp.currentUser.uid).then((t=>{e.push("/".concat(n,"/").concat(r,"/contacts/").concat(t))}))}editContact(e){const{history:t,match:n}=this.props,{language:r,region:i}=n.params;t.push("/".concat(r,"/").concat(i,"/contacts/").concat(e))}toggleModal(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.setState({modalKey:t,modalOpen:e})}render(){const{modalOpen:e,modalKey:t,loading:n,contacts:r}=this.state;return(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:3,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(V_,{open:e,onClose:()=>this.toggleModal(!1),onAccept:()=>this.handleDeleteContact(t),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Contacts"}),(0,Ap.jsx)(Ip,{children:"Contacts"})]})})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Create contacts here that you can reuse in multiple metadata records."}),(0,Ap.jsx)(Ip,{children:"Ajoutez ici les personnes ressources que vous d\xe9sirez r\xe9utiliser pour la saisie d\u2019autres m\xe9tadonn\xe9es."})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>this.addContact(),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add contact"}),(0,Ap.jsx)(Ip,{children:"ajouter un contact"})]})})}),n?(0,Ap.jsx)(r_,{}):(0,Ap.jsx)(Ap.Fragment,{children:(0,Ap.jsx)(e_,{item:!0,xs:!0,children:r&&Object.keys(r).length?(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"These are your contacts"}),(0,Ap.jsx)(Ip,{children:"Ce sont vos contacts"})]})}),(0,Ap.jsx)(ki,{children:Object.entries(r).map((e=>{let[t,n]=e;return(0,Ap.jsxs)(ko,{button:!0,onClick:()=>this.editContact(t),children:[(0,Ap.jsx)(Z_,{children:(0,Ap.jsx)($o,{children:(0,Ap.jsx)(rT,{})})}),(0,Ap.jsx)(Yo,{primary:iT(n)}),(0,Ap.jsxs)(X_,{children:[(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Edit",fr:"\xc9diter"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>this.editContact(t),children:(0,Ap.jsx)(tx,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Clone",fr:"Clone"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>this.handleCloneContact(t),children:(0,Ap.jsx)(ox,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Delete",fr:"Supprimer"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>this.toggleModal(!0,t),children:(0,Ap.jsx)(nx,{})})})})]})]},t)}))})]}):(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"No contacts submitted yet"}),(0,Ap.jsx)(Ip,{children:"Aucun contacts n'a encore \xe9t\xe9 soumis"})]})})})})]})}};const aT=function(e){let{instrument:t}=e;return function(e){const{id:t,manufacturer:n}=e;return[n,t].filter((e=>e)).map((e=>e.trim())).filter((e=>e)).join(" - ")}(t)||(0,Ap.jsx)(Lp,{en:"New instrument",fr:"Nouvel instrument"})};const sT=class extends Ub{constructor(e){super(e),this.state={instruments:{},modalOpen:!1,modalKey:"",loading:!1}}async componentDidMount(){this.setState({loading:!0});const{match:e}=this.props,{region:t}=e.params;this.unsubscribe=Sp.onAuthStateChanged((e=>{if(e){const n=xb(Bb(Cp),"".concat(t,"/users/").concat(e.uid,"/instruments"));Pb(n,(e=>this.setState({instruments:e.toJSON(),loading:!1}))),this.listenerRefs.push(n)}}))}handleDeleteInstrument(e){const{match:t}=this.props,{region:n}=t.params;Sp.currentUser&&function(e,t,n){Tb(xb(Bb(Cp),"".concat(e,"/users/").concat(t,"/instruments/").concat(n)))}(n,Sp.currentUser.uid,e)}handleCloneInstrument(e){const{match:t}=this.props,{region:n}=t.params;return!!Sp.currentUser&&async function(e,t,n){const r=xb(Bb(Cp),"".concat(e,"/users/").concat(t,"/instruments/")),i=(await Sb(wb(r,n))).val();i.id&&(i.id+=" (Copy)"),Eb(r,i)}(n,Sp.currentUser.uid,e)}addInstrument(){const{history:e,match:t}=this.props,{language:n,region:r}=t.params;Sp.currentUser&&async function(e,t){const n=Bb(Cp);return(await Eb(xb(n,"".concat(e,"/users/").concat(t,"/instruments/")),{})).key}(r,Sp.currentUser.uid).then((t=>{e.push("/".concat(n,"/").concat(r,"/instruments/").concat(t))}))}editInstrument(e){const{history:t,match:n}=this.props,{language:r,region:i}=n.params;t.push("/".concat(r,"/").concat(i,"/instruments/").concat(e))}toggleModal(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.setState({modalKey:t,modalOpen:e})}render(){const{modalOpen:e,modalKey:t,loading:n,instruments:r}=this.state;return(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:3,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(V_,{open:e,onClose:()=>this.toggleModal(!1),onAccept:()=>this.handleDeleteInstrument(t),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Instruments"}),(0,Ap.jsx)(Ip,{children:"Instruments"})]})})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Create instruments here that you can reuse in multiple metadata records."}),(0,Ap.jsx)(Ip,{children:"Ajoutez ici les personnes ressources que vous d\xe9sirez r\xe9utiliser pour la saisie d\u2019autres m\xe9tadonn\xe9es."})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>this.addInstrument(),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add instrument"}),(0,Ap.jsx)(Ip,{children:"ajouter un instrument"})]})})}),n?(0,Ap.jsx)(r_,{}):(0,Ap.jsx)(Ap.Fragment,{children:(0,Ap.jsx)(e_,{item:!0,xs:!0,children:r&&Object.keys(r).length?(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"These are your instruments"}),(0,Ap.jsx)(Ip,{children:"Ce sont vos instruments"})]})}),(0,Ap.jsx)(ki,{children:Object.entries(r).map((e=>{let[t,n]=e;return(0,Ap.jsxs)(ko,{button:!0,onClick:()=>this.editInstrument(t),children:[(0,Ap.jsx)(Z_,{children:(0,Ap.jsx)($o,{children:(0,Ap.jsx)(rT,{})})}),(0,Ap.jsx)(Yo,{primary:aT({instrument:n})}),(0,Ap.jsxs)(X_,{children:[(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Edit",fr:"\xc9diter"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>this.editInstrument(t),children:(0,Ap.jsx)(tx,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Clone",fr:"Clone"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>this.handleCloneInstrument(t),children:(0,Ap.jsx)(ox,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Delete",fr:"Supprimer"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>this.toggleModal(!0,t),children:(0,Ap.jsx)(nx,{})})})})]})]},t)}))})]}):(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"No instruments submitted yet"}),(0,Ap.jsx)(Ip,{children:"Aucun instruments n'a encore \xe9t\xe9 soumis"})]})})})})]})}};const lT=class extends Ub{constructor(e){super(e),this.state={sharedRecords:{},loading:!1},this.unsubscribe=null,this.listenerRefs=[],this.handleCloneRecord=this.handleCloneRecord.bind(this)}async loadSharedRecords(){this.setState({loading:!0});const{match:e}=this.props,{region:t}=e.params,n=Bb();this.unsubscribe=nd(_p(Cp),(async e=>{if(e){const r=xb(n,"".concat(t,"/shares/").concat(e.uid));this.listenerRefs.push(r),Pb(r,(async e=>{const r=e.val(),i=[];Object.entries(r||{}).forEach((e=>{let[r,o]=e;Object.keys(o||{}).forEach((e=>{const o="".concat(t,"/users/").concat(r,"/records/").concat(e),a=Sb(xb(n,o)).then((t=>{const n=t.val();if(n)return{...n,recordID:e};throw new Error("No details found for record ".concat(e," by author ").concat(r))}));i.push(a)}))}));const o=(await Promise.all(i)).reduce(((e,t)=>(e[t.recordID]=t,e)),{});this.setState({sharedRecords:z_(o),loading:!1})})),this.listenerRefs.push(r)}}))}componentWillUnmount(){this.unsubscribeAndCloseListeners()}unsubscribeAndCloseListeners(){this.unsubscribe&&this.unsubscribe(),this.listenerRefs.length&&this.listenerRefs.forEach((e=>Ib(e)))}async componentDidMount(){this.loadSharedRecords()}editRecord(e,t){const{match:n,history:r}=this.props,{language:i,region:o}=n.params;r.push("/".concat(i,"/").concat(o,"/").concat(t,"/").concat(e))}handleCloneRecord(e,t){const{region:n}=this.props.match.params,{currentUser:r}=_p(Cp);r&&N_(e,t,r.uid,n)}render(){const{sharedRecords:e,loading:t}=this.state;return(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Shared with me"}),(0,Ap.jsx)(Ip,{children:"Partag\xe9 avec moi"})]})}),t?(0,Ap.jsx)(r_,{}):(0,Ap.jsxs)("span",{children:[(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{style:{marginTop:"20px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"The following records have been shared with you for editing."}),(0,Ap.jsx)(Ip,{children:"Les enregistrements suivants ont \xe9t\xe9 partag\xe9s avec vous pour modification."})]})}),(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You can edit them, but you cannot submit or delete."}),(0,Ap.jsx)(Ip,{children:"Vous pouvez les modifier, mais vous ne pouvez pas les soumettre ou les supprimer."})]})}),(0,Ap.jsx)(ki,{children:Object.entries(e||{}).sort(((e,t)=>new Date(t[1].created)-new Date(e[1].created))).map((e=>{let[t,n]=e;const{title:r}=n;return null!==r&&void 0!==r&&r.en||null===r||void 0===r||!r.fr?(0,Ap.jsx)(eT,{record:n,showCloneAction:!0,onCloneClick:()=>this.handleCloneRecord(t,n.userID),showEditAction:!0,showPercentComplete:!0,onViewEditClick:()=>this.editRecord(t,n.userID)},t):null}))})]}),!e&&(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You don't have any records shared with you."}),(0,Ap.jsx)(Ip,{children:"Vous n'avez aucun enregistrement partag\xe9 avec vous."})]})})]})]})}},cT=()=>(0,Ap.jsx)("div",{children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Please sign in to access your metadata records. You will need a Google account to login."}),(0,Ap.jsx)(Ip,{children:"Connectez-vous pour acc\xe9der \xe0 l'historique de saisie de vos m\xe9tadonn\xe9es. Vous aurez besoin d'un compte Google pour vous connecter."})]})})});var uT=n(208);function dT(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function pT(e){var t=function(t){var n=e(t);return t.css?(0,at.c)({},(0,uT.c)(n,e((0,at.c)({theme:t.theme},t.css))),dT(t.css,[e.filterProps])):t.sx?(0,at.c)({},(0,uT.c)(n,e((0,at.c)({theme:t.theme},t.sx))),dT(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat((0,cr.c)(e.filterProps)),t}const hT=pT;const fT=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=n.name,o=(0,Yn.c)(n,["name"]);var a,s=r,l="function"===typeof t?function(e){return{root:function(n){return t((0,at.c)({theme:e},n))}}}:{root:t},c=(0,Sn.c)(l,(0,at.c)({Component:e,name:r||e.displayName,classNamePrefix:s},o));t.filterProps&&(a=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=i.forwardRef((function(t,n){var r=t.children,o=t.className,s=t.clone,l=t.component,u=(0,Yn.c)(t,["children","className","clone","component"]),d=c(t),p=(0,kn.c)(d.root,o),h=u;if(a&&(h=function(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}(h,a)),s)return i.cloneElement(r,(0,at.c)({className:(0,kn.c)(r.props.className,p)},h));if("function"===typeof r)return r((0,at.c)({className:p},h));var f=l||e;return i.createElement(f,(0,at.c)({ref:n,className:p},h),r)}));return Qt()(u,e),u}}const MT=function(e){var t=DT(e);return function(e,n){return t(e,(0,at.c)({defaultTheme:On.c},n))}};var BT=hT(fT(yT,_T,xT,wT,ET,TT,CT,LT,RT.c,NT));const QT=MT("div")(BT,{name:"MuiBox"});var UT=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,a=void 0===o?"primary":o,s=e.value,l=e.valueBuffer,c=e.variant,u=void 0===c?"indeterminate":c,d=(0,Yn.c)(e,["classes","className","color","value","valueBuffer","variant"]),p=Pn(),h={},f={bar1:{},bar2:{}};if("determinate"===u||"buffer"===u)if(void 0!==s){h["aria-valuenow"]=Math.round(s),h["aria-valuemin"]=0,h["aria-valuemax"]=100;var m=s-100;"rtl"===p.direction&&(m=-m),f.bar1.transform="translateX(".concat(m,"%)")}else 0;if("buffer"===u)if(void 0!==l){var g=(l||0)-100;"rtl"===p.direction&&(g=-g),f.bar2.transform="translateX(".concat(g,"%)")}else 0;return i.createElement("div",(0,at.c)({className:(0,kn.c)(n.root,n["color".concat((0,Zn.c)(a))],r,{determinate:n.determinate,indeterminate:n.indeterminate,buffer:n.buffer,query:n.query}[u]),role:"progressbar"},h,{ref:t},d),"buffer"===u?i.createElement("div",{className:(0,kn.c)(n.dashed,n["dashedColor".concat((0,Zn.c)(a))])}):null,i.createElement("div",{className:(0,kn.c)(n.bar,n["barColor".concat((0,Zn.c)(a))],("indeterminate"===u||"query"===u)&&n.bar1Indeterminate,{determinate:n.bar1Determinate,buffer:n.bar1Buffer}[u]),style:f.bar1}),"determinate"===u?null:i.createElement("div",{className:(0,kn.c)(n.bar,("indeterminate"===u||"query"===u)&&n.bar2Indeterminate,"buffer"===u?[n["color".concat((0,Zn.c)(a))],n.bar2Buffer]:n["barColor".concat((0,Zn.c)(a))]),style:f.bar2}))}));const FT=(0,Gn.c)((function(e){var t=function(t){return"light"===e.palette.type?(0,or.IV)(t,.62):(0,or.sP)(t,.5)},n=t(e.palette.primary.main),r=t(e.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4,"@media print":{colorAdjust:"exact"}},colorPrimary:{backgroundColor:n},colorSecondary:{backgroundColor:r},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite"},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0 -23px"},"50%":{opacity:0,backgroundPosition:"0 -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}}),{name:"MuiLinearProgress"})(UT);var zT=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.color,s=void 0===a?"default":a,l=e.component,c=void 0===l?"button":l,u=e.disabled,d=void 0!==u&&u,p=e.disableFocusRipple,h=void 0!==p&&p,f=e.focusVisibleClassName,m=e.size,g=void 0===m?"large":m,v=e.variant,b=void 0===v?"circular":v,y=(0,Yn.c)(e,["children","classes","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return i.createElement(Er,(0,at.c)({className:(0,kn.c)(r.root,o,"large"!==g&&r["size".concat((0,Zn.c)(g))],d&&r.disabled,"extended"===b&&r.extended,{primary:r.primary,secondary:r.secondary,inherit:r.colorInherit}[s]),component:c,disabled:d,focusRipple:!h,focusVisibleClassName:(0,kn.c)(r.focusVisible,f),ref:t},y),i.createElement("span",{className:r.label},n))}));const qT=(0,Gn.c)((function(e){return{root:(0,at.c)({},e.typography.button,{boxSizing:"border-box",minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]},color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground},textDecoration:"none"},"&$focusVisible":{boxShadow:e.shadows[6]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},secondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},extended:{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}}),{name:"MuiFab"})(zT);var HT;function WT(){if(HT)return HT;var e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),HT="reverse",e.scrollLeft>0?HT="default":(e.scrollLeft=1,0===e.scrollLeft&&(HT="negative")),document.body.removeChild(e),HT}function GT(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;switch(WT()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function VT(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var $T={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function KT(e){var t=e.onChange,n=(0,Yn.c)(e,["onChange"]),r=i.useRef(),o=i.useRef(null),a=function(){r.current=o.current.offsetHeight-o.current.clientHeight};return i.useEffect((function(){var e=(0,Rr.c)((function(){var e=r.current;a(),e!==r.current&&t(r.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),i.useEffect((function(){a(),t(r.current)}),[t]),i.createElement("div",(0,at.c)({style:$T,ref:o},n))}var YT=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,a=e.orientation,s=(0,Yn.c)(e,["classes","className","color","orientation"]);return i.createElement("span",(0,at.c)({className:(0,kn.c)(n.root,n["color".concat((0,Zn.c)(o))],r,"vertical"===a&&n.vertical),ref:t},s))}));const ZT=(0,Gn.c)((function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}}),{name:"PrivateTabIndicator"})(YT),JT=(0,In.c)(i.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),XT=(0,In.c)(i.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var eC=i.createElement(JT,{fontSize:"small"}),tC=i.createElement(XT,{fontSize:"small"}),nC=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.direction,a=e.orientation,s=e.disabled,l=(0,Yn.c)(e,["classes","className","direction","orientation","disabled"]);return i.createElement(Er,(0,at.c)({component:"div",className:(0,kn.c)(n.root,r,s&&n.disabled,"vertical"===a&&n.vertical),ref:t,role:null,tabIndex:null},l),"left"===o?eC:tC)}));const rC=(0,Gn.c)({root:{width:40,flexShrink:0,opacity:.8,"&$disabled":{opacity:0}},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}},disabled:{}},{name:"MuiTabScrollButton"})(nC);var iC=i.forwardRef((function(e,t){var n=e["aria-label"],r=e["aria-labelledby"],o=e.action,a=e.centered,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,p=void 0===d?"div":d,h=e.indicatorColor,f=void 0===h?"secondary":h,m=e.onChange,g=e.orientation,v=void 0===g?"horizontal":g,b=e.ScrollButtonComponent,y=void 0===b?rC:b,_=e.scrollButtons,x=void 0===_?"auto":_,w=e.selectionFollowsFocus,E=e.TabIndicatorProps,T=void 0===E?{}:E,C=e.TabScrollButtonProps,k=e.textColor,S=void 0===k?"inherit":k,O=e.value,A=e.variant,j=void 0===A?"standard":A,P=(0,Yn.c)(e,["aria-label","aria-labelledby","action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant"]),I=Pn(),L="scrollable"===j,R="rtl"===I.direction,N="vertical"===v,D=N?"scrollTop":"scrollLeft",M=N?"top":"left",B=N?"bottom":"right",Q=N?"clientHeight":"clientWidth",U=N?"height":"width";var F=i.useState(!1),z=F[0],q=F[1],H=i.useState({}),W=H[0],G=H[1],V=i.useState({start:!1,end:!1}),$=V[0],K=V[1],Y=i.useState({overflow:"hidden",marginBottom:null}),Z=Y[0],J=Y[1],X=new Map,ee=i.useRef(null),te=i.useRef(null),ne=function(){var e,t,n=ee.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:GT(n,I.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==O){var i=te.current.children;if(i.length>0){var o=i[X.get(O)];0,t=o?o.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},re=(0,sr.c)((function(){var e,t=ne(),n=t.tabsMeta,r=t.tabMeta,i=0;if(r&&n)if(N)i=r.top-n.top+n.scrollTop;else{var o=R?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;i=r.left-n.left+o}var a=(e={},(0,nr.c)(e,M,i),(0,nr.c)(e,U,r?r[U]:0),e);if(isNaN(W[M])||isNaN(W[U]))G(a);else{var s=Math.abs(W[M]-a[M]),l=Math.abs(W[U]-a[U]);(s>=1||l>=1)&&G(a)}})),ie=function(e){!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},o=r.ease,a=void 0===o?VT:o,s=r.duration,l=void 0===s?300:s,c=null,u=t[e],d=!1,p=function(){d=!0};u===n?i(new Error("Element already at target position")):requestAnimationFrame((function r(o){if(d)i(new Error("Animation cancelled"));else{null===c&&(c=o);var s=Math.min(1,(o-c)/l);t[e]=a(s)*(n-u)+u,s>=1?requestAnimationFrame((function(){i(null)})):requestAnimationFrame(r)}}))}(D,ee.current,e)},oe=function(e){var t=ee.current[D];N?t+=e:(t+=e*(R?-1:1),t*=R&&"reverse"===WT()?-1:1),ie(t)},ae=function(){oe(-ee.current[Q])},se=function(){oe(ee.current[Q])},le=i.useCallback((function(e){J({overflow:null,marginBottom:-e})}),[]),ce=(0,sr.c)((function(){var e=ne(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[M]t[B]){var i=t[D]+(n[B]-t[B]);ie(i)}})),ue=(0,sr.c)((function(){if(L&&"off"!==x){var e,t,n=ee.current,r=n.scrollTop,i=n.scrollHeight,o=n.clientHeight,a=n.scrollWidth,s=n.clientWidth;if(N)e=r>1,t=r1,t=R?l>1:l *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}}),{name:"MuiTab"})(aC),lC=(0,In.c)(i.createElement("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"}),"Save"),cC=(0,In.c)(i.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function uC(e){return"Backspace"===e.key||"Delete"===e.key}var dC=i.forwardRef((function(e,t){var n=e.avatar,r=e.classes,o=e.className,a=e.clickable,s=e.color,l=void 0===s?"default":s,c=e.component,u=e.deleteIcon,d=e.disabled,p=void 0!==d&&d,h=e.icon,f=e.label,m=e.onClick,g=e.onDelete,v=e.onKeyDown,b=e.onKeyUp,y=e.size,_=void 0===y?"medium":y,x=e.variant,w=void 0===x?"default":x,E=(0,Yn.c)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),T=i.useRef(null),C=(0,ar.c)(T,t),k=function(e){e.stopPropagation(),g&&g(e)},S=!(!1===a||!m)||a,O="small"===_,A=c||(S?Er:"div"),j=A===Er?{component:"div"}:{},P=null;if(g){var I=(0,kn.c)("default"!==l&&("default"===w?r["deleteIconColor".concat((0,Zn.c)(l))]:r["deleteIconOutlinedColor".concat((0,Zn.c)(l))]),O&&r.deleteIconSmall);P=u&&i.isValidElement(u)?i.cloneElement(u,{className:(0,kn.c)(u.props.className,r.deleteIcon,I),onClick:k}):i.createElement(cC,{className:(0,kn.c)(r.deleteIcon,I),onClick:k})}var L=null;n&&i.isValidElement(n)&&(L=i.cloneElement(n,{className:(0,kn.c)(r.avatar,n.props.className,O&&r.avatarSmall,"default"!==l&&r["avatarColor".concat((0,Zn.c)(l))])}));var R=null;return h&&i.isValidElement(h)&&(R=i.cloneElement(h,{className:(0,kn.c)(r.icon,h.props.className,O&&r.iconSmall,"default"!==l&&r["iconColor".concat((0,Zn.c)(l))])})),i.createElement(A,(0,at.c)({role:S||g?"button":void 0,className:(0,kn.c)(r.root,o,"default"!==l&&[r["color".concat((0,Zn.c)(l))],S&&r["clickableColor".concat((0,Zn.c)(l))],g&&r["deletableColor".concat((0,Zn.c)(l))]],"default"!==w&&[r.outlined,{primary:r.outlinedPrimary,secondary:r.outlinedSecondary}[l]],p&&r.disabled,O&&r.sizeSmall,S&&r.clickable,g&&r.deletable),"aria-disabled":!!p||void 0,tabIndex:S||g?0:void 0,onClick:m,onKeyDown:function(e){e.currentTarget===e.target&&uC(e)&&e.preventDefault(),v&&v(e)},onKeyUp:function(e){e.currentTarget===e.target&&(g&&uC(e)?g(e):"Escape"===e.key&&T.current&&T.current.blur()),b&&b(e)},ref:C},j,E),L||R,i.createElement("span",{className:(0,kn.c)(r.label,O&&r.labelSmall)},f),P)}));const pC=(0,Gn.c)((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=(0,or.W4)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:(0,or.ct)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:(0,or.ct)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:(0,or.ct)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:(0,or.ct)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:(0,or.ct)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:(0,or.ct)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,or.W4)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,or.W4)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,or.W4)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,or.W4)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:(0,or.W4)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:(0,or.W4)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:(0,or.W4)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:(0,or.W4)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(dC),hC=e=>{let{status:t}=e,n="";return n="submitted"===t?(0,Ap.jsx)(Lp,{en:"Submitted",fr:"Soumis"}):"published"===t?(0,Ap.jsx)(Lp,{en:"Published",fr:"Publi\xe9"}):(0,Ap.jsx)(Lp,{en:"Draft",fr:"Brouillon"}),(0,Ap.jsx)(pC,{label:n,variant:"outlined"})},fC=()=>(0,Ap.jsx)("div",{children:(0,Ap.jsx)(Or,{variant:"h5",children:"Not Found / Non trouv\xe9"})});var mC=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.color,s=void 0===a?"primary":a,l=e.component,c=void 0===l?"div":l,u=e.disabled,d=void 0!==u&&u,p=e.error,h=void 0!==p&&p,f=e.fullWidth,m=void 0!==f&&f,g=e.focused,v=e.hiddenLabel,b=void 0!==v&&v,y=e.margin,_=void 0===y?"none":y,x=e.required,w=void 0!==x&&x,E=e.size,T=e.variant,C=void 0===T?"standard":T,k=(0,Yn.c)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),S=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){if((0,Eo.c)(t,["Input","Select"])){var n=(0,Eo.c)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),O=S[0],A=S[1],j=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){(0,Eo.c)(t,["Input","Select"])&&Qi(t.props,!0)&&(e=!0)})),e})),P=j[0],I=j[1],L=i.useState(!1),R=L[0],N=L[1],D=void 0!==g?g:R;d&&D&&N(!1);var M=i.useCallback((function(){I(!0)}),[]),B={adornedStart:O,setAdornedStart:A,color:s,disabled:d,error:h,filled:P,focused:D,fullWidth:m,hiddenLabel:b,margin:("small"===E?"dense":void 0)||_,onBlur:function(){N(!1)},onEmpty:i.useCallback((function(){I(!1)}),[]),onFilled:M,onFocus:function(){N(!0)},registerEffect:undefined,required:w,variant:C};return i.createElement(Vi.Provider,{value:B},i.createElement(c,(0,at.c)({className:(0,kn.c)(r.root,o,"none"!==_&&r["margin".concat((0,Zn.c)(_))],m&&r.fullWidth),ref:t},k),n))}));const gC=(0,Gn.c)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(mC);var vC=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=(e.color,e.component),s=void 0===a?"label":a,l=(e.disabled,e.error,e.filled,e.focused,e.required,(0,Yn.c)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),c=Hi({props:e,muiFormControl:$i(),states:["color","required","focused","disabled","error","filled"]});return i.createElement(s,(0,at.c)({className:(0,kn.c)(r.root,r["color".concat((0,Zn.c)(c.color||"primary"))],o,c.disabled&&r.disabled,c.error&&r.error,c.filled&&r.filled,c.focused&&r.focused,c.required&&r.required),ref:t},l),n,c.required&&i.createElement("span",{"aria-hidden":!0,className:(0,kn.c)(r.asterisk,c.error&&r.error)},"\u2009","*"))}));const bC=(0,Gn.c)((function(e){return{root:(0,at.c)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(vC);var yC=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.disableAnimation,a=void 0!==o&&o,s=(e.margin,e.shrink),l=(e.variant,(0,Yn.c)(e,["classes","className","disableAnimation","margin","shrink","variant"])),c=$i(),u=s;"undefined"===typeof u&&c&&(u=c.filled||c.focused||c.adornedStart);var d=Hi({props:e,muiFormControl:c,states:["margin","variant"]});return i.createElement(bC,(0,at.c)({"data-shrink":u,className:(0,kn.c)(n.root,r,c&&n.formControl,!a&&n.animated,u&&n.shrink,"dense"===d.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[d.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},l))}));const _C=(0,Gn.c)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(yC);var xC=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.component,s=void 0===a?"p":a,l=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,(0,Yn.c)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),c=Hi({props:e,muiFormControl:$i(),states:["variant","margin","disabled","error","filled","focused","required"]});return i.createElement(s,(0,at.c)({className:(0,kn.c)(r.root,("filled"===c.variant||"outlined"===c.variant)&&r.contained,o,c.disabled&&r.disabled,c.error&&r.error,c.filled&&r.filled,c.focused&&r.focused,c.required&&r.required,"dense"===c.margin&&r.marginDense),ref:t},l)," "===n?i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)}));const wC=(0,Gn.c)((function(e){return{root:(0,at.c)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(xC);var EC={standard:oo,filled:ho,outlined:vo},TC=i.forwardRef((function(e,t){var n=e.autoComplete,r=e.autoFocus,o=void 0!==r&&r,a=e.children,s=e.classes,l=e.className,c=e.color,u=void 0===c?"primary":c,d=e.defaultValue,p=e.disabled,h=void 0!==p&&p,f=e.error,m=void 0!==f&&f,g=e.FormHelperTextProps,v=e.fullWidth,b=void 0!==v&&v,y=e.helperText,_=e.hiddenLabel,x=e.id,w=e.InputLabelProps,E=e.inputProps,T=e.InputProps,C=e.inputRef,k=e.label,S=e.multiline,O=void 0!==S&&S,A=e.name,j=e.onBlur,P=e.onChange,I=e.onFocus,L=e.placeholder,R=e.required,N=void 0!==R&&R,D=e.rows,M=e.rowsMax,B=e.maxRows,Q=e.minRows,U=e.select,F=void 0!==U&&U,z=e.SelectProps,q=e.type,H=e.value,W=e.variant,G=void 0===W?"standard":W,V=(0,Yn.c)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]);var $={};if("outlined"===G&&(w&&"undefined"!==typeof w.shrink&&($.notched=w.shrink),k)){var K,Y=null!==(K=null===w||void 0===w?void 0:w.required)&&void 0!==K?K:N;$.label=i.createElement(i.Fragment,null,k,Y&&"\xa0*")}F&&(z&&z.native||($.id=void 0),$["aria-describedby"]=void 0);var Z=y&&x?"".concat(x,"-helper-text"):void 0,J=k&&x?"".concat(x,"-label"):void 0,X=EC[G],ee=i.createElement(X,(0,at.c)({"aria-describedby":Z,autoComplete:n,autoFocus:o,defaultValue:d,fullWidth:b,multiline:O,name:A,rows:D,rowsMax:M,maxRows:B,minRows:Q,type:q,value:H,id:x,inputRef:C,onBlur:j,onChange:P,onFocus:I,placeholder:L,inputProps:E},$,T));return i.createElement(gC,(0,at.c)({className:(0,kn.c)(s.root,l),disabled:h,error:m,fullWidth:b,hiddenLabel:_,ref:t,required:N,color:u,variant:G},V),k&&i.createElement(_C,(0,at.c)({htmlFor:x,id:J},w),k),F?i.createElement(wo,(0,at.c)({"aria-describedby":Z,id:x,labelId:J,value:H,input:ee},z),a):ee,y&&i.createElement(wC,(0,at.c)({id:Z},g),y))}));const CC=(0,Gn.c)({root:{}},{name:"MuiTextField"})(TC);var kC=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.component,s=void 0===a?"div":a,l=e.disablePointerEvents,c=void 0!==l&&l,u=e.disableTypography,d=void 0!==u&&u,p=e.position,h=e.variant,f=(0,Yn.c)(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),m=Gi()||{},g=h;return h&&m.variant,m&&!g&&(g=m.variant),i.createElement(Vi.Provider,{value:null},i.createElement(s,(0,at.c)({className:(0,kn.c)(r.root,o,"end"===p?r.positionEnd:r.positionStart,c&&r.disablePointerEvents,m.hiddenLabel&&r.hiddenLabel,"filled"===g&&r.filled,"dense"===m.margin&&r.marginDense),ref:t},f),"string"!==typeof n||d?n:i.createElement(Or,{color:"textSecondary"},n)))}));const SC=(0,Gn.c)({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(kC);var OC=i.forwardRef((function(e,t){e.checked;var n=e.classes,r=e.className,o=e.control,a=e.disabled,s=(e.inputRef,e.label),l=e.labelPlacement,c=void 0===l?"end":l,u=(e.name,e.onChange,e.value,(0,Yn.c)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),d=$i(),p=a;"undefined"===typeof p&&"undefined"!==typeof o.props.disabled&&(p=o.props.disabled),"undefined"===typeof p&&d&&(p=d.disabled);var h={disabled:p};return["checked","name","onChange","value","inputRef"].forEach((function(t){"undefined"===typeof o.props[t]&&"undefined"!==typeof e[t]&&(h[t]=e[t])})),i.createElement("label",(0,at.c)({className:(0,kn.c)(n.root,r,"end"!==c&&n["labelPlacement".concat((0,Zn.c)(c))],p&&n.disabled),ref:t},u),i.cloneElement(o,h),i.createElement(Or,{component:"span",className:(0,kn.c)(n.label,p&&n.disabled)},s))}));const AC=(0,Gn.c)((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(OC);var jC=i.forwardRef((function(e,t){var n=e.autoFocus,r=e.checked,o=e.checkedIcon,a=e.classes,s=e.className,l=e.defaultChecked,c=e.disabled,u=e.icon,d=e.id,p=e.inputProps,h=e.inputRef,f=e.name,m=e.onBlur,g=e.onChange,v=e.onFocus,b=e.readOnly,y=e.required,_=e.tabIndex,x=e.type,w=e.value,E=(0,Yn.c)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),T=(0,Ui.c)({controlled:r,default:Boolean(l),name:"SwitchBase",state:"checked"}),C=(0,jr.c)(T,2),k=C[0],S=C[1],O=$i(),A=c;O&&"undefined"===typeof A&&(A=O.disabled);var j="checkbox"===x||"radio"===x;return i.createElement(Cr,(0,at.c)({component:"span",className:(0,kn.c)(a.root,s,k&&a.checked,A&&a.disabled),disabled:A,tabIndex:null,role:void 0,onFocus:function(e){v&&v(e),O&&O.onFocus&&O.onFocus(e)},onBlur:function(e){m&&m(e),O&&O.onBlur&&O.onBlur(e)},ref:t},E),i.createElement("input",(0,at.c)({autoFocus:n,checked:r,defaultChecked:l,className:a.input,disabled:A,id:j&&d,name:f,onChange:function(e){var t=e.target.checked;S(t),g&&g(e,t)},readOnly:b,ref:h,required:y,tabIndex:_,type:x,value:w},p)),k?o:u)}));const PC=(0,Gn.c)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(jC),IC=(0,In.c)(i.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),LC=(0,In.c)(i.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),RC=(0,In.c)(i.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var NC=i.createElement(LC,null),DC=i.createElement(IC,null),MC=i.createElement(RC,null),BC=i.forwardRef((function(e,t){var n=e.checkedIcon,r=void 0===n?NC:n,o=e.classes,a=e.color,s=void 0===a?"secondary":a,l=e.icon,c=void 0===l?DC:l,u=e.indeterminate,d=void 0!==u&&u,p=e.indeterminateIcon,h=void 0===p?MC:p,f=e.inputProps,m=e.size,g=void 0===m?"medium":m,v=(0,Yn.c)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),b=d?h:c,y=d?h:r;return i.createElement(PC,(0,at.c)({type:"checkbox",classes:{root:(0,kn.c)(o.root,o["color".concat((0,Zn.c)(s))],d&&o.indeterminate),checked:o.checked,disabled:o.disabled},color:s,inputProps:(0,at.c)({"data-indeterminate":d},f),icon:i.cloneElement(b,{fontSize:void 0===b.props.fontSize&&"small"===g?g:b.props.fontSize}),checkedIcon:i.cloneElement(y,{fontSize:void 0===y.props.fontSize&&"small"===g?g:y.props.fontSize}),ref:t},v))}));const QC=(0,Gn.c)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,or.W4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,or.W4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(BC);var UC=n(4968),FC=n(3564);const zC=5e3,qC=e=>{var t,n;let{onChange:r,value:o,name:a,multiline:s,disabled:l,error:c,translationButonDisabled:u=!1}=e;const{translate:d}=(0,i.useContext)(Fb),[p,h]=(0,i.useState)(!1),{language:f}=mn();let m;const g=new Blob([null===o||void 0===o?void 0:o[f]]).size>=zC;m="en"===f?["en","fr"]:["fr","en"];const v=m[1],b=(null===o||void 0===o||null===(t=o.translations)||void 0===t||null===(n=t[v])||void 0===n?void 0:n.verified)||!1;function y(e,t){return{...e,[v]:{verified:t,...!t&&{message:"text translated using the Amazon translate service / texte traduit \xe0 l'aide du service de traduction Amazon"}}}}function _(e){const{translations:t,...n}={...o},i={...n,[e.target.name]:e.target.value,...e.target.name===v&&e.target.value&&{translations:t||y({},!1)}};r({target:{name:a,value:i}})}return(0,i.useEffect)((()=>{if(o&&!o.translations){if(o.en&&o.fr){const e={...o,translations:{[v]:{verified:!1,message:"text translated using the Amazon translate service / texte traduit \xe0 l'aide du service de traduction Amazon"}}};r({target:{name:a,value:e}})}}}),[a,r,o,v]),(0,Ap.jsx)("div",{children:m.map(((e,t)=>(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(CC,{name:e,fullWidth:!0,value:(null===o||void 0===o?void 0:o[e])||"",onChange:e=>_(e),InputProps:{startAdornment:(0,Ap.jsx)(SC,{position:"start",children:e.toUpperCase()})},multiline:s,disabled:l,error:Boolean(c)}),0===t&&!u&&(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Translate english to french",fr:"Traduire du fran\xe7ais en anglais"}),children:(0,Ap.jsxs)("span",{children:[(0,Ap.jsx)(c_,{style:{margin:"10px"},startIcon:p?(0,Ap.jsx)(r_,{size:20}):(0,Ap.jsx)(UC.c,{}),endIcon:p?null:(0,Ap.jsx)(FC.c,{}),disabled:l||p||!(null!==o&&void 0!==o&&o[e])||g,onClick:()=>{h(!0),d({text:o[e],fromLang:e}).then((e=>{h(!1);const t=e.data;_({target:{name:v,value:t}})}))},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Translate"}),(0,Ap.jsx)(Ip,{children:"Traduire"})]})}),(null===o||void 0===o?void 0:o[v])&&(0,Ap.jsx)(AC,{control:(0,Ap.jsx)(QC,{checked:b,onChange:e=>function(e){const{checked:t}=e.target,n={...o,translations:y(o.translations,t)};r({target:{name:a,value:n}})}(e),color:"primary"}),label:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"I have verified this translation"}),(0,Ap.jsx)(Ip,{children:"J'ai v\xe9rifi\xe9 cette traduction"})]})}),g&&(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["Translation is disabled because text is larger than"," ",zC," characters."]}),(0,Ap.jsxs)(Ip,{children:["La traduction est d\xe9sactiv\xe9e car le texte est plus grand que ",zC," caract\xe8res."]})]})]})})]},e)))})};function HC(e,t,n){var r=this,o=(0,i.useRef)(null),a=(0,i.useRef)(0),s=(0,i.useRef)(null),l=(0,i.useRef)([]),c=(0,i.useRef)(),u=(0,i.useRef)(),d=(0,i.useRef)(e),p=(0,i.useRef)(!0);(0,i.useEffect)((function(){d.current=e}),[e]);var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var f=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,g="maxWait"in n,v=g?Math.max(+n.maxWait||0,t):null;(0,i.useEffect)((function(){return p.current=!0,function(){p.current=!1}}),[]);var b=(0,i.useMemo)((function(){var e=function(e){var t=l.current,n=c.current;return l.current=c.current=null,a.current=e,u.current=d.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!p.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||g&&e-a.current>=v},b=function(t){return s.current=null,m&&l.current?e(t):(l.current=c.current=null,u.current)},y=function e(){var r=Date.now();if(i(r))return b(r);if(p.current){var s=t-(r-o.current),l=g?Math.min(s,v-(r-a.current)):s;n(e,l)}},_=function(){var d=Date.now(),h=i(d);if(l.current=[].slice.call(arguments),c.current=r,o.current=d,h){if(!s.current&&p.current)return a.current=o.current,n(y,t),f?e(o.current):u.current;if(g)return n(y,t),e(o.current)}return s.current||n(y,t),u.current};return _.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=c.current=s.current=null},_.isPending=function(){return!!s.current},_.flush=function(){return s.current?b(Date.now()):u.current},_}),[f,g,t,v,m,h]);return b}function WC(e,t){return e===t}function GC(e){return"function"==typeof e?function(){return e}:e}function VC(e,t,n){var r,o,a=n&&n.equalityFn||WC,s=(r=(0,i.useState)(GC(e)),o=r[1],[r[0],(0,i.useCallback)((function(e){return o(GC(e))}),[])]),l=s[0],c=s[1],u=HC((0,i.useCallback)((function(e){return c(e)}),[c]),t,n),d=(0,i.useRef)(e);return a(d.current,e)||(u(e),d.current=e),[l,u]}const $C=e=>{let{children:t}=e;return(0,Ap.jsx)(Or,{variant:"body2",component:"div",style:{marginTop:"10px"},children:t})},KC=e=>{let{children:t}=e;return(0,Ap.jsx)(Or,{variant:"body1",component:"div",style:{marginBottom:"10px"},children:t})},YC=e=>{let{children:t}=e;return(0,Ap.jsx)(Or,{variant:"h6",component:"div",children:t})},ZC={padding:"10px",margin:"20px",width:"90%"};const JC=async function(e,t,n,r){const i=Zp(Yp(),"updateDraftDoi"),o=Fx(e,n,t,r);delete o.data.type,delete o.data.attributes.prefix;const a={doi:e.datasetIdentifier.replace("https://doi.org/",""),region:t,data:o};return(await i(a)).data.status},XC=e=>{let{record:t,name:n,handleUpdateDatasetIdentifier:r,handleUpdateDoiCreationStatus:o,disabled:a}=e;const{createDraftDoi:s,deleteDraftDoi:l,getDoiStatus:c,datacitePrefix:u}=(0,i.useContext)(Fb),{language:d,region:p,userID:h}=mn(),f=Px(t.datasetIdentifier),[m,g]=(0,i.useState)(!1),[v,b]=(0,i.useState)(!1),[y]=VC(t.datasetIdentifier,1e3),[_,x]=(0,i.useState)(!1),[w,E]=(0,i.useState)(!1),[T,C]=(0,i.useState)(!1),[k,S]=(0,i.useState)(!1),O=m||_||""!==t.doiCreationStatus||""===t.recordID,A=Boolean(u),j=f&&u&&t.doiCreationStatus&&""!==t.doiCreationStatus,P=f&&u&&""!==t.doiCreationStatus&&t.datasetIdentifier.includes(u),I=f&&u&&""!==t.doiCreationStatus&&!v&&t.datasetIdentifier.includes(u),L=(0,i.useRef)(!1);return(0,i.useEffect)((()=>{if(L.current=!0,""===y)o({target:{name:n,value:""}});else if(y&&u&&f){let e=y;y.includes("doi.org/")&&(e=y.split("doi.org/").pop()),c({doi:e,region:p}).then((e=>{L.current&&o({target:{name:n,value:e.data}})})).catch((e=>{console.error(e)}))}return()=>{L.current=!1}}),[y,c,f]),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the DOI for this dataset? Eg,"}),(0,Ap.jsx)(Ip,{children:"Quel est le DOI de ce jeu de donn\xe9es ? Par exemple,"})]})," ","https://doi.org/10.0000/0000",A&&(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:(0,Ap.jsx)("p",{children:"Please save the form before generating a draft DOI."})}),(0,Ap.jsx)(Ip,{children:(0,Ap.jsx)("p",{children:"Veuillez enregistrer le formulaire avant de g\xe9n\xe9rer un brouillon de DOI."})})]})})]}),A&&(0,Ap.jsx)(c_,{onClick:()=>async function(){x(!0);const e=Bb(Cp);try{const n=Fx(t,d,p,u);await s({record:n,region:p}).then((e=>e.data.data.attributes)).then((async n=>{r({target:{value:"https://doi.org/".concat(n.doi)}}),o({target:{value:"draft"}});const i={...t,datasetIdentifier:"https://doi.org/".concat(n.doi),doiCreationStatus:"draft"},a=xb(e,"".concat(p,"/users/").concat(h,"/records"));t.recordID&&await kb(wb(a,t.recordID),{datasetIdentifier:i.datasetIdentifier,doiCreationStatus:i.doiCreationStatus}),g(!0)})).finally((()=>{x(!1)}))}catch(n){throw b(!0),new Error("Error in handleGenerateDOI: ".concat(n))}}(),disabled:O,style:{display:"inline",marginRight:"15px"},children:(0,Ap.jsx)("div",{style:{display:"flex",alignItems:"center"},children:_?(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(r_,{size:24,style:{marginRight:"8px"}}),"Loading..."]}):"Generate DOI"})}),P&&(0,Ap.jsx)(c_,{onClick:()=>async function(){E(!0);try{200===await JC(t,p,d,u)?(S(!0),b(!1)):(b(!0),S(!1))}catch(e){throw b(!0),e}finally{E(!1),setTimeout((()=>{S(!1)}),3e3)}}(),disabled:["not found","unknown"].includes(t.doiCreationStatus),style:{display:"inline",marginRight:"15px"},children:(0,Ap.jsx)("div",{style:{display:"flex",alignItems:"center"},children:w?(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(r_,{size:24,style:{marginRight:"8px"}}),"Loading..."]}):"Update DOI"})}),I&&(0,Ap.jsx)(c_,{onClick:()=>async function(){C(!0);const e=Bb(Cp);try{const i=t.datasetIdentifier.replace("https://doi.org/","");l({doi:i,region:p}).then((e=>e.data)).then((async i=>{if(204===i){r({target:{name:n,value:""}}),o({target:{name:n,value:""}});const i={...t,datasetIdentifier:"",doiCreationStatus:""},a=xb(e,"".concat(p,"/users/").concat(h,"/records"));t.recordID&&await kb(wb(a,t.recordID),{datasetIdentifier:i.datasetIdentifier,doiCreationStatus:i.doiCreationStatus}),g(!1)}else b(!0)})).finally((()=>{C(!1)}))}catch(i){throw console.error(i),b(!0),i}}(),disabled:"draft"!==t.doiCreationStatus,style:{display:"inline",marginRight:"15px"},children:(0,Ap.jsx)("div",{style:{display:"flex",alignItems:"center"},children:T?(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(r_,{size:24,style:{marginRight:"8px"}}),"Loading..."]}):"Delete DOI"})}),v&&(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Lp,{en:"Error occurred with DOI API",fr:"Une erreur s'est produite avec l'API DOI"})}),k&&(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Lp,{en:"DOI has been updated",fr:"Le DOI a \xe9t\xe9 mis \xe0 jour"})}),(0,Ap.jsx)(CC,{style:{marginTop:"10px"},name:n||"datasetIdentifier",helperText:(f?"":(0,Ap.jsx)(Lp,{en:"Invalid DOI",fr:"DOI non valide"}))||j&&(0,Ap.jsx)(Lp,{en:"DOI Status: ".concat(t.doiCreationStatus),fr:"Statut DOI: ".concat(t.doiCreationStatus)}),error:!f,value:t.datasetIdentifier,onChange:e=>r(e),disabled:a,fullWidth:!0})]})};const ek=function(e){let{passes:t}=e;return t?(0,Ap.jsxs)("span",{style:{color:"green",fontSize:"x-large",position:"relative",bottom:"-4px"},children:[" ","\u2713"," "]}):(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Required",fr:"Obligatoire"}),children:(0,Ap.jsxs)("span",{style:{color:"red",fontSize:"large"},children:[" ","\u2735"," "]})})},tk={custodian:{title:{en:"Metadata Custodian",fr:"D\xe9positaire des m\xe9tadonn\xe9es"},text:{en:"Party that accepts accountability and responsibility for the resource and ensures appropriate care and maintenance of the resource ",fr:"Partie qui accepte la reddition de comptes et la responsabilit\xe9 de la ressource et assure le soin et l'entretien appropri\xe9s de la ressource "},required:!0,showProminently:!0},owner:{title:{en:"Data Owner",fr:"Propri\xe9taire des donn\xe9es"},text:{en:"Party that owns the resource",fr:"Partie propri\xe9taire de la ressource"},required:!0,showProminently:!0},distributor:{title:{en:"Distributor",fr:"Distributeur"},text:{en:"Party who distributes the resource",fr:"Partie qui distribue la ressource"},showProminently:!0},author:{title:{en:"Author",fr:"Auteur"},text:{en:"Party who authored the resource"}},coAuthor:{title:{en:"Coauthor",fr:"Co-auteur"},text:{en:"Party who jointly authors the resource",fr:"Partie qui est l'auteur conjoint de la ressource"}},collaborator:{title:{en:"Collaborator",fr:"Collaborateur"},text:{en:"Party who assists with the generation of the resource other than the principal investigator",fr:"Partie qui aide \xe0 la production de la ressource autre que le chercheur principal"}},contributor:{title:{en:"Contributor",fr:"Contributeur"},text:{en:"Party contributing to the resource",fr:"Partie contribuant \xe0 la ressource"}},editor:{title:{en:"Editor",fr:"\xc9diteur"},text:{en:"Party who reviewed or modified the resource to improve the content",fr:"Partie qui a examin\xe9 ou modifi\xe9 la ressource pour am\xe9liorer le contenu"}},funder:{title:{en:"Funder",fr:"Financeur"},text:{en:"Party providing monetary support for the resource",fr:"Partie fournissant un soutien mon\xe9taire pour la ressource"}},mediator:{title:{en:"Mediator",fr:"M\xe9diateur"},text:{en:"A class of entity that mediates access to the resource and for whom the resource is intended or useful ",fr:"Classe d'entit\xe9 qui sert de m\xe9diateur \xe0 l'acc\xe8s \xe0 la ressource et pour laquelle la ressource est destin\xe9e ou utile"}},originator:{title:{en:"Originator",fr:"Initiateur"},text:{en:"Party who created the resource",fr:"Partie qui a cr\xe9\xe9 la ressource"}},pointOfContact:{title:{en:"Point Of Contact",fr:"Point de contact"},text:{en:"Party who can be contacted for acquiring knowledge about or acquisition of the resource",fr:"Partie qui peut \xeatre contact\xe9e pour acqu\xe9rir des connaissances sur la ressource ou l'acquisition de la ressource"}},principalInvestigator:{title:{en:"Principal Investigator",fr:"Responsable de recherche"},text:{en:"Key party responsible for gathering information and conducting research",fr:"Partie cl\xe9 responsable de la collecte de l'information et de la r\xe9alisation de la recherche"}},processor:{title:{en:"Processor",fr:"Transformateur"},text:{en:"Party who has processed the data in a manner such that the resource has been modified",fr:"Partie qui a trait\xe9 les donn\xe9es d'une mani\xe8re telle que la ressource a \xe9t\xe9 modifi\xe9e"}},publisher:{title:{en:"Publisher",fr:"Editeur"},text:{en:"Party who published the resource",fr:"Partie qui a publi\xe9 la ressource"}},resourceProvider:{title:{en:"Resource Provider",fr:"Fournisseur de ressources"},text:{en:"Party that supplies the resource",fr:"Partie qui fournit la ressource "}},rightsHolder:{title:{en:"Rights Holder",fr:"Ayant droit"},text:{en:"Party owning or managing rights over the resource ",fr:"Partie d\xe9tenant ou g\xe9rant des droits sur la ressource"}},sponsor:{title:{en:"Sponsor",fr:"Commanditaire"},text:{en:"Party who speaks for the resource ",fr:"Parti qui parle pour la ressource"}},stakeholder:{title:{en:"Stakeholder",fr:"Actionnaire"},text:{en:"Party who has an interest in the resource or the use of the resource ",fr:"Partie qui a un int\xe9r\xeat dans la ressource ou l'utilisation de la ressource"}}},nk={onGoing:{title:{en:"Ongoing",fr:"En cours"},text:{en:"Data is continually being updated. e.g satellite dataset that continues to be augmented",fr:"Les donn\xe9es sont continuellement mises \xe0 jour, par exemple un ensemble de donn\xe9es satellite qui continue d'\xeatre augment\xe9"}},historicalArchive:{title:{en:"Historical Archive",fr:"Archives historiques"},text:{en:"Data has been stored in an offline storage facility. use to indicate data are archived",fr:"Les donn\xe9es ont \xe9t\xe9 stock\xe9es dans une installation de stockage hors connexion. Utilisez pour indiquer que les donn\xe9es sont archiv\xe9es"}},completed:{title:{en:"Completed",fr:"Termin\xe9"},text:{en:"Production of the data has been completed \te.g. raw data that is not ongoing, completed model",fr:"La production des donn\xe9es a \xe9t\xe9 termin\xe9e, p. ex. donn\xe9es brutes qui ne sont pas en cours, mod\xe8le termin\xe9"}}},rk={heightPositive:{en:"Depth Positive",fr:"Profondeur positive"},depthPositive:{en:"Height Positive",fr:"Hauteur positive"}},ik={Book:{title:{en:"Book",fr:"Livre"},text:{en:"A medium for recording information in the form of writing or images, typically composed of many pages bound together and protected by a cover.",fr:"Support d'enregistrement d'informations sous forme d'\xe9crits ou d'images, g\xe9n\xe9ralement compos\xe9 de plusieurs pages reli\xe9es ensemble et prot\xe9g\xe9es par une couverture."},isoValue:"document"},DataCollectionSampling:{title:{en:"Data Collection (sampling)",fr:"Collecte de donn\xe9es (\xe9chantillonnage)"},text:{en:"sampling methods or protocols",fr:"m\xe9thodes ou protocoles d\u2019\xe9chantillonnage"},isoValue:"collectionSession"},Dataset:{title:{en:"Dataset",fr:"Base de donn\xe9es"},text:{en:"Data encoded in a defined structure.",fr:"Donn\xe9es cod\xe9es dans une structure d\xe9finie."},isoValue:"dataset"},Model:{title:{en:"Model",fr:"Mod\xe8le"},text:{en:"An abstract, conceptual, graphical, mathematical or visualization model that represents empirical objects, phenomena, or physical processes.",fr:"Mod\xe8le abstrait, conceptuel, graphique, math\xe9matique ou de visualisation qui repr\xe9sente des objets empiriques, des ph\xe9nom\xe8nes ou des processus physiques."},isoValue:"model"},Preprint:{title:{en:"Preprint",fr:"Pr\xe9impression"},text:{en:"A version of a scholarly or scientific paper that precedes formal peer review and publication in a peer - reviewed scholarly or scientific journal.",fr:"Version d'un article scientifique ou scientifique qui pr\xe9c\xe8de l'examen formel par les pairs et la publication dans une revue universitaire ou scientifique \xe0 comit\xe9 de lecture."},isoValue:"document"},Report:{title:{en:"Report",fr:"Rapport"},text:{en:"A document that presents information in an organized format for a specific audience and purpose.",fr:"Un document qui pr\xe9sente des informations dans un format organis\xe9 pour un public et un objectif sp\xe9cifiques."},isoValue:"document"},Software:{title:{en:"Software",fr:"Logiciel"},text:{en:"A computer program other than a computational notebook, in either source code(text) or compiled form.Use this type for general software components supporting scholarly research.Use the \u201cComputationalNotebook\u201d value for virtual notebooks.",fr:"Un programme informatique autre qu'un cahier de calcul, sous forme de code source (texte) ou sous forme compil\xe9e. Utilisez ce type pour les composants logiciels g\xe9n\xe9raux prenant en charge la recherche scientifique. Utilisez la valeur \xab ComputationalNotebook \xbb pour les blocs-notes virtuels."},isoValue:"software"},Text:{title:{en:"Text",fr:"Texte"},text:{en:"A resource consisting primarily of words for reading that is not covered by any other textual resource type in this list.",fr:"Une ressource compos\xe9e principalement de mots \xe0 lire qui n'est couverte par aucun autre type de ressource textuelle de cette liste."},isoValue:"document"},Other:{title:{en:"Other",fr:"Autre"},text:{en:"other",fr:"autre"},isoValue:"dataset"}},ok={IsCitedBy:{title:{en:"Is Cited By",fr:"Est cit\xe9 par"},text:{en:"A is cited by B",fr:"A est cit\xe9 par B"},isoValue:"crossReference"},Cites:{title:{en:"Cites",fr:"Cites"},text:{en:"A cites B",fr:"A cite B"},isoValue:"crossReference"},IsSupplementTo:{title:{en:"Is Supplement To",fr:"Est un suppl\xe9ment \xe0"},text:{en:"A is supplement to B",fr:"A est un compl\xe9ment \xe0 B"},isoValue:"crossReference"},IsSupplementedBy:{title:{en:"Is Supplemented By",fr:"Est compl\xe9t\xe9 par"},text:{en:"A is supplemented by B",fr:"A est compl\xe9t\xe9 par B"},isoValue:"crossReference"},IsContinuedBy:{title:{en:"Is Continued By",fr:"Est continu\xe9 par"},text:{en:"A is continued by B",fr:"A est continu\xe9 par B"},isoValue:"series"},Continues:{title:{en:"Continues",fr:"Continue"},text:{en:"A continues B",fr:"A continue B"},isoValue:"series"},IsDescribedBy:{title:{en:"Is Described By",fr:"Est d\xe9crit par"},text:{en:"A is described by B",fr:"A est d\xe9crit par B"},isoValue:"crossReference"},Describes:{title:{en:"Describes",fr:"D\xe9crit"},text:{en:"A describes B",fr:"A d\xe9crit B"},isoValue:"crossReference"},HasMetadata:{title:{en:"Has Metadata",fr:"Poss\xe8de des m\xe9tadonn\xe9es"},text:{en:"A has metadata B",fr:"A a des m\xe9tadonn\xe9es B"},isoValue:"crossReference"},IsMetadataFor:{title:{en:"Is Metadata For",fr:"Les m\xe9tadonn\xe9es sont-elles destin\xe9es"},text:{en:"A is metadata for B",fr:"A est une m\xe9tadonn\xe9e pour B"},isoValue:"crossReference"},HasVersion:{title:{en:"Has Version",fr:"A une version"},text:{en:"A has version B",fr:"A a la version B"},isoValue:"revisionOf"},IsVersionOf:{title:{en:"Is Version Of",fr:"Est la version de"},text:{en:"A is version of B",fr:"A est la version de B"},isoValue:"revisionOf"},IsNewVersionOf:{title:{en:"Is New Version Of",fr:"Est-ce une nouvelle version de"},text:{en:"A is new version of B",fr:"A est une nouvelle version de B"},isoValue:"revisionOf"},PreviousVersionOf:{title:{en:"Previous Version Of",fr:"Version pr\xe9c\xe9dente de"},text:{en:"A is previous version of B",fr:"A est la version pr\xe9c\xe9dente de B"},isoValue:"crossReference"},IsPartOf:{title:{en:"Is Part Of",fr:"Fait partie de"},text:{en:"A is part of B",fr:"A fait partie de B"},isoValue:"largerWorkCitation"},HasPart:{title:{en:"Has Part",fr:"A une partie"},text:{en:"A has part B",fr:"A a la partie B"},isoValue:"isComposedOf"},IsPublishedIn:{title:{en:"Is Published In",fr:"Est publi\xe9 dans"},text:{en:"A is published in B",fr:"A est publi\xe9 dans B"},isoValue:"largerWorkCitation"},IsReferencedBy:{title:{en:"Is Referenced By",fr:"Est r\xe9f\xe9renc\xe9 par"},text:{en:"A is referenced by B",fr:"A est r\xe9f\xe9renc\xe9 par B"},isoValue:"crossReference"},References:{title:{en:"References",fr:"Les r\xe9f\xe9rences"},text:{en:"A references B",fr:"A r\xe9f\xe9rences B"},isoValue:"crossReference"},IsDocumentedBy:{title:{en:"Is Documented By",fr:"Est document\xe9 par"},text:{en:"A is documented by B",fr:"A est document\xe9 par B"},isoValue:"crossReference"},Documents:{title:{en:"Documents",fr:"Documents"},text:{en:"A documents B",fr:"Un document B"},isoValue:"crossReference"},IsCompiledBy:{title:{en:"Is Compiled By",fr:"Est compil\xe9 par"},text:{en:"A is compiled by B",fr:"A est compil\xe9 par B"},isoValue:"dependency"},Compiles:{title:{en:"Compiles",fr:"Compile"},text:{en:"A compiles B",fr:"A compile B"},isoValue:"dependency"},IsVariantFormOf:{title:{en:"Is Variant Form Of",fr:"Est une forme variante de"},text:{en:"A is variant form of B",fr:"A est une variante de B"},isoValue:"crossReference"},IsOriginalFormOf:{title:{en:"Is Original Form Of",fr:"Est la forme originale de"},text:{en:"A is original form of B",fr:"A est la forme originale de B"},isoValue:"crossReference"},IsIdenticalTo:{title:{en:"Is Identical To",fr:"Est identique \xe0"},text:{en:"A is identical to B",fr:"A est identique \xe0 B"},isoValue:"crossReference"},IsReviewedBy:{title:{en:"Is Reviewed By",fr:"Est r\xe9vis\xe9 par"},text:{en:"A is reviewed by B",fr:"A est examin\xe9 par B"},isoValue:"crossReference"},Reviews:{title:{en:"Reviews",fr:"Commentaires"},text:{en:"A reviews B",fr:"A avis B"},isoValue:"crossReference"},IsDerivedFrom:{title:{en:"Is Derived From",fr:"D\xe9rive de"},text:{en:"A is derived from B",fr:"A est d\xe9riv\xe9 de B"},isoValue:"dependency"},IsSourceOf:{title:{en:"Is Source Of",fr:"est la source de"},text:{en:"A is source of B",fr:"A est la source de B"},isoValue:"dependency"},Requires:{title:{en:"Requires",fr:"A besoin"},text:{en:"A requires B",fr:"A n\xe9cessite B"},isoValue:"dependency"},IsRequiredBy:{title:{en:"Is Required By",fr:"Est requis par"},text:{en:"A is required by B",fr:"A est requis par B"},isoValue:"dependency"},IsObsoletedBy:{title:{en:"Is Obsoleted By",fr:"Est obsol\xe8te par"},text:{en:"A is obsoleted by B",fr:"A est obsol\xe8te par B"},isoValue:"crossReference"},Obsoletes:{title:{en:"Obsoletes",fr:"Obsol\xe8tes"},text:{en:"A obsoletes B",fr:"A rend obsol\xe8te B"},isoValue:"revisionOf"}},ak=["ARK","arXiv","bibcode","ca.cioos","DOI","EAN13","EISSN","Handle","IGSN","ISBN","ISSN","ISTC","LISSN","LSID","PMID","PURL","UPC","URL","URN","w3id"],sk=e=>{let{onChange:t,value:n=[],name:r,options:i,optionLabels:o=i,optionTooltips:a=[],disabled:s,labelSize:l=3}=e;return(0,Ap.jsx)(e_,{container:!0,direction:"row",children:i.map(((e,i)=>(0,Ap.jsx)(e_,{item:!0,xs:l,children:(0,Ap.jsx)(ms,{title:a[i]||"",children:(0,Ap.jsx)(AC,{disabled:s,control:(0,Ap.jsx)(QC,{value:e||[],name:r,checked:n.includes(e),onChange:e=>{const r=e.target.value,i=(o=r,(a=n).includes(o)?a.filter((e=>e!==o)):a.concat(o));var o,a;t(i)}}),label:(0,Ap.jsx)(Or,{children:o[i]})})})},i)))})};var lk=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"li":s,c=e.disableGutters,u=void 0!==c&&c,d=e.disableSticky,p=void 0!==d&&d,h=e.inset,f=void 0!==h&&h,m=(0,Yn.c)(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return i.createElement(l,(0,at.c)({className:(0,kn.c)(n.root,r,"default"!==a&&n["color".concat((0,Zn.c)(a))],f&&n.inset,!p&&n.sticky,!u&&n.gutters),ref:t},m))}));const ck=(0,Gn.c)((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(lk),uk=(0,In.c)(i.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),dk=(0,In.c)(i.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function pk(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function hk(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,i=void 0===r||r,o=e.limit,a=e.matchFrom,s=void 0===a?"any":a,l=e.stringify,c=e.trim,u=void 0!==c&&c;return function(e,t){var r=t.inputValue,a=t.getOptionLabel,c=u?r.trim():r;i&&(c=c.toLowerCase()),n&&(c=pk(c));var d=e.filter((function(e){var t=(l||a)(e);return i&&(t=t.toLowerCase()),n&&(t=pk(t)),"start"===s?0===t.indexOf(c):t.indexOf(c)>-1}));return"number"===typeof o?d.slice(0,o):d}}();function mk(e){var t=e.autoComplete,n=void 0!==t&&t,r=e.autoHighlight,o=void 0!==r&&r,a=e.autoSelect,s=void 0!==a&&a,l=e.blurOnSelect,c=void 0!==l&&l,u=e.clearOnBlur,d=void 0===u?!e.freeSolo:u,p=e.clearOnEscape,h=void 0!==p&&p,f=e.componentName,m=void 0===f?"useAutocomplete":f,g=e.debug,v=void 0!==g&&g,b=e.defaultValue,y=void 0===b?e.multiple?[]:null:b,_=e.disableClearable,x=void 0!==_&&_,w=e.disableCloseOnSelect,E=void 0!==w&&w,T=e.disabledItemsFocusable,C=void 0!==T&&T,k=e.disableListWrap,S=void 0!==k&&k,O=e.filterOptions,A=void 0===O?fk:O,j=e.filterSelectedOptions,P=void 0!==j&&j,I=e.freeSolo,L=void 0!==I&&I,R=e.getOptionDisabled,N=e.getOptionLabel,D=void 0===N?function(e){return e}:N,M=e.getOptionSelected,B=void 0===M?function(e,t){return e===t}:M,Q=e.groupBy,U=e.handleHomeEndKeys,F=void 0===U?!e.freeSolo:U,z=e.id,q=e.includeInputInList,H=void 0!==q&&q,W=e.inputValue,G=e.multiple,V=void 0!==G&&G,$=e.onChange,K=e.onClose,Y=e.onHighlightChange,Z=e.onInputChange,J=e.onOpen,X=e.open,ee=e.openOnFocus,te=void 0!==ee&&ee,ne=e.options,re=e.selectOnFocus,ie=void 0===re?!e.freeSolo:re,oe=e.value,ae=(0,us.c)(z),se=D;var le=i.useRef(!1),ce=i.useRef(!0),ue=i.useRef(null),de=i.useRef(null),pe=i.useState(null),he=pe[0],fe=pe[1],me=i.useState(-1),ge=me[0],ve=me[1],be=o?0:-1,ye=i.useRef(be),_e=(0,Ui.c)({controlled:oe,default:y,name:m}),xe=(0,jr.c)(_e,2),we=xe[0],Ee=xe[1],Te=(0,Ui.c)({controlled:W,default:"",name:m,state:"inputValue"}),Ce=(0,jr.c)(Te,2),ke=Ce[0],Se=Ce[1],Oe=i.useState(!1),Ae=Oe[0],je=Oe[1],Pe=(0,sr.c)((function(e,t){var n;if(V)n="";else if(null==t)n="";else{var r=se(t);n="string"===typeof r?r:""}ke!==n&&(Se(n),Z&&Z(e,n,"reset"))}));i.useEffect((function(){Pe(null,we)}),[we,Pe]);var Ie=(0,Ui.c)({controlled:X,default:!1,name:m,state:"open"}),Le=(0,jr.c)(Ie,2),Re=Le[0],Ne=Le[1],De=!V&&null!=we&&ke===se(we),Me=Re,Be=Me?A(ne.filter((function(e){return!P||!(V?we:[we]).some((function(t){return null!==t&&B(e,t)}))})),{inputValue:De?"":ke,getOptionLabel:se}):[],Qe=(0,sr.c)((function(e){-1===e?ue.current.focus():he.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));i.useEffect((function(){V&&ge>we.length-1&&(ve(-1),Qe(-1))}),[we,V,ge,Qe]);var Ue=(0,sr.c)((function(e){var t=e.event,n=e.index,r=e.reason,i=void 0===r?"auto":r;if(ye.current=n,-1===n?ue.current.removeAttribute("aria-activedescendant"):ue.current.setAttribute("aria-activedescendant","".concat(ae,"-option-").concat(n)),Y&&Y(t,-1===n?null:Be[n],i),de.current){var o=de.current.querySelector("[data-focus]");o&&o.removeAttribute("data-focus");var a=de.current.parentElement.querySelector('[role="listbox"]');if(a)if(-1!==n){var s=de.current.querySelector('[data-option-index="'.concat(n,'"]'));if(s&&(s.setAttribute("data-focus","true"),a.scrollHeight>a.clientHeight&&"mouse"!==i)){var l=s,c=a.clientHeight+a.scrollTop,u=l.offsetTop+l.offsetHeight;u>c?a.scrollTop=u-a.clientHeight:l.offsetTop-l.offsetHeight*(Q?1.3:0)1?0:e:t>e?t===e+1&&H?-1:S||Math.abs(r)>1?e:0:t}(),o);if(Ue({index:l,reason:s,event:t}),n&&"reset"!==r)if(-1===l)ue.current.value=ke;else{var c=se(Be[l]);ue.current.value=c,0===c.toLowerCase().indexOf(ke.toLowerCase())&&ke.length>0&&ue.current.setSelectionRange(ke.length,c.length)}}})),ze=i.useCallback((function(){if(Me){var e=V?we[0]:we;if(0!==Be.length&&null!=e){if(de.current)if(P||null==e)ye.current>=Be.length-1?Ue({index:Be.length-1}):Ue({index:ye.current});else{var t=Be[ye.current];if(V&&t&&-1!==hk(we,(function(e){return B(t,e)})))return;var n=hk(Be,(function(t){return B(t,e)}));-1===n?Fe({diff:"reset"}):Ue({index:n})}}else Fe({diff:"reset"})}}),[0===Be.length,!V&&we,P,Fe,Ue,Me,ke,V]),qe=(0,sr.c)((function(e){(0,Br.c)(de,e),e&&ze()}));i.useEffect((function(){ze()}),[ze]);var He=function(e){Re||(Ne(!0),J&&J(e))},We=function(e,t){Re&&(Ne(!1),K&&K(e,t))},Ge=function(e,t,n,r){we!==t&&($&&$(e,t,n,r),Ee(t))},Ve=i.useRef(!1),$e=function(e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"select-option",i=t;if(V){var o=hk(i=Array.isArray(we)?we.slice():[],(function(e){return B(t,e)}));-1===o?i.push(t):"freeSolo"!==n&&(i.splice(o,1),r="remove-option")}Pe(e,i),Ge(e,i,r,{option:t}),E||We(e,r),(!0===c||"touch"===c&&Ve.current||"mouse"===c&&!Ve.current)&&ue.current.blur()};var Ke=function(e,t){if(V){We(e,"toggleInput");var n=ge;-1===ge?""===ke&&"previous"===t&&(n=we.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===we.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===we.length||"previous"===t&&-1===n)return-1;var r=he.querySelector('[data-tag-index="'.concat(n,'"]'));if(!r||r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),ve(n),Qe(n)}},Ye=function(e){le.current=!0,Se(""),Z&&Z(e,"","clear"),Ge(e,V?[]:null,"clear")},Ze=function(e){return function(t){switch(-1!==ge&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(ve(-1),Qe(-1)),t.key){case"Home":Me&&F&&(t.preventDefault(),Fe({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":Me&&F&&(t.preventDefault(),Fe({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Fe({diff:-5,direction:"previous",reason:"keyboard",event:t}),He(t);break;case"PageDown":t.preventDefault(),Fe({diff:5,direction:"next",reason:"keyboard",event:t}),He(t);break;case"ArrowDown":t.preventDefault(),Fe({diff:1,direction:"next",reason:"keyboard",event:t}),He(t);break;case"ArrowUp":t.preventDefault(),Fe({diff:-1,direction:"previous",reason:"keyboard",event:t}),He(t);break;case"ArrowLeft":Ke(t,"previous");break;case"ArrowRight":Ke(t,"next");break;case"Enter":if(229===t.which)break;if(-1!==ye.current&&Me){var r=Be[ye.current],i=!!R&&R(r);if(t.preventDefault(),i)return;$e(t,r,"select-option"),n&&ue.current.setSelectionRange(ue.current.value.length,ue.current.value.length)}else L&&""!==ke&&!1===De&&(V&&t.preventDefault(),$e(t,ke,"create-option","freeSolo"));break;case"Escape":Me?(t.preventDefault(),t.stopPropagation(),We(t,"escape")):h&&(""!==ke||V&&we.length>0)&&(t.preventDefault(),t.stopPropagation(),Ye(t));break;case"Backspace":if(V&&""===ke&&we.length>0){var o=-1===ge?we.length-1:ge,a=we.slice();a.splice(o,1),Ge(t,a,"remove-option",{option:we[o]})}}e.onKeyDown&&e.onKeyDown(t)}},Je=function(e){je(!0),te&&!le.current&&He(e)},Xe=function(e){null===de.current||document.activeElement!==de.current.parentElement?(je(!1),ce.current=!0,le.current=!1,v&&""!==ke||(s&&-1!==ye.current&&Me?$e(e,Be[ye.current],"blur"):s&&L&&""!==ke?$e(e,ke,"blur","freeSolo"):d&&Pe(e,we),We(e,"blur"))):ue.current.focus()},et=function(e){var t=e.target.value;ke!==t&&(Se(t),Z&&Z(e,t,"input")),""===t?x||V||Ge(e,null,"clear"):He(e)},tt=function(e){Ue({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},nt=function(){Ve.current=!0},rt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));$e(e,Be[t],"select-option"),Ve.current=!1},it=function(e){return function(t){var n=we.slice();n.splice(e,1),Ge(t,n,"remove-option",{option:we[e]})}},ot=function(e){Re?We(e,"toggleInput"):He(e)},st=function(e){e.target.getAttribute("id")!==ae&&e.preventDefault()},lt=function(){ue.current.focus(),ie&&ce.current&&ue.current.selectionEnd-ue.current.selectionStart===0&&ue.current.select(),ce.current=!1},ct=function(e){""!==ke&&Re||ot(e)},ut=L&&ke.length>0;ut=ut||(V?we.length>0:null!==we);var dt=Be;if(Q){new Map;dt=Be.reduce((function(e,t,n){var r=Q(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,at.c)({"aria-owns":Me?"".concat(ae,"-popup"):null,role:"combobox","aria-expanded":Me},e,{onKeyDown:Ze(e),onMouseDown:st,onClick:lt})},getInputLabelProps:function(){return{id:"".concat(ae,"-label"),htmlFor:ae}},getInputProps:function(){return{id:ae,value:ke,onBlur:Xe,onFocus:Je,onChange:et,onMouseDown:ct,"aria-activedescendant":Me?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Me?"".concat(ae,"-popup"):null,autoComplete:"off",ref:ue,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:Ye}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:ot}},getTagProps:function(e){var t=e.index;return{key:t,"data-tag-index":t,tabIndex:-1,onDelete:it(t)}},getListboxProps:function(){return{role:"listbox",id:"".concat(ae,"-popup"),"aria-labelledby":"".concat(ae,"-label"),ref:qe,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,n=e.option,r=(V?we:[we]).some((function(e){return null!=e&&B(n,e)})),i=!!R&&R(n);return{key:t,tabIndex:-1,role:"option",id:"".concat(ae,"-option-").concat(t),onMouseOver:tt,onClick:rt,onTouchStart:nt,"data-option-index":t,"aria-disabled":i,"aria-selected":r}},id:ae,inputValue:ke,value:we,dirty:ut,popupOpen:Me,focused:Ae||-1!==ge,anchorEl:he,setAnchorEl:fe,focusedTag:ge,groupedOptions:dt}}function gk(e){e.anchorEl,e.open;var t=(0,Yn.c)(e,["anchorEl","open"]);return i.createElement("div",t)}var vk=i.createElement(uk,{fontSize:"small"}),bk=i.createElement(dk,null),yk=i.forwardRef((function(e,t){e.autoComplete,e.autoHighlight,e.autoSelect,e.blurOnSelect;var n,r=e.ChipProps,o=e.classes,a=e.className,s=e.clearOnBlur,l=(void 0===s&&e.freeSolo,e.clearOnEscape,e.clearText),c=void 0===l?"Clear":l,u=e.closeIcon,d=void 0===u?vk:u,p=e.closeText,h=void 0===p?"Close":p,f=(e.debug,e.defaultValue),m=(void 0===f&&e.multiple,e.disableClearable),g=void 0!==m&&m,v=(e.disableCloseOnSelect,e.disabled),b=void 0!==v&&v,y=(e.disabledItemsFocusable,e.disableListWrap,e.disablePortal),_=void 0!==y&&y,x=(e.filterOptions,e.filterSelectedOptions,e.forcePopupIcon),w=void 0===x?"auto":x,E=e.freeSolo,T=void 0!==E&&E,C=e.fullWidth,k=void 0!==C&&C,S=e.getLimitTagsText,O=void 0===S?function(e){return"+".concat(e)}:S,A=(e.getOptionDisabled,e.getOptionLabel),j=void 0===A?function(e){return e}:A,P=(e.getOptionSelected,e.groupBy),I=e.handleHomeEndKeys,L=(void 0===I&&e.freeSolo,e.id,e.includeInputInList,e.inputValue,e.limitTags),R=void 0===L?-1:L,N=e.ListboxComponent,D=void 0===N?"ul":N,M=e.ListboxProps,B=e.loading,Q=void 0!==B&&B,U=e.loadingText,F=void 0===U?"Loading\u2026":U,z=e.multiple,q=void 0!==z&&z,H=e.noOptionsText,W=void 0===H?"No options":H,G=(e.onChange,e.onClose,e.onHighlightChange,e.onInputChange,e.onOpen,e.open,e.openOnFocus,e.openText),V=void 0===G?"Open":G,$=(e.options,e.PaperComponent),K=void 0===$?Xn:$,Y=e.PopperComponent,Z=void 0===Y?cs:Y,J=e.popupIcon,X=void 0===J?bk:J,ee=e.renderGroup,te=e.renderInput,ne=e.renderOption,re=e.renderTags,ie=e.selectOnFocus,oe=(void 0===ie&&e.freeSolo,e.size),ae=void 0===oe?"medium":oe,se=(e.value,(0,Yn.c)(e,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"])),le=_?gk:Z,ce=mk((0,at.c)({},e,{componentName:"Autocomplete"})),ue=ce.getRootProps,de=ce.getInputProps,pe=ce.getInputLabelProps,he=ce.getPopupIndicatorProps,fe=ce.getClearProps,me=ce.getTagProps,ge=ce.getListboxProps,ve=ce.getOptionProps,be=ce.value,ye=ce.dirty,_e=ce.id,xe=ce.popupOpen,we=ce.focused,Ee=ce.focusedTag,Te=ce.anchorEl,Ce=ce.setAnchorEl,ke=ce.inputValue,Se=ce.groupedOptions;if(q&&be.length>0){var Oe=function(e){return(0,at.c)({className:(0,kn.c)(o.tag,"small"===ae&&o.tagSizeSmall),disabled:b},me(e))};n=re?re(be,Oe):be.map((function(e,t){return i.createElement(pC,(0,at.c)({label:j(e),size:ae},Oe({index:t}),r))}))}if(R>-1&&Array.isArray(n)){var Ae=n.length-R;!we&&Ae>0&&(n=n.splice(0,R)).push(i.createElement("span",{className:o.tag,key:n.length},O(Ae)))}var je=ee||function(e){return i.createElement("li",{key:e.key},i.createElement(ck,{className:o.groupLabel,component:"div"},e.group),i.createElement("ul",{className:o.groupUl},e.children))},Pe=ne||j,Ie=function(e,t){var n=ve({option:e,index:t});return i.createElement("li",(0,at.c)({},n,{className:o.option}),Pe(e,{selected:n["aria-selected"],inputValue:ke}))},Le=!g&&!b,Re=(!T||!0===w)&&!1!==w;return i.createElement(i.Fragment,null,i.createElement("div",(0,at.c)({ref:t,className:(0,kn.c)(o.root,a,we&&o.focused,k&&o.fullWidth,Le&&o.hasClearIcon,Re&&o.hasPopupIcon)},ue(se)),te({id:_e,disabled:b,fullWidth:!0,size:"small"===ae?"small":void 0,InputLabelProps:pe(),InputProps:{ref:Ce,className:o.inputRoot,startAdornment:n,endAdornment:i.createElement("div",{className:o.endAdornment},Le?i.createElement(Cr,(0,at.c)({},fe(),{"aria-label":c,title:c,className:(0,kn.c)(o.clearIndicator,ye&&o.clearIndicatorDirty)}),d):null,Re?i.createElement(Cr,(0,at.c)({},he(),{disabled:b,"aria-label":xe?h:V,title:xe?h:V,className:(0,kn.c)(o.popupIndicator,xe&&o.popupIndicatorOpen)}),X):null)},inputProps:(0,at.c)({className:(0,kn.c)(o.input,-1===Ee&&o.inputFocused),disabled:b},de())})),xe&&Te?i.createElement(le,{className:(0,kn.c)(o.popper,_&&o.popperDisablePortal),style:{width:Te?Te.clientWidth:null},role:"presentation",anchorEl:Te,open:!0},i.createElement(K,{className:o.paper},Q&&0===Se.length?i.createElement("div",{className:o.loading},F):null,0!==Se.length||T||Q?null:i.createElement("div",{className:o.noOptions},W),Se.length>0?i.createElement(D,(0,at.c)({className:o.listbox},ge(),M),Se.map((function(e,t){return P?je({key:e.key,group:e.group,children:e.options.map((function(t,n){return Ie(t,e.index+n)}))}):Ie(e,t)}))):null)):null)}));const _k=(0,Gn.c)((function(e){var t;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:e.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:(0,at.c)({},e.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:e.palette.text.secondary,padding:"14px 16px"},noOptions:{color:e.palette.text.secondary,padding:"14px 16px"},option:(t={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,nr.c)(t,e.breakpoints.up("sm"),{minHeight:"auto"}),(0,nr.c)(t,'&[aria-selected="true"]',{backgroundColor:e.palette.action.selected}),(0,nr.c)(t,'&[data-focus="true"]',{backgroundColor:e.palette.action.hover}),(0,nr.c)(t,"&:active",{backgroundColor:e.palette.action.selected}),(0,nr.c)(t,'&[aria-disabled="true"]',{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"}),t),groupLabel:{backgroundColor:e.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}}),{name:"MuiAutocomplete"})(yk),xk=e=>{let{record:t,updateRecord:n,region:r}=e;const[o,a]=(0,i.useState)({}),[s,l]=(0,i.useState)(null),[c,u]=(0,i.useState)({}),[d,p]=(0,i.useState)(!0),h=t.userID;(0,i.useEffect)((()=>{let e=!0;t.recordID&&p(!1);return(async()=>{try{const t=await async function(e){const t=Bb(Cp);try{const n=xb(t,"".concat(e,"/users"));return(await Sb(n)).val()}catch(gh){throw new Error("Error fetching user emails for region ".concat(e,": ").concat(gh))}}(r);e&&a(t)}catch(gh){throw new Error("Error loading region users: ".concat(gh))}})(),()=>{e=!1}}),[r,t.recordID]),(0,i.useEffect)((()=>{const e={};Object.keys(t.sharedWith||{}).forEach((t=>{var n,r;const i=null===(n=o[t])||void 0===n||null===(r=n.userinfo)||void 0===r?void 0:r.displayName;i&&(e[t]={name:i})})),u(e)}),[t.sharedWith,o]);const f=Object.entries(o).map((e=>{var t;let[n,r]=e;return{label:null===(t=r.userinfo)||void 0===t?void 0:t.displayName,userID:n}})).filter((e=>e.label)).sort(((e,t)=>e.label.localeCompare(t.label)));return(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,style:{margin:"10px"},children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"To share editing access with another user, start typing their name and select from the suggestions."}),(0,Ap.jsx)(Ip,{children:"Pour partager l'acc\xe8s en modification avec un autre utilisateur, commencez \xe0 saisir son nom et s\xe9lectionnez parmi les suggestions."})]})}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:(0,Ap.jsx)("p",{children:"Please save the form before sharing access."})}),(0,Ap.jsx)(Ip,{children:(0,Ap.jsx)("p",{children:"Veuillez enregistrer le formulaire avant de partager l'acc\xe8s."})})]})})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{margin:"10px"},children:(0,Ap.jsxs)(e_,{container:!0,spacing:2,children:[(0,Ap.jsxs)(e_,{item:!0,xs:6,children:[(0,Ap.jsx)(_k,{id:"share-with-emails",options:f,getOptionLabel:e=>e.label,getOptionSelected:(e,t)=>e.userID===t.userID,value:s,onChange:(e,t)=>l(t),fullWidth:!0,filterSelectedOptions:!0,renderInput:e=>(0,Ap.jsx)(CC,{...e,label:(0,Ap.jsx)(Lp,{en:"Share with...",fr:"Partager avec..."}),variant:"outlined",style:{marginTop:"16px"}})}),(0,Ap.jsx)(c_,{disabled:d,startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>{s&&((e=>{const i={...t.sharedWith,[e]:!0};u(i),n("sharedWith")(i),(async()=>{try{await q_(e,t.recordID,h,r,!0)}catch(gh){throw new Error("Failed to update shared record: ".concat(gh))}})()})(s.userID),l(null))},style:{height:"46px",justifyContent:"center",marginTop:"15px"},children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Share Record"}),(0,Ap.jsx)(Ip,{children:"Partager l'enregistrement"})]})})})]}),(0,Ap.jsx)(e_,{item:!0,xs:6,style:{paddingLeft:"35px"},children:(0,Ap.jsxs)(QT,{style:{margin:"10px"},children:[(0,Ap.jsx)(Or,{style:{fontWeight:"bold"},children:Object.keys(c).length>0&&(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Users this record is shared with:"}),(0,Ap.jsx)(Ip,{children:"Utilisateurs avec lesquels cet enregistrement est partag\xe9\xa0:"})]})}),(0,Ap.jsx)(ki,{children:Object.entries(c).map(((e,i)=>{let[o,a]=e;return(0,Ap.jsxs)(ko,{children:[(0,Ap.jsx)(Yo,{primary:(0,Ap.jsx)(Or,{children:a.name})}),(0,Ap.jsx)(X_,{children:(0,Ap.jsx)(Cr,{"aria-label":"delete",style:{marginRight:"60px"},onClick:()=>(e=>{if(t.sharedWith&&t.sharedWith[e]){const i={...t.sharedWith};delete i[e],n("sharedWith")(i);const o=async()=>{try{await q_(e,t.recordID,h,r,!1)}catch(gh){throw new Error("Failed to unshare the record: ".concat(gh))}};o()}})(o),children:(0,Ap.jsx)(nx,{})})})]},i)}))})]})})]})})]})})},wk=An((()=>({formControl:{minWidth:200},selectEmpty:{}}))),Ek=e=>{let{value:t="",name:n,options:r,optionLabels:i,optionTooltips:o=[],onChange:a,disabled:s,label:l,fullWidth:c=!0}=e;const u=wk();return(0,Ap.jsx)(gC,{fullWidth:c,className:u.formControl,disabled:s,children:(0,Ap.jsxs)(wo,{className:u.selectEmpty,name:n,fullWidth:c,value:t,disabled:s,displayEmpty:!0,onChange:a,children:[(0,Ap.jsx)(Oo,{value:"",children:(0,Ap.jsx)(_C,{id:"demo-simple-select-label",children:(0,Ap.jsx)(Or,{children:l||(0,Ap.jsx)(Lp,{en:"Choose",fr:"Choisir"})})})}),r.map(((e,t)=>(0,Ap.jsx)(Oo,{value:e,children:(0,Ap.jsx)(ms,{enterDelay:1,title:o[t]?o[t]:"",children:(0,Ap.jsx)("div",{style:{width:"100%"},children:i[t]})})},e)))]})})},{DataCollectionSampling:Tk,...Ck}=ik,kk=e=>{let{disabled:t,record:n,updateRecord:r,handleUpdateRecord:o,userID:a}=e;const{language:s,region:l}=mn(),c=Cn[l],[u,d]=(0,i.useState)(!1),p=(0,i.useRef)(!1);return(0,i.useEffect)((()=>(p.current=!0,n.language||o("language")({target:{value:s}}),n.metadataScope||o("metadataScope")({target:{value:"Dataset"}}),()=>{p.current=!1})),[s]),(0,i.useEffect)((()=>{const e=!n.recordID;(a===n.userID||e)&&d(!0)}),[a,n.userID,n.recordID]),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(Xn,{style:ZC,children:[t&&(0,Ap.jsx)(KC,{style:{paddingBottom:"15px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:(0,Ap.jsx)("b",{children:"This form is locked because it has already been published, or you do not have access to edit it."})}),(0,Ap.jsx)(Ip,{children:(0,Ap.jsx)("b",{children:"Ce formulaire est verrouill\xe9 car il a d\xe9j\xe0 \xe9t\xe9 publi\xe9 ou vous n'avez pas acc\xe8s pour le modifier."})})]})}),(0,Ap.jsxs)(Or,{variant:"body1",children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["Welcome to the ",c.title.en," Metadata Entry Tool, the first step in making your data discoverable and accessible through CIOOS. This information will be used to create a metadata record for your dataset that will allow it to be searchable through the"," ",c.catalogueTitle.en,". Please fill out each field with as much detail as possible. The metadata record will help describe this dataset for others to determine if it is relevant for their work and ensure it is interoperable with other databases and systems.",(0,Ap.jsx)("br",{}),(0,Ap.jsx)("br",{})," Questions regarding the form can be directed to"," "]}),(0,Ap.jsxs)(Ip,{children:["Bienvenue dans l\u2019outil de saisie de m\xe9tadonn\xe9es"," ",c.titleFrPossessive," qui constitue la premi\xe8re \xe9tape du processus de partage de vos donn\xe9es. Ces renseignements serviront \xe0 cr\xe9er le profil de m\xe9tadonn\xe9es de votre jeu de donn\xe9es. Ces m\xe9tadonn\xe9es facilitent l\u2019accessibilit\xe9 et la d\xe9couvrabilit\xe9 de vos donn\xe9es via le Catalogue de donn\xe9es ",c.catalogueTitle.fr,". Elles rendent \xe9galement vos jeux de donn\xe9es interop\xe9rables avec d\u2019autres syst\xe8mes de diffusion. Aussi, nous vous incitons fortement \xe0 remplir les champs requis de la fa\xe7on la plus exhaustive possible.",(0,Ap.jsx)("br",{}),(0,Ap.jsx)("br",{})," Les questions concernant le formulaire peuvent \xeatre adress\xe9es \xe0"," "]})]}),(0,Ap.jsx)("a",{href:"mailto:".concat(c.email),children:c.email}),"."]}),(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You can save the form once you have filled out a title."}),(0,Ap.jsx)(Ip,{children:"D\xe8s que vous avez saisi un titre, vous pouvez enregistrer le formulaire."})]})}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsxs)(Pp,{children:["All fields marked with a ",(0,Ap.jsx)(ek,{})," are mandatory."]}),(0,Ap.jsxs)(Ip,{children:["Tous les champs marqu\xe9s d'une \xe9toile ",(0,Ap.jsx)(ek,{})," sont obligatoires."]})]}),(0,Ap.jsx)("li",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["The form can be saved and completed over time by clicking the"," ",(0,Ap.jsx)(lC,{}),' icon in the bottom right corner. This icon will be greyed out until you have filled in the dataset title in the "Identification" section.']}),(0,Ap.jsxs)(Ip,{children:["Le formulaire peut \xeatre sauvegard\xe9 et compl\xe9t\xe9 ult\xe9rieurement en cliquant sur le bouton ",(0,Ap.jsx)(lC,{})," dans le coin inf\xe9rieur droit. Cet ic\xf4ne sera activ\xe9 par l\u2019ajout du titre du jeu de donn\xe9es dans la section \xab Identification des donn\xe9es \xbb."]})]})}),(0,Ap.jsx)("li",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Some fields can have text in both French and English, though this is only required for the title and the abstract. There is a 'Translate' button that will automatically generate text in the other language. This translation is more accurate when there is more text to translate."}),(0,Ap.jsx)(Ip,{children:"Certains champs peuvent avoir du texte \xe0 la fois en fran\xe7ais et en anglais, toutefois seules les traductions du titre et du r\xe9sum\xe9 sont r\xe9ellement requises. Le bouton \xab Traduire\xbb g\xe9n\xe8re automatiquement du texte dans l'autre langue. Veuillez noter que plus il y a de texte \xe0 traduire et plus la traduction sera pr\xe9cise."})]})})]})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the dataset title? Required in English and French."}),(0,Ap.jsx)(Ip,{children:"Quel est le titre du jeu de donn\xe9es? Obligatoire dans les deux langues."})]}),(0,Ap.jsx)(ek,{passes:Mx(n,"title")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:[(0,Ap.jsx)("p",{children:"Recommended title includes: What, Where, When."}),(0,Ap.jsxs)("p",{children:["Title should be precise enough so that the user will not have to open the dataset to understand its contents. Title should not have acronyms, special characters, or use specialized nomenclature. This will appear as the title that is shown for this dataset in the ",c.catalogueTitle.en,"."]})]}),(0,Ap.jsxs)(Ip,{children:[(0,Ap.jsx)("p",{children:"Le titre recommand\xe9 comprend : Quoi, O\xf9, Quand."}),(0,Ap.jsxs)("p",{children:["Le titre doit \xeatre suffisamment pr\xe9cis pour que l'utilisateur n'ait pas \xe0 ouvrir le ensemble de donn\xe9es pour comprendre son contenu. Le titre ne doit pas avoir des acronymes, des caract\xe8res sp\xe9ciaux ou utiliser une nomenclature sp\xe9cialis\xe9e. Ceci appara\xeetra comme titre de votre jeu de donn\xe9es dans le"," ",c.catalogueTitle.fr,"."]})]})]})})]}),(0,Ap.jsx)(qC,{name:"title",value:n.title,onChange:o("title"),disabled:t})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the resource type?"}),(0,Ap.jsx)(Ip,{children:"Quel est le type de ressource?"})]}),(0,Ap.jsx)(ek,{passes:Mx(n,"metadataScope")})]}),(0,Ap.jsx)(Ek,{value:n.metadataScope||"",onChange:e=>{var t;const n={target:{value:null===(t=ik[e.target.value])||void 0===t?void 0:t.isoValue}};o("metadataScopeIso")(n),o("metadataScope")(e)},options:Object.keys(Ck),optionLabels:Object.values(Ck).map((e=>{let{title:t}=e;return t[s]})),optionTooltips:Object.values(Ck).map((e=>{let{text:t}=e;return t[s]})),disabled:t,fullWidth:!1,style:{width:"200px"}})]}),(0,Ap.jsx)(Xn,{style:ZC,children:(0,Ap.jsxs)(gC,{children:[(0,Ap.jsxs)(KC,{style:{paddingBottom:"15px"},children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the theme of this record?"}),(0,Ap.jsx)(Ip,{children:"Quel est le th\xe8me de ce disque?"})]}),(0,Ap.jsx)(ek,{passes:n.resourceType})]}),(0,Ap.jsx)(sk,{"aria-labelledby":"resource-type",name:"resource-type",value:n.resourceType||[],labelSize:6,defaultValue:"oceanographic",onChange:e=>{return t=e,Array.isArray(t)&&1===t.length&&t.includes("other")&&Array.isArray(n.eov)&&(n.eov.includes("other")?r("eov")(["other"]):r("eov")([...n.eov,"other"])),void r("resourceType")(t);var t},options:["oceanographic","biological","other"],optionLabels:["Oceanographic","Biological","Other"],disabled:t})]})}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the primary language of the dataset?"}),(0,Ap.jsx)(Ip,{children:"Quelle est la langue principale du jeu de donn\xe9es?"})]}),(0,Ap.jsx)(ek,{passes:Mx(n,"language")})]}),(0,Ap.jsx)(Ek,{value:n.language,onChange:o("language"),options:["en","fr"],optionLabels:["English","Fran\xe7ais"],disabled:t})]}),(0,Ap.jsx)(XC,{record:n,handleUpdateDatasetIdentifier:o("datasetIdentifier"),handleUpdateDoiCreationStatus:o("doiCreationStatus"),disabled:t}),u&&(0,Ap.jsx)(xk,{region:l,updateRecord:r,record:n})]})};var Sk=n(6968);const Ok=(0,In.c)(i.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var Ak=n(7456),jk=n(8792),Pk=n(3764),Ik=n(2664);var Lk=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.collapsedHeight,s=e.collapsedSize,l=void 0===s?"0px":s,c=e.component,u=void 0===c?"div":c,d=e.disableStrictModeCompat,p=void 0!==d&&d,h=e.in,f=e.onEnter,m=e.onEntered,g=e.onEntering,v=e.onExit,b=e.onExited,y=e.onExiting,_=e.style,x=e.timeout,w=void 0===x?Ao.rV.standard:x,E=e.TransitionComponent,T=void 0===E?di:E,C=(0,Yn.c)(e,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),k=Pn(),S=i.useRef(),O=i.useRef(null),A=i.useRef(),j="number"===typeof(a||l)?"".concat(a||l,"px"):a||l;i.useEffect((function(){return function(){clearTimeout(S.current)}}),[]);var P=k.unstable_strictMode&&!p,I=i.useRef(null),L=(0,ar.c)(t,P?I:void 0),R=function(e){return function(t,n){if(e){var r=P?[I.current,t]:[t,n],i=(0,jr.c)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},N=R((function(e,t){e.style.height=j,f&&f(e,t)})),D=R((function(e,t){var n=O.current?O.current.clientHeight:0,r=hi({style:_,timeout:w},{mode:"enter"}).duration;if("auto"===w){var i=k.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(i,"ms"),A.current=i}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),g&&g(e,t)})),M=R((function(e,t){e.style.height="auto",m&&m(e,t)})),B=R((function(e){var t=O.current?O.current.clientHeight:0;e.style.height="".concat(t,"px"),v&&v(e)})),Q=R(b),U=R((function(e){var t=O.current?O.current.clientHeight:0,n=hi({style:_,timeout:w},{mode:"exit"}).duration;if("auto"===w){var r=k.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),A.current=r}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style.height=j,y&&y(e)}));return i.createElement(T,(0,at.c)({in:h,onEnter:N,onEntered:M,onEntering:D,onExit:B,onExited:Q,onExiting:U,addEndListener:function(e,t){var n=P?e:t;"auto"===w&&(S.current=setTimeout(n,A.current||0))},nodeRef:P?I:void 0,timeout:"auto"===w?null:w},C),(function(e,t){return i.createElement(u,(0,at.c)({className:(0,kn.c)(r.root,r.container,o,{entered:r.entered,exited:!h&&"0px"===j&&r.hidden}[e]),style:(0,at.c)({minHeight:j},_),ref:L},t),i.createElement("div",{className:r.wrapper,ref:O},i.createElement("div",{className:r.wrapperInner},n)))}))}));Lk.muiSupportAuto=!0;const Rk=(0,Gn.c)((function(e){return{root:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(Lk);const Nk=i.createContext({});var Dk=i.forwardRef((function(e,t){var n,r=e.children,o=e.classes,a=e.className,s=e.defaultExpanded,l=void 0!==s&&s,c=e.disabled,u=void 0!==c&&c,d=e.expanded,p=e.onChange,h=e.square,f=void 0!==h&&h,m=e.TransitionComponent,g=void 0===m?Rk:m,v=e.TransitionProps,b=(0,Yn.c)(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),y=(0,Ui.c)({controlled:d,default:l,name:"Accordion",state:"expanded"}),_=(0,jr.c)(y,2),x=_[0],w=_[1],E=i.useCallback((function(e){w(!x),p&&p(e,!x)}),[x,p,w]),T=i.Children.toArray(r),C=(n=T,(0,Ak.c)(n)||(0,jk.c)(n)||(0,Pk.c)(n)||(0,Ik.c)()),k=C[0],S=C.slice(1),O=i.useMemo((function(){return{expanded:x,disabled:u,toggle:E}}),[x,u,E]);return i.createElement(Xn,(0,at.c)({className:(0,kn.c)(o.root,a,x&&o.expanded,u&&o.disabled,!f&&o.rounded),ref:t,square:f},b),i.createElement(Nk.Provider,{value:O},k),i.createElement(g,(0,at.c)({in:x,timeout:"auto"},v),i.createElement("div",{"aria-labelledby":k.props.id,id:k.props["aria-controls"],role:"region"},S)))}));const Mk=(0,Gn.c)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiAccordion"})(Dk);var Bk=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.expandIcon,s=e.focusVisibleClassName,l=e.IconButtonProps,c=void 0===l?{}:l,u=e.onClick,d=(0,Yn.c)(e,["children","classes","className","expandIcon","focusVisibleClassName","IconButtonProps","onClick"]),p=i.useContext(Nk),h=p.disabled,f=void 0!==h&&h,m=p.expanded,g=p.toggle;return i.createElement(Er,(0,at.c)({focusRipple:!1,disableRipple:!0,disabled:f,component:"div","aria-expanded":m,className:(0,kn.c)(r.root,o,f&&r.disabled,m&&r.expanded),focusVisibleClassName:(0,kn.c)(r.focusVisible,r.focused,s),onClick:function(e){g&&g(e),u&&u(e)},ref:t},d),i.createElement("div",{className:(0,kn.c)(r.content,m&&r.expanded)},n),a&&i.createElement(Cr,(0,at.c)({className:(0,kn.c)(r.expandIcon,m&&r.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},c),a))}));const Qk=(0,Gn.c)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],t),padding:e.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused, &$focusVisible":{backgroundColor:e.palette.action.focus},"&$disabled":{opacity:e.palette.action.disabledOpacity}},expanded:{},focused:{},focusVisible:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiAccordionSummary"})(Bk);var Uk=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=(0,Yn.c)(e,["classes","className"]);return i.createElement("div",(0,at.c)({className:(0,kn.c)(n.root,r),ref:t},o))}));const Fk=(0,Gn.c)((function(e){return{root:{display:"flex",padding:e.spacing(1,2,2)}}}),{name:"MuiAccordionDetails"})(Uk),zk=(0,In.c)(i.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),qk=e=>{var t;let{value:n,disabled:r,updateContact:o}=e;const[a,s]=(0,i.useState)(!1),{language:l}=mn(),c=Object.entries(tk).map((e=>{let[t,n]=e;return{key:t,...n}})),u=c.filter((e=>e.showProminently)),d=c.filter((e=>!e.showProminently)),p=d.map((e=>e.key)),h=(n.role||[]).filter((e=>p.includes(e))).length>0;return(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Appear in citation?"}),(0,Ap.jsx)(Ip,{children:"Apparaissent dans la citation?"})]}),(0,Ap.jsx)(QC,{name:"inCitation",checked:n.inCitation||!1,onChange:e=>{const{checked:t}=e.target;o("inCitation")(t)}})]}),(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the role of this contact?"}),(0,Ap.jsx)(Ip,{children:"Quel est son r\xf4le?"})]}),(0,Ap.jsx)(ek,{passes:null===(t=n.role)||void 0===t?void 0:t.length}),(0,Ap.jsxs)($C,{children:[" ",(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Multiple roles can be selected for each contact. Expand the list below for additional role."}),(0,Ap.jsx)(Ip,{children:"Plusieurs r\xf4les peuvent \xeatre s\xe9lectionn\xe9s par personne. Si vous avez besoin de r\xf4les plus sp\xe9cifiques, vous pouvez \xe9tendre la liste. D\xe9veloppez la liste ci-dessous pour un r\xf4le suppl\xe9mentaire."})]})]})]}),(0,Ap.jsx)(sk,{value:n.role||[],onChange:o("role"),options:u.map((e=>e.key)),optionLabels:u.map((e=>e.title[l]+(e.required?"*":""))),disabled:r,optionTooltips:u.map((e=>e.text[l]))}),(0,Ap.jsxs)(Mk,{onChange:()=>s(!a),expanded:a||h,children:[(0,Ap.jsx)(Qk,{expandIcon:(0,Ap.jsx)(ms,{title:"Show/Hide more options",children:(0,Ap.jsx)(zk,{})}),"aria-controls":"panel1a-content",id:"panel1a-header",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Show/Hide more role options"}),(0,Ap.jsx)(Ip,{children:"Afficher/masquer les r\xf4les"})]})}),(0,Ap.jsx)(Fk,{children:(0,Ap.jsx)(sk,{value:n.role||[],onChange:o("role"),options:d.map((e=>e.key)),optionLabels:d.map((e=>e.title[l])),disabled:r,optionTooltips:d.map((e=>e.text[l]))})})]})]})};const Hk=e=>{var t,n;let{value:r,showRolePicker:o,disabled:a,handleClear:s,updateContact:l,updateContactEvent:c,updateContactRor:u,updateContactOrcid:d}=e;const p=(0,i.useRef)(!1),h=Sx(r.orgEmail),f=Sx(r.indEmail),m=Ox(r.orgURL),g=!(null!==(t=r.givenNames)&&void 0!==t&&t.includes(",")),v=!(null!==(n=r.lastName)&&void 0!==n&&n.includes(",")),[b,y]=(0,i.useState)(r.orgRor),[_,x]=(0,i.useState)(""),[w]=VC(b,500),[E,T]=(0,i.useState)([]),[C,k]=(0,i.useState)(!1);return r={...j_(),...r},(0,i.useEffect)((()=>{var e;return p.current=!0,w&&((e=w).startsWith("http")&&!e.includes("ror.org")?p.current&&k(!1):fetch('https://api.ror.org/organizations?query="'.concat(e,'"')).then((e=>e.json())).then((e=>{p.current&&T(e.items),1===e.number_of_results&&u(e.items[0])})).then((()=>{p.current&&k(!1)}))),()=>{p.current=!1}}),[w]),(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{variant:"h6",children:iT(r)})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[o&&(0,Ap.jsx)(qk,{value:r,updateContact:l,disabled:a}),(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:1,style:{marginTop:"10px"},children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(KC,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Provide any information about the organization"}),(0,Ap.jsx)(Ip,{children:"Identification de l'organisation"})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{marginleft:"10px",height:"33px"},children:C?(0,Ap.jsx)(r_,{size:20}):(0,Ap.jsx)("div",{style:{height:"33px"}})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{marginleft:"10px"},children:(0,Ap.jsx)(_k,{inputValue:b,onInputChange:(e,t)=>{y(t),k(""!==t)},disabled:a,onChange:(e,t)=>{null!==t&&fetch("https://api.ror.org/organizations/".concat(t.id)).then((e=>e.json())).then((e=>{e.errors||u(e)})).then((()=>k(!1))).then((()=>y("")))},freeSolo:!0,filterOptions:e=>e,getOptionLabel:e=>e.name,options:E,fullWidth:!0,renderInput:e=>(0,Ap.jsx)(CC,{...e,label:(0,Ap.jsx)(Lp,{en:"Type to search Research Organization Registry (ROR)",fr:"Tapez pour rechercher le registre des organismes de recherche (ROR)\n"})})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{marginleft:"10px"},children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{active:!0,en:"ROR URL",fr:"URL ROR"}),InputLabelProps:{shrink:""!==r.orgRor},value:r.orgRor,disabled:!0,fullWidth:!0,InputProps:{endAdornment:r.orgRor&&(0,Ap.jsx)(SC,{position:"end",children:(0,Ap.jsx)(Cr,{onClick:()=>{s("orgRor")},children:(0,Ap.jsx)(Ok,{})})})}})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{marginleft:"10px"},children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Organization name",fr:"Nom de l'organisation"}),value:r.orgName,onChange:c("orgName"),disabled:""!==r.orgRor||a,fullWidth:!0})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{helperText:!m&&(0,Ap.jsx)(Lp,{en:"Invalid URL",fr:"URL non valide"}),error:!m,label:(0,Ap.jsx)(Lp,{en:"URL",fr:"URL"}),value:r.orgURL,onChange:c("orgURL"),disabled:""!==r.orgRor||a,fullWidth:!0})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Address",fr:"Adresse"}),value:r.orgAdress,onChange:c("orgAdress"),disabled:a,fullWidth:!0})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"City",fr:"Ville"}),value:r.orgCity,onChange:c("orgCity"),disabled:""!==r.orgRor||a,fullWidth:!0})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Country",fr:"Pays"}),value:r.orgCountry,onChange:c("orgCountry"),disabled:""!==r.orgRor||a,fullWidth:!0})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(CC,{helperText:!h&&(0,Ap.jsx)(Lp,{en:"Invalid email",fr:"E-mail non valide"}),error:!h,label:(0,Ap.jsx)(Lp,{en:"Email",fr:"Courriel"}),value:r.orgEmail,onChange:c("orgEmail"),fullWidth:!0,disabled:a})," "]})]})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Provide any information about the individual"}),(0,Ap.jsx)(Ip,{children:"Identification de l'individu"})]})}),(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(c_,{href:"https://orcid.org/orcid-search/search",target:"_blank",rel:"noopener noreferrer",style:{marginTop:"10px",marginBottom:"10px"},children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"ORCID search "}),(0,Ap.jsx)(Ip,{children:"Rechercher ORCID "})]}),(0,Ap.jsx)(lx,{style:{verticalAlign:"middle"}})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{marginleft:"10px"},children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Paste ORCID identifier here to populate personal data",fr:"Collez l'identifiant ORCID ici pour remplir les donn\xe9es personnelles"}),value:_,onChange:e=>{x(e.target.value);const t=e.target.value.match(/\w{4}-\w{4}-\w{4}-\w{4}/g);t&&fetch("https://pub.orcid.org/v3.0/".concat(t,"/record"),{headers:{accept:"application/json"}}).then((e=>e.json())).then((e=>d(e))).then((()=>{setTimeout((()=>x("")),100)}))},disabled:a,fullWidth:!0})}),(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:r.givenNames&&r.lastName&&r.inCitation&&(0,Ap.jsxs)("div",{style:{marginBottom:"10px"},children:["This name will appear in the citation as:"," ",(0,Ap.jsx)("b",{children:(S=r.givenNames,O=r.lastName,S&&O?"".concat(O,", ").concat(function(e){return e.split(" ").filter((e=>e)).map((e=>"".concat(e[0].toUpperCase(),". "))).join(" ")}(S)):"")})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"ORCID URL",fr:"URL ORCID"}),InputLabelProps:{shrink:""!==r.indOrcid},value:r.indOrcid,InputProps:{endAdornment:r.indOrcid&&(0,Ap.jsx)(SC,{position:"end",children:(0,Ap.jsx)(Cr,{onClick:()=>{s("indOrcid")},children:(0,Ap.jsx)(Ok,{})})})},disabled:!0,fullWidth:!0})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Given name(s)",fr:"Pr\xe9nom"}),value:r.givenNames,helperText:!g&&(0,Ap.jsx)(Lp,{en:"No commas allowed",fr:"Aucune virgule n'est autoris\xe9e"}),error:!g,onChange:c("givenNames"),disabled:a,fullWidth:!0})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Last name",fr:"nom de famille"}),value:r.lastName,helperText:!v&&(0,Ap.jsx)(Lp,{en:"No commas allowed",fr:"Aucune virgule n'est autoris\xe9e"}),error:!v,onChange:c("lastName"),disabled:a,fullWidth:!0})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Position",fr:"Poste occup\xe9"}),value:r.indPosition,onChange:c("indPosition"),disabled:a,fullWidth:!0})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{helperText:!f&&(0,Ap.jsx)(Lp,{en:"Invalid email",fr:"E-mail non valide"}),error:!f,label:(0,Ap.jsx)(Lp,{en:"Email",fr:"Courriel"}),value:r.indEmail,onChange:c("indEmail"),disabled:a,fullWidth:!0})})]})]})]});var S,O};var Wk=n(1480);const Gk=(0,In.c)(i.createElement("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}),"DragHandle");var Vk=n(6248),$k=n.n(Vk);const Kk=e=>{let{items:t,updateItems:n,activeItem:r,setActiveItem:o,disabled:a,savedUserItems:s,saveItem:l,getBlankItem:c,fieldsNotSavedInFirebase:u,addNewItemText:d,addSavedItemLabel:p,leftListHeader:h,leftListEmptyHeader:f,itemTitle:m,itemValidator:g,uidFields:v}=e;const[b,y]=(0,i.useState)(t);x_(b,t)||y(t);const _=Object.values(s||{});return(0,Ap.jsx)(Xn,{style:ZC,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",justifyContent:"flex-start",children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{margin:"10px"},children:(0,Ap.jsx)(Or,{children:t.length?h||(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Items in this record:"}),(0,Ap.jsx)(Ip,{children:"Articles dans cet enregistrement:"})]}):f||(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"There are no items in this record."}),(0,Ap.jsx)(Ip,{children:"Il n'y a aucun articles dans cet enregistrement."})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(ki,{children:(0,Ap.jsx)(Wk.Container,{dragHandleSelector:".drag-handle",lockAxis:"y",onDrop:e=>{let{removedIndex:t,addedIndex:i}=e;t===r?o(i):i<=r&&t>r&&o(r+1);const a=$k()(b,t,i);n(a)},children:t.map(((e,i)=>{var s;return(0,Ap.jsx)(Wk.Draggable,{children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>o(i),children:[(0,Ap.jsx)(Yo,{primary:(0,Ap.jsx)(Or,{style:{fontWeight:r===i?"bold":"",width:"80%"},children:m(e)||(0,Ap.jsx)(Lp,{en:"New item",fr:"Nouveau article"})})}),(0,Ap.jsxs)(X_,{children:[(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Duplicate entry",fr:"Duplicate entr\xe9e"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>function(e){const r=__(t[e]),i=(v||["id"]).find((e=>r[e]));r[i]+=" (Copy)",n(t.concat(r))}(i),edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(ox,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Remove from this record",fr:"Supprimer de cet enregistrement"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>{return e=i,n(t.filter(((t,n)=>n!==e))),void(t.length&&o(t.length-2));var e},edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(nx,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Add to saved items",fr:"Ajouter aux articles enregistr\xe9s"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>{const e=__(t[i]);u.forEach((t=>{delete e[t]})),e.contactID=l(e),y(t)},disabled:g&&g(e)||0===(null===(s=e.id)||void 0===s?void 0:s.length),edge:"end","aria-label":"clone",children:(0,Ap.jsx)(lC,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Drag to reorder",fr:"Faites glisser pour r\xe9organiser"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{className:"drag-handle",edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(Gk,{})})})})]})]},i)},i)}))})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{margin:"10px"},children:(0,Ap.jsx)(c_,{disabled:a,onClick:()=>(n(t.concat(c())),void o(t.length)),fullWidth:!0,style:{height:"56px",justifyContent:"emptyContact"},children:(0,Ap.jsx)(Or,{children:d||(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add new item"}),(0,Ap.jsx)(Ip,{children:"Ajouter un item"})]})})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{margin:"10px"},children:(0,Ap.jsx)(Ek,{value:"",labelId:"add-existing",onChange:e=>{const r=e.target.value,{role:i,...a}=_[r];n(t.concat(__({...c(),...a}))),o(t.length)},optionLabels:_.map((e=>m(e))),options:_.map(((e,t)=>t)),disabled:!_.length||a,label:p||(0,Ap.jsx)(Lp,{en:"ADD SAVED ITEM",fr:"AJOUTER UN \xc9L\xc9MENT ENREGISTR\xc9"})})})]})})};Kk.defaultProps={fieldsNotSavedInFirebase:[]};const Yk=Kk,Zk=e=>{var t,n;let{disabled:r,record:o,userContacts:a,updateRecord:s,saveToContacts:l}=e;const{language:c,region:u}=mn(),{contacts:d=[]}=o,p=s("contacts"),[h,f]=(0,i.useState)(0);function m(e){return t=>{const n=[...d];n[h][e]=t,p(n)}}const g=(null===(t=o.title)||void 0===t?void 0:t[c])&&d.length&&o.created&&(null===(n=o.contacts)||void 0===n?void 0:n.some((e=>e.inCitation))),v=d[h];return(0,Ap.jsxs)(e_,{container:!0,spacing:3,children:[(0,Ap.jsx)(Xn,{style:ZC,children:(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["Please enter at least one Metadata Custodian ",(0,Ap.jsx)("b",{children:"and"})," one Data Owner for this dataset that can work with"," ",Cn[u].title[c]," Staff to finalize this Metadata Record. You also must select at least one contact to appear in the citation. One contact can occupy multiple roles."]}),(0,Ap.jsxs)(Ip,{children:["Veuillez saisir au moins un D\xe9positaire des m\xe9tadonn\xe9es ET un propri\xe9taire des donn\xe9es de ce jeu. Ces personnes pourraient \xeatre appel\xe9es \xe0 collaborer avec le personnel",Cn[u].titleFrPossessive," pour finaliser la saisie des informations. Vous devez \xe9galement s\xe9lectionner au moins un contact pour appara\xeetre dans la citation. Un contact peut occuper plusieurs r\xf4les."]})]}),(0,Ap.jsx)(ek,{passes:Mx(o,"contacts")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"It is important to include all individuals from the chain of attribution to ensure all involved parties are credited appropriately for their role in creating this dataset. Saved contacts can be selected from the list below."}),(0,Ap.jsx)(Ip,{children:"Il est important d'inclure toutes les personnes ayant travaill\xe9 sur le jeu de donn\xe9es afin de s'assurer que toutes les parties concern\xe9es soient cr\xe9dit\xe9es de fa\xe7on appropri\xe9e pour leur r\xf4le dans la cr\xe9ation de ce jeu de donn\xe9es. Les contacts sauvegard\xe9s peuvent \xeatre s\xe9lectionn\xe9s dans la liste ci-dessous."})]})})]})})}),g&&(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsx)(KC,{children:(0,Ap.jsx)("div",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["This is how your record citation will look in the catalogue. To change the citation order, drag the"," ",(0,Ap.jsx)(Sk.c,{style:{verticalAlign:"middle"}})," symbol."]}),(0,Ap.jsxs)(Ip,{children:["Voici \xe0 quoi ressemblera votre citation dans le catalogue. Seuls les contacts dont la case \xabAuteur cit\xe9\xbb est coch\xe9e apparaissent. Seuls les r\xf4les \xe9toil\xe9s appara\xeetront dans la citation. Changer la commande, faites glisser le"," ",(0,Ap.jsx)(Sk.c,{style:{verticalAlign:"middle"}}),"."]})]})})}),(0,Ap.jsx)($C,{children:(0,Ap.jsx)(fx,{language:c,record:o})})]}),(0,Ap.jsxs)(e_,{container:!0,direction:"row",style:{marginLeft:"5px"},children:[(0,Ap.jsx)(e_,{item:!0,xs:5,children:(0,Ap.jsx)(Yk,{items:d,updateItems:p,setActiveItem:f,activeItem:h,disabled:r,savedUserItems:a,saveItem:l,itemTitle:iT,getBlankItem:j_,addSavedItemLabel:(0,Ap.jsx)(Lp,{en:"ADD SAVED CONTACT",fr:"AJOUTER UN CONTACT ENREGISTR\xc9"}),uidFields:["lastName","orgName"],itemValidator:e=>{var t,n,r;return!(null!==(t=e.orgName)&&void 0!==t&&t.length||null!==(n=e.givenNames)&&void 0!==n&&n.length||null!==(r=e.lastName)&&void 0!==r&&r.length)}})}),v&&(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(e_,{container:!0,direction:"column",children:(0,Ap.jsx)(Xn,{style:ZC,children:(0,Ap.jsx)(e_,{container:!0,direction:"column",spacing:3,children:(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Hk,{showRolePicker:!0,value:v,handleClear:e=>m(e)(""),updateContactEvent:e=>function(e){return t=>{const n=[...d];n[h][e]=t.target.value,p(n)}}(e),updateContact:e=>m(e),updateContactRor:e=>function(e){const t=[...d];t[h].orgRor=e.id,t[h].orgName=e.name,t[h].orgURL=e.links.find((()=>!0))||"",t[h].orgCity=e.addresses.find((()=>!0)).city||"",t[h].orgCountry=e.country.country_name,p(t)}(e),updateContactOrcid:e=>function(e){const{name:t,emails:n}=e.person,r=n.email.length>0?n.email[0].email:"",i=t["family-name"]?t["family-name"].value:"",o=[...d];o[h].indOrcid=e["orcid-identifier"].uri,o[h].givenNames=t["given-names"].value,o[h].indEmail=r,o[h].lastName=i,p(o)}(e),disabled:r})})})})})})]})]})};var Jk=n(8024),Xk=n.n(Jk);const eS=e=>{var t,n;let{updateResources:r,resources:o,disabled:a}=e;const s=(0,i.useRef)(!1),{checkURLActive:l}=(0,i.useContext)(Fb),{language:c}=mn(),[u,d]=(0,i.useState)({}),p={url:"",name:"",description:{en:"",fr:""}},[h,f]=(0,i.useState)(0),[m,g]=(0,i.useState)(o),v=(0,i.useRef)({});(0,i.useEffect)((()=>(s.current=!0,o.forEach(((e,t)=>{e.url&&Ox(e.url)&&(v.current[t]||(v.current[t]=Xk()((async e=>{const t=await l(e.url);s.current&&d((n=>({...n,[e.url]:t.data})))}),500)),v.current[t](e))})),()=>{s.current=!1})),[o,l]),x_(m,o)||g(o);const b=(0,Ap.jsx)(Lp,{en:"Name",fr:"Titre"}),y=(0,Ap.jsx)(Lp,{en:"Description",fr:"Description"}),_=o.length>0&&o[h],x=_&&(!_.url||Ox(_.url));function w(e){return t=>{const n=[...o];n[h][e]=t.target.value,r(n)}}return(0,Ap.jsx)(Xn,{variant:"outlined",style:{padding:10},children:(0,Ap.jsxs)(e_,{container:!0,direction:"row",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:3,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[o&&o.length>0&&(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(ki,{children:(0,Ap.jsx)(Wk.Container,{dragHandleSelector:".drag-handle",lockAxis:"y",onDrop:e=>{let{removedIndex:t,addedIndex:n}=e;t===h?f(n):n<=h&&t>h&&f(h+1);const i=$k()(m,t,n);r(i)},children:o.map(((e,t)=>{var n,i;return(0,Ap.jsx)(Wk.Draggable,{children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>f(t),children:[(0,Ap.jsx)(Yo,{primary:(0,Ap.jsxs)(Or,{style:{fontWeight:h===t?"bold":"",marginRight:"72px"},children:[t+1,". ",(null!==(n=e.name[c])&&void 0!==n?n:"").length<=50?null!==(i=e.name[c])&&void 0!==i?i:"":"".concat(e.name[c].substring(0,50),"...")]})}),(0,Ap.jsxs)(X_,{children:[(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Duplicate contact",fr:"Duplicate contact"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>function(e){var t,n;const i=__(o[e]);null!==(t=i.name)&&void 0!==t&&t.en&&(i.name.en+=" (Copy)"),null!==(n=i.name)&&void 0!==n&&n.fr&&(i.name.fr+=" (Copie)"),r(o.concat(i))}(t),edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(ox,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Remove from this record",fr:"Supprimer de cet enregistrement"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>function(e){r(o.filter(((t,n)=>n!==e))),o.length&&f(o.length-2)}(t),edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(nx,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Drag to reorder",fr:"Faites glisser pour r\xe9organiser"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{className:"drag-handle",edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(Gk,{})})})})]})]},t)},t)}))})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{disabled:a,startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>(r(o.concat(__(p))),void f(o.length)),style:{height:"56px",marginLeft:"10px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add resource"}),(0,Ap.jsx)(Ip,{children:"Ajouter une ressource"})]})})})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:_&&(0,Ap.jsx)(Xn,{variant:"outlined",style:{padding:10},children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:3,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter a name for the resource"}),(0,Ap.jsx)(Ip,{children:"Entrez un titre pour la ressource"})]}),(0,Ap.jsx)(ek,{passes:(null===(t=_.name)||void 0===t?void 0:t.en)||(null===(n=_.name)||void 0===n?void 0:n.fr)})]}),(0,Ap.jsx)(qC,{name:"name",label:b,value:_.name,onChange:w("name"),fullWidth:!0,disabled:a})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter the URL for the resource"}),(0,Ap.jsx)(Ip,{children:"Entrez l'URL de la ressource"})]}),(0,Ap.jsx)(ek,{passes:kx().isURL(_.url)}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:(0,Ap.jsx)("p",{children:"The link may be to a formal data resource on another repository or a link to a personal online drive (e.g. Google Drive)."})}),(0,Ap.jsx)(Ip,{children:(0,Ap.jsx)("p",{children:"Le lien peut \xeatre vers une ressource de donn\xe9es formelle sur un autre d\xe9p\xf4t de donn\xe9es ou un lien vers un disque personnel en ligne (par exemple Google Drive)."})})]})})]}),(0,Ap.jsx)(CC,{helperText:!x&&(0,Ap.jsx)(Lp,{en:"Invalid URL",fr:"URL non valide"})||_.url&&!1===u[_.url]&&(0,Ap.jsx)(Lp,{en:"URL is not active",fr:"L'URL n'est pas active"})||_.url&&!0===u[_.url]&&(0,Ap.jsx)(Lp,{en:"URL is active",fr:"L'URL est active"}),error:!x,label:"URL",value:_.url,onChange:w("url"),fullWidth:!0,disabled:a})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(KC,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter a description of the resource"}),(0,Ap.jsx)(Ip,{children:"Entrez une description de la ressource"})]})})," ",(0,Ap.jsx)(qC,{name:"description",label:y,value:_.description,onChange:w("description"),disabled:a})]})]})})})]})})},tS={IsCitedBy:"crossReference",Cites:"crossReference",IsSupplementTo:"crossReference",IsSupplementedBy:"crossReference",IsContinuedBy:"series",Continues:"series",IsDescribedBy:"crossReference",Describes:"crossReference",HasMetadata:"crossReference",IsMetadataFor:"crossReference",HasVersion:"revisionOf",IsVersionOf:"revisionOf",IsNewVersionOf:"revisionOf",PreviousVersionOf:"crossReference",IsPartOf:"largerWorkCitation",HasPart:"isComposedOf",IsPublishedIn:"largerWorkCitation",IsReferencedBy:"crossReference",References:"crossReference",IsDocumentedBy:"crossReference",Documents:"crossReference",IsCompiledBy:"dependency",Compiles:"dependency",IsVariantFormOf:"crossReference",IsOriginalFormOf:"crossReference",IsIdenticalTo:"crossReference",IsReviewedBy:"crossReference",Reviews:"crossReference",IsDerivedFrom:"dependency",IsSourceOf:"dependency",Requires:"dependency",IsRequiredBy:"dependency",IsObsoletedBy:"crossReference",Obsoletes:"revisionOf"},nS=e=>{var t,n;let{updateResources:r,resources:o,disabled:a}=e;const s={title:{en:"",fr:""},authority:"",code:"",association_type:"",association_type_iso:""},{language:l}=mn(),[c,u]=(0,i.useState)(0),[d,p]=(0,i.useState)(o),h=o.length>0&&o[c];x_(d,o)||p(o);function f(e){return t=>{const n=[...o];n[c][e]=t.target.value,r(n)}}function m(e){return!e||(e=>!e||kx().isURL(e))(e)}return(0,Ap.jsx)(Xn,{variant:"outlined",style:{padding:10},children:(0,Ap.jsxs)(e_,{container:!0,direction:"row",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:3,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[o&&o.length>0&&(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(ki,{children:(0,Ap.jsx)(Wk.Container,{dragHandleSelector:".drag-handle",lockAxis:"y",onDrop:e=>{let{removedIndex:t,addedIndex:n}=e;t===c?u(n):n<=c&&t>c&&u(c+1);const i=$k()(d,t,n);r(i)},children:o.map(((e,t)=>{var n,i;return(0,Ap.jsx)(Wk.Draggable,{children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>u(t),children:[(0,Ap.jsx)(Yo,{primary:(0,Ap.jsxs)(Or,{style:{fontWeight:c===t?"bold":"",marginRight:"72px"},children:[t+1,". ",(null!==(n=e.title[l])&&void 0!==n?n:"").length<=50?null!==(i=e.title[l])&&void 0!==i?i:"":"".concat(e.title[l].substring(0,50),"...")]})}),(0,Ap.jsxs)(X_,{children:[(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Duplicate contact",fr:"Duplicate contact"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>function(e){var t,n;const i=__(o[e]);null!==(t=i.title)&&void 0!==t&&t.en&&(i.title.en+=" (Copy)"),null!==(n=i.title)&&void 0!==n&&n.fr&&(i.title.fr+=" (Copie)"),r(o.concat(i))}(t),edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(ox,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Remove from this record",fr:"Supprimer de cet enregistrement"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>function(e){r(o.filter(((t,n)=>n!==e))),o.length&&u(o.length-2)}(t),edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(nx,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Drag to reorder",fr:"Faites glisser pour r\xe9organiser"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{className:"drag-handle",edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(Gk,{})})})})]})]},t)},t)}))})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{disabled:a,startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>(r(o.concat(__(s))),void u(o.length)),style:{height:"56px",marginLeft:"10px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add resource"}),(0,Ap.jsx)(Ip,{children:"Ajouter une ressource"})]})})})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:h&&(0,Ap.jsx)(Xn,{variant:"outlined",style:{padding:10},children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:3,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter the title of the related resource"}),(0,Ap.jsx)(Ip,{children:"Entrez le titre de l'\u0153uvre concern\xe9e"})]}),(0,Ap.jsx)(ek,{passes:(null===(t=h.title)||void 0===t?void 0:t.en)||(null===(n=h.title)||void 0===n?void 0:n.fr)})]})," ",(0,Ap.jsx)(qC,{name:"title",label:(0,Ap.jsx)(Lp,{en:"Title",fr:"Titre"}),value:h.title,onChange:f("title"),disabled:a,fullWidth:!0})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter the identifier for the related resource"}),(0,Ap.jsx)(Ip,{children:"Saisissez l'identifiant de l'\u0153uvre concern\xe9e"})]}),(0,Ap.jsx)(ek,{passes:h.code}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:(0,Ap.jsx)("p",{children:"The identifier may be to a resource, or metadata record on another repository or another record within CIOOS. A DOI or full URL are preferred."})}),(0,Ap.jsx)(Ip,{children:(0,Ap.jsx)("p",{children:"L'identifiant peut provenir d'une ressource ou d'un enregistrement de m\xe9tadonn\xe9es sur un autre r\xe9f\xe9rentiel ou un autre enregistrement dans CIOOS. Un DOI ou une URL compl\xe8te sont pr\xe9f\xe9r\xe9s."})})]})})]}),(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Identifier",fr:"identifiant"}),value:h.code,onChange:function(e){return t=>{const n=[...o];n[c][e]=t.target.value;const i=n[c].code;switch(!0){case m(n[c].code)&&/^http.?:\/\/doi\.org\//i.test(i):n[c].authority="DOI";break;case m(n[c].code):n[c].authority="URL";break;default:n[c].authority=""}r(n)}}("code"),fullWidth:!0,disabled:a})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter the identifier type"}),(0,Ap.jsx)(Ip,{children:"Entrez le type d'identifiant"})]}),(0,Ap.jsx)(ek,{passes:h.authority})]}),(0,Ap.jsx)(Ek,{value:h.authority,onChange:f("authority"),options:ak,optionLabels:ak,disabled:a,label:(0,Ap.jsx)(Lp,{en:"Identifier Type",fr:"Type d'identifiant"}),fullWidth:!1})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the relation type?"}),(0,Ap.jsx)(Ip,{children:"Quel est le type de relation?"})]}),(0,Ap.jsx)(ek,{passes:h.association_type}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:[(0,Ap.jsx)("p",{children:"Specify the relationship from (A) the primary resource; to (B) the related resource. For example:"}),(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:"Use 'Is New Version Of' to indicate the primary resource described in this metadata record (A) is a new version of (B) the related resource."}),(0,Ap.jsx)("li",{children:"Use 'Is Part of' to indicate the primary resource (A) is a subset of (B) the related larger resource."}),(0,Ap.jsx)("li",{children:"Use 'Has Part' to indicate the primary resource (A) is the larger work that includes (B) the related resource."}),(0,Ap.jsx)("li",{children:"Use 'Cites' to indicate that (A) cites (B)."}),(0,Ap.jsx)("li",{children:"Use 'Is Cited by to indicate that (B) cites (A)"})]})]}),(0,Ap.jsxs)(Ip,{children:[(0,Ap.jsx)("p",{children:"Sp\xe9cifiez la relation \xe0 partir de (A) la ressource principale\xa0; \xe0 (B) la ressource associ\xe9e. Par exemple:"}),(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:'Utilisez "Est une nouvelle version de" pour indiquer que la ressource principale d\xe9crite dans cet enregistrement de m\xe9tadonn\xe9es (A) est une nouvelle version de (B) la ressource associ\xe9e.'}),(0,Ap.jsx)("li",{children:'Utilisez "Fait partie de" pour indiquer que la ressource principale (A) est un sous-ensemble de (B) la ressource plus grande associ\xe9e.'}),(0,Ap.jsx)("li",{children:'Utilisez "A une partie" pour indiquer que la ressource principale (A) est le travail le plus important qui comprend (B) la ressource associ\xe9e.'}),(0,Ap.jsx)("li",{children:'Utilisez "Cites" pour indiquer que (A) cite (B).'}),(0,Ap.jsx)("li",{children:'Utilisez "Est cit\xe9 par" pour indiquer que (B) cite (A)'})]})]})]})})]}),(0,Ap.jsx)(Ek,{value:h.association_type,onChange:e=>{const t=[...o];t[c].association_type_iso=tS[e.target.value],t[c].association_type=e.target.value,r(t)},options:Object.keys(ok),optionLabels:Object.values(ok).map((e=>{let{title:t}=e;return t[l]})),optionTooltips:Object.values(ok).map((e=>{let{text:t}=e;return t[l]})),disabled:a,label:(0,Ap.jsx)(Lp,{en:"Relation Type",fr:"Type de relation"}),fullWidth:!1})]})]})})})]})})},rS={title:"",authority:"",code:""},iS=e=>{var t,n;let{updateDocumentations:r,documentations:o=[],disabled:a,paperClass:s,language:l}=e;const[c,u]=(0,i.useState)(0);function d(e){return t=>{const n=[...o];n[c][e]=t.target.value,r(n)}}function p(e){return!e||(e=>!e||kx().isURL(e))(e)}const h=o.length>0&&o[c];return(0,Ap.jsxs)(e_,{container:!0,spacing:0,children:[(0,Ap.jsx)(e_,{item:!0,children:(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Additional Documentation:"}),(0,Ap.jsx)(Ip,{children:"Documentation Suppl\xe9mentaire:"})]}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"A citation to additional lineage documentation. This could be a publication that describes the whole process, dataset, or model."}),(0,Ap.jsx)(Ip,{children:"Une citation \xe0 une documentation suppl\xe9mentaire sur la lign\xe9e. Il peut s'agir d'une publication d\xe9crivant l'ensemble du processus, de l'ensemble de donn\xe9es ou du mod\xe8le."})]})})]})}),(0,Ap.jsxs)(e_,{container:!0,item:!0,direction:"row",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:4,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(ki,{children:o.map(((e,t)=>{var n,r;return(0,Ap.jsx)(ko,{button:!0,onClick:()=>u(t),children:(0,Ap.jsx)(Yo,{primary:(0,Ap.jsxs)(Or,{style:{fontWeight:c===t?"bold":""},children:[t+1,". ",(null!==(n=e.title[l])&&void 0!==n?n:"").length<=50?null!==(r=e.title[l])&&void 0!==r?r:"":"".concat(e.title[l].substring(0,50),"...")]})})},t)}))})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{disabled:a,startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>(r(o.concat(__(rS))),void u(o.length)),style:{height:"56px",marginLeft:"10px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add documentation"}),(0,Ap.jsx)(Ip,{children:"Ajouter un documentation"})]})})})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(e_,{container:!0,direction:"column",children:h&&(0,Ap.jsx)(Xn,{style:s,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Title"}),(0,Ap.jsx)(Ip,{children:"Titre"})]}),(0,Ap.jsx)(ek,{passes:(null===(t=h.title)||void 0===t?void 0:t.en)||(null===(n=h.title)||void 0===n?void 0:n.fr)}),(0,Ap.jsx)(qC,{value:h.title,onChange:d("title"),fullWidth:!0,disabled:a})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:"Identifier or URL",value:h.code,onChange:function(e){return t=>{const n=[...o];n[c][e]=t.target.value;const i=n[c].code;switch(!0){case p(n[c].code)&&/^http.?:\/\/doi\.org\//i.test(i):n[c].authority="DOI";break;case p(n[c].code):n[c].authority="URL";break;default:n[c].authority=""}r(n)}}("code"),fullWidth:!0,disabled:a})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter the identifier type"}),(0,Ap.jsx)(Ip,{children:"Entrez le type d'identifiant"})]}),(null===h||void 0===h?void 0:h.code)&&(0,Ap.jsx)(ek,{passes:h.authority})]}),(0,Ap.jsx)(Ek,{value:h.authority,onChange:d("authority"),options:ak,optionLabels:ak,disabled:a,label:(0,Ap.jsx)(Lp,{en:"Identifier Type",fr:"Type d'identifiant"}),fullWidth:!1})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(nx,{}),disabled:a,onClick:()=>(r(o.filter(((e,t)=>t!==c))),void(o.length&&u(o.length-2))),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Remove documentation"}),(0,Ap.jsx)(Ip,{children:"Supprimer l'documentation"})]})})})]})})})})]})]})},oS={description:"",title:"",authority:"",code:""},aS=e=>{var t,n,r,o;let{updateSources:a,sources:s=[],disabled:l,paperClass:c,language:u}=e;const[d,p]=(0,i.useState)(0);function h(e){return t=>{const n=[...s];n[d][e]=t.target.value,a(n)}}function f(e){return!e||(e=>!e||kx().isURL(e))(e)}const m=s.length>0&&s[d];return(0,Ap.jsxs)(e_,{container:!0,spacing:0,children:[(0,Ap.jsx)(e_,{item:!0,children:(0,Ap.jsxs)(KC,{children:["Source:",(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Information about the input used in creating the resource specified by the scope. Provide citations to the input data. This is especially valuable for processed satellite data and model data. For model data, it is suggested to describe the model and its input, especially if their is no publication cited above to describe the model."}),(0,Ap.jsx)(Ip,{children:"Informations sur l'entr\xe9e utilis\xe9e lors de la cr\xe9ation de la ressource sp\xe9cifi\xe9e par la port\xe9e. Fournir citations aux donn\xe9es d\u2019entr\xe9e. Ceci est particuli\xe8rement utile pour les donn\xe9es satellitaires trait\xe9es et donn\xe9es du mod\xe8le. Pour les donn\xe9es de mod\xe8le, il est sugg\xe9r\xe9 de d\xe9crire le mod\xe8le et ses entr\xe9es, en particulier s'il n'y a pas de publication cit\xe9e ci-dessus pour d\xe9crire le mod\xe8le."})]})})]})}),(0,Ap.jsxs)(e_,{container:!0,item:!0,direction:"row",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:4,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(ki,{spacing:1,children:s.map(((e,t)=>{var n,r;return(0,Ap.jsx)(ko,{button:!0,onClick:()=>p(t),children:(0,Ap.jsx)(Yo,{primary:(0,Ap.jsxs)(Or,{style:{fontWeight:d===t?"bold":""},children:[t+1,". ",(null!==(n=e.title[u]||e.description[u])&&void 0!==n?n:"").length<=50?null!==(r=e.title[u]||e.description[u])&&void 0!==r?r:"":"".concat((e.title[u]||e.description[u]).substring(0,50),"...")]})})},t)}))})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{disabled:l,startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>(a(s.concat(__(oS))),void p(s.length)),style:{height:"56px",marginLeft:"10px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add source"}),(0,Ap.jsx)(Ip,{children:"Ajouter un source"})]})})})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(e_,{container:!0,direction:"column",children:m&&(0,Ap.jsx)(Xn,{style:c,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Description"}),(0,Ap.jsx)(Ip,{children:"Description"})]}),(0,Ap.jsx)(ek,{passes:(null===(t=m.description)||void 0===t?void 0:t.en)||(null===(n=m.description)||void 0===n?void 0:n.fr)}),(0,Ap.jsx)(qC,{value:m.description,onChange:h("description"),fullWidth:!0,disabled:l})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{variant:"body1",component:"div",style:{marginTop:"10px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Or link to reference documentation"}),(0,Ap.jsx)(Ip,{children:"Ou lien vers la documentation de r\xe9f\xe9rence"})]})})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Title"}),(0,Ap.jsx)(Ip,{children:"Titre"})]}),(null===m||void 0===m?void 0:m.code)&&(0,Ap.jsx)(ek,{passes:(null===(r=m.title)||void 0===r?void 0:r.en)||(null===(o=m.title)||void 0===o?void 0:o.fr)}),(0,Ap.jsx)(qC,{value:m.title,onChange:h("title"),fullWidth:!0,disabled:l})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:"Identifier or URL",value:m.code,onChange:function(e){return t=>{const n=[...s];n[d][e]=t.target.value;const r=n[d].code;switch(!0){case f(n[d].code)&&/^http.?:\/\/doi\.org\//i.test(r):n[d].authority="DOI";break;case f(n[d].code):n[d].authority="URL";break;default:n[d].authority=""}a(n)}}("code"),fullWidth:!0,disabled:l})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter the identifier type"}),(0,Ap.jsx)(Ip,{children:"Entrez le type d'identifiant"})]}),(null===m||void 0===m?void 0:m.code)&&(0,Ap.jsx)(ek,{passes:m.authority})]}),(0,Ap.jsx)(Ek,{value:m.authority,onChange:h("authority"),options:ak,optionLabels:ak,disabled:l,label:(0,Ap.jsx)(Lp,{en:"Identifier Type",fr:"Type d'identifiant"}),fullWidth:!1})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(nx,{}),disabled:l,onClick:()=>(a(s.filter(((e,t)=>t!==d))),void(s.length&&p(s.length-2))),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Remove source"}),(0,Ap.jsx)(Ip,{children:"Supprimer l'source"})]})})})]})})})})]})]})},sS={description:"",title:"",authority:"",code:""},lS=e=>{var t,n,r,o;let{updateSources:a,sources:s=[],disabled:l,paperClass:c,language:u}=e;const[d,p]=(0,i.useState)(0);function h(e){return t=>{const n=[...s];n[d][e]=t.target.value,a(n)}}function f(e){return!e||(e=>!e||kx().isURL(e))(e)}const m=s.length>0&&s[d];return(0,Ap.jsxs)(e_,{container:!0,spacing:0,children:[(0,Ap.jsx)(e_,{item:!0,children:(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Processing or Method Step:"}),(0,Ap.jsx)(Ip,{children:"\xc9tape de traitement ou de m\xe9thode:"})]}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"A general description of how the resource was developed or an event associated with the resource. This can be a summary of the workflow or steps to create the resource subsequent to initial data collection."}),(0,Ap.jsx)(Ip,{children:"Une description g\xe9n\xe9rale de la fa\xe7on dont la ressource a \xe9t\xe9 d\xe9velopp\xe9e ou d'un \xe9v\xe9nement associ\xe9 \xe0 la Ressource. Il peut s'agir d'un r\xe9sum\xe9 du flux de travail ou des \xe9tapes de cr\xe9ation ult\xe9rieure de la ressource. \xe0 la collecte initiale des donn\xe9es."})]})})]})}),(0,Ap.jsxs)(e_,{container:!0,item:!0,direction:"row",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:4,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(ki,{spacing:1,children:s.map(((e,t)=>{var n,r;return(0,Ap.jsx)(ko,{button:!0,onClick:()=>p(t),children:(0,Ap.jsx)(Yo,{primary:(0,Ap.jsxs)(Or,{style:{fontWeight:d===t?"bold":""},children:[t+1,". ",(null!==(n=e.title[u]||e.description[u])&&void 0!==n?n:"").length<=50?null!==(r=e.title[u]||e.description[u])&&void 0!==r?r:"":"".concat((e.title[u]||e.description[u]).substring(0,50),"...")]})})},t)}))})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{disabled:l,startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>(a(s.concat(__(sS))),void p(s.length)),style:{height:"56px",marginLeft:"10px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add Step"}),(0,Ap.jsx)(Ip,{children:"Ajouter une \xe9tape"})]})})})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(e_,{container:!0,direction:"column",children:m&&(0,Ap.jsx)(Xn,{style:c,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Description"}),(0,Ap.jsx)(Ip,{children:"Description"})]}),(0,Ap.jsx)(ek,{passes:(null===(t=m.description)||void 0===t?void 0:t.en)||(null===(n=m.description)||void 0===n?void 0:n.fr)}),(0,Ap.jsx)(qC,{value:m.description,onChange:h("description"),fullWidth:!0,disabled:l})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{variant:"body1",component:"div",style:{marginTop:"10px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Or link to reference documentation"}),(0,Ap.jsx)(Ip,{children:"Ou lien vers la documentation de r\xe9f\xe9rence"})]})})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Title"}),(0,Ap.jsx)(Ip,{children:"Titre"})]}),(null===m||void 0===m?void 0:m.code)&&(0,Ap.jsx)(ek,{passes:(null===(r=m.title)||void 0===r?void 0:r.en)||(null===(o=m.title)||void 0===o?void 0:o.fr)}),(0,Ap.jsx)(qC,{value:m.title,onChange:h("title"),fullWidth:!0,disabled:l})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:"Identifier or URL",value:m.code,onChange:function(e){return t=>{const n=[...s];n[d][e]=t.target.value;const r=n[d].code;switch(!0){case f(n[d].code)&&/^http.?:\/\/doi\.org\//i.test(r):n[d].authority="DOI";break;case f(n[d].code):n[d].authority="URL";break;default:n[d].authority=""}a(n)}}("code"),fullWidth:!0,disabled:l})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter the identifier type"}),(0,Ap.jsx)(Ip,{children:"Entrez le type d'identifiant"})]}),(null===m||void 0===m?void 0:m.code)&&(0,Ap.jsx)(ek,{passes:m.authority})]}),(0,Ap.jsx)(Ek,{value:m.authority,onChange:h("authority"),options:ak,optionLabels:ak,disabled:l,label:(0,Ap.jsx)(Lp,{en:"Identifier Type",fr:"Type d'identifiant"}),fullWidth:!1})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(nx,{}),disabled:l,onClick:()=>(a(s.filter(((e,t)=>t!==d))),void(s.length&&p(s.length-2))),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Remove step"}),(0,Ap.jsx)(Ip,{children:"Supprimer l'\xe9tape"})]})})})]})})})})]})]})},cS={statement:"",scope:"",additionalDocumentation:[],source:[],processingStep:[]},uS=e=>{var t,n;let{updateLineage:r,history:o,disabled:a,paperClass:s,language:l,metadataScope:c}=e;const[u,d]=(0,i.useState)(0),[p,h]=(0,i.useState)(o),f=Object.keys(ik).filter((e=>["DataCollectionSampling",c].includes(e))).reduce(((e,t)=>({...e,[t]:ik[t]})),{});function m(e){return t=>{const n=[...o];n[u][e]=t.target.value,r(n)}}function g(e){return t=>{const n=[...o];n[u][e]=t,r(n)}}if("string"===typeof o){const e=__(cS);""!==o&&(e.statement={en:o,fr:o}),r([__(e)])}x_(p,o)||h(o);const v=o.length>0&&o[u];return v&&!v.scope&&(v.scope=c),("string"===typeof o||o instanceof String)&&(o=[]),(0,Ap.jsx)(Xn,{variant:"outlined",style:{padding:10},children:(0,Ap.jsxs)(e_,{container:!0,direction:"row",spacing:1,children:[(0,Ap.jsx)(e_,{item:!0,xs:3,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[o&&o.length>0&&(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(ki,{children:(0,Ap.jsx)(Wk.Container,{dragHandleSelector:".drag-handle",lockAxis:"y",onDrop:e=>{let{removedIndex:t,addedIndex:n}=e;t===u?d(n):n<=u&&t>u&&d(u+1);const i=$k()(p,t,n);r(i)},children:o.map(((e,t)=>{var n,i;return(0,Ap.jsx)(Wk.Draggable,{children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>d(t),children:[(0,Ap.jsx)(Yo,{primary:(0,Ap.jsxs)(Or,{style:{fontWeight:u===t?"bold":"",marginRight:"72px"},children:[t+1,". ",(null!==(n=e.statement[l])&&void 0!==n?n:"").length<=50?null!==(i=e.statement[l])&&void 0!==i?i:"":"".concat(e.statement[l].substring(0,50),"...")]})}),(0,Ap.jsxs)(X_,{children:[(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Duplicate contact",fr:"Duplicate contact"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>function(e){var t,n;const i=__(o[e]);null!==(t=i.name)&&void 0!==t&&t.en&&(i.name.en+=" (Copy)"),null!==(n=i.name)&&void 0!==n&&n.fr&&(i.name.fr+=" (Copie)"),r(o.concat(i))}(t),edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(ox,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Remove from this record",fr:"Supprimer de cet enregistrement"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>function(e){r(o.filter(((t,n)=>n!==e))),o.length&&d(o.length-2)}(t),edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(nx,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Drag to reorder",fr:"Faites glisser pour r\xe9organiser"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{className:"drag-handle",edge:"end","aria-label":"clone",disabled:a,children:(0,Ap.jsx)(Gk,{})})})})]})]},t)},t)}))})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{disabled:a,startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>(r(o.concat(__(cS))),void d(o.length)),style:{height:"56px",marginLeft:"10px"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add Lineage"}),(0,Ap.jsx)(Ip,{children:"Ajouter une lign\xe9e"})]})})})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:v&&(0,Ap.jsx)(Xn,{variant:"outlined",style:{padding:10},children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:3,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Lineage Title"}),(0,Ap.jsx)(Ip,{children:"Titre de la lign\xe9e"})]}),(0,Ap.jsx)(ek,{passes:(null===(t=v.statement)||void 0===t?void 0:t.en)||(null===(n=v.statement)||void 0===n?void 0:n.fr)}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"General explanation of the lineage step or sampling methods. For detailed processing steps or methods use the processing and method step question"}),(0,Ap.jsx)(Ip,{children:"Explication g\xe9n\xe9rale de l'\xe9tape de lignage ou des m\xe9thodes d'\xe9chantillonnage. Pour des \xe9tapes ou des m\xe9thodes de traitement d\xe9taill\xe9es, utilisez la question sur les \xe9tapes de traitement et de m\xe9thode."})]})})]}),(0,Ap.jsx)(qC,{value:v.statement,onChange:m("statement"),fullWidth:!0,disabled:a})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Scope"}),(0,Ap.jsx)(Ip,{children:"Port\xe9e"})]}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Type of resource and/or extent to which the lineage information applies."}),(0,Ap.jsx)(Ip,{children:"Type de ressource et/ou mesure dans laquelle les informations sur la lign\xe9e s'appliquent."})]})})]}),(0,Ap.jsx)(Ek,{value:v.scope,onChange:e=>{var t;const n={target:{value:null===(t=ik[e.target.value])||void 0===t?void 0:t.isoValue}};m("scopeIso")(n),m("scope")(e)},options:Object.keys(f),optionLabels:Object.values(f).map((e=>{let{title:t}=e;return t[l]})),disabled:a,fullWidth:!0,label:(0,Ap.jsx)(Lp,{en:"Scope",fr:"???"})})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(iS,{documentations:v.additionalDocumentation,updateDocumentations:g("additionalDocumentation"),disabled:a,paperClass:s,language:l})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(aS,{sources:v.source,updateSources:g("source"),disabled:a,paperClass:s,language:l})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(lS,{sources:v.processingStep,updateSources:g("processingStep"),disabled:a,paperClass:s,language:l})})]})})})]})})},dS=e=>{let{disabled:t,record:n,updateRecord:r}=e;const{language:o}=mn(),[a]=i.useState([n.distribution&&0===n.distribution.length,n.associated_resources&&0===n.associated_resources.length,n.history&&0===n.history.length]);return(0,Ap.jsxs)("div",{children:[(0,Ap.jsxs)(Mk,{defaultExpanded:a[0],style:{width:"90%",margin:20},children:[(0,Ap.jsx)(Qk,{expandIcon:(0,Ap.jsx)(FC.c,{}),"aria-controls":"panel1a-content",id:"panel1a-header",style:{backgroundColor:"#00000015"},children:(0,Ap.jsxs)(YC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Resource"}),(0,Ap.jsx)(Ip,{children:"La ressource"})]}),n.distribution&&n.distribution.length>0&&(0,Ap.jsx)(pC,{style:{marginLeft:10},label:n.distribution.length,variant:"outlined"})]})}),(0,Ap.jsx)(Fk,{children:(0,Ap.jsxs)(e_,{children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsx)(Pp,{children:'Enter one or more links to the primary resource described by this metadata record. Resources added here should not already have their own metadata record or digital object identifier, such resources should be added to the "Related Works" section.'}),(0,Ap.jsx)(Ip,{children:'Entrez un ou plusieurs liens vers la ressource principale d\xe9crite par cet enregistrement de m\xe9tadonn\xe9es. Les ressources ajout\xe9es ici ne doivent pas d\xe9j\xe0 avoir leur propre enregistrement de m\xe9tadonn\xe9es ou identifiant d\'objet num\xe9rique, ces ressources doivent \xeatre ajout\xe9es \xe0 la section "Travaux associ\xe9s".'}),(0,Ap.jsx)(ek,{passes:Mx(n,"distribution")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["Some examples of resources are:",(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:"Protocols or methods documents"}),(0,Ap.jsx)("li",{children:"CSV files"}),(0,Ap.jsx)("li",{children:"ERDDAP datasets"}),(0,Ap.jsx)("li",{children:"Images"}),(0,Ap.jsx)("li",{children:"Online forms to request access to the data"})]}),"A Resource URL that links to a compressed data package or folder is preferred. Otherwise, list primary resource first followed by supporting resources."]}),(0,Ap.jsxs)(Ip,{children:["Voici quelques exemples de ressources :",(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:"Documents de protocoles ou de m\xe9thodes"}),(0,Ap.jsx)("li",{children:"Fichiers CSV"}),(0,Ap.jsx)("li",{children:"Ensembles de donn\xe9es ERDDAP"}),(0,Ap.jsx)("li",{children:"Images"}),(0,Ap.jsx)("li",{children:"Formulaires en ligne pour demander l'acc\xe8s aux donn\xe9es"})]}),"Une URL de ressource qui renvoie \xe0 un package ou un dossier de donn\xe9es compress\xe9es est pr\xe9f\xe9rable. Sinon, r\xe9pertoriez d'abord la ressource principale, suivie des ressources de support."]})]})})]}),(0,Ap.jsx)(eS,{resources:n.distribution||[],updateResources:r("distribution"),language:o,disabled:t})]})})]}),(0,Ap.jsxs)(Mk,{defaultExpanded:a[1],style:{width:"90%",margin:20},children:[(0,Ap.jsx)(Qk,{expandIcon:(0,Ap.jsx)(FC.c,{}),"aria-controls":"panel2a-content",id:"panel2a-header",style:{backgroundColor:"#00000015"},children:(0,Ap.jsxs)(YC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Related Works"}),(0,Ap.jsx)(Ip,{children:"Travaux connexes"})]}),n.associated_resources&&n.associated_resources.length>0&&(0,Ap.jsx)(pC,{style:{marginLeft:10},label:n.associated_resources.length,variant:"outlined"})]})}),(0,Ap.jsx)(Fk,{children:(0,Ap.jsxs)(e_,{children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsx)(Pp,{children:"Enter links to other metadata records, publications or works that are related to the primary resources this metadata record describes."}),(0,Ap.jsx)(Ip,{children:"Entrez des liens vers d'autres enregistrements de m\xe9tadonn\xe9es, publications ou ouvrages qui sont li\xe9s aux ressources principales d\xe9crites par cet enregistrement de m\xe9tadonn\xe9es."}),(0,Ap.jsx)(ek,{passes:Mx(n,"associated_resources")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["Related works may be:",(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:"Other datasets that are part of the same collection, project, or sampling protocol"}),(0,Ap.jsx)("li",{children:"Metadata records on other catalogues such as OBIS or FRDR that describe the same dataset"}),(0,Ap.jsx)("li",{children:"Any work that adds context to or describes the primary resource for which you are creating this metadata record for"})]})]}),(0,Ap.jsxs)(Ip,{children:["Les \u0153uvres connexes peuvent \xeatre :",(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:"Autres ensembles de donn\xe9es faisant partie de la m\xeame collection, du m\xeame projet ou du m\xeame protocole d'\xe9chantillonnage"}),(0,Ap.jsx)("li",{children:"Enregistrements de m\xe9tadonn\xe9es sur d'autres catalogues tels que OBIS ou FRDR qui d\xe9crivent le m\xeame ensemble de donn\xe9es"}),(0,Ap.jsx)("li",{children:"Tout travail qui ajoute du contexte ou d\xe9crit la ressource principale pour laquelle vous cr\xe9ez cet enregistrement de m\xe9tadonn\xe9es"})]})]})]})})]}),(0,Ap.jsx)(nS,{resources:n.associated_resources||[],updateResources:r("associated_resources"),language:o,disabled:t})]})})]}),(0,Ap.jsxs)(Mk,{defaultExpanded:a[2],style:{width:"90%",margin:20},children:[(0,Ap.jsx)(Qk,{expandIcon:(0,Ap.jsx)(FC.c,{}),"aria-controls":"panel3a-content",id:"panel3a-header",style:{backgroundColor:"#00000015"},children:(0,Ap.jsxs)(YC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Lineage"}),(0,Ap.jsx)(Ip,{children:"Lign\xe9e"})]}),n.history&&n.history.length>0&&(0,Ap.jsx)(pC,{style:{marginLeft:10},label:n.history.length,variant:"outlined"})]})}),(0,Ap.jsx)(Fk,{children:(0,Ap.jsxs)(e_,{children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsx)(Pp,{children:"Data processing history (provenance) for the resource."}),(0,Ap.jsx)(Ip,{children:"Historique du traitement des donn\xe9es (provenance) pour la ressource."}),(0,Ap.jsx)(ek,{passes:Mx(n,"history")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter Information about the events or source data used in constructing the data specified by the scope."}),(0,Ap.jsx)(Ip,{children:"Entrez des informations sur les \xe9v\xe9nements ou les donn\xe9es sources utilis\xe9es dans la construction des donn\xe9es sp\xe9cifi\xe9es par la port\xe9e."})]})})]}),(0,Ap.jsx)(uS,{history:n.history,updateLineage:r("history"),disabled:t,paperClass:ZC,language:o,metadataScope:n.metadataScope})]})})]})]})},pS=(0,In.c)(i.createElement("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3v7.12zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8h1.5z"}),"Update"),hS={Biogeochemical:{en:"Biogeochemical",fr:"Biog\xe9ochimie"},"Biology and Ecosystems":{en:"Biological and Ecosystem",fr:"Biologie et \xe9cosyst\xe8mes"},"Cross-disciplinary":{en:"Cross-disciplinary",fr:"Interdisciplinaire"},Physical:{en:"Physical",fr:"Physique"},Other:{en:"Other",fr:"Autre"}},fS=[{category:"Biogeochemical",value:"oxygen","label EN":"Oxygen","label FR":"Oxyg\xe8ne","definition EN":"The amount of dissolved oxygen in seawater.","definition FR":"Concentration d'oxyg\xe8ne dissous dans l'eau de mer",icon:"dissolved-oxygen.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17473"},{category:"Biogeochemical",value:"nutrients","label EN":"Nutrients","label FR":"Nutriments","definition EN":"The amount of inorganic nutrients in seawater","definition FR":"Concentration des nutriments inorganiques dissous dans l'eau de mer [NO\u2083, NO\u2082, PO\u2084, NH\u2084, Si(OH)\u2084]",icon:"nutrients.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17474"},{category:"Biogeochemical",value:"inorganicCarbon","label EN":"Inorganic carbon","label FR":"Carbone inorganique","definition EN":"Total amount of inorganic carbon dissolved in sea water [CO\u2082, HCO\u2083-, CO\u2083\xb2-]","definition FR":"Quantit\xe9 totale de carbone inorganique dissous dans l'eau de mer [CO\u2082, HCO\u2083-, CO\u2083\xb2-]",icon:"inorganic-carbon.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17475"},{category:"Biogeochemical",value:"dissolvedOrganicCarbon","label EN":"Dissolved organic carbon","label FR":"Carbone organique dissous","definition EN":"The amount of dissolved carbon dioxide in seawater","definition FR":"Concentration de carbone organique dissous dans l'eau de mer",icon:"dissolved-organic-carbon.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17480"},{category:"Physical",value:"seaSurfaceHeight","label EN":"Sea surface height","label FR":"Niveau de l'eau","definition EN":"The altitude of mean sea level relative to the Earth's geode.","definition FR":"Correspond au niveau d'eau mesur\xe9. Les niveaux sont variables en fonction des saisons et des \xe9v\xe8nements climatique",icon:"sea-level.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17465"},{category:"Physical",value:"seaIce","label EN":"Sea ice","label FR":"Glace de mer","definition EN":"The concentration of ice cover over a specified area and extent","definition FR":"La concentration en couverture de glace sur une zone et une \xe9tendue sp\xe9cifi\xe9es",icon:"sea-ice.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17464"},{category:"Physical",value:"seaState","label EN":"Sea state","label FR":"\xc9tat de la mer","definition EN":"Sea State is the characterization of wave and swell, typically in terms of height, wavelength, period, and directional wave energy flux.","definition FR":"L'\xe9tat de la mer est la caract\xe9risation des vagues et de la houle, g\xe9n\xe9ralement en termes de hauteur, de longueur d'onde, de p\xe9riode, et le flux d'\xe9nergie des ondes directionnelles",icon:"sea-state.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17462"},{category:"Physical",value:"seaSurfaceSalinity","label EN":"Sea surface salinity","label FR":"Salinit\xe9 de surface","definition EN":"The concentration of dissolved salts in surface seawater.","definition FR":"La concentration de sel dissous dans l'eau de mer de surface",icon:"salinity.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17470"},{category:"Physical",value:"seaSurfaceTemperature","label EN":"Sea surface temperature","label FR":"Temp\xe9rature de surface","definition EN":"The temperature of surface seawater.","definition FR":"La temp\xe9rature de l'eau de mer en surface",icon:"temperature.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17466"},{category:"Physical",value:"subSurfaceSalinity","label EN":"Subsurface salinity","label FR":"Salinit\xe9 sous la surface","definition EN":"The concentration of dissolved salts in subsurface seawater.","definition FR":"La concentration de sel dissous dans l'eau de mer sous la surface",icon:"salinity.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17471"},{category:"Physical",value:"subSurfaceTemperature","label EN":"Subsurface temperature","label FR":"Temp\xe9rature sous la surface","definition EN":"The temperature of subsurface seawater.","definition FR":"La temp\xe9rature de l'eau de mer sous la surface",icon:"temperature.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17467"},{category:"Physical",value:"surfaceCurrents","label EN":"Surface currents","label FR":"Courants de surface","definition EN":"The velocity of sea water in surface","definition FR":"Vitesse et d\xe9bit de l'eau en surface",icon:"currents.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17468"},{category:"Physical",value:"subSurfaceCurrents","label EN":"Subsurface currents","label FR":"Courants sous-marins","definition EN":"","definition FR":"",icon:"currents.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17469"},{category:"Other",value:"other","label EN":"Other","label FR":"Autre","definition EN":"All data that does not correspond to the current EOVs.","definition FR":"Toutes les donn\xe9es qui ne correspondent pas aux EOVs actuels.",icon:"eov_other.svg"},{category:"Biogeochemical",value:"transientTracers","label EN":"Transient tracers","label FR":"Traceurs transitoires","definition EN":"Transient tracers are man-made chemical compounds released to the atmosphere at known quantities that can be used in the ocean to quantify ventilation, transit time distribution and transport time-scales","definition FR":"Les traceurs transitoires sont des compos\xe9s chimiques artificiels rejet\xe9s dans l'atmosph\xe8re en quantit\xe9s connues qui peuvent \xeatre utilis\xe9s dans l'oc\xe9an pour quantifier la ventilation, la distribution des temps de transit et les \xe9chelles de temps de transport.",icon:"transient-tracers.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17476"},{category:"Biogeochemical",value:"particulateMatter","label EN":"Particulate matter","label FR":"Mati\xe8re particulaire","definition EN":"Total amount of particles (organic & inorganic) suspended in sea water","definition FR":"Quantit\xe9 totale de particules (organiques et inorganiques) en suspension dans l'eau de mer",icon:"particulate-matter.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17477"},{category:"Biogeochemical",value:"nitrousOxide","label EN":"Nitrous oxide","label FR":"Protoxyde d'azote","definition EN":"Nitrous oxide (N2O) is an important climate-relevant trace gas in the Earth\u2019s atmosphere. The ocean-including its coastal areassuch as continental shelves, estuaries and upwelling areas is a major source of N2O and contributesabout 30% to the atmospheric N2O budget.","definition FR":"Le protoxyde d'azote ou azote nitreux (N2O) est un important gaz traceur du climat dans l'atmosph\xe8re terrestre. L'oc\xe9an, y compris ses zones c\xf4ti\xe8res telles que les plateaux continentaux, les estuaires et les zones d'upwelling, est une source majeure de N2O. Elle contribue \xe0 environ 30 % du bilan atmosph\xe9rique en protoxyde d'azote.",icon:"nitrous-oxide.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17478"},{category:"Biogeochemical",value:"stableCarbonIsotopes","label EN":"Stable carbon isotopes","label FR":"Isotopes stables du carbone","definition EN":"The utility of carbon-13 isotope (\u03b413C, the carbon-13 to carbon-12 isotope ratio; 13C/12C) as a tracer of the ocean\u2019s carbon cycle.","definition FR":"L\u2019utilit\xe9 de l\u2019isotope du carbone-13 (\u03b413C, le rapport des isotopes du carbone-13 au carbone-12; 13C/12C) comme traceur du cycle du carbone de l\u2019oc\xe9an.",icon:"stable-carbon-isotopes.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17479"},{category:"Biology and Ecosystems",value:"phytoplanktonBiomassAndDiversity","label EN":"Phytoplankton biomass and diversity","label FR":"Biomasse et diversit\xe9 de phytoplancton","definition EN":"Characterization of the biological diversity of phytoplankton, their phenology, vertical distribution, and community composition, and their role in ocean biogeochemistry and ecosystem services.","definition FR":"Caract\xe9risation de la diversit\xe9 biologique du phytoplancton, de sa ph\xe9nologie, de sa distribution verticale et de sa composition communautaire, ainsi que le r\xf4le dans la biog\xe9ochimie des oc\xe9ans et les services \xe9cosyst\xe9miques.",icon:"phytoplankton.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17507"},{category:"Biology and Ecosystems",value:"zooplanktonBiomassAndDiversity","label EN":"Zooplankton biomass and diversity","label FR":"Biomasse et diversit\xe9 de zooplancton","definition EN":"Zooplankton diversity refers to the number of zooplankton species, taxonomic composition, or community structure within a region. Zooplankton diversity influences ecosystem health and productivity through trophic links.","definition FR":"La diversit\xe9 du zooplancton fait r\xe9f\xe9rence au nombre d'esp\xe8ces de zooplancton, \xe0 la composition taxonomique ou \xe0 la structure communautaire au sein d'une r\xe9gion. La diversit\xe9 du zooplancton influence la sant\xe9 et la productivit\xe9 de l'\xe9cosyst\xe8me par le biais de liens trophiques.",icon:"zooplankton.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17509"},{category:"Biology and Ecosystems",value:"fishAbundanceAndDistribution","label EN":"Fish abundance and distribution","label FR":"Abondance et distribution de poissons","definition EN":"Fish abundance describes the biomass or numbers of fish in the ocean. It can be reported in terms of species or taxonomic or functional groups (e.g., small pelagic fish, mesopelagic fish, and tunalike species) in an assemblage, population, stock or area, or globally","definition FR":"L'abondance des poissons d\xe9crit la biomasse ou le nombre de poissons dans l'oc\xe9an. Il peut \xeatre rapport\xe9 en termes d'esp\xe8ces ou de groupes taxonomiques ou fonctionnels (par exemple, petits poissons p\xe9lagiques, poissons m\xe9sop\xe9lagiques et esp\xe8ces tunal) dans un assemblage, une population, un stock ou une zone, ou \xe0 l'\xe9chelle mondiale",icon:"fish.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17510"},{category:"Biology and Ecosystems",value:"marineTurtlesBirdsMammalsAbundanceAndDistribution","label EN":"Marine turtles, birds, mammals abundance and distribution","label FR":"Abondance et distribution de tortues marines, oiseaux et mammif\xe8res","definition EN":"Abundance refers to the number of individuals (turtles, birds or marine mammals) within a population while distribution refers to\nthe geographic or spatial extent of habitats used by individuals in the population.","definition FR":"L'abondance se r\xe9f\xe8re au nombre d'individus (tortues, oiseaux ou mammif\xe8res marins) au sein d'une population tandis que la distribution se r\xe9f\xe8re \xe0\nl'\xe9tendue g\xe9ographique ou spatiale des habitats utilis\xe9s par les individus de la population.",icon:"birds-mammals.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17511"},{category:"Biology and Ecosystems",value:"hardCoralCoverAndComposition","label EN":"Hard coral cover and composition","label FR":"Composition et couverture des coraux durs","definition EN":"Live hard coral cover and the areal extent of a reef are the most important indicators of whether a reef is in a coral-dominated state or not; the composition and diversity of coral taxa is an important index of reef health; coral condition (e.g. bleaching, disease) gives fundamental information on the health of a reef; the size class structure (and recruitment) of hard corals gives fundamental information on the resilience, disturbance history and recovery potential of a reef.","definition FR":"La couverture de coraux durs vivants et l'\xe9tendue spatiale des r\xe9cifs sont les indicateurs les plus importants pour savoir si le r\xe9cif est ou non domin\xe9 par les coraux. La composition et la diversit\xe9 des taxons coralliens sont un indice important de la sant\xe9 du r\xe9cif ; l'\xe9tat des coraux (par exemple le blanchissement, les maladies) donne des informations fondamentales sur la sant\xe9 du r\xe9cif ; la structure des classes de taille (et le recrutement) des coraux durs donne des informations fondamentales sur la r\xe9silience, l'historique des perturbations et le potentiel de r\xe9cup\xe9ration du r\xe9cif.",icon:"birds-mammals.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17512"},{category:"Biology and Ecosystems",value:"seagrassCoverAndComposition","label EN":"Seagrass cover and composition","label FR":"Composition et couverture des herbiers marins","definition EN":"Characterization of seagrass beds according to species and their cover linked to a spatial distribution.","definition FR":"Caract\xe9risation des herbiers marins en fonction des esp\xe8ces et de leur couverture selon une distribution spatiale.",icon:"seagrass.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17513"},{category:"Biology and Ecosystems",value:"macroalgalCanopyCoverAndComposition","label EN":"Macroalgal canopy cover and composition","label FR":"Composition et couverture de la canop\xe9e de macroalgues","definition EN":"Characterization of macroalgal forest according to species and their cover linked to a spatial distribution.","definition FR":"Caract\xe9risation des macroalgues en fonction des esp\xe8ces et de leur couvert selon une distribution spatiale.",icon:"macroalgal-canopy.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17515"},{category:"Biology and Ecosystems",value:"invertebrateAbundanceAndDistribution","label EN":"Invertebrate abundance and distribution","label FR":"Abondance et distribution d'invert\xe9br\xe9s","definition EN":"The abundance of invertebrate species describes the biomass or number of individuals in an assemblage and according to a spatial distribution.","definition FR":"L'abondance d'esp\xe8ces invert\xe9br\xe9es d\xe9crit la biomasse ou le nombre d'individus dans un assemblage et selon une distribution spatiale.",icon:"invertebrates.svg",emerging:!0},{category:"Biology and Ecosystems",value:"microbeBiomassAndDiversity","label EN":"Microbe biomass and diversity","label FR":"Biomasse et diversit\xe9 microbienne","definition EN":"","definition FR":"",icon:"microbes.svg",emerging:!0},{category:"Cross-disciplinary",value:"oceanColour","label EN":"Ocean colour","label FR":"Couleur des oc\xe9ans","definition EN":'The term "ocean colour" refers to the result of absorption and scattering of spectral radiation emanating from the sun. Light interacts with water and suspended or dissolved matter and encompasses a multitude of biological, biogeochemical and ecological factors that form the colour of water.',"definition FR":"Le terme \xabcouleur de l'oc\xe9an\xbb se r\xe9f\xe8re au r\xe9sultat de l'absorption et de la diffusion du rayonnement spectral \xe9manant du soleil. La lumi\xe8re interagit avec l'eau et les mati\xe8res en suspension ou dissoutes et englobe une multitude de facteurs biologiques, biog\xe9ochimiques et \xe9cologiques qui forment la couleur de l'eau.",icon:"ocean-color.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=19959"},{category:"Cross-disciplinary",value:"oceanSound","label EN":"Ocean sound","label FR":"Paysage acoustique des oc\xe9ans","definition EN":"","definition FR":"",icon:"ocean-sound.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=22567"},{category:"Cross-disciplinary",value:"marineDebris","label EN":"Marine debris","label FR":"D\xe9bris marins","definition EN":"","definition FR":"",icon:"",emerging:!0,url:""},{category:"Physical",value:"oceanSurfaceHeatFlux","label EN":"Ocean surface heat flux","label FR":"Flux de chaleur oc\xe9anique de surface","definition EN":"Surface heat flux is the rate of heat exchange, per unit area, passing through the sea surface to the atmosphere. The net heat flux is the sum of the turbulent fluxes (latent and sensitive) and the radiative flux (short and long waves).","definition FR":"Le flux de chaleur de surface est le taux d'\xe9change de chaleur, par unit\xe9 de surface, traversant la surface de la mer jusqu'\xe0 l'atmosph\xe8re. Le flux de chaleur net est la somme des flux turbulents (latents et sensibles) et du flux radiatif (ondes courtes et longues).",icon:"ocean-surface-heat-flux.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17472"},{category:"Physical",value:"oceanSurfaceStress","label EN":"Ocean surface stress","label FR":"Contraintes sur la surface oc\xe9anique","definition EN":"Ocean stress is related to lower atmosphere drag and ocean surface dynamics. The magnitude of the stress influences the exchange of energy between the ocean and the atmosphere (evaporation, oxygen, carbon dioxide and other gases).","definition FR":"Le stress oc\xe9anique est li\xe9 \xe0 la train\xe9e de la basse atmosph\xe8re et \xe0 la dynamique de surface de l'oc\xe9an. L'ampleur du stress influence l'\xe9change d'\xe9nergie entre l'oc\xe9an et l'atmosph\xe8re (\xe9vaporation, oxyg\xe8ne, dioxyde de carbon et gaz autres).",icon:"sea-surface-stress.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=17463"},{category:"Physical",value:"oceanBottomPressure","label EN":"Ocean Bottom Pressure","label FR":"Pression au fond de l'oc\xe9an","definition EN":"Ocean bottom pressure is the total pressure resulting from the weight or mass of the column of seawater and the overlaying atmosphere.","definition FR":"La pression au fond de l'oc\xe9an est la pression totale r\xe9sultant du poids ou de la masse de la colonne d'eau de mer et de l'atmosph\xe8re qui la recouvre.",icon:"ocean-bottom-pressure.svg",url:"https://www.goosocean.org/index.php?option=com_oe&task=viewDocumentRecord&docID=32488"}];var mS=(0,i.createContext)(null),gS=function(e){var t=e.utils,n=e.children,r=e.locale,o=e.libInstance,a=(0,i.useMemo)((function(){return new t({locale:r,instance:o})}),[t,o,r]);return(0,i.createElement)(mS.Provider,{value:a,children:n})},vS=function(e){if(!e)throw new Error("Can not find utils in context. You either a) forgot to wrap your component tree in MuiPickersUtilsProvider; or b) mixed named and direct file imports. Recommendation: use named imports from the module index.")};function bS(){var e=(0,i.useContext)(mS);return vS(e),e}var yS=i.forwardRef((function(e,t){var n=e.disableSpacing,r=void 0!==n&&n,o=e.classes,a=e.className,s=(0,Yn.c)(e,["disableSpacing","classes","className"]);return i.createElement("div",(0,at.c)({className:(0,kn.c)(o.root,a,!r&&o.spacing),ref:t},s))}));const _S=(0,Gn.c)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(yS);var xS=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.dividers,a=void 0!==o&&o,s=(0,Yn.c)(e,["classes","className","dividers"]);return i.createElement("div",(0,at.c)({className:(0,kn.c)(n.root,r,a&&n.dividers),ref:t},s))}));const wS=(0,Gn.c)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(xS);var ES={enter:Ao.rV.enteringScreen,exit:Ao.rV.leavingScreen},TS=i.forwardRef((function(e,t){var n=e.BackdropProps,r=e.children,o=e.classes,a=e.className,s=e.disableBackdropClick,l=void 0!==s&&s,c=e.disableEscapeKeyDown,u=void 0!==c&&c,d=e.fullScreen,p=void 0!==d&&d,h=e.fullWidth,f=void 0!==h&&h,m=e.maxWidth,g=void 0===m?"sm":m,v=e.onBackdropClick,b=e.onClose,y=e.onEnter,_=e.onEntered,x=e.onEntering,w=e.onEscapeKeyDown,E=e.onExit,T=e.onExited,C=e.onExiting,k=e.open,S=e.PaperComponent,O=void 0===S?Xn:S,A=e.PaperProps,j=void 0===A?{}:A,P=e.scroll,I=void 0===P?"paper":P,L=e.TransitionComponent,R=void 0===L?Lo:L,N=e.transitionDuration,D=void 0===N?ES:N,M=e.TransitionProps,B=e["aria-describedby"],Q=e["aria-labelledby"],U=(0,Yn.c)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),F=i.useRef();return i.createElement(ti,(0,at.c)({className:(0,kn.c)(o.root,a),BackdropComponent:No,BackdropProps:(0,at.c)({transitionDuration:D},n),closeAfterTransition:!0},l?{disableBackdropClick:l}:{},{disableEscapeKeyDown:u,onEscapeKeyDown:w,onClose:b,open:k,ref:t},U),i.createElement(R,(0,at.c)({appear:!0,in:k,timeout:D,onEnter:y,onEntering:x,onEntered:_,onExit:E,onExiting:C,onExited:T,role:"none presentation"},M),i.createElement("div",{className:(0,kn.c)(o.container,o["scroll".concat((0,Zn.c)(I))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===F.current&&(F.current=null,v&&v(e),!l&&b&&b(e,"backdropClick"))},onMouseDown:function(e){F.current=e.target}},i.createElement(O,(0,at.c)({elevation:24,role:"dialog","aria-describedby":B,"aria-labelledby":Q},j,{className:(0,kn.c)(o.paper,o["paperScroll".concat((0,Zn.c)(I))],o["paperWidth".concat((0,Zn.c)(String(g)))],j.className,p&&o.paperFullScreen,f&&o.paperFullWidth)}),r))))}));const CS=(0,Gn.c)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":(0,nr.c)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":(0,nr.c)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":(0,nr.c)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":(0,nr.c)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":(0,nr.c)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(TS);function kS(e,t){return Array.isArray(t)?t.every((function(t){return-1!==e.indexOf(t)})):-1!==e.indexOf(t)}var SS=An((function(e){return{staticWrapperRoot:{overflow:"hidden",minWidth:310,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}}}),{name:"MuiPickersStaticWrapper"}),OS=function(e){var t=e.children,n=SS();return(0,i.createElement)("div",{className:n.staticWrapperRoot,children:t})},AS=function(e){var t=e.children,n=e.classes,r=e.onAccept,o=e.onDismiss,a=e.onClear,s=e.onSetToday,l=e.okLabel,c=e.cancelLabel,u=e.clearLabel,d=e.todayLabel,p=e.clearable,h=e.showTodayButton,f=(e.showTabs,e.wider),m=(0,Yn.c)(e,["children","classes","onAccept","onDismiss","onClear","onSetToday","okLabel","cancelLabel","clearLabel","todayLabel","clearable","showTodayButton","showTabs","wider"]);return(0,i.createElement)(CS,(0,at.c)({role:"dialog",onClose:o,classes:{paper:(0,kn.c)(n.dialogRoot,f&&n.dialogRootWider)}},m),(0,i.createElement)(wS,{children:t,className:n.dialog}),(0,i.createElement)(_S,{classes:{root:(0,kn.c)((p||h)&&n.withAdditionalAction)}},p&&(0,i.createElement)(c_,{color:"primary",onClick:a},u),h&&(0,i.createElement)(c_,{color:"primary",onClick:s},d),c&&(0,i.createElement)(c_,{color:"primary",onClick:o},c),l&&(0,i.createElement)(c_,{color:"primary",onClick:r},l)))};AS.displayName="ModalDialog";var jS={dialogRoot:{minWidth:310},dialogRootWider:{minWidth:325},dialog:{"&:first-child":{padding:0}},withAdditionalAction:{justifyContent:"flex-start","& > *:first-child":{marginRight:"auto"}}},PS=(0,Gn.c)(jS,{name:"MuiPickersModal"})(AS),IS="undefined"===typeof window?i.useEffect:i.useLayoutEffect;function LS(e,t){var n=t[e.key];n&&(n(),e.preventDefault())}function RS(e,t){var n=(0,i.useRef)(t);n.current=t,IS((function(){if(e){var t=function(e){LS(e,n.current)};return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}}),[e])}var NS=function(e){var t=e.open,n=e.children,r=e.okLabel,o=e.cancelLabel,a=e.clearLabel,s=e.todayLabel,l=e.showTodayButton,c=e.clearable,u=e.DialogProps,d=e.showTabs,p=e.wider,h=e.InputComponent,f=e.DateInputProps,m=e.onClear,g=e.onAccept,v=e.onDismiss,b=e.onSetToday,y=(0,Yn.c)(e,["open","children","okLabel","cancelLabel","clearLabel","todayLabel","showTodayButton","clearable","DialogProps","showTabs","wider","InputComponent","DateInputProps","onClear","onAccept","onDismiss","onSetToday"]);return RS(t,{Enter:g}),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(h,(0,at.c)({},y,f)),(0,i.createElement)(PS,(0,at.c)({wider:p,showTabs:d,open:t,onClear:m,onAccept:g,onDismiss:v,onSetToday:b,clearLabel:a,todayLabel:s,okLabel:r,cancelLabel:o,clearable:c,showTodayButton:l,children:n},u)))};NS.defaultProps={okLabel:"OK",cancelLabel:"Cancel",clearLabel:"Clear",todayLabel:"Today",clearable:!1,showTodayButton:!1};var DS=function(e){var t=e.open,n=(e.wider,e.children),r=e.PopoverProps,o=(e.onClear,e.onDismiss),a=(e.onSetToday,e.onAccept),s=(e.showTabs,e.DateInputProps),l=e.InputComponent,c=(0,Yn.c)(e,["open","wider","children","PopoverProps","onClear","onDismiss","onSetToday","onAccept","showTabs","DateInputProps","InputComponent"]),u=(0,i.useRef)();return RS(t,{Enter:a}),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(l,(0,at.c)({},c,s,{inputRef:u})),(0,i.createElement)(Ei,(0,at.c)({open:t,onClose:o,anchorEl:u.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:n},r)))};var MS=(0,i.createContext)(null),BS=function(e){var t=e.variant,n=(0,Yn.c)(e,["variant"]),r=function(e){switch(e){case"inline":return DS;case"static":return OS;default:return NS}}(t);return(0,i.createElement)(MS.Provider,{value:t||"dialog"},(0,i.createElement)(r,n))},QS=function(e){function t(t){var n;return(n=e.call(this,t)||this)._state=null,n._del=!1,n._handleChange=function(e){var t=n.state.value,r=e.target.value,i=e.target,o=r.length>t.length,a=n._del,s=t===n.props.format(r);n.setState({value:r,local:!0},(function(){var e=i.selectionStart,l=n.props.refuse||/[^\d]+/g,c=r.substr(0,e).replace(l,"");if(n._state={input:i,before:c,op:o,di:a&&s,del:a},n.props.replace&&n.props.replace(t)&&o&&!s){for(var u=-1,d=0;d!==c.length;++d)u=Math.max(u,r.toLowerCase().indexOf(c[d].toLowerCase(),u+1));var p=r.substr(u+1).replace(l,"")[0];u=r.indexOf(p,u+1),r=""+r.substr(0,u)+r.substr(u+1)}var h=n.props.format(r);t===h?n.setState({value:r}):n.props.onChange(h)}))},n._hKD=function(e){"Delete"===e.code&&(n._del=!0)},n._hKU=function(e){"Delete"===e.code&&(n._del=!1)},n.state={value:t.value,local:!0},n}(0,rt.c)(t,e),t.getDerivedStateFromProps=function(e,t){return{value:t.local?t.value:e.value,local:!1}};var n=t.prototype;return n.render=function(){var e=this._handleChange,t=this.state.value;return(0,this.props.children)({value:t,onChange:e})},n.componentWillUnmount=function(){document.removeEventListener("keydown",this._hKD),document.removeEventListener("keyup",this._hKU)},n.componentDidMount=function(){document.addEventListener("keydown",this._hKD),document.addEventListener("keyup",this._hKU)},n.componentDidUpdate=function(){var e=this._state;if(e){for(var t=this.state.value,n=-1,r=0;r!==e.before.length;++r)n=Math.max(n,t.toLowerCase().indexOf(e.before[r].toLowerCase(),n+1));if(this.props.replace&&(e.op||e.del&&!e.di))for(;t[n+1]&&(this.props.refuse||/[^\d]+/).test(t[n+1]);)n+=1;e.input.selectionStart=e.input.selectionEnd=n+1+(e.di?1:0)}this._state=null},t}(i.Component),US=n(4484);function FS(e,t){if(t&&("object"===(0,Pr.c)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,ur.c)(e)}function zS(e){return zS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zS(e)}var qS=n(7796);function HS(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&&(0,qS.c)(e,t)}var WS=An((function(e){return{day:{width:36,height:36,fontSize:e.typography.caption.fontSize,margin:"0 2px",color:e.palette.text.primary,fontWeight:e.typography.fontWeightMedium,padding:0},hidden:{opacity:0,pointerEvents:"none"},current:{color:e.palette.primary.main,fontWeight:600},daySelected:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{backgroundColor:e.palette.primary.main}},dayDisabled:{pointerEvents:"none",color:e.palette.text.hint}}}),{name:"MuiPickersDay"}),GS=function(e){var t=e.children,n=e.disabled,r=e.hidden,o=e.current,a=e.selected,s=(0,Yn.c)(e,["children","disabled","hidden","current","selected"]),l=WS(),c=(0,kn.c)(l.day,r&&l.hidden,o&&l.current,a&&l.daySelected,n&&l.dayDisabled);return(0,i.createElement)(Cr,(0,at.c)({className:c,tabIndex:r||n?-1:0},s),(0,i.createElement)(Or,{variant:"body2",color:"inherit"},t))};GS.displayName="Day",GS.defaultProps={disabled:!1,hidden:!1,current:!1,selected:!1};const VS=GS;function $S(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var KS=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=$S(n.className,r):n.setAttribute("class",$S(n.className&&n.className.baseVal||"",r)));var n,r}))},YS=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i *":{position:"absolute",top:0,right:0,left:0}},"slideEnter-left":{willChange:"transform",transform:"translate(100%)"},"slideEnter-right":{willChange:"transform",transform:"translate(-100%)"},slideEnterActive:{transform:"translate(0%)",transition:t},slideExit:{transform:"translate(0%)"},"slideExitActiveLeft-left":{willChange:"transform",transform:"translate(-200%)",transition:t},"slideExitActiveLeft-right":{willChange:"transform",transform:"translate(200%)",transition:t}}}),{name:"MuiPickersSlideTransition"}),nO=function(e){var t=e.children,n=e.transKey,r=e.slideDirection,o=e.className,a=void 0===o?null:o,s=tO(),l={exit:s.slideExit,enterActive:s.slideEnterActive,enter:s["slideEnter-"+r],exitActive:s["slideExitActiveLeft-"+r]};return(0,i.createElement)(vr,{className:(0,kn.c)(s.transitionContainer,a),childFactory:function(e){return(0,i.cloneElement)(e,{classNames:l})}},(0,i.createElement)(ZS,{mountOnEnter:!0,unmountOnExit:!0,key:n+r,timeout:350,classNames:l,children:t}))},rO=An((function(e){return{switchHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:e.spacing(.5),marginBottom:e.spacing(1)},transitionContainer:{width:"100%",overflow:"hidden",height:23},iconButton:{zIndex:1,backgroundColor:e.palette.background.paper},daysHeader:{display:"flex",justifyContent:"center",alignItems:"center",maxHeight:16},dayLabel:{width:36,margin:"0 2px",textAlign:"center",color:e.palette.text.hint}}}),{name:"MuiPickersCalendarHeader"}),iO=function(e){var t=e.currentMonth,n=e.onMonthChange,r=e.leftArrowIcon,o=e.rightArrowIcon,a=e.leftArrowButtonProps,s=e.rightArrowButtonProps,l=e.disablePrevMonth,c=e.disableNextMonth,u=e.slideDirection,d=bS(),p=rO(),h="rtl"===Pn().direction;return(0,i.createElement)("div",null,(0,i.createElement)("div",{className:p.switchHeader},(0,i.createElement)(Cr,(0,at.c)({},a,{disabled:l,onClick:function(){return n(d.getPreviousMonth(t),"right")},className:p.iconButton}),h?o:r),(0,i.createElement)(nO,{slideDirection:u,transKey:t.toString(),className:p.transitionContainer},(0,i.createElement)(Or,{align:"center",variant:"body1"},d.getCalendarHeaderText(t))),(0,i.createElement)(Cr,(0,at.c)({},s,{disabled:c,onClick:function(){return n(d.getNextMonth(t),"left")},className:p.iconButton}),h?r:o)),(0,i.createElement)("div",{className:p.daysHeader},d.getWeekdays().map((function(e,t){return(0,i.createElement)(Or,{key:t,variant:"caption",className:p.dayLabel},e)}))))};iO.displayName="CalendarHeader",iO.defaultProps={leftArrowIcon:(0,i.createElement)((function(e){return i.createElement(US.c,e,i.createElement("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),i.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))}),null),rightArrowIcon:(0,i.createElement)((function(e){return i.createElement(US.c,e,i.createElement("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),i.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))}),null),disablePrevMonth:!1,disableNextMonth:!1};var oO=function(e){var t=e.onKeyDown;return(0,i.useEffect)((function(){return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}),[t]),null},aO=function(e){function t(){var e,n;zr(this,t);for(var r=arguments.length,o=new Array(r),a=0;a1&&void 0!==arguments[1])||arguments[1],r=n.props,i=r.date,o=r.utils;n.props.onChange(o.mergeDateAndTime(e,i),t)},n.moveToDay=function(e){var t=n.props.utils;e&&!n.shouldDisableDate(e)&&(t.getMonth(e)!==t.getMonth(n.state.currentMonth)&&n.handleChangeMonth(t.startOfMonth(e),"left"),n.handleDaySelect(e,!1))},n.handleKeyDown=function(e){var t=n.props,r=t.theme,i=t.date,o=t.utils;LS(e,{ArrowUp:function(){return n.moveToDay(o.addDays(i,-7))},ArrowDown:function(){return n.moveToDay(o.addDays(i,7))},ArrowLeft:function(){return n.moveToDay(o.addDays(i,"ltr"===r.direction?-1:1))},ArrowRight:function(){return n.moveToDay(o.addDays(i,"ltr"===r.direction?1:-1))}})},n.renderWeeks=function(){var e=n.props,t=e.utils,r=e.classes;return t.getWeekArray(n.state.currentMonth).map((function(e){return(0,i.createElement)("div",{key:"week-".concat(e[0].toString()),className:r.week},n.renderDays(e))}))},n.renderDays=function(e){var t=n.props,r=t.date,o=t.renderDay,a=t.utils,s=a.date(),l=a.startOfDay(r),c=a.getMonth(n.state.currentMonth);return e.map((function(e){var t=n.shouldDisableDate(e),r=a.getMonth(e)===c,u=(0,i.createElement)(VS,{disabled:t,current:a.isSameDay(e,s),hidden:!r,selected:a.isSameDay(l,e)},a.getDayText(e));return o&&(u=o(e,l,r,u)),(0,i.createElement)(eO,{value:e,key:e.toString(),disabled:t,dayInCurrentMonth:r,onSelect:n.handleDaySelect},u)}))},n}return HS(t,e),(0,qr.c)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.date,n=e.minDate,r=e.maxDate,i=e.utils,o=e.disablePast,a=e.disableFuture;if(this.shouldDisableDate(t)){var s=function(e){var t=e.date,n=e.utils,r=e.minDate,i=e.maxDate,o=e.disableFuture,a=e.disablePast,s=e.shouldDisableDate,l=n.startOfDay(n.date());a&&n.isBefore(r,l)&&(r=l),o&&n.isAfter(i,l)&&(i=l);var c=t,u=t;for(n.isBefore(t,r)&&(c=n.date(r),u=null),n.isAfter(t,i)&&(u&&(u=n.date(i)),c=null);c||u;){if(c&&n.isAfter(c,i)&&(c=null),u&&n.isBefore(u,r)&&(u=null),c){if(!s(c))return c;c=n.addDays(c,1)}if(u){if(!s(u))return u;u=n.addDays(u,-1)}}return n.date()}({date:t,utils:i,minDate:i.date(n),maxDate:i.date(r),disablePast:Boolean(o),disableFuture:Boolean(a),shouldDisableDate:this.shouldDisableDate});this.handleDaySelect(s,!1)}}},{key:"render",value:function(){var e=this.state,t=e.currentMonth,n=e.slideDirection,r=this.props,o=r.classes,a=r.allowKeyboardControl,s=r.leftArrowButtonProps,l=r.leftArrowIcon,c=r.rightArrowButtonProps,u=r.rightArrowIcon,d=r.loadingIndicator,p=d||(0,i.createElement)(r_,null);return(0,i.createElement)(i.Fragment,null,a&&"static"!==this.context&&(0,i.createElement)(oO,{onKeyDown:this.handleKeyDown}),(0,i.createElement)(iO,{currentMonth:t,slideDirection:n,onMonthChange:this.handleChangeMonth,leftArrowIcon:l,leftArrowButtonProps:s,rightArrowIcon:u,rightArrowButtonProps:c,disablePrevMonth:this.shouldDisablePrevMonth(),disableNextMonth:this.shouldDisableNextMonth()}),(0,i.createElement)(nO,{slideDirection:n,transKey:t.toString(),className:o.transitionContainer},(0,i.createElement)(i.Fragment,null,this.state.loadingQueue>0&&(0,i.createElement)("div",{className:o.progressContainer},p)||(0,i.createElement)("div",null,this.renderWeeks()))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.utils,r=e.date;if(!n.isEqual(r,t.lastDate)){var i=n.getMonth(r),o=t.lastDate||r,a=n.getMonth(o);return{lastDate:r,currentMonth:e.utils.startOfMonth(r),slideDirection:i===a?t.slideDirection:n.isAfterDay(r,o)?"left":"right"}}return null}}]),t}(i.Component);aO.contextType=MS,aO.defaultProps={minDate:new Date("1900-01-01"),maxDate:new Date("2100-01-01"),disablePast:!1,disableFuture:!1,allowKeyboardControl:!0};var sO,lO=(0,Gn.c)((function(e){return{transitionContainer:{minHeight:216,marginTop:e.spacing(1.5)},progressContainer:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},week:{display:"flex",justifyContent:"center"}}}),{name:"MuiPickersCalendar",withTheme:!0})(function(e){var t=function(t){var n=bS();return(0,i.createElement)(e,(0,at.c)({utils:n},t))};return t.displayName="WithUtils(".concat(e.displayName||e.name,")"),t}(aO));!function(e){e.HOURS="hours",e.MINUTES="minutes",e.SECONDS="seconds"}(sO||(sO={}));var cO=sO,uO=function(e){function t(){var e,n;zr(this,t);for(var r=arguments.length,i=new Array(r),o=0;o12&&(o-=360),{height:r?"26%":"40%",transform:"rotateZ(".concat(o,"deg)")}},n}return HS(t,e),(0,qr.c)(t,[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.hasSelected;return(0,i.createElement)("div",{style:this.getAngleStyle(),className:(0,kn.c)(t.pointer,this.state.toAnimateTransform&&t.animateTransform)},(0,i.createElement)("div",{className:(0,kn.c)(t.thumb,n&&t.noPoint)}))}}]),t}(i.Component);uO.getDerivedStateFromProps=function(e,t){return e.type!==t.previousType?{toAnimateTransform:!0,previousType:e.type}:{toAnimateTransform:!1,previousType:e.type}};var dO=(0,Gn.c)((function(e){return{pointer:{width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},animateTransform:{transition:e.transitions.create(["transform","height"])},thumb:{width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"100%",position:"absolute",top:-21,left:-15,border:"14px solid ".concat(e.palette.primary.main),boxSizing:"content-box"},noPoint:{backgroundColor:e.palette.primary.main}}}),{name:"MuiPickersClockPointer"})(uO),pO={x:130,y:130},hO=pO.x-pO.x,fO=0-pO.y,mO=function(e,t,n){var r=t-pO.x,i=n-pO.y,o=Math.atan2(hO,fO)-Math.atan2(r,i),a=57.29577951308232*o;a=Math.round(a/e)*e,a%=360;var s=Math.floor(a/e)||0,l=Math.pow(r,2)+Math.pow(i,2);return{value:s,distance:Math.sqrt(l)}},gO=function(e){function t(){var e,n;zr(this,t);for(var r=arguments.length,i=new Array(r),o=0;o1&&void 0!==arguments[1]&&arguments[1],n=e.offsetX,r=e.offsetY;if("undefined"===typeof n){var i=e.target.getBoundingClientRect();n=e.changedTouches[0].clientX-i.left,r=e.changedTouches[0].clientY-i.top}var o=this.props.type===cO.SECONDS||this.props.type===cO.MINUTES?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=mO(6*n,e,t).value;return r*n%60}(n,r,this.props.minutesStep):function(e,t,n){var r=mO(30,e,t),i=r.value,o=r.distance;return i=i||12,n?i%=12:o<90&&(i+=12,i%=24),i}(n,r,Boolean(this.props.ampm));this.props.onChange(o,t)}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.value,r=e.children,o=e.type,a=!e.ampm&&o===cO.HOURS&&(n<1||n>12);return(0,i.createElement)("div",{className:t.container},(0,i.createElement)("div",{className:t.clock},(0,i.createElement)("div",{role:"menu",tabIndex:-1,className:t.squareMask,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,onMouseUp:this.handleMouseUp,onMouseMove:this.handleMove}),(0,i.createElement)("div",{className:t.pin}),(0,i.createElement)(dO,{type:o,value:n,isInner:a,hasSelected:this.hasSelected()}),r))}}]),t}(i.Component);gO.defaultProps={ampm:!1,minutesStep:1};var vO=(0,Gn.c)((function(e){return{container:{display:"flex",justifyContent:"center",alignItems:"flex-end",margin:"".concat(e.spacing(2),"px 0 ").concat(e.spacing(1),"px")},clock:{backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:260,width:260,position:"relative",pointerEvents:"none"},squareMask:{width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:"none",touchActions:"none",userSelect:"none","&:active":{cursor:"move"}},pin:{width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}}}),{name:"MuiPickersClock"})(gO),bO={0:[0,40],1:[55,19.6],2:[94.4,59.5],3:[109,114],4:[94.4,168.5],5:[54.5,208.4],6:[0,223],7:[-54.5,208.4],8:[-94.4,168.5],9:[-109,114],10:[-94.4,59.5],11:[-54.5,19.6],12:[0,5],13:[36.9,49.9],14:[64,77],15:[74,114],16:[64,151],17:[37,178],18:[0,188],19:[-37,178],20:[-64,151],21:[-74,114],22:[-64,77],23:[-37,50]},yO=An((function(e){var t=e.spacing(4);return{clockNumber:{width:t,height:32,userSelect:"none",position:"absolute",left:"calc((100% - ".concat("number"===typeof t?"".concat(t,"px"):t,") / 2)"),display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:"light"===e.palette.type?e.palette.text.primary:e.palette.text.hint},clockNumberSelected:{color:e.palette.primary.contrastText}}}),{name:"MuiPickersClockNumber"}),_O=function(e){var t=e.selected,n=e.label,r=e.index,o=e.isInner,a=yO(),s=(0,kn.c)(a.clockNumber,t&&a.clockNumberSelected),l=(0,i.useMemo)((function(){var e=bO[r];return{transform:"translate(".concat(e[0],"px, ").concat(e[1],"px")}}),[r]);return(0,i.createElement)(Or,{component:"span",className:s,variant:o?"body2":"body1",style:l,children:n})},xO=function(e){for(var t=e.ampm,n=e.utils,r=e.date,o=n.getHours(r),a=[],s=t?12:23,l=function(e){return t?12===e?12===o||0===o:o===e||o-12===e:o===e},c=t?1:0;c<=s;c+=1){var u=c.toString();0===c&&(u="00");var d={index:c,label:n.formatNumber(u),selected:l(c),isInner:!t&&(0===c||c>12)};a.push((0,i.createElement)(_O,(0,at.c)({key:c},d)))}return a},wO=function(e){var t=e.value,n=e.utils.formatNumber;return[(0,i.createElement)(_O,{label:n("00"),selected:0===t,index:12,key:12}),(0,i.createElement)(_O,{label:n("05"),selected:5===t,index:1,key:1}),(0,i.createElement)(_O,{label:n("10"),selected:10===t,index:2,key:2}),(0,i.createElement)(_O,{label:n("15"),selected:15===t,index:3,key:3}),(0,i.createElement)(_O,{label:n("20"),selected:20===t,index:4,key:4}),(0,i.createElement)(_O,{label:n("25"),selected:25===t,index:5,key:5}),(0,i.createElement)(_O,{label:n("30"),selected:30===t,index:6,key:6}),(0,i.createElement)(_O,{label:n("35"),selected:35===t,index:7,key:7}),(0,i.createElement)(_O,{label:n("40"),selected:40===t,index:8,key:8}),(0,i.createElement)(_O,{label:n("45"),selected:45===t,index:9,key:9}),(0,i.createElement)(_O,{label:n("50"),selected:50===t,index:10,key:10}),(0,i.createElement)(_O,{label:n("55"),selected:55===t,index:11,key:11})]},EO=function(e){var t=e.type,n=e.onHourChange,r=e.onMinutesChange,o=e.onSecondsChange,a=e.ampm,s=e.date,l=e.minutesStep,c=bS(),u=(0,i.useMemo)((function(){switch(t){case cO.HOURS:return{value:c.getHours(s),children:xO({date:s,utils:c,ampm:Boolean(a)}),onChange:function(e,t){var r=function(e,t){return t.getHours(e)>=12?"pm":"am"}(s,c),i=function(e,t,n,r){if(n&&(r.getHours(e)>=12?"pm":"am")!==t){var i="am"===t?r.getHours(e)-12:r.getHours(e)+12;return r.setHours(e,i)}return e}(c.setHours(s,e),r,Boolean(a),c);n(i,t)}};case cO.MINUTES:var e=c.getMinutes(s);return{value:e,children:wO({value:e,utils:c}),onChange:function(e,t){var n=c.setMinutes(s,e);r(n,t)}};case cO.SECONDS:var i=c.getSeconds(s);return{value:i,children:wO({value:i,utils:c}),onChange:function(e,t){var n=c.setSeconds(s,e);o(n,t)}};default:throw new Error("You must provide the type for TimePickerView")}}),[a,s,n,r,o,t,c]);return(0,i.createElement)(vO,(0,at.c)({type:t,ampm:a,minutesStep:l},u))};EO.displayName="TimePickerView",EO.defaultProps={ampm:!0,minutesStep:1};(0,i.memo)(EO);function TO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(0,it.oneOfType)([it.object,it.string,it.number,(0,it.instanceOf)(Date)]),(0,it.oneOf)(["year","month","day"]);var CO={minDate:new Date("1900-01-01"),maxDate:new Date("2100-01-01"),invalidDateMessage:"Invalid Date Format",minDateMessage:"Date should not be before minimal date",maxDateMessage:"Date should not be after maximal date",allowKeyboardControl:!0};!function(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1];x(e),t&&n?w(e):"inline"!==u&&"static"!==u||(s(e),a&&a(e))}}}),[w,n,a,s,_,u]),C=JO(c,d,e);(0,i.useEffect)((function(){l&&l(C,c)}),[l,C,c]);var k=KO(g,v,d,null===c,e),S={pickerProps:T,inputProps:(0,i.useMemo)((function(){return{inputValue:k,validationError:C,openPicker:function(){return!o&&!r&&f(!0)}}}),[r,k,o,f,C]),wrapperProps:E};return(0,i.useDebugValue)(S),S}function iA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oA(e){for(var t=1;t1?"s":"")+" required, but only "+t.length+" present")}function gA(e){mA(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,Pr.c)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function vA(e,t){mA(2,arguments);var n=gA(e),r=fA(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function bA(e,t){mA(2,arguments);var n=gA(e),r=fA(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());return o.setMonth(n.getMonth()+r+1,0),i>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function yA(e,t){return mA(2,arguments),bA(e,12*fA(t))}function _A(e){mA(1,arguments);var t=gA(e);return t.setHours(23,59,59,999),t}pA.defaultProps=uA,hA.defaultProps=uA;var xA={};function wA(){return xA}function EA(e,t){var n,r,i,o,a,s,l,c;mA(1,arguments);var u=wA(),d=fA(null!==(n=null!==(r=null!==(i=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=gA(e),h=p.getDay(),f=6+(h=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}var AA=6048e5;function jA(e){mA(1,arguments);var t=gA(e),n=SA(t).getTime()-function(e){mA(1,arguments);var t=OA(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),SA(n)}(t).getTime();return Math.round(n/AA)+1}function PA(e,t){var n,r,i,o,a,s,l,c;mA(1,arguments);var u=wA(),d=fA(null!==(n=null!==(r=null!==(i=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=gA(e),h=p.getUTCDay(),f=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(d+1,0,h),f.setUTCHours(0,0,0,0);var m=PA(f,t),g=new Date(0);g.setUTCFullYear(d,0,h),g.setUTCHours(0,0,0,0);var v=PA(g,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}var LA=6048e5;function RA(e,t){mA(1,arguments);var n=gA(e),r=PA(n,t).getTime()-function(e,t){var n,r,i,o,a,s,l,c;mA(1,arguments);var u=wA(),d=fA(null!==(n=null!==(r=null!==(i=null!==(o=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null===t||void 0===t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),p=IA(e,t),h=new Date(0);return h.setUTCFullYear(p,0,d),h.setUTCHours(0,0,0,0),PA(h,t)}(n,t).getTime();return Math.round(r/LA)+1}function NA(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return NA("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):NA(n+1,2)},d:function(e,t){return NA(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return NA(e.getUTCHours()%12||12,t.length)},H:function(e,t){return NA(e.getUTCHours(),t.length)},m:function(e,t){return NA(e.getUTCMinutes(),t.length)},s:function(e,t){return NA(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return NA(Math.floor(r*Math.pow(10,n-3)),t.length)}};const MA=DA;var BA="midnight",QA="noon",UA="morning",FA="afternoon",zA="evening",qA="night",HA={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return MA.y(e,t)},Y:function(e,t,n,r){var i=IA(e,r),o=i>0?i:1-i;return"YY"===t?NA(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):NA(o,t.length)},R:function(e,t){return NA(OA(e),t.length)},u:function(e,t){return NA(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return NA(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return NA(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return MA.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return NA(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=RA(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):NA(i,t.length)},I:function(e,t,n){var r=jA(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):NA(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):MA.d(e,t)},D:function(e,t,n){var r=function(e){mA(1,arguments);var t=gA(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):NA(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return NA(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return NA(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return NA(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?QA:0===i?BA:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?zA:i>=12?FA:i>=4?UA:qA,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return MA.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):MA.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):NA(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):NA(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):MA.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):MA.s(e,t)},S:function(e,t){return MA.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return GA(i);case"XXXX":case"XX":return VA(i);default:return VA(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return GA(i);case"xxxx":case"xx":return VA(i);default:return VA(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+WA(i,":");default:return"GMT"+VA(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+WA(i,":");default:return"GMT"+VA(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return NA(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return NA((r._originalDate||e).getTime(),t.length)}};function WA(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+NA(o,2)}function GA(e,t){return e%60===0?(e>0?"-":"+")+NA(Math.abs(e)/60,2):VA(e,t)}function VA(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+NA(Math.floor(i/60),2)+n+NA(i%60,2)}const $A=HA;var KA=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},YA=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},ZA={p:YA,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return KA(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",KA(i,t)).replace("{{time}}",YA(o,t))}};const JA=ZA;function XA(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var ej=["D","DD"],tj=["YY","YYYY"];function nj(e){return-1!==ej.indexOf(e)}function rj(e){return-1!==tj.indexOf(e)}function ij(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var oj={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const aj=function(e,t,n){var r,i=oj[e];return r="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function sj(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const lj={date:sj({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:sj({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:sj({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var cj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const uj=function(e,t,n,r){return cj[e]};function dj(e){return function(t,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!==n&&void 0!==n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const pj={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:dj({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:dj({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:dj({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:dj({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:dj({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function hj(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(fj.matchPattern);if(!n)return null;var r=n[0],i=e.match(fj.parsePattern);if(!i)return null;var o=fj.valueCallback?fj.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:hj({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:hj({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:hj({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:hj({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:hj({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const gj={code:"en-US",formatDistance:aj,formatLong:lj,formatRelative:uj,localize:pj,match:mj,options:{weekStartsOn:0,firstWeekContainsDate:1}};var vj=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bj=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yj=/^'([^]*?)'?$/,_j=/''/g,xj=/[a-zA-Z]/;function wj(e,t,n){var r,i,o,a,s,l,c,u,d,p,h,f,m,g,v,b,y,_;mA(2,arguments);var x=String(t),w=wA(),E=null!==(r=null!==(i=null===n||void 0===n?void 0:n.locale)&&void 0!==i?i:w.locale)&&void 0!==r?r:gj,T=fA(null!==(o=null!==(a=null!==(s=null!==(l=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null===n||void 0===n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:w.firstWeekContainsDate)&&void 0!==a?a:null===(d=w.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==o?o:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=fA(null!==(h=null!==(f=null!==(m=null!==(g=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==g?g:null===n||void 0===n||null===(v=n.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==m?m:w.weekStartsOn)&&void 0!==f?f:null===(y=w.locale)||void 0===y||null===(_=y.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==h?h:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var k=gA(e);if(!CA(k))throw new RangeError("Invalid time value");var S=kA(k,XA(k)),O={firstWeekContainsDate:T,weekStartsOn:C,locale:E,_originalDate:k};return x.match(bj).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,JA[t])(e,E.formatLong):e})).join("").match(vj).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return function(e){var t=e.match(yj);if(!t)return e;return t[1].replace(_j,"'")}(r);var o=$A[i];if(o)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!rj(r)||ij(r,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!nj(r)||ij(r,t,String(e)),o(S,r,E.localize,O);if(i.match(xj))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("")}function Ej(e,t){mA(2,arguments);var n=gA(e),r=gA(t);return n.getTime()>r.getTime()}function Tj(e,t){mA(2,arguments);var n=gA(e),r=gA(t);return n.getTime()=e.length?{done:!0}:{done:!1,value:e[r++]}},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 o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Oj(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Aj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Aj=function(){return!!e})()}function jj(e){var t=Aj();return function(){var n,r=zS(e);if(t){var i=zS(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return FS(this,n)}}var Pj=function(){function e(){zr(this,e),(0,nr.c)(this,"priority",void 0),(0,nr.c)(this,"subPriority",0)}return(0,qr.c)(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),Ij=function(e){HS(n,e);var t=jj(n);function n(e,r,i,o,a){var s;return zr(this,n),(s=t.call(this)).value=e,s.validateValue=r,s.setValue=i,s.priority=o,a&&(s.subPriority=a),s}return(0,qr.c)(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(Pj),Lj=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}function fP(e){return e%400===0||e%4===0&&e%100!==0}var mP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var i=hP(n.year,r);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(Rj),gP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0}},{key:"set",value:function(e,t,n,r){var i=IA(e,r);if(n.isTwoDigitYear){var o=hP(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),PA(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),PA(e,r)}}]),n}(Rj),vP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(Rj),_P=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(Rj),xP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(Rj),wP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(Rj);var EP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&t<=53}},{key:"set",value:function(e,t,n,r){return PA(function(e,t,n){mA(2,arguments);var r=gA(e),i=fA(t),o=RA(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)}}]),n}(Rj);var TP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&t<=53}},{key:"set",value:function(e,t,n){return SA(function(e,t){mA(2,arguments);var n=gA(e),r=fA(t),i=jA(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n))}}]),n}(Rj),CP=[31,28,31,30,31,30,31,31,30,31,30,31],kP=[31,29,31,30,31,30,31,31,30,31,30,31],SP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&t<=kP[r]:t>=1&&t<=CP[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(Rj),OP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(Rj);function AP(e,t,n){var r,i,o,a,s,l,c,u;mA(2,arguments);var d=wA(),p=fA(null!==(r=null!==(i=null!==(o=null!==(a=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==a?a:null===n||void 0===n||null===(s=n.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:d.weekStartsOn)&&void 0!==i?i:null===(c=d.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=gA(e),f=fA(t),m=((f%7+7)%7=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=AP(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Rj),PP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=AP(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Rj),IP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=AP(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Rj);var LP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){mA(2,arguments);var n=fA(t);n%7===0&&(n-=7);var r=gA(e),i=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+i),r}(e,n),e.setUTCHours(0,0,0,0),e}}]),n}(Rj),RP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(Rj),BP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(Rj),QP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(Rj),UP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(Rj),FP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(Rj),zP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(Rj),qP=function(e){HS(n,e);var t=jj(n);function n(){var e;zr(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=fA(null!==(f=null!==(m=null!==(g=null!==(v=null===r||void 0===r?void 0:r.weekStartsOn)&&void 0!==v?v:null===r||void 0===r||null===(b=r.locale)||void 0===b||null===(y=b.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==g?g:T.weekStartsOn)&&void 0!==m?m:null===(_=T.locale)||void 0===_||null===(x=_.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==f?f:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===E)return""===w?gA(n):new Date(NaN);var O,A={firstWeekContainsDate:k,weekStartsOn:S,locale:C},j=[new Lj],P=E.match(YP).map((function(e){var t=e[0];return t in JA?(0,JA[t])(e,C.formatLong):e})).join("").match(KP),I=[],L=Sj(P);try{var R=function(){var t=O.value;null!==r&&void 0!==r&&r.useAdditionalWeekYearTokens||!rj(t)||ij(t,E,e),null!==r&&void 0!==r&&r.useAdditionalDayOfYearTokens||!nj(t)||ij(t,E,e);var n=t[0],i=$P[n];if(i){var o=i.incompatibleTokens;if(Array.isArray(o)){var a=I.find((function(e){return o.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===i.incompatibleTokens&&I.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));I.push({token:n,fullToken:t});var s=i.run(w,t,C.match,A);if(!s)return{v:new Date(NaN)};j.push(s.setter),w=s.rest}else{if(n.match(eI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(ZP)[1].replace(JP,"'")),0!==w.indexOf(t))return{v:new Date(NaN)};w=w.slice(t.length)}};for(L.s();!(O=L.n()).done;){var N=R();if("object"===(0,Pr.c)(N))return N.v}}catch(H){L.e(H)}finally{L.f()}if(w.length>0&&XP.test(w))return new Date(NaN);var D=j.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return j.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),M=gA(n);if(isNaN(M.getTime()))return new Date(NaN);var B,Q=kA(M,XA(M)),U={},F=Sj(D);try{for(F.s();!(B=F.n()).done;){var z=B.value;if(!z.validate(Q,A))return new Date(NaN);var q=z.set(Q,U,A);Array.isArray(q)?(Q=q[0],Oj(U,q[1])):Q=q}}catch(H){F.e(H)}finally{F.f()}return Q}function nI(e,t){mA(2,arguments);var n=gA(e),r=fA(t),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var s=function(e){mA(1,arguments);var t=gA(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}(a);return n.setMonth(r,Math.min(o,s)),n}function rI(e){mA(1,arguments);var t=gA(e);return t.setDate(1),t.setHours(0,0,0,0),t}function iI(e){mA(1,arguments);var t=gA(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function oI(e,t){var n,r,i,o,a,s,l,c;mA(1,arguments);var u=wA(),d=fA(null!==(n=null!==(r=null!==(i=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=gA(e),h=p.getDay(),f=(h{let{onChange:t,value:n,name:r,disabled:i,dateStart:o,dateEnd:a}=e;return(0,Ap.jsx)(gS,{utils:lI,children:(0,Ap.jsx)(hA,{disabled:i,margin:"normal",id:"date-picker-dialog",label:(0,Ap.jsx)(Lp,{en:"Select date",fr:"S\xe9lectionner une date"}),format:"yyyy-MM-dd",value:n,minDate:o||"1100-01-01",maxDate:a,onChange:e=>t({target:{name:r,value:cI(e)}}),KeyboardButtonProps:{"aria-label":"change date"}})})},dI=(0,In.c)(i.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),pI=[{en:"abundance and biomass",fr:"abondance et biomasse"},{en:"sea access",fr:"acc\xe8s \xe0 la mer"},{en:"decision making",fr:"aide \xe0 la d\xe9cision"},{en:"protected areas",fr:"aires prot\xe9g\xe9es"},{en:"knowledge improvement",fr:"am\xe9lioration des connaissances"},{en:"land-use planning",fr:"am\xe9nagement du territoire"},{en:"water purification",fr:"assainissement des eaux"},{en:"striped bass",fr:"bar ray\xe9"},{en:"watershed",fr:"bassin versant"},{en:"habitat characterization",fr:"caract\xe9risation des habitats"},{en:"coastal characterization",fr:"caract\xe9risation des rives"},{en:"climate change",fr:"changement climatique"},{en:"chlorophyll a",fr:"chlorophylle a"},{en:"resource conservation",fr:"conservation des ressources"},{en:"water consumption",fr:"consommation d'eau"},{en:"sea currents",fr:"courant marin"},{en:"crustacean",fr:"crustac\xe9"},{en:"fresh water flow",fr:"d\xe9bits eau douce"},{en:"water density",fr:"densit\xe9 eau"},{en:"sustainable development",fr:"d\xe9veloppement durable"},{en:"ocean-atmosphere exchange",fr:"\xe9change oc\xe9an-atmosph\xe8re"},{en:"sampling",fr:"\xe9chantillonnage"},{en:"crayfish",fr:"\xe9crevisses"},{en:"mariculture",fr:"entreprises de maricultures"},{en:"coastal erosion",fr:"\xe9rosion des c\xf4tes"},{en:"endangered species",fr:"esp\xe8ces en p\xe9ril"},{en:"invasive species",fr:"esp\xe8ces envahissante"},{en:"coastal flora",fr:"flore c\xf4ti\xe8re"},{en:"fluorescence",fr:"fluorescence"},{en:"spawning",fr:"fraie"},{en:"community management",fr:"gestion communautaire"},{en:"resource management",fr:"gestion des ressources"},{en:"integrated management",fr:"gestion int\xe9gr\xe9e"},{en:"sea ice",fr:"glace de mer"},{en:"sensitive habitat",fr:"habitat sensible"},{en:"important habitat",fr:"habitats important"},{en:"hydrocarbon",fr:"hydrocarbure"},{en:"incidents",fr:"incidents"},{en:"general information",fr:"informations g\xe9n\xe9rales"},{en:"wildlife inventory",fr:"inventaire faunique"},{en:"fish inventory",fr:"inventaire poisson"},{en:"macroalgae",fr:"macroalgue"},{en:"benthic macrofauna",fr:"macrofaune benthique"},{en:"marine mammal",fr:"mammif\xe8res marins"},{en:"marsh",fr:"marais"},{en:"meteorology",fr:"m\xe9t\xe9orologie"},{en:"wetlands",fr:"milieux humides"},{en:"natural environments of interest",fr:"milieux naturels d'int\xe9r\xeat"},{en:"enhancement",fr:"mise en valeur"},{en:"oceanographic missions",fr:"missions oc\xe9anographique"},{en:"mollusc",fr:"mollusque"},{en:"sea level",fr:"niveau eau"},{en:"seabirds",fr:"oiseaux marins"},{en:"migrator birds",fr:"oiseaux migrateurs"},{en:"commercial fisheries",fr:"p\xeaches commerciales"},{en:"experimental fisheries",fr:"p\xeaches exp\xe9rimentales"},{en:"physical-chemical",fr:"physico-chimie"},{en:"phytoplankton",fr:"phytoplancton"},{en:"sea grass",fr:"plantes aquatique"},{en:"fish",fr:"poisson"},{en:"coastal pollution",fr:"pollution c\xf4ti\xe8re"},{en:"atmospheric pressure",fr:"pression atmosph\xe9rique"},{en:"coast protection",fr:"protection des c\xf4tes"},{en:"habitat protection",fr:"protection des habitats"},{en:"water quality",fr:"qualit\xe9 eau"},{en:"radiation",fr:"radiation"},{en:"maritime resources",fr:"ressources maritimes"},{en:"ecological rehabilitation",fr:"r\xe9habilitation \xe9cologique"},{en:"shore restoration",fr:"restauration des rives"},{en:"experimental restoration",fr:"restauration exp\xe9rimentale"},{en:"habitat restoration",fr:"restauration habitat"},{en:"coastal risks",fr:"risques c\xf4tiers"},{en:"citizen data",fr:"saisie citoyenne"},{en:"salinity",fr:"salinit\xe9"},{en:"sediment",fr:"s\xe9diment"},{en:"fishing sites",fr:"sites de p\xeaches"},{en:"annual follow-up",fr:"suivi annuel"},{en:"species tracking",fr:"suivi des esp\xe8ces"},{en:"habitat tracking",fr:"suivi habitat"},{en:"taxonomy",fr:"taxonomie"},{en:"remote sensing",fr:"t\xe9l\xe9d\xe9tection"},{en:"water temperature",fr:"temp\xe9rature de l'eau"},{en:"sea turtles",fr:"tortue de mer"},{en:"land-use",fr:"utilisation du territoire"},{en:"sustainabilty",fr:"utilisation durable"},{en:"waves",fr:"vagues"},{en:"wind",fr:"vents"},{en:"coastal zone",fr:"zone c\xf4ti\xe8re"}];const hI=e=>{let{onChange:t,value:n={en:[],fr:[]},name:r,disabled:o}=e;const{language:a}=mn(),[s,l]=(0,i.useState)(""),[c,u]=(0,i.useState)(""),[d,p]=(0,i.useState)(""),h=["en","fr"];"fr"===a&&h.reverse();const f=h[1];function m(e){return e.map((e=>(e||"").trim())).filter(((e,t,n)=>e&&n.indexOf(e)===t))}const g=(0,i.useCallback)((()=>{const e=s||c;if(e||d){const i={en:n.en,fr:n.fr},o=[...n[a],e],s=[...n[f],d];e&&(i[a]=m(o)),d&&(i[f]=m(s)),t({target:{name:r,value:i}})}l(""),p(""),u("")}),[s,c,d,a]);return(0,Ap.jsxs)(e_,{container:!0,spacing:3,direction:"column",children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(_k,{inputValue:c,onInputChange:(e,t)=>{u(t)},disabled:o,onChange:(e,t)=>p(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fr";if(!e)return"";const n="fr"===t?"en":"fr",r=pI.find((t=>t&&t[n]===e));return r?r[t]:""}(t,f)),value:s||"",freeSolo:!0,options:pI.sort(((e,t)=>e[a].localeCompare(t[a]))).map((e=>e[a])),fullWidth:!0,renderInput:e=>(0,Ap.jsx)(CC,{...e,label:a.toUpperCase()})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{value:d||"",onChange:e=>p(e.target.value),fullWidth:!0,InputProps:{startAdornment:(0,Ap.jsx)(SC,{position:"start",children:f.toUpperCase()})}})}),(0,Ap.jsx)(e_,{item:!0,xs:3,children:(0,Ap.jsx)(c_,{disabled:o||!s&&!d&&!c,startIcon:(0,Ap.jsx)(dI,{}),onClick:g,children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add"}),(0,Ap.jsx)(Ip,{children:"Ajouter"})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:h.filter((e=>{var t;return null===(t=n[e])||void 0===t?void 0:t.length})).map((e=>(0,Ap.jsxs)("div",{style:{margin:"15px"},children:[(0,Ap.jsx)(SC,{position:"start",style:{margin:"10px"},children:e.toUpperCase()}),(0,Ap.jsx)(e_,{container:!0,direction:"row",children:(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(n[e]||[]).map(((i,a)=>{return(0,Ap.jsx)(pC,{disabled:o,label:i,onDelete:(s=i,l=e,()=>{const e={en:n.en,fr:n.fr,[l]:n[l].filter((e=>e!==s))};t({target:{name:r,value:e}})}),color:"primary",style:{margin:"5px"}},a);var s,l}))})})]},e)))})]})},fI=e=>{let{disabled:t,record:n,handleUpdateRecord:r,updateRecord:i,projects:o}=e;const{language:a,region:s}=mn(),l=Cn[s],c=a.toUpperCase(),u=e=>{let{lang:t}=e;return(0,Ap.jsx)("a",{href:l.catalogueURL[t],target:"_blank",rel:"noopener noreferrer",children:l.catalogueURL[t]})},d=Object.values(wx).sort(((e,t)=>(e.title[a]||e.title.en).localeCompare(t.title[a]||e.title.en,a)));return(0,Ap.jsxs)("div",{children:[o.length?(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["What are the projects that this record is part of? To add a project, email"," "]}),(0,Ap.jsxs)(Ip,{children:["Quels sont les projets dont ce disque fait partie? Pour ajouter un projet, e-mail"," "]})]}),(0,Ap.jsx)("a",{href:"mailto:".concat(l.email),children:l.email}),"."]}),(0,Ap.jsx)(sk,{value:n.projects||[],labelSize:6,onChange:i("projects"),options:o,optionLabels:o,disabled:t})]}):(0,Ap.jsx)("div",{}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter an abstract or summary for the dataset. Required in both languages."}),(0,Ap.jsx)(Ip,{children:"D\xe9crivez votre jeu de donn\xe9es."})]}),(0,Ap.jsx)(ek,{passes:Mx(n,"abstract")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["This information will appear as the summary text that is shown for this dataset in the ",l.catalogueTitle.en,". Browsing datasets at ",(0,Ap.jsx)(u,{lang:"en"})," can help provide a sense of the type of descriptions that are typically used for this section of the record. As a general rule, this section should be worded with as little jargon as possible to give potential users an understanding of your dataset. Use a maximum of 500 words. For detailed methods please submit supplemental materials with your data.",(0,Ap.jsx)("br",{}),(0,Ap.jsx)("br",{}),"Suggested abstract points -",(0,Ap.jsx)("div",{children:(0,Ap.jsxs)("ul",{children:[(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"What"}),"- variables that were measured"]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"When"}),"- temporal coverage of the data, frequency of the measurements/observations"]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"Where"}),"- spatial coverage of the data, sampling sites, sensor tracks, laboratory spaces"]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"Why"}),"- a high level statement on the outcome this data is meant to inform"]})]})})]}),(0,Ap.jsxs)(Ip,{children:["Cette description correspond au r\xe9sum\xe9 de votre jeu de donn\xe9es lorsqu\u2019il sera publi\xe9 dans le ",l.catalogueTitle.fr," ",(0,Ap.jsx)(u,{lang:"fr"}),". Pour vous aider \xe0 r\xe9diger ce r\xe9sum\xe9, vous pouvez vous inspirer d\u2019autres jeux de donn\xe9es d\xe9j\xe0 publi\xe9s dans le catalogue. Ce champ doit \xeatre compris par tout type d\u2019utilisateur, nous vous recommandons un maximum de 500 mots, l\u2019utilisation d\u2019un langage accessible et de limiter l\u2019utilisation de vocabulaire de type jargon.",(0,Ap.jsx)("br",{}),(0,Ap.jsx)("br",{}),"Suggestion de points \xe0 aborder dans votre r\xe9sum\xe9:",(0,Ap.jsx)("div",{children:(0,Ap.jsxs)("ul",{children:[(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"Quoi"}),": Les variables qui ont \xe9t\xe9 mesur\xe9es"]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"Quand"}),": Couverture temporelle de la donn\xe9e, fr\xe9quence de la mesure/observation"]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"O\xf9"}),": Couverture spatiale de la donn\xe9e, nom/lieu des sites d\u2019\xe9chantillonnages, d\xe9placement enregistr\xe9s d\u2019un capteur, laboratoire, etc."]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"Comment"}),": \xc9quipement, proc\xe9dures, protocoles, calibration, assurance/contr\xf4le de la qualit\xe9"]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"Qui"}),": Participants, membres du personnel"]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"Pourquoi"}),": Quelques lignes pour d\xe9crire le contexte dans lequel les donn\xe9es ont \xe9t\xe9 \xe9chantillonn\xe9es et comment elles permettent de r\xe9pondre \xe0 la probl\xe9matique (p. ex: quelles informations peuvent-elles apporter)"]})]})})]})]})})]}),(0,Ap.jsx)(qC,{name:"abstract",value:n.abstract,onChange:r("abstract"),disabled:t,multiline:!0})]}),(!n.resourceType||!(n.resourceType.includes("other")&&1===n.resourceType.length))&&(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Please select all the essential ocean variables that are contained in this dataset. Hover over a variable to see its definition."}),(0,Ap.jsxs)(Ip,{children:["Veuillez s\xe9lectionner toutes les variables oc\xe9aniques essentielles contenues dans ce jeu de donn\xe9es. Survolez une variable pour voir sa d\xe9finition ou cliquez sur l\u2019ic\xf4ne ",(0,Ap.jsx)(lx,{})," pour acc\xe9der \xe0 la d\xe9finition compl\xe8te du Syst\xe8me d\u2019Observatoire Global des Oc\xe9ans (GOOS)."]})]}),(0,Ap.jsx)(ek,{passes:Mx(n,"eov")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"If none of these apply you can select Other."}),(0,Ap.jsx)(Ip,{children:"Si aucune de ces variables ne vous semble pertinente, vous pouvez s\xe9lectionner \xab Autre \xbb."})]})})]}),Object.entries(hS).map((e=>{let[r,o]=e;const s=fS.filter((e=>e.category===r)).sort(((e,t)=>e["label ".concat(c)].localeCompare(t["label ".concat(c)],a)));return(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)("h4",{children:o[a]}),(0,Ap.jsx)(sk,{value:n.eov||[],labelSize:6,onChange:i("eov"),options:s.map((e=>e.value)),optionLabels:s.map((e=>(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(ms,{title:e["definition ".concat(c)],children:(0,Ap.jsx)("span",{children:e["label ".concat(c)]})}),e.url&&(0,Ap.jsx)(Cr,{onClick:()=>{window.open(e.url,"_blank").focus()},children:(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Open GOOS definition in new window",fr:"Ouvrir la d\xe9finition GOOS dans une nouvelle fen\xeatre"}),children:(0,Ap.jsx)(lx,{})})}),e.emerging&&(0,Ap.jsx)(Cr,{onClick:()=>{},children:(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"GOOS emerging EOV",fr:"EOV \xe9mergent GOOS"}),children:(0,Ap.jsx)(pS,{})})})]}))),disabled:t})]},o[a])}))]}),(0,Ap.jsx)(Xn,{style:ZC,children:(0,Ap.jsxs)(e_,{container:!0,spacing:3,direction:"column",children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Choose the most specific keywords that apply to your data, or create your own."}),(0,Ap.jsx)(Ip,{children:"Choisissez des mots-cl\xe9s sp\xe9cifiques qui s\u2019appliquent \xe0 vos donn\xe9es ou cr\xe9ez-en des nouveaux."})]}),(0,Ap.jsx)(ek,{passes:Mx(n,"keywords")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:[(0,Ap.jsx)("p",{children:"Keywords are an important way to categorize your data that allow people and other systems to search for datasets that share some important characteristics."}),(0,Ap.jsx)("p",{children:"Keywords should include the place name of the closest community or major geographic location. Ex. Hartley Bay, Gitga\u2019at Territory, in addition to the closest body of water, e.g. Douglas Channel."}),(0,Ap.jsx)("p",{children:"Enter one at a time, clicking 'Add' after each."})]}),(0,Ap.jsxs)(Ip,{children:[(0,Ap.jsx)("p",{children:"Les mots cl\xe9s sont un moyen efficace de cat\xe9goriser vos donn\xe9es pour permettre aux utilisateurs ou \xe0 d'autres syst\xe8mes d\u2019acc\xe9der \xe0 tous les jeux de donn\xe9es partageant une m\xeame caract\xe9ristique."}),(0,Ap.jsx)("p",{children:"Vous pouvez choisir un mot cl\xe9 pr\xe9d\xe9fini (liste d\xe9roulante) en fran\xe7ais puis cliquer sur le bouton de traduction. Vous pouvez aussi cr\xe9er votre propre mot cl\xe9 en r\xe9digeant un texte libre en anglais ou en fran\xe7ais (v\xe9rifiez toujours si son \xe9quivalent existe dans la liste d\xe9roulante afin de diminuer le risque d\u2019\xe9criture multiple d\u2019un m\xeame mot cl\xe9 -ex: phoque Vs Phoques-)."}),(0,Ap.jsx)("p",{children:"Entrez un mot-cl\xe9 \xe0 la fois. Cliquez sur \xab Ajouter \xbb chaque mot saisi."})]})]})})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(hI,{value:n.keywords,onChange:r("keywords"),disabled:t})})]})}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the status of this dataset?"}),(0,Ap.jsx)(Ip,{children:"Quel est l'\xe9tat de ce jeu de donn\xe9es?"})]}),(0,Ap.jsx)(ek,{passes:Mx(n,"progress")}),(0,Ap.jsx)($C,{children:Object.values(nk).map((e=>{let{title:t,text:n}=e;return(0,Ap.jsx)("div",{style:{margin:"10px"},children:"".concat(t[a],": ").concat(n[a])},t[a])}))})]}),(0,Ap.jsx)(Ek,{value:n.progress||"",onChange:r("progress"),options:Object.keys(nk),optionLabels:Object.values(nk).map((e=>{let{title:t}=e;return t[a]})),disabled:t,fullWidth:!1,style:{width:"200px"}})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsx)(KC,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the start date when data was first collected?"}),(0,Ap.jsx)(Ip,{children:"Inscrivez la date de d\xe9but de votre collecte de donn\xe9es."})]})}),(0,Ap.jsx)(uI,{value:n.dateStart||null,onChange:r("dateStart"),disabled:t,dateEnd:n.dateEnd||void 0}),(0,Ap.jsx)("br",{}),(0,Ap.jsx)(KC,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the end date when data was last collected? Leave blank if data collection is ongoing."}),(0,Ap.jsx)(Ip,{children:"Inscrivez la date de fin de votre collecte de donn\xe9es. Laissez le champs vide si la collecte des donn\xe9es toujours est en cours."})]})}),(0,Ap.jsx)(uI,{value:n.dateEnd||null,onChange:r("dateEnd"),disabled:t,dateStart:n.dateStart||void 0})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsx)(KC,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the date when the data was published? Leave blank if dataset hasn't been published."}),(0,Ap.jsx)(Ip,{children:"Quelle est la date de premi\xe8re publication des donn\xe9es ? Laissez le champ vide si les donn\xe9es n'ont pas \xe9t\xe9 publi\xe9es."})]})}),(0,Ap.jsx)(uI,{name:"datePublished",value:n.datePublished||null,onChange:r("datePublished"),disabled:t})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsx)(KC,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"The version number of this dataset. For example, 1.1"}),(0,Ap.jsx)(Ip,{children:"Le num\xe9ro de version de cet ensemble de donn\xe9es. Par exemple, 1.1"})]})}),(0,Ap.jsx)(CC,{value:n.edition,onChange:r("edition"),disabled:t,style:{marginTop:"10px"},fullWidth:!0})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the date when data was revised? Leave blank if dataset hasn't been revised."}),(0,Ap.jsx)(Ip,{children:"Quelle est la date de la derni\xe8re r\xe9vision des donn\xe9es ? Laissez le champ vide si le jeu de donn\xe9es n'a pas \xe9t\xe9 r\xe9vis\xe9."})]}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:(0,Ap.jsx)("p",{children:"Please note that this field does not need to be populated or updated when revisions are made to the metadata, but rather when a new version of the data file or package becomes available, i.e. for time-series data."})}),(0,Ap.jsx)(Ip,{children:(0,Ap.jsx)("p",{children:"Veuillez noter que ce champ n'a pas besoin d'\xeatre rempli ou mis \xe0 jour lorsque des r\xe9visions sont apport\xe9es aux m\xe9tadonn\xe9es, mais plut\xf4t lorsqu'une nouvelle version du fichier ou du paquet de donn\xe9es devient disponible, c'est-\xe0-dire pour les donn\xe9es de s\xe9ries temporelles."})})]})})]}),(0,Ap.jsx)(uI,{name:"dateRevised",value:n.dateRevised||null,onChange:r("dateRevised"),disabled:t})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"How is the dataset licensed?"}),(0,Ap.jsx)(Ip,{children:"Quelle est la licence de ce jeu de donn\xe9es?"})]}),(0,Ap.jsx)(ek,{passes:Mx(n,"license")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:(0,Ap.jsxs)("ul",{children:[(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:(0,Ap.jsx)("a",{href:"https://creativecommons.org/licenses/by/4.0/",target:"_blank",rel:"noopener noreferrer",children:"Creative Commons Attribution 4.0 International licence (CC-BY 4.0)"})})," ","- CIOOS recommended. Allows for open sharing and adaptation of the data provided that the original creator is attributed."]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:(0,Ap.jsx)("a",{href:"https://creativecommons.org/share-your-work/public-domain/cc0/",target:"_blank",rel:"noopener noreferrer",children:"Creative Commons 0"})})," ","- imposes no restrictions of any kind."]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:(0,Ap.jsx)("a",{href:"https://open.canada.ca/en/open-government-licence-canada",target:"_blank",rel:"noopener noreferrer",children:"Open Government Licence - Canada"})})," ","- For datasets made available by Government of Canada departments and agencies, it is very similar to CC-BY as it allows for open sharing and adaptation of the data, provided that the original creator of the data is properly attributed."]})]})}),(0,Ap.jsx)(Ip,{children:(0,Ap.jsxs)("ul",{children:[(0,Ap.jsxs)("li",{children:[(0,Ap.jsxs)("b",{children:["Licence internationale Creative Commons Attribution 4.0 (CC-BY 4.0)"," "]}),"- Licence recommand\xe9e par le SIOOC. Les donn\xe9es sont ouvertes, mais la licence exige que le jeu de donn\xe9es soit cit\xe9 lorsqu\u2019il est utilis\xe9 par un autre utilisateur."]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"Creative Commons 0"})," - N\u2019impose aucune restriction particuli\xe8re : le jeu de donn\xe9es peut \xeatre utilis\xe9 sans \xeatre cit\xe9."]}),(0,Ap.jsxs)("li",{children:[(0,Ap.jsx)("b",{children:"Licence du gouvernement ouvert - Canada"})," - Pour les jeux de donn\xe9es rendus disponibles par les organisations et minist\xe8res f\xe9d\xe9raux. Cette licence est similaire \xe0 CC-BY 4.0 : les donn\xe9es sont ouvertes mais le jeu de donn\xe9es doit \xeatre cit\xe9 lorsqu'il est utilis\xe9 par un autre utilisateur."]})]})})]})})]}),(0,Ap.jsx)(Ek,{value:n.license,onChange:r("license"),optionLabels:d.map((e=>(0,Ap.jsxs)("span",{children:[e.title[a]||e.title.en,(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Open license definition in new window",fr:"Ouvrir la d\xe9finition de licence dans une nouvelle fen\xeatre"}),children:(0,Ap.jsx)(Cr,{onClick:()=>{window.open(e.url,"_blank").focus()},children:(0,Ap.jsx)(lx,{})})})]}))),options:d.map((e=>e.code)),disabled:t})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What are the limitations affecting the dataset?"}),(0,Ap.jsx)(Ip,{children:"Quelles sont les limitations affectant le jeu de donn\xe9es?"})]}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["For example:",(0,Ap.jsx)("i",{children:(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:"Not to be used for navigational purposes."}),(0,Ap.jsx)("li",{children:"Instrument was not calibrated on day."}),(0,Ap.jsx)("li",{children:"Haven\u2019t applied appropriate QC on the data yet."})]})})]}),(0,Ap.jsxs)(Ip,{children:["Par exemple :",(0,Ap.jsx)("i",{children:(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:"Ne pas utiliser \xe0 des fins de navigation."}),(0,Ap.jsx)("li",{children:"L' instrument n'a pas \xe9t\xe9 \xe9talonn\xe9."}),(0,Ap.jsx)("li",{children:"Un contr\xf4le de qualit\xe9 n\u2019a pas \xe9t\xe9 effectu\xe9 sur les donn\xe9es."})]})})]})]})})]}),(0,Ap.jsx)(qC,{name:"limitations",value:n.limitations,onChange:r("limitations"),multiline:!0,disabled:t})]})]})};const mI=function(e){let{platform:t}=e;return function(e){const{id:t,type:n}=e;return[n,t].filter((e=>e)).map((e=>e.trim())).filter((e=>e)).join(" - ")}(t)||(0,Ap.jsx)(Lp,{en:"New platform",fr:"Nouvel platform"})},gI=e=>{let{updateInstruments:t,instruments:n=[],disabled:r,paperClass:o,saveUpdateInstrument:a,userInstruments:s,platformList:l}=e;const[c,u]=(0,i.useState)(0),d=(0,i.useCallback)((e=>r=>{const i=[...n];i[c][e]=r.target.value,t(i)}),[n]),p=(0,i.useCallback)((()=>{t(n.filter(((e,t)=>t!==c))),n.length&&u(n.length-2)}),[n]),h=(0,Ap.jsx)(Lp,{en:"Manufacturer",fr:"Fabricant"}),f=(0,Ap.jsx)(Lp,{en:"Version",fr:"Version"}),m=(0,Ap.jsx)(Lp,{en:"Type",fr:"Type"}),g=(0,Ap.jsx)(Lp,{en:"Description",fr:"Description"}),v=(0,Ap.jsx)(Lp,{en:"Platform",fr:"Plateforme"}),b=n.length>0&&n[c];return(0,Ap.jsxs)(e_,{container:!0,direction:"row",style:{marginLeft:"5px"},children:[(0,Ap.jsx)(e_,{item:!0,xs:5,children:(0,Ap.jsx)(Yk,{itemType:"instrument",items:n,updateItems:t,activeItem:c,setActiveItem:u,disabled:r,savedUserItems:s,saveItem:a,leftListHeader:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Instruments in this record:"}),(0,Ap.jsx)(Ip,{children:"Instruments dans cet enregistrement:"})]}),leftListEmptyHeader:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"There are no instruments in this record."}),(0,Ap.jsx)(Ip,{children:"Il n'y a aucun instruments dans cet enregistrement."})]}),addSavedItemLabel:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"ADD SAVED INSTRUMENT"}),(0,Ap.jsx)(Ip,{children:"Ajouter un instrument enregistr\xe9"})]}),addNewItemText:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"ADD NEW INSTRUMENT"}),(0,Ap.jsx)(Ip,{children:"Ajouter un instrument"})]}),getBlankItem:I_,itemTitle:e=>aT({instrument:e})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(e_,{container:!0,direction:"column",children:b&&(0,Ap.jsx)(Xn,{style:o,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Instrument ID"}),(0,Ap.jsx)(Ip,{children:"L'ID de l'instrument"})]}),(0,Ap.jsx)(ek,{passes:b.id}),(0,Ap.jsx)(CC,{label:"ID",value:b.id,onChange:d("id"),fullWidth:!0,disabled:r})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(CC,{label:h,name:"manufacturer",value:b.manufacturer,onChange:d("manufacturer"),fullWidth:!0,disabled:r})," "]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:f,value:b.version,onChange:d("version"),fullWidth:!0,disabled:r})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Instrument Type"}),(0,Ap.jsx)(Ip,{children:"Type d'instrument"})]})}),(0,Ap.jsx)(qC,{name:"type",label:m,value:b.type,onChange:d("type"),disabled:r})]})," ",(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(Or,{children:"Description"}),(0,Ap.jsx)(qC,{name:"description",label:g,value:b.description,onChange:d("description"),disabled:r})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(nx,{}),disabled:r,onClick:p,children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Remove item"}),(0,Ap.jsx)(Ip,{children:"Supprimer l'instrument"})]})})}),l.length>=2&&(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["When mutiple platforms are used, you must specify which platform the instrument is attached to. ",(0,Ap.jsx)(ek,{passes:b.platform})]}),(0,Ap.jsx)(Ip,{children:"Lorsque plusieurs plates-formes sont utilis\xe9es, vous devez sp\xe9cifier \xe0 quelle plate-forme l'instrument est connect\xe9."})]})}),(0,Ap.jsx)(Ek,{label:v,name:"platform",value:b.platform,optionLabels:l.map((e=>(0,Ap.jsx)(mI,{platform:e}))),options:l.map((e=>e.id)),onChange:d("platform"),fullWidth:!0,disabled:r})]})]})})})})]})},vI=JSON.parse('[{"identifier":"91","label_en":"ice island","label_fr":"\xeele de glace","definition_en":"A floating ice sheet detached from the coast.","definition_fr":"Un iceberg ou bloc de glace flottant d\xe9tach\xe9 d\'un glacier."},{"identifier":"6C","label_en":"parachute","label_fr":"parachute","definition_en":"A fabric sheet designed to slow the descent of an object through the atmosphere.","definition_fr":"Un morceau de tissu con\xe7u pour ralentir la descente d\'un objet dans l\'atmosph\xe8re."},{"identifier":"6A","label_en":"glider","label_fr":"planeur","definition_en":"A fixed-wing aircraft with no propulsion.","definition_fr":"Un a\xe9ronef \xe0 voilure fixe sans propulsion."},{"identifier":"9A","label_en":"DUKW","label_fr":"DUKW","definition_en":"A six-wheel drive amphibious truck developed during the second World War.","definition_fr":"Un camion amphibie \xe0 six roues motrices d\xe9velopp\xe9 pendant la Seconde Guerre mondiale."},{"identifier":"38","label_en":"man-powered boat","label_fr":"bateau \xe0 propulsion humaine","definition_en":"A platform operating on the surface of the water column that is manually propelled and may not be easily removed from the water (e.g. trireme).","definition_fr":"Une plateforme fonctionnant \xe0 la surface de la colonne d\'eau qui est propuls\xe9e manuellement et qui peut ne pas \xeatre facilement retir\xe9e de l\'eau (par exemple trir\xe8me)."},{"identifier":"15","label_en":"land/onshore vehicle","label_fr":"v\xe9hicule terrestre","definition_en":"An instrumented vehicle or sample collector that operates on the solid surface of the Earth (e.g. mobile meteorological station, land crawler, snowmobile).","definition_fr":"Un v\xe9hicule instrument\xe9 ou un collecteur d\'\xe9chantillons qui fonctionne sur la surface solide de la Terre (par exemple: station m\xe9t\xe9orologique mobile, v\xe9hicule \xe0 chenille terrestre, motoneige)."},{"identifier":"13","label_en":"beach/intertidal zone structure","label_fr":"structure de plage/zone intertidale","definition_en":"A structure to which instrumentation may be attached that is either in air or under water depending on the state of the tide and weather conditions.","definition_fr":"Structure sur laquelle des instruments peuvent \xeatre fix\xe9s et qui se trouvent dans l\'air ou sous l\'eau en fonction de l\'\xe9tat de la mar\xe9e et des conditions m\xe9t\xe9orologiques."},{"identifier":"19","label_en":"mesocosm bag","label_fr":"sac \xe0 m\xe9socosme","definition_en":"A large polythene bag containing a water sample suspended in the natural environment so that it shares ambient physical conditions such as temperature and light levels, but is chemically isolated to allow experiments such as fertilisation.","definition_fr":"Grand sac en poly\xe9thyl\xe8ne contenant un volume d\'eau en suspension dans l\'environnement naturel afin qu\'il partage les conditions physiques ambiantes telles que la temp\xe9rature et les niveaux de lumi\xe8re, mais qui est isol\xe9 chimiquement pour permettre des exp\xe9riences telles que la fertilisation."},{"identifier":"34","label_en":"vessel at fixed position","label_fr":"navire en position fixe","definition_en":"A platform of any size occupying a fixed location on the surface of the water column for prolonged periods collecting scientific (oceanographic and meteorological) data as a primary or secondary mission. Includes light vessels and weather ships.","definition_fr":"Plateforme de toute taille occupant un emplacement fixe \xe0 la surface de la colonne d\'eau pendant de longues p\xe9riodes collectant des donn\xe9es scientifiques (oc\xe9anographiques et m\xe9t\xe9orologiques) en tant que mission principale ou secondaire. Inclut les navires l\xe9gers et les navires m\xe9t\xe9orologiques."},{"identifier":"17","label_en":"coastal structure","label_fr":"structure c\xf4ti\xe8re","definition_en":"A fixed man-made structure permanently linked to land with access to water at all states of the tide to which instrumentation may be attached (e.g. pier).","definition_fr":"Une structure artificielle fixe sur laquelle des instruments peuvent \xeatre fix\xe9s et qui est reli\xe9e en permanence \xe0 la terre avec un acc\xe8s \xe0 l\'eau peu importe l\'\xe9tat de la mar\xe9e (par exemple, une jet\xe9e)."},{"identifier":"36","label_en":"fishing vessel","label_fr":"navire de p\xeache","definition_en":"A platform operating on the surface of the water column whose primary purpose is the commercial harvesting of fish or shellfish but may be engaged in scientific activities such as fish stock surveys or mooring deployments and recoveries.","definition_fr":"Plateforme op\xe9rant \xe0 la surface de la colonne d\'eau et dont l\'objectif principal est la r\xe9colte commerciale de poissons ou de crustac\xe9s, mais qui peut \xeatre engag\xe9e dans des activit\xe9s scientifiques telles que des \xe9tudes de stocks de poissons ou des d\xe9ploiements et des r\xe9cup\xe9rations d\'amarrages."},{"identifier":"30","label_en":"ship","label_fr":"navire","definition_en":"A large platform operating on the surface of the water column. Objective definitions for guidelines: >50m length (EU), >100 foot length (USA), >300 GRT weight (SOLAS). Subjective definition: a ship is a vessel big enough to carry a boat.","definition_fr":"Une grande plateforme fonctionnant \xe0 la surface de la colonne d\'eau. D\xe9finitions des objectifs pour les lignes directrices : > 50 m de longueur (UE), > 100 pieds de longueur (\xc9tats-Unis), > 300 poids brut (SOLAS). D\xe9finition subjective : un vaisseau est un navire suffisamment grand pour transporter un bateau."},{"identifier":"76","label_en":"fish","label_fr":"poisson","definition_en":"A free-swimming creature that exists totally within the water column.","definition_fr":"Une cr\xe9ature qui nage librement et qui vit dans la colonne d\'eau."},{"identifier":"53","label_en":"tethered balloon","label_fr":"ballon captif","definition_en":"A container filled with a gas that is lighter than air, which is tethered at a fixed height and location.","definition_fr":"R\xe9cipient rempli d\'un gaz plus l\xe9ger que l\'air, qui est attach\xe9 \xe0 une hauteur et \xe0 un emplacement fixes."},{"identifier":"0","label_en":"unknown","label_fr":"inconnu","definition_en":"The correct value is not known to, and not computable by, the creator of this information. However, a correct value probably exists.","definition_fr":"La valeur correcte n\'est pas connue du cr\xe9ateur de ces informations et ne peut pas \xeatre calcul\xe9e par lui. Cependant, il existe probablement une valeur correcte."},{"identifier":"74","label_en":"seabird and duck","label_fr":"oiseau de mer et canard","definition_en":"A flighted bird that is able to exist on the water column surface and dive into the water column (e.g. cormorants, auks, ducks and gulls).","definition_fr":"Oiseau en vol capable d\'exister \xe0 la surface et de plonger dans la colonne d\'eau (cormorans, pingouins, canards et go\xe9lands)."},{"identifier":"32","label_en":"vessel of opportunity","label_fr":"navire occasionnel (VOS)","definition_en":"A platform for purpose of commerce of any size operating on the surface of the water column in unpredictable locations that regularly collects scientific (oceanographic and meteorological) data (e.g. an instrumented cargo vessel).","definition_fr":"Plateforme commerciale de toute taille op\xe9rant \xe0 la surface de la colonne d\'eau dans des lieux impr\xe9visibles qui recueille r\xe9guli\xe8rement des donn\xe9es scientifiques (oc\xe9anographiques et m\xe9t\xe9orologiques) (par exemple un cargo instrument\xe9)."},{"identifier":"72","label_en":"diver","label_fr":"plongeur","definition_en":"A human being with self-contained equipment or surface-connected suit enabling operation within the water column.","definition_fr":"Un \xeatre humain dot\xe9 d\'un \xe9quipement autonome ou d\'une combinaison connect\xe9e en surface permettant le fonctionnement dans la colonne d\'eau."},{"identifier":"95","label_en":"amphibious vehicle","label_fr":"v\xe9hicule amphibie","definition_en":"A self-propelled platform capable of operating on land and within or on the surface of a water body.","definition_fr":"Plateforme automotrice capable de fonctionner sur terre et \xe0 l\'int\xe9rieur ou \xe0 la surface d\'un plan d\'eau."},{"identifier":"11","label_en":"fixed benthic node","label_fr":"platform benthique fixe","definition_en":"A collection of oceanographic instruments mounted at a fixed position on the seabed (e.g. POL Monitoring Platform, seabed ADCP).","definition_fr":"Ensemble d\'instruments oc\xe9anographiques positionn\xe9 de mani\xe8re fixe sur le fond marin (par exemple, plateforme de surveillance POL, ADCP du fond marin)."},{"identifier":"70","label_en":"organism","label_fr":"organisme","definition_en":"A living creature carrying instruments or collecting samples.","definition_fr":"Cr\xe9ature vivante transportant des instruments ou pr\xe9levant des \xe9chantillons."},{"identifier":"93","label_en":"pack ice","label_fr":"banquise","definition_en":"Sea ice not connected to land with an ice concentration of over 70 per cent.","definition_fr":"Glace de mer non reli\xe9e \xe0 la terre avec une concentration de glace sup\xe9rieure \xe0 70 pour cent."},{"identifier":"51","label_en":"free-rising balloon","label_fr":"ballon a\xe9rostat","definition_en":"A container filled with a gas that is lighter than air, which is constrained to rise vertically at a fixed location.","definition_fr":"R\xe9cipient rempli d\'un gaz plus l\xe9ger que l\'air, qui est contraint de monter verticalement en un endroit fixe."},{"identifier":"3D","label_en":"drillship","label_fr":"navire de forage","definition_en":"A drillship is a merchant vessel designed for use in exploratory offshore drilling of new oil and gas wells or for scientific drilling purposes.","definition_fr":"Un navire de forage est un navire marchand con\xe7u pour \xeatre utilis\xe9 dans le forage exploratoire de nouveaux puits de p\xe9trole et de gaz en mer ou \xe0 des fins de forage scientifique."},{"identifier":"3B","label_en":"autonomous surface water vehicle","label_fr":"v\xe9hicule autonome pour les eaux de surface","definition_en":"A self-propelled vehicle operating on the sea surface with no human occupants.","definition_fr":"Un v\xe9hicule automoteur circulant \xe0 la surface de la mer sans occupants humains."},{"identifier":"49","label_en":"surface ice buoy","label_fr":"bou\xe9e de glace de surface","definition_en":"An undrogued (i.e. no sub-surface parachute) surface float that is deployed in regions where sea ice forms that moves with either ice or water depending upon the time of year.","definition_fr":"Flotteur de surface sans ancre flottante d\xe9ploy\xe9 dans les r\xe9gions o\xf9 se forme de la glace de mer qui se d\xe9place avec la glace ou l\'eau en fonction de la p\xe9riode de l\'ann\xe9e."},{"identifier":"3Z","label_en":"surface vessel","label_fr":"navire de surface","definition_en":"A mobile platform with propulsion operating on and restricted to the surface of a water body.","definition_fr":"Une plateforme mobile dont la propulsion fonctionne et est limit\xe9e \xe0 la surface d\'un plan d\'eau."},{"identifier":"24","label_en":"drifting manned submersible","label_fr":"submersible d\xe9rivant habit\xe9","definition_en":"A platform operating in the water column attached to a mothership by an umbilical but with no means of propulsion that has at least one human operator on board (e.g. bathysphere).","definition_fr":"plateforme fonctionnant dans la colonne d\'eau rattach\xe9e \xe0 un vaisseau-m\xe8re par un ombilical mais sans moyen de propulsion et comportant au moins un op\xe9rateur humain \xe0 bord (par exemple bathysph\xe8re)."},{"identifier":"45","label_en":"fixed subsurface vertical profiler","label_fr":"profileur vertical souterrain fixe","definition_en":"A platform that periodically makes an automated vertical traverse of the water column at a predetermined fixed location. (e.g. YSI vertical profiler, HOMER CTD).","definition_fr":"plateforme qui effectue p\xe9riodiquement un profil vertical automatis\xe9 de la colonne d\'eau \xe0 un emplacement fixe pr\xe9d\xe9termin\xe9. (par exemple profileur vertical YSI, HOMER CTD)."},{"identifier":"68","label_en":"satellite","label_fr":"satellite","definition_en":"A vehicle operating beyond the Earth\'s atmosphere without human occupants that orbits the Earth.","definition_fr":"Un v\xe9hicule non habit\xe9 circulant au-del\xe0 de l\'atmosph\xe8re terrestre en orbite autour de la Terre."},{"identifier":"26","label_en":"lowered unmanned submersible","label_fr":"submersible treuill\xe9 non habit\xe9","definition_en":"An unmanned platform lowered and raised vertically by a cable from the mothership. Includes any type of profiling sensor mounting such as CTD frames, profiling radiometers and instrumented nets.","definition_fr":"Une plateforme non habit\xe9e mont\xe9e est descendue verticalement (treuill\xe9) par un c\xe2ble depuis le vaisseau-m\xe8re. Inclut tout type de capteurs de profilage tels que les cadres CTD, les radiom\xe8tres de profilage et les r\xe9seaux instrument\xe9s."},{"identifier":"47","label_en":"float","label_fr":"bou\xe9e","definition_en":"A free-floating platform either on the surface of the water column or at a predetermined depth within the water column.","definition_fr":"Une plateforme flottante soit \xe0 la surface de la colonne d\'eau, soit \xe0 une profondeur pr\xe9d\xe9termin\xe9e dans la colonne d\'eau."},{"identifier":"20","label_en":"submersible","label_fr":"submersible","definition_en":"A platform operating within a water body.","definition_fr":"Plateforme fonctionnant dans un plan d\'eau."},{"identifier":"66","label_en":"manned spacecraft","label_fr":"vaisseau spatial habit\xe9","definition_en":"A vehicle operating beyond the Earth\'s atmosphere with human occupants.","definition_fr":"Un v\xe9hicule \xe9voluant au-del\xe0 de l\'atmosph\xe8re terrestre avec des occupants humains."},{"identifier":"41","label_en":"moored surface buoy","label_fr":"bou\xe9e de surface amarr\xe9e","definition_en":"An unmanned instrumented platform operating on the surface of the water column loosely tethered to the seafloor to maintain a fixed position (e.g. ODAS buoy).","definition_fr":"Une plateforme instrument\xe9e non habit\xe9e fonctionnant \xe0 la surface de la colonne d\'eau et attach\xe9e de mani\xe8re l\xe2che au fond marin pour maintenir une position fixe (par exemple une bou\xe9e ODAS)."},{"identifier":"64","label_en":"geostationary orbiting satellite","label_fr":"satellite orbital g\xe9ostationnaire","definition_en":"A vehicle operating beyond the Earth\'s atmosphere without human occupants that orbits the Earth at the same rate as the Earth\'s rotation keeping it over a fixed location on the Earth\'s surface..","definition_fr":"Un v\xe9hicule circulant au-del\xe0 de l\'atmosph\xe8re terrestre sans occupants humains qui orbite autour de la Terre au m\xeame rythme que la rotation de la Terre en la maintenant au-dessus d\'un emplacement fixe sur la surface de la Terre."},{"identifier":"22","label_en":"propelled unmanned submersible","label_fr":"submersible propuls\xe9 non habit\xe9","definition_en":"A platform operating in the water column attached to a mothership by an umbilical with limited propulsion and no human operator on board (e.g. ROV).","definition_fr":"Plateforme non habit\xe9e fonctionnant dans la colonne d\'eau, rattach\xe9e \xe0 un vaisseau-m\xe8re par un ombilical et dont sa propulsion propre est limit\xe9e (par exemple ROV)."},{"identifier":"43","label_en":"subsurface mooring","label_fr":"amarrage sous marin","definition_en":"A collection of oceanographic instruments attached to wires suspended between anchors on the seabed and buoyant spheres in the water column.","definition_fr":"Collection d\'instruments oc\xe9anographiques attach\xe9s \xe0 un cable tir\xe9 entre une ancre sur le fond marin et des sph\xe8res flottantes dans la colonne d\'eau."},{"identifier":"62","label_en":"aeroplane","label_fr":"avion","definition_en":"A fixed-wing self-propelled aircraft.","definition_fr":"Un avion automoteur \xe0 voilure fixe."},{"identifier":"60","label_en":"non-buoyant aircraft","label_fr":"a\xe9rodyne","definition_en":"A platform capable of flight in the atmosphere despite its being heavier than air.","definition_fr":"Une plateforme capable de voler dans l\'atmosph\xe8re m\xeame si elle est plus lourde que l\'air."},{"identifier":"90","label_en":"cryosphere","label_fr":"cryosph\xe8re","definition_en":"A frozen body of water on land, freshwater or sea.","definition_fr":"Portions de la surface des mers ou terres \xe9merg\xe9es o\xf9 l\'eau est pr\xe9sente \xe0 l\'\xe9tat solide"},{"identifier":"4A","label_en":"Ice-tethered subsurface profiling float","label_fr":"bou\xe9e de profilage sous-marine li\xe9 \xe0 la glace","definition_en":"A platform that periodically makes an automated vertical traverse of the water column that is fixed to a floating body of ice.","definition_fr":"plateforme fix\xe9e \xe0 un corps de glace flottant qui effectue p\xe9riodiquement une travers\xe9e verticale automatis\xe9e de la colonne d\'eau ."},{"identifier":"6D","label_en":"unmanned aerial vehicle","label_fr":"v\xe9hicule a\xe9rien sans pilote","definition_en":"Any untethered heavier-than-air aircraft that is not occupied by people: may be a remotely piloted aircraft or an autonomous aircraft. Also referred to as a drone.","definition_fr":"Tout a\xe9ronef non attach\xe9 plus lourd que l\'air qui n\'est pas occup\xe9 par des personnes : il peut s\'agir d\'un a\xe9ronef t\xe9l\xe9pilot\xe9 ou d\'un avion autonome. \xc9galement appel\xe9 drone."},{"identifier":"6B","label_en":"kite","label_fr":"cerf-volant","definition_en":"An aerofoil tethered to the ground held aloft by the wind.","definition_fr":"Une surface portante attach\xe9e au sol et maintenu en altitude par le vent."},{"identifier":"39","label_en":"naval vessel","label_fr":"navire militaire","definition_en":"A platform operating on the surface of the water column in unpredictable locations that is primarily equipped, manned and operated for military purposes. Includes surface warships of all sizes and logistic support vessels.","definition_fr":"Plateforme op\xe9rant \xe0 la surface de la colonne d\'eau dans des endroits impr\xe9visibles qui est principalement \xe9quip\xe9e, habit\xe9e et exploit\xe9e \xe0 des fins militaires. Comprend les navires de guerre de surface de toutes tailles et les navires de soutien logistique."},{"identifier":"14","label_en":"land/onshore structure","label_fr":"structure terrestre","definition_en":"A fixed man-made structure on land to which instrumentation may be attached (e.g. meteorological tower).","definition_fr":"Une structure terrestre artificielle fixe sur laquelle des instruments peuvent \xeatre attach\xe9s (par exemple une tour m\xe9t\xe9orologique)."},{"identifier":"12","label_en":"sea bed vehicle","label_fr":"v\xe9hicule benthique","definition_en":"An instrumented platform that is propelled on wheels or tracks on the seabed (e.g benthic crawler).","definition_fr":"Une plateforme instrument\xe9e qui est propuls\xe9e sur des roues ou des chenilles sur le fond marin (par exemple, chenille benthique)."},{"identifier":"6Z","label_en":"spacecraft","label_fr":"vaisseau spatial","definition_en":"A platform operating beyond the Earth\'s atmosphere.","definition_fr":"Une plateforme qui fonctionne au-del\xe0 de l\'atmosph\xe8re terrestre."},{"identifier":"18","label_en":"river station","label_fr":"station de rivi\xe8re","definition_en":"An instrumented structure in a river upstream of its tidal limit.","definition_fr":"Structure instrument\xe9e dans une rivi\xe8re en amont de la limite de mar\xe9e."},{"identifier":"35","label_en":"vessel of opportunity on fixed route","label_fr":"navire occasionnel (VOS) en itin\xe9raire fixe","definition_en":"A platform repeatedly following a predictable fixed track on the surface of the water column that collects scientific (oceanographic and meteorological) data (e.g. an instrumented ferry).","definition_fr":"Une plateforme qui suit de fa\xe7on r\xe9p\xe9t\xe9e une trajectoire fixe pr\xe9visible \xe0 la surface de la colonne d\'eau qui recueille des donn\xe9es scientifiques (oc\xe9anographiques et m\xe9t\xe9orologiques) (par exemple un traversier instrument\xe9)."},{"identifier":"16","label_en":"offshore structure","label_fr":"structure hauturi\xe8re","definition_en":"A fixed (for the duration of the measurements) man-made structure away from the coast to which instrumentation may be attached (e.g. oil rig, gas rig or jack-up barge).","definition_fr":"Une structure artificielle fixe (pour la dur\xe9e des mesures) \xe9loign\xe9e de la c\xf4te sur laquelle peuvent \xeatre fix\xe9s des instruments (par exemple, plateforme p\xe9troli\xe8re, plateforme gazi\xe8re ou barge auto-\xe9l\xe9vatrice)."},{"identifier":"37","label_en":"self-propelled boat","label_fr":"bateau automoteur","definition_en":"A small self-propelled platform operating on the surface of the water column in unpredictable locations that is smaller than a ship, but too large to easily remove from the water.","definition_fr":"Petite plateforme automotrice op\xe9rant \xe0 la surface de la colonne d\'eau dans des endroits impr\xe9visibles, plus petite qu\'un navire, mais trop grande pour \xeatre facilement retir\xe9e de l\'eau."},{"identifier":"52","label_en":"free-floating balloon","label_fr":"ballon flottant","definition_en":"A container filled with a gas that is lighter than air, which is free to drift in the atmosphere.","definition_fr":"R\xe9cipient rempli d\'un gaz plus l\xe9ger que l\'air, libre de d\xe9river dans l\'atmosph\xe8re."},{"identifier":"31","label_en":"research vessel","label_fr":"navire de recherche","definition_en":"A platform of any size operating on the surface of the water column in unpredictable locations that is specifically equipped, manned and operated for scientific, usually oceanographic, research.","definition_fr":"plateforme de toute taille op\xe9rant \xe0 la surface de la colonne d\'eau dans des lieux impr\xe9visibles, sp\xe9cialement \xe9quip\xe9e, habit\xe9e et exploit\xe9e pour la recherche scientifique, g\xe9n\xe9ralement oc\xe9anographique."},{"identifier":"77","label_en":"land-sea mammals","label_fr":"mammif\xe8res amphibie marin","definition_en":"A mammal that exists both on land and within the water column. Includes seals, sealions, sea-otters and walruses.","definition_fr":"Mammif\xe8re qui vit \xe0 la fois sur terre et dans la colonne d\'eau. Comprend les phoques, les otaries, les loutres de mer et les morses."},{"identifier":"96","label_en":"amphibious crawler","label_fr":"v\xe9hicule amphibie \xe0 chenille","definition_en":"A self-propelled vehicle capable of operation on land or the seabed (e.g. beach crawler).","definition_fr":"V\xe9hicule automoteur capable de fonctionner sur terre ou sur le fond marin (par exemple, chenille de plage)."},{"identifier":"54","label_en":"airship","label_fr":"dirigeable","definition_en":"A self-propelled container filled with a gas that is lighter than air.","definition_fr":"Conteneur autopropuls\xe9 rempli d\'un gaz plus l\xe9ger que l\'air."},{"identifier":"75","label_en":"cetacean","label_fr":"c\xe9tac\xe9","definition_en":"A mammal that exists within the water column but needing to regularly surface to breathe (i.e. dolphins and whales).","definition_fr":"Mammif\xe8re pr\xe9sent dans la colonne d\'eau mais qui a besoin de remonter r\xe9guli\xe8rement \xe0 la surface pour respirer (c\'est-\xe0-dire les dauphins et les baleines)."},{"identifier":"33","label_en":"self-propelled small boat","label_fr":"petit bateau automoteur","definition_en":"A small self-propelled platform operating on the surface of the water column that may be easily removed from the water (e.g. shore-based RIBs, ships\' boats).","definition_fr":"Petite plateforme automotrice fonctionnant \xe0 la surface de la colonne d\'eau qui peut \xeatre facilement retir\xe9e de l\'eau (par exemple, semi-rigides \xe0 terre, bateaux de navires)."},{"identifier":"94","label_en":"drift ice","label_fr":"glace d\xe9rivante","definition_en":"Sea ice not connected to land with an ice concentration of under 70 per cent.","definition_fr":"Glace de mer non reli\xe9e \xe0 la terre avec une concentration de glace inf\xe9rieure \xe0 70 pour cent."},{"identifier":"10","label_en":"land or seafloor","label_fr":"terre ou fond marin","definition_en":"A platform located on the solid surface of the Earth either above or below sea level.","definition_fr":"plateforme situ\xe9e sur la surface solide de la Terre au-dessus ou au-dessous du niveau de la mer."},{"identifier":"73","label_en":"flightless bird","label_fr":"oiseau inapte au vol","definition_en":"A bird that is unable to fly with the ability to exist within the water column (e.g. penguin).","definition_fr":"Oiseau incapable de voler avec la capacit\xe9 d\'exister dans la colonne d\'eau (par exemple, manchot)."},{"identifier":"92","label_en":"ice shelf","label_fr":"plateforme de glace flottante","definition_en":"A floating ice sheet attached to the coast.","definition_fr":"Une calotte glaciaire flottante attach\xe9e \xe0 la c\xf4te."},{"identifier":"50","label_en":"buoyant aircraft","label_fr":"avion a\xe9rostat","definition_en":"A platform capable of flight in the atmosphere because it is lighter than air.","definition_fr":"Une plateforme capable de voler dans l\'atmosph\xe8re parce qu\'elle est plus l\xe9g\xe8re que l\'air."},{"identifier":"71","label_en":"human","label_fr":"humain","definition_en":"A human being without specialised equipment operating on land or the surface of the water column.","definition_fr":"Un \xeatre humain sans \xe9quipement sp\xe9cialis\xe9 op\xe9rant sur terre ou \xe0 la surface de la colonne d\'eau."},{"identifier":"3A","label_en":"man-powered small boat","label_fr":"petit bateau \xe0 propulsion humaine","definition_en":"A platform operating on the surface of the water column that is manually propelled and may be easily removed from the water (e.g. rowing boat, canoe).","definition_fr":"Une plateforme fonctionnant \xe0 la surface de la colonne d\'eau qui est propuls\xe9e manuellement et peut \xeatre facilement retir\xe9e de l\'eau (par exemple bateau \xe0 rames, cano\xeb)."},{"identifier":"3C","label_en":"surface gliders","label_fr":"planeurs de surface","definition_en":"Platforms operating at a single depth near the sea surface, using a combination of solar energy and wave motion as means of propulsion.","definition_fr":"Plateforme fonctionnant \xe0 une seule profondeur pr\xe8s de la surface de la mer, utilisant une combinaison d\'\xe9nergie solaire et de mouvement des vagues comme moyens de propulsion."},{"identifier":"9B","label_en":"hovercraft","label_fr":"a\xe9roglisseur","definition_en":"A craft capable of moving over water or land on a downwardly-propelled cushion of air.","definition_fr":"Engin capable de se d\xe9placer au-dessus de l\'eau ou d\'atterrir sur un coussin d\'air propuls\xe9 vers le bas."},{"identifier":"27","label_en":"sub-surface gliders","label_fr":"planeurs sous-marins","definition_en":"Platforms with buoyancy-based propulsion that are capable of operations at variable depths which are not constrained to be near the sea surface.","definition_fr":"Plateforme dont la propulsion repose le remplissage de ballast (modification de flottabilit\xe9) et capable de fonctionner \xe0 des profondeurs variables no contraintes \xe0 surface de la mer."},{"identifier":"46","label_en":"drifting subsurface profiling float","label_fr":"profileur sous-marine d\xe9rivant","definition_en":"An unmanned instrumented platform drifting freely in the water column that periodically makes vertical traverses through the water column (e.g. Argo float).","definition_fr":"Une plateforme instrument\xe9e sans pilote d\xe9rivant librement dans la colonne d\'eau qui effectue p\xe9riodiquement des travers\xe9es verticales \xe0 travers la colonne d\'eau (par exemple, flotteur Argo)."},{"identifier":"23","label_en":"towed unmanned submersible","label_fr":"submersible non habit\xe9 remorqu\xe9","definition_en":"A vehicle towed by rigid cable through the water column at fixed or varying depth with no propulsion and no human operator (e.g. Towfish, Scanfish, UOR, SeaSoar).","definition_fr":"V\xe9hicule remorqu\xe9 par c\xe2ble rigide \xe0 travers la colonne d\'eau \xe0 une profondeur fixe ou variable, sans propulsion et sans op\xe9rateur humain (par exemple Towfish, Scanfish, UOR, SeaSoar)."},{"identifier":"69","label_en":"autogyro","label_fr":"autogyre","definition_en":"An aircraft without wings that obtains its lift from the rotation of overhead blades, but obtains forward populsion from a fixed propellor.","definition_fr":"A\xe9ronef sans ailes dont la portance provient de la rotation des pales a\xe9riennes, mais qui obtient une pouss\xe9e vers l\'avant \xe0 partir d\'une h\xe9lice fixe."},{"identifier":"48","label_en":"mooring","label_fr":"mouillage","definition_en":"A tethered collection of oceanographic instruments at a fixed location that may include seafloor, mid-water and surface components.","definition_fr":"Ensemble d\'instruments oc\xe9anographiques encord\xe9 \xe0 un emplacement fixe pouvant inclure des \xe9l\xe9ments du fond marin, du milieu de l\'eau et de la surface."},{"identifier":"67","label_en":"helicopter","label_fr":"h\xe9licopt\xe8re","definition_en":"An aircraft without wings that obtains its lift from the rotation of overhead blades.","definition_fr":"Un avion sans ailes qui tire sa portance de la rotation des pales a\xe9riennes."},{"identifier":"25","label_en":"autonomous underwater vehicle","label_fr":"v\xe9hicule sous-marin autonome","definition_en":"A free-roving platform operating in the water column with propulsion but no human operator on board (e.g. Autosub, Gavia).","definition_fr":"Une plateforme mobile fonctionnant dans la colonne d\'eau avec propulsion mais sans op\xe9rateur humain \xe0 bord (par exemple Autosub, Gavia)."},{"identifier":"42","label_en":"drifting surface float","label_fr":"bou\xe9e de surface d\xe9rivante","definition_en":"An unmanned instrumented platform operating on the surface of the water column often attached to a drogue to track currents rather than winds (e.g. Argos buoy).","definition_fr":"Plateforme instrument\xe9e sans pilote \xe9voluant \xe0 la surface de la colonne d\'eau, souvent fix\xe9e \xe0 une ancre flottante pour suivre les courants plut\xf4t que les vents (par exemple, une bou\xe9e Argos)."},{"identifier":"65","label_en":"orbiting satellite","label_fr":"satellite en orbite","definition_en":"A vehicle operating beyond the Earth\'s atmosphere without human occupants that orbits the Earth at a different rate to the Earth\'s rotation so it moves over the Earth\'s surface..","definition_fr":"Un v\xe9hicule \xe9voluant au-del\xe0 de l\'atmosph\xe8re terrestre sans occupants humains qui orbite autour de la Terre \xe0 une vitesse diff\xe9rente de celle de la Terre de sorte qu\'il se d\xe9place au-dessus de la surface de la Terre."},{"identifier":"44","label_en":"drifting subsurface float","label_fr":"flotteur d\xe9rivant de subsurface","definition_en":"An unmanned instrumented platform drifting freely in the water column at a depth governed by its density (e.g. Swallow float).","definition_fr":"Une plateforme instrument\xe9e sans pilote d\xe9rivant librement dans la colonne d\'eau \xe0 une profondeur d\xe9termin\xe9e par sa densit\xe9 (par exemple flotteur Swallow)."},{"identifier":"63","label_en":"rocket","label_fr":"fus\xe9e","definition_en":"A rocket is a vehicle, missile or aircraft which obtains thrust by the reaction to the ejection of fast moving exhaust gas from within a rocket engine.","definition_fr":"Une fus\xe9e est un v\xe9hicule, un missile ou un a\xe9ronef qui est propuls\xe9 par la r\xe9action \xe0 l\'\xe9jection de gaz d\'\xe9chappement se d\xe9pla\xe7ant rapidement \xe0 l\'int\xe9rieur d\'un moteur-fus\xe9e."},{"identifier":"21","label_en":"propelled manned submersible","label_fr":"submersible habit\xe9 propuls\xe9","definition_en":"A platform operating in the water column that has both self-contained propulsion and at least one human operator on board (e.g. submarine).","definition_fr":"Une plateforme fonctionnant dans la colonne d\'eau qui poss\xe8de \xe0 la fois une propulsion autonome et au moins un op\xe9rateur humain \xe0 bord (par exemple un sous-marin)."},{"identifier":"61","label_en":"research aeroplane","label_fr":"avion de recherche","definition_en":"A fixed-wing self-propelled aircraft that is equipped, manned and operated for atmospheric, meteorological or oceanographic research.","definition_fr":"A\xe9ronef automoteur \xe0 voilure fixe \xe9quip\xe9, pilot\xe9 et exploit\xe9 pour la recherche atmosph\xe9rique, m\xe9t\xe9orologique ou oc\xe9anographique."}]'),bI=e=>{let{platforms:t=[],userPlatforms:n,updatePlatforms:r,saveUpdatePlatform:o,disabled:a,paperClass:s}=e;const{language:l="en"}=mn(),[c,u]=(0,i.useState)(0);function d(e){return n=>{const i=[...t];i[c][e]=n.target.value,r(i)}}const p=Object.values(vI).sort(((e,t)=>e["label_".concat(l)].localeCompare(t["label_".concat(l)],l))),h=t.length>0&&t[c];return(0,Ap.jsx)("div",{children:(0,Ap.jsxs)(e_,{container:!0,direction:"row",style:{marginLeft:"5px"},children:[(0,Ap.jsx)(e_,{item:!0,xs:5,children:(0,Ap.jsx)(Yk,{itemType:"platform",items:t,updateItems:r,activeItem:c,setActiveItem:u,disabled:a,savedUserItems:n,saveItem:o,getBlankItem:R_,addSavedItemLabel:(0,Ap.jsx)(Lp,{en:"ADD SAVED PLATFORM",fr:"AJOUTER UN PLATEFORME"}),itemTitle:e=>mI({platform:e})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(e_,{container:!0,direction:"column",children:h&&(0,Ap.jsxs)(Xn,{style:s,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,style:s,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What type of platform is it?"}),(0,Ap.jsx)(Ip,{children:"De quel type de plateforme s'agit-il ?"})]}),(0,Ap.jsxs)($C,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Please select a platform from the "}),(0,Ap.jsx)(Ip,{children:"Veuillez s\xe9lectionner une plateforme dans la "})]}),(0,Ap.jsxs)("a",{href:"http://vocab.nerc.ac.uk/collection/L06/current/",target:"_blank",rel:"noopener noreferrer",children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"SeaVoX Platform Categories (NERC L06 Vocabulary)"}),(0,Ap.jsx)(Ip,{children:"SeaVoX Platform Categories (liste Vocabulaire NERC L06)"})]}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Open in new window",fr:"Ouvrir dans une nouvelle fen\xeatre"}),children:(0,Ap.jsx)(lx,{style:{verticalAlign:"middle"}})})]}),(0,Ap.jsx)(ek,{passes:h.type})]})]}),(0,Ap.jsx)(Ek,{value:h.type,onChange:d("type"),optionLabels:p.map((e=>"".concat(e["label_".concat(l)]))),optionTooltips:p.map((e=>"".concat(e["definition_".concat(l)]))),options:p.map((e=>e.label_en)),disabled:a,label:(0,Ap.jsx)(Lp,{en:"Platform",fr:"Plateforme"}),fullWidth:!1})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,style:s,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the platform ID or code?"}),(0,Ap.jsx)(Ip,{children:"Quel est l'ID de la plateforme ?"})]}),(0,Ap.jsxs)($C,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["This is a unique identification of the platform. If the platform is registered with"," ",(0,Ap.jsx)("a",{href:"https://vocab.seadatanet.org/v_bodc_vocab_v2/search.asp?lib=C17",target:"_blank",rel:"noopener noreferrer",children:"ICES"}),", use that identifier"]}),(0,Ap.jsxs)(Ip,{children:["Il s'agit d'une identification unique de la plateforme. Si la plateforme est enregistr\xe9e aupr\xe8s du"," ",(0,Ap.jsx)("a",{href:"https://vocab.seadatanet.org/v_bodc_vocab_v2/search.asp?lib=C17",target:"_blank",rel:"noopener noreferrer",children:"CIEM"}),", utilisez cet identifiant"]})]}),(0,Ap.jsx)(ek,{passes:h.id})]})]}),(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Platform ID",fr:"ID de plateforme"}),value:h.id,onChange:d("id"),fullWidth:!0,disabled:a})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,style:s,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"More information about the platform"}),(0,Ap.jsx)(Ip,{children:"Plus d'informations sur la plateforme"})]}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You can also add aditional information about the platform."}),(0,Ap.jsx)(Ip,{children:"Vous pouvez \xe9galement ajouter des informations suppl\xe9mentaires sur la plateforme."})]})})]}),(0,Ap.jsx)(qC,{name:"platformDescription",value:h.description,onChange:d("description"),multiline:!0,disabled:a})]})]})})})]})})},yI=e=>{let{disabled:t,record:n,userPlatforms:r,saveUpdatePlatform:o,userInstruments:a,saveUpdateInstrument:s,updateRecord:l}=e;const c=n.noPlatform&&"false"!==n.noPlatform;return(0,i.useEffect)((()=>{n.platformID&&(l("platforms")([{id:n.platformID,description:n.platformDescription,type:n.platform},...n.platforms]),l("platformID")(null),l("platformDescription")(null),l("platform")(null))}),[n.platformID,n.platform,n.platformDescription]),(0,Ap.jsx)("div",{children:(0,Ap.jsx)(Xn,{style:ZC,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:0,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,style:ZC,children:[(0,Ap.jsx)(KC,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["A platform is anything used in data collection that has instrument(s) attached to it. Eg:",(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:"Glider"}),(0,Ap.jsx)("li",{children:"Ship"}),(0,Ap.jsx)("li",{children:"Buoy"}),(0,Ap.jsx)("li",{children:"Satellite"}),(0,Ap.jsx)("li",{children:"ROV"}),(0,Ap.jsx)("li",{children:"Mooring"})]}),"It is strongly encouraged to fill out platform information. If there is no platform, you can enter instruments at the bottom of the page."]}),(0,Ap.jsxs)(Ip,{children:["Une plateforme d\xe9signe tout \u201cobjet\u201d sur lequel un ou plusieurs instruments sont attach\xe9s et utilis\xe9s dans la collecte des donn\xe9es. Par exemple :",(0,Ap.jsxs)("ul",{children:[(0,Ap.jsx)("li",{children:(0,Ap.jsx)("i",{children:"Glider"})}),(0,Ap.jsx)("li",{children:"Navire"}),(0,Ap.jsx)("li",{children:"Bou\xe9e"}),(0,Ap.jsx)("li",{children:"Satellite"}),(0,Ap.jsx)("li",{children:"ROV"}),(0,Ap.jsx)("li",{children:"Amarrage"})]}),"S'il n'y a pas de plateforme, vous pouvez entrer des informations sur les instruments au bas de la page. Sinon, vous devez d\xe9crire le plus pr\xe9cis\xe9ment possible la plateforme utilis\xe9e dans la collecte de donn\xe9es."]})]})}),(0,Ap.jsx)(AC,{disabled:t,control:(0,Ap.jsx)(QC,{name:"noPlatform",checked:c,onChange:e=>{const{checked:t}=e.target;l("noPlatform")(t)}}),label:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"This dataset doesn't have a platform"}),(0,Ap.jsx)(Ip,{children:"Ce jeu de donn\xe9es n'a pas de plateforme"})]})})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,style:ZC,children:[c?(0,Ap.jsx)(KC,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You can still enter an instrument without a platform"}),(0,Ap.jsx)(Ip,{children:"Vous pouvez toujours entrer dans un instrument sans plateforme"})]})}):(0,Ap.jsx)(Ap.Fragment,{children:(0,Ap.jsx)(bI,{platforms:n.platforms,userPlatforms:r,saveUpdatePlatform:o,record:n,updatePlatforms:l("platforms"),disabled:t,paperClass:ZC})}),(0,Ap.jsx)(gI,{instruments:n.instruments,updateInstruments:l("instruments"),saveUpdateInstrument:s,userInstruments:a,disabled:t,paperClass:ZC,noPlatform:c,platformList:n.platforms})]})]})})})};var _I=n(5036),xI=n.n(_I),wI=(0,i.createContext)({}),EI=wI.Consumer,TI=wI.Provider,CI=function(e){var t=function(t,n){return i.createElement(EI,null,(function(r){return i.createElement(e,(0,at.c)({},t,{leaflet:r,ref:n}))}))},n=e.displayName||e.name||"Component";t.displayName="Leaflet("+n+")";var r=(0,i.forwardRef)(t);return Qt()(r,e),r},kI=/^on(.+)$/i,SI=function(e){function t(t){var n;return n=e.call(this,t)||this,(0,nr.c)((0,ur.c)(n),"_leafletEvents",void 0),(0,nr.c)((0,ur.c)(n),"leafletElement",void 0),n._leafletEvents=n.extractLeafletEvents(t),n}(0,rt.c)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.bindLeafletEvents(this._leafletEvents)},n.componentDidUpdate=function(e){this._leafletEvents=this.bindLeafletEvents(this.extractLeafletEvents(this.props),this._leafletEvents)},n.componentWillUnmount=function(){var e=this,t=this.leafletElement;t&&Object.keys(this._leafletEvents).forEach((function(n){t.off(n,e._leafletEvents[n])}))},n.extractLeafletEvents=function(e){return Object.keys(e).reduce((function(t,n){if(kI.test(n)&&null!=e[n]){var r=n.replace(kI,(function(e,t){return t.toLowerCase()}));t[r]=e[n]}return t}),{})},n.bindLeafletEvents=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=this.leafletElement;if(null==n||null==n.on)return{};var r=(0,at.c)({},t);return Object.keys(t).forEach((function(i){null!=e[i]&&t[i]===e[i]||(delete r[i],n.off(i,t[i]))})),Object.keys(e).forEach((function(i){null!=t[i]&&e[i]===t[i]||(r[i]=e[i],n.on(i,e[i]))})),r},n.fireLeafletEvent=function(e,t){var n=this.leafletElement;n&&n.fire(e,t)},t}(i.Component),OI=function(e){return void 0===e&&(e=""),e.split(" ").filter(Boolean)};const AI=function(e,t,n){null!=e&&n!==t&&(null!=t&&t.length>0&&function(e,t){OI(t).forEach((function(t){_I.DomUtil.removeClass(e,t)}))}(e,t),null!=n&&n.length>0&&function(e,t){OI(t).forEach((function(t){_I.DomUtil.addClass(e,t)}))}(e,n))};function jI(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r-1};const ZI=function(e,t){var n=this.__data__,r=GI(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function JI(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ts))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,h=2&n?new oR:void 0;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991};var QR={};QR["[object Float32Array]"]=QR["[object Float64Array]"]=QR["[object Int8Array]"]=QR["[object Int16Array]"]=QR["[object Int32Array]"]=QR["[object Uint8Array]"]=QR["[object Uint8ClampedArray]"]=QR["[object Uint16Array]"]=QR["[object Uint32Array]"]=!0,QR["[object Arguments]"]=QR["[object Array]"]=QR["[object ArrayBuffer]"]=QR["[object Boolean]"]=QR["[object DataView]"]=QR["[object Date]"]=QR["[object Error]"]=QR["[object Function]"]=QR["[object Map]"]=QR["[object Number]"]=QR["[object Object]"]=QR["[object RegExp]"]=QR["[object Set]"]=QR["[object String]"]=QR["[object WeakMap]"]=!1;const UR=function(e){return CR(e)&&BR(e.length)&&!!QR[gL(e)]};const FR=function(e){return function(t){return e(t)}};var zR="object"==typeof exports&&exports&&!exports.nodeType&&exports,qR=zR&&"object"==typeof module&&module&&!module.nodeType&&module,HR=qR&&qR.exports===zR&&iL.process,WR=function(){try{var e=qR&&qR.require&&qR.require("util").types;return e||HR&&HR.binding&&HR.binding("util")}catch(t){}}();var GR=WR&&WR.isTypedArray;const VR=GR?FR(GR):UR;var $R=Object.prototype.hasOwnProperty;const KR=function(e,t){var n=gR(e),r=!n&&jR(e),i=!n&&!r&&NR(e),o=!n&&!r&&!i&&VR(e),a=n||r||i||o,s=a?TR(e.length,String):[],l=s.length;for(var c in e)!t&&!$R.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||MR(c,l))||s.push(c);return s};var YR=Object.prototype;const ZR=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||YR)};const JR=function(e,t){return function(n){return e(t(n))}};const XR=JR(Object.keys,Object);var eN=Object.prototype.hasOwnProperty;const tN=function(e){if(!ZR(e))return XR(e);var t=[];for(var n in Object(e))eN.call(e,n)&&"constructor"!=n&&t.push(n);return t};const nN=function(e){return null!=e&&BR(e.length)&&!bL(e)};const rN=function(e){return nN(e)?KR(e):tN(e)};const iN=function(e){return vR(e,rN,ER)};var oN=Object.prototype.hasOwnProperty;const aN=function(e,t,n,r,i,o){var a=1&n,s=iN(e),l=s.length;if(l!=iN(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:oN.call(t,u)))return!1}var d=o.get(e),p=o.get(t);if(d&&p)return d==t&&p==e;var h=!0;o.set(e,t),o.set(t,e);for(var f=a;++c{let{updateMap:t,mapData:n={},disabled:r,record:o}=e;const a=()=>{const e={...n,north:"",south:"",east:"",west:"",polygon:"",descriptionIdentifier:y_()};t(e)},[s,l]=(0,i.useState)(null),[,c]=(0,i.useState)(null),u=/-?\d+\.?\d+/,d=/-?\d+\.?\d+,\s*-?\d+\.?\d+\s*?/g;function p(e){Object.keys(e).length>1&&Object.keys(e).forEach((t=>{if(1===Object.keys(s.leafletElement._layers).length)return;const n=e[t];s.leafletElement.removeLayer(n)}))}function h(e){return r=>{p(s.leafletElement._layers);const i={...n,[e]:r.target.value};t(i)}}function f(e){let t=[...e.matchAll(d)].map((e=>e[0]));try{t=t.map((e=>e.split(",").map(Number)))}catch(gh){c({error:gh})}return t}function m(e){return Number.parseFloat(e).toPrecision(4)}const g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.polygon;return d.test(e)};xI().EditToolbar.Delete.include({enable(){this.options.featureGroup.clearLayers(),a()}});const v=Boolean(n.north||n.south||n.east||n.west),b=Boolean(n.polygon),y=!v&&!n.polygon;return(0,Ap.jsxs)("div",{children:[(0,Ap.jsxs)(LI,{style:{width:"100%",height:"55vh"},center:[50,-100],zoom:3,children:[(0,Ap.jsx)(DI,{attribution:'© OpenStreetMap contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),(0,Ap.jsxs)(FI,{ref:e=>{l(e)},children:[!1===r&&(0,Ap.jsx)(zN,{position:"topleft",onCreated:e=>{const{layer:r,layerType:i}=e;if(p(s.leafletElement._layers),"polygon"===i){const e=r.getLatLngs()[0].map((e=>{let{lat:t,lng:n}=e;return"".concat(m(t),",").concat(m(n))})),i=e.concat(e[0]).join(" "),o=r.getBounds();let{lat:a,lng:s}=o.getNorthEast(),{lat:l,lng:c}=o.getSouthWest();a=m(a),l=m(l),s=m(s),c=m(c);const u={...n,polygon:i,north:a,south:l,east:s,west:c};t(u)}else{const e=r.getBounds();let{lat:i,lng:o}=e.getNorthEast(),{lat:a,lng:s}=e.getSouthWest();i=m(i),a=m(a),o=m(o),s=m(s);const l={...n,north:i,south:a,east:o,west:s};t(l)}},onMapClear:a,draw:{marker:!1,circle:!1,polyline:!1,circlemarker:!1,polygon:!0},edit:{edit:!1}}),g()&&(0,Ap.jsx)(zI,{positions:f(n.polygon)}),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.north,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.south,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.east,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.west;return u.test(e)&&u.test(t)&&u.test(r)&&u.test(i)}()&&!g()&&(0,Ap.jsx)(qI,{bounds:[[n.north,n.east],[n.south,n.west]]})]})]}),(0,Ap.jsx)("br",{}),(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Bounding Box Coordinates"}),(0,Ap.jsx)(Ip,{children:"Coordonn\xe9es de d\xe9limitation - Est, Ouest, Nord, Sud"})]}),(v&&!b||y)&&(0,Ap.jsx)(ek,{passes:Mx(o,"map")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"If you are providing a bounding box, please provide the coordinates in decimal degrees (eg 58.66) and not in decimal minutes seconds."}),(0,Ap.jsxs)(Ip,{children:["Si vous fournissez des coordonn\xe9es de d\xe9limitation, veuillez les fournir en ",(0,Ap.jsx)("b",{children:"degr\xe9s d\xe9cimaux"}),"."]})]})})]}),(0,Ap.jsxs)(e_,{container:!0,direction:"row",spacing:3,children:[(0,Ap.jsx)(e_,{item:!0,xs:2,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"North",fr:"Nord"}),value:n.north||"",inputProps:{inputMode:"numeric",pattern:"[0-9]*"},onChange:h("north"),type:"number",disabled:r||Boolean(n.polygon)})}),(0,Ap.jsx)(e_,{item:!0,xs:2,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"South",fr:"Sud"}),value:n.south||"",onChange:h("south"),type:"number",disabled:r||Boolean(n.polygon)})}),(0,Ap.jsx)(e_,{item:!0,xs:2,children:(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"East",fr:"Est"}),value:n.east||"",onChange:h("east"),type:"number",disabled:r||Boolean(n.polygon)})}),(0,Ap.jsx)(e_,{item:!0,xs:2,children:(0,Ap.jsx)(CC,{value:n.west||"",label:(0,Ap.jsx)(Lp,{en:"West",fr:"Ouest"}),onChange:h("west"),type:"number",disabled:r||Boolean(n.polygon)})})]}),(0,Ap.jsx)(Or,{variant:"h6",style:{margin:"20px",marginLeft:"20%"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"OR"}),(0,Ap.jsx)(Ip,{children:"Ou"})]})}),(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Polygon coordinates"}),(0,Ap.jsx)(Ip,{children:"Coordonn\xe9es du/des polygone(s)"})]}),(b||y)&&(0,Ap.jsx)(ek,{passes:Mx(o,"map")}),(0,Ap.jsxs)($C,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"If you are providing polygon coordinates, they must start and end with the same point. Eg,"}),(0,Ap.jsx)(Ip,{children:"Doivent commencer et se terminer par le m\xeame point. Par exemple,"})]})," ","48,-128 56,-133 56,-147 48,-128"]})]}),(0,Ap.jsx)(CC,{value:n.polygon||"",onChange:e=>{s&&p(s.leafletElement._layers);const r={...n,polygon:e.target.value,north:"",south:"",east:"",west:""};try{const t=xI().latLngBounds(f(e.target.value)),{lat:n,lng:i}=t.getNorthEast(),{lat:o,lng:a}=t.getSouthWest();r.north=m(n),r.south=m(o),r.east=m(i),r.west=m(a)}catch(i){}t(r)},type:"text",fullWidth:!0,disabled:r||v&&!b}),(0,Ap.jsx)(Or,{variant:"h6",style:{margin:"20px",marginLeft:"20%"},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"And optionally"}),(0,Ap.jsx)(Ip,{children:"Et en option"})]})}),(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Describe the Geographic Extent of the dataset. Required for Biological datasets"}),(0,Ap.jsx)(Ip,{children:"D\xe9crivez l'\xe9tendue g\xe9ographique de l'ensemble de donn\xe9es. Obligatoire pour les ensembles de donn\xe9es biologiques"})]}),o.resourceType&&o.resourceType.includes("biological")&&(0,Ap.jsx)(ek,{passes:Boolean(n.description)}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:(0,Ap.jsx)("p",{children:"Optionally you can include a text description of the geographic area covered by this dataset or study. This field is required when filling out biological datasets but is optional for all other dataset types."})}),(0,Ap.jsx)(Ip,{children:(0,Ap.jsx)("p",{children:"Vous pouvez \xe9ventuellement inclure une description textuelle de la zone g\xe9ographique. zone couverte par cet ensemble de donn\xe9es ou cette \xe9tude. Ce champ est obligatoire lors du remplissage d'ensembles de donn\xe9es biologiques, mais est facultatif pour tous d\u2019autres types d\u2019ensembles de donn\xe9es."})})]})})]}),(0,Ap.jsx)(qC,{value:n.description,onChange:function(e){return r=>{const i={...n,[e]:r.target.value};t(i)}}("description"),name:"description",disabled:r})]})})),HN=e=>{let{url:t}=e;return(0,Ap.jsx)(Cr,{onClick:()=>{window.open(t,"_blank").focus()},children:(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Open EPSG definition in new window",fr:"Ouvrir la d\xe9finition EPSG dans une nouvelle fen\xeatre"}),children:(0,Ap.jsx)(lx,{})})})},WN=e=>{let{disabled:t,record:n,handleUpdateRecord:r,updateRecord:i}=e;const{language:o}=mn(),a=n.noVerticalExtent&&"false"!==n.noVerticalExtent;return(0,Ap.jsxs)(e_,{children:[(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{style:{paddingBottom:"15px"},children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the spatial extent of the dataset?"}),(0,Ap.jsx)(Ip,{children:"Quelle est l'\xe9tendue g\xe9ographique du jeu de donn\xe9es?"})]}),(0,Ap.jsxs)($C,{children:[(0,Ap.jsx)("div",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You can draw a bounding box or polygon for the dataset using the Polygon or Box buttons at the left side of them form. Alternatively you can enter them using the fields below. Either a bounding box or a Polygon is required."}),(0,Ap.jsx)(Ip,{children:"Vous pouvez tracer un cadre ou un polygone pour situer g\xe9ographiquement votre jeu de donn\xe9es. Vous pouvez aussi localiser l\u2019aire g\xe9ographique couverte par votre jeu de donn\xe9es en inscrivant les coordonn\xe9es g\xe9ographiques (degr\xe9s d\xe9cimaux) dans les champs apparaissant sous la carte. Cette section doit obligatoirement \xeatre compl\xe9t\xe9e."})]})}),(0,Ap.jsx)("br",{}),(0,Ap.jsx)("div",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Define the geographical area using the tool that meets the geographic distribution of your data. Broadly distributed data in the open ocean might be well served by a bounding box. Tightly clustered coastal data may benefit from a polygon that does not include terrain or unsampled area."}),(0,Ap.jsx)(Ip,{children:"D\xe9finissez la zone g\xe9ographique \xe0 l'aide de l'outil qui correspond \xe0 la distribution g\xe9ographique de vos donn\xe9es. Les donn\xe9es largement distribu\xe9es en haute mer peuvent \xeatre bien desservies par un cadre englobant. Les donn\xe9es c\xf4ti\xe8res \xe9troitement regroup\xe9es peuvent b\xe9n\xe9ficier d'un polygone qui n'inclut pas le terrain ou la zone non \xe9chantillonn\xe9e."})]})})]})]}),(0,Ap.jsx)(qN,{mapData:n.map,updateMap:i("map"),handleUpdateMap:r("map"),disabled:t,record:n})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the vertical extent of the dataset in meters?"}),(0,Ap.jsx)(Ip,{children:"Quelle est l'\xe9tendue verticale du jeu de donn\xe9es en m\xe8tres?"})]}),(0,Ap.jsx)(ek,{passes:Mx(n,"verticalExtentDirection")&&Mx(n,"verticalExtentMin")&&Mx(n,"verticalExtentMax")}),(0,Ap.jsxs)($C,{children:[(0,Ap.jsx)("div",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"This captures the minimum and maximum depths (or height from sea floor) where the instrument recorded data."}),(0,Ap.jsx)(Ip,{children:"Cela permet de capturer les profondeurs minimales et maximales (ou la hauteur du fond marin) o\xf9 l'instrument a enregistr\xe9 des donn\xe9es."})]})}),(0,Ap.jsxs)("div",{style:{paddingTop:"5px"},children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Depth positive: Depth is recorded with positive values (i.e. a maximum value of 150m implies 150m below the water surface)."}),(0,Ap.jsx)(Ip,{children:"Profondeur positive: La profondeur est enregistr\xe9e avec des valeurs positives (c\u2019est-\xe0-dire qu\u2019une valeur maximale de 150 m indique que les enregistrements ont \xe9t\xe9 effectu\xe9s \xe0 un maximum de 150 m au-dessous de la surface)."})]}),(0,Ap.jsx)(HN,{url:"https://epsg.io/5831"})]}),(0,Ap.jsxs)("div",{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Height Positive: Height is the elevation from water surface (i.e. a maximum value of 150m implies 150m above the water surface)."}),(0,Ap.jsx)(Ip,{children:"Hauteur positive: La hauteur est l'altitude par rapport \xe0 la surface de l'eau (c'est-\xe0-dire qu'une valeur maximale de 150 m implique 150 m au-dessus de la surface de l'eau)."})]}),(0,Ap.jsx)(HN,{url:"https://epsg.io/5829"})]})]})]}),(0,Ap.jsx)(AC,{disabled:t,control:(0,Ap.jsx)(QC,{name:"noVerticalExtent",checked:a,onChange:e=>{const{checked:t}=e.target;i("noVerticalExtent")(t)}}),label:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"This dataset does not have a depth or height, value will be set to zero"}),(0,Ap.jsx)(Ip,{children:"Cet ensemble de donn\xe9es n'a ni profondeur ni hauteur, la valeur sera d\xe9finie sur z\xe9ro"})]})}),a?"":(0,Ap.jsxs)(e_,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",spacing:4,children:[(0,Ap.jsxs)(e_,{item:!0,xs:5,children:[(0,Ap.jsx)(Ek,{value:n.verticalExtentDirection||"",onChange:r("verticalExtentDirection"),options:Object.keys(rk),optionLabels:Object.values(rk).map((e=>e[o])),disabled:t}),(0,Ap.jsx)("p",{children:"OR"}),(0,Ap.jsx)(CC,{value:n.verticalExtentEPSG,onChange:r("verticalExtentEPSG"),label:"EPSG code",fullWidth:!0,type:"number",disabled:t})]}),(0,Ap.jsx)(e_,{item:!0,xs:2,children:(0,Ap.jsx)(CC,{value:n.verticalExtentMin,onChange:r("verticalExtentMin"),label:"Min",fullWidth:!0,type:"number",disabled:t})}),(0,Ap.jsx)(e_,{item:!0,xs:2,children:(0,Ap.jsx)(CC,{value:n.verticalExtentMax,onChange:r("verticalExtentMax"),label:"Max",fullWidth:!0,type:"number",disabled:t})})]})]})]})},GN={start:{en:"Start",fr:"Accueil"},dataID:{en:"Resource Identification",fr:"Identification des ressources"},taxa:{en:"Taxonomic Classification",fr:"Classification Taxonomique"},spatial:{en:"Spatial",fr:"Spatial"},contacts:{en:"Contacts",fr:"Contacts"},resources:{en:"Data and Documentation",fr:"Donn\xe9es et documentation"},relatedworks:{en:"Related Works",fr:"Travaux connexes"},platform:{en:"Platform",fr:"Plateforme"},platformInstruments:{en:"Platform - instruments",fr:"Plateforme - instruments"},lineage:{en:"Lineage",fr:"lign\xe9e"}};const VN=function(){const{region:e}=mn();return Cn[e]},$N=e=>{let{record:t,submitRecord:n,userID:r,doiUpdated:o,doiError:a}=e;const s=(0,i.useRef)(!1),[l,c]=(0,i.useState)(!1),[u,d]=(0,i.useState)(!1),[p,h]=(0,i.useState)(!1),{language:f}=mn(),m=(e=>{const t=Object.keys(Dx).filter((t=>!Mx(e,t))).map((e=>{const{error:t,tab:n}=Dx[e];return{error:t,tab:n}}));return t.reduce(((e,t)=>{let{error:n,tab:r}=t;return e[r]||(e[r]=[]),e[r].push(n),e}),{})})(t),g="submitted"===t.status,v=VN();return(0,i.useEffect)((()=>{s.current=!0,r===t.userID&&h(!0);return(async e=>{const t=Object.keys(Bx),n=t.map((t=>(async(e,t)=>{const n=e[t],r=Bx[t]&&Bx[t].validation||(()=>!0),i=await r(n,e);return r&&i})(e,t))),r=await Promise.all(n),i=t.reduce(((e,t,n)=>(e[t]=r[n],e)),{}),o=t.filter((e=>i[e])).map((e=>{const{error:t,tab:n}=Bx[e];return{error:t,tab:n}})),a=o.reduce(((e,t)=>{let{error:n,tab:r}=t;return e[r]||(e[r]=[]),e[r].push(n),e}),{});s.current&&d(a)})(t),()=>{s.current=!1}}),[t,r]),(0,Ap.jsx)(Xn,{style:ZC,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:3,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsxs)(Or,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["Thank-you for completing this form. The information will be reviewed and a ",v.title.en," staff member will contact you to request more information or provide an update on when your dataset will be available through the"," ",v.catalogueTitle.en,". Your information will not be published before you are contacted. If you have any questions or would like to follow up on the status of your record, please contact"]}),(0,Ap.jsxs)(Ip,{children:["Merci d'avoir rempli ce formulaire. L'information sera valid\xe9e par un membre du personnel ",v.titleFrPossessive,". Cette personne pourrait vous contacter pour obtenir plus d'informations ou pour vous indiquer quand votre jeu de donn\xe9es sera disponible dans notre ",v.catalogueTitle.fr,". Vos informations ne seront pas publi\xe9es avant d'obtenir votre approbation. Si vous avez des questions ou si vous d\xe9sirez effectuer un suivi concernant l'\xe9tat de votre soumission, veuillez contacte"]})]})," ",(0,Ap.jsx)("a",{href:"mailto:".concat(v.email),children:v.email}),"."]})}),g?(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Thank you for your submission. A reviewer has been notified. You will receive an email when the record is published. You are still able to edit this record by saving it, until it is published."}),(0,Ap.jsx)(Ip,{children:"Merci pour votre soumission. Un examinateur a \xe9t\xe9 avis\xe9. Vous recevrez un e-mail lors de la publication de l'enregistrement. Vous pouvez toujours modifier cet enregistrement en l'enregistrant, jusqu'\xe0 ce qu'il soit publi\xe9."})]})}),o&&(0,Ap.jsx)(Or,{children:(0,Ap.jsx)("b",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"DOI has successfully been updated with the submitted changes."}),(0,Ap.jsx)(Ip,{children:"DOI a \xe9t\xe9 mis \xe0 jour avec succ\xe8s avec les modifications soumises."})]})})}),a&&(0,Ap.jsx)(Or,{children:(0,Ap.jsx)("b",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Error occurred when updating DOI."}),(0,Ap.jsx)(Ip,{children:"Une erreur s'est produite lors de la mise \xe0 jour du DOI"})]})})})]}):(0,Ap.jsxs)(Ap.Fragment,{children:[Ux(t)?(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You have completed all of the required fields, your record can be submitted now."}),(0,Ap.jsx)(Ip,{children:"Vous avez rempli tous les champs obligatoires, vous pouvez maintenant soumettre votre formulaire."})]})})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[l&&(0,Ap.jsx)(r_,{}),!l&&p&&(0,Ap.jsx)(c_,{onClick:()=>{c(!0),n().then((()=>{c(!1)}))},disabled:g,children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Submit"}),(0,Ap.jsx)(Ip,{children:"Soumettre"})]})})]})]}):(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Errors"}),(0,Ap.jsx)(Ip,{children:"Erreurs"})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You haven't completed all of the required fields. You will need to address the list below before submitting."}),(0,Ap.jsx)(Ip,{children:"Vous n'avez pas rempli tous les champs obligatoires. Veuillez compl\xe9ter les champs identifi\xe9s ci-dessous avant de soumettre votre demande."})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:Object.keys(m).map((e=>(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{variant:"h6",children:GN[e][f]}),(0,Ap.jsx)(ki,{children:m[e].map(((e,t)=>{let{[f]:n}=e;return(0,Ap.jsx)(ko,{children:(0,Ap.jsx)(Yo,{primary:n})},t)}))})]},e)))})]}),u&&Object.keys(u).length>0?(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Warnings"}),(0,Ap.jsx)(Ip,{children:"Avertissements"})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Some warnings were generated for the following fields. Please review and fix the warnings as needed befor submitting the record."}),(0,Ap.jsx)(Ip,{children:"Certains avertissements ont \xe9t\xe9 g\xe9n\xe9r\xe9s pour les champs suivants. Veuillez examiner et corriger les avertissements si n\xe9cessaire avant de soumettre l'enregistrement."})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:Object.keys(u).map((e=>(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{variant:"h6",children:GN[e][f]}),(0,Ap.jsx)(ki,{children:u[e].map(((e,t)=>{let{[f]:n}=e;return(0,Ap.jsx)(ko,{children:(0,Ap.jsx)(Yo,{primary:n})},t)}))})]},e)))})]}):" "]})]})})};var KN=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,a=void 0===o?"div":o,s=(0,Yn.c)(e,["classes","className","component"]);return i.createElement(a,(0,at.c)({ref:t,className:(0,kn.c)(n.root,r)},s))}));const YN=(0,Gn.c)({root:{width:"100%",overflowX:"auto"}},{name:"MuiTableContainer"})(KN);const ZN=i.createContext();var JN="table",XN=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,a=void 0===o?JN:o,s=e.padding,l=void 0===s?"normal":s,c=e.size,u=void 0===c?"medium":c,d=e.stickyHeader,p=void 0!==d&&d,h=(0,Yn.c)(e,["classes","className","component","padding","size","stickyHeader"]),f=i.useMemo((function(){return{padding:l,size:u,stickyHeader:p}}),[l,u,p]);return i.createElement(ZN.Provider,{value:f},i.createElement(a,(0,at.c)({role:a===JN?null:"table",ref:t,className:(0,kn.c)(n.root,r,p&&n.stickyHeader)},h)))}));const eD=(0,Gn.c)((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,at.c)({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(XN);const tD=i.createContext();var nD={variant:"body"},rD="tbody",iD=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,a=void 0===o?rD:o,s=(0,Yn.c)(e,["classes","className","component"]);return i.createElement(tD.Provider,{value:nD},i.createElement(a,(0,at.c)({className:(0,kn.c)(n.root,r),ref:t,role:a===rD?null:"rowgroup"},s)))}));const oD=(0,Gn.c)({root:{display:"table-row-group"}},{name:"MuiTableBody"})(iD);var aD=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,a=void 0===o?"tr":o,s=e.hover,l=void 0!==s&&s,c=e.selected,u=void 0!==c&&c,d=(0,Yn.c)(e,["classes","className","component","hover","selected"]),p=i.useContext(tD);return i.createElement(a,(0,at.c)({ref:t,className:(0,kn.c)(n.root,r,p&&{head:n.head,footer:n.footer}[p.variant],l&&n.hover,u&&n.selected),role:"tr"===a?null:"row"},d))}));const sD=(0,Gn.c)((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$hover:hover":{backgroundColor:e.palette.action.hover},"&$selected, &$selected:hover":{backgroundColor:(0,or.W4)(e.palette.secondary.main,e.palette.action.selectedOpacity)}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(aD);var lD=i.forwardRef((function(e,t){var n,r,o=e.align,a=void 0===o?"inherit":o,s=e.classes,l=e.className,c=e.component,u=e.padding,d=e.scope,p=e.size,h=e.sortDirection,f=e.variant,m=(0,Yn.c)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),g=i.useContext(ZN),v=i.useContext(tD),b=v&&"head"===v.variant;c?(r=c,n=b?"columnheader":"cell"):r=b?"th":"td";var y=d;!y&&b&&(y="col");var _=u||(g&&g.padding?g.padding:"normal"),x=p||(g&&g.size?g.size:"medium"),w=f||v&&v.variant,E=null;return h&&(E="asc"===h?"ascending":"descending"),i.createElement(r,(0,at.c)({ref:t,className:(0,kn.c)(s.root,s[w],l,"inherit"!==a&&s["align".concat((0,Zn.c)(a))],"normal"!==_&&s["padding".concat((0,Zn.c)(_))],"medium"!==x&&s["size".concat((0,Zn.c)(x))],"head"===w&&g&&g.stickyHeader&&s.stickyHeader),"aria-sort":E,role:n,scope:y},m))}));const cD=(0,Gn.c)((function(e){return{root:(0,at.c)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?(0,or.IV)((0,or.W4)(e.palette.divider,1),.88):(0,or.sP)((0,or.W4)(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(lD);function uD(e,t){return function(){return e.apply(t,arguments)}}const{toString:dD}=Object.prototype,{getPrototypeOf:pD}=Object,hD=(e=>t=>{const n=dD.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),fD=e=>(e=e.toLowerCase(),t=>hD(t)===e),mD=e=>t=>typeof t===e,{isArray:gD}=Array,vD=mD("undefined");const bD=fD("ArrayBuffer");const yD=mD("string"),_D=mD("function"),xD=mD("number"),wD=e=>null!==e&&"object"===typeof e,ED=e=>{if("object"!==hD(e))return!1;const t=pD(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},TD=fD("Date"),CD=fD("File"),kD=fD("Blob"),SD=fD("FileList"),OD=fD("URLSearchParams");function AD(e,t){let n,r,{allOwnKeys:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),gD(e))for(n=0,r=e.length;n0;)if(r=n[i],t===r.toLowerCase())return r;return null}const PD="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,ID=e=>!vD(e)&&e!==PD;const LD=(RD="undefined"!==typeof Uint8Array&&pD(Uint8Array),e=>RD&&e instanceof RD);var RD;const ND=fD("HTMLFormElement"),DD=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),MD=fD("RegExp"),BD=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};AD(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},QD="abcdefghijklmnopqrstuvwxyz",UD="0123456789",FD={DIGIT:UD,ALPHA:QD,ALPHA_DIGIT:QD+QD.toUpperCase()+UD};const zD=fD("AsyncFunction"),qD={isArray:gD,isArrayBuffer:bD,isBuffer:function(e){return null!==e&&!vD(e)&&null!==e.constructor&&!vD(e.constructor)&&_D(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||_D(e.append)&&("formdata"===(t=hD(e))||"object"===t&&_D(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&bD(e.buffer),t},isString:yD,isNumber:xD,isBoolean:e=>!0===e||!1===e,isObject:wD,isPlainObject:ED,isUndefined:vD,isDate:TD,isFile:CD,isBlob:kD,isRegExp:MD,isFunction:_D,isStream:e=>wD(e)&&_D(e.pipe),isURLSearchParams:OD,isTypedArray:LD,isFileList:SD,forEach:AD,merge:function e(){const{caseless:t}=ID(this)&&this||{},n={},r=(r,i)=>{const o=t&&jD(n,i)||i;ED(n[o])&&ED(r)?n[o]=e(n[o],r):ED(r)?n[o]=e({},r):gD(r)?n[o]=r.slice():n[o]=r};for(let i=0,o=arguments.length;i3&&void 0!==arguments[3]?arguments[3]:{};return AD(t,((t,r)=>{n&&_D(t)?e[r]=uD(t,n):e[r]=t}),{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&pD(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:hD,kindOfTest:fD,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(gD(e))return e;let t=e.length;if(!xD(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:ND,hasOwnProperty:DD,hasOwnProp:DD,reduceDescriptors:BD,freezeMethods:e=>{BD(e,((t,n)=>{if(_D(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];_D(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return gD(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:jD,global:PD,isContextDefined:ID,ALPHABET:FD,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:FD.ALPHA_DIGIT,n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&_D(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(wD(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=gD(e)?[]:{};return AD(e,((e,t)=>{const o=n(e,r+1);!vD(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:zD,isThenable:e=>e&&(wD(e)||_D(e))&&_D(e.then)&&_D(e.catch)};function HD(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}qD.inherits(HD,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:qD.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const WD=HD.prototype,GD={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{GD[e]={value:e}})),Object.defineProperties(HD,GD),Object.defineProperty(WD,"isAxiosError",{value:!0}),HD.from=(e,t,n,r,i,o)=>{const a=Object.create(WD);return qD.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),HD.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const VD=HD;function $D(e){return qD.isPlainObject(e)||qD.isArray(e)}function KD(e){return qD.endsWith(e,"[]")?e.slice(0,-2):e}function YD(e,t,n){return e?e.concat(t).map((function(e,t){return e=KD(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ZD=qD.toFlatObject(qD,{},null,(function(e){return/^is[A-Z]/.test(e)}));const JD=function(e,t,n){if(!qD.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=qD.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!qD.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&qD.isSpecCompliantForm(t);if(!qD.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(qD.isDate(e))return e.toISOString();if(!s&&qD.isBlob(e))throw new VD("Blob is not supported. Use a Buffer instead.");return qD.isArrayBuffer(e)||qD.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let s=e;if(e&&!i&&"object"===typeof e)if(qD.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(qD.isArray(e)&&function(e){return qD.isArray(e)&&!e.some($D)}(e)||(qD.isFileList(e)||qD.endsWith(n,"[]"))&&(s=qD.toArray(e)))return n=KD(n),s.forEach((function(e,r){!qD.isUndefined(e)&&null!==e&&t.append(!0===a?YD([n],r,o):null===a?n:n+"[]",l(e))})),!1;return!!$D(e)||(t.append(YD(i,n,o),l(e)),!1)}const u=[],d=Object.assign(ZD,{defaultVisitor:c,convertValue:l,isVisitable:$D});if(!qD.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!qD.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),qD.forEach(n,(function(n,o){!0===(!(qD.isUndefined(n)||null===n)&&i.call(t,n,qD.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t};function XD(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function eM(e,t){this._pairs=[],e&&JD(e,this,t)}const tM=eM.prototype;tM.append=function(e,t){this._pairs.push([e,t])},tM.toString=function(e){const t=e?function(t){return e.call(this,t,XD)}:XD;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const nM=eM;function rM(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function iM(e,t,n){if(!t)return e;const r=n&&n.encode||rM,i=n&&n.serialize;let o;if(o=i?i(t,n):qD.isURLSearchParams(t)?t.toString():new nM(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const oM=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){qD.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},aM={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sM={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:nM,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},lM="undefined"!==typeof window&&"undefined"!==typeof document,cM=(uM="undefined"!==typeof navigator&&navigator.product,lM&&["ReactNative","NativeScript","NS"].indexOf(uM)<0);var uM;const dM="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,pM={...t,...sM};const hM=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&qD.isArray(r)?r.length:o,s)return qD.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&qD.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],i)&&qD.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r{t(function(e){return qD.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const fM={transitional:aM,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=qD.isObject(e);i&&qD.isHTMLForm(e)&&(e=new FormData(e));if(qD.isFormData(e))return r?JSON.stringify(hM(e)):e;if(qD.isArrayBuffer(e)||qD.isBuffer(e)||qD.isStream(e)||qD.isFile(e)||qD.isBlob(e))return e;if(qD.isArrayBufferView(e))return e.buffer;if(qD.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return JD(e,new pM.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return pM.isNode&&qD.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=qD.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return JD(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(qD.isString(e))try{return(t||JSON.parse)(e),qD.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||fM.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&qD.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(i){if(n){if("SyntaxError"===i.name)throw VD.from(i,VD.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pM.classes.FormData,Blob:pM.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qD.forEach(["delete","get","head","post","put","patch"],(e=>{fM.headers[e]={}}));const mM=fM,gM=qD.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),vM=Symbol("internals");function bM(e){return e&&String(e).trim().toLowerCase()}function yM(e){return!1===e||null==e?e:qD.isArray(e)?e.map(yM):String(e)}function _M(e,t,n,r,i){return qD.isFunction(r)?r.call(this,t,n):(i&&(t=n),qD.isString(t)?qD.isString(r)?-1!==t.indexOf(r):qD.isRegExp(r)?r.test(t):void 0:void 0)}class xM{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=bM(t);if(!i)throw new Error("header name must be a non-empty string");const o=qD.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=yM(e))}const o=(e,t)=>qD.forEach(e,((e,n)=>i(e,n,t)));return qD.isPlainObject(e)||e instanceof this.constructor?o(e,t):qD.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&gM[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&i(t,e,n),this}get(e,t){if(e=bM(e)){const n=qD.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(qD.isFunction(t))return t.call(this,e,n);if(qD.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=bM(e)){const n=qD.findKey(this,e);return!(!n||void 0===this[n]||t&&!_M(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=bM(e)){const i=qD.findKey(n,e);!i||t&&!_M(0,n[i],i,t)||(delete n[i],r=!0)}}return qD.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!_M(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return qD.forEach(this,((r,i)=>{const o=qD.findKey(n,i);if(o)return t[o]=yM(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=yM(r),n[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n{null!=n&&!1!==n&&(t[r]=e&&qD.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;it.set(e))),t}static accessor(e){const t=(this[vM]=this[vM]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=bM(e);t[r]||(!function(e,t){const n=qD.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return qD.isArray(e)?e.forEach(r):r(e),this}}xM.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),qD.reduceDescriptors(xM.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),qD.freezeMethods(xM);const wM=xM;function EM(e,t){const n=this||mM,r=t||n,i=wM.from(r.headers);let o=r.data;return qD.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function TM(e){return!(!e||!e.__CANCEL__)}function CM(e,t,n){VD.call(this,null==e?"canceled":e,VD.ERR_CANCELED,t,n),this.name="CanceledError"}qD.inherits(CM,VD,{__CANCEL__:!0});const kM=CM;const SM=pM.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];qD.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),qD.isString(r)&&a.push("path="+r),qD.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function OM(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const AM=pM.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=qD.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};const jM=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];i||(i=l),n[o]=s,r[o]=l;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s);n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const IM="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const i=wM.from(e.headers).normalize();let o,a,{responseType:s,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(qD.isFormData(r))if(pM.hasStandardBrowserEnv||pM.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if(!1!==(a=i.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+n))}const d=OM(e.baseURL,e.url);function p(){if(!u)return;const r=wM.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new VD("Request failed with status code "+n.status,[VD.ERR_BAD_REQUEST,VD.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),iM(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(p)},u.onabort=function(){u&&(n(new VD("Request aborted",VD.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new VD("Network Error",VD.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||aM;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new VD(t,r.clarifyTimeoutError?VD.ETIMEDOUT:VD.ECONNABORTED,e,u)),u=null},pM.hasStandardBrowserEnv&&(l&&qD.isFunction(l)&&(l=l(e)),l||!1!==l&&AM(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&SM.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===r&&i.setContentType(null),"setRequestHeader"in u&&qD.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),qD.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&u.addEventListener("progress",PM(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",PM(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{u&&(n(!t||t.type?new kM(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const h=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);h&&-1===pM.protocols.indexOf(h)?n(new VD("Unsupported protocol "+h+":",VD.ERR_BAD_REQUEST,e)):u.send(r||null)}))},LM={http:null,xhr:IM};qD.forEach(LM,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const RM=e=>"- ".concat(e),NM=e=>qD.isFunction(e)||null===e||!1===e,DM=e=>{e=qD.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o{let[t,n]=e;return"adapter ".concat(t," ")+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(RM).join("\n"):" "+RM(e[0]):"as no adapter specified";throw new VD("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function MM(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kM(null,e)}function BM(e){MM(e),e.headers=wM.from(e.headers),e.data=EM.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return DM(e.adapter||mM.adapter)(e).then((function(t){return MM(e),t.data=EM.call(e,e.transformResponse,t),t.headers=wM.from(t.headers),t}),(function(t){return TM(t)||(MM(e),t&&t.response&&(t.response.data=EM.call(e,e.transformResponse,t.response),t.response.headers=wM.from(t.response.headers))),Promise.reject(t)}))}const QM=e=>e instanceof wM?e.toJSON():e;function UM(e,t){t=t||{};const n={};function r(e,t,n){return qD.isPlainObject(e)&&qD.isPlainObject(t)?qD.merge.call({caseless:n},e,t):qD.isPlainObject(t)?qD.merge({},t):qD.isArray(t)?t.slice():t}function i(e,t,n){return qD.isUndefined(t)?qD.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!qD.isUndefined(t))return r(void 0,t)}function a(e,t){return qD.isUndefined(t)?qD.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(QM(e),QM(t),!0)};return qD.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=l[r]||i,a=o(e[r],t[r],r);qD.isUndefined(a)&&o!==s||(n[r]=a)})),n}const FM="1.6.7",zM={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{zM[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const qM={};zM.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new VD(r(i," has been removed"+(t?" in "+t:"")),VD.ERR_DEPRECATED);return t&&!qM[i]&&(qM[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};const HM={assertOptions:function(e,t,n){if("object"!==typeof e)throw new VD("options must be an object",VD.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new VD("option "+o+" must be "+n,VD.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new VD("Unknown option "+o,VD.ERR_BAD_OPTION)}},validators:zM},WM=HM.validators;class GM{constructor(e){this.defaults=e,this.interceptors={request:new oM,response:new oM}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=UM(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&HM.assertOptions(n,{silentJSONParsing:WM.transitional(WM.boolean),forcedJSONParsing:WM.transitional(WM.boolean),clarifyTimeoutError:WM.transitional(WM.boolean)},!1),null!=r&&(qD.isFunction(r)?t.paramsSerializer={serialize:r}:HM.assertOptions(r,{encode:WM.function,serialize:WM.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&qD.merge(i.common,i[t.method]);i&&qD.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=wM.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[BM.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new kM(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new $M((function(t){e=t}));return{token:t,cancel:e}}}const KM=$M;const YM={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(YM).forEach((e=>{let[t,n]=e;YM[n]=t}));const ZM=YM;const JM=function e(t){const n=new VM(t),r=uD(VM.prototype.request,n);return qD.extend(r,VM.prototype,n,{allOwnKeys:!0}),qD.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(UM(t,n))},r}(mM);JM.Axios=VM,JM.CanceledError=kM,JM.CancelToken=KM,JM.isCancel=TM,JM.VERSION=FM,JM.toFormData=JD,JM.AxiosError=VD,JM.Cancel=JM.CanceledError,JM.all=function(e){return Promise.all(e)},JM.spread=function(e){return function(t){return e.apply(null,t)}},JM.isAxiosError=function(e){return qD.isObject(e)&&!0===e.isAxiosError},JM.mergeConfig=UM,JM.AxiosHeaders=wM,JM.formToJSON=e=>hM(qD.isHTMLForm(e)?new FormData(e):e),JM.getAdapter=DM,JM.HttpStatusCode=ZM,JM.default=JM;const XM=JM,eB=e=>{let{record:t,updateRecord:n,disabled:r}=e;const{taxa:o=[]}=t,a=n("taxa"),[s,l]=(0,i.useState)(0),[c,u]=(0,i.useState)(""),[d,p]=(0,i.useState)(""),[h,f]=(0,i.useState)([]),m=(0,i.useRef)(!1),g=(0,i.useRef)(!1),[v,b]=(0,i.useState)(o);x_(v,o)||b(o);const y=HC((e=>{const t={method:"get",url:"https://api.gbif.org/v1/species/suggest",params:{q:e}};g.current=!0,XM(t).then((e=>{m.current&&f([...e.data]),g.current=!1})).catch((e=>{console.error(e),g.current=!1}))}),500);(0,i.useEffect)((()=>(m.current=!0,c.length>2&&!d&&!g.current&&y(c),()=>{m.current=!1})),[c,d,y]);const _=t.noTaxa&&"false"!==t.noTaxa;return(0,Ap.jsxs)(e_,{children:[(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsx)(Pp,{children:"Taxonomic Coverage"}),(0,Ap.jsx)(Ip,{children:"Couverture taxonomique"}),(0,Ap.jsx)(ek,{passes:Mx(t,"taxa")}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Please enter the metadata about the taxonomic areas covered by the resource."}),(0,Ap.jsx)(Ip,{children:"Veuillez saisir les m\xe9tadonn\xe9es sur les domaines taxonomiques couverts par la ressource."})]})})]}),(0,Ap.jsx)(AC,{disabled:r,control:(0,Ap.jsx)(QC,{name:"noTaxa",checked:t.noTaxa,onChange:e=>{const{checked:t}=e.target;n("noTaxa")(t)}}),label:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"This dataset does not contain any taxonomic classification"}),(0,Ap.jsx)(Ip,{children:"Cet ensemble de donn\xe9es ne contient aucune classification taxonomique"})]})})]}),_?"":(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsx)(e_,{container:!0,direction:"column",spacing:0,children:(0,Ap.jsx)(_k,{inputValue:c,onInputChange:(e,t)=>{u(t)},getOptionLabel:e=>{var t;return null!==(t=e.scientificName&&"".concat(e.scientificName," (").concat(e.canonicalName,")"))&&void 0!==t?t:e},disabled:r,loading:!g.current,onChange:(e,t)=>{"object"===typeof t&&p(t)},value:d,freeSolo:!0,options:h,fullWidth:!0,renderInput:e=>(0,Ap.jsx)(CC,{...e,label:"GBIF taxa Search"})})}),(0,Ap.jsx)(e_,{item:!0,xs:3,children:(0,Ap.jsx)(c_,{disabled:r||!d&&!c,startIcon:(0,Ap.jsx)(dI,{}),onClick:()=>{d&&(a(o.concat(d)),l(o.length),p(""),u(""))},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add"}),(0,Ap.jsx)(Ip,{children:"Ajouter"})]})})}),(0,Ap.jsxs)(e_,{container:!0,direction:"row",children:[(0,Ap.jsxs)(e_,{item:!0,xs:5,children:[(0,Ap.jsx)(e_,{style:{margin:"10px"},children:(0,Ap.jsx)(Or,{variant:"h6",children:"Taxa"})}),(0,Ap.jsx)(QT,{border:1,borderRadius:"4px",borderColor:"#ababab",margin:"10px",children:(0,Ap.jsx)(ki,{children:(0,Ap.jsx)(Wk.Container,{lockAxis:"y",onDrop:e=>function(e){let{removedIndex:t,addedIndex:n}=e;t===s?l(n):n<=s&&t>s&&l(s+1);const r=$k()(v,t,n);a(r)}(e),children:o.map(((e,t)=>(0,Ap.jsx)(Wk.Draggable,{children:(0,Ap.jsxs)(ko,{button:!0,onClick:()=>l(t),children:[(0,Ap.jsx)(Yo,{primary:(0,Ap.jsx)(Or,{style:{fontWeight:s===t?"bold":"",width:"80%"},children:e&&"".concat(e.scientificName," (").concat(e.canonicalName,")")})}),(0,Ap.jsx)(X_,{children:(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Remove from this record",fr:"Supprimer de cet enregistrement"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>{return e=t,a(o.filter(((t,n)=>n!==e))),void(o.length&&l(o.length-2));var e},edge:"end","aria-label":"clone",disabled:r,children:(0,Ap.jsx)(nx,{})})})})})]},t)},t)))})})})]}),(0,Ap.jsxs)(e_,{item:!0,xs:7,children:[(0,Ap.jsx)(e_,{style:{margin:"10px"},children:(0,Ap.jsx)(Or,{variant:"h6",children:"Details"})}),(0,Ap.jsx)(QT,{border:1,borderRadius:"4px",borderColor:"#ababab",margin:"10px",minHeight:"48px",children:o[s]?(0,Ap.jsx)(YN,{component:Xn,children:(0,Ap.jsx)(eD,{size:"small","aria-label":"simple table",children:(0,Ap.jsx)(oD,{children:Object.entries(function(){if(o[s]){const{rank:e,kingdom:t,phylum:n,class:r,order:i,family:a,genus:l,species:c,scientificName:u,canonicalName:d,parent:p}=o[s];return{rank:e,kingdom:t,phylum:n,Class:r,order:i,family:a,genus:l,species:c,scientificName:u,canonicalName:d,parent:p}}return{}}()).map((e=>{let[t,n]=e;return(0,Ap.jsxs)(sD,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[(0,Ap.jsxs)(cD,{component:"th",scope:"row",variant:"head",align:"left",style:{width:"146px"},children:[(0,Zn.c)(t),":"]}),(0,Ap.jsx)(cD,{align:"left",children:n})]},t)}))})})}):""})]})]})]})]})},tB=e=>{let{value:t}=e;return(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Percentage of required fields filled in",fr:"Pourcentage de champs obligatoires remplis"}),children:(0,Ap.jsxs)(QT,{display:"flex",width:"90%",style:{margin:"auto"},children:[(0,Ap.jsx)(QT,{width:"100%",mr:1,children:(0,Ap.jsx)(FT,{variant:"determinate",value:t,style:{marginLeft:"-30px"}})}),(0,Ap.jsx)(QT,{minWidth:35,children:(0,Ap.jsx)(Or,{variant:"body2",color:"textSecondary",children:"".concat(Math.round(t),"%")})})]})})};function nB(e){let{children:t,value:n,index:r,...i}=e;return(0,Ap.jsx)("div",{role:"tabpanel",hidden:n!==r,id:"simple-tabpanel-".concat(r),"aria-labelledby":"simple-tab-".concat(r),...i,children:n===r&&(0,Ap.jsx)(QT,{children:t})})}class rB extends Ub{constructor(e){var t;super(e),t=this,this.toggleModal=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3?arguments[3]:void 0;t.setState({modalKey:r,[e]:n,modalUserID:i})},this.handleUpdateRecord=e=>t=>{const{value:n}=t.target,r={[e]:n};this.setState((e=>{let{record:t}=e;return{record:{...t,...r},saveDisabled:!1}}))},this.updateRecord=e=>t=>{const n={[e]:t};this.setState((e=>{let{record:t}=e;return{record:{...t,...n},saveDisabled:!1}}))},this.state={projects:[],record:O_(),userContacts:{},loading:!1,tabIndex:"start",saveDisabled:!0,highlightMissingRequireFields:!1,editorInfo:{email:"",displayName:""},loggedInUserCanEditRecord:!1,saveIncompleteRecordModalOpen:!1,doiUpdated:!1,doiError:!1}}componentDidMount(){const{match:e}=this.props;this.setState({loading:!0});const t=Bb(Cp);this.unsubscribe=nd(_p(Cp),(async n=>{if(n){const{region:r,recordID:i}=e.params,o=e.url.endsWith("new"),a=n.uid,s=o?a:e.params.userID,l=a===s,{isReviewer:c}=this.context;let u;this.setState({projects:await F_(r),loggedInUserID:n.uid});const d=wb(xb(t,"".concat(r,"/users")),a),p=wb(d,"userinfo");Pb(p,(e=>{u=e.toJSON(),this.setState({editorInfo:u})})),this.listenerRefs.push(p);const h=xb(t,"".concat(r,"/users/").concat(s)),f=wb(d,"contacts");Pb(f,(e=>{const t=e.toJSON();Object.entries(t||{}).forEach((e=>{let[t,n]=e;n.contactID=t})),this.setState({userContacts:t})})),this.listenerRefs.push(f);const m=wb(d,"instruments");Pb(m,(e=>{const t=e.toJSON();Object.entries(t||{}).forEach((e=>{let[t,n]=e;n.instrumentID=t})),this.setState({userInstruments:t})})),this.listenerRefs.push(m);const g=wb(d,"platforms");if(Pb(g,(e=>{const t=e.toJSON();Object.entries(t||{}).forEach((e=>{let[t,n]=e;n.instrumentID=t})),this.setState({userPlatforms:t})})),this.listenerRefs.push(g),o)this.setState({loading:!1,loggedInUserCanEditRecord:!0});else{const e=wb(h,"records/".concat(i));Pb(e,(e=>{const t=e.toJSON();if(!t)return void this.setState({loading:!1,record:null});const n=E_(t),r=n.sharedWith&&!0===n.sharedWith[a],o=c||l||r;this.setState({record:M_(n,null,null,i),loggedInUserCanEditRecord:o}),this.setState({loading:!1})})),this.listenerRefs.push(e)}}}))}saveUpdateContact(e){const{contactID:t}=e,{match:n}=this.props,{region:r}=n.params,i=xb(Bb(Cp),"".concat(r,"/users/").concat(Sp.currentUser.uid,"/contacts"));return t?(kb(wb(i,t),e),t):Eb(i,e).key}async handleUpdateDraftDOI(){const{match:e}=this.props,{region:t,language:n}=e.params,{record:r}=this.state,{datacitePrefix:i}=this.context;try{if(i&&r.datasetIdentifier){200===await JC(r,t,n,i)?this.state.doiUpdated=!0:this.state.doiError=!0}}catch(o){throw console.error("Error updating draft DOI: ",o),this.state.doiError=!0,o}}handleSaveUpdateInstrument(e){const{id:t}=e,{match:n}=this.props,{region:r}=n.params,i=xb(Bb(Cp),"".concat(r,"/users/").concat(Sp.currentUser.uid,"/instruments"));return t?(kb(wb(i,t),e),t):Eb(i,e).key}handleSaveUpdatePlatform(e){const{id:t}=e,{match:n}=this.props,{region:r}=n.params,i=xb(Bb(Cp),"".concat(r,"/users/").concat(Sp.currentUser.uid,"/platforms"));return t?(kb(wb(i,t),e),t):Eb(i,e).key}async handleSubmitRecord(){const{match:e}=this.props,{region:t,userID:n}=e.params,r=e.url.endsWith("new"),{record:i}=this.state,o=Sp.currentUser.uid,a=r?o:n,s=await this.handleSaveClick();return await this.handleUpdateDraftDOI(),Q_(t,a,s,"submitted",i)}async handleSaveClick(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{match:t,history:n}=this.props,{language:r,region:i}=t.params,o=t.params.userID||Sp.currentUser.uid,a=xb(Bb(Cp),"".concat(i,"/users/").concat(o,"/records")),{editorInfo:s}=this.state,l=(c=this.state.record,JSON.parse(JSON.stringify(c,T_)));var c;const u=1===Qx(l);if("published"===l.status&&!u){if(!e)return void this.toggleModal("saveIncompleteRecordModalOpen",!0);l.status=""}let d;if(l.created=(new Date).toISOString(),l.userID=o,l.region=i,l.lastEditedBy=s,l.recordID)d=l.recordID,await kb(wb(a,l.recordID),{...O_(),...l});else{const e=await Eb(a,l);await kb(e,l),d=e.key,this.setState({record:{...l,recordID:d}}),n.push("/".concat(r,"/").concat(i,"/").concat(o,"/").concat(d))}if(["submitted","published"].includes(l.status)){const{regenerateXMLforRecord:e}=this.context,t="".concat(i,"/").concat(o,"/").concat(d),{status:n,filename:r}=l;e({path:t,status:n,filename:r,region:i})}return this.setState({saveDisabled:!0}),d}render(){var e,t;const{match:n}=this.props,{language:r}=n.params,{isReviewer:i}=this.context,{userContacts:o,userInstruments:a,userPlatforms:s,tabIndex:l,record:c,saveDisabled:u,loading:d,highlightMissingRequireFields:p,loggedInUserCanEditRecord:h,saveIncompleteRecordModalOpen:f,projects:m,loggedInUserID:g}=this.state;if(!c)return(0,Ap.jsx)(fC,{});const{classes:v}=this.props,b=!h,y={highlightMissingRequireFields:p,disabled:b,record:c,handleUpdateRecord:this.handleUpdateRecord,updateRecord:this.updateRecord,userID:g},_=Math.round(100*Qx(c));return d?(0,Ap.jsx)(r_,{}):(0,Ap.jsxs)(e_,{container:!0,direction:"column",justifyContent:"space-between",alignItems:"stretch",spacing:3,children:[(0,Ap.jsx)(V_,{open:f,modalQuestion:(0,Ap.jsx)(Lp,{en:"Record is missing required fields. Saving will demote it to draft. Do you want to do this?",fr:"Il manque des champs obligatoires dans l'enregistrement. L'enregistrement le r\xe9trogradera en brouillon. Est-ce que tu veux le faire ?"}),onClose:()=>{this.toggleModal("saveIncompleteRecordModalOpen",!1)},onAccept:()=>{this.handleSaveClick(!0),this.toggleModal("saveIncompleteRecordModalOpen",!1)}}),(0,Ap.jsx)(qT,{color:"primary","aria-label":"add",className:v.fab,disabled:u||!(c.title.en||c.title.fr)||b,onClick:()=>this.handleSaveClick(),children:(0,Ap.jsx)(ms,{placement:"right-start",title:u?"Dataset needs a title before it can be saved":"Save record.",children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(lC,{})})})}),(0,Ap.jsx)(e_,{container:!0,spacing:2,direction:"row",alignItems:"center",children:(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(oC,{scrollButtons:"auto",variant:"fullWidth",value:l,onChange:(e,t)=>this.setState({tabIndex:t}),"aria-label":"simple tabs example",children:[(0,Ap.jsx)(sC,{fullWidth:!0,classes:{root:v.tabRoot},label:GN.start[r],value:"start"}),(0,Ap.jsx)(sC,{fullWidth:!0,classes:{root:v.tabRoot},label:GN.dataID[r],value:"identification"}),(0,Ap.jsx)(sC,{fullWidth:!0,classes:{root:v.tabRoot},label:GN.taxa[r],value:"taxa"}),(0,Ap.jsx)(sC,{fullWidth:!0,classes:{root:v.tabRoot},label:GN.spatial[r],value:"spatial"}),(0,Ap.jsx)(sC,{fullWidth:!0,classes:{root:v.tabRoot},label:"Contact",value:"contact"}),(0,Ap.jsx)(sC,{fullWidth:!0,classes:{root:v.tabRoot},label:GN.resources[r],value:"distribution"}),!["model"].includes(c.metadataScope)&&(0,Ap.jsx)(sC,{fullWidth:!0,classes:{root:v.tabRoot},label:GN.platform[r],value:"platform"}),h&&(0,Ap.jsx)(sC,{fullWidth:!0,classes:{root:v.tabRoot},label:(0,Ap.jsx)(Lp,{en:"Submit",fr:"Soumettre"}),value:"submit",disabled:"submitted"===c.status||"published"===c.status})]}),(0,Ap.jsxs)("div",{style:{marginTop:"10px",textAlign:"center"},children:[(0,Ap.jsxs)(Or,{variant:"h5",children:[r&&(null===(e=c.title)||void 0===e?void 0:e[r])||(0,Ap.jsx)(Lp,{en:"New Record",fr:"Nouvel enregistrement"})," ",(0,Ap.jsx)(hC,{status:c.status})]}),(0,Ap.jsxs)(Or,{component:"div",children:[(0,Ap.jsxs)("i",{children:[(0,Ap.jsx)(YE,{dateStr:c.created}),(null===(t=c.lastEditedBy)||void 0===t?void 0:t.displayName)&&(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"by "}),(0,Ap.jsx)(Ip,{children:"Par "})]}),c.lastEditedBy.displayName," ",i&&c.lastEditedBy.email]})]}),(0,Ap.jsx)(tB,{value:_})]})]})]})}),(0,Ap.jsx)(nB,{value:l,index:"start",children:(0,Ap.jsx)(kk,{...y})}),(0,Ap.jsx)(nB,{value:l,index:"identification",children:(0,Ap.jsx)(fI,{...y,projects:m})}),(0,Ap.jsx)(nB,{value:l,index:"taxa",children:(0,Ap.jsx)(eB,{...y})}),(0,Ap.jsx)(nB,{value:l,index:"spatial",children:(0,Ap.jsx)(WN,{...y})}),(0,Ap.jsx)(nB,{value:l,index:"platform",children:(0,Ap.jsx)(yI,{userInstruments:a,saveUpdateInstrument:e=>this.handleSaveUpdateInstrument(e),userPlatforms:s,saveUpdatePlatform:e=>this.handleSaveUpdatePlatform(e),...y})}),(0,Ap.jsx)(nB,{value:l,index:"distribution",children:(0,Ap.jsx)(dS,{...y})}),(0,Ap.jsx)(nB,{value:l,index:"submit",children:(0,Ap.jsx)($N,{...y,doiUpdated:this.state.doiUpdated,doiError:this.state.doiError,submitRecord:()=>this.handleSubmitRecord()})}),(0,Ap.jsx)(nB,{value:l,index:"contact",children:(0,Ap.jsx)(Zk,{userContacts:o,saveToContacts:e=>this.saveUpdateContact(e),...y})})]})}}rB.contextType=Fb;const iB=(0,Gn.c)((e=>({tabRoot:{minWidth:"115px"},fab:{position:"fixed",bottom:e.spacing(2),right:e.spacing(2)}})))(dn(rB));class oB extends i.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return console.error(e),{hasError:!0}}componentDidCatch(e,t){console.error(e,t),oe(e)}render(){const{hasError:e}=this.state,{children:t}=this.props;return e?(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)("h1",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Something went wrong!"}),(0,Ap.jsx)(Ip,{children:"Un probl\xe8me s'est produit!"})]})}),(0,Ap.jsx)("h5",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"The developers have been notified and are working to resolve the issue."}),(0,Ap.jsx)(Ip,{children:"Les d\xe9veloppeurs ont \xe9t\xe9 avertis et s'effor\xe7ent de r\xe9soudre le probl\xe8me."})]})})]}):t}}const aB=oB;const sB=dn(class extends Ub{constructor(e){super(e),this.state={orgRor:"",orgName:"",orgEmail:"",orgURL:"",orgAdress:"",orgCity:"",orgCountry:"",indOrcid:"",indPosition:"",indEmail:"",givenNames:"",lastName:""};const{match:t}=e,{region:n}=t.params,r=Bb(Cp);this.contactsRef=xb(r,"".concat(n,"/users/").concat(Sp.currentUser.uid,"/contacts"))}async componentDidMount(){const{match:e}=this.props,{contactID:t}=e.params;if(Sp.currentUser&&t){this.setState({contactID:t});const e=wb(this.contactsRef,t);Pb(e,(e=>this.setState(e.toJSON()))),this.listenerRefs.push(e)}}handleChange(e){return t=>{this.setState({[e]:t.target.value})}}handleClear(e){this.setState({[e]:""})}updateOrgFromRor(){return e=>{this.setState({orgRor:e.id,orgName:e.name,orgURL:e.links.find((()=>!0))||"",orgCity:e.addresses.find((()=>!0)).city||"",orgCountry:e.country.country_name})}}updateIndFromOrcid(){return e=>{const{name:t,emails:n}=e.person,r=n.email.length>0?n.email[0].email:"",i=t["family-name"]?t["family-name"].value:"";this.setState({indOrcid:e["orcid-identifier"].uri,givenNames:t["given-names"].value,indEmail:r,lastName:i})}}handleCancelClick(){const{match:e,history:t}=this.props,{language:n,region:r}=e.params;t.push("/".concat(n,"/").concat(r,"/contacts"))}async handleSubmitClick(){const{history:e,match:t}=this.props,{region:n,language:r,contactID:i}=t.params;i?kb(wb(this.contactsRef,i),this.state):Eb(this.contactsRef,this.state),e.push("/".concat(r,"/").concat(n,"/contacts"))}render(){const{orgName:e,givenNames:t,lastName:n}=this.state,r=e||t&&n;return(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Hk,{value:this.state,handleClear:e=>this.handleClear(e),updateContactEvent:e=>this.handleChange(e),updateContactRor:this.updateOrgFromRor(),updateContactOrcid:this.updateIndFromOrcid()})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(lC,{}),variant:"contained",color:"primary",onClick:()=>this.handleSubmitClick(),disabled:!r,children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Save"}),(0,Ap.jsx)(Ip,{children:"Enregistrer"})]})}),(0,Ap.jsx)(c_,{style:{marginLeft:"10px"},variant:"contained",color:"secondary",onClick:()=>this.handleCancelClick(),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Cancel"}),(0,Ap.jsx)(Ip,{children:"Annuler"})]})})]})]})}}),lB=e=>{let{value:t,disabled:n,paperClass:r,updateInstrumentEvent:i}=e;const o=(0,Ap.jsx)(Lp,{en:"Manufacturer",fr:"Fabricant"}),a=(0,Ap.jsx)(Lp,{en:"Version",fr:"Version"}),s=(0,Ap.jsx)(Lp,{en:"Type",fr:"Type"}),l=(0,Ap.jsx)(Lp,{en:"Description",fr:"Description"}),c={...I_(),...t};return(0,Ap.jsx)(e_,{container:!0,direction:"column",spacing:2,children:(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(e_,{container:!0,direction:"column",children:c&&(0,Ap.jsx)(Xn,{style:r,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Instrument ID"}),(0,Ap.jsx)(Ip,{children:"L'ID de l'instrument"})]}),(0,Ap.jsx)(ek,{passes:c.id}),(0,Ap.jsx)(CC,{label:"ID",value:c.id,onChange:i("id"),fullWidth:!0,disabled:n})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(CC,{label:o,name:"manufacturer",value:c.manufacturer,onChange:i("manufacturer"),fullWidth:!0,disabled:n})," "]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{label:a,value:c.version,onChange:i("version"),fullWidth:!0,disabled:n})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Instrument Type"}),(0,Ap.jsx)(Ip,{children:"Type d'instrument"})]})}),(0,Ap.jsx)(qC,{label:s,value:c.type,onChange:i("type"),disabled:n})]})," ",(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(Or,{children:"Description"}),(0,Ap.jsx)(qC,{label:l,value:c.description,onChange:i("description"),disabled:n})]})]})})})})})};const cB=dn(class extends Ub{constructor(e){super(e),this.state={id:"",manufacturer:"",version:"",type:{en:"",fr:""},description:{en:"",fr:""}};const{match:t}=e,{region:n}=t.params,r=Bb(Cp);this.instrumentsRef=xb(r,"".concat(n,"/users/").concat(Sp.currentUser.uid,"/instruments"))}async componentDidMount(){const{match:e}=this.props,{instrumentID:t}=e.params;if(Sp.currentUser&&t){this.setState({instrumentID:t});const e=wb(this.instrumentsRef,t);Pb(e,(e=>this.setState(e.toJSON()))),this.listenerRefs.push(e)}}handleChange(e){return t=>{this.setState({[e]:t.target.value})}}handleClear(e){this.setState({[e]:""})}handleCancelClick(){const{match:e,history:t}=this.props,{language:n,region:r}=e.params;t.push("/".concat(n,"/").concat(r,"/instruments"))}async handleSubmitClick(){const{history:e,match:t}=this.props,{region:n,language:r,instrumentID:i}=t.params;i?kb(wb(this.instrumentsRef,i),this.state):this.instrumentsRef.push(this.state),e.push("/".concat(r,"/").concat(n,"/instruments"))}render(){return(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(lB,{value:this.state,handleClear:e=>this.handleClear(e),updateInstrumentEvent:e=>this.handleChange(e),paperClass:ZC})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(lC,{}),variant:"contained",color:"primary",onClick:()=>this.handleSubmitClick(),disabled:!this.state.id,children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Save"}),(0,Ap.jsx)(Ip,{children:"Enregistrer"})]})}),(0,Ap.jsx)(c_,{style:{marginLeft:"10px"},variant:"contained",color:"secondary",onClick:()=>this.handleCancelClick(),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Cancel"}),(0,Ap.jsx)(Ip,{children:"Annuler"})]})})]})]})}});var uB=n(3651);function dB(){return Math.round(20*Math.random())-10}function pB(){const e=50+dB(),t=50+dB();return{top:"".concat(e,"%"),left:"".concat(t,"%"),transform:"translate(-".concat(e,"%, -").concat(t,"%)")}}const hB=An((e=>({paper:{position:"absolute",width:400,backgroundColor:e.palette.background.paper,border:"2px solid #000",boxShadow:e.shadows[5],padding:e.spacing(2,4,3)}})));function fB(e){let{open:t,onClose:n,onAccept:r,email:o,setEmail:a}=e;const[s,l]=(0,i.useState)(!0),[c,u]=(0,i.useState)(!1),d=hB(),[p]=i.useState(pB),h=Sx(o);return(0,Ap.jsx)("div",{children:(0,Ap.jsx)(ti,{open:t,onClose:n,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",children:(0,Ap.jsxs)("div",{style:p,className:d.paper,children:[(0,Ap.jsx)("h2",{id:"simple-modal-title",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Transfer Record"}),(0,Ap.jsx)(Ip,{children:"Enregistrement de transfert"})]})}),c?(0,Ap.jsx)("h3",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Transferring..."}),(0,Ap.jsx)(Ip,{children:"Transfert en cours..."})]})}):(0,Ap.jsxs)("div",{children:[!s&&(0,Ap.jsx)("h3",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["User ",o," not found"]}),(0,Ap.jsxs)(Ip,{children:["L'utilisateur ",o," n'a pas \xe9t\xe9 trouv\xe9"]})]})}),(0,Ap.jsx)("div",{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enter the email address of the user to transfer this record to. The user must have logged into this region at least once:"}),(0,Ap.jsx)(Ip,{children:"Entrez l'adresse e-mail de l'utilisateur vers lequel transf\xe9rer cet enregistrement. L'utilisateur doit s'\xeatre connect\xe9 \xe0 cette r\xe9gion au moins une fois:"})]})}),(0,Ap.jsx)("div",{children:(0,Ap.jsx)(CC,{helperText:!h&&(0,Ap.jsx)(Lp,{en:"Invalid email",fr:"E-mail non valide"}),error:!h,value:o,onChange:e=>{l(!0),a(e.target.value)},fullWidth:!0})}),(0,Ap.jsx)("button",{type:"button",disabled:!o||!h||c,onClick:async()=>{u(!0);const e=await r();l(e),u(!1),e&&n()},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Transfer"}),(0,Ap.jsx)(Ip,{children:"Transfert"})]})}),(0,Ap.jsx)("button",{type:"button",onClick:()=>{l(!0),n()},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Cancel"}),(0,Ap.jsx)(Ip,{children:"Annuler"})]})})]})]})})})}const mB=e=>{let{record:t,language:n,editRecord:r,toggleModal:i,handleCloneRecord:o}=e;const a={record:t,language:n,onViewEditClick:()=>r(t.recordID,t.userinfo.userID),onCloneClick:()=>o(t.recordID,t.userinfo.userID),onDeleteClick:()=>i("deleteModalOpen",!0,t.recordID,t.userinfo.userID),onTransferClick:()=>i("transferModalOpen",!0,t.recordID,t.userinfo.userID),showAuthor:!0,showTransferButton:!0,showDeleteAction:!0,showCloneAction:!0},s=()=>(0,Ap.jsx)(eT,{onSubmitClick:()=>i("submitModalOpen",!0,t.recordID,t.userinfo.userID),showSubmitAction:!0,showEditAction:!0,...a,showPercentComplete:!0}),l=()=>(0,Ap.jsx)(eT,{onSubmitClick:()=>i("publishModalOpen",!0,t.recordID,t.userinfo.userID),onUnSubmitClick:()=>i("unSubmitModalOpen",!0,t.recordID,t.userinfo.userID),showPublishAction:!0,showUnSubmitAction:!0,showEditAction:!0,showPercentComplete:!0,...a}),c=()=>(0,Ap.jsx)(eT,{onUnPublishClick:()=>i("unPublishModalOpen",!0,t.recordID,t.userinfo.userID),showUnPublishAction:!0,showViewAction:!0,showPercentComplete:!0,...a});return"submitted"===t.status?(0,Ap.jsx)(l,{}):"published"===t.status?(0,Ap.jsx)(c,{}):(0,Ap.jsx)(s,{})};const gB=class extends Ub{constructor(e){super(e),this.state={users:[],deleteModalOpen:!1,publishModalOpen:!1,unPublishModalOpen:!1,unSubmitModalOpen:!1,submitModalOpen:!1,transferModalOpen:!1,modalKey:"",modalUserID:"",loading:!1,showRecordTypes:["submitted","published"],showUsers:[],records:[],recordsFilter:"",recordCountsByStatus:{}}}async componentDidMount(){this.setState({loading:!0});const{match:e}=this.props,{region:t}=e.params;this.unsubscribe=nd(_p(Cp),(e=>{if(e){const e=xb(Bb(Cp),"".concat(t,"/users"));Pb(e,(e=>{const t=B_(e,["","submitted","published"]);this.setState({records:t,loading:!1});const n=k_(t.map((e=>e.userinfo.email)));this.setState({records:t,loading:!1,users:n,showUsers:n})})),this.listenerRefs.push(e)}}))}editRecord(e,t){const{history:n}=this.props,{language:r,region:i}=this.props.match.params;n.push("/".concat(r,"/").concat(i,"/").concat(t,"/").concat(e))}async handleTransferRecord(e,t){const{match:n}=this.props,{region:r}=n.params;return async function(e,t,n,r){const i=xb(Bb(Cp),"".concat(r,"/users")),o=(await Sb(i)).val(),a=Object.entries(o).map((e=>{var t;let[n,r]=e;return[n,null===r||void 0===r||null===(t=r.userinfo)||void 0===t?void 0:t.email]})).find((t=>{let[,n]=t;return n.toLowerCase().trim()===e.toLowerCase().trim()}));if(a){const[e]=a,r=wb(i,"".concat(n,")/records/").concat(t)),o=(await Sb(r)).val(),s=await wb(i,"".concat(e,"/records/").concat(o)),l=s.key;if(o.recordID=l,s.update(o),l)return await r.remove(),!0}return!1}(this.state.transferEmail,e,t,r)}handleCloneRecord(e,t){const{match:n}=this.props,{region:r}=n.params;Sp.currentUser&&N_(e,t,Sp.currentUser.uid,r)}async handleSubmitRecord(e,t,n){const{match:r}=this.props,{region:i}=r.params;e&&t&&(this.setState({loading:!0}),await Q_(i,t,e,n),this.setState({loading:!1}))}async deleteRecord(e,t){const{match:n}=this.props,{region:r}=n.params;e&&t&&(this.setState({loading:!0}),await U_(r,t,e),this.setState({loading:!1}))}toggleModal(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0;this.setState({modalKey:n,[e]:t,modalUserID:r})}render(){const{records:e,recordsFilter:t,showRecordTypes:n,showUsers:r,deleteModalOpen:i,transferModalOpen:o,transferEmail:a,transferUserNotFound:s,modalKey:l,modalUserID:c,unPublishModalOpen:u,publishModalOpen:d,unSubmitModalOpen:p,submitModalOpen:h,loading:f,users:m}=this.state,{match:g}=this.props,{language:v}=g.params;let b=e.filter((e=>r.includes(e.userinfo.email))).sort(((e,t)=>e.createdJSON.stringify([e.title||{},e.abstract||{}]).toUpperCase().includes(t.toUpperCase()))));const y={draft:(b.filter((e=>""===e.status))||[]).length,submitted:(b.filter((e=>"submitted"===e.status))||[]).length,published:(b.filter((e=>"published"===e.status))||[]).length};b=b.filter((e=>n.includes(e.status))),b=b.sort(((e,t)=>n.indexOf(e.status)>n.indexOf(t.status)));const _={draft:{en:"Draft",fr:"Brouillon"},submitted:{en:"Submitted",fr:"Soumis"},published:{en:"Published",fr:"Publi\xe9"}},x="fr"===v?"s\xe9lectionn\xe9s":"selected";return(0,Ap.jsxs)(e_,{container:!0,direction:"column",justifyContent:"space-between",alignItems:"stretch",spacing:3,children:[(0,Ap.jsx)(fB,{open:o,onClose:()=>{this.toggleModal("transferModalOpen",!1),this.setState({transferEmail:""})},onAccept:()=>this.handleTransferRecord(l,c),transferUserNotFound:s,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",email:a,setEmail:e=>this.setState({transferEmail:e})}),(0,Ap.jsx)(V_,{open:i,onClose:()=>this.toggleModal("deleteModalOpen",!1),onAccept:()=>this.deleteRecord(l,c),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(V_,{open:h,onClose:()=>this.toggleModal("submitModalOpen",!1),onAccept:()=>this.handleSubmitRecord(l,c,"submitted"),"aria-labelledby":"simple-modal-title"}),(0,Ap.jsx)(V_,{open:d,onClose:()=>this.toggleModal("publishModalOpen",!1),onAccept:()=>this.handleSubmitRecord(l,c,"published"),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(V_,{open:u,onClose:()=>this.toggleModal("unPublishModalOpen",!1),onAccept:()=>this.handleSubmitRecord(l,c,"submitted"),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(V_,{open:p,onClose:()=>this.toggleModal("unSubmitModalOpen",!1),onAccept:()=>this.handleSubmitRecord(l,c,""),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Review submissions"}),(0,Ap.jsx)(Ip,{children:"Examen des soumissions"})]})})}),f?(0,Ap.jsx)(r_,{}):(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsxs)(Xn,{style:{padding:"10px",margin:"10px",width:"100%"},children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsx)(Pp,{children:"Filters"}),(0,Ap.jsx)(Ip,{children:"Filtres"})]}),(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(sk,{value:n,onChange:e=>{this.setState({showRecordTypes:e})},options:["","submitted","published"],optionLabels:["draft","submitted","published"].map((e=>"".concat(_[e][v]," (").concat(y[e],")")))})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsxs)(Mk,{children:[(0,Ap.jsx)(Qk,{expandIcon:(0,Ap.jsx)(uB.c,{}),"aria-controls":"panel2a-content",id:"panel2a-header",children:(0,Ap.jsx)(Or,{children:r.length===m.length?(0,Ap.jsx)(Lp,{en:"Users (All users selected)",fr:"Utilisateurs (Tous les utilisateurs)"}):(0,Ap.jsx)(Lp,{en:"Users (".concat(r.length," ").concat(x,")"),fr:"Utilisateurs (".concat(r.length," ").concat(x,")")})})}),(0,Ap.jsx)(Fk,{children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(Pp,{children:"Select All / None"}),(0,Ap.jsx)(Ip,{children:"Tout s\xe9lectionner/Aucun"}),(0,Ap.jsx)(QC,{label:"Show All / None",onChange:e=>{this.setState({showUsers:e.target.checked?m:[]})}})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(sk,{value:r,onChange:e=>{this.setState({showUsers:e})},options:m,labelSize:null})})]})})]})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{fullWidth:!0,onChange:e=>{this.setState({recordsFilter:e.target.value})},label:(0,Ap.jsx)(Lp,{en:"Search title and abstract",fr:"Rechercher le titre et le r\xe9sum\xe9"})})})]})]}),b.length?(0,Ap.jsx)(Ap.Fragment,{children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"These are the submissions we have received from all users that have not yet been reviewed. To accept a record, click the 'Publish' button."}),(0,Ap.jsx)(Ip,{children:"Ce sont les soumissions que nous avons re\xe7ues de tous les utilisateurs qui n'ont pas encore \xe9t\xe9 examin\xe9es. Pour accepter un enregistrement, cliquez sur le bouton \xab Publier \xbb."})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(ki,{children:b.map((e=>(0,Ap.jsx)(mB,{record:e,toggleModal:this.toggleModal.bind(this),editRecord:this.editRecord.bind(this),handleCloneRecord:this.handleCloneRecord.bind(this)},e.recordID)))})})]})}):(0,Ap.jsx)(e_,{container:!0,direction:"column",children:(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"There are no records waiting to be reviewed."}),(0,Ap.jsx)(Ip,{children:"Aucun dossier n'attend d'\xeatre examin\xe9."})]})})})})]})]})}};var vB=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.disableTypography,s=void 0!==a&&a,l=(0,Yn.c)(e,["children","classes","className","disableTypography"]);return i.createElement("div",(0,at.c)({className:(0,kn.c)(r.root,o),ref:t},l),s?n:i.createElement(Or,{component:"h2",variant:"h6"},n))}));const bB=(0,Gn.c)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(vB);var yB=i.forwardRef((function(e,t){return i.createElement(Or,(0,at.c)({component:"p",variant:"body1",color:"textSecondary",ref:t},e))}));const _B=(0,Gn.c)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(yB),xB=(0,In.c)(i.createElement("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");var wB=n(6212),EB=n(5140),TB=n(3344);const CB=e=>k_(e.map((e=>e.trim())).filter((e=>e)));class kB extends Ub{constructor(e){super(e),this.handleClickShowPassword=()=>this.setState((e=>({showPassword:!e.showPassword}))),this.handleMouseDownPassword=e=>{e.preventDefault()},this.handleToggleDoiCreation=()=>{const{isDoiCreationEnabled:e,credentialsStored:t}=this.state;e&&t?this.setState({showDeletionDialog:!0}):this.setState((e=>({isDoiCreationEnabled:!e.isDoiCreationEnabled})))},this.handleDisableDoiCreation=async()=>{const{region:e}=this.props.match.params;try{await async function(e){try{const t=Bb(Cp);return await Tb(xb(t,"admin/".concat(e,"/dataciteCredentials"))),{success:!0,message:"All Datacite credentials deleted successfully."}}catch(gh){throw new Error("Failed to delete Datacite credentials.: ".concat(gh))}}(e),this.setState({datacitePrefix:"",dataciteAccountId:"",datacitePass:"",credentialsStored:!1,isDoiCreationEnabled:!1,showDeletionDialog:!1})}catch(gh){throw new Error("Failed to delete DataCite credentials: ".concat(gh))}},this.handleChange=e=>{const{name:t,value:n}=e.target;this.setState({[t]:n},(()=>{"datacitePrefix"===t&&this.validateDatacitePrefix(n)}))},this.validateDatacitePrefix=e=>{const t=/^10\.\d+/.test(e);this.setState({datacitePrefixValid:t})},this.state={admins:[],projects:[],reviewers:[],datacitePrefix:"",datacitePrefixValid:!0,dataciteAccountId:"",datacitePass:"",loading:!1,showPassword:!1,isDoiCreationEnabled:!1,credentialsStored:!1,showDeletionDialog:!1,showCredentialsMissingDialog:!1}}async componentDidMount(){const{match:e}=this.props,{region:t}=e.params,{getCredentialsStored:n,getDatacitePrefix:r}=this.context,i=Bb(Cp);this.setState({loading:!0}),this.unsubscribe=nd(_p(Cp),(async e=>{if(e){const e=wb(xb(i,"admin"),t),o=wb(e,"permissions"),a=await F_(t),s=await r(t).then((e=>e.data)),l=await n(t).then((e=>e.data));Pb(o,(e=>{const t=e.toJSON(),n=t.admins.split(","),r=t.reviewers.split(",");this.setState({projects:a,admins:n,reviewers:r,loading:!1,datacitePrefix:s,credentialsStored:l,isDoiCreationEnabled:l})})),this.listenerRefs.push(o)}}))}componentDidUpdate(e,t){t.credentialsStored!==this.state.credentialsStored&&this.state.credentialsStored&&this.setState({isDoiCreationEnabled:!0})}save(){const{match:e}=this.props,{region:t}=e.params,{reviewers:n,admins:r,projects:i}=this.state,o=Bb(Cp);if(Sp.currentUser){const e=xb(o,"admin/".concat(t)),a=wb(e,"permissions"),s=wb(e,"projects");Cb(wb(a,"admins"),CB(r).join()),Cb(s,CB(i)),Cb(wb(a,"reviewers"),CB(n).join())}}saveDoiCredentials(){const{match:e}=this.props,{region:t}=e.params,{datacitePrefix:n,dataciteAccountId:r,datacitePass:i,isDoiCreationEnabled:o}=this.state,a=Bb(Cp),s=TB.Sn.from("".concat(r,":").concat(i),"utf8").toString("base64");if(!o||n&&r&&i){if(Sp.currentUser){const e=wb(xb(a,"admin/".concat(t)),"dataciteCredentials");Cb(wb(e,"prefix"),n),Cb(wb(e,"dataciteHash"),s),this.setState({datacitePass:"",credentialsStored:!0})}}else this.setState({showCredentialsMissingDialog:!0})}renderDeletionDialog(){return(0,Ap.jsxs)(CS,{open:this.state.showDeletionDialog,onClose:()=>this.setState({showDeletionDialog:!1}),"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,Ap.jsx)(bB,{id:"alert-dialog-title",children:"Delete Datacite Credentials?"}),(0,Ap.jsx)(wS,{children:(0,Ap.jsx)(_B,{id:"alert-dialog-description",children:"Disabling DOI creation will delete the stored credentials. Are you sure you want to proceed?"})}),(0,Ap.jsxs)(_S,{children:[(0,Ap.jsx)(c_,{onClick:()=>this.setState({showDeletionDialog:!1}),color:"primary",children:"Cancel"}),(0,Ap.jsx)(c_,{onClick:()=>this.handleDisableDoiCreation(),color:"primary",autoFocus:!0,children:"Delete Credentials"})]})]})}renderCredentialsMissingDialog(){return(0,Ap.jsxs)(CS,{open:this.state.showCredentialsMissingDialog,onClose:()=>this.setState({showCredentialsMissingDialog:!1}),"aria-labelledby":"credentials-missing-dialog-title","aria-describedby":"credentials-=missing-dialog-description",children:[(0,Ap.jsx)(bB,{id:"credentials-missing-dialog-title",children:"Missing DataCite Credentials"}),(0,Ap.jsx)(wS,{children:(0,Ap.jsx)(_B,{id:"credentials-missing-dialog-description",children:"Please add DataCite credentials before saving."})}),(0,Ap.jsx)(_S,{children:(0,Ap.jsx)(c_,{onClick:()=>this.setState({showCredentialsMissingDialog:!1}),color:"primary",autoFocus:!0,children:"OK"})})]})}render(){const{loading:e,reviewers:t,admins:n,projects:r,showPassword:i,datacitePrefix:o,isDoiCreationEnabled:a,credentialsStored:s}=this.state;return(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:3,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Admin"}),(0,Ap.jsx)(Ip,{children:"Administrateurs"})]})}),(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add each admin or reviewer's email address on it's own line"}),(0,Ap.jsx)(Ip,{children:"Ajouter l'adresse e-mail de chaque administrateur ou r\xe9viseur sur sa propre ligne"})]})})]}),e?(0,Ap.jsx)(r_,{}):(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Projects"}),(0,Ap.jsx)(Ip,{children:"Projets"})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{multiline:!0,fullWidth:!0,value:r.join("\n"),onChange:e=>this.setState({projects:e.target.value.split("\n")})})})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Admins"}),(0,Ap.jsx)(Ip,{children:"Administrateurs"})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{multiline:!0,fullWidth:!0,value:n.join("\n"),onChange:e=>this.setState({admins:e.target.value.split("\n")})})})]}),(0,Ap.jsxs)(Xn,{style:ZC,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Reviewers"}),(0,Ap.jsx)(Ip,{children:"R\xe9viseurs"})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(CC,{multiline:!0,fullWidth:!0,value:t.join("\n"),onChange:e=>this.setState({reviewers:e.target.value.split("\n")})})})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(lC,{}),variant:"contained",color:"primary",style:{margin:10},onClick:()=>this.save(),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Save Admin Settings"}),(0,Ap.jsx)(Ip,{children:"Enregistrer"})]})})}),(0,Ap.jsx)(Xn,{style:ZC,children:(0,Ap.jsxs)(e_,{container:!0,spacing:2,children:[(0,Ap.jsx)(e_,{item:!0,xs:12,children:(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"DOI Creation Settings"}),(0,Ap.jsx)(Ip,{children:"Param\xe8tres de cr\xe9ation de DOI"})]})})}),(0,Ap.jsxs)(e_,{item:!0,xs:12,container:!0,alignItems:"center",justifyContent:"space-between",children:[(0,Ap.jsx)(e_,{item:!0,children:(0,Ap.jsx)(AC,{control:(0,Ap.jsx)(QC,{checked:this.state.isDoiCreationEnabled||!1,onChange:this.handleToggleDoiCreation}),label:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Enable DOI Creation"}),(0,Ap.jsx)(Ip,{children:"Activer la cr\xe9ation de DOI"})]})})}),a&&s&&(0,Ap.jsx)(e_,{item:!0,container:!0,spacing:2,alignItems:"center",children:(0,Ap.jsx)(e_,{item:!0,children:(0,Ap.jsxs)(Or,{variant:"body1",children:[(0,Ap.jsx)(wB.c,{style:{color:"green",marginRight:4,fontSize:"1.4rem"}}),(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Credentials Stored"}),(0,Ap.jsx)(Ip,{children:"Identifiants Enregistr\xe9s"})]})]})})}),a&&!s&&(0,Ap.jsx)(e_,{item:!0,container:!0,spacing:2,alignItems:"center",children:(0,Ap.jsx)(e_,{item:!0,children:(0,Ap.jsxs)(Or,{variant:"body1",children:[(0,Ap.jsx)(EB.c,{style:{color:"red",marginRight:4,fontSize:"1.4rem"}}),(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Please Add DataCite Credentials"}),(0,Ap.jsx)(Ip,{children:"Identifiants Enregistr\xe9s"})]})]})})})]}),a&&(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(e_,{item:!0,xs:12,children:(0,Ap.jsx)(CC,{name:"datacitePrefix",label:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"DataCite Prefix"}),(0,Ap.jsx)(Ip,{children:"Pr\xe9fixe DataCite"})]}),placeholder:"10.0000",value:o||"",onChange:this.handleChange,fullWidth:!0,error:!this.state.datacitePrefixValid,helperText:!this.state.datacitePrefixValid&&"Prefix must start with '10.' followed by numbers."})}),(0,Ap.jsx)(e_,{item:!0,xs:12,children:(0,Ap.jsx)(CC,{name:"dataciteAccountId",label:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Account ID"}),(0,Ap.jsx)(Ip,{children:"Identifiant du compte"})]}),onChange:this.handleChange,fullWidth:!0})}),(0,Ap.jsx)(e_,{item:!0,xs:12,children:(0,Ap.jsx)(CC,{name:"datacitePass",label:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Password"}),(0,Ap.jsx)(Ip,{children:"Mot de passe"})]}),type:i?"text":"password",onChange:this.handleChange,InputProps:{endAdornment:(0,Ap.jsx)(SC,{position:"end",children:(0,Ap.jsx)(Cr,{onClick:this.handleClickShowPassword,onMouseDown:this.handleMouseDownPassword,edge:"end",children:i?(0,Ap.jsx)(xB,{}):(0,Ap.jsx)(ex,{})})})},fullWidth:!0})})]}),this.state.isDoiCreationEnabled&&(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(lC,{}),variant:"contained",color:"primary",onClick:()=>this.saveDoiCredentials(),style:{margin:10},children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Save DOI Settings"}),(0,Ap.jsx)(Ip,{children:"Enregistrer les param\xe8tres DOI"})]})})]})})]}),this.renderDeletionDialog(),this.renderCredentialsMissingDialog()]})}}kB.contextType=Fb;const SB=kB,OB=()=>(oe(new Error("Testing sentry")),(0,Ap.jsx)("h1",{children:"Error notification sent"}));const AB=class extends Ub{constructor(e){super(e),this.state={platforms:{},modalOpen:!1,modalKey:"",loading:!1}}async componentDidMount(){this.setState({loading:!0});const{match:e}=this.props,{region:t}=e.params;this.unsubscribe=Sp.onAuthStateChanged((e=>{if(e){const n=xb(Bb(Cp),"".concat(t,"/users/").concat(e.uid,"/platforms"));Pb(n,(e=>this.setState({platforms:e.toJSON(),loading:!1}))),this.listenerRefs.push(n)}}))}handleDeletePlatform(e){const{match:t}=this.props,{region:n}=t.params;Sp.currentUser&&function(e,t,n){Tb(xb(Bb(Cp),"".concat(e,"/users/").concat(t,"/platforms/").concat(n)))}(n,Sp.currentUser.uid,e)}handleClonePlatform(e){const{match:t}=this.props,{region:n}=t.params;return!!Sp.currentUser&&async function(e,t,n){const r=xb(Bb(Cp),"".concat(e,"/users/").concat(t,"/platforms/")),i=(await Sb(wb(r,n))).val();i.id&&(i.id+=" (Copy)"),Eb(r,i)}(n,Sp.currentUser.uid,e)}addPlatform(){const{history:e,match:t}=this.props,{language:n,region:r}=t.params;Sp.currentUser&&async function(e,t){return Eb(xb(Bb(Cp),"".concat(e,"/users/").concat(t,"/platforms/")),{}).key}(r,Sp.currentUser.uid).then((t=>{e.push("/".concat(n,"/").concat(r,"/platforms/").concat(t))}))}editPlatform(e){const{history:t,match:n}=this.props,{language:r,region:i}=n.params;t.push("/".concat(r,"/").concat(i,"/platforms/").concat(e))}toggleModal(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.setState({modalKey:t,modalOpen:e})}render(){const{modalOpen:e,modalKey:t,loading:n,platforms:r}=this.state;return(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:3,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(V_,{open:e,onClose:()=>this.toggleModal(!1),onAccept:()=>this.handleDeletePlatform(t),"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description"}),(0,Ap.jsx)(Or,{variant:"h5",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Platforms"}),(0,Ap.jsx)(Ip,{children:"Platforms"})]})})]}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Create platforms here that you can reuse in multiple metadata records."}),(0,Ap.jsx)(Ip,{children:"Ajoutez ici les personnes ressources que vous d\xe9sirez r\xe9utiliser pour la saisie d\u2019autres m\xe9tadonn\xe9es."})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(u_,{}),onClick:()=>this.addPlatform(),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Add platform"}),(0,Ap.jsx)(Ip,{children:"ajouter un platform"})]})})}),n?(0,Ap.jsx)(r_,{}):(0,Ap.jsx)(Ap.Fragment,{children:(0,Ap.jsx)(e_,{item:!0,xs:!0,children:r&&Object.keys(r).length?(0,Ap.jsxs)("div",{children:[(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"These are your platforms"}),(0,Ap.jsx)(Ip,{children:"Ce sont vos platforms"})]})}),(0,Ap.jsx)(ki,{children:Object.entries(r).map((e=>{let[t,n]=e;return(0,Ap.jsxs)(ko,{button:!0,onClick:()=>this.editPlatform(t),children:[(0,Ap.jsx)(Z_,{children:(0,Ap.jsx)($o,{children:(0,Ap.jsx)(rT,{})})}),(0,Ap.jsx)(Yo,{primary:mI({platform:n})}),(0,Ap.jsxs)(X_,{children:[(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Edit",fr:"\xc9diter"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>this.editPlatform(t),children:(0,Ap.jsx)(tx,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Clone",fr:"Clone"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>this.handleClonePlatform(t),children:(0,Ap.jsx)(ox,{})})})}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Delete",fr:"Supprimer"}),children:(0,Ap.jsx)("span",{children:(0,Ap.jsx)(Cr,{onClick:()=>this.toggleModal(!0,t),children:(0,Ap.jsx)(nx,{})})})})]})]},t)}))})]}):(0,Ap.jsx)(Or,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"No platforms submitted yet"}),(0,Ap.jsx)(Ip,{children:"Aucun platforms n'a encore \xe9t\xe9 soumis"})]})})})})]})}},jB=e=>{let{value:t,disabled:n,paperClass:r,updatePlatformEvent:i}=e;const{language:o="en"}=mn(),a=Object.values(vI).sort(((e,t)=>e["label_".concat(o)].localeCompare(t["label_".concat(o)],o))),s={...R_(),...t};return(0,Ap.jsx)(e_,{container:!0,direction:"column",spacing:2,children:(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(e_,{container:!0,direction:"column",children:s&&(0,Ap.jsx)(Xn,{style:r,children:(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What type of platform is it?"}),(0,Ap.jsx)(Ip,{children:"De quel type de plateforme s'agit-il ?"})]}),(0,Ap.jsxs)($C,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Please select a platform from the "}),(0,Ap.jsx)(Ip,{children:"Veuillez s\xe9lectionner une plateforme dans la "})]}),(0,Ap.jsxs)("a",{href:"http://vocab.nerc.ac.uk/collection/L06/current/",target:"_blank",rel:"noopener noreferrer",children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"SeaVoX Platform Categories (NERC L06 Vocabulary)"}),(0,Ap.jsx)(Ip,{children:"SeaVoX Platform Categories (liste Vocabulaire NERC L06)"})]}),(0,Ap.jsx)(ms,{title:(0,Ap.jsx)(Lp,{en:"Open in new window",fr:"Ouvrir dans une nouvelle fen\xeatre"}),children:(0,Ap.jsx)(lx,{style:{verticalAlign:"middle"}})})]}),(0,Ap.jsx)(ek,{passes:s.type})]})]}),(0,Ap.jsx)(Ek,{value:s.type,onChange:i("type"),optionLabels:a.map((e=>"".concat(e["label_".concat(o)]))),optionTooltips:a.map((e=>"".concat(e["definition_".concat(o)]))),options:a.map((e=>e.label_en)),disabled:n,label:(0,Ap.jsx)(Lp,{en:"Platform",fr:"Plateforme"}),fullWidth:!1})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"What is the platform ID or code?"}),(0,Ap.jsx)(Ip,{children:"Quel est l'ID de la plateforme ?"})]}),(0,Ap.jsxs)($C,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsxs)(Pp,{children:["This is a unique identification of the platform. If the platform is registered with"," ",(0,Ap.jsx)("a",{href:"https://vocab.seadatanet.org/v_bodc_vocab_v2/search.asp?lib=C17",target:"_blank",rel:"noopener noreferrer",children:"ICES"}),", use that identifier"]}),(0,Ap.jsxs)(Ip,{children:["Il s'agit d'une identification unique de la plateforme. Si la plateforme est enregistr\xe9e aupr\xe8s du"," ",(0,Ap.jsx)("a",{href:"https://vocab.seadatanet.org/v_bodc_vocab_v2/search.asp?lib=C17",target:"_blank",rel:"noopener noreferrer",children:"CIEM"}),", utilisez cet identifiant"]})]}),(0,Ap.jsx)(ek,{passes:s.id})]})]}),(0,Ap.jsx)(CC,{label:(0,Ap.jsx)(Lp,{en:"Platform ID",fr:"ID de plateforme"}),value:s.id,onChange:i("id"),fullWidth:!0,disabled:n})]}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsxs)(KC,{children:[(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"More information about the platform"}),(0,Ap.jsx)(Ip,{children:"Plus d'informations sur la plateforme"})]}),(0,Ap.jsx)($C,{children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"You can also add aditional information about the platform."}),(0,Ap.jsx)(Ip,{children:"Vous pouvez \xe9galement ajouter des informations suppl\xe9mentaires sur la plateforme."})]})})]}),(0,Ap.jsx)(qC,{value:s.description,onChange:i("description"),multiline:!0,disabled:n})]})]})})})})})};const PB=dn(class extends Ub{constructor(e){super(e),this.state={id:"",type:"",description:{en:"",fr:""}};const{match:t}=e,{region:n}=t.params,r=Bb(Cp);this.platformsRef=xb(r,"".concat(n,"/users/").concat(Sp.currentUser.uid,"/platforms"))}async componentDidMount(){const{match:e}=this.props,{platformID:t}=e.params;if(Sp.currentUser&&t){this.setState({platformID:t});const e=wb(this.platformsRef,t);Pb(e,(e=>this.setState(e.toJSON()))),this.listenerRefs.push(e)}}handleChange(e){return t=>{this.setState({[e]:t.target.value})}}handleClear(e){this.setState({[e]:""})}handleCancelClick(){const{match:e,history:t}=this.props,{language:n,region:r}=e.params;t.push("/".concat(n,"/").concat(r,"/platforms"))}async handleSubmitClick(){const{history:e,match:t}=this.props,{region:n,language:r,platformID:i}=t.params;i?kb(wb(this.platformsRef,i),this.state):this.platformsRef.push(this.state),e.push("/".concat(r,"/").concat(n,"/platforms"))}render(){return(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(jB,{value:this.state,handleClear:e=>this.handleClear(e),updatePlatformEvent:e=>this.handleChange(e),paperClass:ZC})}),(0,Ap.jsxs)(e_,{item:!0,xs:!0,children:[(0,Ap.jsx)(c_,{startIcon:(0,Ap.jsx)(lC,{}),variant:"contained",color:"primary",onClick:()=>this.handleSubmitClick(),disabled:!this.state.id,children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Save"}),(0,Ap.jsx)(Ip,{children:"Enregistrer"})]})}),(0,Ap.jsx)(c_,{style:{marginLeft:"10px"},variant:"contained",color:"secondary",onClick:()=>this.handleCancelClick(),children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Cancel"}),(0,Ap.jsx)(Ip,{children:"Annuler"})]})})]})]})}}),IB=e=>{let{children:t}=e;const{language:n,region:r}=mn(),i="/cioos-".concat(r,"-").concat(n,".png");return(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)("img",{src:"/metadata-entry-form"+i,alt:r})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,style:{paddingLeft:"50px"},children:t})]})},LB=e=>{let{match:t}=e;const{loggedIn:n,authIsLoading:r,isReviewer:o,isAdmin:a}=(0,i.useContext)(Fb);return(0,Ap.jsx)(Ap.Fragment,{children:r?(0,Ap.jsx)(r_,{}):(0,Ap.jsx)(IB,{children:n?(0,Ap.jsx)(aB,{children:(0,Ap.jsxs)(un,{children:[(0,Ap.jsx)(rn,{path:"".concat(t.path,"/"),exact:!0,component:tT}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/new"),component:iB}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/contacts/:contactID"),component:sB}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/contacts/new"),component:sB}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/contacts"),component:oT}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/instruments/:instrumentID"),component:cB}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/instruments"),component:sT}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/platforms/:platformID"),component:PB}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/platforms"),component:AB}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/shared"),component:lT}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/:userID/:recordID"),component:iB}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/submissions"),component:tT}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/published"),component:nT}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/reviewer"),component:a||o?gB:fC}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/admin"),component:a||o?SB:fC}),(0,Ap.jsx)(rn,{path:"".concat(t.path,"/sentry-test"),component:OB}),(0,Ap.jsx)(rn,{path:"*",component:fC})]})}):(0,Ap.jsx)(cT,{})})})},RB=e=>{let{match:t}=e;const{region:n,language:r}=mn(),i=(0,i_.c)({overrides:{MuiTooltip:{tooltip:{fontSize:"1em"}},MuiFormControlLabel:{root:{"&.Mui-disabled":{"& .MuiCheckbox-root":{color:"#ababab"},"& .MuiTypography-root":{color:"#ababab"}}}},MuiInputBase:{input:{"&.Mui-disabled":{color:"#ababab"}}},MuiAccordionDetails:{root:{flexDirection:"column"}}},palette:{primary:{main:Cn[n].colors.primary},secondary:{main:Cn[n].colors.secondary}},props:{MuiTextField:{variant:"outlined"},MuiSelect:{variant:"outlined"},MuiButton:{variant:"outlined"}}}),o={en:"".concat(Cn[n].title[r]," Metadata Intake Form"),fr:"Formulaire de r\xe9ception des m\xe9tadonn\xe9es ".concat(Cn[n].title[r])};return(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsxs)($y,{children:[(0,Ap.jsx)("title",{children:o[r]}),(0,Ap.jsx)("link",{rel:"icon",type:"image/png",href:"".concat("/metadata-entry-form","/favicons/").concat(n,".ico"),sizes:"16x16"})]}),(0,Ap.jsx)(zb,{children:(0,Ap.jsx)(s_,{theme:i,children:(0,Ap.jsx)(Wb,{children:(0,Ap.jsx)(LB,{match:t})})})})]})};var NB=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.raised,a=void 0!==o&&o,s=(0,Yn.c)(e,["classes","className","raised"]);return i.createElement(Xn,(0,at.c)({className:(0,kn.c)(n.root,r),elevation:a?8:1,ref:t},s))}));const DB=(0,Gn.c)({root:{overflow:"hidden"}},{name:"MuiCard"})(NB);var MB=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.focusVisibleClassName,s=(0,Yn.c)(e,["children","classes","className","focusVisibleClassName"]);return i.createElement(Er,(0,at.c)({className:(0,kn.c)(r.root,o),focusVisibleClassName:(0,kn.c)(a,r.focusVisible),ref:t},s),n,i.createElement("span",{className:r.focusHighlight}))}));const BB=(0,Gn.c)((function(e){return{root:{display:"block",textAlign:"inherit",width:"100%","&:hover $focusHighlight":{opacity:e.palette.action.hoverOpacity},"&$focusVisible $focusHighlight":{opacity:.12}},focusVisible:{},focusHighlight:{overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}}}),{name:"MuiCardActionArea"})(MB);var QB=i.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,a=void 0===o?"div":o,s=(0,Yn.c)(e,["classes","className","component"]);return i.createElement(a,(0,at.c)({className:(0,kn.c)(n.root,r),ref:t},s))}));const UB=(0,Gn.c)({root:{padding:16,"&:last-child":{paddingBottom:24}}},{name:"MuiCardContent"})(QB);var FB=["video","audio","picture","iframe","img"],zB=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.component,s=void 0===a?"div":a,l=e.image,c=e.src,u=e.style,d=(0,Yn.c)(e,["children","classes","className","component","image","src","style"]),p=-1!==FB.indexOf(s),h=!p&&l?(0,at.c)({backgroundImage:'url("'.concat(l,'")')},u):u;return i.createElement(s,(0,at.c)({className:(0,kn.c)(r.root,o,p&&r.media,-1!=="picture img".indexOf(s)&&r.img),ref:t,style:h,src:p?l||c:void 0},d),n)}));const qB=(0,Gn.c)({root:{display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},media:{width:"100%"},img:{objectFit:"cover"}},{name:"MuiCardMedia"})(zB),HB=An({root:{maxWidth:345},media:{height:400,"&:hover":{filter:"brightness( 100% ) contrast( 100% ) saturate( 200% ) blur( 0px ) hue-rotate( 197deg )"}}});function WB(e){let{region:t,regionSummary:n}=e;const r=hn(),{language:i}=mn(),o=HB(),a=Cn[t],s="/cioos-".concat(t,"-").concat(i,".png");return(0,Ap.jsx)(DB,{className:o.root,onClick:()=>r.push("/".concat(i,"/").concat(t)),style:{minHeight:"500px",minWidth:"400px"},children:(0,Ap.jsxs)(BB,{children:[(0,Ap.jsx)(qB,{className:o.media,image:"".concat("/metadata-entry-form","/map-").concat(t,".jpg"),title:a.title[i]}),(0,Ap.jsxs)(UB,{children:[(0,Ap.jsx)("div",{children:(0,Ap.jsx)("img",{src:"/metadata-entry-form"+s,alt:t,style:{margin:"10px",maxWidth:"300px",maxHeight:"80px"}})}),(0,Ap.jsx)(Or,{variant:"body2",color:"textSecondary",component:"p",children:n})]})]})})}function GB(){const{language:e}=mn();return(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)($y,{children:(0,Ap.jsx)("title",{children:{en:"Metadata Intake Form",fr:"Formulaire de r\xe9ception des m\xe9tadonn\xe9es"}[e]})}),(0,Ap.jsxs)(e_,{container:!0,direction:"column",spacing:2,children:[(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(Or,{variant:"h6",children:(0,Ap.jsxs)(Lp,{children:[(0,Ap.jsx)(Pp,{children:"Welcome to the CIOOS Metadata Entry Tool. To get started, please select the region where your data was collected."}),(0,Ap.jsx)(Ip,{children:"Bienvenue dans l'outil de saisie de m\xe9tadonn\xe9es du SIOOC. Pour commencer, veuillez s\xe9lectionner la r\xe9gion dans laquelle vos donn\xe9es ont \xe9t\xe9 collect\xe9es."})]})})}),(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(e_,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"stretch",children:Object.entries(Cn).map((t=>{let[n,r]=t;return r.showInRegionSelector?(0,Ap.jsx)(e_,{item:!0,xs:!0,children:(0,Ap.jsx)(WB,{region:n,regionSummary:r.introPageText[e]})},n):null}))})})]})]})}const VB=":language(en|fr)",$B=":region(".concat(Object.keys(Cn).join("|"),")"),KB=()=>(0,Ap.jsx)(gn,{basename:"/",children:(0,Ap.jsxs)(un,{children:[(0,Ap.jsx)(rn,{exact:!0,path:"/",children:(0,Ap.jsx)(Jt,{to:"/en/region-select"})}),(0,Ap.jsx)(rn,{path:"/".concat(VB,"/region-select"),exact:!0,component:()=>(0,Ap.jsx)(Wb,{children:(0,Ap.jsx)(GB,{})})}),(0,Ap.jsx)(rn,{path:"/".concat(VB,"/").concat($B),component:RB}),(0,Ap.jsx)(rn,{path:"*",children:(0,Ap.jsx)(Jt,{to:"/en/region-select"})})]})});Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));(function(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=we),void 0===e.release){var t=(0,u.mm)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!1),function(e,t){!0===t.debug&&c.Q.enable();var n=(0,l.WS)(),r=new e(t);n.bindClient(r)}(fe,e),e.autoSessionTracking&&function(){var e=(0,u.mm)(),t=(0,l.WS)(),n="complete"===document.readyState,r=!1,i=function(){r&&n&&t.endSession()},o=function(){n=!0,i(),e.removeEventListener("load",o)};t.startSession(),n||e.addEventListener("load",o);try{var a=new PerformanceObserver((function(e,t){e.getEntries().forEach((function(e){"first-contentful-paint"===e.name&&e.startTime{e.unregister()})).catch((e=>{console.error(e.message)}))})()})(); +//# sourceMappingURL=main.4634a5ac.js.map \ No newline at end of file diff --git a/static/js/main.7b2d96a3.js.LICENSE.txt b/static/js/main.4634a5ac.js.LICENSE.txt similarity index 100% rename from static/js/main.7b2d96a3.js.LICENSE.txt rename to static/js/main.4634a5ac.js.LICENSE.txt diff --git a/static/js/main.7b2d96a3.js.map b/static/js/main.4634a5ac.js.map similarity index 63% rename from static/js/main.7b2d96a3.js.map rename to static/js/main.4634a5ac.js.map index 02b4e60c..abe0b2ad 100644 --- a/static/js/main.7b2d96a3.js.map +++ b/static/js/main.4634a5ac.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/main.7b2d96a3.js","mappings":";6hEAEA,MAAMA,EAAiB,WACrB,OAAOC,KAAKC,IAAIC,MAClB,EAEMC,EAAkB,WAAuB,IAAbC,EAAOC,UAAAH,OAAA,QAAAI,IAAAD,UAAA,GAAAA,UAAA,GAAG,EAC1C,GAAID,GAAW,GAAKA,EAAUJ,KAAKD,iBACjC,OAAO,KACF,CACL,MAAOQ,EAAMC,GAAWR,KAA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,WAEvEC,WAAY,CAAC,wBAAyB,SAAU,QAAS,oBAAqB,SAAU,WAExFC,qBAAsB,CAClB,yBACA,6BACA,gCAGJC,+BAAgC,CAC5B,YACA,0BACA,eACA,6BACA,WAGJC,gBAAiB,CACb,MACA,0BACA,2BACA,kBACA,aACA,qBACA,iBACA,YACA,kBACA,uBACA,6BACA,OACA,SACA,SACA,aAGJC,MAAO,EACPC,OAAQ,EACRC,SAAU,EAEVC,mBAAoB,YACpBC,mBAAoB,iBAEpBC,cAAe,gBAcfC,oBAAqB,gSACrBC,kBAAmB,8KACnBC,sBAAuB,4KACvBlD,6BAA8B,4KAC9BL,2BAA4B,+KAC5BwD,sBAAuB,6KAEvBC,oBAAqB,oOAErBC,iBAAkB,ySAElBxE,mBAAoB,oCACpBG,kBAAmB,mCAEtBsE,sBAAuB,2CACvBC,uBAAwB,2CAErBC,gBAAiB,CAAC,QAAS,cAAe,eAAgB,UAE1DlE,eAAgB,CACZ,SACA,QACA,oBACA,WACA,WACA,mBACA,cACA,UACA,WACA,SACA,oBACA,qBACA,qBACA,QACA,OACA,cACA,cACA,WACA,YACA,kBACA,YACA,WACA,YACA,kBACA,gBACA,iBACA,aACA,aAEJmE,SAAU,CACN,SACA,QACA,oBACA,WACA,WACA,mBACA,cACA,UACA,WACA,SACA,oBACA,qBACA,qBACA,QACA,OACA,cACA,cACA,WACA,YACA,kBACA,YACA,WACA,YACA,kBACA,gBACA,iBACA,aACA,aAEJC,kBAAmB,CACf,cACA,iBACA,oBACA,WACA,UACA,OACA,QACA,UACA,gBACA,SACA,kBACA,oBACA,cACA,kBACA,UACA,oBACA,UACA,SACA,aACA,mBAQJxE,eAAgB,CACZ,eACA,SACA,aACA,WACA,gBACA,mBACA,iBACA,YACA,aACA,aAEJyE,0BAA2B,CACvB,QACA,mBAEJC,mBAAoB,SAASC,GAGzB,IAFA,IAAIpwF,EAAO,CAAC,QAAS,QAAS,OAAQ,MAAO,WACzCghF,EAAM,CAAC,EACF58E,EAAE,E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,UACA,KACA,MACA,WACA,KACA,KACA,KACA,KACA,MACA,KACA,KACA,KACA,MACA,KACA,KACA,MACA,MACA,KACA,UACA,MACA,MACA,KACA,MACA,MACA,KACA,MACA,MACA,KACA,MACA,KACA,MACA,KACA,KACA,KACA,KACA,MACA,KACA,KACA,MACA,MACA,MACA,MACA,KACA,KACA,KACA,KACA,MACA,KACA,KACA,KACA,KACA,KACA,MACA,KACA,KACA,UACA,KACA,KACA,KACA,MACA,MACA,KACA,MACA,KACA,MACA,MACA,KACA,MACA,KACA,MACA,KACA,KACA,MACA,MACA,MACA,KACA,KACA,MACA,KACA,MACA,KACA,MACA,KACA,KACA,KACA,MACA,KACA,KACA,KACA,MACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,MACA,MACA,KACA,KACA,KACA,KACA,MACA,KACA,MACA,KACA,MACA,MACA,KACA,MACA,MACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,MACA,KACA,MACA,KACA,MACA,KACA,KACA,KACA,KACA,KACA,MACA,KACA,MACA,KACA,MACA,MACA,KACA,MACA,KACA,MACA,MACA,KACA,KACA,MACA,MACA,KACA,KACA,MACA,MACA,UACA,MACA,KACA,MACA,KACA,MACA,KACA,KACA,KACA,MACA,KACA,MACA,KACA,MACA,KACA,KACA,KACA,MACA,MACA,MACA,KACA,MACA,MACA,MACA,KACA,SACA,MACA,KACA,MACA,KACA,MACA,KACA,KACA,MACA,KACA,MACA,MACA,MACA,KACA,KACA,KACA,MACA,KACA,KACA,KACA,MACA,MACA,MACA,KACA,MACA,MACA,MACA,MACA,KACA,KACA,MACA,MACA,MACA,KACA,KACA,MACA,KACA,KACA,MACA,KACA,UACA,WACA,KACA,MACA,KACA,KACA,MACA,MACA,KACA,MACA,MACA,KACA,KACA,KACA,KACA,MACA,MACA,KACA,MACA,SACA,KACA,MACA,KACA,KACA,MACA,KACA,KACA,UACA,KACA,KACA,MACA,KACA,KACA,MACA,KACA,KACA,KACA,KACA,MACA,MACA,KACA,MACA,MACA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2EACFjB,aAAc,CAAC,IAAImW,GAAa1B,gBAIhC1tP,iBAAkB,IAGtBjlB,EAAAA,QAAgBi/U,EAAAA,GAAAA,KAACq/I,GAAG,IAAKt3gB,SAASqwK,eAAe,SFqH3C,kBAAmBrwB,WACrBA,UAAUorO,cAAc5+P,MACrB/gH,MAAM8/Y,IACLA,EAAa5rW,YAAY,IAE1Br3C,OAAOnB,IAEN/N,QAAQ+N,MAAMA,EAAMS,QAAQ","sources":["../node_modules/@citation-js/core/lib-mjs/Cite/log.js","../node_modules/@citation-js/core/lib-mjs/Cite/validate.js","../node_modules/@citation-js/core/lib-mjs/Cite/options.js","../node_modules/@citation-js/core/lib-mjs/plugins/input/dataType.js","../node_modules/@citation-js/core/lib-mjs/plugins/input/graph.js","../node_modules/@citation-js/core/lib-mjs/logger.js","../node_modules/@citation-js/core/lib-mjs/plugins/input/type.js","../node_modules/@citation-js/core/lib-mjs/plugins/input/parser.js","../node_modules/@citation-js/core/lib-mjs/plugins/input/csl.js","../node_modules/@citation-js/core/lib-mjs/util/deepCopy.js","../node_modules/@citation-js/core/lib-mjs/plugins/input/chain.js","../node_modules/@citation-js/core/lib-mjs/plugins/input/data.js","../node_modules/@citation-js/core/lib-mjs/plugins/input/register.js","../node_modules/@citation-js/core/lib-mjs/plugins/input/index.js","../node_modules/@citation-js/core/lib-mjs/util/fetchId.js","../node_modules/@citation-js/core/lib-mjs/Cite/set.js","../node_modules/@citation-js/core/lib-mjs/plugin-common/output/label.js","../node_modules/@citation-js/core/lib-mjs/Cite/sort.js","../node_modules/@citation-js/core/lib-mjs/Cite/async.js","../node_modules/@citation-js/core/lib-mjs/util/register.js","../node_modules/@citation-js/core/lib-mjs/plugins/output.js","../node_modules/@citation-js/core/lib-mjs/Cite/get.js","../node_modules/@citation-js/core/lib-mjs/Cite/index.js","../node_modules/@citation-js/core/lib-mjs/plugins/dict.js","../node_modules/@citation-js/core/lib-mjs/plugins/config.js","../node_modules/@citation-js/core/lib-mjs/plugins/index.js","../node_modules/@citation-js/core/lib-mjs/util/fetchFile.js","../node_modules/@citation-js/core/lib-mjs/util/stack.js","../node_modules/@citation-js/core/lib-mjs/util/grammar.js","../node_modules/@citation-js/core/lib-mjs/util/translator.js","../node_modules/@citation-js/core/lib-mjs/plugin-common/input/empty.js","../node_modules/@citation-js/core/lib-mjs/plugin-common/input/json.js","../node_modules/@citation-js/core/lib-mjs/plugin-common/input/jquery.js","../node_modules/@citation-js/core/lib-mjs/plugin-common/input/html.js","../node_modules/@citation-js/core/lib-mjs/plugin-common/input/index.js","../node_modules/@citation-js/core/lib-mjs/plugin-common/output/json.js","../node_modules/@citation-js/core/lib-mjs/plugin-common/output/index.js","../node_modules/@citation-js/core/lib-mjs/plugin-common/index.js","../node_modules/@citation-js/core/lib-mjs/index.js","../node_modules/@citation-js/core/lib/logger.js","../node_modules/@citation-js/core/lib/plugin-common/input/empty.js","../node_modules/@citation-js/core/lib/plugin-common/input/html.js","../node_modules/@citation-js/core/lib/plugin-common/input/index.js","../node_modules/@citation-js/core/lib/plugin-common/input/jquery.js","../node_modules/@citation-js/core/lib/plugin-common/input/json.js","../node_modules/@citation-js/core/lib/plugin-common/input/url.js","../node_modules/@citation-js/core/lib/plugin-common/output/index.js","../node_modules/@citation-js/core/lib/plugin-common/output/json.js","../node_modules/@citation-js/core/lib/plugin-common/output/label.js","../node_modules/@citation-js/core/lib/plugins/config.js","../node_modules/@citation-js/core/lib/plugins/dict.js","../node_modules/@citation-js/core/lib/plugins/index.js","../node_modules/@citation-js/core/lib/plugins/input/chain.js","../node_modules/@citation-js/core/lib/plugins/input/csl.js","../node_modules/@citation-js/core/lib/plugins/input/data.js","../node_modules/@citation-js/core/lib/plugins/input/dataType.js","../node_modules/@citation-js/core/lib/plugins/input/graph.js","../node_modules/@citation-js/core/lib/plugins/input/index.js","../node_modules/@citation-js/core/lib/plugins/input/parser.js","../node_modules/@citation-js/core/lib/plugins/input/register.js","../node_modules/@citation-js/core/lib/plugins/input/type.js","../node_modules/@citation-js/core/lib/plugins/output.js","../node_modules/@citation-js/core/lib/util/deepCopy.js","../node_modules/@citation-js/core/lib/util/fetchFile.js","../node_modules/@citation-js/core/lib/util/fetchId.js","../node_modules/@citation-js/core/lib/util/grammar.js","../node_modules/@citation-js/core/lib/util/index.js","../node_modules/@citation-js/core/lib/util/register.js","../node_modules/@citation-js/core/lib/util/stack.js","../node_modules/@citation-js/core/lib/util/translator.js","../node_modules/@citation-js/name/lib/index.js","../node_modules/@citation-js/name/lib/input.js","../node_modules/@citation-js/name/lib/output.js","../node_modules/@citation-js/plugin-bibjson/lib-mjs/json.js","../node_modules/@citation-js/plugin-bibjson/lib-mjs/index.js","../node_modules/@citation-js/plugin-bibjson/node_modules/@citation-js/date/lib/index.js","../node_modules/@citation-js/plugin-bibjson/node_modules/@citation-js/date/lib/input.js","../node_modules/@citation-js/plugin-bibjson/node_modules/@citation-js/date/lib/output.js","../node_modules/@citation-js/plugin-bibtex/lib-mjs/input/constants.js","../node_modules/@citation-js/plugin-bibtex/lib-mjs/input/file.js","../node_modules/@citation-js/plugin-bibtex/lib-mjs/input/bibtxt.js","../node_modules/@citation-js/plugin-bibtex/lib-mjs/config.js","../node_modules/@citation-js/plugin-bibtex/lib-mjs/mapping/shared.js","../node_modules/@citation-js/plugin-bibtex/lib-mjs/mapping/biblatex.js","../node_modules/@citation-js/plugin-bibtex/lib-mjs/mapping/bibtex.js","../node_modules/@citation-js/plugin-bibtex/lib-mjs/mapping/index.js","../node_modules/@citation-js/plugin-bibtex/lib-mjs/input/name.js","../node_modules/@citation-js/plugin-bibtex/lib-mjs/input/value.js","../node_modules/@citation-js/plugin-bibtex/lib-mjs/input/entries.js","../node_modules/@citation-js/plugin-bibtex/lib-mjs/input/index.js","../node_modules/@citation-js/plugin-bibtex/lib-mjs/output/value.js","../node_modules/@citation-js/plugin-bibtex/lib-mjs/output/entries.js","../node_modules/@citation-js/plugin-bibtex/lib-mjs/output/bibtex.js","../node_modules/@citation-js/plugin-bibtex/lib-mjs/output/index.js","../node_modules/@citation-js/plugin-bibtex/lib-mjs/output/bibtxt.js","../node_modules/@citation-js/plugin-bibtex/lib-mjs/index.js","../node_modules/@citation-js/plugin-bibtex/lib/config.js","../node_modules/@citation-js/plugin-bibtex/lib/input/bibtxt.js","../node_modules/@citation-js/plugin-bibtex/lib/input/constants.js","../node_modules/@citation-js/plugin-bibtex/lib/input/entries.js","../node_modules/@citation-js/plugin-bibtex/lib/input/file.js","../node_modules/@citation-js/plugin-bibtex/lib/input/index.js","../node_modules/@citation-js/plugin-bibtex/lib/input/name.js","../node_modules/@citation-js/plugin-bibtex/lib/input/value.js","../node_modules/@citation-js/plugin-bibtex/lib/mapping/biblatex.js","../node_modules/@citation-js/plugin-bibtex/lib/mapping/bibtex.js","../node_modules/@citation-js/plugin-bibtex/lib/mapping/index.js","../node_modules/@citation-js/plugin-bibtex/lib/mapping/shared.js","../node_modules/@citation-js/plugin-bibtex/lib/output/bibtex.js","../node_modules/@citation-js/plugin-bibtex/lib/output/bibtxt.js","../node_modules/@citation-js/plugin-bibtex/lib/output/entries.js","../node_modules/@citation-js/plugin-bibtex/lib/output/index.js","../node_modules/@citation-js/plugin-bibtex/lib/output/value.js","../node_modules/@citation-js/plugin-bibtex/node_modules/@citation-js/date/lib/index.js","../node_modules/@citation-js/plugin-bibtex/node_modules/@citation-js/date/lib/input.js","../node_modules/@citation-js/plugin-bibtex/node_modules/@citation-js/date/lib/output.js","../node_modules/@citation-js/plugin-csl/lib-mjs/locales.js","../node_modules/@citation-js/plugin-csl/lib-mjs/styles.js","../node_modules/@citation-js/plugin-csl/lib-mjs/engines.js","../node_modules/@citation-js/plugin-csl/lib-mjs/bibliography.js","../node_modules/@citation-js/plugin-csl/lib-mjs/index.js","../node_modules/@citation-js/plugin-csl/lib-mjs/attr.js","../node_modules/@citation-js/plugin-csl/lib-mjs/citation.js","../node_modules/@citation-js/plugin-csl/lib/engines.js","../node_modules/@citation-js/plugin-csl/lib/locales.js","../node_modules/@citation-js/plugin-csl/lib/styles.js","../node_modules/@citation-js/plugin-doi/lib-mjs/id.js","../node_modules/@citation-js/plugin-doi/lib-mjs/type.js","../node_modules/@citation-js/plugin-doi/lib-mjs/json.js","../node_modules/@citation-js/plugin-doi/lib-mjs/api.js","../node_modules/@citation-js/plugin-doi/lib-mjs/index.js","../node_modules/@citation-js/plugin-ris/lib-mjs/converters.js","../node_modules/@citation-js/plugin-ris/lib-mjs/spec/old.js","../node_modules/@citation-js/plugin-ris/lib-mjs/spec/mixed.js","../node_modules/@citation-js/plugin-ris/lib-mjs/spec/index.js","../node_modules/@citation-js/plugin-ris/lib-mjs/ris.js","../node_modules/@citation-js/plugin-ris/lib-mjs/index.js","../node_modules/@citation-js/plugin-ris/node_modules/@citation-js/date/lib/index.js","../node_modules/@citation-js/plugin-ris/node_modules/@citation-js/date/lib/input.js","../node_modules/@citation-js/plugin-ris/node_modules/@citation-js/date/lib/output.js","../node_modules/@citation-js/plugin-wikidata/lib-mjs/id.js","../node_modules/@citation-js/plugin-wikidata/lib-mjs/api.js","../node_modules/@citation-js/plugin-wikidata/lib-mjs/response.js","../node_modules/@citation-js/plugin-wikidata/lib-mjs/prop.js","../node_modules/@citation-js/plugin-wikidata/lib-mjs/entity.js","../node_modules/@citation-js/plugin-wikidata/lib-mjs/url.js","../node_modules/@citation-js/plugin-wikidata/lib-mjs/index.js","../node_modules/@citation-js/plugin-wikidata/node_modules/@citation-js/date/lib/index.js","../node_modules/@citation-js/plugin-wikidata/node_modules/@citation-js/date/lib/input.js","../node_modules/@citation-js/plugin-wikidata/node_modules/@citation-js/date/lib/output.js","../node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js","../node_modules/@material-ui/core/esm/styles/colorManipulator.js","../node_modules/@material-ui/core/esm/styles/createBreakpoints.js","../node_modules/@material-ui/core/esm/styles/createMixins.js","../node_modules/@material-ui/core/esm/colors/common.js","../node_modules/@material-ui/core/esm/colors/grey.js","../node_modules/@material-ui/core/esm/colors/indigo.js","../node_modules/@material-ui/core/esm/colors/pink.js","../node_modules/@material-ui/core/esm/colors/red.js","../node_modules/@material-ui/core/esm/colors/orange.js","../node_modules/@material-ui/core/esm/colors/blue.js","../node_modules/@material-ui/core/esm/colors/green.js","../node_modules/@material-ui/core/esm/styles/createPalette.js","../node_modules/@material-ui/core/esm/styles/createTypography.js","../node_modules/@material-ui/core/esm/styles/shadows.js","../node_modules/@material-ui/core/esm/styles/shape.js","../node_modules/@material-ui/core/esm/styles/createTheme.js","../node_modules/@material-ui/core/esm/styles/createSpacing.js","../node_modules/@material-ui/core/esm/styles/defaultTheme.js","../node_modules/@material-ui/core/esm/styles/transitions.js","../node_modules/@material-ui/styles/esm/withStyles/withStyles.js","../node_modules/@material-ui/core/esm/styles/withStyles.js","../node_modules/@material-ui/core/esm/styles/zIndex.js","../node_modules/@material-ui/core/esm/utils/capitalize.js","../node_modules/@material-ui/core/esm/utils/createChainedFunction.js","../node_modules/@material-ui/core/esm/utils/createSvgIcon.js","../node_modules/@material-ui/core/esm/utils/debounce.js","../node_modules/@material-ui/core/esm/utils/deprecatedPropType.js","../node_modules/@material-ui/core/esm/utils/requirePropFactory.js","../node_modules/@material-ui/core/esm/utils/unsupportedProp.js","../node_modules/@material-ui/core/esm/utils/isMuiElement.js","../node_modules/@material-ui/core/esm/utils/ownerDocument.js","../node_modules/@material-ui/core/esm/utils/ownerWindow.js","../node_modules/@material-ui/core/esm/utils/setRef.js","../node_modules/@material-ui/core/esm/utils/unstable_useId.js","../node_modules/@material-ui/core/esm/utils/useControlled.js","../node_modules/@material-ui/core/esm/utils/useEventCallback.js","../node_modules/@material-ui/core/esm/utils/useForkRef.js","../node_modules/@material-ui/core/esm/utils/useIsFocusVisible.js","../node_modules/@material-ui/icons/ArrowDownward.js","../node_modules/@material-ui/icons/Cancel.js","../node_modules/@material-ui/icons/CheckCircle.js","../node_modules/@material-ui/icons/DragHandle.js","../node_modules/@material-ui/icons/ExpandMore.js","../node_modules/@material-ui/icons/Translate.js","../node_modules/@material-ui/icons/utils/createSvgIcon.js","../node_modules/@material-ui/styles/esm/ThemeProvider/nested.js","../node_modules/@material-ui/styles/esm/getThemeProps/getThemeProps.js","../node_modules/is-in-browser/dist/module.js","../node_modules/jss/dist/jss.esm.js","../node_modules/@material-ui/styles/esm/makeStyles/multiKeyStore.js","../node_modules/@material-ui/styles/esm/createGenerateClassName/createGenerateClassName.js","../node_modules/jss-plugin-rule-value-function/dist/jss-plugin-rule-value-function.esm.js","../node_modules/jss-plugin-global/dist/jss-plugin-global.esm.js","../node_modules/jss-plugin-nested/dist/jss-plugin-nested.esm.js","../node_modules/hyphenate-style-name/index.js","../node_modules/jss-plugin-camel-case/dist/jss-plugin-camel-case.esm.js","../node_modules/jss-plugin-default-unit/dist/jss-plugin-default-unit.esm.js","../node_modules/css-vendor/dist/css-vendor.esm.js","../node_modules/jss-plugin-vendor-prefixer/dist/jss-plugin-vendor-prefixer.esm.js","../node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.esm.js","../node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js","../node_modules/@material-ui/styles/esm/jssPreset/jssPreset.js","../node_modules/@material-ui/styles/esm/makeStyles/indexCounter.js","../node_modules/@material-ui/styles/esm/getStylesCreator/noopTheme.js","../node_modules/@material-ui/styles/esm/makeStyles/makeStyles.js","../node_modules/@material-ui/styles/esm/getStylesCreator/getStylesCreator.js","../node_modules/@material-ui/styles/esm/mergeClasses/mergeClasses.js","../node_modules/@material-ui/styles/esm/useTheme/ThemeContext.js","../node_modules/@material-ui/styles/esm/useTheme/useTheme.js","../node_modules/@material-ui/system/esm/breakpoints.js","../node_modules/@material-ui/system/esm/merge.js","../node_modules/@material-ui/system/esm/spacing.js","../node_modules/@material-ui/system/esm/memoize.js","../node_modules/@material-ui/utils/esm/deepmerge.js","../node_modules/@material-ui/utils/esm/formatMuiErrorMessage.js","../node_modules/@sentry/hub/src/session.ts","../node_modules/@sentry/hub/src/hub.ts","../node_modules/@sentry/hub/src/scope.ts","../node_modules/@sentry/types/src/transaction.ts","../node_modules/@sentry/tracing/src/errors.ts","../node_modules/@sentry/tracing/src/hubextensions.ts","../node_modules/@sentry/tracing/src/idletransaction.ts","../node_modules/@sentry/tracing/src/integrations/mongo.ts","../node_modules/@sentry/tracing/src/integrations/mysql.ts","../node_modules/@sentry/tracing/src/integrations/postgres.ts","../node_modules/@sentry/tracing/src/span.ts","../node_modules/@sentry/tracing/src/spanstatus.ts","../node_modules/@sentry/tracing/src/transaction.ts","../node_modules/@sentry/tracing/src/utils.ts","../node_modules/@sentry/types/src/session.ts","../node_modules/@sentry/utils/src/browser.ts","../node_modules/@sentry/utils/src/instrument.ts","../node_modules/@sentry/utils/src/is.ts","../node_modules/@sentry/utils/src/logger.ts","../node_modules/@sentry/utils/src/misc.ts","../node_modules/@sentry/utils/src/node.ts","../node_modules/@sentry/utils/src/memo.ts","../node_modules/@sentry/utils/src/object.ts","../node_modules/@sentry/utils/src/stacktrace.ts","../node_modules/@sentry/utils/src/string.ts","../node_modules/@sentry/utils/src/supports.ts","../node_modules/@sentry/utils/src/syncpromise.ts","../node_modules/@sentry/utils/src/time.ts","../node_modules/array-move/index.js","../node_modules/base64-js/index.js","../node_modules/buffer/index.js","../node_modules/citation-js/index.js","../node_modules/citation-js/node_modules/@citation-js/date/lib/index.js","../node_modules/citation-js/node_modules/@citation-js/date/lib/input.js","../node_modules/citation-js/node_modules/@citation-js/date/lib/output.js","../node_modules/citeproc/citeproc_commonjs.js","../node_modules/clsx/dist/clsx.m.js","../node_modules/fast-deep-equal/index.js","../node_modules/file-saver/src/FileSaver.js","../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../node_modules/ieee754/index.js","../node_modules/isomorphic-fetch/fetch-npm-browserify.js","../node_modules/just-debounce-it/index.js","../node_modules/leaflet-draw/dist/leaflet.draw.js","../node_modules/leaflet/src/core/Util.js","../node_modules/leaflet/src/core/Class.js","../node_modules/leaflet/src/core/Events.js","../node_modules/leaflet/src/geometry/Point.js","../node_modules/leaflet/src/geometry/Bounds.js","../node_modules/leaflet/src/geo/LatLngBounds.js","../node_modules/leaflet/src/geo/LatLng.js","../node_modules/leaflet/src/geo/crs/CRS.js","../node_modules/leaflet/src/geo/crs/CRS.Earth.js","../node_modules/leaflet/src/geo/projection/Projection.SphericalMercator.js","../node_modules/leaflet/src/geometry/Transformation.js","../node_modules/leaflet/src/geo/crs/CRS.EPSG3857.js","../node_modules/leaflet/src/layer/vector/SVG.Util.js","../node_modules/leaflet/src/core/Browser.js","../node_modules/leaflet/src/dom/DomEvent.Pointer.js","../node_modules/leaflet/src/dom/DomEvent.DoubleTap.js","../node_modules/leaflet/src/dom/DomUtil.js","../node_modules/leaflet/src/dom/DomEvent.js","../node_modules/leaflet/src/dom/PosAnimation.js","../node_modules/leaflet/src/map/Map.js","../node_modules/leaflet/src/control/Control.js","../node_modules/leaflet/src/control/Control.Layers.js","../node_modules/leaflet/src/control/Control.Zoom.js","../node_modules/leaflet/src/control/Control.Scale.js","../node_modules/leaflet/src/control/Control.Attribution.js","../node_modules/leaflet/src/control/index.js","../node_modules/leaflet/src/core/Handler.js","../node_modules/leaflet/src/core/index.js","../node_modules/leaflet/src/dom/Draggable.js","../node_modules/leaflet/src/geometry/PolyUtil.js","../node_modules/leaflet/src/geometry/LineUtil.js","../node_modules/leaflet/src/geo/projection/Projection.LonLat.js","../node_modules/leaflet/src/geo/projection/Projection.Mercator.js","../node_modules/leaflet/src/geo/crs/CRS.EPSG3395.js","../node_modules/leaflet/src/geo/crs/CRS.EPSG4326.js","../node_modules/leaflet/src/geo/crs/CRS.Simple.js","../node_modules/leaflet/src/geo/crs/index.js","../node_modules/leaflet/src/layer/Layer.js","../node_modules/leaflet/src/layer/LayerGroup.js","../node_modules/leaflet/src/layer/FeatureGroup.js","../node_modules/leaflet/src/layer/marker/Icon.js","../node_modules/leaflet/src/layer/marker/Icon.Default.js","../node_modules/leaflet/src/layer/marker/Marker.Drag.js","../node_modules/leaflet/src/layer/marker/Marker.js","../node_modules/leaflet/src/layer/vector/Path.js","../node_modules/leaflet/src/layer/vector/CircleMarker.js","../node_modules/leaflet/src/layer/vector/Circle.js","../node_modules/leaflet/src/layer/vector/Polyline.js","../node_modules/leaflet/src/layer/vector/Polygon.js","../node_modules/leaflet/src/layer/GeoJSON.js","../node_modules/leaflet/src/layer/ImageOverlay.js","../node_modules/leaflet/src/layer/VideoOverlay.js","../node_modules/leaflet/src/layer/SVGOverlay.js","../node_modules/leaflet/src/layer/DivOverlay.js","../node_modules/leaflet/src/layer/Popup.js","../node_modules/leaflet/src/layer/Tooltip.js","../node_modules/leaflet/src/layer/marker/DivIcon.js","../node_modules/leaflet/src/layer/marker/index.js","../node_modules/leaflet/src/layer/tile/GridLayer.js","../node_modules/leaflet/src/layer/tile/TileLayer.js","../node_modules/leaflet/src/layer/tile/TileLayer.WMS.js","../node_modules/leaflet/src/layer/tile/index.js","../node_modules/leaflet/src/layer/vector/Renderer.js","../node_modules/leaflet/src/layer/vector/Canvas.js","../node_modules/leaflet/src/layer/vector/SVG.VML.js","../node_modules/leaflet/src/layer/vector/SVG.js","../node_modules/leaflet/src/layer/vector/Renderer.getRenderer.js","../node_modules/leaflet/src/layer/vector/Rectangle.js","../node_modules/leaflet/src/layer/vector/index.js","../node_modules/leaflet/src/layer/index.js","../node_modules/leaflet/src/map/handler/Map.BoxZoom.js","../node_modules/leaflet/src/map/handler/Map.DoubleClickZoom.js","../node_modules/leaflet/src/map/handler/Map.Drag.js","../node_modules/leaflet/src/map/handler/Map.Keyboard.js","../node_modules/leaflet/src/map/handler/Map.ScrollWheelZoom.js","../node_modules/leaflet/src/map/handler/Map.TapHold.js","../node_modules/leaflet/src/map/handler/Map.TouchZoom.js","../node_modules/leaflet/src/map/index.js","../node_modules/moo/moo.js","../node_modules/nunjucks/webpack/universalModuleDefinition","../node_modules/nunjucks/webpack/bootstrap ae4bf11627133d1652a1","../node_modules/nunjucks/nunjucks/src/lib.js","../node_modules/nunjucks/nunjucks/src/object.js","../node_modules/nunjucks/nunjucks/src/runtime.js","../node_modules/nunjucks/nunjucks/src/nodes.js","../node_modules/nunjucks/nunjucks/src/compiler.js","../node_modules/nunjucks/nunjucks/src/loader.js","../node_modules/nunjucks/nunjucks/src/environment.js","../node_modules/nunjucks/nunjucks/src/parser.js","../node_modules/nunjucks/nunjucks/src/lexer.js","../node_modules/nunjucks/nunjucks/src/web-loaders.js","../node_modules/nunjucks/nunjucks/index.js","../node_modules/nunjucks/node_modules/asap/browser-asap.js","../node_modules/nunjucks/node_modules/asap/browser-raw.js","../node_modules/nunjucks/node_modules/webpack/buildin/global.js","../node_modules/nunjucks/node_modules/a-sync-waterfall/index.js","../node_modules/nunjucks/node_modules/webpack/node_modules/events/events.js","../node_modules/nunjucks/nunjucks/src/transformer.js","../node_modules/nunjucks/nunjucks/src/filters.js","../node_modules/nunjucks/nunjucks/src/precompiled-loader.js","../node_modules/nunjucks/nunjucks/src/tests.js","../node_modules/nunjucks/nunjucks/src/globals.js","../node_modules/nunjucks/nunjucks/src/express-app.js","../node_modules/nunjucks/nunjucks/src/precompile.js","../node_modules/nunjucks/nunjucks/src/precompile-global.js","../node_modules/nunjucks/nunjucks/src/jinja-compat.js","../node_modules/object-assign/index.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js","../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/querystring-es3/decode.js","../node_modules/querystring-es3/encode.js","../node_modules/querystring-es3/index.js","../node_modules/react-dom/cjs/react-dom.production.min.js","../node_modules/react-dom/index.js","../node_modules/react-fast-compare/index.js","../node_modules/react-is/cjs/react-is.production.min.js","../node_modules/react-is/index.js","../node_modules/react-router/node_modules/isarray/index.js","../node_modules/react-router/node_modules/path-to-regexp/index.js","../node_modules/react-router/node_modules/react-is/cjs/react-is.production.min.js","../node_modules/react-router/node_modules/react-is/index.js","../node_modules/react-side-effect/lib/index.js","../node_modules/react-smooth-dnd/dist/index.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/cjs/react.production.min.js","../node_modules/react/index.js","../node_modules/react/jsx-runtime.js","../node_modules/scheduler/cjs/scheduler.production.min.js","../node_modules/scheduler/index.js","../node_modules/smooth-dnd/dist/index.js","../node_modules/sync-fetch/browser.js","../node_modules/sync-fetch/node_modules/buffer/index.js","../node_modules/tslib/tslib.es6.js","../node_modules/validator/index.js","../node_modules/validator/lib/alpha.js","../node_modules/validator/lib/blacklist.js","../node_modules/validator/lib/contains.js","../node_modules/validator/lib/equals.js","../node_modules/validator/lib/escape.js","../node_modules/validator/lib/isAfter.js","../node_modules/validator/lib/isAlpha.js","../node_modules/validator/lib/isAlphanumeric.js","../node_modules/validator/lib/isAscii.js","../node_modules/validator/lib/isBIC.js","../node_modules/validator/lib/isBase32.js","../node_modules/validator/lib/isBase58.js","../node_modules/validator/lib/isBase64.js","../node_modules/validator/lib/isBefore.js","../node_modules/validator/lib/isBoolean.js","../node_modules/validator/lib/isBtcAddress.js","../node_modules/validator/lib/isByteLength.js","../node_modules/validator/lib/isCreditCard.js","../node_modules/validator/lib/isCurrency.js","../node_modules/validator/lib/isDataURI.js","../node_modules/validator/lib/isDate.js","../node_modules/validator/lib/isDecimal.js","../node_modules/validator/lib/isDivisibleBy.js","../node_modules/validator/lib/isEAN.js","../node_modules/validator/lib/isEmail.js","../node_modules/validator/lib/isEmpty.js","../node_modules/validator/lib/isEthereumAddress.js","../node_modules/validator/lib/isFQDN.js","../node_modules/validator/lib/isFloat.js","../node_modules/validator/lib/isFullWidth.js","../node_modules/validator/lib/isHSL.js","../node_modules/validator/lib/isHalfWidth.js","../node_modules/validator/lib/isHash.js","../node_modules/validator/lib/isHexColor.js","../node_modules/validator/lib/isHexadecimal.js","../node_modules/validator/lib/isIBAN.js","../node_modules/validator/lib/isIMEI.js","../node_modules/validator/lib/isIP.js","../node_modules/validator/lib/isIPRange.js","../node_modules/validator/lib/isISBN.js","../node_modules/validator/lib/isISIN.js","../node_modules/validator/lib/isISO31661Alpha2.js","../node_modules/validator/lib/isISO31661Alpha3.js","../node_modules/validator/lib/isISO4217.js","../node_modules/validator/lib/isISO6346.js","../node_modules/validator/lib/isISO6391.js","../node_modules/validator/lib/isISO8601.js","../node_modules/validator/lib/isISRC.js","../node_modules/validator/lib/isISSN.js","../node_modules/validator/lib/isIdentityCard.js","../node_modules/validator/lib/isIn.js","../node_modules/validator/lib/isInt.js","../node_modules/validator/lib/isJSON.js","../node_modules/validator/lib/isJWT.js","../node_modules/validator/lib/isLatLong.js","../node_modules/validator/lib/isLength.js","../node_modules/validator/lib/isLicensePlate.js","../node_modules/validator/lib/isLocale.js","../node_modules/validator/lib/isLowercase.js","../node_modules/validator/lib/isLuhnNumber.js","../node_modules/validator/lib/isMACAddress.js","../node_modules/validator/lib/isMD5.js","../node_modules/validator/lib/isMagnetURI.js","../node_modules/validator/lib/isMailtoURI.js","../node_modules/validator/lib/isMimeType.js","../node_modules/validator/lib/isMobilePhone.js","../node_modules/validator/lib/isMongoId.js","../node_modules/validator/lib/isMultibyte.js","../node_modules/validator/lib/isNumeric.js","../node_modules/validator/lib/isOctal.js","../node_modules/validator/lib/isPassportNumber.js","../node_modules/validator/lib/isPort.js","../node_modules/validator/lib/isPostalCode.js","../node_modules/validator/lib/isRFC3339.js","../node_modules/validator/lib/isRgbColor.js","../node_modules/validator/lib/isSemVer.js","../node_modules/validator/lib/isSlug.js","../node_modules/validator/lib/isStrongPassword.js","../node_modules/validator/lib/isSurrogatePair.js","../node_modules/validator/lib/isTaxID.js","../node_modules/validator/lib/isTime.js","../node_modules/validator/lib/isURL.js","../node_modules/validator/lib/isUUID.js","../node_modules/validator/lib/isUppercase.js","../node_modules/validator/lib/isVAT.js","../node_modules/validator/lib/isVariableWidth.js","../node_modules/validator/lib/isWhitelisted.js","../node_modules/validator/lib/ltrim.js","../node_modules/validator/lib/matches.js","../node_modules/validator/lib/normalizeEmail.js","../node_modules/validator/lib/rtrim.js","../node_modules/validator/lib/stripLow.js","../node_modules/validator/lib/toBoolean.js","../node_modules/validator/lib/toDate.js","../node_modules/validator/lib/toFloat.js","../node_modules/validator/lib/toInt.js","../node_modules/validator/lib/trim.js","../node_modules/validator/lib/unescape.js","../node_modules/validator/lib/util/algorithms.js","../node_modules/validator/lib/util/assertString.js","../node_modules/validator/lib/util/includes.js","../node_modules/validator/lib/util/merge.js","../node_modules/validator/lib/util/multilineRegex.js","../node_modules/validator/lib/util/toString.js","../node_modules/validator/lib/whitelist.js","../node_modules/whatwg-fetch/fetch.js","../node_modules/wikibase-sdk/lib/helpers/helpers.js","../node_modules/wikibase-sdk/lib/helpers/parse_claim.js","../node_modules/wikibase-sdk/lib/helpers/parse_responses.js","../node_modules/wikibase-sdk/lib/helpers/rank.js","../node_modules/wikibase-sdk/lib/helpers/simplify.js","../node_modules/wikibase-sdk/lib/helpers/simplify_claims.js","../node_modules/wikibase-sdk/lib/helpers/simplify_entity.js","../node_modules/wikibase-sdk/lib/helpers/simplify_forms.js","../node_modules/wikibase-sdk/lib/helpers/simplify_senses.js","../node_modules/wikibase-sdk/lib/helpers/simplify_sitelinks.js","../node_modules/wikibase-sdk/lib/helpers/simplify_sparql_results.js","../node_modules/wikibase-sdk/lib/helpers/simplify_text_attributes.js","../node_modules/wikibase-sdk/lib/helpers/sitelinks.js","../node_modules/wikibase-sdk/lib/helpers/sitelinks_languages.js","../node_modules/wikibase-sdk/lib/helpers/validate.js","../node_modules/wikibase-sdk/lib/helpers/wikibase_time_to_date_object.js","../node_modules/wikibase-sdk/lib/queries/cirrus_search.js","../node_modules/wikibase-sdk/lib/queries/get_entities.js","../node_modules/wikibase-sdk/lib/queries/get_entities_from_sitelinks.js","../node_modules/wikibase-sdk/lib/queries/get_entity_revision.js","../node_modules/wikibase-sdk/lib/queries/get_many_entities.js","../node_modules/wikibase-sdk/lib/queries/get_reverse_claims.js","../node_modules/wikibase-sdk/lib/queries/get_revisions.js","../node_modules/wikibase-sdk/lib/queries/search_entities.js","../node_modules/wikibase-sdk/lib/queries/sparql_query.js","../node_modules/wikibase-sdk/lib/utils/build_url.js","../node_modules/wikibase-sdk/lib/utils/utils.js","../node_modules/wikibase-sdk/lib/wikibase-sdk.js","../node_modules/wikidata-sdk/wikidata-sdk.js","../node_modules/xml-escape/index.js","../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../node_modules/@babel/runtime/helpers/interopRequireWildcard.js","../node_modules/@babel/runtime/helpers/typeof.js","../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","../node_modules/@babel/runtime/helpers/esm/createClass.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../node_modules/@babel/runtime/helpers/esm/iterableToArray.js","../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../node_modules/@babel/runtime/helpers/esm/slicedToArray.js","../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","../webpack/bootstrap","../webpack/runtime/compat get default export","../webpack/runtime/define property getters","../webpack/runtime/global","../webpack/runtime/harmony module decorator","../webpack/runtime/hasOwnProperty shorthand","../webpack/runtime/make namespace object","../webpack/runtime/publicPath","../node_modules/@sentry/core/src/integrations/functiontostring.ts","../node_modules/@sentry/core/src/integrations/inboundfilters.ts","../node_modules/@sentry/utils/src/polyfill.ts","../node_modules/@sentry/utils/src/error.ts","../node_modules/@sentry/utils/src/dsn.ts","../node_modules/@sentry/core/src/integration.ts","../node_modules/@sentry/core/src/baseclient.ts","../node_modules/@sentry/types/src/status.ts","../node_modules/@sentry/core/src/transports/noop.ts","../node_modules/@sentry/types/src/severity.ts","../node_modules/@sentry/core/src/basebackend.ts","../node_modules/@sentry/browser/src/tracekit.ts","../node_modules/@sentry/browser/src/parsers.ts","../node_modules/@sentry/browser/src/eventbuilder.ts","../node_modules/@sentry/core/src/request.ts","../node_modules/@sentry/core/src/api.ts","../node_modules/@sentry/utils/src/promisebuffer.ts","../node_modules/@sentry/browser/src/transports/base.ts","../node_modules/@sentry/browser/src/transports/fetch.ts","../node_modules/@sentry/browser/src/transports/xhr.ts","../node_modules/@sentry/browser/src/backend.ts","../node_modules/@sentry/minimal/src/index.ts","../node_modules/@sentry/browser/src/helpers.ts","../node_modules/@sentry/browser/src/integrations/breadcrumbs.ts","../node_modules/@sentry/browser/src/version.ts","../node_modules/@sentry/browser/src/client.ts","../node_modules/@sentry/browser/src/integrations/trycatch.ts","../node_modules/@sentry/browser/src/integrations/globalhandlers.ts","../node_modules/@sentry/browser/src/integrations/linkederrors.ts","../node_modules/@sentry/browser/src/integrations/useragent.ts","../node_modules/@sentry/browser/src/sdk.ts","../node_modules/@sentry/tracing/src/browser/backgroundtab.ts","../node_modules/@sentry/tracing/src/browser/web-vitals/lib/bindReporter.ts","../node_modules/@sentry/tracing/src/browser/web-vitals/lib/getFirstHidden.ts","../node_modules/@sentry/tracing/src/browser/web-vitals/lib/whenInput.ts","../node_modules/@sentry/tracing/src/browser/web-vitals/lib/initMetric.ts","../node_modules/@sentry/tracing/src/browser/web-vitals/lib/generateUniqueID.ts","../node_modules/@sentry/tracing/src/browser/web-vitals/lib/observe.ts","../node_modules/@sentry/tracing/src/browser/web-vitals/lib/onHidden.ts","../node_modules/@sentry/tracing/src/browser/web-vitals/getLCP.ts","../node_modules/@sentry/tracing/src/browser/web-vitals/getTTFB.ts","../node_modules/@sentry/tracing/src/browser/metrics.ts","../node_modules/@sentry/tracing/src/browser/web-vitals/getCLS.ts","../node_modules/@sentry/tracing/src/browser/web-vitals/getFID.ts","../node_modules/@sentry/tracing/src/browser/request.ts","../node_modules/@sentry/tracing/src/browser/router.ts","../node_modules/@sentry/tracing/src/browser/browsertracing.ts","../node_modules/@sentry/tracing/src/integrations/express.ts","../node_modules/@sentry/tracing/src/index.ts","../node_modules/resolve-pathname/esm/resolve-pathname.js","../node_modules/value-equal/esm/value-equal.js","../node_modules/tiny-invariant/dist/esm/tiny-invariant.js","../node_modules/history/esm/history.js","../node_modules/react-router/modules/miniCreateReactContext.js","../node_modules/react-router/modules/createContext.js","../node_modules/react-router/modules/createNamedContext.js","../node_modules/react-router/modules/HistoryContext.js","../node_modules/react-router/modules/RouterContext.js","../node_modules/react-router/modules/Router.js","../node_modules/react-router/modules/MemoryRouter.js","../node_modules/react-router/modules/Lifecycle.js","../node_modules/react-router/modules/generatePath.js","../node_modules/react-router/modules/Redirect.js","../node_modules/react-router/modules/matchPath.js","../node_modules/react-router/modules/Route.js","../node_modules/react-router/modules/StaticRouter.js","../node_modules/react-router/modules/Switch.js","../node_modules/react-router/modules/withRouter.js","../node_modules/react-router/modules/hooks.js","../node_modules/react-router-dom/modules/BrowserRouter.js","../node_modules/react-router-dom/modules/HashRouter.js","../node_modules/react-router-dom/modules/utils/locationUtils.js","../node_modules/react-router-dom/modules/Link.js","../node_modules/react-router-dom/modules/NavLink.js","regions.js","../node_modules/@material-ui/core/esm/styles/makeStyles.js","../node_modules/@material-ui/core/esm/styles/useTheme.js","../node_modules/@material-ui/icons/esm/Menu.js","../node_modules/@material-ui/icons/esm/ChevronRight.js","../node_modules/@material-ui/icons/esm/ChevronLeft.js","../node_modules/@material-ui/icons/esm/AccountCircle.js","../node_modules/@material-ui/icons/esm/ListAlt.js","../node_modules/@material-ui/icons/esm/AssignmentTurnedIn.js","../node_modules/@material-ui/icons/esm/Contacts.js","../node_modules/@material-ui/icons/esm/StraightenSharp.js","../node_modules/@material-ui/icons/esm/DirectionsBoatSharp.js","../node_modules/@material-ui/icons/esm/FolderShared.js","../node_modules/@material-ui/icons/esm/RateReview.js","../node_modules/@material-ui/icons/esm/SupervisorAccount.js","../node_modules/@material-ui/icons/esm/ExitToApp.js","../node_modules/@material-ui/core/esm/CssBaseline/CssBaseline.js","../node_modules/@material-ui/core/esm/Paper/Paper.js","../node_modules/@material-ui/core/esm/AppBar/AppBar.js","../node_modules/@material-ui/core/esm/Toolbar/Toolbar.js","../node_modules/react-transition-group/esm/TransitionGroupContext.js","../node_modules/react-transition-group/esm/utils/ChildMapping.js","../node_modules/react-transition-group/esm/TransitionGroup.js","../node_modules/@material-ui/core/esm/ButtonBase/Ripple.js","../node_modules/@material-ui/core/esm/ButtonBase/TouchRipple.js","../node_modules/@material-ui/core/esm/ButtonBase/ButtonBase.js","../node_modules/@material-ui/core/esm/IconButton/IconButton.js","../node_modules/@material-ui/core/esm/Typography/Typography.js","../node_modules/@material-ui/core/esm/Portal/Portal.js","../node_modules/@babel/runtime/helpers/esm/classCallCheck.js","../node_modules/@material-ui/core/esm/utils/getScrollbarSize.js","../node_modules/@material-ui/core/esm/Modal/ModalManager.js","../node_modules/@material-ui/core/esm/Unstable_TrapFocus/Unstable_TrapFocus.js","../node_modules/@material-ui/core/esm/Modal/SimpleBackdrop.js","../node_modules/@material-ui/core/esm/Modal/Modal.js","../node_modules/react-transition-group/esm/config.js","../node_modules/react-transition-group/esm/utils/reflow.js","../node_modules/react-transition-group/esm/Transition.js","../node_modules/@material-ui/core/esm/transitions/utils.js","../node_modules/@material-ui/core/esm/Grow/Grow.js","../node_modules/@material-ui/core/esm/Popover/Popover.js","../node_modules/@material-ui/core/esm/List/ListContext.js","../node_modules/@material-ui/core/esm/List/List.js","../node_modules/@material-ui/core/esm/MenuList/MenuList.js","../node_modules/@material-ui/core/esm/Menu/Menu.js","../node_modules/@material-ui/core/esm/InputBase/utils.js","../node_modules/@material-ui/core/esm/Select/SelectInput.js","../node_modules/@material-ui/core/esm/FormControl/formControlState.js","../node_modules/@material-ui/core/esm/FormControl/FormControlContext.js","../node_modules/@material-ui/core/esm/FormControl/useFormControl.js","../node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDropDown.js","../node_modules/@material-ui/core/esm/TextareaAutosize/TextareaAutosize.js","../node_modules/@material-ui/core/esm/InputBase/InputBase.js","../node_modules/@material-ui/core/esm/Input/Input.js","../node_modules/@material-ui/core/esm/NativeSelect/NativeSelectInput.js","../node_modules/@material-ui/core/esm/NativeSelect/NativeSelect.js","../node_modules/@material-ui/core/esm/FilledInput/FilledInput.js","../node_modules/@material-ui/core/esm/OutlinedInput/NotchedOutline.js","../node_modules/@material-ui/core/esm/OutlinedInput/OutlinedInput.js","../node_modules/@material-ui/core/esm/Select/Select.js","../node_modules/@material-ui/core/esm/ListItem/ListItem.js","../node_modules/@material-ui/core/esm/MenuItem/MenuItem.js","../node_modules/@material-ui/core/esm/Fade/Fade.js","../node_modules/@material-ui/core/esm/Backdrop/Backdrop.js","../node_modules/@material-ui/core/esm/Slide/Slide.js","../node_modules/@material-ui/core/esm/Drawer/Drawer.js","../node_modules/@material-ui/core/esm/ListItemIcon/ListItemIcon.js","../node_modules/@material-ui/core/esm/internal/svg-icons/Person.js","../node_modules/@material-ui/core/esm/Avatar/Avatar.js","../node_modules/@material-ui/core/esm/ListItemText/ListItemText.js","../node_modules/@material-ui/core/esm/Divider/Divider.js","../node_modules/popper.js/src/utils/isBrowser.js","../node_modules/popper.js/src/utils/debounce.js","../node_modules/popper.js/src/utils/isFunction.js","../node_modules/popper.js/src/utils/getStyleComputedProperty.js","../node_modules/popper.js/src/utils/getParentNode.js","../node_modules/popper.js/src/utils/getScrollParent.js","../node_modules/popper.js/src/utils/getReferenceNode.js","../node_modules/popper.js/src/utils/isIE.js","../node_modules/popper.js/src/utils/getOffsetParent.js","../node_modules/popper.js/src/utils/getRoot.js","../node_modules/popper.js/src/utils/findCommonOffsetParent.js","../node_modules/popper.js/src/utils/isOffsetContainer.js","../node_modules/popper.js/src/utils/getScroll.js","../node_modules/popper.js/src/utils/getBordersSize.js","../node_modules/popper.js/src/utils/getWindowSizes.js","../node_modules/popper.js/src/utils/getClientRect.js","../node_modules/popper.js/src/utils/getBoundingClientRect.js","../node_modules/popper.js/src/utils/getOffsetRectRelativeToArbitraryNode.js","../node_modules/popper.js/src/utils/includeScroll.js","../node_modules/popper.js/src/utils/isFixed.js","../node_modules/popper.js/src/utils/getFixedPositionOffsetParent.js","../node_modules/popper.js/src/utils/getBoundaries.js","../node_modules/popper.js/src/utils/getViewportOffsetRectRelativeToArtbitraryNode.js","../node_modules/popper.js/src/utils/computeAutoPlacement.js","../node_modules/popper.js/src/utils/getReferenceOffsets.js","../node_modules/popper.js/src/utils/getOuterSizes.js","../node_modules/popper.js/src/utils/getOppositePlacement.js","../node_modules/popper.js/src/utils/getPopperOffsets.js","../node_modules/popper.js/src/utils/find.js","../node_modules/popper.js/src/utils/runModifiers.js","../node_modules/popper.js/src/utils/findIndex.js","../node_modules/popper.js/src/methods/update.js","../node_modules/popper.js/src/utils/isModifierEnabled.js","../node_modules/popper.js/src/utils/getSupportedPropertyName.js","../node_modules/popper.js/src/methods/destroy.js","../node_modules/popper.js/src/utils/getWindow.js","../node_modules/popper.js/src/utils/setupEventListeners.js","../node_modules/popper.js/src/methods/enableEventListeners.js","../node_modules/popper.js/src/methods/disableEventListeners.js","../node_modules/popper.js/src/utils/removeEventListeners.js","../node_modules/popper.js/src/utils/isNumeric.js","../node_modules/popper.js/src/utils/setStyles.js","../node_modules/popper.js/src/modifiers/computeStyle.js","../node_modules/popper.js/src/utils/isModifierRequired.js","../node_modules/popper.js/src/methods/placements.js","../node_modules/popper.js/src/utils/clockwise.js","../node_modules/popper.js/src/modifiers/flip.js","../node_modules/popper.js/src/modifiers/offset.js","../node_modules/popper.js/src/modifiers/index.js","../node_modules/popper.js/src/modifiers/shift.js","../node_modules/popper.js/src/modifiers/preventOverflow.js","../node_modules/popper.js/src/modifiers/keepTogether.js","../node_modules/popper.js/src/modifiers/arrow.js","../node_modules/popper.js/src/utils/getOppositeVariation.js","../node_modules/popper.js/src/modifiers/inner.js","../node_modules/popper.js/src/modifiers/hide.js","../node_modules/popper.js/src/utils/getRoundedOffsets.js","../node_modules/popper.js/src/modifiers/applyStyle.js","../node_modules/popper.js/src/utils/setAttributes.js","../node_modules/popper.js/src/methods/defaults.js","../node_modules/popper.js/src/index.js","../node_modules/@material-ui/core/esm/Popper/Popper.js","../node_modules/@material-ui/core/esm/Tooltip/Tooltip.js","../node_modules/@firebase/util/src/constants.ts","../node_modules/@firebase/util/src/assert.ts","../node_modules/@firebase/util/src/crypt.ts","../node_modules/@firebase/util/src/deepCopy.ts","../node_modules/@firebase/util/src/defaults.ts","../node_modules/@firebase/util/src/global.ts","../node_modules/@firebase/util/src/deferred.ts","../node_modules/@firebase/util/src/environment.ts","../node_modules/@firebase/util/src/errors.ts","../node_modules/@firebase/util/src/json.ts","../node_modules/@firebase/util/src/jwt.ts","../node_modules/@firebase/util/src/obj.ts","../node_modules/@firebase/util/src/query.ts","../node_modules/@firebase/util/src/sha1.ts","../node_modules/@firebase/util/src/subscribe.ts","../node_modules/@firebase/util/src/validation.ts","../node_modules/@firebase/util/src/utf8.ts","../node_modules/@firebase/util/src/compat.ts","../node_modules/@firebase/component/src/component.ts","../node_modules/@firebase/component/src/constants.ts","../node_modules/@firebase/component/src/provider.ts","../node_modules/@firebase/component/src/component_container.ts","../node_modules/@firebase/logger/src/logger.ts","../node_modules/idb/build/wrap-idb-value.js","../node_modules/idb/build/index.js","../node_modules/@firebase/app/src/platformLoggerService.ts","../node_modules/@firebase/app/src/logger.ts","../node_modules/@firebase/app/src/constants.ts","../node_modules/@firebase/app/src/internal.ts","../node_modules/@firebase/app/src/errors.ts","../node_modules/@firebase/app/src/firebaseApp.ts","../node_modules/@firebase/app/src/api.ts","../node_modules/@firebase/app/src/indexeddb.ts","../node_modules/@firebase/app/src/heartbeatService.ts","../node_modules/@firebase/app/src/registerCoreComponents.ts","../node_modules/@firebase/app/src/index.ts","../node_modules/firebase/node_modules/tslib/tslib.es6.mjs","../node_modules/firebase/node_modules/@firebase/auth/src/core/errors.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/util/log.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/util/assert.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/util/location.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/util/navigator.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/util/delay.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/util/emulator.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/util/fetch_provider.ts","../node_modules/firebase/node_modules/@firebase/auth/src/api/errors.ts","../node_modules/firebase/node_modules/@firebase/auth/src/api/index.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/recaptcha/recaptcha.ts","../node_modules/firebase/node_modules/@firebase/auth/src/api/authentication/recaptcha.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/util/time.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/user/id_token_result.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/user/invalidation.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/user/proactive_refresh.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/user/user_metadata.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/user/reload.ts","../node_modules/firebase/node_modules/@firebase/auth/src/api/account_management/account.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/user/token_manager.ts","../node_modules/firebase/node_modules/@firebase/auth/src/api/authentication/token.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/user/user_impl.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/util/instantiator.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/persistence/in_memory.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/persistence/persistence_user_manager.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/util/browser.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/util/version.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/auth/middleware.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/auth/password_policy_impl.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/auth/auth_impl.ts","../node_modules/firebase/node_modules/@firebase/auth/src/api/password_policy/get_password_policy.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/load_js.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/auth/emulator.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/credentials/auth_credential.ts","../node_modules/firebase/node_modules/@firebase/auth/src/api/account_management/email_and_password.ts","../node_modules/firebase/node_modules/@firebase/auth/src/api/authentication/email_and_password.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/credentials/email.ts","../node_modules/firebase/node_modules/@firebase/auth/src/api/authentication/email_link.ts","../node_modules/firebase/node_modules/@firebase/auth/src/api/authentication/idp.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/credentials/oauth.ts","../node_modules/firebase/node_modules/@firebase/auth/src/api/authentication/sms.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/credentials/phone.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/action_code_url.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/providers/email.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/providers/federated.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/providers/oauth.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/providers/facebook.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/providers/google.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/providers/github.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/providers/twitter.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/user/user_credential_impl.ts","../node_modules/firebase/node_modules/@firebase/auth/src/mfa/mfa_error.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/user/link_unlink.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/user/reauthenticate.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/strategies/credential.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/index.ts","../node_modules/firebase/node_modules/@firebase/auth/src/mfa/mfa_user.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/persistence/index.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/persistence/browser.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/persistence/local_storage.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/persistence/session_storage.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/messagechannel/receiver.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/messagechannel/promise.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/util/event_id.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/messagechannel/sender.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/auth_window.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/util/worker.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/persistence/indexed_db.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/recaptcha/recaptcha_loader.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/recaptcha/recaptcha_verifier.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/strategies/phone.ts","../node_modules/firebase/node_modules/@firebase/auth/src/api/account_management/mfa.ts","../node_modules/firebase/node_modules/@firebase/auth/src/api/authentication/mfa.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/providers/phone.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/util/resolver.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/strategies/idp.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/strategies/abstract_popup_redirect_operation.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/strategies/popup.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/strategies/redirect.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/strategies/redirect.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/auth/auth_event_manager.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/util/validate_origin.ts","../node_modules/firebase/node_modules/@firebase/auth/src/api/project_config/get_project_config.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/iframe/gapi.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/iframe/iframe.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/util/popup.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/util/handler.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/popup_redirect.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/auth/firebase_internal.ts","../node_modules/firebase/node_modules/@firebase/auth/src/platform_browser/index.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/auth/initialize.ts","../node_modules/firebase/node_modules/@firebase/auth/src/core/auth/register.ts","../node_modules/firebase/app/index.ts","firebase.js","auth.js","components/I18n.jsx","../node_modules/@firebase/functions/src/serializer.ts","../node_modules/@firebase/functions/src/constants.ts","../node_modules/@firebase/functions/src/error.ts","../node_modules/@firebase/functions/src/context.ts","../node_modules/@firebase/functions/src/service.ts","../node_modules/@firebase/functions/src/api.ts","../node_modules/@firebase/functions/src/config.ts","../node_modules/@firebase/functions/src/index.ts","../node_modules/@firebase/database/src/core/version.ts","../node_modules/@firebase/database/src/core/storage/DOMStorageWrapper.ts","../node_modules/@firebase/database/src/core/storage/MemoryStorage.ts","../node_modules/@firebase/database/src/core/storage/storage.ts","../node_modules/@firebase/database/src/core/util/util.ts","../node_modules/@firebase/database/src/core/AppCheckTokenProvider.ts","../node_modules/@firebase/database/src/core/AuthTokenProvider.ts","../node_modules/@firebase/database/src/realtime/Constants.ts","../node_modules/@firebase/database/src/core/RepoInfo.ts","../node_modules/@firebase/database/src/core/stats/StatsCollection.ts","../node_modules/@firebase/database/src/core/stats/StatsManager.ts","../node_modules/@firebase/database/src/realtime/polling/PacketReceiver.ts","../node_modules/@firebase/database/src/realtime/BrowserPollConnection.ts","../node_modules/@firebase/database/src/realtime/WebSocketConnection.ts","../node_modules/@firebase/database/src/realtime/TransportManager.ts","../node_modules/@firebase/database/src/realtime/Connection.ts","../node_modules/@firebase/database/src/core/ServerActions.ts","../node_modules/@firebase/database/src/core/util/EventEmitter.ts","../node_modules/@firebase/database/src/core/util/OnlineMonitor.ts","../node_modules/@firebase/database/src/core/util/Path.ts","../node_modules/@firebase/database/src/core/util/VisibilityMonitor.ts","../node_modules/@firebase/database/src/core/PersistentConnection.ts","../node_modules/@firebase/database/src/core/snap/Node.ts","../node_modules/@firebase/database/src/core/snap/indexes/Index.ts","../node_modules/@firebase/database/src/core/snap/indexes/KeyIndex.ts","../node_modules/@firebase/database/src/core/util/SortedMap.ts","../node_modules/@firebase/database/src/core/snap/comparators.ts","../node_modules/@firebase/database/src/core/snap/snap.ts","../node_modules/@firebase/database/src/core/snap/LeafNode.ts","../node_modules/@firebase/database/src/core/snap/indexes/PriorityIndex.ts","../node_modules/@firebase/database/src/core/snap/childSet.ts","../node_modules/@firebase/database/src/core/snap/IndexMap.ts","../node_modules/@firebase/database/src/core/snap/ChildrenNode.ts","../node_modules/@firebase/database/src/core/snap/nodeFromJSON.ts","../node_modules/@firebase/database/src/core/snap/indexes/PathIndex.ts","../node_modules/@firebase/database/src/core/snap/indexes/ValueIndex.ts","../node_modules/@firebase/database/src/core/view/Change.ts","../node_modules/@firebase/database/src/core/view/filter/IndexedFilter.ts","../node_modules/@firebase/database/src/core/view/filter/RangedFilter.ts","../node_modules/@firebase/database/src/core/view/filter/LimitedFilter.ts","../node_modules/@firebase/database/src/core/view/QueryParams.ts","../node_modules/@firebase/database/src/core/ReadonlyRestClient.ts","../node_modules/@firebase/database/src/core/SnapshotHolder.ts","../node_modules/@firebase/database/src/core/SparseSnapshotTree.ts","../node_modules/@firebase/database/src/core/stats/StatsListener.ts","../node_modules/@firebase/database/src/core/stats/StatsReporter.ts","../node_modules/@firebase/database/src/core/operation/Operation.ts","../node_modules/@firebase/database/src/core/operation/AckUserWrite.ts","../node_modules/@firebase/database/src/core/operation/ListenComplete.ts","../node_modules/@firebase/database/src/core/operation/Overwrite.ts","../node_modules/@firebase/database/src/core/operation/Merge.ts","../node_modules/@firebase/database/src/core/view/CacheNode.ts","../node_modules/@firebase/database/src/core/view/EventGenerator.ts","../node_modules/@firebase/database/src/core/view/ViewCache.ts","../node_modules/@firebase/database/src/core/util/ImmutableTree.ts","../node_modules/@firebase/database/src/core/CompoundWrite.ts","../node_modules/@firebase/database/src/core/WriteTree.ts","../node_modules/@firebase/database/src/core/view/ChildChangeAccumulator.ts","../node_modules/@firebase/database/src/core/view/CompleteChildSource.ts","../node_modules/@firebase/database/src/core/view/ViewProcessor.ts","../node_modules/@firebase/database/src/core/view/View.ts","../node_modules/@firebase/database/src/core/SyncPoint.ts","../node_modules/@firebase/database/src/core/SyncTree.ts","../node_modules/@firebase/database/src/core/util/ServerValues.ts","../node_modules/@firebase/database/src/core/util/Tree.ts","../node_modules/@firebase/database/src/core/util/validation.ts","../node_modules/@firebase/database/src/core/view/EventQueue.ts","../node_modules/@firebase/database/src/core/Repo.ts","../node_modules/@firebase/database/src/core/util/libs/parser.ts","../node_modules/@firebase/database/src/core/util/NextPushId.ts","../node_modules/@firebase/database/src/core/view/Event.ts","../node_modules/@firebase/database/src/core/view/EventRegistration.ts","../node_modules/@firebase/database/src/api/Reference_impl.ts","../node_modules/@firebase/database/src/api/Database.ts","../node_modules/@firebase/util/src/emulator.ts","../node_modules/@firebase/database/src/api/test_access.ts","../node_modules/@firebase/database/src/register.ts","../node_modules/@firebase/database/src/index.ts","components/Pages/FormClassTemplate.jsx","providers/UserProvider.jsx","components/NavDrawer.jsx","../node_modules/react-helmet/es/Helmet.js","../node_modules/@material-ui/core/esm/Grid/Grid.js","../node_modules/@material-ui/core/esm/CircularProgress/CircularProgress.js","../node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js","../node_modules/@material-ui/core/esm/Button/Button.js","../node_modules/@material-ui/icons/esm/Add.js","../node_modules/uuid/dist/esm-browser/rng.js","../node_modules/uuid/dist/esm-browser/regex.js","../node_modules/uuid/dist/esm-browser/validate.js","../node_modules/uuid/dist/esm-browser/stringify.js","../node_modules/uuid/dist/esm-browser/v4.js","utils/misc.js","utils/blankRecord.js","utils/firebaseRecordFunctions.js","components/FormComponents/SimpleModal.jsx","../node_modules/@material-ui/core/esm/ListItemAvatar/ListItemAvatar.js","../node_modules/@material-ui/core/esm/ListItemSecondaryAction/ListItemSecondaryAction.js","../node_modules/@material-ui/icons/esm/Visibility.js","../node_modules/@material-ui/icons/esm/Edit.js","../node_modules/@material-ui/icons/esm/Delete.js","../node_modules/@material-ui/icons/esm/Publish.js","../node_modules/@material-ui/icons/esm/Eject.js","../node_modules/@material-ui/icons/esm/FileCopy.js","../node_modules/@material-ui/icons/esm/CloudDownload.js","../node_modules/@material-ui/icons/esm/TransferWithinAStation.js","../node_modules/@material-ui/icons/esm/OpenInNew.js","components/FormComponents/ApaPreview.jsx","utils/recordToEML.js","utils/licenses.js","utils/recordToERDDAP.js","utils/validate.js","utils/recordToDataCite.js","../node_modules/relative-time-format/source/LocaleDataStore.js","../node_modules/relative-time-format/source/resolveLocale.js","../node_modules/relative-time-format/source/PluralRuleFunctions.js","../node_modules/relative-time-format/source/getPluralRulesLocale.js","../node_modules/relative-time-format/source/PluralRules.js","../node_modules/relative-time-format/source/RelativeTimeFormat.js","../node_modules/javascript-time-ago/source/cache.js","../node_modules/javascript-time-ago/source/locale.js","../node_modules/javascript-time-ago/source/isStyleObject.js","../node_modules/javascript-time-ago/source/steps/units.js","../node_modules/javascript-time-ago/source/steps/getStepDenominator.js","../node_modules/javascript-time-ago/source/round.js","../node_modules/javascript-time-ago/source/steps/getStepMinTime.js","../node_modules/javascript-time-ago/source/steps/getStep.js","../node_modules/javascript-time-ago/source/steps/getTimeToNextUpdateForUnit.js","../node_modules/javascript-time-ago/source/steps/getTimeToNextUpdate.js","../node_modules/javascript-time-ago/source/LocaleDataStore.js","../node_modules/javascript-time-ago/source/steps/round.js","../node_modules/javascript-time-ago/source/style/round.js","../node_modules/javascript-time-ago/source/style/roundMinute.js","../node_modules/javascript-time-ago/source/steps/approximate.js","../node_modules/javascript-time-ago/source/style/approximate.js","../node_modules/javascript-time-ago/source/style/approximateTime.js","../node_modules/javascript-time-ago/source/steps/helpers.js","../node_modules/javascript-time-ago/source/style/twitter.js","../node_modules/javascript-time-ago/source/style/twitterNow.js","../node_modules/javascript-time-ago/source/style/twitterMinute.js","../node_modules/javascript-time-ago/source/style/twitterMinuteNow.js","../node_modules/javascript-time-ago/source/style/twitterFirstMinute.js","../node_modules/javascript-time-ago/source/style/mini.js","../node_modules/javascript-time-ago/source/style/miniNow.js","../node_modules/javascript-time-ago/source/style/miniMinute.js","../node_modules/javascript-time-ago/source/style/miniMinuteNow.js","../node_modules/javascript-time-ago/source/TimeAgo.js","../node_modules/javascript-time-ago/source/style/getStyleByName.js","../node_modules/javascript-time-ago/locale/en.json.js","../node_modules/javascript-time-ago/locale/fr.json.js","components/FormComponents/LastEdited.jsx","../node_modules/@material-ui/icons/esm/Description.js","../node_modules/@material-ui/icons/esm/Drafts.js","components/FormComponents/RecordStatusIcon.jsx","components/FormComponents/MetadataRecordListItem.jsx","components/Pages/Submissions.jsx","components/Pages/Published.jsx","../node_modules/@material-ui/icons/esm/PermContactCalendar.js","components/FormComponents/ContactTitle.jsx","components/Pages/ContactsSaved.jsx","utils/firebaseContactFunctions.js","components/FormComponents/InstrumentTitle.jsx","components/Pages/InstrumentsSaved.jsx","utils/firebaseInstrumentFunctions.js","components/Pages/Shared.jsx","components/Pages/Login.jsx","../node_modules/@material-ui/system/esm/styleFunctionSx.js","../node_modules/@material-ui/system/esm/compose.js","../node_modules/@material-ui/system/esm/style.js","../node_modules/@material-ui/system/esm/borders.js","../node_modules/@material-ui/system/esm/display.js","../node_modules/@material-ui/system/esm/flexbox.js","../node_modules/@material-ui/system/esm/grid.js","../node_modules/@material-ui/system/esm/positions.js","../node_modules/@material-ui/system/esm/palette.js","../node_modules/@material-ui/system/esm/shadows.js","../node_modules/@material-ui/system/esm/sizing.js","../node_modules/@material-ui/system/esm/typography.js","../node_modules/@material-ui/styles/esm/styled/styled.js","../node_modules/@material-ui/core/esm/styles/styled.js","../node_modules/@material-ui/core/esm/Box/Box.js","../node_modules/@material-ui/core/esm/LinearProgress/LinearProgress.js","../node_modules/@material-ui/core/esm/Fab/Fab.js","../node_modules/@material-ui/core/esm/utils/scrollLeft.js","../node_modules/@material-ui/core/esm/internal/animate.js","../node_modules/@material-ui/core/esm/Tabs/ScrollbarSize.js","../node_modules/@material-ui/core/esm/Tabs/TabIndicator.js","../node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowLeft.js","../node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowRight.js","../node_modules/@material-ui/core/esm/TabScrollButton/TabScrollButton.js","../node_modules/@material-ui/core/esm/Tabs/Tabs.js","../node_modules/@material-ui/core/esm/Tab/Tab.js","../node_modules/@material-ui/icons/esm/Save.js","../node_modules/@material-ui/core/esm/internal/svg-icons/Cancel.js","../node_modules/@material-ui/core/esm/Chip/Chip.js","components/FormComponents/StatusChip.jsx","components/Pages/NotFound.jsx","../node_modules/@material-ui/core/esm/FormControl/FormControl.js","../node_modules/@material-ui/core/esm/FormLabel/FormLabel.js","../node_modules/@material-ui/core/esm/InputLabel/InputLabel.js","../node_modules/@material-ui/core/esm/FormHelperText/FormHelperText.js","../node_modules/@material-ui/core/esm/TextField/TextField.js","../node_modules/@material-ui/core/esm/InputAdornment/InputAdornment.js","../node_modules/@material-ui/core/esm/FormControlLabel/FormControlLabel.js","../node_modules/@material-ui/core/esm/internal/SwitchBase.js","../node_modules/@material-ui/core/esm/internal/svg-icons/CheckBoxOutlineBlank.js","../node_modules/@material-ui/core/esm/internal/svg-icons/CheckBox.js","../node_modules/@material-ui/core/esm/internal/svg-icons/IndeterminateCheckBox.js","../node_modules/@material-ui/core/esm/Checkbox/Checkbox.js","components/FormComponents/BilingualTextInput.jsx","../node_modules/use-debounce/src/useDebouncedCallback.ts","../node_modules/use-debounce/src/useDebounce.ts","components/FormComponents/QuestionStyles.jsx","utils/doiUpdate.js","components/FormComponents/DOIInput.jsx","components/FormComponents/RequiredMark.jsx","isoCodeLists.js","components/FormComponents/CheckBoxList.jsx","../node_modules/@material-ui/core/esm/ListSubheader/ListSubheader.js","../node_modules/@material-ui/lab/esm/internal/svg-icons/Close.js","../node_modules/@material-ui/lab/esm/internal/svg-icons/ArrowDropDown.js","../node_modules/@material-ui/lab/esm/useAutocomplete/useAutocomplete.js","../node_modules/@material-ui/lab/esm/Autocomplete/Autocomplete.js","components/FormComponents/SharedUsersList.jsx","components/FormComponents/SelectInput.jsx","components/Tabs/StartTab.jsx","../node_modules/@material-ui/icons/esm/Clear.js","../node_modules/@material-ui/core/esm/Collapse/Collapse.js","../node_modules/@material-ui/core/esm/Accordion/AccordionContext.js","../node_modules/@material-ui/core/esm/Accordion/Accordion.js","../node_modules/@babel/runtime/helpers/esm/toArray.js","../node_modules/@material-ui/core/esm/AccordionSummary/AccordionSummary.js","../node_modules/@material-ui/core/esm/AccordionDetails/AccordionDetails.js","../node_modules/@material-ui/icons/esm/ExpandMore.js","components/FormComponents/RolePicker.jsx","components/FormComponents/ContactEditor.jsx","../node_modules/@material-ui/icons/esm/DragHandle.js","components/FormComponents/LeftList.jsx","components/Tabs/ContactTab.jsx","components/FormComponents/Resources.jsx","associationTypeMapping.js","components/FormComponents/RelatedWorks.jsx","components/FormComponents/LineageAdditionalDocumentation.jsx","components/FormComponents/LineageSource.jsx","components/FormComponents/LineageProcessingStep.jsx","components/FormComponents/Lineage.jsx","components/Tabs/ResourcesTab.jsx","../node_modules/@material-ui/icons/esm/Update.js","eovs.js","../node_modules/@material-ui/src/MuiPickersUtilsProvider.tsx","../node_modules/@material-ui/src/_shared/hooks/useUtils.ts","../node_modules/@material-ui/core/esm/DialogActions/DialogActions.js","../node_modules/@material-ui/core/esm/DialogContent/DialogContent.js","../node_modules/@material-ui/core/esm/Dialog/Dialog.js","../node_modules/@material-ui/src/_helpers/utils.ts","../node_modules/@material-ui/src/wrappers/StaticWrapper.tsx","../node_modules/@material-ui/src/constants/dimensions.ts","../node_modules/@material-ui/src/_shared/ModalDialog.tsx","../node_modules/@material-ui/src/_shared/hooks/useKeyDown.ts","../node_modules/@material-ui/src/wrappers/ModalWrapper.tsx","../node_modules/@material-ui/src/wrappers/InlineWrapper.tsx","../node_modules/@material-ui/src/wrappers/Wrapper.tsx","../node_modules/rifm/dist/rifm.esm.js","../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","../node_modules/@babel/runtime/helpers/esm/inherits.js","../node_modules/@material-ui/src/views/Calendar/Day.tsx","../node_modules/dom-helpers/esm/removeClass.js","../node_modules/react-transition-group/esm/CSSTransition.js","../node_modules/dom-helpers/esm/addClass.js","../node_modules/dom-helpers/esm/hasClass.js","../node_modules/@material-ui/src/_helpers/date-utils.ts","../node_modules/@material-ui/src/views/Calendar/DayWrapper.tsx","../node_modules/@material-ui/src/views/Calendar/SlideTransition.tsx","../node_modules/@material-ui/src/views/Calendar/CalendarHeader.tsx","../node_modules/@material-ui/src/_shared/icons/ArrowLeftIcon.tsx","../node_modules/@material-ui/src/_shared/icons/ArrowRightIcon.tsx","../node_modules/@material-ui/src/_shared/WithUtils.tsx","../node_modules/@material-ui/src/views/Calendar/Calendar.tsx","../node_modules/@material-ui/src/constants/ClockType.ts","../node_modules/@material-ui/src/views/Clock/ClockPointer.tsx","../node_modules/@material-ui/src/_helpers/time-utils.ts","../node_modules/@material-ui/src/views/Clock/Clock.tsx","../node_modules/@material-ui/src/views/Clock/ClockNumber.tsx","../node_modules/@material-ui/src/views/Clock/ClockNumbers.tsx","../node_modules/@material-ui/src/views/Clock/ClockView.tsx","../node_modules/@material-ui/src/constants/prop-types.ts","../node_modules/@material-ui/src/views/Year/Year.tsx","../node_modules/@material-ui/src/views/Year/YearView.tsx","../node_modules/@material-ui/src/views/Month/Month.tsx","../node_modules/@material-ui/src/views/Month/MonthView.tsx","../node_modules/@material-ui/src/_shared/hooks/useIsLandscape.tsx","../node_modules/@material-ui/src/Picker/Picker.tsx","../node_modules/@material-ui/src/_shared/hooks/useViews.tsx","../node_modules/@material-ui/src/_shared/ToolbarText.tsx","../node_modules/@material-ui/src/_shared/ToolbarButton.tsx","../node_modules/@material-ui/src/_shared/PickerToolbar.tsx","../node_modules/@material-ui/src/_shared/PureDateInput.tsx","../node_modules/@material-ui/src/_shared/icons/KeyboardIcon.tsx","../node_modules/@material-ui/src/_helpers/text-field-helper.ts","../node_modules/@material-ui/src/_shared/KeyboardDateInput.tsx","../node_modules/@material-ui/src/_shared/hooks/usePickerState.ts","../node_modules/@material-ui/src/_shared/hooks/useOpenState.ts","../node_modules/@material-ui/src/Picker/makePickerWithState.tsx","../node_modules/@material-ui/src/DatePicker/DatePickerToolbar.tsx","../node_modules/@material-ui/src/DatePicker/DatePicker.tsx","../node_modules/@material-ui/src/_shared/hooks/useKeyboardPickerState.ts","../node_modules/date-fns/esm/_lib/toInteger/index.js","../node_modules/date-fns/esm/_lib/requiredArgs/index.js","../node_modules/date-fns/esm/toDate/index.js","../node_modules/date-fns/esm/addDays/index.js","../node_modules/date-fns/esm/addMonths/index.js","../node_modules/date-fns/esm/addYears/index.js","../node_modules/date-fns/esm/endOfDay/index.js","../node_modules/date-fns/esm/_lib/defaultOptions/index.js","../node_modules/date-fns/esm/endOfWeek/index.js","../node_modules/date-fns/esm/endOfYear/index.js","../node_modules/date-fns/esm/isValid/index.js","../node_modules/date-fns/esm/isDate/index.js","../node_modules/date-fns/esm/subMilliseconds/index.js","../node_modules/date-fns/esm/addMilliseconds/index.js","../node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js","../node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js","../node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js","../node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js","../node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js","../node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js","../node_modules/date-fns/esm/_lib/getUTCWeek/index.js","../node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js","../node_modules/date-fns/esm/_lib/addLeadingZeros/index.js","../node_modules/date-fns/esm/_lib/format/lightFormatters/index.js","../node_modules/date-fns/esm/_lib/format/formatters/index.js","../node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js","../node_modules/date-fns/esm/_lib/format/longFormatters/index.js","../node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js","../node_modules/date-fns/esm/_lib/protectedTokens/index.js","../node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js","../node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js","../node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js","../node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js","../node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js","../node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js","../node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js","../node_modules/date-fns/esm/locale/en-US/_lib/match/index.js","../node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js","../node_modules/date-fns/esm/locale/en-US/index.js","../node_modules/date-fns/esm/_lib/defaultLocale/index.js","../node_modules/date-fns/esm/format/index.js","../node_modules/date-fns/esm/isAfter/index.js","../node_modules/date-fns/esm/isBefore/index.js","../node_modules/date-fns/esm/startOfDay/index.js","../node_modules/date-fns/esm/startOfHour/index.js","../node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js","../node_modules/date-fns/esm/_lib/assign/index.js","../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js","../node_modules/@babel/runtime/helpers/esm/createSuper.js","../node_modules/date-fns/esm/parse/_lib/Setter.js","../node_modules/date-fns/esm/parse/_lib/Parser.js","../node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js","../node_modules/date-fns/esm/parse/_lib/constants.js","../node_modules/date-fns/esm/constants/index.js","../node_modules/date-fns/esm/parse/_lib/utils.js","../node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js","../node_modules/date-fns/esm/_lib/setUTCWeek/index.js","../node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js","../node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js","../node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js","../node_modules/date-fns/esm/_lib/setUTCDay/index.js","../node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js","../node_modules/date-fns/esm/_lib/setUTCISODay/index.js","../node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js","../node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js","../node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js","../node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js","../node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js","../node_modules/date-fns/esm/parse/_lib/parsers/index.js","../node_modules/date-fns/esm/parse/index.js","../node_modules/date-fns/esm/setMonth/index.js","../node_modules/date-fns/esm/getDaysInMonth/index.js","../node_modules/date-fns/esm/startOfMonth/index.js","../node_modules/date-fns/esm/endOfMonth/index.js","../node_modules/date-fns/esm/startOfWeek/index.js","../node_modules/date-fns/esm/startOfYear/index.js","../node_modules/@date-io/date-fns/build/index.esm.js","../node_modules/date-fns/esm/differenceInMilliseconds/index.js","../node_modules/date-fns/esm/getHours/index.js","../node_modules/date-fns/esm/setHours/index.js","../node_modules/date-fns/esm/setMinutes/index.js","../node_modules/date-fns/esm/getSeconds/index.js","../node_modules/date-fns/esm/setSeconds/index.js","../node_modules/date-fns/esm/isSameDay/index.js","../node_modules/date-fns/esm/isSameMonth/index.js","../node_modules/date-fns/esm/isSameYear/index.js","../node_modules/date-fns/esm/isSameHour/index.js","../node_modules/date-fns/esm/getYear/index.js","../node_modules/date-fns/esm/setYear/index.js","../node_modules/date-fns/esm/isEqual/index.js","../node_modules/date-fns/esm/eachDayOfInterval/index.js","components/FormComponents/DateInput.jsx","../node_modules/@material-ui/icons/esm/ArrowDownward.js","utils/keywords.js","components/FormComponents/KeywordsInput.jsx","components/Tabs/IdentificationTab.jsx","components/FormComponents/PlatformTitle.jsx","components/FormComponents/Instruments.jsx","components/FormComponents/Platform.jsx","components/Tabs/PlatformTab.jsx","../node_modules/react-leaflet/es/context.js","../node_modules/react-leaflet/es/MapEvented.js","../node_modules/react-leaflet/es/utils/updateClassName.js","../node_modules/react-leaflet/es/utils/omit.js","../node_modules/react-leaflet/es/Map.js","../node_modules/react-leaflet/es/MapLayer.js","../node_modules/react-leaflet/es/MapComponent.js","../node_modules/react-leaflet/es/GridLayer.js","../node_modules/react-leaflet/es/TileLayer.js","../node_modules/react-leaflet/es/Path.js","../node_modules/react-leaflet/es/utils/pick.js","../node_modules/react-leaflet/es/FeatureGroup.js","../node_modules/react-leaflet/es/Polygon.js","../node_modules/react-leaflet/es/Rectangle.js","../node_modules/lodash-es/_listCacheClear.js","../node_modules/lodash-es/eq.js","../node_modules/lodash-es/_assocIndexOf.js","../node_modules/lodash-es/_listCacheDelete.js","../node_modules/lodash-es/_listCacheGet.js","../node_modules/lodash-es/_listCacheHas.js","../node_modules/lodash-es/_listCacheSet.js","../node_modules/lodash-es/_ListCache.js","../node_modules/lodash-es/_stackClear.js","../node_modules/lodash-es/_stackDelete.js","../node_modules/lodash-es/_stackGet.js","../node_modules/lodash-es/_stackHas.js","../node_modules/lodash-es/_freeGlobal.js","../node_modules/lodash-es/_root.js","../node_modules/lodash-es/_Symbol.js","../node_modules/lodash-es/_getRawTag.js","../node_modules/lodash-es/_objectToString.js","../node_modules/lodash-es/_baseGetTag.js","../node_modules/lodash-es/isObject.js","../node_modules/lodash-es/isFunction.js","../node_modules/lodash-es/_coreJsData.js","../node_modules/lodash-es/_isMasked.js","../node_modules/lodash-es/_toSource.js","../node_modules/lodash-es/_baseIsNative.js","../node_modules/lodash-es/_getValue.js","../node_modules/lodash-es/_getNative.js","../node_modules/lodash-es/_Map.js","../node_modules/lodash-es/_nativeCreate.js","../node_modules/lodash-es/_hashClear.js","../node_modules/lodash-es/_hashDelete.js","../node_modules/lodash-es/_hashGet.js","../node_modules/lodash-es/_hashHas.js","../node_modules/lodash-es/_hashSet.js","../node_modules/lodash-es/_Hash.js","../node_modules/lodash-es/_mapCacheClear.js","../node_modules/lodash-es/_isKeyable.js","../node_modules/lodash-es/_getMapData.js","../node_modules/lodash-es/_mapCacheDelete.js","../node_modules/lodash-es/_mapCacheGet.js","../node_modules/lodash-es/_mapCacheHas.js","../node_modules/lodash-es/_mapCacheSet.js","../node_modules/lodash-es/_MapCache.js","../node_modules/lodash-es/_stackSet.js","../node_modules/lodash-es/_Stack.js","../node_modules/lodash-es/_setCacheAdd.js","../node_modules/lodash-es/_setCacheHas.js","../node_modules/lodash-es/_SetCache.js","../node_modules/lodash-es/_arraySome.js","../node_modules/lodash-es/_cacheHas.js","../node_modules/lodash-es/_equalArrays.js","../node_modules/lodash-es/_Uint8Array.js","../node_modules/lodash-es/_mapToArray.js","../node_modules/lodash-es/_setToArray.js","../node_modules/lodash-es/_equalByTag.js","../node_modules/lodash-es/_arrayPush.js","../node_modules/lodash-es/isArray.js","../node_modules/lodash-es/_baseGetAllKeys.js","../node_modules/lodash-es/_arrayFilter.js","../node_modules/lodash-es/stubArray.js","../node_modules/lodash-es/_getSymbols.js","../node_modules/lodash-es/_baseTimes.js","../node_modules/lodash-es/isObjectLike.js","../node_modules/lodash-es/_baseIsArguments.js","../node_modules/lodash-es/isArguments.js","../node_modules/lodash-es/stubFalse.js","../node_modules/lodash-es/isBuffer.js","../node_modules/lodash-es/_isIndex.js","../node_modules/lodash-es/isLength.js","../node_modules/lodash-es/_baseIsTypedArray.js","../node_modules/lodash-es/_baseUnary.js","../node_modules/lodash-es/_nodeUtil.js","../node_modules/lodash-es/isTypedArray.js","../node_modules/lodash-es/_arrayLikeKeys.js","../node_modules/lodash-es/_isPrototype.js","../node_modules/lodash-es/_overArg.js","../node_modules/lodash-es/_nativeKeys.js","../node_modules/lodash-es/_baseKeys.js","../node_modules/lodash-es/isArrayLike.js","../node_modules/lodash-es/keys.js","../node_modules/lodash-es/_getAllKeys.js","../node_modules/lodash-es/_equalObjects.js","../node_modules/lodash-es/_DataView.js","../node_modules/lodash-es/_Promise.js","../node_modules/lodash-es/_Set.js","../node_modules/lodash-es/_WeakMap.js","../node_modules/lodash-es/_getTag.js","../node_modules/lodash-es/_baseIsEqualDeep.js","../node_modules/lodash-es/_baseIsEqual.js","../node_modules/lodash-es/isEqual.js","../node_modules/react-leaflet/es/MapControl.js","../node_modules/react-leaflet-draw/dist/esm/EditControl.js","components/FormComponents/MapSelect.jsx","components/Tabs/SpatialTab.jsx","utils/tabs.js","components/FormComponents/Regions.jsx","components/Tabs/SubmitTab.jsx","../node_modules/@material-ui/core/esm/TableContainer/TableContainer.js","../node_modules/@material-ui/core/esm/Table/TableContext.js","../node_modules/@material-ui/core/esm/Table/Table.js","../node_modules/@material-ui/core/esm/Table/Tablelvl2Context.js","../node_modules/@material-ui/core/esm/TableBody/TableBody.js","../node_modules/@material-ui/core/esm/TableRow/TableRow.js","../node_modules/@material-ui/core/esm/TableCell/TableCell.js","../node_modules/axios/lib/helpers/bind.js","../node_modules/axios/lib/utils.js","../node_modules/axios/lib/core/AxiosError.js","../node_modules/axios/lib/helpers/toFormData.js","../node_modules/axios/lib/helpers/AxiosURLSearchParams.js","../node_modules/axios/lib/helpers/buildURL.js","../node_modules/axios/lib/core/InterceptorManager.js","../node_modules/axios/lib/defaults/transitional.js","../node_modules/axios/lib/platform/browser/index.js","../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","../node_modules/axios/lib/platform/browser/classes/FormData.js","../node_modules/axios/lib/platform/browser/classes/Blob.js","../node_modules/axios/lib/platform/common/utils.js","../node_modules/axios/lib/platform/index.js","../node_modules/axios/lib/helpers/formDataToJSON.js","../node_modules/axios/lib/defaults/index.js","../node_modules/axios/lib/helpers/toURLEncodedForm.js","../node_modules/axios/lib/helpers/parseHeaders.js","../node_modules/axios/lib/core/AxiosHeaders.js","../node_modules/axios/lib/core/transformData.js","../node_modules/axios/lib/cancel/isCancel.js","../node_modules/axios/lib/cancel/CanceledError.js","../node_modules/axios/lib/helpers/cookies.js","../node_modules/axios/lib/core/buildFullPath.js","../node_modules/axios/lib/helpers/isAbsoluteURL.js","../node_modules/axios/lib/helpers/combineURLs.js","../node_modules/axios/lib/helpers/isURLSameOrigin.js","../node_modules/axios/lib/helpers/speedometer.js","../node_modules/axios/lib/adapters/xhr.js","../node_modules/axios/lib/core/settle.js","../node_modules/axios/lib/helpers/parseProtocol.js","../node_modules/axios/lib/adapters/adapters.js","../node_modules/axios/lib/helpers/null.js","../node_modules/axios/lib/core/dispatchRequest.js","../node_modules/axios/lib/core/mergeConfig.js","../node_modules/axios/lib/env/data.js","../node_modules/axios/lib/helpers/validator.js","../node_modules/axios/lib/core/Axios.js","../node_modules/axios/lib/cancel/CancelToken.js","../node_modules/axios/lib/helpers/HttpStatusCode.js","../node_modules/axios/lib/axios.js","../node_modules/axios/lib/helpers/spread.js","../node_modules/axios/lib/helpers/isAxiosError.js","components/Tabs/TaxaTab.jsx","components/Pages/MetadataForm.jsx","components/Pages/ErrorBoundary.jsx","components/FormComponents/EditSavedContact.jsx","components/FormComponents/InstrumentEditor.jsx","components/FormComponents/EditSavedInstrument.jsx","components/FormComponents/TransferModal.jsx","components/Pages/Reviewer.jsx","../node_modules/@material-ui/core/esm/DialogTitle/DialogTitle.js","../node_modules/@material-ui/core/esm/DialogContentText/DialogContentText.js","../node_modules/@material-ui/icons/esm/VisibilityOff.js","components/Pages/Admin.jsx","utils/firebaseEnableDoiCreation.js","components/Pages/SentryTest.jsx","components/Pages/PlatformsSaved.jsx","utils/firebasePlatformFunctions.js","components/FormComponents/PlatformEditor.jsx","components/FormComponents/EditSavedPlatform.jsx","components/BaseLayout.jsx","../node_modules/@material-ui/core/esm/Card/Card.js","../node_modules/@material-ui/core/esm/CardActionArea/CardActionArea.js","../node_modules/@material-ui/core/esm/CardContent/CardContent.js","../node_modules/@material-ui/core/esm/CardMedia/CardMedia.js","components/FormComponents/RegionCard.jsx","components/Pages/RegionSelect.jsx","components/App.jsx","serviceWorker.js","../node_modules/@sentry/core/src/sdk.ts","index.jsx"],"sourcesContent":["import Cite from './index.js';\n\nconst currentVersion = function () {\n return this.log.length;\n};\n\nconst retrieveVersion = function (versnum = 1) {\n if (versnum <= 0 || versnum > this.currentVersion()) {\n return null;\n } else {\n const [data, options] = this.log[versnum - 1];\n const image = new Cite(JSON.parse(data), JSON.parse(options));\n image.log = this.log.slice(0, versnum);\n return image;\n }\n};\n\nconst undo = function (number = 1) {\n return this.retrieveVersion(this.currentVersion() - number);\n};\n\nconst retrieveLastVersion = function () {\n return this.retrieveVersion(this.currentVersion());\n};\n\nconst save = function () {\n this.log.push([JSON.stringify(this.data), JSON.stringify(this._options)]);\n return this;\n};\n\nexport { currentVersion, retrieveVersion, retrieveLastVersion, undo, save };","const formats = ['real', 'string'];\nconst types = ['json', 'html', 'string', 'rtf'];\nconst styles = ['csl', 'bibtex', 'bibtxt', 'citation-*', 'ris', 'ndjson'];\nconst wrapperTypes = ['string', 'function'];\nexport function validateOutputOptions(options) {\n if (typeof options !== 'object') {\n throw new TypeError('Options not an object!');\n }\n\n const {\n format,\n type,\n style,\n lang,\n append,\n prepend\n } = options;\n\n if (format && !formats.includes(format)) {\n throw new TypeError(`Option format (\"${format}\") should be one of: ${formats}`);\n } else if (type && !types.includes(type)) {\n throw new TypeError(`Option type (\"${type}\") should be one of: ${types}`);\n } else if (style && !styles.includes(style) && !/^citation/.test(style)) {\n throw new TypeError(`Option style (\"${style}\") should be one of: ${styles}`);\n } else if (lang && typeof lang !== 'string') {\n throw new TypeError(`Option lang should be a string, but is a ${typeof lang}`);\n } else if (prepend && !wrapperTypes.includes(typeof prepend)) {\n throw new TypeError(`Option prepend should be a string or a function, but is a ${typeof prepend}`);\n } else if (append && !wrapperTypes.includes(typeof append)) {\n throw new TypeError(`Option append should be a string or a function, but is a ${typeof append}`);\n }\n\n if (/^citation/.test(style) && type === 'json') {\n throw new Error(`Combination type/style of json/citation-* is not valid: ${type}/${style}`);\n }\n\n return true;\n}\nexport function validateOptions(options) {\n if (typeof options !== 'object') {\n throw new TypeError('Options should be an object');\n }\n\n if (options.output) {\n validateOutputOptions(options.output);\n } else if (options.maxChainLength && typeof options.maxChainLength !== 'number') {\n throw new TypeError('Option maxChainLength should be a number');\n } else if (options.forceType && typeof options.forceType !== 'string') {\n throw new TypeError('Option forceType should be a string');\n } else if (options.generateGraph != null && typeof options.generateGraph !== 'boolean') {\n throw new TypeError('Option generateGraph should be a boolean');\n } else if (options.strict != null && typeof options.strict !== 'boolean') {\n throw new TypeError('Option strict should be a boolean');\n } else if (options.target != null && typeof options.target !== 'string') {\n throw new TypeError('Option target should be a boolean');\n }\n\n return true;\n}","import { validateOutputOptions as validate } from './validate.js';\nconst defaultOptions = {\n format: 'real',\n type: 'json',\n style: 'csl',\n lang: 'en-US'\n};\n\nconst options = function (options, log) {\n validate(options);\n\n if (log) {\n this.save();\n }\n\n Object.assign(this._options, options);\n return this;\n};\n\nexport { options, defaultOptions };","export const typeOf = thing => {\n switch (thing) {\n case undefined:\n return 'Undefined';\n\n case null:\n return 'Null';\n\n default:\n return thing.constructor.name;\n }\n};\nexport const dataTypeOf = thing => {\n switch (typeof thing) {\n case 'string':\n return 'String';\n\n case 'object':\n if (Array.isArray(thing)) {\n return 'Array';\n } else if (typeOf(thing) === 'Object') {\n return 'SimpleObject';\n } else if (typeOf(thing) !== 'Null') {\n return 'ComplexObject';\n }\n\n default:\n return 'Primitive';\n }\n};","export const applyGraph = (entry, graph) => {\n if (entry._graph) {\n const index = graph.findIndex(({\n type\n }) => type === '@else/list+object');\n\n if (index !== -1) {\n graph.splice(index + 1, 0, ...entry._graph.slice(0, -1));\n }\n }\n\n entry._graph = graph;\n return entry;\n};\nexport const removeGraph = entry => {\n delete entry._graph;\n return entry;\n};","const logger = {\n _output(level, scope, msg) {\n this._log.push(scope, msg);\n\n if (this._levels.indexOf(level) < this._levels.indexOf(this.level)) {\n return;\n }\n\n this._console.log(scope, ...msg);\n },\n\n _console: null,\n _log: [],\n _levels: ['http', 'debug', 'unmapped', 'info', 'warn', 'error', 'silent'],\n level: 'silent'\n};\n\nfor (const level of logger._levels) {\n logger[level] = (scope, ...msg) => logger._output(level, scope, msg);\n}\n\nif (typeof console.Console === 'function') {\n logger._console = new console.Console(process.stderr);\n} else {\n logger._console = console;\n}\n\nexport default logger;","import logger from '../../logger.js';\nimport { dataTypeOf } from './dataType.js';\nconst types = {};\nconst dataTypes = {};\nconst unregExts = {};\n\nconst parseNativeTypes = (input, dataType) => {\n switch (dataType) {\n case 'Array':\n if (input.length === 0 || input.every(entry => type(entry) === '@csl/object')) {\n return '@csl/list+object';\n } else {\n return '@else/list+object';\n }\n\n case 'SimpleObject':\n case 'ComplexObject':\n return '@csl/object';\n\n default:\n return '@invalid';\n }\n};\n\nconst matchType = (typeList = [], data) => {\n for (const type of typeList) {\n if (types[type].predicate(data)) {\n return matchType(types[type].extensions, data) || type;\n }\n }\n};\n\nexport const type = input => {\n const dataType = dataTypeOf(input);\n\n if (dataType === 'Array' && input.length === 0) {\n return parseNativeTypes(input, dataType);\n }\n\n const match = matchType(dataTypes[dataType], input);\n return match || parseNativeTypes(input, dataType);\n};\nexport const addTypeParser = (format, {\n dataType,\n predicate,\n extends: extend\n}) => {\n let extensions = [];\n\n if (format in unregExts) {\n extensions = unregExts[format];\n delete unregExts[format];\n logger.debug('[core]', `Subclasses \"${extensions}\" finally registered to parent type \"${format}\"`);\n }\n\n const object = {\n predicate,\n extensions\n };\n types[format] = object;\n\n if (extend) {\n const parentTypeParser = types[extend];\n\n if (parentTypeParser) {\n parentTypeParser.extensions.push(format);\n } else {\n if (!unregExts[extend]) {\n unregExts[extend] = [];\n }\n\n unregExts[extend].push(format);\n logger.debug('[core]', `Subclass \"${format}\" is waiting on parent type \"${extend}\"`);\n }\n } else {\n const typeList = dataTypes[dataType] || (dataTypes[dataType] = []);\n typeList.push(format);\n }\n};\nexport const hasTypeParser = type => Object.prototype.hasOwnProperty.call(types, type);\nexport const removeTypeParser = type => {\n delete types[type];\n const typeLists = [...Object.keys(dataTypes).map(key => dataTypes[key]), ...Object.keys(types).map(type => types[type].extensions).filter(list => list.length > 0)];\n typeLists.forEach(typeList => {\n const index = typeList.indexOf(type);\n\n if (index > -1) {\n typeList.splice(index, 1);\n }\n });\n};\nexport const listTypeParser = () => Object.keys(types);\nexport const treeTypeParser = () => {\n const attachNode = name => ({\n name,\n children: types[name].extensions.map(attachNode)\n });\n\n return {\n name: 'Type tree',\n children: Object.keys(dataTypes).map(name => ({\n name,\n children: dataTypes[name].map(attachNode)\n }))\n };\n};\nexport const typeMatcher = /^(?:@(.+?))(?:\\/(?:(.+?)\\+)?(?:(.+)))?$/;","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { type, typeMatcher } from './type.js';\n\nclass TypeParser {\n constructor(data) {\n _defineProperty(this, \"validDataTypes\", ['String', 'Array', 'SimpleObject', 'ComplexObject', 'Primitive']);\n\n this.data = data;\n }\n\n validateDataType() {\n const dataType = this.data.dataType;\n\n if (dataType && !this.validDataTypes.includes(dataType)) {\n throw new RangeError(`dataType was ${dataType}; expected one of ${this.validDataTypes}`);\n }\n }\n\n validateParseType() {\n const predicate = this.data.predicate;\n\n if (predicate && !(predicate instanceof RegExp || typeof predicate === 'function')) {\n throw new TypeError(`predicate was ${typeof predicate}; expected RegExp or function`);\n }\n }\n\n validateTokenList() {\n const tokenList = this.data.tokenList;\n\n if (tokenList && typeof tokenList !== 'object') {\n throw new TypeError(`tokenList was ${typeof tokenList}; expected object or RegExp`);\n }\n }\n\n validatePropertyConstraint() {\n const propertyConstraint = this.data.propertyConstraint;\n\n if (propertyConstraint && typeof propertyConstraint !== 'object') {\n throw new TypeError(`propertyConstraint was ${typeof propertyConstraint}; expected array or object`);\n }\n }\n\n validateElementConstraint() {\n const elementConstraint = this.data.elementConstraint;\n\n if (elementConstraint && typeof elementConstraint !== 'string') {\n throw new TypeError(`elementConstraint was ${typeof elementConstraint}; expected string`);\n }\n }\n\n validateExtends() {\n const extend = this.data.extends;\n\n if (extend && typeof extend !== 'string') {\n throw new TypeError(`extends was ${typeof extend}; expected string`);\n }\n }\n\n validate() {\n if (this.data === null || typeof this.data !== 'object') {\n throw new TypeError(`typeParser was ${typeof this.data}; expected object`);\n }\n\n this.validateDataType();\n this.validateParseType();\n this.validateTokenList();\n this.validatePropertyConstraint();\n this.validateElementConstraint();\n this.validateExtends();\n }\n\n parseTokenList() {\n let tokenList = this.data.tokenList;\n\n if (!tokenList) {\n return [];\n } else if (tokenList instanceof RegExp) {\n tokenList = {\n token: tokenList\n };\n }\n\n const {\n token,\n split = /\\s+/,\n trim = true,\n every = true\n } = tokenList;\n\n const trimInput = input => trim ? input.trim() : input;\n\n const testTokens = every ? 'every' : 'some';\n\n const predicate = input => trimInput(input).split(split)[testTokens](part => token.test(part));\n\n return [predicate];\n }\n\n parsePropertyConstraint() {\n const constraints = [].concat(this.data.propertyConstraint || []);\n return constraints.map(({\n props,\n match,\n value\n }) => {\n props = [].concat(props);\n\n switch (match) {\n case 'any':\n case 'some':\n return input => props.some(prop => prop in input && (!value || value(input[prop])));\n\n case 'none':\n return input => !props.some(prop => prop in input && (!value || value(input[prop])));\n\n case 'every':\n default:\n return input => props.every(prop => prop in input && (!value || value(input[prop])));\n }\n });\n }\n\n parseElementConstraint() {\n const constraint = this.data.elementConstraint;\n return !constraint ? [] : [input => input.every(entry => type(entry) === constraint)];\n }\n\n parsePredicate() {\n if (this.data.predicate instanceof RegExp) {\n return [this.data.predicate.test.bind(this.data.predicate)];\n } else if (this.data.predicate) {\n return [this.data.predicate];\n } else {\n return [];\n }\n }\n\n getCombinedPredicate() {\n const predicates = [...this.parsePredicate(), ...this.parseTokenList(), ...this.parsePropertyConstraint(), ...this.parseElementConstraint()];\n\n if (predicates.length === 0) {\n return () => true;\n } else if (predicates.length === 1) {\n return predicates[0];\n } else {\n return input => predicates.every(predicate => predicate(input));\n }\n }\n\n getDataType() {\n if (this.data.dataType) {\n return this.data.dataType;\n } else if (this.data.predicate instanceof RegExp) {\n return 'String';\n } else if (this.data.tokenList) {\n return 'String';\n } else if (this.data.elementConstraint) {\n return 'Array';\n } else {\n return 'Primitive';\n }\n }\n\n get dataType() {\n return this.getDataType();\n }\n\n get predicate() {\n return this.getCombinedPredicate();\n }\n\n get extends() {\n return this.data.extends;\n }\n\n}\n\nclass DataParser {\n constructor(parser, {\n async\n } = {}) {\n this.parser = parser;\n this.async = async;\n }\n\n validate() {\n const parser = this.parser;\n\n if (typeof parser !== 'function') {\n throw new TypeError(`parser was ${typeof parser}; expected function`);\n }\n }\n\n}\n\nclass FormatParser {\n constructor(format, parsers = {}) {\n this.format = format;\n\n if (parsers.parseType) {\n this.typeParser = new TypeParser(parsers.parseType);\n }\n\n if (parsers.parse) {\n this.dataParser = new DataParser(parsers.parse, {\n async: false\n });\n }\n\n if (parsers.parseAsync) {\n this.asyncDataParser = new DataParser(parsers.parseAsync, {\n async: true\n });\n }\n }\n\n validateFormat() {\n const format = this.format;\n\n if (!typeMatcher.test(format)) {\n throw new TypeError(`format name was \"${format}\"; didn't match expected pattern`);\n }\n }\n\n validate() {\n this.validateFormat();\n\n if (this.typeParser) {\n this.typeParser.validate();\n }\n\n if (this.dataParser) {\n this.dataParser.validate();\n }\n\n if (this.asyncDataParser) {\n this.asyncDataParser.validate();\n }\n }\n\n}\n\nexport { TypeParser, DataParser, FormatParser };","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { parse as parseName } from '@citation-js/name';\nconst NAME = 1;\nconst NAME_LIST = 2;\nconst DATE = 3;\nconst TYPE = 4;\nconst entryTypes = {\n article: true,\n 'article-journal': true,\n 'article-magazine': true,\n 'article-newspaper': true,\n bill: true,\n book: true,\n broadcast: true,\n chapter: true,\n classic: true,\n collection: true,\n dataset: true,\n document: true,\n entry: true,\n 'entry-dictionary': true,\n 'entry-encyclopedia': true,\n event: true,\n figure: true,\n graphic: true,\n hearing: true,\n interview: true,\n legal_case: true,\n legislation: true,\n manuscript: true,\n map: true,\n motion_picture: true,\n musical_score: true,\n pamphlet: true,\n 'paper-conference': true,\n patent: true,\n performance: true,\n periodical: true,\n personal_communication: true,\n post: true,\n 'post-weblog': true,\n regulation: true,\n report: true,\n review: true,\n 'review-book': true,\n software: true,\n song: true,\n speech: true,\n standard: true,\n thesis: true,\n treaty: true,\n webpage: true,\n 'journal-article': 'article-journal',\n 'book-chapter': 'chapter',\n 'posted-content': 'manuscript',\n 'proceedings-article': 'paper-conference'\n};\nconst fieldTypes = {\n author: NAME_LIST,\n 'collection-editor': NAME_LIST,\n composer: NAME_LIST,\n 'container-author': NAME_LIST,\n editor: NAME_LIST,\n 'editorial-director': NAME_LIST,\n director: NAME_LIST,\n interviewer: NAME_LIST,\n illustrator: NAME_LIST,\n 'original-author': NAME_LIST,\n 'reviewed-author': NAME_LIST,\n recipient: NAME_LIST,\n translator: NAME_LIST,\n accessed: DATE,\n container: DATE,\n 'event-date': DATE,\n issued: DATE,\n 'original-date': DATE,\n submitted: DATE,\n type: TYPE,\n categories: 'object',\n id: ['string', 'number'],\n language: 'string',\n journalAbbreviation: 'string',\n shortTitle: 'string',\n abstract: 'string',\n annote: 'string',\n archive: 'string',\n archive_location: 'string',\n 'archive-place': 'string',\n authority: 'string',\n 'call-number': 'string',\n 'chapter-number': 'string',\n 'citation-number': 'string',\n 'citation-label': 'string',\n 'collection-number': 'string',\n 'collection-title': 'string',\n 'container-title': 'string',\n 'container-title-short': 'string',\n dimensions: 'string',\n DOI: 'string',\n edition: ['string', 'number'],\n event: 'string',\n 'event-place': 'string',\n 'first-reference-note-number': 'string',\n genre: 'string',\n ISBN: 'string',\n ISSN: 'string',\n issue: ['string', 'number'],\n jurisdiction: 'string',\n keyword: 'string',\n locator: 'string',\n medium: 'string',\n note: 'string',\n number: ['string', 'number'],\n 'number-of-pages': 'string',\n 'number-of-volumes': ['string', 'number'],\n 'original-publisher': 'string',\n 'original-publisher-place': 'string',\n 'original-title': 'string',\n page: 'string',\n 'page-first': 'string',\n PMCID: 'string',\n PMID: 'string',\n publisher: 'string',\n 'publisher-place': 'string',\n references: 'string',\n 'reviewed-title': 'string',\n scale: 'string',\n section: 'string',\n source: 'string',\n status: 'string',\n title: 'string',\n 'title-short': 'string',\n URL: 'string',\n version: 'string',\n volume: ['string', 'number'],\n 'year-suffix': 'string'\n};\n\nconst correctName = function (name, bestGuessConversions) {\n if (typeof name === 'object' && name !== null && (name.literal || name.given || name.family)) {\n return name;\n } else if (!bestGuessConversions) {\n return undefined;\n } else if (typeof name === 'string') {\n return parseName(name);\n }\n};\n\nconst correctNameList = function (nameList, bestGuessConversions) {\n if (nameList instanceof Array) {\n const names = nameList.map(name => correctName(name, bestGuessConversions)).filter(Boolean);\n return names.length ? names : undefined;\n }\n};\n\nconst correctDateParts = function (dateParts, bestGuessConversions) {\n if (dateParts.every(part => typeof part === 'number')) {\n return dateParts;\n } else if (!bestGuessConversions || dateParts.some(part => isNaN(parseInt(part)))) {\n return undefined;\n } else {\n return dateParts.map(part => parseInt(part));\n }\n};\n\nconst correctDate = function (date, bestGuessConversions) {\n const dp = 'date-parts';\n\n if (typeof date !== 'object' || date === null) {\n return undefined;\n } else if (date[dp] instanceof Array && date[dp].every(part => part instanceof Array)) {\n const range = date[dp].map(dateParts => correctDateParts(dateParts, bestGuessConversions)).filter(Boolean);\n return range.length ? _objectSpread(_objectSpread({}, date), {}, {\n 'date-parts': range\n }) : undefined;\n } else if (date instanceof Array && date.every(part => part[dp] instanceof Array)) {\n const range = date.map(dateParts => correctDateParts(dateParts[dp], bestGuessConversions)).filter(Boolean);\n return range.length ? {\n 'date-parts': range\n } : undefined;\n } else if (date[dp] instanceof Array) {\n const dateParts = correctDateParts(date[dp], bestGuessConversions);\n return dateParts && {\n 'date-parts': [dateParts]\n };\n } else if ('literal' in date || 'raw' in date) {\n return date;\n }\n};\n\nconst correctType = function (type, bestGuessConversions) {\n type = correctField('language', type, bestGuessConversions);\n\n if (entryTypes[type] === true) {\n return type;\n } else if (bestGuessConversions && type in entryTypes) {\n return entryTypes[type];\n } else {\n return undefined;\n }\n};\n\nconst correctField = function (fieldName, value, bestGuessConversions) {\n const fieldType = [].concat(fieldTypes[fieldName]);\n\n switch (fieldTypes[fieldName]) {\n case NAME:\n return correctName(value, bestGuessConversions);\n\n case NAME_LIST:\n return correctNameList(value, bestGuessConversions);\n\n case DATE:\n return correctDate(value, bestGuessConversions);\n\n case TYPE:\n return correctType(value, bestGuessConversions);\n }\n\n if (/^_/.test(fieldName)) {\n return value;\n } else if (bestGuessConversions) {\n if (typeof value === 'string' && fieldType.includes('number') && !fieldType.includes('string') && !isNaN(+value)) {\n return parseFloat(value);\n } else if (typeof value === 'number' && fieldType.includes('string') && !fieldType.includes('number')) {\n return value.toString();\n } else if (Array.isArray(value) && value.length) {\n return correctField(fieldName, value[0], bestGuessConversions);\n }\n }\n\n if (fieldType.includes(typeof value)) {\n return value;\n }\n};\n\nconst parseCsl = function (data, bestGuessConversions = true) {\n return data.map(function (entry) {\n const clean = {};\n\n for (const field in entry) {\n const correction = correctField(field, entry[field], bestGuessConversions);\n\n if (correction !== undefined) {\n clean[field] = correction;\n }\n }\n\n return clean;\n });\n};\n\nexport { parseCsl as clean };","export function deepCopy(value, seen = new Set()) {\n if (typeof value !== 'object' || value === null || value.constructor !== Object && value.constructor !== Array) {\n return value;\n }\n\n if (seen.has(value)) {\n throw new TypeError('Recursively copying circular structure');\n }\n\n seen.add(value);\n let copy;\n\n if (value.constructor === Array) {\n copy = value.map(value => deepCopy(value, seen));\n } else {\n const object = {};\n\n for (const key in value) {\n object[key] = deepCopy(value[key], seen);\n }\n\n copy = object;\n }\n\n seen.delete(value);\n return copy;\n}\nexport default deepCopy;","import deepCopy from '../../util/deepCopy.js';\nimport logger from '../../logger.js';\nimport { get as getTypeInfo } from './register.js';\nimport { type as parseType } from './type.js';\nimport { data as parseData, dataAsync as parseDataAsync } from './data.js';\nimport { applyGraph, removeGraph } from './graph.js';\n\nfunction prepareParseGraph(graph) {\n return graph.reduce((array, next) => {\n const last = array[array.length - 1];\n\n if (last && last.type === next.type) {\n last.count = last.count + 1 || 2;\n } else {\n array.push(next);\n }\n\n return array;\n }, []).map(element => (element.count > 1 ? element.count + 'x ' : '') + element.type).join(' -> ');\n}\n\nclass ChainParser {\n constructor(input, options = {}) {\n this.options = Object.assign({\n generateGraph: true,\n forceType: parseType(input),\n maxChainLength: 10,\n strict: true,\n target: '@csl/list+object'\n }, options);\n this.type = this.options.forceType;\n this.data = typeof input === 'object' ? deepCopy(input) : input;\n this.graph = [{\n type: this.type,\n data: input\n }];\n this.iteration = 0;\n }\n\n iterate() {\n if (this.iteration !== 0) {\n const typeInfo = getTypeInfo(this.type);\n\n if (typeInfo && typeInfo.outputs) {\n this.type = typeInfo.outputs;\n } else {\n this.type = parseType(this.data);\n }\n\n this.graph.push({\n type: this.type\n });\n }\n\n if (this.error || this.type === this.options.target) {\n return false;\n } else if (this.iteration >= this.options.maxChainLength) {\n this.error = new RangeError(`Max. number of parsing iterations reached (${prepareParseGraph(this.graph)})`);\n return false;\n } else {\n this.iteration++;\n return true;\n }\n }\n\n end() {\n if (this.error) {\n logger.error('[core]', this.error.message);\n\n if (this.options.strict !== false) {\n throw this.error;\n } else {\n return [];\n }\n } else if (this.options.target === '@csl/list+object') {\n return this.data.map(this.options.generateGraph ? entry => applyGraph(entry, this.graph) : removeGraph);\n } else {\n return this.data;\n }\n }\n\n}\n\nexport const chain = (...args) => {\n const chain = new ChainParser(...args);\n\n while (chain.iterate()) {\n try {\n chain.data = parseData(chain.data, chain.type);\n } catch (e) {\n chain.error = e;\n }\n }\n\n return chain.end();\n};\nexport const chainLink = input => {\n const type = parseType(input);\n const output = type.match(/array|object/) ? deepCopy(input) : input;\n return parseData(output, type);\n};\nexport const chainAsync = async (...args) => {\n const chain = new ChainParser(...args);\n\n while (chain.iterate()) {\n chain.data = await parseDataAsync(chain.data, chain.type).catch(e => {\n chain.error = e;\n });\n }\n\n return chain.end();\n};\nexport const chainLinkAsync = async input => {\n const type = parseType(input);\n const output = type.match(/array|object/) ? deepCopy(input) : input;\n return parseDataAsync(output, type);\n};","import { chain, chainAsync } from './chain.js';\n\nconst flatten = array => [].concat(...array);\n\nconst parsers = {};\nconst asyncParsers = {};\nconst nativeParsers = {\n '@csl/object': input => [input],\n '@csl/list+object': input => input,\n '@else/list+object': input => flatten(input.map(chain)),\n '@invalid': () => {\n throw new Error('This format is not supported or recognized');\n }\n};\nconst nativeAsyncParsers = {\n '@else/list+object': async input => flatten(await Promise.all(input.map(chainAsync)))\n};\nexport const data = (input, type) => {\n if (typeof parsers[type] === 'function') {\n return parsers[type](input);\n } else if (typeof nativeParsers[type] === 'function') {\n return nativeParsers[type](input);\n } else {\n throw new TypeError(`No synchronous parser found for ${type}`);\n }\n};\nexport const dataAsync = async (input, type) => {\n if (typeof asyncParsers[type] === 'function') {\n return asyncParsers[type](input);\n } else if (typeof nativeAsyncParsers[type] === 'function') {\n return nativeAsyncParsers[type](input);\n } else if (hasDataParser(type, false)) {\n return data(input, type);\n } else {\n throw new TypeError(`No parser found for ${type}`);\n }\n};\nexport const addDataParser = (format, {\n parser,\n async\n}) => {\n if (async) {\n asyncParsers[format] = parser;\n } else {\n parsers[format] = parser;\n }\n};\nexport const hasDataParser = (type, async) => async ? asyncParsers[type] || nativeAsyncParsers[type] : parsers[type] || nativeParsers[type];\nexport const removeDataParser = (type, async) => {\n delete (async ? asyncParsers : parsers)[type];\n};\nexport const listDataParser = async => Object.keys(async ? asyncParsers : parsers);","import { FormatParser } from './parser.js';\nimport { addTypeParser, removeTypeParser } from './type.js';\nimport { addDataParser, removeDataParser } from './data.js';\nconst formats = {};\nexport const add = (format, parsers) => {\n const formatParser = new FormatParser(format, parsers);\n formatParser.validate();\n const index = formats[format] || (formats[format] = {});\n\n if (formatParser.typeParser) {\n addTypeParser(format, formatParser.typeParser);\n index.type = true;\n }\n\n if (formatParser.dataParser) {\n addDataParser(format, formatParser.dataParser);\n index.data = true;\n }\n\n if (formatParser.asyncDataParser) {\n addDataParser(format, formatParser.asyncDataParser);\n index.asyncData = true;\n }\n\n if (parsers.outputs) {\n index.outputs = parsers.outputs;\n }\n};\nexport const get = format => {\n return formats[format];\n};\nexport const remove = format => {\n const index = formats[format];\n\n if (!index) {\n return;\n }\n\n if (index.type) {\n removeTypeParser(format);\n }\n\n if (index.data) {\n removeDataParser(format);\n }\n\n if (index.asyncData) {\n removeDataParser(format, true);\n }\n\n delete formats[format];\n};\nexport const has = format => format in formats;\nexport const list = () => Object.keys(formats);","import * as dataType from './dataType.js';\nimport * as graph from './graph.js';\nimport * as parser from './parser.js';\nimport * as csl from './csl.js';\nexport const util = Object.assign({}, dataType, graph, parser, csl);\nexport * from './register';\nexport * from './chain';\nexport * from './type';\nexport * from './data';","const fetchId = function (list, prefix) {\n let id;\n\n while (id === undefined || list.includes(id)) {\n id = `${prefix}${Math.random().toString().slice(2)}`;\n }\n\n return id;\n};\n\nexport default fetchId;","import { chain as parseInput, chainAsync as parseInputAsync } from '../plugins/input/index.js';\nimport fetchId from '../util/fetchId.js';\n\nconst add = function (data, options = {}, log = false) {\n if (options === true || log === true) {\n this.save();\n }\n\n this.data.push(...parseInput(data, options));\n this.data.filter(entry => !Object.prototype.hasOwnProperty.call(entry, 'id')).forEach(entry => {\n entry.id = fetchId(this.getIds(), 'temp_id_');\n });\n return this;\n};\n\nconst addAsync = async function (data, options = {}, log = false) {\n if (options === true || log === true) {\n this.save();\n }\n\n this.data.push(...(await parseInputAsync(data, options)));\n this.data.filter(entry => !Object.prototype.hasOwnProperty.call(entry, 'id')).forEach(entry => {\n entry.id = fetchId(this.getIds(), 'temp_id_');\n });\n return this;\n};\n\nconst set = function (data, options = {}, log = false) {\n if (options === true || log === true) {\n this.save();\n }\n\n this.data = [];\n return typeof options !== 'boolean' ? this.add(data, options) : this.add(data);\n};\n\nconst setAsync = async function (data, options = {}, log = false) {\n if (options === true || log === true) {\n this.save();\n }\n\n this.data = [];\n return typeof options !== 'boolean' ? this.addAsync(data, options) : this.addAsync(data);\n};\n\nconst reset = function (log) {\n if (log) {\n this.save();\n }\n\n this.data = [];\n this._options = {};\n return this;\n};\n\nexport { add, addAsync, set, setAsync, reset };","const getLabel = entry => {\n if ('citation-label' in entry) {\n return entry['citation-label'];\n }\n\n let res = '';\n\n if (entry.author) {\n res += entry.author[0].family || entry.author[0].literal;\n }\n\n if (entry.issued && entry.issued['date-parts'] && entry.issued['date-parts'][0]) {\n res += entry.issued['date-parts'][0][0];\n }\n\n if (entry['year-suffix']) {\n res += entry['year-suffix'];\n } else if (entry.title) {\n res += entry.title.replace(/<\\/?.*?>/g, '').match(/^(?:(?:the|a|an)\\s+)?(\\S+)/i)[1];\n }\n\n return res;\n};\n\nexport { getLabel };\nexport default {\n label(data) {\n return data.reduce((object, entry) => {\n object[entry.id] = getLabel(entry);\n return object;\n }, {});\n }\n\n};","import { getLabel } from '../plugin-common/output/label.js';\nimport { format as getName } from '@citation-js/name';\n\nconst getComparisonValue = function (obj, prop, label = prop === 'label') {\n let value = label ? getLabel(obj) : obj[prop];\n\n switch (prop) {\n case 'author':\n case 'editor':\n return value.map(name => name.literal || name.family || getName(name));\n\n case 'accessed':\n case 'issued':\n return value['date-parts'][0];\n\n case 'page':\n return value.split('-').map(num => parseInt(num));\n\n case 'edition':\n case 'issue':\n case 'volume':\n value = parseInt(value);\n return !isNaN(value) ? value : -Infinity;\n\n default:\n return value || -Infinity;\n }\n};\n\nconst compareProp = function (entryA, entryB, prop, flip = /^!/.test(prop)) {\n prop = prop.replace(/^!/, '');\n const a = getComparisonValue(entryA, prop);\n const b = getComparisonValue(entryB, prop);\n return (flip ? -1 : 1) * (a > b ? 1 : a < b ? -1 : 0);\n};\n\nconst getSortCallback = function (...props) {\n return (a, b) => {\n const keys = props.slice();\n let output = 0;\n\n while (!output && keys.length) {\n output = compareProp(a, b, keys.shift());\n }\n\n return output;\n };\n};\n\nconst sort = function (method = [], log) {\n if (log) {\n this.save();\n }\n\n this.data.sort(typeof method === 'function' ? method : getSortCallback(...method, 'label'));\n return this;\n};\n\nexport { sort };","import Cite from './index.js';\n\nconst async = function (data, options, callback) {\n if (typeof options === 'function' && !callback) {\n callback = options;\n options = undefined;\n }\n\n const promise = Cite().setAsync(data, options);\n\n if (typeof callback === 'function') {\n promise.then(callback);\n return undefined;\n } else {\n return promise;\n }\n};\n\nexport default async;","class Register {\n constructor(data = {}) {\n this.data = data;\n }\n\n set(key, value) {\n this.data[key] = value;\n return this;\n }\n\n add(...args) {\n return this.set(...args);\n }\n\n delete(key) {\n delete this.data[key];\n return this;\n }\n\n remove(...args) {\n return this.delete(...args);\n }\n\n get(key) {\n return this.data[key];\n }\n\n has(key) {\n return Object.prototype.hasOwnProperty.call(this.data, key);\n }\n\n list() {\n return Object.keys(this.data);\n }\n\n}\n\nexport default Register;","import Register from '../util/register.js';\n\nconst validate = (name, formatter) => {\n if (typeof name !== 'string') {\n throw new TypeError(`Invalid output format name, expected string, got ${typeof name}`);\n } else if (typeof formatter !== 'function') {\n throw new TypeError(`Invalid formatter, expected function, got ${typeof formatter}`);\n }\n};\n\nexport const register = new Register();\nexport const add = (name, formatter) => {\n validate(name, formatter);\n register.set(name, formatter);\n};\nexport const remove = name => {\n register.remove(name);\n};\nexport const has = name => {\n return register.has(name);\n};\nexport const list = () => {\n return register.list();\n};\nexport const format = (name, data, ...options) => {\n if (!register.has(name)) {\n throw new Error(`Output format \"${name}\" unavailable`);\n }\n\n return register.get(name)(data, ...options);\n};","import { validateOutputOptions as validate } from './static.js';\nimport { format as formatData } from '../plugins/output.js';\nimport { clean as parseCsl } from '../plugins/input/csl.js';\nexport function getIds() {\n return this.data.map(entry => entry.id);\n}\nexport function format(format, ...options) {\n return formatData(format, parseCsl(this.data), ...options);\n}\nexport function get(options = {}) {\n validate(options);\n const parsedOptions = Object.assign({}, this.defaultOptions, this._options.output, options);\n const {\n type,\n style\n } = parsedOptions;\n const [styleType, styleFormat] = style.split('-');\n const newStyle = styleType === 'citation' ? 'bibliography' : styleType === 'csl' ? 'data' : styleType;\n const newType = type === 'string' ? 'text' : type === 'json' ? 'object' : type;\n let formatOptions;\n\n switch (newStyle) {\n case 'bibliography':\n {\n const {\n lang,\n append,\n prepend\n } = parsedOptions;\n formatOptions = {\n template: styleFormat,\n lang,\n format: newType,\n append,\n prepend\n };\n break;\n }\n\n case 'data':\n case 'bibtex':\n case 'bibtxt':\n case 'ndjson':\n case 'ris':\n formatOptions = {\n type: newType\n };\n break;\n\n default:\n throw new Error(`Invalid style \"${newStyle}\"`);\n }\n\n const result = this.format(newStyle, Object.assign(formatOptions, options._newOptions));\n const {\n format\n } = parsedOptions;\n\n if (format === 'real' && newType === 'html' && typeof document !== 'undefined' && typeof document.createElement === 'function') {\n const tmp = document.createElement('div');\n tmp.innerHTML = result;\n return tmp.firstChild;\n } else if (format === 'string' && typeof result === 'object') {\n return JSON.stringify(result);\n } else {\n return result;\n }\n}","import * as log from './log.js';\nimport * as options from './options.js';\nimport * as set from './set.js';\nimport * as sort from './sort.js';\nimport * as get from './get.js';\nimport * as staticMethods from './static.js';\n\nfunction Cite(data, options = {}) {\n if (!(this instanceof Cite)) {\n return new Cite(data, options);\n }\n\n this._options = options;\n this.log = [];\n this.data = [];\n this.set(data, options);\n this.options(options);\n return this;\n}\n\nObject.assign(Cite.prototype, log, options, set, sort, get);\n\nCite.prototype[Symbol.iterator] = function* () {\n yield* this.data;\n};\n\nObject.assign(Cite, staticMethods);\nexport default Cite;","import Register from '../util/register.js';\n\nconst validate = (name, dict) => {\n if (typeof name !== 'string') {\n throw new TypeError(`Invalid dict name, expected string, got ${typeof name}`);\n } else if (typeof dict !== 'object') {\n throw new TypeError(`Invalid dict, expected object, got ${typeof dict}`);\n }\n\n for (const entryName in dict) {\n const entry = dict[entryName];\n\n if (!Array.isArray(entry) || entry.some(part => typeof part !== 'string')) {\n throw new TypeError(`Invalid dict entry \"${entryName}\", expected array of strings`);\n }\n }\n};\n\nexport const register = new Register({\n html: {\n bibliographyContainer: ['
    ', '
    '],\n entry: ['
    ', '
    '],\n list: ['
      ', '
    '],\n listItem: ['
  • ', '
  • ']\n },\n text: {\n bibliographyContainer: ['', '\\n'],\n entry: ['', '\\n'],\n list: ['\\n', ''],\n listItem: ['\\t', '\\n']\n }\n});\nexport const add = (name, dict) => {\n validate(name, dict);\n register.set(name, dict);\n};\nexport const remove = name => {\n register.remove(name);\n};\nexport const has = name => {\n return register.has(name);\n};\nexport const list = () => {\n return register.list();\n};\nexport const get = name => {\n if (!register.has(name)) {\n throw new Error(`Dict \"${name}\" unavailable`);\n }\n\n return register.get(name);\n};\nexport const htmlDict = {\n wr_start: '
    ',\n wr_end: '
    ',\n en_start: '
    ',\n en_end: '
    ',\n ul_start: '
      ',\n ul_end: '
    ',\n li_start: '
  • ',\n li_end: '
  • '\n};\nexport const textDict = {\n wr_start: '',\n wr_end: '\\n',\n en_start: '',\n en_end: '\\n',\n ul_start: '\\n',\n ul_end: '',\n li_start: '\\t',\n li_end: '\\n'\n};","const configs = {};\nexport const add = (ref, config) => {\n configs[ref] = config;\n};\nexport const get = ref => configs[ref];\nexport const has = ref => Object.prototype.hasOwnProperty.call(configs, ref);\nexport const remove = ref => {\n delete configs[ref];\n};\nexport const list = () => Object.keys(configs);","import * as input from './input/index.js';\nimport * as output from './output.js';\nimport * as dict from './dict.js';\nimport * as config from './config.js';\nconst registers = {\n input,\n output,\n dict,\n config\n};\nconst indices = {};\nexport const add = (ref, plugins = {}) => {\n const mainIndex = indices[ref] = {};\n\n for (const type in plugins) {\n if (type === 'config') {\n mainIndex.config = {\n [ref]: plugins.config\n };\n registers.config.add(ref, plugins.config);\n continue;\n }\n\n const typeIndex = mainIndex[type] = {};\n const typePlugins = plugins[type];\n\n for (const name in typePlugins) {\n const typePlugin = typePlugins[name];\n typeIndex[name] = true;\n registers[type].add(name, typePlugin);\n }\n }\n};\nexport const remove = ref => {\n const mainIndex = indices[ref];\n\n for (const type in mainIndex) {\n const typeIndex = mainIndex[type];\n\n for (const name in typeIndex) {\n registers[type].remove(name);\n }\n }\n\n delete indices[ref];\n};\nexport const has = ref => ref in indices;\nexport const list = () => Object.keys(indices);\nexport { input, output, dict, config };","import syncFetch from 'sync-fetch';\nimport 'isomorphic-fetch';\nimport logger from '../logger.js';\nimport pkg from '../../package.json';\nconst corsEnabled = typeof location !== 'undefined' && typeof document !== 'undefined';\nlet userAgent = corsEnabled ? '' : `Citation.js/${pkg.version} Node.js/${process.version}`;\n\nfunction normaliseHeaders(headers) {\n const result = {};\n const entries = headers instanceof Headers || headers instanceof syncFetch.Headers ? Array.from(headers) : Object.entries(headers);\n\n for (const [name, header] of entries) {\n result[name.toLowerCase()] = header.toString();\n }\n\n return result;\n}\n\nfunction parseOpts(opts = {}) {\n const reqOpts = {\n headers: {\n accept: '*/*'\n },\n method: 'GET',\n checkContentType: opts.checkContentType\n };\n\n if (userAgent && !corsEnabled) {\n reqOpts.headers['user-agent'] = userAgent;\n }\n\n if (opts.body) {\n reqOpts.method = 'POST';\n const isJson = typeof opts.body !== 'string';\n reqOpts.body = isJson ? JSON.stringify(opts.body) : opts.body;\n reqOpts.headers['content-type'] = isJson ? 'application/json' : 'text/plain';\n }\n\n if (opts.headers) {\n Object.assign(reqOpts.headers, normaliseHeaders(opts.headers));\n }\n\n return reqOpts;\n}\n\nfunction sameType(request, response) {\n if (!request.accept || request.accept === '*/*' || !response['content-type']) {\n return true;\n }\n\n const [a, b] = response['content-type'].split(';')[0].trim().split('/');\n return request.accept.split(',').map(type => type.split(';')[0].trim().split('/')).some(([c, d]) => (c === a || c === '*') && (d === b || d === '*'));\n}\n\nfunction checkResponse(response, opts) {\n const {\n status,\n headers\n } = response;\n let error;\n\n if (status >= 400) {\n error = new Error(`Server responded with status code ${status}`);\n } else if (opts.checkContentType === true && !sameType(opts.headers, normaliseHeaders(headers))) {\n error = new Error(`Server responded with content-type ${headers.get('content-type')}`);\n }\n\n if (error) {\n error.status = status;\n error.headers = headers;\n error.body = response.body;\n throw error;\n }\n\n return response;\n}\n\nexport function fetchFile(url, opts) {\n const reqOpts = parseOpts(opts);\n logger.http('[core]', reqOpts.method, url, reqOpts);\n const response = checkResponse(syncFetch(url, reqOpts), reqOpts);\n return response.text();\n}\nexport async function fetchFileAsync(url, opts) {\n const reqOpts = parseOpts(opts);\n logger.http('[core]', reqOpts.method, url, reqOpts);\n return fetch(url, reqOpts).then(response => checkResponse(response, reqOpts)).then(response => response.text());\n}\nexport function setUserAgent(newUserAgent) {\n userAgent = newUserAgent;\n}\nexport default fetchFile;","class TokenStack {\n constructor(array) {\n this.stack = array;\n this.index = 0;\n this.current = this.stack[this.index];\n }\n\n static getPatternText(pattern) {\n return `\"${pattern instanceof RegExp ? pattern.source : pattern}\"`;\n }\n\n static getMatchCallback(pattern) {\n if (Array.isArray(pattern)) {\n const matches = pattern.map(TokenStack.getMatchCallback);\n return token => matches.some(matchCallback => matchCallback(token));\n } else if (pattern instanceof Function) {\n return pattern;\n } else if (pattern instanceof RegExp) {\n return token => pattern.test(token);\n } else {\n return token => pattern === token;\n }\n }\n\n tokensLeft() {\n return this.stack.length - this.index;\n }\n\n matches(pattern) {\n return TokenStack.getMatchCallback(pattern)(this.current, this.index, this.stack);\n }\n\n matchesSequence(sequence) {\n const part = this.stack.slice(this.index, this.index + sequence.length).join('');\n return typeof sequence === 'string' ? part === sequence : sequence.every((pattern, index) => TokenStack.getMatchCallback(pattern)(part[index]));\n }\n\n consumeToken(pattern = /^[\\s\\S]$/, {\n inverse = false,\n spaced = true\n } = {}) {\n if (spaced) {\n this.consumeWhitespace();\n }\n\n const token = this.current;\n const match = TokenStack.getMatchCallback(pattern)(token, this.index, this.stack);\n\n if (match) {\n this.current = this.stack[++this.index];\n } else {\n throw new SyntaxError(`Unexpected token at index ${this.index}: Expected ${TokenStack.getPatternText(pattern)}, got \"${token}\"`);\n }\n\n if (spaced) {\n this.consumeWhitespace();\n }\n\n return token;\n }\n\n consumeWhitespace(pattern = /^\\s$/, {\n optional = true\n } = {}) {\n return this.consume(pattern, {\n min: +!optional\n });\n }\n\n consumeN(length) {\n if (this.tokensLeft() < length) {\n throw new SyntaxError('Not enough tokens left');\n }\n\n const start = this.index;\n\n while (length--) {\n this.current = this.stack[++this.index];\n }\n\n return this.stack.slice(start, this.index).join('');\n }\n\n consumeSequence(sequence) {\n if (this.matchesSequence(sequence)) {\n return this.consumeN(sequence.length);\n } else {\n throw new SyntaxError(`Expected \"${sequence}\", got \"${this.consumeN(sequence.length)}\"`);\n }\n }\n\n consume(pattern = /^[\\s\\S]$/, {\n min = 0,\n max = Infinity,\n inverse = false,\n tokenMap,\n tokenFilter\n } = {}) {\n const start = this.index;\n const match = TokenStack.getMatchCallback(pattern);\n\n while (match(this.current, this.index, this.stack) !== inverse) {\n this.current = this.stack[++this.index];\n }\n\n let consumed = this.stack.slice(start, this.index);\n\n if (consumed.length < min) {\n throw new SyntaxError(`Not enough ${TokenStack.getPatternText(pattern)}`);\n } else if (consumed.length > max) {\n throw new SyntaxError(`Too many ${TokenStack.getPatternText(pattern)}`);\n }\n\n if (tokenMap) {\n consumed = consumed.map(tokenMap);\n }\n\n if (tokenFilter) {\n consumed = consumed.filter(tokenFilter);\n }\n\n return consumed.join('');\n }\n\n}\n\nexport default TokenStack;","import { deepCopy } from './deepCopy.js';\n\nclass Grammar {\n constructor(rules, state) {\n this.rules = rules;\n this.defaultState = state;\n this.mainRule = Object.keys(rules)[0];\n this.log = [];\n }\n\n parse(iterator, mainRule) {\n this.lexer = iterator;\n this.token = this.lexer.next();\n this.state = deepCopy(this.defaultState);\n this.log = [];\n return this.consumeRule(mainRule || this.mainRule);\n }\n\n matchEndOfFile() {\n return !this.token;\n }\n\n matchToken(type) {\n return this.token && type === this.token.type;\n }\n\n consumeToken(type, optional) {\n const token = this.token;\n\n if (!type || token && token.type === type) {\n this.token = this.lexer.next();\n return token;\n } else if (optional) {\n return undefined;\n } else {\n const got = token ? `\"${token.type}\"` : 'EOF';\n const error = new SyntaxError(this.lexer.formatError(token, `expected \"${type}\", got ${got}`));\n error.message += ` (${this.log.join('->')})`;\n throw error;\n }\n }\n\n consumeRule(rule) {\n this.log.push(rule);\n const result = this.rules[rule].call(this);\n this.log.pop();\n return result;\n }\n\n}\n\nexport { Grammar };","function createConditionEval(condition) {\n return function conditionEval(input) {\n if (typeof condition === 'boolean') {\n return condition;\n }\n\n return Object.keys(condition).every(prop => {\n const value = condition[prop];\n\n if (value === true) {\n return prop in input;\n } else if (value === false) {\n return !(prop in input);\n } else if (typeof value === 'function') {\n return value(input[prop]);\n } else if (Array.isArray(value)) {\n return value.includes(input[prop]);\n } else {\n return input[prop] === value;\n }\n });\n };\n}\n\nfunction parsePropStatement(prop, toSource) {\n let inputProp;\n let outputProp;\n let convert;\n let condition;\n\n if (typeof prop === 'string') {\n inputProp = outputProp = prop;\n } else if (prop) {\n inputProp = toSource ? prop.target : prop.source;\n outputProp = toSource ? prop.source : prop.target;\n\n if (prop.convert) {\n convert = toSource ? prop.convert.toSource : prop.convert.toTarget;\n }\n\n if (prop.when) {\n condition = toSource ? prop.when.target : prop.when.source;\n\n if (condition != null) {\n condition = createConditionEval(condition);\n }\n }\n } else {\n return null;\n }\n\n inputProp = [].concat(inputProp).filter(Boolean);\n outputProp = [].concat(outputProp).filter(Boolean);\n return {\n inputProp,\n outputProp,\n convert,\n condition\n };\n}\n\nfunction createConverter(props, toSource) {\n toSource = toSource === Translator.CONVERT_TO_SOURCE;\n props = props.map(prop => parsePropStatement(prop, toSource)).filter(Boolean);\n return function converter(input) {\n const output = {};\n\n for (const {\n inputProp,\n outputProp,\n convert,\n condition\n } of props) {\n if (outputProp.length === 0) {\n continue;\n } else if (condition && !condition(input)) {\n continue;\n } else if (inputProp.length !== 0 && inputProp.every(prop => !(prop in input))) {\n continue;\n }\n\n let outputData = inputProp.map(prop => input[prop]);\n\n if (convert) {\n try {\n const converted = convert.apply(input, outputData);\n outputData = outputProp.length === 1 ? [converted] : converted;\n } catch (cause) {\n throw new Error(`Failed to convert ${inputProp} to ${outputProp}`, {\n cause\n });\n }\n }\n\n outputProp.forEach((prop, index) => {\n const value = outputData[index];\n\n if (value !== undefined) {\n output[prop] = value;\n }\n });\n }\n\n return output;\n };\n}\n\nclass Translator {\n constructor(props) {\n this.convertToSource = createConverter(props, Translator.CONVERT_TO_SOURCE);\n this.convertToTarget = createConverter(props, Translator.CONVERT_TO_TARGET);\n }\n\n}\n\nTranslator.CONVERT_TO_SOURCE = Symbol('convert to source');\nTranslator.CONVERT_TO_TARGET = Symbol('convert to target');\nexport { Translator };","export const parse = () => [];","import logger from '../../logger.js';\nconst substituters = [[/((?:\\[|:|,)\\s*)'((?:\\\\'|[^'])*?[^\\\\])?'(?=\\s*(?:\\]|}|,))/g, '$1\"$2\"'], [/((?:(?:\"|]|}|\\/[gmiuys]|\\.|(?:\\d|\\.|-)*\\d)\\s*,|{)\\s*)(?:\"([^\":\\n]+?)\"|'([^\":\\n]+?)'|([^\":\\n]+?))(\\s*):/g, '$1\"$2$3$4\"$5:']];\n\nconst parseJSON = function (str) {\n if (typeof str !== 'string') {\n return JSON.parse(str);\n }\n\n try {\n return JSON.parse(str);\n } catch (e) {\n logger.debug('[plugin-common]', 'Invalid JSON, switching to experimental parser');\n substituters.forEach(([regex, subst]) => {\n str = str.replace(regex, subst);\n });\n return JSON.parse(str);\n }\n};\n\nexport { parseJSON as parse, parseJSON as default };","export function parse(input) {\n return input.val() || input.text() || input.html();\n}","export function parse(input) {\n return input.value || input.textContent;\n}","import * as empty from './empty.js';\nimport * as url from './url.js';\nimport * as json from './json.js';\nimport * as jquery from './jquery.js';\nimport * as html from './html.js';\nexport const ref = '@else';\nexport const parsers = {\n empty,\n url,\n json,\n jquery,\n html\n};\nexport const formats = {\n '@empty/text': {\n parse: empty.parse,\n parseType: {\n dataType: 'String',\n predicate: input => input === ''\n }\n },\n '@empty/whitespace+text': {\n parse: empty.parse,\n parseType: {\n dataType: 'String',\n predicate: /^\\s+$/\n }\n },\n '@empty': {\n parse: empty.parse,\n parseType: {\n dataType: 'Primitive',\n predicate: input => input == null\n }\n },\n '@else/json': {\n parse: json.parse,\n parseType: {\n dataType: 'String',\n predicate: /^\\s*(\\{[\\S\\s]*\\}|\\[[\\S\\s]*\\])\\s*$/\n }\n },\n '@else/url': {\n parse: url.parse,\n parseAsync: url.parseAsync,\n parseType: {\n dataType: 'String',\n predicate: /^https?:\\/\\/(([\\w-]+\\.)*[\\w-]+)(:\\d+)?(\\/[^?/]*)*(\\?[^#]*)?(#.*)?$/i\n }\n },\n '@else/jquery': {\n parse: jquery.parse,\n parseType: {\n dataType: 'ComplexObject',\n\n predicate(input) {\n return typeof jQuery !== 'undefined' && input instanceof jQuery;\n }\n\n }\n },\n '@else/html': {\n parse: html.parse,\n parseType: {\n dataType: 'ComplexObject',\n\n predicate(input) {\n return typeof HTMLElement !== 'undefined' && input instanceof HTMLElement;\n }\n\n }\n }\n};","import * as plugins from '../../plugins/index.js';\nimport * as util from '../../util/index.js';\nimport logger from '../../logger.js';\n\nconst appendCommas = (string, index, array) => string + (index < array.length - 1 ? ',' : '');\n\nconst getJsonObject = function (src, dict) {\n const isArray = Array.isArray(src);\n let entries;\n\n if (isArray) {\n entries = src.map(entry => getJsonValue(entry, dict));\n } else {\n entries = Object.keys(src).filter(prop => JSON.stringify(src[prop])).map(prop => `\"${prop}\": ${getJsonValue(src[prop], dict)}`);\n }\n\n entries = entries.map(appendCommas).map(entry => dict.listItem.join(entry));\n entries = dict.list.join(entries.join(''));\n return isArray ? `[${entries}]` : `{${entries}}`;\n};\n\nconst getJsonValue = function (src, dict) {\n if (typeof src === 'object' && src !== null) {\n if (src.length === 0) {\n return '[]';\n } else if (Object.keys(src).length === 0) {\n return '{}';\n } else {\n return getJsonObject(src, dict);\n }\n } else {\n return JSON.stringify(src);\n }\n};\n\nconst getJson = function (src, dict) {\n let entries = src.map(entry => getJsonObject(entry, dict));\n entries = entries.map(appendCommas).map(entry => dict.entry.join(entry));\n entries = entries.join('');\n return dict.bibliographyContainer.join(`[${entries}]`);\n};\n\nexport function getJsonWrapper(src) {\n return getJson(src, plugins.dict.get('html'));\n}\nexport default {\n data(data, {\n type,\n format = type || 'text'\n } = {}) {\n if (format === 'object') {\n return util.deepCopy(data);\n } else if (format === 'text') {\n return JSON.stringify(data, null, 2);\n } else {\n logger.warn('[core]', 'This feature (JSON output with special formatting) is unstable. See https://github.com/larsgw/citation.js/issues/144');\n return getJson(data, plugins.dict.get(format));\n }\n },\n\n ndjson(data) {\n return data.map(entry => JSON.stringify(entry)).join('\\n');\n }\n\n};","import json from './json.js';\nimport label from './label.js';\nexport default Object.assign({}, json, label);","import * as plugins from '../plugins';\nimport { ref, formats as input } from './input/';\nimport output from './output/';\nplugins.add(ref, {\n input,\n output\n});","import Cite from './Cite/index.js';\nimport * as plugins from './plugins/index.js';\nimport * as util from './util/index.js';\nimport logger from './logger.js';\nimport pkg from '../package.json';\nimport './plugin-common/index.js';\nexport const version = pkg.version;\nexport { Cite, plugins, util, logger };","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nconst logger = {\n _output(level, scope, msg) {\n this._log.push(scope, msg);\n\n if (this._levels.indexOf(level) < this._levels.indexOf(this.level)) {\n return;\n }\n\n this._console.log(scope, ...msg);\n },\n\n _console: null,\n _log: [],\n _levels: ['http', 'debug', 'unmapped', 'info', 'warn', 'error', 'silent'],\n level: 'silent'\n};\n\nfor (const level of logger._levels) {\n logger[level] = (scope, ...msg) => logger._output(level, scope, msg);\n}\n\nif (typeof console.Console === 'function') {\n logger._console = new console.Console(process.stderr);\n} else {\n logger._console = console;\n}\n\nvar _default = logger;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.parse = void 0;\n\nconst parse = () => [];\n\nexports.parse = parse;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.parse = parse;\n\nfunction parse(input) {\n return input.value || input.textContent;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ref = exports.parsers = exports.formats = void 0;\n\nvar empty = _interopRequireWildcard(require(\"./empty.js\"));\n\nvar url = _interopRequireWildcard(require(\"./url.js\"));\n\nvar json = _interopRequireWildcard(require(\"./json.js\"));\n\nvar jquery = _interopRequireWildcard(require(\"./jquery.js\"));\n\nvar html = _interopRequireWildcard(require(\"./html.js\"));\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nconst ref = '@else';\nexports.ref = ref;\nconst parsers = {\n empty,\n url,\n json,\n jquery,\n html\n};\nexports.parsers = parsers;\nconst formats = {\n '@empty/text': {\n parse: empty.parse,\n parseType: {\n dataType: 'String',\n predicate: input => input === ''\n }\n },\n '@empty/whitespace+text': {\n parse: empty.parse,\n parseType: {\n dataType: 'String',\n predicate: /^\\s+$/\n }\n },\n '@empty': {\n parse: empty.parse,\n parseType: {\n dataType: 'Primitive',\n predicate: input => input == null\n }\n },\n '@else/json': {\n parse: json.parse,\n parseType: {\n dataType: 'String',\n predicate: /^\\s*(\\{[\\S\\s]*\\}|\\[[\\S\\s]*\\])\\s*$/\n }\n },\n '@else/url': {\n parse: url.parse,\n parseAsync: url.parseAsync,\n parseType: {\n dataType: 'String',\n predicate: /^https?:\\/\\/(([\\w-]+\\.)*[\\w-]+)(:\\d+)?(\\/[^?/]*)*(\\?[^#]*)?(#.*)?$/i\n }\n },\n '@else/jquery': {\n parse: jquery.parse,\n parseType: {\n dataType: 'ComplexObject',\n\n predicate(input) {\n return typeof jQuery !== 'undefined' && input instanceof jQuery;\n }\n\n }\n },\n '@else/html': {\n parse: html.parse,\n parseType: {\n dataType: 'ComplexObject',\n\n predicate(input) {\n return typeof HTMLElement !== 'undefined' && input instanceof HTMLElement;\n }\n\n }\n }\n};\nexports.formats = formats;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.parse = parse;\n\nfunction parse(input) {\n return input.val() || input.text() || input.html();\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.parse = exports.default = void 0;\n\nvar _logger = _interopRequireDefault(require(\"../../logger.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nconst substituters = [[/((?:\\[|:|,)\\s*)'((?:\\\\'|[^'])*?[^\\\\])?'(?=\\s*(?:\\]|}|,))/g, '$1\"$2\"'], [/((?:(?:\"|]|}|\\/[gmiuys]|\\.|(?:\\d|\\.|-)*\\d)\\s*,|{)\\s*)(?:\"([^\":\\n]+?)\"|'([^\":\\n]+?)'|([^\":\\n]+?))(\\s*):/g, '$1\"$2$3$4\"$5:']];\n\nconst parseJSON = function (str) {\n if (typeof str !== 'string') {\n return JSON.parse(str);\n }\n\n try {\n return JSON.parse(str);\n } catch (e) {\n _logger.default.debug('[plugin-common]', 'Invalid JSON, switching to experimental parser');\n\n substituters.forEach(([regex, subst]) => {\n str = str.replace(regex, subst);\n });\n return JSON.parse(str);\n }\n};\n\nexports.default = exports.parse = parseJSON;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"parse\", {\n enumerable: true,\n get: function () {\n return _index.fetchFile;\n }\n});\nObject.defineProperty(exports, \"parseAsync\", {\n enumerable: true,\n get: function () {\n return _index.fetchFileAsync;\n }\n});\n\nvar _index = require(\"../../util/index.js\");","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _json = _interopRequireDefault(require(\"./json.js\"));\n\nvar _label = _interopRequireDefault(require(\"./label.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _default = Object.assign({}, _json.default, _label.default);\n\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nexports.getJsonWrapper = getJsonWrapper;\n\nvar plugins = _interopRequireWildcard(require(\"../../plugins/index.js\"));\n\nvar util = _interopRequireWildcard(require(\"../../util/index.js\"));\n\nvar _logger = _interopRequireDefault(require(\"../../logger.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nconst appendCommas = (string, index, array) => string + (index < array.length - 1 ? ',' : '');\n\nconst getJsonObject = function (src, dict) {\n const isArray = Array.isArray(src);\n let entries;\n\n if (isArray) {\n entries = src.map(entry => getJsonValue(entry, dict));\n } else {\n entries = Object.keys(src).filter(prop => JSON.stringify(src[prop])).map(prop => `\"${prop}\": ${getJsonValue(src[prop], dict)}`);\n }\n\n entries = entries.map(appendCommas).map(entry => dict.listItem.join(entry));\n entries = dict.list.join(entries.join(''));\n return isArray ? `[${entries}]` : `{${entries}}`;\n};\n\nconst getJsonValue = function (src, dict) {\n if (typeof src === 'object' && src !== null) {\n if (src.length === 0) {\n return '[]';\n } else if (Object.keys(src).length === 0) {\n return '{}';\n } else {\n return getJsonObject(src, dict);\n }\n } else {\n return JSON.stringify(src);\n }\n};\n\nconst getJson = function (src, dict) {\n let entries = src.map(entry => getJsonObject(entry, dict));\n entries = entries.map(appendCommas).map(entry => dict.entry.join(entry));\n entries = entries.join('');\n return dict.bibliographyContainer.join(`[${entries}]`);\n};\n\nfunction getJsonWrapper(src) {\n return getJson(src, plugins.dict.get('html'));\n}\n\nvar _default = {\n data(data, {\n type,\n format = type || 'text'\n } = {}) {\n if (format === 'object') {\n return util.deepCopy(data);\n } else if (format === 'text') {\n return JSON.stringify(data, null, 2);\n } else {\n _logger.default.warn('[core]', 'This feature (JSON output with special formatting) is unstable. See https://github.com/larsgw/citation.js/issues/144');\n\n return getJson(data, plugins.dict.get(format));\n }\n },\n\n ndjson(data) {\n return data.map(entry => JSON.stringify(entry)).join('\\n');\n }\n\n};\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getLabel = exports.default = void 0;\n\nconst getLabel = entry => {\n if ('citation-label' in entry) {\n return entry['citation-label'];\n }\n\n let res = '';\n\n if (entry.author) {\n res += entry.author[0].family || entry.author[0].literal;\n }\n\n if (entry.issued && entry.issued['date-parts'] && entry.issued['date-parts'][0]) {\n res += entry.issued['date-parts'][0][0];\n }\n\n if (entry['year-suffix']) {\n res += entry['year-suffix'];\n } else if (entry.title) {\n res += entry.title.replace(/<\\/?.*?>/g, '').match(/^(?:(?:the|a|an)\\s+)?(\\S+)/i)[1];\n }\n\n return res;\n};\n\nexports.getLabel = getLabel;\nvar _default = {\n label(data) {\n return data.reduce((object, entry) => {\n object[entry.id] = getLabel(entry);\n return object;\n }, {});\n }\n\n};\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.remove = exports.list = exports.has = exports.get = exports.add = void 0;\nconst configs = {};\n\nconst add = (ref, config) => {\n configs[ref] = config;\n};\n\nexports.add = add;\n\nconst get = ref => configs[ref];\n\nexports.get = get;\n\nconst has = ref => Object.prototype.hasOwnProperty.call(configs, ref);\n\nexports.has = has;\n\nconst remove = ref => {\n delete configs[ref];\n};\n\nexports.remove = remove;\n\nconst list = () => Object.keys(configs);\n\nexports.list = list;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.textDict = exports.remove = exports.register = exports.list = exports.htmlDict = exports.has = exports.get = exports.add = void 0;\n\nvar _register = _interopRequireDefault(require(\"../util/register.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nconst validate = (name, dict) => {\n if (typeof name !== 'string') {\n throw new TypeError(`Invalid dict name, expected string, got ${typeof name}`);\n } else if (typeof dict !== 'object') {\n throw new TypeError(`Invalid dict, expected object, got ${typeof dict}`);\n }\n\n for (const entryName in dict) {\n const entry = dict[entryName];\n\n if (!Array.isArray(entry) || entry.some(part => typeof part !== 'string')) {\n throw new TypeError(`Invalid dict entry \"${entryName}\", expected array of strings`);\n }\n }\n};\n\nconst register = new _register.default({\n html: {\n bibliographyContainer: ['
    ', '
    '],\n entry: ['
    ', '
    '],\n list: ['
      ', '
    '],\n listItem: ['
  • ', '
  • ']\n },\n text: {\n bibliographyContainer: ['', '\\n'],\n entry: ['', '\\n'],\n list: ['\\n', ''],\n listItem: ['\\t', '\\n']\n }\n});\nexports.register = register;\n\nconst add = (name, dict) => {\n validate(name, dict);\n register.set(name, dict);\n};\n\nexports.add = add;\n\nconst remove = name => {\n register.remove(name);\n};\n\nexports.remove = remove;\n\nconst has = name => {\n return register.has(name);\n};\n\nexports.has = has;\n\nconst list = () => {\n return register.list();\n};\n\nexports.list = list;\n\nconst get = name => {\n if (!register.has(name)) {\n throw new Error(`Dict \"${name}\" unavailable`);\n }\n\n return register.get(name);\n};\n\nexports.get = get;\nconst htmlDict = {\n wr_start: '
    ',\n wr_end: '
    ',\n en_start: '
    ',\n en_end: '
    ',\n ul_start: '
      ',\n ul_end: '
    ',\n li_start: '
  • ',\n li_end: '
  • '\n};\nexports.htmlDict = htmlDict;\nconst textDict = {\n wr_start: '',\n wr_end: '\\n',\n en_start: '',\n en_end: '\\n',\n ul_start: '\\n',\n ul_end: '',\n li_start: '\\t',\n li_end: '\\n'\n};\nexports.textDict = textDict;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.remove = exports.output = exports.list = exports.input = exports.has = exports.dict = exports.config = exports.add = void 0;\n\nvar input = _interopRequireWildcard(require(\"./input/index.js\"));\n\nexports.input = input;\n\nvar output = _interopRequireWildcard(require(\"./output.js\"));\n\nexports.output = output;\n\nvar dict = _interopRequireWildcard(require(\"./dict.js\"));\n\nexports.dict = dict;\n\nvar config = _interopRequireWildcard(require(\"./config.js\"));\n\nexports.config = config;\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nconst registers = {\n input,\n output,\n dict,\n config\n};\nconst indices = {};\n\nconst add = (ref, plugins = {}) => {\n const mainIndex = indices[ref] = {};\n\n for (const type in plugins) {\n if (type === 'config') {\n mainIndex.config = {\n [ref]: plugins.config\n };\n registers.config.add(ref, plugins.config);\n continue;\n }\n\n const typeIndex = mainIndex[type] = {};\n const typePlugins = plugins[type];\n\n for (const name in typePlugins) {\n const typePlugin = typePlugins[name];\n typeIndex[name] = true;\n registers[type].add(name, typePlugin);\n }\n }\n};\n\nexports.add = add;\n\nconst remove = ref => {\n const mainIndex = indices[ref];\n\n for (const type in mainIndex) {\n const typeIndex = mainIndex[type];\n\n for (const name in typeIndex) {\n registers[type].remove(name);\n }\n }\n\n delete indices[ref];\n};\n\nexports.remove = remove;\n\nconst has = ref => ref in indices;\n\nexports.has = has;\n\nconst list = () => Object.keys(indices);\n\nexports.list = list;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.chainLinkAsync = exports.chainLink = exports.chainAsync = exports.chain = void 0;\n\nvar _deepCopy = _interopRequireDefault(require(\"../../util/deepCopy.js\"));\n\nvar _logger = _interopRequireDefault(require(\"../../logger.js\"));\n\nvar _register = require(\"./register.js\");\n\nvar _type = require(\"./type.js\");\n\nvar _data = require(\"./data.js\");\n\nvar _graph = require(\"./graph.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction prepareParseGraph(graph) {\n return graph.reduce((array, next) => {\n const last = array[array.length - 1];\n\n if (last && last.type === next.type) {\n last.count = last.count + 1 || 2;\n } else {\n array.push(next);\n }\n\n return array;\n }, []).map(element => (element.count > 1 ? element.count + 'x ' : '') + element.type).join(' -> ');\n}\n\nclass ChainParser {\n constructor(input, options = {}) {\n this.options = Object.assign({\n generateGraph: true,\n forceType: (0, _type.type)(input),\n maxChainLength: 10,\n strict: true,\n target: '@csl/list+object'\n }, options);\n this.type = this.options.forceType;\n this.data = typeof input === 'object' ? (0, _deepCopy.default)(input) : input;\n this.graph = [{\n type: this.type,\n data: input\n }];\n this.iteration = 0;\n }\n\n iterate() {\n if (this.iteration !== 0) {\n const typeInfo = (0, _register.get)(this.type);\n\n if (typeInfo && typeInfo.outputs) {\n this.type = typeInfo.outputs;\n } else {\n this.type = (0, _type.type)(this.data);\n }\n\n this.graph.push({\n type: this.type\n });\n }\n\n if (this.error || this.type === this.options.target) {\n return false;\n } else if (this.iteration >= this.options.maxChainLength) {\n this.error = new RangeError(`Max. number of parsing iterations reached (${prepareParseGraph(this.graph)})`);\n return false;\n } else {\n this.iteration++;\n return true;\n }\n }\n\n end() {\n if (this.error) {\n _logger.default.error('[core]', this.error.message);\n\n if (this.options.strict !== false) {\n throw this.error;\n } else {\n return [];\n }\n } else if (this.options.target === '@csl/list+object') {\n return this.data.map(this.options.generateGraph ? entry => (0, _graph.applyGraph)(entry, this.graph) : _graph.removeGraph);\n } else {\n return this.data;\n }\n }\n\n}\n\nconst chain = (...args) => {\n const chain = new ChainParser(...args);\n\n while (chain.iterate()) {\n try {\n chain.data = (0, _data.data)(chain.data, chain.type);\n } catch (e) {\n chain.error = e;\n }\n }\n\n return chain.end();\n};\n\nexports.chain = chain;\n\nconst chainLink = input => {\n const type = (0, _type.type)(input);\n const output = type.match(/array|object/) ? (0, _deepCopy.default)(input) : input;\n return (0, _data.data)(output, type);\n};\n\nexports.chainLink = chainLink;\n\nconst chainAsync = async (...args) => {\n const chain = new ChainParser(...args);\n\n while (chain.iterate()) {\n chain.data = await (0, _data.dataAsync)(chain.data, chain.type).catch(e => {\n chain.error = e;\n });\n }\n\n return chain.end();\n};\n\nexports.chainAsync = chainAsync;\n\nconst chainLinkAsync = async input => {\n const type = (0, _type.type)(input);\n const output = type.match(/array|object/) ? (0, _deepCopy.default)(input) : input;\n return (0, _data.dataAsync)(output, type);\n};\n\nexports.chainLinkAsync = chainLinkAsync;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.clean = void 0;\n\nvar _name = require(\"@citation-js/name\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nconst NAME = 1;\nconst NAME_LIST = 2;\nconst DATE = 3;\nconst TYPE = 4;\nconst entryTypes = {\n article: true,\n 'article-journal': true,\n 'article-magazine': true,\n 'article-newspaper': true,\n bill: true,\n book: true,\n broadcast: true,\n chapter: true,\n classic: true,\n collection: true,\n dataset: true,\n document: true,\n entry: true,\n 'entry-dictionary': true,\n 'entry-encyclopedia': true,\n event: true,\n figure: true,\n graphic: true,\n hearing: true,\n interview: true,\n legal_case: true,\n legislation: true,\n manuscript: true,\n map: true,\n motion_picture: true,\n musical_score: true,\n pamphlet: true,\n 'paper-conference': true,\n patent: true,\n performance: true,\n periodical: true,\n personal_communication: true,\n post: true,\n 'post-weblog': true,\n regulation: true,\n report: true,\n review: true,\n 'review-book': true,\n software: true,\n song: true,\n speech: true,\n standard: true,\n thesis: true,\n treaty: true,\n webpage: true,\n 'journal-article': 'article-journal',\n 'book-chapter': 'chapter',\n 'posted-content': 'manuscript',\n 'proceedings-article': 'paper-conference'\n};\nconst fieldTypes = {\n author: NAME_LIST,\n 'collection-editor': NAME_LIST,\n composer: NAME_LIST,\n 'container-author': NAME_LIST,\n editor: NAME_LIST,\n 'editorial-director': NAME_LIST,\n director: NAME_LIST,\n interviewer: NAME_LIST,\n illustrator: NAME_LIST,\n 'original-author': NAME_LIST,\n 'reviewed-author': NAME_LIST,\n recipient: NAME_LIST,\n translator: NAME_LIST,\n accessed: DATE,\n container: DATE,\n 'event-date': DATE,\n issued: DATE,\n 'original-date': DATE,\n submitted: DATE,\n type: TYPE,\n categories: 'object',\n id: ['string', 'number'],\n language: 'string',\n journalAbbreviation: 'string',\n shortTitle: 'string',\n abstract: 'string',\n annote: 'string',\n archive: 'string',\n archive_location: 'string',\n 'archive-place': 'string',\n authority: 'string',\n 'call-number': 'string',\n 'chapter-number': 'string',\n 'citation-number': 'string',\n 'citation-label': 'string',\n 'collection-number': 'string',\n 'collection-title': 'string',\n 'container-title': 'string',\n 'container-title-short': 'string',\n dimensions: 'string',\n DOI: 'string',\n edition: ['string', 'number'],\n event: 'string',\n 'event-place': 'string',\n 'first-reference-note-number': 'string',\n genre: 'string',\n ISBN: 'string',\n ISSN: 'string',\n issue: ['string', 'number'],\n jurisdiction: 'string',\n keyword: 'string',\n locator: 'string',\n medium: 'string',\n note: 'string',\n number: ['string', 'number'],\n 'number-of-pages': 'string',\n 'number-of-volumes': ['string', 'number'],\n 'original-publisher': 'string',\n 'original-publisher-place': 'string',\n 'original-title': 'string',\n page: 'string',\n 'page-first': 'string',\n PMCID: 'string',\n PMID: 'string',\n publisher: 'string',\n 'publisher-place': 'string',\n references: 'string',\n 'reviewed-title': 'string',\n scale: 'string',\n section: 'string',\n source: 'string',\n status: 'string',\n title: 'string',\n 'title-short': 'string',\n URL: 'string',\n version: 'string',\n volume: ['string', 'number'],\n 'year-suffix': 'string'\n};\n\nconst correctName = function (name, bestGuessConversions) {\n if (typeof name === 'object' && name !== null && (name.literal || name.given || name.family)) {\n return name;\n } else if (!bestGuessConversions) {\n return undefined;\n } else if (typeof name === 'string') {\n return (0, _name.parse)(name);\n }\n};\n\nconst correctNameList = function (nameList, bestGuessConversions) {\n if (nameList instanceof Array) {\n const names = nameList.map(name => correctName(name, bestGuessConversions)).filter(Boolean);\n return names.length ? names : undefined;\n }\n};\n\nconst correctDateParts = function (dateParts, bestGuessConversions) {\n if (dateParts.every(part => typeof part === 'number')) {\n return dateParts;\n } else if (!bestGuessConversions || dateParts.some(part => isNaN(parseInt(part)))) {\n return undefined;\n } else {\n return dateParts.map(part => parseInt(part));\n }\n};\n\nconst correctDate = function (date, bestGuessConversions) {\n const dp = 'date-parts';\n\n if (typeof date !== 'object' || date === null) {\n return undefined;\n } else if (date[dp] instanceof Array && date[dp].every(part => part instanceof Array)) {\n const range = date[dp].map(dateParts => correctDateParts(dateParts, bestGuessConversions)).filter(Boolean);\n return range.length ? _objectSpread(_objectSpread({}, date), {}, {\n 'date-parts': range\n }) : undefined;\n } else if (date instanceof Array && date.every(part => part[dp] instanceof Array)) {\n const range = date.map(dateParts => correctDateParts(dateParts[dp], bestGuessConversions)).filter(Boolean);\n return range.length ? {\n 'date-parts': range\n } : undefined;\n } else if (date[dp] instanceof Array) {\n const dateParts = correctDateParts(date[dp], bestGuessConversions);\n return dateParts && {\n 'date-parts': [dateParts]\n };\n } else if ('literal' in date || 'raw' in date) {\n return date;\n }\n};\n\nconst correctType = function (type, bestGuessConversions) {\n type = correctField('language', type, bestGuessConversions);\n\n if (entryTypes[type] === true) {\n return type;\n } else if (bestGuessConversions && type in entryTypes) {\n return entryTypes[type];\n } else {\n return undefined;\n }\n};\n\nconst correctField = function (fieldName, value, bestGuessConversions) {\n const fieldType = [].concat(fieldTypes[fieldName]);\n\n switch (fieldTypes[fieldName]) {\n case NAME:\n return correctName(value, bestGuessConversions);\n\n case NAME_LIST:\n return correctNameList(value, bestGuessConversions);\n\n case DATE:\n return correctDate(value, bestGuessConversions);\n\n case TYPE:\n return correctType(value, bestGuessConversions);\n }\n\n if (/^_/.test(fieldName)) {\n return value;\n } else if (bestGuessConversions) {\n if (typeof value === 'string' && fieldType.includes('number') && !fieldType.includes('string') && !isNaN(+value)) {\n return parseFloat(value);\n } else if (typeof value === 'number' && fieldType.includes('string') && !fieldType.includes('number')) {\n return value.toString();\n } else if (Array.isArray(value) && value.length) {\n return correctField(fieldName, value[0], bestGuessConversions);\n }\n }\n\n if (fieldType.includes(typeof value)) {\n return value;\n }\n};\n\nconst parseCsl = function (data, bestGuessConversions = true) {\n return data.map(function (entry) {\n const clean = {};\n\n for (const field in entry) {\n const correction = correctField(field, entry[field], bestGuessConversions);\n\n if (correction !== undefined) {\n clean[field] = correction;\n }\n }\n\n return clean;\n });\n};\n\nexports.clean = parseCsl;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.removeDataParser = exports.listDataParser = exports.hasDataParser = exports.dataAsync = exports.data = exports.addDataParser = void 0;\n\nvar _chain = require(\"./chain.js\");\n\nconst flatten = array => [].concat(...array);\n\nconst parsers = {};\nconst asyncParsers = {};\nconst nativeParsers = {\n '@csl/object': input => [input],\n '@csl/list+object': input => input,\n '@else/list+object': input => flatten(input.map(_chain.chain)),\n '@invalid': () => {\n throw new Error('This format is not supported or recognized');\n }\n};\nconst nativeAsyncParsers = {\n '@else/list+object': async input => flatten(await Promise.all(input.map(_chain.chainAsync)))\n};\n\nconst data = (input, type) => {\n if (typeof parsers[type] === 'function') {\n return parsers[type](input);\n } else if (typeof nativeParsers[type] === 'function') {\n return nativeParsers[type](input);\n } else {\n throw new TypeError(`No synchronous parser found for ${type}`);\n }\n};\n\nexports.data = data;\n\nconst dataAsync = async (input, type) => {\n if (typeof asyncParsers[type] === 'function') {\n return asyncParsers[type](input);\n } else if (typeof nativeAsyncParsers[type] === 'function') {\n return nativeAsyncParsers[type](input);\n } else if (hasDataParser(type, false)) {\n return data(input, type);\n } else {\n throw new TypeError(`No parser found for ${type}`);\n }\n};\n\nexports.dataAsync = dataAsync;\n\nconst addDataParser = (format, {\n parser,\n async\n}) => {\n if (async) {\n asyncParsers[format] = parser;\n } else {\n parsers[format] = parser;\n }\n};\n\nexports.addDataParser = addDataParser;\n\nconst hasDataParser = (type, async) => async ? asyncParsers[type] || nativeAsyncParsers[type] : parsers[type] || nativeParsers[type];\n\nexports.hasDataParser = hasDataParser;\n\nconst removeDataParser = (type, async) => {\n delete (async ? asyncParsers : parsers)[type];\n};\n\nexports.removeDataParser = removeDataParser;\n\nconst listDataParser = async => Object.keys(async ? asyncParsers : parsers);\n\nexports.listDataParser = listDataParser;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.typeOf = exports.dataTypeOf = void 0;\n\nconst typeOf = thing => {\n switch (thing) {\n case undefined:\n return 'Undefined';\n\n case null:\n return 'Null';\n\n default:\n return thing.constructor.name;\n }\n};\n\nexports.typeOf = typeOf;\n\nconst dataTypeOf = thing => {\n switch (typeof thing) {\n case 'string':\n return 'String';\n\n case 'object':\n if (Array.isArray(thing)) {\n return 'Array';\n } else if (typeOf(thing) === 'Object') {\n return 'SimpleObject';\n } else if (typeOf(thing) !== 'Null') {\n return 'ComplexObject';\n }\n\n default:\n return 'Primitive';\n }\n};\n\nexports.dataTypeOf = dataTypeOf;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.removeGraph = exports.applyGraph = void 0;\n\nconst applyGraph = (entry, graph) => {\n if (entry._graph) {\n const index = graph.findIndex(({\n type\n }) => type === '@else/list+object');\n\n if (index !== -1) {\n graph.splice(index + 1, 0, ...entry._graph.slice(0, -1));\n }\n }\n\n entry._graph = graph;\n return entry;\n};\n\nexports.applyGraph = applyGraph;\n\nconst removeGraph = entry => {\n delete entry._graph;\n return entry;\n};\n\nexports.removeGraph = removeGraph;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {\n util: true\n};\nexports.util = void 0;\n\nvar dataType = _interopRequireWildcard(require(\"./dataType.js\"));\n\nvar graph = _interopRequireWildcard(require(\"./graph.js\"));\n\nvar parser = _interopRequireWildcard(require(\"./parser.js\"));\n\nvar csl = _interopRequireWildcard(require(\"./csl.js\"));\n\nvar _register = require(\"./register\");\n\nObject.keys(_register).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _register[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _register[key];\n }\n });\n});\n\nvar _chain = require(\"./chain\");\n\nObject.keys(_chain).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _chain[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _chain[key];\n }\n });\n});\n\nvar _type = require(\"./type\");\n\nObject.keys(_type).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _type[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _type[key];\n }\n });\n});\n\nvar _data = require(\"./data\");\n\nObject.keys(_data).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _data[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _data[key];\n }\n });\n});\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nconst util = Object.assign({}, dataType, graph, parser, csl);\nexports.util = util;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.TypeParser = exports.FormatParser = exports.DataParser = void 0;\n\nvar _type = require(\"./type.js\");\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nclass TypeParser {\n constructor(data) {\n _defineProperty(this, \"validDataTypes\", ['String', 'Array', 'SimpleObject', 'ComplexObject', 'Primitive']);\n\n this.data = data;\n }\n\n validateDataType() {\n const dataType = this.data.dataType;\n\n if (dataType && !this.validDataTypes.includes(dataType)) {\n throw new RangeError(`dataType was ${dataType}; expected one of ${this.validDataTypes}`);\n }\n }\n\n validateParseType() {\n const predicate = this.data.predicate;\n\n if (predicate && !(predicate instanceof RegExp || typeof predicate === 'function')) {\n throw new TypeError(`predicate was ${typeof predicate}; expected RegExp or function`);\n }\n }\n\n validateTokenList() {\n const tokenList = this.data.tokenList;\n\n if (tokenList && typeof tokenList !== 'object') {\n throw new TypeError(`tokenList was ${typeof tokenList}; expected object or RegExp`);\n }\n }\n\n validatePropertyConstraint() {\n const propertyConstraint = this.data.propertyConstraint;\n\n if (propertyConstraint && typeof propertyConstraint !== 'object') {\n throw new TypeError(`propertyConstraint was ${typeof propertyConstraint}; expected array or object`);\n }\n }\n\n validateElementConstraint() {\n const elementConstraint = this.data.elementConstraint;\n\n if (elementConstraint && typeof elementConstraint !== 'string') {\n throw new TypeError(`elementConstraint was ${typeof elementConstraint}; expected string`);\n }\n }\n\n validateExtends() {\n const extend = this.data.extends;\n\n if (extend && typeof extend !== 'string') {\n throw new TypeError(`extends was ${typeof extend}; expected string`);\n }\n }\n\n validate() {\n if (this.data === null || typeof this.data !== 'object') {\n throw new TypeError(`typeParser was ${typeof this.data}; expected object`);\n }\n\n this.validateDataType();\n this.validateParseType();\n this.validateTokenList();\n this.validatePropertyConstraint();\n this.validateElementConstraint();\n this.validateExtends();\n }\n\n parseTokenList() {\n let tokenList = this.data.tokenList;\n\n if (!tokenList) {\n return [];\n } else if (tokenList instanceof RegExp) {\n tokenList = {\n token: tokenList\n };\n }\n\n const {\n token,\n split = /\\s+/,\n trim = true,\n every = true\n } = tokenList;\n\n const trimInput = input => trim ? input.trim() : input;\n\n const testTokens = every ? 'every' : 'some';\n\n const predicate = input => trimInput(input).split(split)[testTokens](part => token.test(part));\n\n return [predicate];\n }\n\n parsePropertyConstraint() {\n const constraints = [].concat(this.data.propertyConstraint || []);\n return constraints.map(({\n props,\n match,\n value\n }) => {\n props = [].concat(props);\n\n switch (match) {\n case 'any':\n case 'some':\n return input => props.some(prop => prop in input && (!value || value(input[prop])));\n\n case 'none':\n return input => !props.some(prop => prop in input && (!value || value(input[prop])));\n\n case 'every':\n default:\n return input => props.every(prop => prop in input && (!value || value(input[prop])));\n }\n });\n }\n\n parseElementConstraint() {\n const constraint = this.data.elementConstraint;\n return !constraint ? [] : [input => input.every(entry => (0, _type.type)(entry) === constraint)];\n }\n\n parsePredicate() {\n if (this.data.predicate instanceof RegExp) {\n return [this.data.predicate.test.bind(this.data.predicate)];\n } else if (this.data.predicate) {\n return [this.data.predicate];\n } else {\n return [];\n }\n }\n\n getCombinedPredicate() {\n const predicates = [...this.parsePredicate(), ...this.parseTokenList(), ...this.parsePropertyConstraint(), ...this.parseElementConstraint()];\n\n if (predicates.length === 0) {\n return () => true;\n } else if (predicates.length === 1) {\n return predicates[0];\n } else {\n return input => predicates.every(predicate => predicate(input));\n }\n }\n\n getDataType() {\n if (this.data.dataType) {\n return this.data.dataType;\n } else if (this.data.predicate instanceof RegExp) {\n return 'String';\n } else if (this.data.tokenList) {\n return 'String';\n } else if (this.data.elementConstraint) {\n return 'Array';\n } else {\n return 'Primitive';\n }\n }\n\n get dataType() {\n return this.getDataType();\n }\n\n get predicate() {\n return this.getCombinedPredicate();\n }\n\n get extends() {\n return this.data.extends;\n }\n\n}\n\nexports.TypeParser = TypeParser;\n\nclass DataParser {\n constructor(parser, {\n async\n } = {}) {\n this.parser = parser;\n this.async = async;\n }\n\n validate() {\n const parser = this.parser;\n\n if (typeof parser !== 'function') {\n throw new TypeError(`parser was ${typeof parser}; expected function`);\n }\n }\n\n}\n\nexports.DataParser = DataParser;\n\nclass FormatParser {\n constructor(format, parsers = {}) {\n this.format = format;\n\n if (parsers.parseType) {\n this.typeParser = new TypeParser(parsers.parseType);\n }\n\n if (parsers.parse) {\n this.dataParser = new DataParser(parsers.parse, {\n async: false\n });\n }\n\n if (parsers.parseAsync) {\n this.asyncDataParser = new DataParser(parsers.parseAsync, {\n async: true\n });\n }\n }\n\n validateFormat() {\n const format = this.format;\n\n if (!_type.typeMatcher.test(format)) {\n throw new TypeError(`format name was \"${format}\"; didn't match expected pattern`);\n }\n }\n\n validate() {\n this.validateFormat();\n\n if (this.typeParser) {\n this.typeParser.validate();\n }\n\n if (this.dataParser) {\n this.dataParser.validate();\n }\n\n if (this.asyncDataParser) {\n this.asyncDataParser.validate();\n }\n }\n\n}\n\nexports.FormatParser = FormatParser;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.remove = exports.list = exports.has = exports.get = exports.add = void 0;\n\nvar _parser = require(\"./parser.js\");\n\nvar _type = require(\"./type.js\");\n\nvar _data = require(\"./data.js\");\n\nconst formats = {};\n\nconst add = (format, parsers) => {\n const formatParser = new _parser.FormatParser(format, parsers);\n formatParser.validate();\n const index = formats[format] || (formats[format] = {});\n\n if (formatParser.typeParser) {\n (0, _type.addTypeParser)(format, formatParser.typeParser);\n index.type = true;\n }\n\n if (formatParser.dataParser) {\n (0, _data.addDataParser)(format, formatParser.dataParser);\n index.data = true;\n }\n\n if (formatParser.asyncDataParser) {\n (0, _data.addDataParser)(format, formatParser.asyncDataParser);\n index.asyncData = true;\n }\n\n if (parsers.outputs) {\n index.outputs = parsers.outputs;\n }\n};\n\nexports.add = add;\n\nconst get = format => {\n return formats[format];\n};\n\nexports.get = get;\n\nconst remove = format => {\n const index = formats[format];\n\n if (!index) {\n return;\n }\n\n if (index.type) {\n (0, _type.removeTypeParser)(format);\n }\n\n if (index.data) {\n (0, _data.removeDataParser)(format);\n }\n\n if (index.asyncData) {\n (0, _data.removeDataParser)(format, true);\n }\n\n delete formats[format];\n};\n\nexports.remove = remove;\n\nconst has = format => format in formats;\n\nexports.has = has;\n\nconst list = () => Object.keys(formats);\n\nexports.list = list;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.typeMatcher = exports.type = exports.treeTypeParser = exports.removeTypeParser = exports.listTypeParser = exports.hasTypeParser = exports.addTypeParser = void 0;\n\nvar _logger = _interopRequireDefault(require(\"../../logger.js\"));\n\nvar _dataType = require(\"./dataType.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nconst types = {};\nconst dataTypes = {};\nconst unregExts = {};\n\nconst parseNativeTypes = (input, dataType) => {\n switch (dataType) {\n case 'Array':\n if (input.length === 0 || input.every(entry => type(entry) === '@csl/object')) {\n return '@csl/list+object';\n } else {\n return '@else/list+object';\n }\n\n case 'SimpleObject':\n case 'ComplexObject':\n return '@csl/object';\n\n default:\n return '@invalid';\n }\n};\n\nconst matchType = (typeList = [], data) => {\n for (const type of typeList) {\n if (types[type].predicate(data)) {\n return matchType(types[type].extensions, data) || type;\n }\n }\n};\n\nconst type = input => {\n const dataType = (0, _dataType.dataTypeOf)(input);\n\n if (dataType === 'Array' && input.length === 0) {\n return parseNativeTypes(input, dataType);\n }\n\n const match = matchType(dataTypes[dataType], input);\n return match || parseNativeTypes(input, dataType);\n};\n\nexports.type = type;\n\nconst addTypeParser = (format, {\n dataType,\n predicate,\n extends: extend\n}) => {\n let extensions = [];\n\n if (format in unregExts) {\n extensions = unregExts[format];\n delete unregExts[format];\n\n _logger.default.debug('[core]', `Subclasses \"${extensions}\" finally registered to parent type \"${format}\"`);\n }\n\n const object = {\n predicate,\n extensions\n };\n types[format] = object;\n\n if (extend) {\n const parentTypeParser = types[extend];\n\n if (parentTypeParser) {\n parentTypeParser.extensions.push(format);\n } else {\n if (!unregExts[extend]) {\n unregExts[extend] = [];\n }\n\n unregExts[extend].push(format);\n\n _logger.default.debug('[core]', `Subclass \"${format}\" is waiting on parent type \"${extend}\"`);\n }\n } else {\n const typeList = dataTypes[dataType] || (dataTypes[dataType] = []);\n typeList.push(format);\n }\n};\n\nexports.addTypeParser = addTypeParser;\n\nconst hasTypeParser = type => Object.prototype.hasOwnProperty.call(types, type);\n\nexports.hasTypeParser = hasTypeParser;\n\nconst removeTypeParser = type => {\n delete types[type];\n const typeLists = [...Object.keys(dataTypes).map(key => dataTypes[key]), ...Object.keys(types).map(type => types[type].extensions).filter(list => list.length > 0)];\n typeLists.forEach(typeList => {\n const index = typeList.indexOf(type);\n\n if (index > -1) {\n typeList.splice(index, 1);\n }\n });\n};\n\nexports.removeTypeParser = removeTypeParser;\n\nconst listTypeParser = () => Object.keys(types);\n\nexports.listTypeParser = listTypeParser;\n\nconst treeTypeParser = () => {\n const attachNode = name => ({\n name,\n children: types[name].extensions.map(attachNode)\n });\n\n return {\n name: 'Type tree',\n children: Object.keys(dataTypes).map(name => ({\n name,\n children: dataTypes[name].map(attachNode)\n }))\n };\n};\n\nexports.treeTypeParser = treeTypeParser;\nconst typeMatcher = /^(?:@(.+?))(?:\\/(?:(.+?)\\+)?(?:(.+)))?$/;\nexports.typeMatcher = typeMatcher;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.remove = exports.register = exports.list = exports.has = exports.format = exports.add = void 0;\n\nvar _register = _interopRequireDefault(require(\"../util/register.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nconst validate = (name, formatter) => {\n if (typeof name !== 'string') {\n throw new TypeError(`Invalid output format name, expected string, got ${typeof name}`);\n } else if (typeof formatter !== 'function') {\n throw new TypeError(`Invalid formatter, expected function, got ${typeof formatter}`);\n }\n};\n\nconst register = new _register.default();\nexports.register = register;\n\nconst add = (name, formatter) => {\n validate(name, formatter);\n register.set(name, formatter);\n};\n\nexports.add = add;\n\nconst remove = name => {\n register.remove(name);\n};\n\nexports.remove = remove;\n\nconst has = name => {\n return register.has(name);\n};\n\nexports.has = has;\n\nconst list = () => {\n return register.list();\n};\n\nexports.list = list;\n\nconst format = (name, data, ...options) => {\n if (!register.has(name)) {\n throw new Error(`Output format \"${name}\" unavailable`);\n }\n\n return register.get(name)(data, ...options);\n};\n\nexports.format = format;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.deepCopy = deepCopy;\nexports.default = void 0;\n\nfunction deepCopy(value, seen = new Set()) {\n if (typeof value !== 'object' || value === null || value.constructor !== Object && value.constructor !== Array) {\n return value;\n }\n\n if (seen.has(value)) {\n throw new TypeError('Recursively copying circular structure');\n }\n\n seen.add(value);\n let copy;\n\n if (value.constructor === Array) {\n copy = value.map(value => deepCopy(value, seen));\n } else {\n const object = {};\n\n for (const key in value) {\n object[key] = deepCopy(value[key], seen);\n }\n\n copy = object;\n }\n\n seen.delete(value);\n return copy;\n}\n\nvar _default = deepCopy;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nexports.fetchFile = fetchFile;\nexports.fetchFileAsync = fetchFileAsync;\nexports.setUserAgent = setUserAgent;\n\nvar _syncFetch = _interopRequireDefault(require(\"sync-fetch\"));\n\nrequire(\"isomorphic-fetch\");\n\nvar _logger = _interopRequireDefault(require(\"../logger.js\"));\n\nvar _package = _interopRequireDefault(require(\"../../package.json\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nconst corsEnabled = typeof location !== 'undefined' && typeof document !== 'undefined';\nlet userAgent = corsEnabled ? '' : `Citation.js/${_package.default.version} Node.js/${process.version}`;\n\nfunction normaliseHeaders(headers) {\n const result = {};\n const entries = headers instanceof Headers || headers instanceof _syncFetch.default.Headers ? Array.from(headers) : Object.entries(headers);\n\n for (const [name, header] of entries) {\n result[name.toLowerCase()] = header.toString();\n }\n\n return result;\n}\n\nfunction parseOpts(opts = {}) {\n const reqOpts = {\n headers: {\n accept: '*/*'\n },\n method: 'GET',\n checkContentType: opts.checkContentType\n };\n\n if (userAgent && !corsEnabled) {\n reqOpts.headers['user-agent'] = userAgent;\n }\n\n if (opts.body) {\n reqOpts.method = 'POST';\n const isJson = typeof opts.body !== 'string';\n reqOpts.body = isJson ? JSON.stringify(opts.body) : opts.body;\n reqOpts.headers['content-type'] = isJson ? 'application/json' : 'text/plain';\n }\n\n if (opts.headers) {\n Object.assign(reqOpts.headers, normaliseHeaders(opts.headers));\n }\n\n return reqOpts;\n}\n\nfunction sameType(request, response) {\n if (!request.accept || request.accept === '*/*' || !response['content-type']) {\n return true;\n }\n\n const [a, b] = response['content-type'].split(';')[0].trim().split('/');\n return request.accept.split(',').map(type => type.split(';')[0].trim().split('/')).some(([c, d]) => (c === a || c === '*') && (d === b || d === '*'));\n}\n\nfunction checkResponse(response, opts) {\n const {\n status,\n headers\n } = response;\n let error;\n\n if (status >= 400) {\n error = new Error(`Server responded with status code ${status}`);\n } else if (opts.checkContentType === true && !sameType(opts.headers, normaliseHeaders(headers))) {\n error = new Error(`Server responded with content-type ${headers.get('content-type')}`);\n }\n\n if (error) {\n error.status = status;\n error.headers = headers;\n error.body = response.body;\n throw error;\n }\n\n return response;\n}\n\nfunction fetchFile(url, opts) {\n const reqOpts = parseOpts(opts);\n\n _logger.default.http('[core]', reqOpts.method, url, reqOpts);\n\n const response = checkResponse((0, _syncFetch.default)(url, reqOpts), reqOpts);\n return response.text();\n}\n\nasync function fetchFileAsync(url, opts) {\n const reqOpts = parseOpts(opts);\n\n _logger.default.http('[core]', reqOpts.method, url, reqOpts);\n\n return fetch(url, reqOpts).then(response => checkResponse(response, reqOpts)).then(response => response.text());\n}\n\nfunction setUserAgent(newUserAgent) {\n userAgent = newUserAgent;\n}\n\nvar _default = fetchFile;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nconst fetchId = function (list, prefix) {\n let id;\n\n while (id === undefined || list.includes(id)) {\n id = `${prefix}${Math.random().toString().slice(2)}`;\n }\n\n return id;\n};\n\nvar _default = fetchId;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Grammar = void 0;\n\nvar _deepCopy = require(\"./deepCopy.js\");\n\nclass Grammar {\n constructor(rules, state) {\n this.rules = rules;\n this.defaultState = state;\n this.mainRule = Object.keys(rules)[0];\n this.log = [];\n }\n\n parse(iterator, mainRule) {\n this.lexer = iterator;\n this.token = this.lexer.next();\n this.state = (0, _deepCopy.deepCopy)(this.defaultState);\n this.log = [];\n return this.consumeRule(mainRule || this.mainRule);\n }\n\n matchEndOfFile() {\n return !this.token;\n }\n\n matchToken(type) {\n return this.token && type === this.token.type;\n }\n\n consumeToken(type, optional) {\n const token = this.token;\n\n if (!type || token && token.type === type) {\n this.token = this.lexer.next();\n return token;\n } else if (optional) {\n return undefined;\n } else {\n const got = token ? `\"${token.type}\"` : 'EOF';\n const error = new SyntaxError(this.lexer.formatError(token, `expected \"${type}\", got ${got}`));\n error.message += ` (${this.log.join('->')})`;\n throw error;\n }\n }\n\n consumeRule(rule) {\n this.log.push(rule);\n const result = this.rules[rule].call(this);\n this.log.pop();\n return result;\n }\n\n}\n\nexports.Grammar = Grammar;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"Grammar\", {\n enumerable: true,\n get: function () {\n return _grammar.Grammar;\n }\n});\nObject.defineProperty(exports, \"Register\", {\n enumerable: true,\n get: function () {\n return _register.default;\n }\n});\nObject.defineProperty(exports, \"TokenStack\", {\n enumerable: true,\n get: function () {\n return _stack.default;\n }\n});\nObject.defineProperty(exports, \"Translator\", {\n enumerable: true,\n get: function () {\n return _translator.Translator;\n }\n});\nObject.defineProperty(exports, \"deepCopy\", {\n enumerable: true,\n get: function () {\n return _deepCopy.default;\n }\n});\nObject.defineProperty(exports, \"fetchFile\", {\n enumerable: true,\n get: function () {\n return _fetchFile.fetchFile;\n }\n});\nObject.defineProperty(exports, \"fetchFileAsync\", {\n enumerable: true,\n get: function () {\n return _fetchFile.fetchFileAsync;\n }\n});\nObject.defineProperty(exports, \"fetchId\", {\n enumerable: true,\n get: function () {\n return _fetchId.default;\n }\n});\nObject.defineProperty(exports, \"setUserAgent\", {\n enumerable: true,\n get: function () {\n return _fetchFile.setUserAgent;\n }\n});\n\nvar _deepCopy = _interopRequireDefault(require(\"./deepCopy.js\"));\n\nvar _fetchFile = require(\"./fetchFile.js\");\n\nvar _fetchId = _interopRequireDefault(require(\"./fetchId.js\"));\n\nvar _stack = _interopRequireDefault(require(\"./stack.js\"));\n\nvar _register = _interopRequireDefault(require(\"./register.js\"));\n\nvar _grammar = require(\"./grammar.js\");\n\nvar _translator = require(\"./translator.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nclass Register {\n constructor(data = {}) {\n this.data = data;\n }\n\n set(key, value) {\n this.data[key] = value;\n return this;\n }\n\n add(...args) {\n return this.set(...args);\n }\n\n delete(key) {\n delete this.data[key];\n return this;\n }\n\n remove(...args) {\n return this.delete(...args);\n }\n\n get(key) {\n return this.data[key];\n }\n\n has(key) {\n return Object.prototype.hasOwnProperty.call(this.data, key);\n }\n\n list() {\n return Object.keys(this.data);\n }\n\n}\n\nvar _default = Register;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nclass TokenStack {\n constructor(array) {\n this.stack = array;\n this.index = 0;\n this.current = this.stack[this.index];\n }\n\n static getPatternText(pattern) {\n return `\"${pattern instanceof RegExp ? pattern.source : pattern}\"`;\n }\n\n static getMatchCallback(pattern) {\n if (Array.isArray(pattern)) {\n const matches = pattern.map(TokenStack.getMatchCallback);\n return token => matches.some(matchCallback => matchCallback(token));\n } else if (pattern instanceof Function) {\n return pattern;\n } else if (pattern instanceof RegExp) {\n return token => pattern.test(token);\n } else {\n return token => pattern === token;\n }\n }\n\n tokensLeft() {\n return this.stack.length - this.index;\n }\n\n matches(pattern) {\n return TokenStack.getMatchCallback(pattern)(this.current, this.index, this.stack);\n }\n\n matchesSequence(sequence) {\n const part = this.stack.slice(this.index, this.index + sequence.length).join('');\n return typeof sequence === 'string' ? part === sequence : sequence.every((pattern, index) => TokenStack.getMatchCallback(pattern)(part[index]));\n }\n\n consumeToken(pattern = /^[\\s\\S]$/, {\n inverse = false,\n spaced = true\n } = {}) {\n if (spaced) {\n this.consumeWhitespace();\n }\n\n const token = this.current;\n const match = TokenStack.getMatchCallback(pattern)(token, this.index, this.stack);\n\n if (match) {\n this.current = this.stack[++this.index];\n } else {\n throw new SyntaxError(`Unexpected token at index ${this.index}: Expected ${TokenStack.getPatternText(pattern)}, got \"${token}\"`);\n }\n\n if (spaced) {\n this.consumeWhitespace();\n }\n\n return token;\n }\n\n consumeWhitespace(pattern = /^\\s$/, {\n optional = true\n } = {}) {\n return this.consume(pattern, {\n min: +!optional\n });\n }\n\n consumeN(length) {\n if (this.tokensLeft() < length) {\n throw new SyntaxError('Not enough tokens left');\n }\n\n const start = this.index;\n\n while (length--) {\n this.current = this.stack[++this.index];\n }\n\n return this.stack.slice(start, this.index).join('');\n }\n\n consumeSequence(sequence) {\n if (this.matchesSequence(sequence)) {\n return this.consumeN(sequence.length);\n } else {\n throw new SyntaxError(`Expected \"${sequence}\", got \"${this.consumeN(sequence.length)}\"`);\n }\n }\n\n consume(pattern = /^[\\s\\S]$/, {\n min = 0,\n max = Infinity,\n inverse = false,\n tokenMap,\n tokenFilter\n } = {}) {\n const start = this.index;\n const match = TokenStack.getMatchCallback(pattern);\n\n while (match(this.current, this.index, this.stack) !== inverse) {\n this.current = this.stack[++this.index];\n }\n\n let consumed = this.stack.slice(start, this.index);\n\n if (consumed.length < min) {\n throw new SyntaxError(`Not enough ${TokenStack.getPatternText(pattern)}`);\n } else if (consumed.length > max) {\n throw new SyntaxError(`Too many ${TokenStack.getPatternText(pattern)}`);\n }\n\n if (tokenMap) {\n consumed = consumed.map(tokenMap);\n }\n\n if (tokenFilter) {\n consumed = consumed.filter(tokenFilter);\n }\n\n return consumed.join('');\n }\n\n}\n\nvar _default = TokenStack;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Translator = void 0;\n\nfunction createConditionEval(condition) {\n return function conditionEval(input) {\n if (typeof condition === 'boolean') {\n return condition;\n }\n\n return Object.keys(condition).every(prop => {\n const value = condition[prop];\n\n if (value === true) {\n return prop in input;\n } else if (value === false) {\n return !(prop in input);\n } else if (typeof value === 'function') {\n return value(input[prop]);\n } else if (Array.isArray(value)) {\n return value.includes(input[prop]);\n } else {\n return input[prop] === value;\n }\n });\n };\n}\n\nfunction parsePropStatement(prop, toSource) {\n let inputProp;\n let outputProp;\n let convert;\n let condition;\n\n if (typeof prop === 'string') {\n inputProp = outputProp = prop;\n } else if (prop) {\n inputProp = toSource ? prop.target : prop.source;\n outputProp = toSource ? prop.source : prop.target;\n\n if (prop.convert) {\n convert = toSource ? prop.convert.toSource : prop.convert.toTarget;\n }\n\n if (prop.when) {\n condition = toSource ? prop.when.target : prop.when.source;\n\n if (condition != null) {\n condition = createConditionEval(condition);\n }\n }\n } else {\n return null;\n }\n\n inputProp = [].concat(inputProp).filter(Boolean);\n outputProp = [].concat(outputProp).filter(Boolean);\n return {\n inputProp,\n outputProp,\n convert,\n condition\n };\n}\n\nfunction createConverter(props, toSource) {\n toSource = toSource === Translator.CONVERT_TO_SOURCE;\n props = props.map(prop => parsePropStatement(prop, toSource)).filter(Boolean);\n return function converter(input) {\n const output = {};\n\n for (const {\n inputProp,\n outputProp,\n convert,\n condition\n } of props) {\n if (outputProp.length === 0) {\n continue;\n } else if (condition && !condition(input)) {\n continue;\n } else if (inputProp.length !== 0 && inputProp.every(prop => !(prop in input))) {\n continue;\n }\n\n let outputData = inputProp.map(prop => input[prop]);\n\n if (convert) {\n try {\n const converted = convert.apply(input, outputData);\n outputData = outputProp.length === 1 ? [converted] : converted;\n } catch (cause) {\n throw new Error(`Failed to convert ${inputProp} to ${outputProp}`, {\n cause\n });\n }\n }\n\n outputProp.forEach((prop, index) => {\n const value = outputData[index];\n\n if (value !== undefined) {\n output[prop] = value;\n }\n });\n }\n\n return output;\n };\n}\n\nclass Translator {\n constructor(props) {\n this.convertToSource = createConverter(props, Translator.CONVERT_TO_SOURCE);\n this.convertToTarget = createConverter(props, Translator.CONVERT_TO_TARGET);\n }\n\n}\n\nexports.Translator = Translator;\nTranslator.CONVERT_TO_SOURCE = Symbol('convert to source');\nTranslator.CONVERT_TO_TARGET = Symbol('convert to target');","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"parse\", {\n enumerable: true,\n get: function get() {\n return _input.default;\n }\n});\nObject.defineProperty(exports, \"format\", {\n enumerable: true,\n get: function get() {\n return _output.default;\n }\n});\n\nvar _input = _interopRequireDefault(require(\"./input\"));\n\nvar _output = _interopRequireDefault(require(\"./output\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = exports.parse = exports.types = exports.scope = void 0;\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nconst punctutationMatcher = string => string.replace(/$|( )|(?!^)(?=[A-Z])/g, '\\\\.?$1');\n\nconst getListMatcher = list => `(?:${list.join('|')})\\\\b`;\n\nconst getSplittingRegex = (matcher, flags) => new RegExp(`(?:^| )(${matcher}$)`, flags);\n\nconst titles = ['mr', 'mrs', 'ms', 'miss', 'dr', 'herr', 'monsieur', 'hr', 'frau', 'a v m', 'admiraal', 'admiral', 'air cdre', 'air commodore', 'air marshal', 'air vice marshal', 'alderman', 'alhaji', 'ambassador', 'baron', 'barones', 'brig', 'brig gen', 'brig general', 'brigadier', 'brigadier general', 'brother', 'canon', 'capt', 'captain', 'cardinal', 'cdr', 'chief', 'cik', 'cmdr', 'coach', 'col', 'col dr', 'colonel', 'commandant', 'commander', 'commissioner', 'commodore', 'comte', 'comtessa', 'congressman', 'conseiller', 'consul', 'conte', 'contessa', 'corporal', 'councillor', 'count', 'countess', 'crown prince', 'crown princess', 'dame', 'datin', 'dato', 'datuk', 'datuk seri', 'deacon', 'deaconess', 'dean', 'dhr', 'dipl ing', 'doctor', 'dott', 'dott sa', 'dr', 'dr ing', 'dra', 'drs', 'embajador', 'embajadora', 'en', 'encik', 'eng', 'eur ing', 'exma sra', 'exmo sr', 'f o', 'father', 'first lieutient', 'first officer', 'flt lieut', 'flying officer', 'fr', 'frau', 'fraulein', 'fru', 'gen', 'generaal', 'general', 'governor', 'graaf', 'gravin', 'group captain', 'grp capt', 'h e dr', 'h h', 'h m', 'h r h', 'hajah', 'haji', 'hajim', 'her highness', 'her majesty', 'herr', 'high chief', 'his highness', 'his holiness', 'his majesty', 'hon', 'hr', 'hra', 'ing', 'ir', 'jonkheer', 'judge', 'justice', 'khun ying', 'kolonel', 'lady', 'lcda', 'lic', 'lieut', 'lieut cdr', 'lieut col', 'lieut gen', 'lord', 'm', 'm l', 'm r', 'madame', 'mademoiselle', 'maj gen', 'major', 'master', 'mevrouw', 'miss', 'mlle', 'mme', 'monsieur', 'monsignor', 'mr', 'mrs', 'ms', 'mstr', 'nti', 'pastor', 'president', 'prince', 'princess', 'princesse', 'prinses', 'prof', 'prof dr', 'prof sir', 'professor', 'puan', 'puan sri', 'rabbi', 'rear admiral', 'rev', 'rev canon', 'rev dr', 'rev mother', 'reverend', 'rva', 'senator', 'sergeant', 'sheikh', 'sheikha', 'sig', 'sig na', 'sig ra', 'sir', 'sister', 'sqn ldr', 'sr', 'sr d', 'sra', 'srta', 'sultan', 'tan sri', 'tan sri dato', 'tengku', 'teuku', 'than puying', 'the hon dr', 'the hon justice', 'the hon miss', 'the hon mr', 'the hon mrs', 'the hon ms', 'the hon sir', 'the very rev', 'toh puan', 'tun', 'vice admiral', 'viscount', 'viscountess', 'wg cdr'];\nconst suffixes = ['I', 'II', 'III', 'IV', 'V', 'Senior', 'Junior', 'Jr', 'Sr', 'PhD', 'Ph\\\\.D', 'APR', 'RPh', 'PE', 'MD', 'MA', 'DMD', 'CME', 'BVM', 'CFRE', 'CLU', 'CPA', 'CSC', 'CSJ', 'DC', 'DD', 'DDS', 'DO', 'DVM', 'EdD', 'Esq', 'JD', 'LLD', 'OD', 'OSB', 'PC', 'Ret', 'RGS', 'RN', 'RNC', 'SHCJ', 'SJ', 'SNJM', 'SSMO', 'USA', 'USAF', 'USAFR', 'USAR', 'USCG', 'USMC', 'USMCR', 'USN', 'USNR'];\nconst particles = ['Vere', 'Von', 'Van', 'De', 'Del', 'Della', 'Di', 'Da', 'Pietro', 'Vanden', 'Du', 'St.', 'St', 'La', 'Lo', 'Ter', 'O', 'O\\'', 'Mac', 'Fitz'];\nconst titleMatcher = getListMatcher(titles.map(punctutationMatcher));\nconst suffixMatcher = getListMatcher(suffixes.map(punctutationMatcher));\nconst particleMatcher = getListMatcher(particles);\nconst titleSplitter = new RegExp(`^((?:${titleMatcher} )*)(.*)$`, 'i');\nconst suffixSplitter = getSplittingRegex(`(?:${suffixMatcher}, )*(?:${suffixMatcher})`, 'i');\nconst particleSplitter = getSplittingRegex(`${/(?:[A-Z\\xC0-\\xD6\\xD8-\\xDE\\u0100\\u0102\\u0104\\u0106\\u0108\\u010A\\u010C\\u010E\\u0110\\u0112\\u0114\\u0116\\u0118\\u011A\\u011C\\u011E\\u0120\\u0122\\u0124\\u0126\\u0128\\u012A\\u012C\\u012E\\u0130\\u0132\\u0134\\u0136\\u0139\\u013B\\u013D\\u013F\\u0141\\u0143\\u0145\\u0147\\u014A\\u014C\\u014E\\u0150\\u0152\\u0154\\u0156\\u0158\\u015A\\u015C\\u015E\\u0160\\u0162\\u0164\\u0166\\u0168\\u016A\\u016C\\u016E\\u0170\\u0172\\u0174\\u0176\\u0178\\u0179\\u017B\\u017D\\u0181\\u0182\\u0184\\u0186\\u0187\\u0189-\\u018B\\u018E-\\u0191\\u0193\\u0194\\u0196-\\u0198\\u019C\\u019D\\u019F\\u01A0\\u01A2\\u01A4\\u01A6\\u01A7\\u01A9\\u01AC\\u01AE\\u01AF\\u01B1-\\u01B3\\u01B5\\u01B7\\u01B8\\u01BC\\u01C4\\u01C7\\u01CA\\u01CD\\u01CF\\u01D1\\u01D3\\u01D5\\u01D7\\u01D9\\u01DB\\u01DE\\u01E0\\u01E2\\u01E4\\u01E6\\u01E8\\u01EA\\u01EC\\u01EE\\u01F1\\u01F4\\u01F6-\\u01F8\\u01FA\\u01FC\\u01FE\\u0200\\u0202\\u0204\\u0206\\u0208\\u020A\\u020C\\u020E\\u0210\\u0212\\u0214\\u0216\\u0218\\u021A\\u021C\\u021E\\u0220\\u0222\\u0224\\u0226\\u0228\\u022A\\u022C\\u022E\\u0230\\u0232\\u023A\\u023B\\u023D\\u023E\\u0241\\u0243-\\u0246\\u0248\\u024A\\u024C\\u024E\\u0370\\u0372\\u0376\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E\\u038F\\u0391-\\u03A1\\u03A3-\\u03AB\\u03CF\\u03D2-\\u03D4\\u03D8\\u03DA\\u03DC\\u03DE\\u03E0\\u03E2\\u03E4\\u03E6\\u03E8\\u03EA\\u03EC\\u03EE\\u03F4\\u03F7\\u03F9\\u03FA\\u03FD-\\u042F\\u0460\\u0462\\u0464\\u0466\\u0468\\u046A\\u046C\\u046E\\u0470\\u0472\\u0474\\u0476\\u0478\\u047A\\u047C\\u047E\\u0480\\u048A\\u048C\\u048E\\u0490\\u0492\\u0494\\u0496\\u0498\\u049A\\u049C\\u049E\\u04A0\\u04A2\\u04A4\\u04A6\\u04A8\\u04AA\\u04AC\\u04AE\\u04B0\\u04B2\\u04B4\\u04B6\\u04B8\\u04BA\\u04BC\\u04BE\\u04C0\\u04C1\\u04C3\\u04C5\\u04C7\\u04C9\\u04CB\\u04CD\\u04D0\\u04D2\\u04D4\\u04D6\\u04D8\\u04DA\\u04DC\\u04DE\\u04E0\\u04E2\\u04E4\\u04E6\\u04E8\\u04EA\\u04EC\\u04EE\\u04F0\\u04F2\\u04F4\\u04F6\\u04F8\\u04FA\\u04FC\\u04FE\\u0500\\u0502\\u0504\\u0506\\u0508\\u050A\\u050C\\u050E\\u0510\\u0512\\u0514\\u0516\\u0518\\u051A\\u051C\\u051E\\u0520\\u0522\\u0524\\u0526\\u0528\\u052A\\u052C\\u052E\\u0531-\\u0556\\u10A0-\\u10C5\\u10C7\\u10CD\\u13A0-\\u13F5\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1E00\\u1E02\\u1E04\\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\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u2130-\\u2133\\u213E\\u213F\\u2145\\u2160-\\u216F\\u2183\\u24B6-\\u24CF\\u2C00-\\u2C2E\\u2C60\\u2C62-\\u2C64\\u2C67\\u2C69\\u2C6B\\u2C6D-\\u2C70\\u2C72\\u2C75\\u2C7E-\\u2C80\\u2C82\\u2C84\\u2C86\\u2C88\\u2C8A\\u2C8C\\u2C8E\\u2C90\\u2C92\\u2C94\\u2C96\\u2C98\\u2C9A\\u2C9C\\u2C9E\\u2CA0\\u2CA2\\u2CA4\\u2CA6\\u2CA8\\u2CAA\\u2CAC\\u2CAE\\u2CB0\\u2CB2\\u2CB4\\u2CB6\\u2CB8\\u2CBA\\u2CBC\\u2CBE\\u2CC0\\u2CC2\\u2CC4\\u2CC6\\u2CC8\\u2CCA\\u2CCC\\u2CCE\\u2CD0\\u2CD2\\u2CD4\\u2CD6\\u2CD8\\u2CDA\\u2CDC\\u2CDE\\u2CE0\\u2CE2\\u2CEB\\u2CED\\u2CF2\\uA640\\uA642\\uA644\\uA646\\uA648\\uA64A\\uA64C\\uA64E\\uA650\\uA652\\uA654\\uA656\\uA658\\uA65A\\uA65C\\uA65E\\uA660\\uA662\\uA664\\uA666\\uA668\\uA66A\\uA66C\\uA680\\uA682\\uA684\\uA686\\uA688\\uA68A\\uA68C\\uA68E\\uA690\\uA692\\uA694\\uA696\\uA698\\uA69A\\uA722\\uA724\\uA726\\uA728\\uA72A\\uA72C\\uA72E\\uA732\\uA734\\uA736\\uA738\\uA73A\\uA73C\\uA73E\\uA740\\uA742\\uA744\\uA746\\uA748\\uA74A\\uA74C\\uA74E\\uA750\\uA752\\uA754\\uA756\\uA758\\uA75A\\uA75C\\uA75E\\uA760\\uA762\\uA764\\uA766\\uA768\\uA76A\\uA76C\\uA76E\\uA779\\uA77B\\uA77D\\uA77E\\uA780\\uA782\\uA784\\uA786\\uA78B\\uA78D\\uA790\\uA792\\uA796\\uA798\\uA79A\\uA79C\\uA79E\\uA7A0\\uA7A2\\uA7A4\\uA7A6\\uA7A8\\uA7AA-\\uA7AE\\uA7B0-\\uA7B4\\uA7B6\\uA7B8\\uFF21-\\uFF3A]|\\uD801[\\uDC00-\\uDC27\\uDCB0-\\uDCD3]|\\uD803[\\uDC80-\\uDCB2]|\\uD806[\\uDCA0-\\uDCBF]|\\uD81B[\\uDE40-\\uDE5F]|\\uD835[\\uDC00-\\uDC19\\uDC34-\\uDC4D\\uDC68-\\uDC81\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB5\\uDCD0-\\uDCE9\\uDD04\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD38\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD6C-\\uDD85\\uDDA0-\\uDDB9\\uDDD4-\\uDDED\\uDE08-\\uDE21\\uDE3C-\\uDE55\\uDE70-\\uDE89\\uDEA8-\\uDEC0\\uDEE2-\\uDEFA\\uDF1C-\\uDF34\\uDF56-\\uDF6E\\uDF90-\\uDFA8\\uDFCA]|\\uD83A[\\uDD00-\\uDD21]|\\uD83C[\\uDD30-\\uDD49\\uDD50-\\uDD69\\uDD70-\\uDD89])/.source}.*`);\nconst endSplitter = getSplittingRegex(`(?:${/(?:[a-z\\xAA\\xB5\\xBA\\xDF-\\xF6\\xF8-\\xFF\\u0101\\u0103\\u0105\\u0107\\u0109\\u010B\\u010D\\u010F\\u0111\\u0113\\u0115\\u0117\\u0119\\u011B\\u011D\\u011F\\u0121\\u0123\\u0125\\u0127\\u0129\\u012B\\u012D\\u012F\\u0131\\u0133\\u0135\\u0137\\u0138\\u013A\\u013C\\u013E\\u0140\\u0142\\u0144\\u0146\\u0148\\u0149\\u014B\\u014D\\u014F\\u0151\\u0153\\u0155\\u0157\\u0159\\u015B\\u015D\\u015F\\u0161\\u0163\\u0165\\u0167\\u0169\\u016B\\u016D\\u016F\\u0171\\u0173\\u0175\\u0177\\u017A\\u017C\\u017E-\\u0180\\u0183\\u0185\\u0188\\u018C\\u018D\\u0192\\u0195\\u0199-\\u019B\\u019E\\u01A1\\u01A3\\u01A5\\u01A8\\u01AA\\u01AB\\u01AD\\u01B0\\u01B4\\u01B6\\u01B9\\u01BA\\u01BD-\\u01BF\\u01C6\\u01C9\\u01CC\\u01CE\\u01D0\\u01D2\\u01D4\\u01D6\\u01D8\\u01DA\\u01DC\\u01DD\\u01DF\\u01E1\\u01E3\\u01E5\\u01E7\\u01E9\\u01EB\\u01ED\\u01EF\\u01F0\\u01F3\\u01F5\\u01F9\\u01FB\\u01FD\\u01FF\\u0201\\u0203\\u0205\\u0207\\u0209\\u020B\\u020D\\u020F\\u0211\\u0213\\u0215\\u0217\\u0219\\u021B\\u021D\\u021F\\u0221\\u0223\\u0225\\u0227\\u0229\\u022B\\u022D\\u022F\\u0231\\u0233-\\u0239\\u023C\\u023F\\u0240\\u0242\\u0247\\u0249\\u024B\\u024D\\u024F-\\u0293\\u0295-\\u02B8\\u02C0\\u02C1\\u02E0-\\u02E4\\u0345\\u0371\\u0373\\u0377\\u037A-\\u037D\\u0390\\u03AC-\\u03CE\\u03D0\\u03D1\\u03D5-\\u03D7\\u03D9\\u03DB\\u03DD\\u03DF\\u03E1\\u03E3\\u03E5\\u03E7\\u03E9\\u03EB\\u03ED\\u03EF-\\u03F3\\u03F5\\u03F8\\u03FB\\u03FC\\u0430-\\u045F\\u0461\\u0463\\u0465\\u0467\\u0469\\u046B\\u046D\\u046F\\u0471\\u0473\\u0475\\u0477\\u0479\\u047B\\u047D\\u047F\\u0481\\u048B\\u048D\\u048F\\u0491\\u0493\\u0495\\u0497\\u0499\\u049B\\u049D\\u049F\\u04A1\\u04A3\\u04A5\\u04A7\\u04A9\\u04AB\\u04AD\\u04AF\\u04B1\\u04B3\\u04B5\\u04B7\\u04B9\\u04BB\\u04BD\\u04BF\\u04C2\\u04C4\\u04C6\\u04C8\\u04CA\\u04CC\\u04CE\\u04CF\\u04D1\\u04D3\\u04D5\\u04D7\\u04D9\\u04DB\\u04DD\\u04DF\\u04E1\\u04E3\\u04E5\\u04E7\\u04E9\\u04EB\\u04ED\\u04EF\\u04F1\\u04F3\\u04F5\\u04F7\\u04F9\\u04FB\\u04FD\\u04FF\\u0501\\u0503\\u0505\\u0507\\u0509\\u050B\\u050D\\u050F\\u0511\\u0513\\u0515\\u0517\\u0519\\u051B\\u051D\\u051F\\u0521\\u0523\\u0525\\u0527\\u0529\\u052B\\u052D\\u052F\\u0560-\\u0588\\u10D0-\\u10FA\\u10FD-\\u10FF\\u13F8-\\u13FD\\u1C80-\\u1C88\\u1D00-\\u1DBF\\u1E01\\u1E03\\u1E05\\u1E07\\u1E09\\u1E0B\\u1E0D\\u1E0F\\u1E11\\u1E13\\u1E15\\u1E17\\u1E19\\u1E1B\\u1E1D\\u1E1F\\u1E21\\u1E23\\u1E25\\u1E27\\u1E29\\u1E2B\\u1E2D\\u1E2F\\u1E31\\u1E33\\u1E35\\u1E37\\u1E39\\u1E3B\\u1E3D\\u1E3F\\u1E41\\u1E43\\u1E45\\u1E47\\u1E49\\u1E4B\\u1E4D\\u1E4F\\u1E51\\u1E53\\u1E55\\u1E57\\u1E59\\u1E5B\\u1E5D\\u1E5F\\u1E61\\u1E63\\u1E65\\u1E67\\u1E69\\u1E6B\\u1E6D\\u1E6F\\u1E71\\u1E73\\u1E75\\u1E77\\u1E79\\u1E7B\\u1E7D\\u1E7F\\u1E81\\u1E83\\u1E85\\u1E87\\u1E89\\u1E8B\\u1E8D\\u1E8F\\u1E91\\u1E93\\u1E95-\\u1E9D\\u1E9F\\u1EA1\\u1EA3\\u1EA5\\u1EA7\\u1EA9\\u1EAB\\u1EAD\\u1EAF\\u1EB1\\u1EB3\\u1EB5\\u1EB7\\u1EB9\\u1EBB\\u1EBD\\u1EBF\\u1EC1\\u1EC3\\u1EC5\\u1EC7\\u1EC9\\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CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\uA641\\uA643\\uA645\\uA647\\uA649\\uA64B\\uA64D\\uA64F\\uA651\\uA653\\uA655\\uA657\\uA659\\uA65B\\uA65D\\uA65F\\uA661\\uA663\\uA665\\uA667\\uA669\\uA66B\\uA66D\\uA681\\uA683\\uA685\\uA687\\uA689\\uA68B\\uA68D\\uA68F\\uA691\\uA693\\uA695\\uA697\\uA699\\uA69B-\\uA69D\\uA723\\uA725\\uA727\\uA729\\uA72B\\uA72D\\uA72F-\\uA731\\uA733\\uA735\\uA737\\uA739\\uA73B\\uA73D\\uA73F\\uA741\\uA743\\uA745\\uA747\\uA749\\uA74B\\uA74D\\uA74F\\uA751\\uA753\\uA755\\uA757\\uA759\\uA75B\\uA75D\\uA75F\\uA761\\uA763\\uA765\\uA767\\uA769\\uA76B\\uA76D\\uA76F-\\uA778\\uA77A\\uA77C\\uA77F\\uA781\\uA783\\uA785\\uA787\\uA78C\\uA78E\\uA791\\uA793-\\uA795\\uA797\\uA799\\uA79B\\uA79D\\uA79F\\uA7A1\\uA7A3\\uA7A5\\uA7A7\\uA7A9\\uA7AF\\uA7B5\\uA7B7\\uA7B9\\uA7F8-\\uA7FA\\uAB30-\\uAB5A\\uAB5C-\\uAB65\\uAB70-\\uABBF\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFF41-\\uFF5A]|\\uD801[\\uDC28-\\uDC4F\\uDCD8-\\uDCFB]|\\uD803[\\uDCC0-\\uDCF2]|\\uD806[\\uDCC0-\\uDCDF]|\\uD81B[\\uDE60-\\uDE7F]|\\uD835[\\uDC1A-\\uDC33\\uDC4E-\\uDC54\\uDC56-\\uDC67\\uDC82-\\uDC9B\\uDCB6-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDCCF\\uDCEA-\\uDD03\\uDD1E-\\uDD37\\uDD52-\\uDD6B\\uDD86-\\uDD9F\\uDDBA-\\uDDD3\\uDDEE-\\uDE07\\uDE22-\\uDE3B\\uDE56-\\uDE6F\\uDE8A-\\uDEA5\\uDEC2-\\uDEDA\\uDEDC-\\uDEE1\\uDEFC-\\uDF14\\uDF16-\\uDF1B\\uDF36-\\uDF4E\\uDF50-\\uDF55\\uDF70-\\uDF88\\uDF8A-\\uDF8F\\uDFAA-\\uDFC2\\uDFC4-\\uDFC9\\uDFCB]|\\uD83A[\\uDD22-\\uDD43])/.source}.*|${particleMatcher}.*|\\\\S*)`);\n\nconst parseName = function parseName(name = '') {\n if (typeof name !== 'string') {\n name = name + '';\n }\n\n let start = '';\n let mid = '';\n let end = '';\n\n if (/[^.], /.test(name)) {\n const parts = name.split(', ');\n end = parts.shift();\n const suffixMatch = RegExp(suffixMatcher).exec(parts.join(', '));\n start = parts.splice(suffixMatch && suffixMatch.index !== 0 ? 0 : -1, 1)[0];\n mid = parts.join(', ');\n } else {\n const parts = name.split(suffixSplitter, 2);\n const main = parts.shift().split(endSplitter, 2);\n start = main[0];\n end = main[1];\n mid = parts.pop();\n }\n\n const _start$match = start.match(titleSplitter),\n _start$match2 = _slicedToArray(_start$match, 3),\n droppingParticle = _start$match2[1],\n given = _start$match2[2];\n\n const suffix = mid;\n\n const _end$split$reverse = end.split(particleSplitter, 2).reverse(),\n _end$split$reverse2 = _slicedToArray(_end$split$reverse, 2),\n family = _end$split$reverse2[0],\n nonDroppingParticle = _end$split$reverse2[1];\n\n if (!given && family) {\n return family.includes(' ') ? {\n literal: family\n } : {\n family\n };\n } else if (family) {\n const nameObject = {\n 'dropping-particle': droppingParticle,\n given,\n suffix,\n 'non-dropping-particle': nonDroppingParticle,\n family\n };\n Object.keys(nameObject).forEach(key => {\n if (!nameObject[key]) {\n delete nameObject[key];\n }\n });\n return nameObject;\n } else {\n return {\n literal: name\n };\n }\n};\n\nexports.default = exports.parse = parseName;\nconst scope = '@name';\nexports.scope = scope;\nconst types = '@name';\nexports.types = types;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nconst startParts = ['dropping-particle', 'given'];\nconst suffixParts = ['suffix'];\nconst endParts = ['non-dropping-particle', 'family'];\n\nconst getName = function getName(name, reversed = false) {\n const get = parts => parts.map(entry => name[entry] || '').filter(Boolean).join(' ');\n\n if (name.literal) {\n return name.literal;\n } else if (reversed) {\n const suffixPart = get(suffixParts) ? `, ${get(suffixParts)}` : '';\n const startPart = get(startParts) ? `, ${get(startParts)}` : '';\n return get(endParts) + suffixPart + startPart;\n } else {\n return `${get([...startParts, ...suffixParts, ...endParts])}`;\n }\n};\n\nvar _default = getName;\nexports.default = _default;","import { parse as parseDate } from '@citation-js/date';\nimport { parse as parseName } from '@citation-js/name';\n\nfunction nameProps(person) {\n const {\n firstname,\n lastname,\n firstName: given = firstname,\n lastName: family = lastname\n } = person;\n\n if (given && family) {\n return {\n given,\n family\n };\n } else if (person.name) {\n return parseName(person.name);\n }\n}\n\nconst identifiers = ['PMID', 'PMCID', 'DOI', 'ISBN'];\nconst journalIdentifiers = ['ISSN'];\n\nfunction idProps(input, identifiers) {\n const output = {};\n\n for (const prop in input) {\n const upperCaseProp = prop.toUpperCase();\n\n if (identifiers.includes(upperCaseProp)) {\n output[upperCaseProp] = input[prop];\n }\n }\n\n if (input.identifier) {\n for (let {\n id,\n type = ''\n } of input.identifier) {\n type = type.toUpperCase();\n\n if (identifiers.includes(type)) {\n output[type] = id;\n }\n }\n }\n\n return output;\n}\n\nconst typeMap = {\n article: 'article',\n book: 'book',\n booklet: 'book',\n proceedings: 'book',\n mastersthesis: 'thesis',\n inbook: 'chapter',\n incollection: 'chapter',\n conference: 'paper-conference',\n inproceedings: 'paper-conference',\n online: 'website',\n patent: 'patent',\n phdthesis: 'thesis',\n techreport: 'report',\n unpublished: 'manuscript',\n manual: undefined,\n misc: undefined\n};\n\nfunction quickscrapeSpecificProps() {\n return {\n type: 'article-journal'\n };\n}\n\nfunction generalProps(input) {\n const output = {\n type: typeMap[input.type] || 'book'\n };\n\n if (input.title) {\n output.title = input.title;\n }\n\n if (input.author) {\n output.author = input.author.map(nameProps).filter(Boolean);\n }\n\n if (input.editor) {\n output.editor = input.editor.map(nameProps).filter(Boolean);\n }\n\n if (input.reviewer) {\n if (input.author) {\n output['reviewed-author'] = output.author;\n }\n\n output.author = input.reviewer.map(nameProps).filter(Boolean);\n }\n\n if (Array.isArray(input.keywords)) {\n output.keyword = input.keywords.join();\n } else if (input.keywords) {\n output.keyword = input.keywords;\n }\n\n if (input.publisher) {\n output.publisher = input.publisher.name || input.publisher;\n }\n\n if (input.date && Object.keys(input.date).length > 0) {\n const dates = input.date;\n\n if (dates.submitted) {\n output.submitted = parseDate(dates.submitted);\n }\n\n if (dates.published) {\n output.issued = parseDate(dates.published);\n }\n } else if (input.year) {\n output.issued = {\n 'date-parts': [[+input.year]]\n };\n }\n\n if (input.journal) {\n const journal = input.journal;\n\n if (journal.name) {\n output['container-title'] = journal.name;\n }\n\n if (journal.volume) {\n output.volume = +journal.volume;\n }\n\n if (journal.issue) {\n output.issue = +journal.issue;\n }\n\n Object.assign(output, idProps(journal, journalIdentifiers));\n\n if (journal.firstpage) {\n output['page-first'] = journal.firstpage;\n }\n\n if (journal.pages) {\n output.page = journal.pages.replace('--', '-');\n } else if (journal.firstpage && journal.lastpage) {\n output.page = journal.firstpage + '-' + journal.lastpage;\n }\n }\n\n if (input.link && typeof input.link[0] === 'object') {\n output.URL = input.link[0].url;\n }\n\n Object.assign(output, idProps(input, identifiers));\n\n if (input.cid) {\n output.id = input.cid;\n } else if (output.DOI) {\n output.id = output.DOI;\n }\n\n return output;\n}\n\nconst parseContentMine = function (data) {\n return Object.assign(generalProps(data), quickscrapeSpecificProps(data));\n};\n\nconst parseBibJson = function (data) {\n return generalProps(data);\n};\n\nexport { parseContentMine as quickscrapeRecord, parseBibJson as record };","import * as json from './json.js';\nimport { plugins } from '@citation-js/core';\nconst scraperLinks = ['fulltext_html', 'fulltext_xml', 'fulltext_pdf'];\nconst ref = '@bibjson';\nconst parsers = {\n json\n};\nconst formats = {\n '@bibjson/quickscrape+record+object': {\n parse: json.quickscrapeRecord,\n parseType: {\n propertyConstraint: {\n props: 'link',\n\n value(links) {\n return scraperLinks.some(link => links.find(({\n type\n }) => type === link));\n }\n\n },\n extends: '@bibjson/record+object'\n }\n },\n '@bibjson/record+object': {\n parse: json.record,\n parseType: {\n dataType: 'SimpleObject',\n propertyConstraint: [{\n props: 'title'\n }, {\n props: ['author', 'editor'],\n match: 'some',\n\n value(authors) {\n return Array.isArray(authors) && authors[0] && 'name' in authors[0];\n }\n\n }]\n }\n },\n '@bibjson/collection+object': {\n parse(collection) {\n return collection.records;\n },\n\n parseType: {\n dataType: 'SimpleObject',\n propertyConstraint: [{\n props: 'metadata',\n\n value(metadata) {\n return 'collection' in metadata;\n }\n\n }, {\n props: 'records',\n\n value(records) {\n return Array.isArray(records);\n }\n\n }]\n }\n }\n};\nplugins.add(ref, {\n input: formats\n});\nexport { ref, parsers, formats };","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"format\", {\n enumerable: true,\n get: function get() {\n return _output.default;\n }\n});\nObject.defineProperty(exports, \"parse\", {\n enumerable: true,\n get: function get() {\n return _input.default;\n }\n});\n\nvar _input = _interopRequireDefault(require(\"./input\"));\n\nvar _output = _interopRequireDefault(require(\"./output\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nconst monthMap = {\n jan: 1,\n feb: 2,\n mar: 3,\n apr: 4,\n may: 5,\n jun: 6,\n jul: 7,\n aug: 8,\n sep: 9,\n oct: 10,\n nov: 11,\n dec: 12\n};\nconst dateRangeDelimiters = / (?:to|[-/]) | ?(?:--|[–—]) ?/;\nconst dateRangePattern = /^(\\d{4}-\\d{2}-\\d{2})\\/(\\d{4}-\\d{2}-\\d{2})$/;\n\nfunction getMonth(monthName) {\n return monthMap[monthName.toLowerCase().slice(0, 3)];\n}\n\nfunction parseEpoch(date) {\n const epoch = new Date(date);\n\n if (typeof date === 'number' && !isNaN(epoch.valueOf())) {\n return [epoch.getFullYear(), epoch.getMonth() + 1, epoch.getDate()];\n } else {\n return null;\n }\n}\n\nconst parseIso8601 = function parseIso8601(date) {\n const pattern = /^(\\d{4}|[-+]\\d{6,})-(\\d{2})(?:-(\\d{2}))?/;\n\n if (typeof date !== 'string' || !pattern.test(date)) {\n return null;\n }\n\n const _date$match = date.match(pattern),\n _date$match2 = _slicedToArray(_date$match, 4),\n year = _date$match2[1],\n month = _date$match2[2],\n day = _date$match2[3];\n\n if (!+month) {\n return [year];\n } else if (!+day) {\n return [year, month];\n } else {\n return [year, month, day];\n }\n};\n\nconst parseRfc2822 = function parseRfc2822(date) {\n const pattern = /^(?:[a-z]{3},\\s*)?(\\d{1,2}) ([a-z]{3}) (\\d{4,})/i;\n\n if (typeof date !== 'string' || !pattern.test(date)) {\n return null;\n }\n\n let _date$match3 = date.match(pattern),\n _date$match4 = _slicedToArray(_date$match3, 4),\n day = _date$match4[1],\n month = _date$match4[2],\n year = _date$match4[3];\n\n month = getMonth(month);\n\n if (!month) {\n return null;\n }\n\n return [year, month, day];\n};\n\nfunction parseAmericanDay(date) {\n const pattern = /^(\\d{1,2})\\/(\\d{1,2})\\/(\\d{2}(?:\\d{2})?)/;\n\n if (typeof date !== 'string' || !pattern.test(date)) {\n return null;\n }\n\n const _date$match5 = date.match(pattern),\n _date$match6 = _slicedToArray(_date$match5, 4),\n month = _date$match6[1],\n day = _date$match6[2],\n year = _date$match6[3];\n\n const check = new Date(year, month, day);\n\n if (check.getMonth() === parseInt(month)) {\n return [year, month, day];\n } else {\n return null;\n }\n}\n\nfunction parseDay(date) {\n const pattern = /^(\\d{1,2})[ .\\-/](\\d{1,2}|[a-z]{3,10})[ .\\-/](-?\\d+)/i;\n const reversePattern = /^(-?\\d+)[ .\\-/](\\d{1,2}|[a-z]{3,10})[ .\\-/](\\d{1,2})/i;\n let year;\n let month;\n let day;\n\n if (typeof date !== 'string') {\n return null;\n } else if (pattern.test(date)) {\n var _date$match7 = date.match(pattern);\n\n var _date$match8 = _slicedToArray(_date$match7, 4);\n\n day = _date$match8[1];\n month = _date$match8[2];\n year = _date$match8[3];\n } else if (reversePattern.test(date)) {\n var _date$match9 = date.match(reversePattern);\n\n var _date$match10 = _slicedToArray(_date$match9, 4);\n\n year = _date$match10[1];\n month = _date$match10[2];\n day = _date$match10[3];\n } else {\n return null;\n }\n\n if (getMonth(month)) {\n month = getMonth(month);\n } else if (isNaN(month)) {\n return null;\n }\n\n return [year, month, day];\n}\n\nfunction parseMonth(date) {\n const pattern = /^([a-z]{3,10}|-?\\d+)[^\\w-]+([a-z]{3,10}|-?\\d+)$/i;\n\n if (typeof date === 'string' && pattern.test(date)) {\n const values = date.match(pattern).slice(1, 3);\n let month;\n\n if (getMonth(values[1])) {\n month = getMonth(values.pop());\n } else if (getMonth(values[0])) {\n month = getMonth(values.shift());\n } else if (values.some(isNaN) || values.every(value => +value < 0)) {\n return null;\n } else if (+values[0] < 0) {\n month = values.pop();\n } else if (+values[0] > +values[1] && +values[1] > 0) {\n month = values.pop();\n } else {\n month = values.shift();\n }\n\n const year = values.pop();\n return [year, month];\n } else {\n return null;\n }\n}\n\nfunction parseYear(date) {\n if (typeof date !== 'string') {\n return null;\n }\n\n const adBc = date.match(/^(\\d+) ?(a\\.?d\\.?|b\\.?c\\.?)$/i);\n\n if (adBc) {\n const _adBc$slice = adBc.slice(1),\n _adBc$slice2 = _slicedToArray(_adBc$slice, 2),\n date = _adBc$slice2[0],\n suffix = _adBc$slice2[1];\n\n return [date * (suffix.toLowerCase()[0] === 'a' ? 1 : -1)];\n } else if (/^-?\\d+$/.test(date)) {\n return [date];\n } else {\n return null;\n }\n}\n\nfunction parseDateParts(value) {\n const dateParts = parseEpoch(value) || parseIso8601(value) || parseRfc2822(value) || parseAmericanDay(value) || parseDay(value) || parseMonth(value) || parseYear(value);\n return dateParts && dateParts.map(string => parseInt(string));\n}\n\nfunction splitDateRange(range) {\n if (dateRangePattern.test(range)) {\n return range.match(dateRangePattern).slice(1, 3);\n } else {\n return range.split(dateRangeDelimiters);\n }\n}\n\nfunction parseDate(rangeStart, rangeEnd) {\n const range = [];\n const rangeStartAsRange = typeof rangeStart === 'string' && splitDateRange(rangeStart);\n\n if (rangeEnd) {\n range.push(rangeStart, rangeEnd);\n } else if (rangeStartAsRange && rangeStartAsRange.length === 2) {\n range.push(...rangeStartAsRange);\n } else {\n range.push(rangeStart);\n }\n\n const dateParts = range.map(parseDateParts);\n\n if (dateParts.filter(Boolean).length === range.length) {\n return {\n 'date-parts': dateParts\n };\n } else {\n return {\n raw: rangeEnd ? range.join('/') : rangeStart\n };\n }\n}\n\nvar _default = parseDate;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nfunction padStart(str, len, chr) {\n if (str.length >= len) {\n return str;\n }\n\n while (str.length < len) {\n str = chr + str;\n }\n\n return str.slice(-len);\n}\n\nconst getDate = function getDate(date, delimiter = '-') {\n if (!date['date-parts']) {\n return date.raw;\n }\n\n const dateParts = date['date-parts'][0].map(part => part.toString());\n\n switch (dateParts.length) {\n case 3:\n dateParts[2] = padStart(dateParts[2], 2, '0');\n\n case 2:\n dateParts[1] = padStart(dateParts[1], 2, '0');\n\n case 1:\n dateParts[0] = padStart(dateParts[0], 4, '0');\n break;\n }\n\n return dateParts.join(delimiter);\n};\n\nvar _default = getDate;\nexports.default = _default;","import _required from './required.json';\nimport _fieldTypes from './fieldTypes.json';\nimport unicode from './unicode.json';\nexport const required = _required;\nexport const fieldTypes = _fieldTypes;\nexport const diacritics = unicode.diacritics;\nexport const commands = unicode.commands;\nexport const defaultStrings = {\n jan: '01',\n feb: '02',\n mar: '03',\n apr: '04',\n may: '05',\n jun: '06',\n jul: '07',\n aug: '08',\n sep: '09',\n oct: '10',\n nov: '11',\n dec: '12',\n acmcs: 'ACM Computing Surveys',\n acta: 'Acta Informatica',\n cacm: 'Communications of the ACM',\n ibmjrd: 'IBM Journal of Research and Development',\n ibmsj: 'IBM Systems Journal',\n ieeese: 'IEEE Transactions on Software Engineering',\n ieeetc: 'IEEE Transactions on Computers',\n ieeetcad: 'IEEE Transactions on Computer-Aided Design of Integrated Circuits',\n ipl: 'Information Processing Letters',\n jacm: 'Journal of the ACM',\n jcss: 'Journal of Computer and System Sciences',\n scp: 'Science of Computer Programming',\n sicomp: 'SIAM Journal on Computing',\n tocs: 'ACM Transactions on Computer Systems',\n tods: 'ACM Transactions on Database Systems',\n tog: 'ACM Transactions on Graphics',\n toms: 'ACM Transactions on Mathematical Software',\n toois: 'ACM Transactions on Office Information Systems',\n toplas: 'ACM Transactions on Programming Languages and Systems',\n tcs: 'Theoretical Computer Science'\n};\nexport const formattingEnvs = {\n it: 'italics',\n itshape: 'italics',\n sl: 'italics',\n slshape: 'italics',\n em: 'italics',\n bf: 'bold',\n bfseries: 'bold',\n sc: 'smallcaps',\n scshape: 'smallcaps',\n rm: undefined,\n sf: undefined,\n tt: undefined\n};\nexport const formattingCommands = {\n textit: 'italics',\n textsl: 'italics',\n emph: 'italics',\n mkbibitalic: 'italics',\n mkbibemph: 'italics',\n textbf: 'bold',\n strong: 'bold',\n mkbibbold: 'bold',\n textsc: 'smallcaps',\n textsuperscript: 'superscript',\n textsubscript: 'subscript',\n enquote: 'quotes',\n mkbibquote: 'quotes',\n textmd: undefined,\n textrm: undefined,\n textsf: undefined,\n texttt: undefined,\n textup: undefined\n};\nexport const formatting = {\n italics: ['', ''],\n bold: ['', ''],\n superscript: ['', ''],\n subscript: ['', ''],\n smallcaps: ['', ''],\n nocase: ['', ''],\n quotes: ['\\u201C', '\\u201D']\n};\nexport const argumentCommands = {\n ElsevierGlyph(glyph) {\n return String.fromCharCode(parseInt(glyph, 16));\n },\n\n href(url, text) {\n return url;\n },\n\n url(url) {\n return url;\n }\n\n};\nexport const ligaturePattern = /---?|''|``|~/g;\nexport const ligatures = {\n '--': '\\u2013',\n '---': '\\u2014',\n '``': '\\u201C',\n \"''\": '\\u201D',\n '~': '\\u00A0'\n};\nexport const mathScriptFormatting = {\n '^': 'superscript',\n sp: 'superscript',\n _: 'subscript',\n sb: 'subscript',\n mathrm: undefined\n};\nexport const mathScripts = {\n '^': {\n '0': '\\u2070',\n '1': '\\u00B9',\n '2': '\\u00B2',\n '3': '\\u00B3',\n '4': '\\u2074',\n '5': '\\u2075',\n '6': '\\u2076',\n '7': '\\u2077',\n '8': '\\u2078',\n '9': '\\u2079',\n '+': '\\u207A',\n '-': '\\u207B',\n '=': '\\u207C',\n '(': '\\u207D',\n ')': '\\u207E',\n 'i': '\\u2071',\n 'n': '\\u207F'\n },\n '_': {\n '0': '\\u2080',\n '1': '\\u2081',\n '2': '\\u2082',\n '3': '\\u2083',\n '4': '\\u2084',\n '5': '\\u2085',\n '6': '\\u2086',\n '7': '\\u2087',\n '8': '\\u2088',\n '9': '\\u2089',\n '+': '\\u208A',\n '-': '\\u208B',\n '=': '\\u208C',\n '(': '\\u208D',\n ')': '\\u208E',\n 'a': '\\u2090',\n 'e': '\\u2091',\n 'o': '\\u2092',\n 'x': '\\u2093',\n '\\u0259': '\\u2094',\n 'h': '\\u2095',\n 'k': '\\u2096',\n 'l': '\\u2097',\n 'm': '\\u2098',\n 'n': '\\u2099',\n 's': '\\u209A',\n 'p': '\\u209B',\n 't': '\\u209C'\n }\n};\nexport const sentenceCaseLanguages = ['american', 'british', 'canadian', 'english', 'australian', 'newzealand', 'usenglish', 'ukenglish', 'en', 'eng', 'en-au', 'en-bz', 'en-ca', 'en-cb', 'en-gb', 'en-ie', 'en-jm', 'en-nz', 'en-ph', 'en-tt', 'en-us', 'en-za', 'en-zw', 'anglais'];","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { util, logger } from '@citation-js/core';\nimport moo from 'moo';\nimport { defaultStrings } from './constants.js';\nconst identifier = /[a-zA-Z_][a-zA-Z0-9_:-]*/;\nconst whitespace = {\n comment: /%.*/,\n whitespace: {\n match: /\\s+/,\n lineBreaks: true\n }\n};\nconst lexer = moo.states({\n main: {\n junk: {\n match: /@[cC][oO][mM][mM][eE][nN][tT].+|[^@]+/,\n lineBreaks: true\n },\n at: {\n match: '@',\n push: 'entry'\n }\n },\n entry: _objectSpread(_objectSpread({}, whitespace), {}, {\n otherEntryType: {\n match: /[sS][tT][rR][iI][nN][gG]|[pP][rR][eE][aA][mM][bB][lL][eE]/,\n next: 'otherEntryContents'\n },\n dataEntryType: {\n match: identifier,\n next: 'dataEntryContents'\n }\n }),\n otherEntryContents: _objectSpread(_objectSpread({}, whitespace), {}, {\n lbrace: {\n match: /[{(]/,\n next: 'fields'\n }\n }),\n dataEntryContents: _objectSpread(_objectSpread({}, whitespace), {}, {\n lbrace: {\n match: /[{(]/,\n next: 'dataEntryContents'\n },\n label: /[^,\\s]+/,\n comma: {\n match: ',',\n next: 'fields'\n }\n }),\n fields: _objectSpread(_objectSpread({}, whitespace), {}, {\n identifier,\n number: /-?\\d+/,\n hash: '#',\n equals: '=',\n comma: ',',\n quote: {\n match: '\"',\n push: 'quotedLiteral'\n },\n lbrace: {\n match: '{',\n push: 'bracedLiteral'\n },\n rbrace: {\n match: /[})]/,\n pop: true\n }\n }),\n quotedLiteral: {\n lbrace: {\n match: '{',\n push: 'bracedLiteral'\n },\n quote: {\n match: '\"',\n pop: true\n },\n text: {\n match: /(?:\\\\[\\\\{]|[^{\"])+/,\n lineBreaks: true\n }\n },\n bracedLiteral: {\n lbrace: {\n match: '{',\n push: 'bracedLiteral'\n },\n rbrace: {\n match: '}',\n pop: true\n },\n text: {\n match: /(?:\\\\[\\\\{}]|[^{}])+/,\n lineBreaks: true\n }\n }\n});\nconst delimiters = {\n '(': ')',\n '{': '}'\n};\nexport const bibtexGrammar = new util.Grammar({\n Main() {\n const entries = [];\n\n while (true) {\n while (this.matchToken('junk')) {\n this.consumeToken('junk');\n }\n\n if (this.matchEndOfFile()) {\n break;\n }\n\n entries.push(this.consumeRule('Entry'));\n }\n\n return entries.filter(Boolean);\n },\n\n _() {\n let oldToken;\n\n while (oldToken !== this.token) {\n oldToken = this.token;\n this.consumeToken('whitespace', true);\n this.consumeToken('comment', true);\n }\n },\n\n Entry() {\n this.consumeToken('at');\n this.consumeRule('_');\n const type = (this.matchToken('otherEntryType') ? this.consumeToken('otherEntryType') : this.consumeToken('dataEntryType')).value.toLowerCase();\n this.consumeRule('_');\n const openBrace = this.consumeToken('lbrace').value;\n this.consumeRule('_');\n let result;\n\n if (type === 'string') {\n const [key, value] = this.consumeRule('Field');\n this.state.strings[key] = value;\n } else if (type === 'preamble') {\n this.consumeRule('Expression');\n } else {\n const label = this.consumeToken('label').value;\n this.consumeRule('_');\n this.consumeToken('comma');\n this.consumeRule('_');\n const properties = this.consumeRule('EntryBody');\n result = {\n type,\n label,\n properties\n };\n }\n\n this.consumeRule('_');\n const closeBrace = this.consumeToken('rbrace').value;\n\n if (closeBrace !== delimiters[openBrace]) {\n logger.warn('[plugin-bibtex]', `entry started with \"${openBrace}\", but ends with \"${closeBrace}\"`);\n }\n\n return result;\n },\n\n EntryBody() {\n const properties = {};\n\n while (this.matchToken('identifier')) {\n const [field, value] = this.consumeRule('Field');\n properties[field] = value;\n this.consumeRule('_');\n\n if (this.consumeToken('comma', true)) {\n this.consumeRule('_');\n } else {\n break;\n }\n }\n\n return properties;\n },\n\n Field() {\n const field = this.consumeToken('identifier').value.toLowerCase();\n this.consumeRule('_');\n this.consumeToken('equals');\n this.consumeRule('_');\n const value = this.consumeRule('Expression');\n return [field, value];\n },\n\n Expression() {\n let output = this.consumeRule('ExpressionPart');\n this.consumeRule('_');\n\n while (this.matchToken('hash')) {\n this.consumeToken('hash');\n this.consumeRule('_');\n output += this.consumeRule('ExpressionPart').toString();\n this.consumeRule('_');\n }\n\n return output;\n },\n\n ExpressionPart() {\n if (this.matchToken('identifier')) {\n return this.state.strings[this.consumeToken('identifier').value.toLowerCase()] || '';\n } else if (this.matchToken('number')) {\n return parseInt(this.consumeToken('number'));\n } else if (this.matchToken('quote')) {\n return this.consumeRule('QuoteString');\n } else {\n return this.consumeRule('BracketString');\n }\n },\n\n QuoteString() {\n let output = '';\n this.consumeToken('quote');\n\n while (!this.matchToken('quote')) {\n output += this.consumeRule('Text');\n }\n\n this.consumeToken('quote');\n return output;\n },\n\n BracketString() {\n let output = '';\n this.consumeToken('lbrace');\n\n while (!this.matchToken('rbrace')) {\n output += this.consumeRule('Text');\n }\n\n this.consumeToken('rbrace');\n return output;\n },\n\n Text() {\n if (this.matchToken('lbrace')) {\n return `{${this.consumeRule('BracketString')}}`;\n } else {\n return this.consumeToken('text').value;\n }\n }\n\n}, {\n strings: defaultStrings\n});\nexport function parse(text) {\n return bibtexGrammar.parse(lexer.reset(text));\n}","const bibTxtRegex = {\n splitEntries: /\\n\\s*(?=\\[)/g,\n parseEntry: /^\\[(.+?)\\]\\s*(?:\\n([\\s\\S]+))?$/,\n splitPairs: /((?=.)\\s)*\\n\\s*/g,\n splitPair: /:(.*)/\n};\n\nconst parseBibTxtEntry = entry => {\n const [, label, pairs] = entry.match(bibTxtRegex.parseEntry) || [];\n\n if (!label || !pairs) {\n return {};\n } else {\n const out = {\n type: 'book',\n label,\n properties: {}\n };\n pairs.trim().split(bibTxtRegex.splitPairs).filter(v => v).forEach(pair => {\n let [key, value] = pair.split(bibTxtRegex.splitPair);\n\n if (value) {\n key = key.trim();\n value = value.trim();\n\n if (key === 'type') {\n out.type = value;\n } else {\n out.properties[key] = value;\n }\n }\n });\n return out;\n }\n};\n\nconst parseBibTxt = src => src.trim().split(bibTxtRegex.splitEntries).map(parseBibTxtEntry);\n\nexport { parseBibTxt as parse, parseBibTxt as text, parseBibTxtEntry as textEntry };","import biblatex from './mapping/biblatexTypes.json';\nimport bibtex from './mapping/bibtexTypes.json';\nimport * as constants from './input/constants.js';\nexport default {\n constants,\n types: {\n biblatex,\n bibtex\n },\n parse: {\n biblatex: true,\n strict: false,\n sentenceCase: 'never'\n },\n format: {\n useIdAsLabel: false\n }\n};","import { util } from '@citation-js/core';\nimport config from '../config.js';\nconst stopWords = new Set(['the', 'a', 'an']);\nconst unsafeChars = /(?:<\\/?.*?>|[\\u0020-\\u002F\\u003A-\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F])+/g;\nconst unicode = /[^\\u0020-\\u007F]+/g;\n\nfunction firstWord(text) {\n if (!text) {\n return '';\n } else {\n return text.normalize('NFKD').replace(unicode, '').split(unsafeChars).find(word => word.length && !stopWords.has(word.toLowerCase()));\n }\n}\n\nconst name = new util.Translator([{\n source: 'given',\n target: 'given'\n}, {\n source: 'family',\n target: 'family'\n}, {\n source: 'suffix',\n target: 'suffix'\n}, {\n source: 'prefix',\n target: 'non-dropping-particle'\n}, {\n source: 'family',\n target: 'literal',\n when: {\n source: false,\n target: {\n family: false,\n given: false\n }\n }\n}]);\nconst months = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'];\nexport const TYPE = 'BibTeX type';\nexport const LABEL = 'BibTeX label';\nexport const MONTHS = {\n jan: 1,\n feb: 2,\n mar: 3,\n apr: 4,\n may: 5,\n jun: 6,\n jul: 7,\n aug: 8,\n sep: 9,\n oct: 10,\n nov: 11,\n dec: 12,\n january: 1,\n february: 2,\n march: 3,\n april: 4,\n may: 5,\n june: 6,\n july: 7,\n august: 8,\n september: 9,\n october: 10,\n november: 11,\n december: 12\n};\nexport const TYPE_KEYS = {\n bathesis: 'Bachelor\\'s thesis',\n mathesis: 'Master\\'s thesis',\n phdthesis: 'PhD thesis',\n candthesis: 'Candidate thesis',\n techreport: 'technical report',\n resreport: 'research report',\n software: 'computer software',\n datacd: 'data cd',\n audiocd: 'audio cd',\n patent: 'patent',\n patentde: 'German patent',\n patenteu: 'European patent',\n patentfr: 'French patent',\n patentuk: 'British patent',\n patentus: 'U.S. patent',\n patreq: 'patent request',\n patreqde: 'German patent request',\n patreqeu: 'European patent request',\n patreqfr: 'French patent request',\n patrequk: 'British patent request',\n patrequs: 'U.S. patent request'\n};\nexport const STANDARD_NUMBERS_PATTERN = /(^(?:ISAN )?(?:[0-9a-f]{4}-){4}[0-9a-z](?:-(?:[0-9a-f]{4}-){2}[0-9a-z])?$)|(^(?:979-?0-?|M-?)(?:\\d{9}|(?=[\\d-]{11}$)\\d+-\\d+-\\d)$)|(^ISRN .{1,36}$)|(^(?:ISWC )?T-?\\d{9}-?\\d$)/i;\nexport function parseDate(date) {\n const parts = date.split('T')[0].replace(/[?~%]$/, '').split('-');\n const year = +parts[0].replace(/^Y(?=-?\\d{4}\\d+)/, '').replace(/X/g, '0');\n const month = +parts[1];\n const day = +parts[2];\n\n if (!month || month > 20) {\n return [year];\n } else if (!day) {\n return [year, month];\n } else {\n return [year, month, day];\n }\n}\nexport function parseMonth(value) {\n if (value == null) {\n return [];\n }\n\n if (+value) {\n return [parseInt(value, 10)];\n }\n\n value = value.trim().toLowerCase();\n\n if (value in MONTHS) {\n return [MONTHS[value]];\n }\n\n const parts = value.split(/\\s+/);\n let month;\n let day;\n\n if (parts[0] in MONTHS) {\n month = MONTHS[parts[0]];\n day = parseInt(parts[1]);\n } else if (parts[1] in MONTHS) {\n month = MONTHS[parts[1]];\n day = parseInt(parts[0]);\n }\n\n return day ? [month, day] : month ? [month] : [];\n}\nexport function formatLabel(author, issued, suffix, title) {\n let label = '';\n\n if (author && author[0]) {\n label += firstWord(author[0].family || author[0].literal);\n }\n\n if (issued && issued['date-parts'] && issued['date-parts'][0]) {\n label += issued['date-parts'][0][0];\n }\n\n if (suffix) {\n label += suffix;\n } else if (title) {\n label += firstWord(title);\n }\n\n return label;\n}\nexport const Converters = {\n PICK: {\n toTarget(...args) {\n return args.find(Boolean);\n },\n\n toSource(value) {\n return [value];\n }\n\n },\n DATE: {\n toTarget(date) {\n const parts = date.split('/').map(part => part && part !== '..' ? parseDate(part) : undefined);\n return isNaN(parts[0][0]) ? {\n literal: date\n } : {\n 'date-parts': parts\n };\n },\n\n toSource(date) {\n if ('date-parts' in date) {\n return date['date-parts'].map(datePart => datePart.map(datePart => datePart.toString().padStart(2, '0')).join('-')).join('/');\n }\n }\n\n },\n YEAR_MONTH: {\n toTarget(year, month, day) {\n if (isNaN(+year)) {\n return {\n literal: year\n };\n } else if (!isNaN(+day) && !isNaN(+month)) {\n return {\n 'date-parts': [[+year, +month, +day]]\n };\n } else {\n return {\n 'date-parts': [[+year, ...parseMonth(month)]]\n };\n }\n },\n\n toSource(date) {\n if ('date-parts' in date) {\n const [year, month, day] = date['date-parts'][0];\n return [year.toString(), month ? day ? `${months[month - 1]} ${day}` : month : undefined];\n } else {\n return [];\n }\n }\n\n },\n EPRINT: {\n toTarget(id, type) {\n if (type === 'pubmed') {\n return id;\n }\n },\n\n toSource(id) {\n return [id, 'pubmed'];\n }\n\n },\n HOW_PUBLISHED: {\n toTarget(howPublished) {\n if (howPublished.startsWith('http')) {\n return howPublished;\n }\n }\n\n },\n KEYWORDS: {\n toTarget(list) {\n return list.join(',');\n },\n\n toSource(list) {\n return list.split(',');\n }\n\n },\n LABEL: {\n toTarget(label) {\n return [label, label];\n },\n\n toSource(id, label, author, issued, suffix, title) {\n let safeId;\n\n if (id === null) {\n safeId = 'null';\n } else if (id === undefined) {\n safeId = 'undefined';\n } else {\n safeId = id.toString().replace(unsafeChars, '');\n }\n\n if (config.format.useIdAsLabel) {\n return safeId;\n }\n\n if (label && !unsafeChars.test(label)) {\n return label;\n } else {\n return formatLabel(author, issued, suffix, title) || safeId;\n }\n }\n\n },\n NAMES: {\n toTarget(list) {\n return list.map(name.convertToTarget);\n },\n\n toSource(list) {\n return list.map(name.convertToSource);\n }\n\n },\n STANDARD_NUMBERS: {\n toTarget(...args) {\n return args.find(Boolean);\n },\n\n toSource(number) {\n const match = number.toString().match(STANDARD_NUMBERS_PATTERN);\n return match ? match.slice(1, 5) : [];\n }\n\n },\n STATUS: {\n toSource(state) {\n if (/^(inpreparation|submitted|forthcoming|inpress|prepublished)$/i.test(state)) {\n return state;\n }\n }\n\n },\n TITLE: {\n toTarget(title, subtitle, addon) {\n if (subtitle) {\n title += ': ' + subtitle;\n }\n\n return title;\n },\n\n toSource(title) {\n return [title];\n }\n\n }\n};","import { util } from '@citation-js/core';\nimport { format as formatDate } from '@citation-js/date';\nimport types from './biblatexTypes.json';\nimport { TYPE, LABEL, TYPE_KEYS, Converters } from './shared.js';\nconst nonSpec = [{\n source: 'note',\n target: 'accessed',\n when: {\n source: false,\n target: {\n note: false\n }\n },\n convert: {\n toSource(accessed) {\n return `[Online; accessed ${formatDate(accessed)}]`;\n }\n\n }\n}, {\n source: 'numpages',\n target: 'number-of-pages',\n when: {\n source: {\n pagetotal: false\n },\n target: false\n }\n}, {\n source: 'pmid',\n target: 'PMID',\n when: {\n source: {\n eprinttype(type) {\n return type !== 'pmid';\n },\n\n archiveprefix(type) {\n return type !== 'pmid';\n }\n\n },\n target: false\n }\n}, {\n source: 'pmcid',\n target: 'PMCID',\n when: {\n target: false\n }\n}];\nconst aliases = [{\n source: 'annote',\n target: 'annote',\n when: {\n source: {\n annotation: false\n },\n target: false\n }\n}, {\n source: 'address',\n target: 'publisher-place',\n convert: Converters.PICK,\n when: {\n source: {\n location: false\n },\n target: false\n }\n}, {\n source: ['eprint', 'archiveprefix'],\n target: 'PMID',\n convert: Converters.EPRINT,\n when: {\n source: {\n eprinttype: false\n },\n target: false\n }\n}, {\n source: 'journal',\n target: 'container-title',\n when: {\n source: {\n maintitle: false,\n booktitle: false,\n journaltitle: false\n },\n target: false\n }\n}, {\n source: 'school',\n target: 'publisher',\n convert: Converters.PICK,\n when: {\n source: {\n institution: false,\n organization: false,\n publisher: false\n },\n target: false\n }\n}];\nexport default new util.Translator([...aliases, ...nonSpec, {\n source: 'abstract',\n target: 'abstract'\n}, {\n source: 'urldate',\n target: 'accessed',\n convert: Converters.DATE\n}, {\n source: 'annotation',\n target: 'annote'\n}, {\n source: 'author',\n target: 'author',\n convert: Converters.NAMES\n}, {\n source: 'library',\n target: 'call-number'\n}, {\n source: 'chapter',\n target: 'chapter-number'\n}, {\n source: 'bookauthor',\n target: 'container-author',\n convert: Converters.NAMES\n}, {\n source: ['maintitle', 'mainsubtitle', 'maintitleaddon'],\n target: 'container-title',\n when: {\n source: true,\n target: {\n 'number-of-volumes': true\n }\n },\n convert: Converters.TITLE\n}, {\n source: ['booktitle', 'booksubtitle', 'booktitleaddon'],\n target: 'container-title',\n when: {\n source: {\n maintitle: false\n },\n target: {\n 'number-of-volumes': false,\n\n type(type) {\n return !type.startsWith('article');\n }\n\n }\n },\n convert: Converters.TITLE\n}, {\n source: ['journaltitle', 'journalsubtitle', 'journaltitleaddon'],\n target: 'container-title',\n when: {\n source: {\n [TYPE]: 'article'\n },\n target: {\n type: ['article', 'article-newspaper', 'article-journal', 'article-magazine']\n }\n },\n convert: Converters.TITLE\n}, {\n source: 'shortjournal',\n target: 'container-title-short',\n when: {\n source: {\n [TYPE]: 'article'\n },\n target: {\n type: ['article', 'article-newspaper', 'article-journal', 'article-magazine']\n }\n }\n}, {\n source: 'shortjournal',\n target: 'journalAbbreviation',\n when: {\n source: false,\n target: {\n 'container-title-short': false\n }\n }\n}, {\n source: 'number',\n target: 'collection-number',\n when: {\n source: {\n [TYPE]: ['book', 'mvbook', 'inbook', 'bookinbook', 'suppbook', 'collection', 'mvcollection', 'incollection', 'suppcollection', 'manual', 'suppperiodical', 'proceedings', 'mvproceedings', 'refererence']\n },\n target: {\n type: ['bill', 'book', 'broadcast', 'chapter', 'dataset', 'entry', 'entry-dictionary', 'entry-encyclopedia', 'figure', 'graphic', 'interview', 'legislation', 'legal_case', 'manuscript', 'map', 'motion_picture', 'musical_score', 'pamphlet', 'post', 'post-weblog', 'personal_communication', 'review', 'review-book', 'song', 'speech', 'thesis', 'treaty', 'webpage']\n }\n }\n}, {\n source: 'series',\n target: 'collection-title'\n}, {\n source: 'shortseries',\n target: 'collection-title-short'\n}, {\n source: 'doi',\n target: 'DOI'\n}, {\n source: 'edition',\n target: 'edition'\n}, {\n source: 'editor',\n target: 'editor',\n convert: Converters.NAMES\n}, {\n source: [TYPE, 'entrysubtype', 'type'],\n target: ['type', 'genre'],\n convert: {\n toTarget(type, subtype, typeKey) {\n if (!typeKey) {\n if (type === 'masterthesis') {\n typeKey = 'mathesis';\n }\n\n if (type === 'phdthesis') {\n typeKey = 'phdthesis';\n }\n\n if (type === 'techreport') {\n typeKey = 'techreport';\n }\n }\n\n return [types.source[type] || 'book', typeKey || subtype];\n },\n\n toSource(type, genre) {\n const sourceType = types.target[type] || 'misc';\n return genre in TYPE_KEYS ? [sourceType, undefined, genre] : [sourceType, genre];\n }\n\n }\n}, {\n source: TYPE,\n when: {\n target: {\n type: false\n }\n },\n convert: {\n toSource() {\n return 'misc';\n }\n\n }\n}, {\n source: 'eventdate',\n target: 'event-date',\n convert: Converters.DATE\n}, {\n source: 'venue',\n target: 'event-place'\n}, {\n source: 'eventtitle',\n target: 'event'\n}, {\n source: LABEL,\n target: ['id', 'citation-label', 'author', 'issued', 'year-suffix', 'title'],\n convert: Converters.LABEL\n}, {\n source: 'isbn',\n target: 'ISBN'\n}, {\n source: 'issn',\n target: 'ISSN'\n}, {\n source: 'issue',\n target: 'issue',\n when: {\n source: {\n number: false,\n [TYPE]: ['article', 'periodical']\n },\n target: {\n issue(issue) {\n return typeof issue === 'string' && !issue.match(/\\d+/);\n },\n\n type: ['article', 'article-journal', 'article-newspaper', 'article-magazine']\n }\n }\n}, {\n source: 'number',\n target: 'issue',\n when: {\n source: {\n [TYPE]: ['article', 'periodical', 'inproceedings']\n },\n target: {\n issue(issue) {\n return issue && (typeof issue === 'number' || issue.match(/\\d+/));\n },\n\n type: ['article', 'article-journal', 'article-newspaper', 'article-magazine', 'paper-conference']\n }\n }\n}, {\n source: 'date',\n target: 'issued',\n convert: Converters.DATE\n}, {\n source: ['year', 'month', 'day'],\n target: 'issued',\n convert: Converters.YEAR_MONTH,\n when: {\n source: {\n date: false\n },\n target: false\n }\n}, {\n source: 'location',\n target: 'jurisdiction',\n when: {\n source: {\n type: 'patent'\n },\n target: {\n type: 'patent'\n }\n }\n}, {\n source: 'keywords',\n target: 'keyword',\n convert: Converters.KEYWORDS\n}, {\n source: 'language',\n target: 'language',\n convert: Converters.PICK\n}, {\n source: 'note',\n target: 'note'\n}, {\n source: ['isan', 'ismn', 'isrn', 'iswc'],\n target: 'number',\n convert: Converters.STANDARD_NUMBERS,\n when: {\n source: {\n [TYPE](type) {\n return type !== 'patent';\n }\n\n },\n target: {\n type(type) {\n return type !== 'patent';\n }\n\n }\n }\n}, {\n source: 'number',\n target: 'number',\n when: {\n source: {\n [TYPE]: ['patent', 'report', 'techreport', 'legislation']\n },\n target: {\n type: ['patent', 'report', 'legislation']\n }\n }\n}, {\n source: 'origdate',\n target: 'original-date',\n convert: Converters.DATE\n}, {\n source: 'origlocation',\n target: 'original-publisher-place',\n convert: Converters.PICK\n}, {\n source: 'origpublisher',\n target: 'original-publisher',\n convert: Converters.PICK\n}, {\n source: 'origtitle',\n target: 'original-title'\n}, {\n source: ['pages', 'eid'],\n target: 'page',\n convert: {\n toTarget(pages, eid) {\n return eid ? eid.replace(/^e?/i, 'e') : pages.replace(/[–—]/, '-');\n },\n\n toSource(page) {\n return /^e/i.test(page) ? [page, page] : [page.replace('-', '--')];\n }\n\n }\n}, {\n source: 'pagetotal',\n target: 'number-of-pages'\n}, {\n source: ['eprint', 'eprinttype'],\n target: 'PMID',\n convert: Converters.EPRINT\n}, {\n source: 'location',\n target: 'publisher-place',\n convert: Converters.PICK\n}, {\n source: 'publisher',\n target: 'publisher',\n convert: Converters.PICK,\n when: {\n source: true,\n target: {\n type: ['article', 'article-journal', 'article-magazine', 'article-newspaper', 'bill', 'book', 'broadcast', 'chapter', 'dataset', 'entry', 'entry-dictionary', 'entry-encyclopedia', 'figure', 'graphic', 'interview', 'legal_case', 'legislation', 'manuscript', 'map', 'motion_picture', 'musical_score', 'pamphlet', 'paper-conference', 'patent', 'personal_communication', 'post', 'post-weblog', 'regulation', 'review', 'review-book', 'song', 'speech', 'treaty']\n }\n }\n}, {\n source: 'organization',\n target: 'publisher',\n convert: Converters.PICK,\n when: {\n source: {\n publisher: false\n },\n target: {\n type: 'webpage'\n }\n }\n}, {\n source: 'institution',\n target: 'publisher',\n convert: Converters.PICK,\n when: {\n source: {\n publisher: false,\n organization: false\n },\n target: {\n type: ['report', 'thesis']\n }\n }\n}, {\n source: 'howpublished',\n target: 'publisher',\n convert: Converters.PICK,\n when: {\n source: {\n publisher: false,\n organization: false,\n institution: false\n },\n target: {\n type: 'manuscript'\n }\n }\n}, {\n source: ['pages', 'bookpagination'],\n target: 'section',\n when: {\n source: {\n bookpagination: 'section'\n },\n target: {\n page: false\n }\n },\n convert: {\n toTarget(section) {\n return section;\n },\n\n toSource(section) {\n return [section, 'section'];\n }\n\n }\n}, {\n source: 'pubstate',\n target: 'status',\n convert: Converters.STATUS\n}, {\n source: 'shorttitle',\n target: 'title-short'\n}, {\n source: ['title', 'subtitle', 'titleaddon'],\n target: 'title',\n convert: Converters.TITLE\n}, {\n source: 'translator',\n target: 'translator',\n convert: Converters.NAMES\n}, {\n source: 'url',\n target: 'URL'\n}, {\n source: 'howpublished',\n target: 'URL',\n convert: Converters.HOW_PUBLISHED,\n when: {\n source: {\n url: false\n },\n target: false\n }\n}, {\n source: 'version',\n target: 'version'\n}, {\n source: 'volume',\n target: 'volume'\n}, {\n source: 'volumes',\n target: 'number-of-volumes'\n}]);","import { util } from '@citation-js/core';\nimport { format as formatDate } from '@citation-js/date';\nimport types from './bibtexTypes.json';\nimport { TYPE, LABEL, Converters } from './shared.js';\nexport default new util.Translator([{\n source: 'note',\n target: 'accessed',\n when: {\n source: false,\n target: {\n note: false\n }\n },\n convert: {\n toSource(accessed) {\n return `[Online; accessed ${formatDate(accessed)}]`;\n }\n\n }\n}, {\n source: 'annote',\n target: 'annote'\n}, {\n source: 'address',\n target: 'publisher-place',\n convert: Converters.PICK\n}, {\n source: 'author',\n target: 'author',\n convert: Converters.NAMES\n}, {\n source: 'chapter',\n target: 'chapter-number'\n}, {\n source: 'number',\n target: 'collection-number',\n when: {\n source: {\n [TYPE]: ['book', 'mvbook', 'inbook', 'collection', 'mvcollection', 'incollection', 'suppcollection', 'manual', 'suppperiodical', 'proceedings', 'mvproceedings', 'refererence']\n },\n target: {\n type: ['bill', 'book', 'broadcast', 'chapter', 'dataset', 'entry', 'entry-dictionary', 'entry-encyclopedia', 'figure', 'graphic', 'interview', 'legislation', 'legal_case', 'manuscript', 'map', 'motion_picture', 'musical_score', 'pamphlet', 'post', 'post-weblog', 'personal_communication', 'review', 'review-book', 'song', 'speech', 'thesis', 'treaty', 'webpage']\n }\n }\n}, {\n source: 'series',\n target: 'collection-title'\n}, {\n source: 'booktitle',\n target: 'container-title',\n when: {\n target: {\n type: ['chapter', 'paper-conference']\n }\n }\n}, {\n source: 'journal',\n target: 'container-title',\n when: {\n source: {\n [TYPE]: 'article'\n },\n target: {\n type: ['article', 'article-newspaper', 'article-journal', 'article-magazine']\n }\n }\n}, {\n source: 'edition',\n target: 'edition'\n}, {\n source: 'editor',\n target: 'editor',\n convert: Converters.NAMES\n}, {\n source: LABEL,\n target: ['id', 'citation-label', 'author', 'issued', 'year-suffix', 'title'],\n convert: Converters.LABEL\n}, {\n source: 'number',\n target: 'issue',\n when: {\n source: {\n [TYPE]: ['article', 'periodical', 'inproceedings']\n },\n target: {\n issue(issue) {\n return typeof issue === 'number' || typeof issue === 'string' && issue.match(/\\d+/);\n },\n\n type: ['article', 'article-journal', 'article-newspaper', 'article-magazine', 'paper-conference']\n }\n }\n}, {\n source: ['year', 'month', 'day'],\n target: 'issued',\n convert: Converters.YEAR_MONTH\n}, {\n source: 'note',\n target: 'note'\n}, {\n source: 'number',\n target: 'number',\n when: {\n source: {\n [TYPE]: ['patent', 'report', 'techreport']\n },\n target: {\n type: ['patent', 'report']\n }\n }\n}, {\n source: 'pages',\n target: 'page',\n convert: {\n toTarget(text) {\n return text.replace(/[–—]/, '-');\n },\n\n toSource(text) {\n return text.replace('-', '--');\n }\n\n }\n}, {\n source: 'publisher',\n target: 'publisher',\n convert: Converters.PICK,\n when: {\n target: {\n type: ['article', 'article-journal', 'article-magazine', 'article-newspaper', 'bill', 'book', 'broadcast', 'chapter', 'dataset', 'entry', 'entry-dictionary', 'entry-encyclopedia', 'figure', 'graphic', 'interview', 'legal_case', 'legislation', 'map', 'motion_picture', 'musical_score', 'pamphlet', 'patent', 'personal_communication', 'post', 'post-weblog', 'review', 'review-book', 'song', 'speech', 'treaty', 'webpage']\n }\n }\n}, {\n source: 'organization',\n target: 'publisher',\n convert: Converters.PICK,\n when: {\n source: {\n publisher: false\n },\n target: {\n type: 'paper-conference'\n }\n }\n}, {\n source: 'institution',\n target: 'publisher',\n convert: Converters.PICK,\n when: {\n source: {\n publisher: false,\n organization: false\n },\n target: {\n type: 'report'\n }\n }\n}, {\n source: 'school',\n target: 'publisher',\n convert: Converters.PICK,\n when: {\n source: {\n institution: false,\n organization: false,\n publisher: false\n },\n target: {\n type: 'thesis'\n }\n }\n}, {\n source: 'howpublished',\n target: 'publisher',\n convert: Converters.PICK,\n when: {\n source: {\n publisher: false,\n organization: false,\n institution: false,\n school: false\n },\n target: {\n type: 'manuscript'\n }\n }\n}, {\n source: 'title',\n target: 'title'\n}, {\n source: [TYPE, 'type'],\n target: ['type', 'genre'],\n convert: {\n toTarget(sourceType, subType) {\n const type = types.source[sourceType] || 'book';\n\n if (subType) {\n return [type, subType];\n } else if (sourceType === 'mastersthesis') {\n return [type, 'Master\\'s thesis'];\n } else if (sourceType === 'phdthesis') {\n return [type, 'PhD thesis'];\n } else {\n return [type];\n }\n },\n\n toSource(targetType, genre) {\n const type = types.target[targetType] || 'misc';\n\n if (/^(master'?s|diploma) thesis$/i.test(genre)) {\n return ['mastersthesis'];\n } else if (/^(phd|doctoral) thesis$/i.test(genre)) {\n return ['phdthesis'];\n } else {\n return [type, genre];\n }\n }\n\n }\n}, {\n source: TYPE,\n when: {\n target: {\n type: false\n }\n },\n convert: {\n toSource() {\n return 'misc';\n }\n\n }\n}, {\n source: 'howpublished',\n target: 'URL',\n convert: Converters.HOW_PUBLISHED,\n when: {\n target: {\n publisher: false\n }\n }\n}, {\n source: 'volume',\n target: 'volume'\n}]);","function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { TYPE, LABEL } from './shared.js';\nimport biblatex from './biblatex.js';\nimport bibtex from './bibtex.js';\n\nfunction crossref(entry, registry) {\n if (entry.crossref in registry) {\n const parent = registry[entry.crossref].properties;\n\n if (parent === entry) {\n return entry;\n }\n\n return Object.assign({}, crossref(parent, registry), entry);\n }\n\n return entry;\n}\n\nfunction _parse(input, spec) {\n const registry = {};\n\n for (const entry of input) {\n registry[entry.label] = entry;\n }\n\n return input.map(({\n type,\n label,\n properties\n }) => spec.convertToTarget(_objectSpread({\n [TYPE]: type,\n [LABEL]: label\n }, crossref(properties, registry))));\n}\n\nfunction _format(input, spec) {\n return input.map(entry => {\n const _spec$convertToSource = spec.convertToSource(entry),\n {\n [TYPE]: type,\n [LABEL]: label\n } = _spec$convertToSource,\n properties = _objectWithoutProperties(_spec$convertToSource, [TYPE, LABEL].map(_toPropertyKey));\n\n return {\n type,\n label,\n properties\n };\n });\n}\n\nexport function parseBibtex(input) {\n return _parse(input, bibtex);\n}\nexport function formatBibtex(input) {\n return _format(input, bibtex);\n}\nexport function parse(input) {\n return _parse(input, biblatex);\n}\nexport function format(input) {\n return _format(input, biblatex);\n}","export function getStringCase(string) {\n const a = string.toUpperCase();\n const b = string.toLowerCase();\n\n for (let i = 0; i < string.length; i++) {\n if (a[i] !== b[i]) {\n return a[i] === string[i];\n }\n }\n\n return null;\n}\nexport function formatNameParts(parts) {\n if (parts.length === 0) {\n return undefined;\n }\n\n let piece = '';\n\n while (parts.length > 1) {\n const {\n value,\n hyphenated\n } = parts.shift();\n piece += value + (hyphenated ? '-' : ' ');\n }\n\n const output = piece + parts[0].value;\n return output[0] && output;\n}\nexport function orderNameParts(parts, orderGiven = true) {\n const given = [];\n const undecided = [];\n\n if (orderGiven) {\n while (parts.length > 1 && parts[0].upperCase !== false) {\n given.push(...undecided);\n undecided.length = 0;\n\n while (parts.length > 1 && parts[0].upperCase !== false && !parts[0].hyphenated) {\n given.push(parts.shift());\n }\n\n while (parts.length > 0 && parts[0].upperCase !== false && parts[0].hyphenated) {\n undecided.push(parts.shift());\n }\n }\n }\n\n const prefix = [];\n const family = [];\n\n while (parts.length > 1) {\n prefix.push(...family);\n family.length = 0;\n\n while (parts.length > 1 && parts[0].upperCase === false) {\n prefix.push(parts.shift());\n }\n\n while (parts.length > 0 && parts[0].upperCase !== false) {\n family.push(parts.shift());\n }\n }\n\n if (undecided.length) {\n family.unshift(...undecided);\n }\n\n if (parts.length) {\n family.push(parts[0]);\n }\n\n return [formatNameParts(given), formatNameParts(prefix), formatNameParts(family)];\n}\nexport function orderNamePieces(pieces) {\n if (pieces[0][0].label) {\n const name = {};\n\n for (const [{\n value,\n label\n }] of pieces) {\n name[label] = value;\n }\n\n return name;\n }\n\n const name = {};\n const [given, prefix, family] = orderNameParts(pieces[0], pieces.length === 1);\n\n if (family) {\n name.family = family;\n }\n\n if (prefix) {\n name.prefix = prefix;\n }\n\n if (pieces.length === 3) {\n name.given = formatNameParts(pieces[2]);\n name.suffix = formatNameParts(pieces[1]);\n } else if (pieces.length === 2) {\n name.given = formatNameParts(pieces[1]);\n } else if (given) {\n name.given = given;\n }\n\n return name;\n}","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { util } from '@citation-js/core';\nimport moo from 'moo';\nimport config from '../config.js';\nimport * as constants from './constants.js';\nimport { orderNamePieces, formatNameParts, getStringCase } from './name.js';\nconst commandKeywords = {\n '\\\\begin': 'commandBegin',\n '\\\\end': 'commandEnd'\n};\nconst text = {\n command: {\n match: /\\\\(?:[a-zA-Z]+|.) */,\n type: command => commandKeywords[command],\n value: s => s.slice(1).trim()\n },\n lbrace: {\n match: '{',\n push: 'bracedLiteral'\n },\n mathShift: {\n match: '$',\n push: 'mathLiteral'\n },\n whitespace: {\n match: /[\\s]+|~/,\n lineBreaks: true,\n\n value(token) {\n return token === '~' ? '\\xa0' : ' ';\n }\n\n }\n};\nconst lexer = moo.states({\n stringLiteral: _objectSpread(_objectSpread({}, text), {}, {\n text: /[^{$}\\s~\\\\]+/\n }),\n namesLiteral: _objectSpread(_objectSpread({\n and: /\\s+and\\s+/,\n comma: ',',\n hyphen: '-',\n equals: '='\n }, text), {}, {\n text: /[^{$}\\s~\\\\,=-]+/\n }),\n listLiteral: _objectSpread(_objectSpread({\n and: /\\s+and\\s+/\n }, text), {}, {\n text: /[^{$}\\s~\\\\]+/\n }),\n separatedLiteral: _objectSpread(_objectSpread({\n comma: ','\n }, text), {}, {\n text: /[^{$}\\s~\\\\,]+/\n }),\n bracedLiteral: _objectSpread(_objectSpread({}, text), {}, {\n rbrace: {\n match: '}',\n pop: true\n },\n text: /[^{$}\\s~\\\\]+/\n }),\n mathLiteral: _objectSpread(_objectSpread({}, text), {}, {\n mathShift: {\n match: '$',\n pop: true\n },\n script: /[\\^_]/,\n text: /[^{$}\\s~\\\\^_]+/\n })\n});\n\nfunction flattenConsString(string) {\n string[0];\n return string;\n}\n\nfunction applyFormatting(text, format) {\n if (format in constants.formatting) {\n return text && constants.formatting[format].join(text);\n } else {\n return text;\n }\n}\n\nexport const valueGrammar = new util.Grammar({\n String() {\n let output = '';\n\n while (!this.matchEndOfFile()) {\n output += this.consumeRule('Text');\n }\n\n return flattenConsString(output);\n },\n\n StringNames() {\n const list = [];\n\n while (true) {\n this.consumeToken('whitespace', true);\n list.push(this.consumeRule('Name'));\n this.consumeToken('whitespace', true);\n\n if (this.matchEndOfFile()) {\n return list;\n } else {\n this.consumeToken('and');\n }\n }\n },\n\n Name() {\n const pieces = [];\n\n while (true) {\n pieces.push(this.consumeRule('NamePiece'));\n\n if (this.matchEndOfFile() || this.matchToken('and')) {\n return orderNamePieces(pieces);\n } else {\n this.consumeToken('comma');\n this.consumeToken('whitespace', true);\n }\n }\n },\n\n NamePiece() {\n const parts = [];\n\n while (true) {\n const part = this.consumeRule('NameToken');\n\n if (part.label) {\n part.label = formatNameParts([...parts, {\n value: part.label\n }]);\n return [part];\n }\n\n parts.push(part);\n\n if (this.matchEndOfFile() || this.matchToken('and') || this.matchToken('comma')) {\n return parts;\n } else {\n while (this.matchToken('hyphen') || this.matchToken('whitespace')) {\n this.consumeToken();\n }\n }\n }\n },\n\n NameToken() {\n let upperCase = null;\n let value = '';\n\n while (true) {\n if (upperCase === null && this.matchToken('text')) {\n const text = this.consumeToken().value;\n value += text;\n upperCase = getStringCase(text);\n } else if (this.matchEndOfFile() || this.matchToken('and') || this.matchToken('comma') || this.matchToken('whitespace')) {\n return {\n value,\n upperCase\n };\n } else if (this.matchToken('hyphen')) {\n return {\n value,\n upperCase,\n hyphenated: true\n };\n } else if (this.matchToken('equals')) {\n this.consumeToken('equals');\n const text = this.consumeRule('NamePiece');\n\n if (text[0].label) {\n value += '=' + text[0].label;\n }\n\n return {\n value: formatNameParts(text),\n label: value\n };\n } else {\n value += this.consumeRule('Text');\n }\n }\n },\n\n StringList() {\n const list = [];\n\n while (!this.matchEndOfFile()) {\n let output = '';\n\n while (!this.matchEndOfFile() && !this.matchToken('and')) {\n output += this.consumeRule('Text');\n }\n\n list.push(flattenConsString(output));\n this.consumeToken('and', true);\n }\n\n return list.length === 1 ? list[0] : list;\n },\n\n StringSeparated() {\n const list = [];\n\n while (!this.matchEndOfFile()) {\n let output = '';\n\n while (!this.matchEndOfFile() && !this.matchToken('comma')) {\n output += this.consumeRule('Text');\n }\n\n list.push(output.trim());\n this.consumeToken('comma', true);\n this.consumeToken('whitespace', true);\n }\n\n return list;\n },\n\n StringVerbatim() {\n let output = '';\n\n while (!this.matchEndOfFile()) {\n output += this.consumeToken().text;\n }\n\n return flattenConsString(output);\n },\n\n StringUri() {\n const uri = this.consumeRule('StringVerbatim');\n\n try {\n if (decodeURI(uri) === uri) {\n return encodeURI(uri);\n } else {\n return uri;\n }\n } catch (e) {\n return encodeURI(uri);\n }\n },\n\n StringTitleCase() {\n this.state.sentenceCase = true;\n let output = '';\n\n while (!this.matchEndOfFile()) {\n output += this.consumeRule('Text');\n }\n\n return flattenConsString(output);\n },\n\n BracketString() {\n var _this$state;\n\n let output = '';\n this.consumeToken('lbrace');\n const sentenceCase = this.state.sentenceCase;\n this.state.sentenceCase = sentenceCase && this.matchToken('command');\n (_this$state = this.state).partlyLowercase && (_this$state.partlyLowercase = this.state.sentenceCase);\n\n while (!this.matchToken('rbrace')) {\n output += this.consumeRule('Text');\n }\n\n const topLevel = sentenceCase && !this.state.sentenceCase;\n const protectCase = topLevel && this.state.partlyLowercase;\n this.state.sentenceCase = sentenceCase;\n this.consumeToken('rbrace');\n return protectCase ? applyFormatting(output, 'nocase') : output;\n },\n\n MathString() {\n let output = '';\n this.consumeToken('mathShift');\n\n while (!this.matchToken('mathShift')) {\n if (this.matchToken('script')) {\n const script = this.consumeToken('script').value;\n const text = this.consumeRule('Text').split('');\n\n if (text.every(char => char in constants.mathScripts[script])) {\n output += text.map(char => constants.mathScripts[script][char]).join('');\n } else {\n const formatName = constants.mathScriptFormatting[script];\n output += constants.formatting[formatName].join(text.join(''));\n }\n\n continue;\n }\n\n if (this.matchToken('command')) {\n const command = this.token.value;\n\n if (command in constants.mathScriptFormatting) {\n this.consumeToken('command');\n const text = this.consumeRule('BracketString');\n output += applyFormatting(text, constants.mathScriptFormatting[command]);\n continue;\n }\n }\n\n output += this.consumeRule('Text');\n }\n\n this.consumeToken('mathShift');\n return output;\n },\n\n Text() {\n if (this.matchToken('lbrace')) {\n return this.consumeRule('BracketString');\n } else if (this.matchToken('mathShift')) {\n return this.consumeRule('MathString');\n } else if (this.matchToken('whitespace')) {\n return this.consumeToken('whitespace').value;\n } else if (this.matchToken('commandBegin')) {\n return this.consumeRule('EnclosedEnv');\n } else if (this.matchToken('command')) {\n return this.consumeRule('Command');\n }\n\n const text = this.consumeToken('text').value.replace(constants.ligaturePattern, ligature => constants.ligatures[ligature]);\n const afterPunctuation = this.state.afterPunctuation;\n this.state.afterPunctuation = /[?!.:]$/.test(text);\n\n if (!this.state.sentenceCase) {\n var _this$state2;\n\n (_this$state2 = this.state).partlyLowercase || (_this$state2.partlyLowercase = text === text.toLowerCase() && text !== text.toUpperCase());\n return text;\n }\n\n const [first, ...otherCharacters] = text;\n const rest = otherCharacters.join('');\n const restLowerCase = rest.toLowerCase();\n\n if (rest !== restLowerCase) {\n return text;\n }\n\n if (!afterPunctuation) {\n return text.toLowerCase();\n }\n\n return first + restLowerCase;\n },\n\n Command() {\n const commandToken = this.consumeToken('command');\n const command = commandToken.value;\n\n if (command in constants.formattingEnvs) {\n const text = this.consumeRule('Env');\n const format = constants.formattingEnvs[command];\n return applyFormatting(text, format);\n } else if (command in constants.formattingCommands) {\n const text = this.consumeRule('BracketString');\n const format = constants.formattingCommands[command];\n return applyFormatting(text, format);\n } else if (command in constants.commands) {\n return constants.commands[command];\n } else if (command in constants.diacritics && !this.matchEndOfFile()) {\n const text = this.consumeRule('Text');\n const diacritic = text[0] + constants.diacritics[command];\n return diacritic.normalize('NFC') + text.slice(1);\n } else if (command in constants.argumentCommands) {\n const func = constants.argumentCommands[command];\n const args = [];\n let arity = func.length;\n\n while (arity-- > 0) {\n this.consumeToken('whitespace', true);\n args.push(this.consumeRule('BracketString'));\n }\n\n return func(...args);\n } else if (/^[&%$#_{}]$/.test(command)) {\n return commandToken.text.slice(1);\n } else {\n return commandToken.text;\n }\n },\n\n Env() {\n let output = '';\n\n while (!this.matchEndOfFile() && !this.matchToken('rbrace')) {\n output += this.consumeRule('Text');\n }\n\n return output;\n },\n\n EnclosedEnv() {\n this.consumeToken('commandBegin');\n const beginEnv = this.consumeRule('BracketString');\n let output = '';\n\n while (!this.matchToken('commandEnd')) {\n output += this.consumeRule('Text');\n }\n\n const end = this.consumeToken('commandEnd');\n const endEnv = this.consumeRule('BracketString');\n\n if (beginEnv !== endEnv) {\n throw new SyntaxError(this.lexer.formatError(end, `environment started with \"${beginEnv}\", ended with \"${endEnv}\"`));\n }\n\n return applyFormatting(output, constants.formattingEnvs[beginEnv]);\n }\n\n}, {\n sentenceCase: false,\n partlyLowercase: false,\n afterPunctuation: true\n});\n\nfunction singleLanguageIsEnglish(language) {\n return constants.sentenceCaseLanguages.includes(language.toLowerCase());\n}\n\nfunction isEnglish(languages) {\n if (Array.isArray(languages)) {\n return languages.every(singleLanguageIsEnglish);\n }\n\n return singleLanguageIsEnglish(languages);\n}\n\nfunction getMainRule(fieldType, languages) {\n if (fieldType[1] === 'name') {\n return fieldType[0] === 'list' ? 'StringNames' : 'Name';\n }\n\n if (fieldType[1] === 'title') {\n const option = config.parse.sentenceCase;\n\n if (option === 'always' || option === 'english' && isEnglish(languages)) {\n return 'StringTitleCase';\n } else {\n return 'String';\n }\n }\n\n switch (fieldType[0] === 'field' ? fieldType[1] : fieldType[0]) {\n case 'list':\n return 'StringList';\n\n case 'separated':\n return 'StringSeparated';\n\n case 'verbatim':\n return 'StringVerbatim';\n\n case 'uri':\n return 'StringUri';\n\n case 'title':\n case 'literal':\n default:\n return 'String';\n }\n}\n\nfunction getLexerState(fieldType) {\n if (fieldType[1] === 'name') {\n return 'namesLiteral';\n }\n\n switch (fieldType[0]) {\n case 'list':\n return 'listLiteral';\n\n case 'separated':\n return 'separatedLiteral';\n\n case 'field':\n default:\n return 'stringLiteral';\n }\n}\n\nexport function parse(text, field, languages = []) {\n const fieldType = constants.fieldTypes[field] || [];\n return valueGrammar.parse(lexer.reset(text, {\n state: getLexerState(fieldType),\n line: 0,\n col: 0\n }), getMainRule(fieldType, languages));\n}","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport config from '../config.js';\nimport { parse as mapBiblatex, parseBibtex as mapBibtex } from '../mapping/index.js';\nimport { parse as parseValue } from './value.js';\nimport { required } from './constants.js';\n\nfunction validate(entries, requirements) {\n const problems = [];\n\n for (const {\n type,\n label,\n properties\n } of entries) {\n if (type in requirements) {\n const missing = [];\n\n for (const field of requirements[type]) {\n if (Array.isArray(field) && !field.some(field => field in properties)) {\n missing.push(field.join('/'));\n } else if (typeof field === 'string' && !(field in properties)) {\n missing.push(field);\n }\n }\n\n if (missing.length) {\n problems.push([label, `missing fields: ${missing.join(', ')}`]);\n }\n } else {\n problems.push([label, `invalid type: \"${type}\"`]);\n }\n }\n\n if (problems.length) {\n throw new RangeError(['Invalid entries:'].concat(problems.map(([label, problem]) => ` - ${label} has ${problem}`)).join('\\n'));\n }\n}\n\nfunction parseEntryValues(entry) {\n const output = {};\n\n if ('language' in entry.properties) {\n output.language = parseValue(entry.properties.language, 'language');\n }\n\n for (const property in entry.properties) {\n const value = entry.properties[property];\n\n if (value === '') {\n continue;\n }\n\n output[property] = parseValue(value + '', property, output.language);\n }\n\n return _objectSpread(_objectSpread({}, entry), {}, {\n properties: output\n });\n}\n\nexport function parse(entries) {\n if (config.parse.strict) {\n validate(entries, required.biblatex);\n }\n\n return mapBiblatex(entries.map(parseEntryValues));\n}\nexport function parseBibtex(entries) {\n if (config.parse.strict) {\n validate(entries, required.bibtex);\n }\n\n return mapBibtex(entries.map(parseEntryValues));\n}","import { parse as parseFile } from './file.js';\nimport { parse as parseBibtxt } from './bibtxt.js';\nimport { parse as parseEntries, parseBibtex } from './entries.js';\nexport const ref = '@bibtex';\nexport const formats = {\n '@biblatex/text': {\n parse: parseFile,\n parseType: {\n dataType: 'String',\n predicate: /@\\s{0,5}[A-Za-z]{1,13}\\s{0,5}\\{\\s{0,5}[^@{}\"=,\\\\\\s]{0,100}\\s{0,5},[\\s\\S]*\\}/\n }\n },\n '@biblatex/entry+object': {\n parse(input) {\n return parseEntries([input]);\n },\n\n parseType: {\n dataType: 'SimpleObject',\n propertyConstraint: {\n props: ['type', 'label', 'properties']\n }\n }\n },\n '@biblatex/entries+list': {\n parse: parseEntries,\n parseType: {\n elementConstraint: '@biblatex/entry+object'\n }\n },\n '@bibtex/text': {\n parse: parseFile,\n outputs: '@bibtex/entries+list'\n },\n '@bibtex/entry+object': {\n parse(input) {\n return parseBibtex([input]);\n }\n\n },\n '@bibtex/entries+list': {\n parse: parseBibtex\n },\n '@bibtxt/text': {\n parse: parseBibtxt,\n parseType: {\n dataType: 'String',\n predicate: /^\\s*(\\[(?!\\s*[{[]).*?\\]\\s*(\\n\\s*[^[]((?!:)\\S)+\\s*:\\s*.+?\\s*)*\\s*)+$/\n }\n }\n};","import { diacritics, commands, ligatures, fieldTypes } from '../input/constants.js';\nconst unicode = {};\n\nfor (const command in commands) {\n unicode[commands[command]] = command;\n}\n\nfor (const diacritic in diacritics) {\n unicode[diacritics[diacritic]] = diacritic;\n}\n\nfor (const ligature in ligatures) {\n unicode[ligatures[ligature]] = ligature;\n}\n\nconst UNSAFE_UNICODE = /[^a-zA-Z0-9\\s!\"#%&'()*+,\\-./:;=?@[\\]{}\\u0300-\\u0308\\u030a-\\u030c\\u0332\\u0323\\u0327\\u0328\\u0361\\u0326]/g;\nconst DIACRITIC_PATTERN = /.[\\u0300-\\u0308\\u030a-\\u030c\\u0332\\u0323\\u0327\\u0328\\u0361\\u0326]+/g;\nconst listDelimiters = {\n separated: ',',\n list: ' and '\n};\nconst richTextMappings = {\n i: '\\\\textit{',\n b: '\\\\textbf{',\n sc: '\\\\textsc{',\n sup: '\\\\textsuperscript{',\n sub: '\\\\textsubscript{',\n 'span style=\"font-variant:small-caps;\"': '\\\\textsc{',\n 'span class=\"nocase\"': '{'\n};\n\nfunction escapeValue(value) {\n return value.normalize('NFKD').replace(UNSAFE_UNICODE, char => char in unicode ? unicode[char] in ligatures ? unicode[char] : `\\\\${unicode[char]}{}` : '').replace(DIACRITIC_PATTERN, match => Array.from(match).reduce((subject, diacritic) => `{\\\\${unicode[diacritic]} ${subject}}`));\n}\n\nfunction formatRichText(value) {\n const closingTags = [];\n let tokens = value.split(/<(\\/?(?:i|b|sc|sup|sub|span)|span .*?)>/g);\n tokens = tokens.map((token, index) => {\n if (index % 2 === 0) {\n return escapeValue(token);\n } else if (token in richTextMappings) {\n closingTags.push('/' + token.split(' ')[0]);\n return richTextMappings[token];\n } else if (token === closingTags[closingTags.length - 1]) {\n closingTags.pop();\n return '}';\n } else {\n return '';\n }\n });\n return tokens.join('');\n}\n\nfunction formatName(name) {\n if (name.family && !name.prefix && !name.given & !name.suffix) {\n return name.family.includes(listDelimiters.list) ? name.family : `{${name.family}}`;\n }\n\n const parts = [''];\n\n if (name.prefix && name.family) {\n parts[0] += name.prefix + ' ';\n }\n\n if (name.family) {\n parts[0] += name.family;\n }\n\n if (name.suffix) {\n parts.push(name.suffix);\n parts.push(name.given || '');\n } else {\n parts.push(name.given);\n }\n\n return escapeValue(parts.join(', ').trim());\n}\n\nfunction formatTitle(title) {\n return formatRichText(title).split(/(:\\s*)/).map((part, i) => i % 2 ? part : part.replace(/(?!^)\\b[a-z]*[A-Z].*?\\b/g, '{$&}')).join('');\n}\n\nfunction formatSingleValue(value, valueType) {\n switch (valueType) {\n case 'title':\n return formatTitle(value);\n\n case 'literal':\n return formatRichText(value.toString());\n\n case 'name':\n return formatName(value);\n\n case 'verbatim':\n case 'uri':\n return value.toString();\n\n default:\n return escapeValue(value.toString());\n }\n}\n\nfunction formatList(values, valueType, listType) {\n const delimiter = listDelimiters[listType];\n return values.map(value => {\n const formatted = formatSingleValue(value, valueType);\n return formatted.includes(delimiter) ? `{${formatted}}` : formatted;\n }).join(delimiter);\n}\n\nexport function format(field, value) {\n if (!(field in fieldTypes)) {\n return formatSingleValue(value, 'verbatim');\n }\n\n const [listType, valueType] = fieldTypes[field];\n\n if (listType in listDelimiters) {\n return formatList(value, valueType, listType);\n } else {\n return formatSingleValue(value, valueType);\n }\n}","import { format as mapBiblatex, formatBibtex as mapBibtex } from '../mapping/index.js';\nimport { format as formatValue } from './value.js';\n\nfunction formatEntryValues({\n type,\n label,\n properties\n}) {\n const output = {};\n\n for (const property in properties) {\n const value = properties[property];\n output[property] = formatValue(property, value);\n }\n\n return {\n type,\n label,\n properties: output\n };\n}\n\nexport function format(entries) {\n return mapBiblatex(entries).map(formatEntryValues);\n}\nexport function formatBibtex(entries) {\n return mapBibtex(entries).map(formatEntryValues);\n}","function formatEntry({\n type,\n label,\n properties\n}, dict) {\n const fields = Object.entries(properties).map(([field, value]) => dict.listItem.join(`${field} = {${value}},`));\n return dict.entry.join(`@${type}{${label},${dict.list.join(fields.join(''))}}`);\n}\n\nexport function format(src, dict) {\n const entries = src.map(entry => formatEntry(entry, dict)).join('');\n return dict.bibliographyContainer.join(entries);\n}","import { plugins } from '@citation-js/core';\nimport { format as mapBiblatex, formatBibtex as mapBibtex } from './entries.js';\nimport { format } from './bibtex.js';\nimport { format as formatBibtxt } from './bibtxt.js';\n\nconst factory = function (mapper, formatter) {\n return function (data, opts = {}) {\n const {\n type,\n format = type || 'text'\n } = opts;\n data = mapper(data);\n\n if (format === 'object') {\n return data;\n } else if (plugins.dict.has(format)) {\n return formatter(data, plugins.dict.get(format), opts);\n } else {\n throw new RangeError(`Output dictionary \"${format}\" not available`);\n }\n };\n};\n\nexport default {\n bibtex: factory(mapBibtex, format),\n biblatex: factory(mapBiblatex, format),\n bibtxt: factory(mapBibtex, formatBibtxt)\n};","function formatEntry({\n type,\n label,\n properties\n}, dict) {\n const fields = Object.entries(properties).concat([['type', type]]).map(([field, value]) => dict.listItem.join(`${field}: ${value}`));\n return dict.entry.join(`[${label}]${dict.list.join(fields.join(''))}`);\n}\n\nexport function format(src, dict) {\n const entries = src.map(entry => formatEntry(entry, dict)).join('\\n');\n return dict.bibliographyContainer.join(entries);\n}","import { plugins } from '@citation-js/core';\nimport { ref, formats as input } from './input/index.js';\nimport config from './config.js';\nimport output from './output/index.js';\nplugins.add(ref, {\n input,\n output,\n config\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _biblatexTypes = _interopRequireDefault(require(\"./mapping/biblatexTypes.json\"));\n\nvar _bibtexTypes = _interopRequireDefault(require(\"./mapping/bibtexTypes.json\"));\n\nvar constants = _interopRequireWildcard(require(\"./input/constants.js\"));\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _default = {\n constants,\n types: {\n biblatex: _biblatexTypes.default,\n bibtex: _bibtexTypes.default\n },\n parse: {\n biblatex: true,\n strict: false,\n sentenceCase: 'never'\n },\n format: {\n useIdAsLabel: false\n }\n};\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.textEntry = exports.text = exports.parse = void 0;\nconst bibTxtRegex = {\n splitEntries: /\\n\\s*(?=\\[)/g,\n parseEntry: /^\\[(.+?)\\]\\s*(?:\\n([\\s\\S]+))?$/,\n splitPairs: /((?=.)\\s)*\\n\\s*/g,\n splitPair: /:(.*)/\n};\n\nconst parseBibTxtEntry = entry => {\n const [, label, pairs] = entry.match(bibTxtRegex.parseEntry) || [];\n\n if (!label || !pairs) {\n return {};\n } else {\n const out = {\n type: 'book',\n label,\n properties: {}\n };\n pairs.trim().split(bibTxtRegex.splitPairs).filter(v => v).forEach(pair => {\n let [key, value] = pair.split(bibTxtRegex.splitPair);\n\n if (value) {\n key = key.trim();\n value = value.trim();\n\n if (key === 'type') {\n out.type = value;\n } else {\n out.properties[key] = value;\n }\n }\n });\n return out;\n }\n};\n\nexports.textEntry = parseBibTxtEntry;\n\nconst parseBibTxt = src => src.trim().split(bibTxtRegex.splitEntries).map(parseBibTxtEntry);\n\nexports.text = exports.parse = parseBibTxt;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sentenceCaseLanguages = exports.required = exports.mathScripts = exports.mathScriptFormatting = exports.ligatures = exports.ligaturePattern = exports.formattingEnvs = exports.formattingCommands = exports.formatting = exports.fieldTypes = exports.diacritics = exports.defaultStrings = exports.commands = exports.argumentCommands = void 0;\n\nvar _required2 = _interopRequireDefault(require(\"./required.json\"));\n\nvar _fieldTypes2 = _interopRequireDefault(require(\"./fieldTypes.json\"));\n\nvar _unicode = _interopRequireDefault(require(\"./unicode.json\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nconst required = _required2.default;\nexports.required = required;\nconst fieldTypes = _fieldTypes2.default;\nexports.fieldTypes = fieldTypes;\nconst diacritics = _unicode.default.diacritics;\nexports.diacritics = diacritics;\nconst commands = _unicode.default.commands;\nexports.commands = commands;\nconst defaultStrings = {\n jan: '01',\n feb: '02',\n mar: '03',\n apr: '04',\n may: '05',\n jun: '06',\n jul: '07',\n aug: '08',\n sep: '09',\n oct: '10',\n nov: '11',\n dec: '12',\n acmcs: 'ACM Computing Surveys',\n acta: 'Acta Informatica',\n cacm: 'Communications of the ACM',\n ibmjrd: 'IBM Journal of Research and Development',\n ibmsj: 'IBM Systems Journal',\n ieeese: 'IEEE Transactions on Software Engineering',\n ieeetc: 'IEEE Transactions on Computers',\n ieeetcad: 'IEEE Transactions on Computer-Aided Design of Integrated Circuits',\n ipl: 'Information Processing Letters',\n jacm: 'Journal of the ACM',\n jcss: 'Journal of Computer and System Sciences',\n scp: 'Science of Computer Programming',\n sicomp: 'SIAM Journal on Computing',\n tocs: 'ACM Transactions on Computer Systems',\n tods: 'ACM Transactions on Database Systems',\n tog: 'ACM Transactions on Graphics',\n toms: 'ACM Transactions on Mathematical Software',\n toois: 'ACM Transactions on Office Information Systems',\n toplas: 'ACM Transactions on Programming Languages and Systems',\n tcs: 'Theoretical Computer Science'\n};\nexports.defaultStrings = defaultStrings;\nconst formattingEnvs = {\n it: 'italics',\n itshape: 'italics',\n sl: 'italics',\n slshape: 'italics',\n em: 'italics',\n bf: 'bold',\n bfseries: 'bold',\n sc: 'smallcaps',\n scshape: 'smallcaps',\n rm: undefined,\n sf: undefined,\n tt: undefined\n};\nexports.formattingEnvs = formattingEnvs;\nconst formattingCommands = {\n textit: 'italics',\n textsl: 'italics',\n emph: 'italics',\n mkbibitalic: 'italics',\n mkbibemph: 'italics',\n textbf: 'bold',\n strong: 'bold',\n mkbibbold: 'bold',\n textsc: 'smallcaps',\n textsuperscript: 'superscript',\n textsubscript: 'subscript',\n enquote: 'quotes',\n mkbibquote: 'quotes',\n textmd: undefined,\n textrm: undefined,\n textsf: undefined,\n texttt: undefined,\n textup: undefined\n};\nexports.formattingCommands = formattingCommands;\nconst formatting = {\n italics: ['', ''],\n bold: ['', ''],\n superscript: ['', ''],\n subscript: ['', ''],\n smallcaps: ['', ''],\n nocase: ['', ''],\n quotes: ['\\u201C', '\\u201D']\n};\nexports.formatting = formatting;\nconst argumentCommands = {\n ElsevierGlyph(glyph) {\n return String.fromCharCode(parseInt(glyph, 16));\n },\n\n href(url, text) {\n return url;\n },\n\n url(url) {\n return url;\n }\n\n};\nexports.argumentCommands = argumentCommands;\nconst ligaturePattern = /---?|''|``|~/g;\nexports.ligaturePattern = ligaturePattern;\nconst ligatures = {\n '--': '\\u2013',\n '---': '\\u2014',\n '``': '\\u201C',\n \"''\": '\\u201D',\n '~': '\\u00A0'\n};\nexports.ligatures = ligatures;\nconst mathScriptFormatting = {\n '^': 'superscript',\n sp: 'superscript',\n _: 'subscript',\n sb: 'subscript',\n mathrm: undefined\n};\nexports.mathScriptFormatting = mathScriptFormatting;\nconst mathScripts = {\n '^': {\n '0': '\\u2070',\n '1': '\\u00B9',\n '2': '\\u00B2',\n '3': '\\u00B3',\n '4': '\\u2074',\n '5': '\\u2075',\n '6': '\\u2076',\n '7': '\\u2077',\n '8': '\\u2078',\n '9': '\\u2079',\n '+': '\\u207A',\n '-': '\\u207B',\n '=': '\\u207C',\n '(': '\\u207D',\n ')': '\\u207E',\n 'i': '\\u2071',\n 'n': '\\u207F'\n },\n '_': {\n '0': '\\u2080',\n '1': '\\u2081',\n '2': '\\u2082',\n '3': '\\u2083',\n '4': '\\u2084',\n '5': '\\u2085',\n '6': '\\u2086',\n '7': '\\u2087',\n '8': '\\u2088',\n '9': '\\u2089',\n '+': '\\u208A',\n '-': '\\u208B',\n '=': '\\u208C',\n '(': '\\u208D',\n ')': '\\u208E',\n 'a': '\\u2090',\n 'e': '\\u2091',\n 'o': '\\u2092',\n 'x': '\\u2093',\n '\\u0259': '\\u2094',\n 'h': '\\u2095',\n 'k': '\\u2096',\n 'l': '\\u2097',\n 'm': '\\u2098',\n 'n': '\\u2099',\n 's': '\\u209A',\n 'p': '\\u209B',\n 't': '\\u209C'\n }\n};\nexports.mathScripts = mathScripts;\nconst sentenceCaseLanguages = ['american', 'british', 'canadian', 'english', 'australian', 'newzealand', 'usenglish', 'ukenglish', 'en', 'eng', 'en-au', 'en-bz', 'en-ca', 'en-cb', 'en-gb', 'en-ie', 'en-jm', 'en-nz', 'en-ph', 'en-tt', 'en-us', 'en-za', 'en-zw', 'anglais'];\nexports.sentenceCaseLanguages = sentenceCaseLanguages;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.parse = parse;\nexports.parseBibtex = parseBibtex;\n\nvar _config = _interopRequireDefault(require(\"../config.js\"));\n\nvar _index = require(\"../mapping/index.js\");\n\nvar _value = require(\"./value.js\");\n\nvar _constants = require(\"./constants.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction validate(entries, requirements) {\n const problems = [];\n\n for (const {\n type,\n label,\n properties\n } of entries) {\n if (type in requirements) {\n const missing = [];\n\n for (const field of requirements[type]) {\n if (Array.isArray(field) && !field.some(field => field in properties)) {\n missing.push(field.join('/'));\n } else if (typeof field === 'string' && !(field in properties)) {\n missing.push(field);\n }\n }\n\n if (missing.length) {\n problems.push([label, `missing fields: ${missing.join(', ')}`]);\n }\n } else {\n problems.push([label, `invalid type: \"${type}\"`]);\n }\n }\n\n if (problems.length) {\n throw new RangeError(['Invalid entries:'].concat(problems.map(([label, problem]) => ` - ${label} has ${problem}`)).join('\\n'));\n }\n}\n\nfunction parseEntryValues(entry) {\n const output = {};\n\n if ('language' in entry.properties) {\n output.language = (0, _value.parse)(entry.properties.language, 'language');\n }\n\n for (const property in entry.properties) {\n const value = entry.properties[property];\n\n if (value === '') {\n continue;\n }\n\n output[property] = (0, _value.parse)(value + '', property, output.language);\n }\n\n return _objectSpread(_objectSpread({}, entry), {}, {\n properties: output\n });\n}\n\nfunction parse(entries) {\n if (_config.default.parse.strict) {\n validate(entries, _constants.required.biblatex);\n }\n\n return (0, _index.parse)(entries.map(parseEntryValues));\n}\n\nfunction parseBibtex(entries) {\n if (_config.default.parse.strict) {\n validate(entries, _constants.required.bibtex);\n }\n\n return (0, _index.parseBibtex)(entries.map(parseEntryValues));\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bibtexGrammar = void 0;\nexports.parse = parse;\n\nvar _core = require(\"@citation-js/core\");\n\nvar _moo = _interopRequireDefault(require(\"moo\"));\n\nvar _constants = require(\"./constants.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nconst identifier = /[a-zA-Z_][a-zA-Z0-9_:-]*/;\nconst whitespace = {\n comment: /%.*/,\n whitespace: {\n match: /\\s+/,\n lineBreaks: true\n }\n};\n\nconst lexer = _moo.default.states({\n main: {\n junk: {\n match: /@[cC][oO][mM][mM][eE][nN][tT].+|[^@]+/,\n lineBreaks: true\n },\n at: {\n match: '@',\n push: 'entry'\n }\n },\n entry: _objectSpread(_objectSpread({}, whitespace), {}, {\n otherEntryType: {\n match: /[sS][tT][rR][iI][nN][gG]|[pP][rR][eE][aA][mM][bB][lL][eE]/,\n next: 'otherEntryContents'\n },\n dataEntryType: {\n match: identifier,\n next: 'dataEntryContents'\n }\n }),\n otherEntryContents: _objectSpread(_objectSpread({}, whitespace), {}, {\n lbrace: {\n match: /[{(]/,\n next: 'fields'\n }\n }),\n dataEntryContents: _objectSpread(_objectSpread({}, whitespace), {}, {\n lbrace: {\n match: /[{(]/,\n next: 'dataEntryContents'\n },\n label: /[^,\\s]+/,\n comma: {\n match: ',',\n next: 'fields'\n }\n }),\n fields: _objectSpread(_objectSpread({}, whitespace), {}, {\n identifier,\n number: /-?\\d+/,\n hash: '#',\n equals: '=',\n comma: ',',\n quote: {\n match: '\"',\n push: 'quotedLiteral'\n },\n lbrace: {\n match: '{',\n push: 'bracedLiteral'\n },\n rbrace: {\n match: /[})]/,\n pop: true\n }\n }),\n quotedLiteral: {\n lbrace: {\n match: '{',\n push: 'bracedLiteral'\n },\n quote: {\n match: '\"',\n pop: true\n },\n text: {\n match: /(?:\\\\[\\\\{]|[^{\"])+/,\n lineBreaks: true\n }\n },\n bracedLiteral: {\n lbrace: {\n match: '{',\n push: 'bracedLiteral'\n },\n rbrace: {\n match: '}',\n pop: true\n },\n text: {\n match: /(?:\\\\[\\\\{}]|[^{}])+/,\n lineBreaks: true\n }\n }\n});\n\nconst delimiters = {\n '(': ')',\n '{': '}'\n};\nconst bibtexGrammar = new _core.util.Grammar({\n Main() {\n const entries = [];\n\n while (true) {\n while (this.matchToken('junk')) {\n this.consumeToken('junk');\n }\n\n if (this.matchEndOfFile()) {\n break;\n }\n\n entries.push(this.consumeRule('Entry'));\n }\n\n return entries.filter(Boolean);\n },\n\n _() {\n let oldToken;\n\n while (oldToken !== this.token) {\n oldToken = this.token;\n this.consumeToken('whitespace', true);\n this.consumeToken('comment', true);\n }\n },\n\n Entry() {\n this.consumeToken('at');\n this.consumeRule('_');\n const type = (this.matchToken('otherEntryType') ? this.consumeToken('otherEntryType') : this.consumeToken('dataEntryType')).value.toLowerCase();\n this.consumeRule('_');\n const openBrace = this.consumeToken('lbrace').value;\n this.consumeRule('_');\n let result;\n\n if (type === 'string') {\n const [key, value] = this.consumeRule('Field');\n this.state.strings[key] = value;\n } else if (type === 'preamble') {\n this.consumeRule('Expression');\n } else {\n const label = this.consumeToken('label').value;\n this.consumeRule('_');\n this.consumeToken('comma');\n this.consumeRule('_');\n const properties = this.consumeRule('EntryBody');\n result = {\n type,\n label,\n properties\n };\n }\n\n this.consumeRule('_');\n const closeBrace = this.consumeToken('rbrace').value;\n\n if (closeBrace !== delimiters[openBrace]) {\n _core.logger.warn('[plugin-bibtex]', `entry started with \"${openBrace}\", but ends with \"${closeBrace}\"`);\n }\n\n return result;\n },\n\n EntryBody() {\n const properties = {};\n\n while (this.matchToken('identifier')) {\n const [field, value] = this.consumeRule('Field');\n properties[field] = value;\n this.consumeRule('_');\n\n if (this.consumeToken('comma', true)) {\n this.consumeRule('_');\n } else {\n break;\n }\n }\n\n return properties;\n },\n\n Field() {\n const field = this.consumeToken('identifier').value.toLowerCase();\n this.consumeRule('_');\n this.consumeToken('equals');\n this.consumeRule('_');\n const value = this.consumeRule('Expression');\n return [field, value];\n },\n\n Expression() {\n let output = this.consumeRule('ExpressionPart');\n this.consumeRule('_');\n\n while (this.matchToken('hash')) {\n this.consumeToken('hash');\n this.consumeRule('_');\n output += this.consumeRule('ExpressionPart').toString();\n this.consumeRule('_');\n }\n\n return output;\n },\n\n ExpressionPart() {\n if (this.matchToken('identifier')) {\n return this.state.strings[this.consumeToken('identifier').value.toLowerCase()] || '';\n } else if (this.matchToken('number')) {\n return parseInt(this.consumeToken('number'));\n } else if (this.matchToken('quote')) {\n return this.consumeRule('QuoteString');\n } else {\n return this.consumeRule('BracketString');\n }\n },\n\n QuoteString() {\n let output = '';\n this.consumeToken('quote');\n\n while (!this.matchToken('quote')) {\n output += this.consumeRule('Text');\n }\n\n this.consumeToken('quote');\n return output;\n },\n\n BracketString() {\n let output = '';\n this.consumeToken('lbrace');\n\n while (!this.matchToken('rbrace')) {\n output += this.consumeRule('Text');\n }\n\n this.consumeToken('rbrace');\n return output;\n },\n\n Text() {\n if (this.matchToken('lbrace')) {\n return `{${this.consumeRule('BracketString')}}`;\n } else {\n return this.consumeToken('text').value;\n }\n }\n\n}, {\n strings: _constants.defaultStrings\n});\nexports.bibtexGrammar = bibtexGrammar;\n\nfunction parse(text) {\n return bibtexGrammar.parse(lexer.reset(text));\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ref = exports.formats = void 0;\n\nvar _file = require(\"./file.js\");\n\nvar _bibtxt = require(\"./bibtxt.js\");\n\nvar _entries = require(\"./entries.js\");\n\nconst ref = '@bibtex';\nexports.ref = ref;\nconst formats = {\n '@biblatex/text': {\n parse: _file.parse,\n parseType: {\n dataType: 'String',\n predicate: /@\\s{0,5}[A-Za-z]{1,13}\\s{0,5}\\{\\s{0,5}[^@{}\"=,\\\\\\s]{0,100}\\s{0,5},[\\s\\S]*\\}/\n }\n },\n '@biblatex/entry+object': {\n parse(input) {\n return (0, _entries.parse)([input]);\n },\n\n parseType: {\n dataType: 'SimpleObject',\n propertyConstraint: {\n props: ['type', 'label', 'properties']\n }\n }\n },\n '@biblatex/entries+list': {\n parse: _entries.parse,\n parseType: {\n elementConstraint: '@biblatex/entry+object'\n }\n },\n '@bibtex/text': {\n parse: _file.parse,\n outputs: '@bibtex/entries+list'\n },\n '@bibtex/entry+object': {\n parse(input) {\n return (0, _entries.parseBibtex)([input]);\n }\n\n },\n '@bibtex/entries+list': {\n parse: _entries.parseBibtex\n },\n '@bibtxt/text': {\n parse: _bibtxt.parse,\n parseType: {\n dataType: 'String',\n predicate: /^\\s*(\\[(?!\\s*[{[]).*?\\]\\s*(\\n\\s*[^[]((?!:)\\S)+\\s*:\\s*.+?\\s*)*\\s*)+$/\n }\n }\n};\nexports.formats = formats;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.formatNameParts = formatNameParts;\nexports.getStringCase = getStringCase;\nexports.orderNameParts = orderNameParts;\nexports.orderNamePieces = orderNamePieces;\n\nfunction getStringCase(string) {\n const a = string.toUpperCase();\n const b = string.toLowerCase();\n\n for (let i = 0; i < string.length; i++) {\n if (a[i] !== b[i]) {\n return a[i] === string[i];\n }\n }\n\n return null;\n}\n\nfunction formatNameParts(parts) {\n if (parts.length === 0) {\n return undefined;\n }\n\n let piece = '';\n\n while (parts.length > 1) {\n const {\n value,\n hyphenated\n } = parts.shift();\n piece += value + (hyphenated ? '-' : ' ');\n }\n\n const output = piece + parts[0].value;\n return output[0] && output;\n}\n\nfunction orderNameParts(parts, orderGiven = true) {\n const given = [];\n const undecided = [];\n\n if (orderGiven) {\n while (parts.length > 1 && parts[0].upperCase !== false) {\n given.push(...undecided);\n undecided.length = 0;\n\n while (parts.length > 1 && parts[0].upperCase !== false && !parts[0].hyphenated) {\n given.push(parts.shift());\n }\n\n while (parts.length > 0 && parts[0].upperCase !== false && parts[0].hyphenated) {\n undecided.push(parts.shift());\n }\n }\n }\n\n const prefix = [];\n const family = [];\n\n while (parts.length > 1) {\n prefix.push(...family);\n family.length = 0;\n\n while (parts.length > 1 && parts[0].upperCase === false) {\n prefix.push(parts.shift());\n }\n\n while (parts.length > 0 && parts[0].upperCase !== false) {\n family.push(parts.shift());\n }\n }\n\n if (undecided.length) {\n family.unshift(...undecided);\n }\n\n if (parts.length) {\n family.push(parts[0]);\n }\n\n return [formatNameParts(given), formatNameParts(prefix), formatNameParts(family)];\n}\n\nfunction orderNamePieces(pieces) {\n if (pieces[0][0].label) {\n const name = {};\n\n for (const [{\n value,\n label\n }] of pieces) {\n name[label] = value;\n }\n\n return name;\n }\n\n const name = {};\n const [given, prefix, family] = orderNameParts(pieces[0], pieces.length === 1);\n\n if (family) {\n name.family = family;\n }\n\n if (prefix) {\n name.prefix = prefix;\n }\n\n if (pieces.length === 3) {\n name.given = formatNameParts(pieces[2]);\n name.suffix = formatNameParts(pieces[1]);\n } else if (pieces.length === 2) {\n name.given = formatNameParts(pieces[1]);\n } else if (given) {\n name.given = given;\n }\n\n return name;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.parse = parse;\nexports.valueGrammar = void 0;\n\nvar _core = require(\"@citation-js/core\");\n\nvar _moo = _interopRequireDefault(require(\"moo\"));\n\nvar _config = _interopRequireDefault(require(\"../config.js\"));\n\nvar constants = _interopRequireWildcard(require(\"./constants.js\"));\n\nvar _name = require(\"./name.js\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nconst commandKeywords = {\n '\\\\begin': 'commandBegin',\n '\\\\end': 'commandEnd'\n};\nconst text = {\n command: {\n match: /\\\\(?:[a-zA-Z]+|.) */,\n type: command => commandKeywords[command],\n value: s => s.slice(1).trim()\n },\n lbrace: {\n match: '{',\n push: 'bracedLiteral'\n },\n mathShift: {\n match: '$',\n push: 'mathLiteral'\n },\n whitespace: {\n match: /[\\s]+|~/,\n lineBreaks: true,\n\n value(token) {\n return token === '~' ? '\\xa0' : ' ';\n }\n\n }\n};\n\nconst lexer = _moo.default.states({\n stringLiteral: _objectSpread(_objectSpread({}, text), {}, {\n text: /[^{$}\\s~\\\\]+/\n }),\n namesLiteral: _objectSpread(_objectSpread({\n and: /\\s+and\\s+/,\n comma: ',',\n hyphen: '-',\n equals: '='\n }, text), {}, {\n text: /[^{$}\\s~\\\\,=-]+/\n }),\n listLiteral: _objectSpread(_objectSpread({\n and: /\\s+and\\s+/\n }, text), {}, {\n text: /[^{$}\\s~\\\\]+/\n }),\n separatedLiteral: _objectSpread(_objectSpread({\n comma: ','\n }, text), {}, {\n text: /[^{$}\\s~\\\\,]+/\n }),\n bracedLiteral: _objectSpread(_objectSpread({}, text), {}, {\n rbrace: {\n match: '}',\n pop: true\n },\n text: /[^{$}\\s~\\\\]+/\n }),\n mathLiteral: _objectSpread(_objectSpread({}, text), {}, {\n mathShift: {\n match: '$',\n pop: true\n },\n script: /[\\^_]/,\n text: /[^{$}\\s~\\\\^_]+/\n })\n});\n\nfunction flattenConsString(string) {\n string[0];\n return string;\n}\n\nfunction applyFormatting(text, format) {\n if (format in constants.formatting) {\n return text && constants.formatting[format].join(text);\n } else {\n return text;\n }\n}\n\nconst valueGrammar = new _core.util.Grammar({\n String() {\n let output = '';\n\n while (!this.matchEndOfFile()) {\n output += this.consumeRule('Text');\n }\n\n return flattenConsString(output);\n },\n\n StringNames() {\n const list = [];\n\n while (true) {\n this.consumeToken('whitespace', true);\n list.push(this.consumeRule('Name'));\n this.consumeToken('whitespace', true);\n\n if (this.matchEndOfFile()) {\n return list;\n } else {\n this.consumeToken('and');\n }\n }\n },\n\n Name() {\n const pieces = [];\n\n while (true) {\n pieces.push(this.consumeRule('NamePiece'));\n\n if (this.matchEndOfFile() || this.matchToken('and')) {\n return (0, _name.orderNamePieces)(pieces);\n } else {\n this.consumeToken('comma');\n this.consumeToken('whitespace', true);\n }\n }\n },\n\n NamePiece() {\n const parts = [];\n\n while (true) {\n const part = this.consumeRule('NameToken');\n\n if (part.label) {\n part.label = (0, _name.formatNameParts)([...parts, {\n value: part.label\n }]);\n return [part];\n }\n\n parts.push(part);\n\n if (this.matchEndOfFile() || this.matchToken('and') || this.matchToken('comma')) {\n return parts;\n } else {\n while (this.matchToken('hyphen') || this.matchToken('whitespace')) {\n this.consumeToken();\n }\n }\n }\n },\n\n NameToken() {\n let upperCase = null;\n let value = '';\n\n while (true) {\n if (upperCase === null && this.matchToken('text')) {\n const text = this.consumeToken().value;\n value += text;\n upperCase = (0, _name.getStringCase)(text);\n } else if (this.matchEndOfFile() || this.matchToken('and') || this.matchToken('comma') || this.matchToken('whitespace')) {\n return {\n value,\n upperCase\n };\n } else if (this.matchToken('hyphen')) {\n return {\n value,\n upperCase,\n hyphenated: true\n };\n } else if (this.matchToken('equals')) {\n this.consumeToken('equals');\n const text = this.consumeRule('NamePiece');\n\n if (text[0].label) {\n value += '=' + text[0].label;\n }\n\n return {\n value: (0, _name.formatNameParts)(text),\n label: value\n };\n } else {\n value += this.consumeRule('Text');\n }\n }\n },\n\n StringList() {\n const list = [];\n\n while (!this.matchEndOfFile()) {\n let output = '';\n\n while (!this.matchEndOfFile() && !this.matchToken('and')) {\n output += this.consumeRule('Text');\n }\n\n list.push(flattenConsString(output));\n this.consumeToken('and', true);\n }\n\n return list.length === 1 ? list[0] : list;\n },\n\n StringSeparated() {\n const list = [];\n\n while (!this.matchEndOfFile()) {\n let output = '';\n\n while (!this.matchEndOfFile() && !this.matchToken('comma')) {\n output += this.consumeRule('Text');\n }\n\n list.push(output.trim());\n this.consumeToken('comma', true);\n this.consumeToken('whitespace', true);\n }\n\n return list;\n },\n\n StringVerbatim() {\n let output = '';\n\n while (!this.matchEndOfFile()) {\n output += this.consumeToken().text;\n }\n\n return flattenConsString(output);\n },\n\n StringUri() {\n const uri = this.consumeRule('StringVerbatim');\n\n try {\n if (decodeURI(uri) === uri) {\n return encodeURI(uri);\n } else {\n return uri;\n }\n } catch (e) {\n return encodeURI(uri);\n }\n },\n\n StringTitleCase() {\n this.state.sentenceCase = true;\n let output = '';\n\n while (!this.matchEndOfFile()) {\n output += this.consumeRule('Text');\n }\n\n return flattenConsString(output);\n },\n\n BracketString() {\n var _this$state;\n\n let output = '';\n this.consumeToken('lbrace');\n const sentenceCase = this.state.sentenceCase;\n this.state.sentenceCase = sentenceCase && this.matchToken('command');\n (_this$state = this.state).partlyLowercase && (_this$state.partlyLowercase = this.state.sentenceCase);\n\n while (!this.matchToken('rbrace')) {\n output += this.consumeRule('Text');\n }\n\n const topLevel = sentenceCase && !this.state.sentenceCase;\n const protectCase = topLevel && this.state.partlyLowercase;\n this.state.sentenceCase = sentenceCase;\n this.consumeToken('rbrace');\n return protectCase ? applyFormatting(output, 'nocase') : output;\n },\n\n MathString() {\n let output = '';\n this.consumeToken('mathShift');\n\n while (!this.matchToken('mathShift')) {\n if (this.matchToken('script')) {\n const script = this.consumeToken('script').value;\n const text = this.consumeRule('Text').split('');\n\n if (text.every(char => char in constants.mathScripts[script])) {\n output += text.map(char => constants.mathScripts[script][char]).join('');\n } else {\n const formatName = constants.mathScriptFormatting[script];\n output += constants.formatting[formatName].join(text.join(''));\n }\n\n continue;\n }\n\n if (this.matchToken('command')) {\n const command = this.token.value;\n\n if (command in constants.mathScriptFormatting) {\n this.consumeToken('command');\n const text = this.consumeRule('BracketString');\n output += applyFormatting(text, constants.mathScriptFormatting[command]);\n continue;\n }\n }\n\n output += this.consumeRule('Text');\n }\n\n this.consumeToken('mathShift');\n return output;\n },\n\n Text() {\n if (this.matchToken('lbrace')) {\n return this.consumeRule('BracketString');\n } else if (this.matchToken('mathShift')) {\n return this.consumeRule('MathString');\n } else if (this.matchToken('whitespace')) {\n return this.consumeToken('whitespace').value;\n } else if (this.matchToken('commandBegin')) {\n return this.consumeRule('EnclosedEnv');\n } else if (this.matchToken('command')) {\n return this.consumeRule('Command');\n }\n\n const text = this.consumeToken('text').value.replace(constants.ligaturePattern, ligature => constants.ligatures[ligature]);\n const afterPunctuation = this.state.afterPunctuation;\n this.state.afterPunctuation = /[?!.:]$/.test(text);\n\n if (!this.state.sentenceCase) {\n var _this$state2;\n\n (_this$state2 = this.state).partlyLowercase || (_this$state2.partlyLowercase = text === text.toLowerCase() && text !== text.toUpperCase());\n return text;\n }\n\n const [first, ...otherCharacters] = text;\n const rest = otherCharacters.join('');\n const restLowerCase = rest.toLowerCase();\n\n if (rest !== restLowerCase) {\n return text;\n }\n\n if (!afterPunctuation) {\n return text.toLowerCase();\n }\n\n return first + restLowerCase;\n },\n\n Command() {\n const commandToken = this.consumeToken('command');\n const command = commandToken.value;\n\n if (command in constants.formattingEnvs) {\n const text = this.consumeRule('Env');\n const format = constants.formattingEnvs[command];\n return applyFormatting(text, format);\n } else if (command in constants.formattingCommands) {\n const text = this.consumeRule('BracketString');\n const format = constants.formattingCommands[command];\n return applyFormatting(text, format);\n } else if (command in constants.commands) {\n return constants.commands[command];\n } else if (command in constants.diacritics && !this.matchEndOfFile()) {\n const text = this.consumeRule('Text');\n const diacritic = text[0] + constants.diacritics[command];\n return diacritic.normalize('NFC') + text.slice(1);\n } else if (command in constants.argumentCommands) {\n const func = constants.argumentCommands[command];\n const args = [];\n let arity = func.length;\n\n while (arity-- > 0) {\n this.consumeToken('whitespace', true);\n args.push(this.consumeRule('BracketString'));\n }\n\n return func(...args);\n } else if (/^[&%$#_{}]$/.test(command)) {\n return commandToken.text.slice(1);\n } else {\n return commandToken.text;\n }\n },\n\n Env() {\n let output = '';\n\n while (!this.matchEndOfFile() && !this.matchToken('rbrace')) {\n output += this.consumeRule('Text');\n }\n\n return output;\n },\n\n EnclosedEnv() {\n this.consumeToken('commandBegin');\n const beginEnv = this.consumeRule('BracketString');\n let output = '';\n\n while (!this.matchToken('commandEnd')) {\n output += this.consumeRule('Text');\n }\n\n const end = this.consumeToken('commandEnd');\n const endEnv = this.consumeRule('BracketString');\n\n if (beginEnv !== endEnv) {\n throw new SyntaxError(this.lexer.formatError(end, `environment started with \"${beginEnv}\", ended with \"${endEnv}\"`));\n }\n\n return applyFormatting(output, constants.formattingEnvs[beginEnv]);\n }\n\n}, {\n sentenceCase: false,\n partlyLowercase: false,\n afterPunctuation: true\n});\nexports.valueGrammar = valueGrammar;\n\nfunction singleLanguageIsEnglish(language) {\n return constants.sentenceCaseLanguages.includes(language.toLowerCase());\n}\n\nfunction isEnglish(languages) {\n if (Array.isArray(languages)) {\n return languages.every(singleLanguageIsEnglish);\n }\n\n return singleLanguageIsEnglish(languages);\n}\n\nfunction getMainRule(fieldType, languages) {\n if (fieldType[1] === 'name') {\n return fieldType[0] === 'list' ? 'StringNames' : 'Name';\n }\n\n if (fieldType[1] === 'title') {\n const option = _config.default.parse.sentenceCase;\n\n if (option === 'always' || option === 'english' && isEnglish(languages)) {\n return 'StringTitleCase';\n } else {\n return 'String';\n }\n }\n\n switch (fieldType[0] === 'field' ? fieldType[1] : fieldType[0]) {\n case 'list':\n return 'StringList';\n\n case 'separated':\n return 'StringSeparated';\n\n case 'verbatim':\n return 'StringVerbatim';\n\n case 'uri':\n return 'StringUri';\n\n case 'title':\n case 'literal':\n default:\n return 'String';\n }\n}\n\nfunction getLexerState(fieldType) {\n if (fieldType[1] === 'name') {\n return 'namesLiteral';\n }\n\n switch (fieldType[0]) {\n case 'list':\n return 'listLiteral';\n\n case 'separated':\n return 'separatedLiteral';\n\n case 'field':\n default:\n return 'stringLiteral';\n }\n}\n\nfunction parse(text, field, languages = []) {\n const fieldType = constants.fieldTypes[field] || [];\n return valueGrammar.parse(lexer.reset(text, {\n state: getLexerState(fieldType),\n line: 0,\n col: 0\n }), getMainRule(fieldType, languages));\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _core = require(\"@citation-js/core\");\n\nvar _date = require(\"@citation-js/date\");\n\nvar _biblatexTypes = _interopRequireDefault(require(\"./biblatexTypes.json\"));\n\nvar _shared = require(\"./shared.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nconst nonSpec = [{\n source: 'note',\n target: 'accessed',\n when: {\n source: false,\n target: {\n note: false\n }\n },\n convert: {\n toSource(accessed) {\n return `[Online; accessed ${(0, _date.format)(accessed)}]`;\n }\n\n }\n}, {\n source: 'numpages',\n target: 'number-of-pages',\n when: {\n source: {\n pagetotal: false\n },\n target: false\n }\n}, {\n source: 'pmid',\n target: 'PMID',\n when: {\n source: {\n eprinttype(type) {\n return type !== 'pmid';\n },\n\n archiveprefix(type) {\n return type !== 'pmid';\n }\n\n },\n target: false\n }\n}, {\n source: 'pmcid',\n target: 'PMCID',\n when: {\n target: false\n }\n}];\nconst aliases = [{\n source: 'annote',\n target: 'annote',\n when: {\n source: {\n annotation: false\n },\n target: false\n }\n}, {\n source: 'address',\n target: 'publisher-place',\n convert: _shared.Converters.PICK,\n when: {\n source: {\n location: false\n },\n target: false\n }\n}, {\n source: ['eprint', 'archiveprefix'],\n target: 'PMID',\n convert: _shared.Converters.EPRINT,\n when: {\n source: {\n eprinttype: false\n },\n target: false\n }\n}, {\n source: 'journal',\n target: 'container-title',\n when: {\n source: {\n maintitle: false,\n booktitle: false,\n journaltitle: false\n },\n target: false\n }\n}, {\n source: 'school',\n target: 'publisher',\n convert: _shared.Converters.PICK,\n when: {\n source: {\n institution: false,\n organization: false,\n publisher: false\n },\n target: false\n }\n}];\n\nvar _default = new _core.util.Translator([...aliases, ...nonSpec, {\n source: 'abstract',\n target: 'abstract'\n}, {\n source: 'urldate',\n target: 'accessed',\n convert: _shared.Converters.DATE\n}, {\n source: 'annotation',\n target: 'annote'\n}, {\n source: 'author',\n target: 'author',\n convert: _shared.Converters.NAMES\n}, {\n source: 'library',\n target: 'call-number'\n}, {\n source: 'chapter',\n target: 'chapter-number'\n}, {\n source: 'bookauthor',\n target: 'container-author',\n convert: _shared.Converters.NAMES\n}, {\n source: ['maintitle', 'mainsubtitle', 'maintitleaddon'],\n target: 'container-title',\n when: {\n source: true,\n target: {\n 'number-of-volumes': true\n }\n },\n convert: _shared.Converters.TITLE\n}, {\n source: ['booktitle', 'booksubtitle', 'booktitleaddon'],\n target: 'container-title',\n when: {\n source: {\n maintitle: false\n },\n target: {\n 'number-of-volumes': false,\n\n type(type) {\n return !type.startsWith('article');\n }\n\n }\n },\n convert: _shared.Converters.TITLE\n}, {\n source: ['journaltitle', 'journalsubtitle', 'journaltitleaddon'],\n target: 'container-title',\n when: {\n source: {\n [_shared.TYPE]: 'article'\n },\n target: {\n type: ['article', 'article-newspaper', 'article-journal', 'article-magazine']\n }\n },\n convert: _shared.Converters.TITLE\n}, {\n source: 'shortjournal',\n target: 'container-title-short',\n when: {\n source: {\n [_shared.TYPE]: 'article'\n },\n target: {\n type: ['article', 'article-newspaper', 'article-journal', 'article-magazine']\n }\n }\n}, {\n source: 'shortjournal',\n target: 'journalAbbreviation',\n when: {\n source: false,\n target: {\n 'container-title-short': false\n }\n }\n}, {\n source: 'number',\n target: 'collection-number',\n when: {\n source: {\n [_shared.TYPE]: ['book', 'mvbook', 'inbook', 'bookinbook', 'suppbook', 'collection', 'mvcollection', 'incollection', 'suppcollection', 'manual', 'suppperiodical', 'proceedings', 'mvproceedings', 'refererence']\n },\n target: {\n type: ['bill', 'book', 'broadcast', 'chapter', 'dataset', 'entry', 'entry-dictionary', 'entry-encyclopedia', 'figure', 'graphic', 'interview', 'legislation', 'legal_case', 'manuscript', 'map', 'motion_picture', 'musical_score', 'pamphlet', 'post', 'post-weblog', 'personal_communication', 'review', 'review-book', 'song', 'speech', 'thesis', 'treaty', 'webpage']\n }\n }\n}, {\n source: 'series',\n target: 'collection-title'\n}, {\n source: 'shortseries',\n target: 'collection-title-short'\n}, {\n source: 'doi',\n target: 'DOI'\n}, {\n source: 'edition',\n target: 'edition'\n}, {\n source: 'editor',\n target: 'editor',\n convert: _shared.Converters.NAMES\n}, {\n source: [_shared.TYPE, 'entrysubtype', 'type'],\n target: ['type', 'genre'],\n convert: {\n toTarget(type, subtype, typeKey) {\n if (!typeKey) {\n if (type === 'masterthesis') {\n typeKey = 'mathesis';\n }\n\n if (type === 'phdthesis') {\n typeKey = 'phdthesis';\n }\n\n if (type === 'techreport') {\n typeKey = 'techreport';\n }\n }\n\n return [_biblatexTypes.default.source[type] || 'book', typeKey || subtype];\n },\n\n toSource(type, genre) {\n const sourceType = _biblatexTypes.default.target[type] || 'misc';\n return genre in _shared.TYPE_KEYS ? [sourceType, undefined, genre] : [sourceType, genre];\n }\n\n }\n}, {\n source: _shared.TYPE,\n when: {\n target: {\n type: false\n }\n },\n convert: {\n toSource() {\n return 'misc';\n }\n\n }\n}, {\n source: 'eventdate',\n target: 'event-date',\n convert: _shared.Converters.DATE\n}, {\n source: 'venue',\n target: 'event-place'\n}, {\n source: 'eventtitle',\n target: 'event'\n}, {\n source: _shared.LABEL,\n target: ['id', 'citation-label', 'author', 'issued', 'year-suffix', 'title'],\n convert: _shared.Converters.LABEL\n}, {\n source: 'isbn',\n target: 'ISBN'\n}, {\n source: 'issn',\n target: 'ISSN'\n}, {\n source: 'issue',\n target: 'issue',\n when: {\n source: {\n number: false,\n [_shared.TYPE]: ['article', 'periodical']\n },\n target: {\n issue(issue) {\n return typeof issue === 'string' && !issue.match(/\\d+/);\n },\n\n type: ['article', 'article-journal', 'article-newspaper', 'article-magazine']\n }\n }\n}, {\n source: 'number',\n target: 'issue',\n when: {\n source: {\n [_shared.TYPE]: ['article', 'periodical', 'inproceedings']\n },\n target: {\n issue(issue) {\n return issue && (typeof issue === 'number' || issue.match(/\\d+/));\n },\n\n type: ['article', 'article-journal', 'article-newspaper', 'article-magazine', 'paper-conference']\n }\n }\n}, {\n source: 'date',\n target: 'issued',\n convert: _shared.Converters.DATE\n}, {\n source: ['year', 'month', 'day'],\n target: 'issued',\n convert: _shared.Converters.YEAR_MONTH,\n when: {\n source: {\n date: false\n },\n target: false\n }\n}, {\n source: 'location',\n target: 'jurisdiction',\n when: {\n source: {\n type: 'patent'\n },\n target: {\n type: 'patent'\n }\n }\n}, {\n source: 'keywords',\n target: 'keyword',\n convert: _shared.Converters.KEYWORDS\n}, {\n source: 'language',\n target: 'language',\n convert: _shared.Converters.PICK\n}, {\n source: 'note',\n target: 'note'\n}, {\n source: ['isan', 'ismn', 'isrn', 'iswc'],\n target: 'number',\n convert: _shared.Converters.STANDARD_NUMBERS,\n when: {\n source: {\n [_shared.TYPE](type) {\n return type !== 'patent';\n }\n\n },\n target: {\n type(type) {\n return type !== 'patent';\n }\n\n }\n }\n}, {\n source: 'number',\n target: 'number',\n when: {\n source: {\n [_shared.TYPE]: ['patent', 'report', 'techreport', 'legislation']\n },\n target: {\n type: ['patent', 'report', 'legislation']\n }\n }\n}, {\n source: 'origdate',\n target: 'original-date',\n convert: _shared.Converters.DATE\n}, {\n source: 'origlocation',\n target: 'original-publisher-place',\n convert: _shared.Converters.PICK\n}, {\n source: 'origpublisher',\n target: 'original-publisher',\n convert: _shared.Converters.PICK\n}, {\n source: 'origtitle',\n target: 'original-title'\n}, {\n source: ['pages', 'eid'],\n target: 'page',\n convert: {\n toTarget(pages, eid) {\n return eid ? eid.replace(/^e?/i, 'e') : pages.replace(/[–—]/, '-');\n },\n\n toSource(page) {\n return /^e/i.test(page) ? [page, page] : [page.replace('-', '--')];\n }\n\n }\n}, {\n source: 'pagetotal',\n target: 'number-of-pages'\n}, {\n source: ['eprint', 'eprinttype'],\n target: 'PMID',\n convert: _shared.Converters.EPRINT\n}, {\n source: 'location',\n target: 'publisher-place',\n convert: _shared.Converters.PICK\n}, {\n source: 'publisher',\n target: 'publisher',\n convert: _shared.Converters.PICK,\n when: {\n source: true,\n target: {\n type: ['article', 'article-journal', 'article-magazine', 'article-newspaper', 'bill', 'book', 'broadcast', 'chapter', 'dataset', 'entry', 'entry-dictionary', 'entry-encyclopedia', 'figure', 'graphic', 'interview', 'legal_case', 'legislation', 'manuscript', 'map', 'motion_picture', 'musical_score', 'pamphlet', 'paper-conference', 'patent', 'personal_communication', 'post', 'post-weblog', 'regulation', 'review', 'review-book', 'song', 'speech', 'treaty']\n }\n }\n}, {\n source: 'organization',\n target: 'publisher',\n convert: _shared.Converters.PICK,\n when: {\n source: {\n publisher: false\n },\n target: {\n type: 'webpage'\n }\n }\n}, {\n source: 'institution',\n target: 'publisher',\n convert: _shared.Converters.PICK,\n when: {\n source: {\n publisher: false,\n organization: false\n },\n target: {\n type: ['report', 'thesis']\n }\n }\n}, {\n source: 'howpublished',\n target: 'publisher',\n convert: _shared.Converters.PICK,\n when: {\n source: {\n publisher: false,\n organization: false,\n institution: false\n },\n target: {\n type: 'manuscript'\n }\n }\n}, {\n source: ['pages', 'bookpagination'],\n target: 'section',\n when: {\n source: {\n bookpagination: 'section'\n },\n target: {\n page: false\n }\n },\n convert: {\n toTarget(section) {\n return section;\n },\n\n toSource(section) {\n return [section, 'section'];\n }\n\n }\n}, {\n source: 'pubstate',\n target: 'status',\n convert: _shared.Converters.STATUS\n}, {\n source: 'shorttitle',\n target: 'title-short'\n}, {\n source: ['title', 'subtitle', 'titleaddon'],\n target: 'title',\n convert: _shared.Converters.TITLE\n}, {\n source: 'translator',\n target: 'translator',\n convert: _shared.Converters.NAMES\n}, {\n source: 'url',\n target: 'URL'\n}, {\n source: 'howpublished',\n target: 'URL',\n convert: _shared.Converters.HOW_PUBLISHED,\n when: {\n source: {\n url: false\n },\n target: false\n }\n}, {\n source: 'version',\n target: 'version'\n}, {\n source: 'volume',\n target: 'volume'\n}, {\n source: 'volumes',\n target: 'number-of-volumes'\n}]);\n\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _core = require(\"@citation-js/core\");\n\nvar _date = require(\"@citation-js/date\");\n\nvar _bibtexTypes = _interopRequireDefault(require(\"./bibtexTypes.json\"));\n\nvar _shared = require(\"./shared.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _default = new _core.util.Translator([{\n source: 'note',\n target: 'accessed',\n when: {\n source: false,\n target: {\n note: false\n }\n },\n convert: {\n toSource(accessed) {\n return `[Online; accessed ${(0, _date.format)(accessed)}]`;\n }\n\n }\n}, {\n source: 'annote',\n target: 'annote'\n}, {\n source: 'address',\n target: 'publisher-place',\n convert: _shared.Converters.PICK\n}, {\n source: 'author',\n target: 'author',\n convert: _shared.Converters.NAMES\n}, {\n source: 'chapter',\n target: 'chapter-number'\n}, {\n source: 'number',\n target: 'collection-number',\n when: {\n source: {\n [_shared.TYPE]: ['book', 'mvbook', 'inbook', 'collection', 'mvcollection', 'incollection', 'suppcollection', 'manual', 'suppperiodical', 'proceedings', 'mvproceedings', 'refererence']\n },\n target: {\n type: ['bill', 'book', 'broadcast', 'chapter', 'dataset', 'entry', 'entry-dictionary', 'entry-encyclopedia', 'figure', 'graphic', 'interview', 'legislation', 'legal_case', 'manuscript', 'map', 'motion_picture', 'musical_score', 'pamphlet', 'post', 'post-weblog', 'personal_communication', 'review', 'review-book', 'song', 'speech', 'thesis', 'treaty', 'webpage']\n }\n }\n}, {\n source: 'series',\n target: 'collection-title'\n}, {\n source: 'booktitle',\n target: 'container-title',\n when: {\n target: {\n type: ['chapter', 'paper-conference']\n }\n }\n}, {\n source: 'journal',\n target: 'container-title',\n when: {\n source: {\n [_shared.TYPE]: 'article'\n },\n target: {\n type: ['article', 'article-newspaper', 'article-journal', 'article-magazine']\n }\n }\n}, {\n source: 'edition',\n target: 'edition'\n}, {\n source: 'editor',\n target: 'editor',\n convert: _shared.Converters.NAMES\n}, {\n source: _shared.LABEL,\n target: ['id', 'citation-label', 'author', 'issued', 'year-suffix', 'title'],\n convert: _shared.Converters.LABEL\n}, {\n source: 'number',\n target: 'issue',\n when: {\n source: {\n [_shared.TYPE]: ['article', 'periodical', 'inproceedings']\n },\n target: {\n issue(issue) {\n return typeof issue === 'number' || typeof issue === 'string' && issue.match(/\\d+/);\n },\n\n type: ['article', 'article-journal', 'article-newspaper', 'article-magazine', 'paper-conference']\n }\n }\n}, {\n source: ['year', 'month', 'day'],\n target: 'issued',\n convert: _shared.Converters.YEAR_MONTH\n}, {\n source: 'note',\n target: 'note'\n}, {\n source: 'number',\n target: 'number',\n when: {\n source: {\n [_shared.TYPE]: ['patent', 'report', 'techreport']\n },\n target: {\n type: ['patent', 'report']\n }\n }\n}, {\n source: 'pages',\n target: 'page',\n convert: {\n toTarget(text) {\n return text.replace(/[–—]/, '-');\n },\n\n toSource(text) {\n return text.replace('-', '--');\n }\n\n }\n}, {\n source: 'publisher',\n target: 'publisher',\n convert: _shared.Converters.PICK,\n when: {\n target: {\n type: ['article', 'article-journal', 'article-magazine', 'article-newspaper', 'bill', 'book', 'broadcast', 'chapter', 'dataset', 'entry', 'entry-dictionary', 'entry-encyclopedia', 'figure', 'graphic', 'interview', 'legal_case', 'legislation', 'map', 'motion_picture', 'musical_score', 'pamphlet', 'patent', 'personal_communication', 'post', 'post-weblog', 'review', 'review-book', 'song', 'speech', 'treaty', 'webpage']\n }\n }\n}, {\n source: 'organization',\n target: 'publisher',\n convert: _shared.Converters.PICK,\n when: {\n source: {\n publisher: false\n },\n target: {\n type: 'paper-conference'\n }\n }\n}, {\n source: 'institution',\n target: 'publisher',\n convert: _shared.Converters.PICK,\n when: {\n source: {\n publisher: false,\n organization: false\n },\n target: {\n type: 'report'\n }\n }\n}, {\n source: 'school',\n target: 'publisher',\n convert: _shared.Converters.PICK,\n when: {\n source: {\n institution: false,\n organization: false,\n publisher: false\n },\n target: {\n type: 'thesis'\n }\n }\n}, {\n source: 'howpublished',\n target: 'publisher',\n convert: _shared.Converters.PICK,\n when: {\n source: {\n publisher: false,\n organization: false,\n institution: false,\n school: false\n },\n target: {\n type: 'manuscript'\n }\n }\n}, {\n source: 'title',\n target: 'title'\n}, {\n source: [_shared.TYPE, 'type'],\n target: ['type', 'genre'],\n convert: {\n toTarget(sourceType, subType) {\n const type = _bibtexTypes.default.source[sourceType] || 'book';\n\n if (subType) {\n return [type, subType];\n } else if (sourceType === 'mastersthesis') {\n return [type, 'Master\\'s thesis'];\n } else if (sourceType === 'phdthesis') {\n return [type, 'PhD thesis'];\n } else {\n return [type];\n }\n },\n\n toSource(targetType, genre) {\n const type = _bibtexTypes.default.target[targetType] || 'misc';\n\n if (/^(master'?s|diploma) thesis$/i.test(genre)) {\n return ['mastersthesis'];\n } else if (/^(phd|doctoral) thesis$/i.test(genre)) {\n return ['phdthesis'];\n } else {\n return [type, genre];\n }\n }\n\n }\n}, {\n source: _shared.TYPE,\n when: {\n target: {\n type: false\n }\n },\n convert: {\n toSource() {\n return 'misc';\n }\n\n }\n}, {\n source: 'howpublished',\n target: 'URL',\n convert: _shared.Converters.HOW_PUBLISHED,\n when: {\n target: {\n publisher: false\n }\n }\n}, {\n source: 'volume',\n target: 'volume'\n}]);\n\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.format = format;\nexports.formatBibtex = formatBibtex;\nexports.parse = parse;\nexports.parseBibtex = parseBibtex;\n\nvar _shared = require(\"./shared.js\");\n\nvar _biblatex = _interopRequireDefault(require(\"./biblatex.js\"));\n\nvar _bibtex = _interopRequireDefault(require(\"./bibtex.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction crossref(entry, registry) {\n if (entry.crossref in registry) {\n const parent = registry[entry.crossref].properties;\n\n if (parent === entry) {\n return entry;\n }\n\n return Object.assign({}, crossref(parent, registry), entry);\n }\n\n return entry;\n}\n\nfunction _parse(input, spec) {\n const registry = {};\n\n for (const entry of input) {\n registry[entry.label] = entry;\n }\n\n return input.map(({\n type,\n label,\n properties\n }) => spec.convertToTarget(_objectSpread({\n [_shared.TYPE]: type,\n [_shared.LABEL]: label\n }, crossref(properties, registry))));\n}\n\nfunction _format(input, spec) {\n return input.map(entry => {\n const _spec$convertToSource = spec.convertToSource(entry),\n {\n [_shared.TYPE]: type,\n [_shared.LABEL]: label\n } = _spec$convertToSource,\n properties = _objectWithoutProperties(_spec$convertToSource, [_shared.TYPE, _shared.LABEL].map(_toPropertyKey));\n\n return {\n type,\n label,\n properties\n };\n });\n}\n\nfunction parseBibtex(input) {\n return _parse(input, _bibtex.default);\n}\n\nfunction formatBibtex(input) {\n return _format(input, _bibtex.default);\n}\n\nfunction parse(input) {\n return _parse(input, _biblatex.default);\n}\n\nfunction format(input) {\n return _format(input, _biblatex.default);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.TYPE_KEYS = exports.TYPE = exports.STANDARD_NUMBERS_PATTERN = exports.MONTHS = exports.LABEL = exports.Converters = void 0;\nexports.formatLabel = formatLabel;\nexports.parseDate = parseDate;\nexports.parseMonth = parseMonth;\n\nvar _core = require(\"@citation-js/core\");\n\nvar _config = _interopRequireDefault(require(\"../config.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nconst stopWords = new Set(['the', 'a', 'an']);\nconst unsafeChars = /(?:<\\/?.*?>|[\\u0020-\\u002F\\u003A-\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F])+/g;\nconst unicode = /[^\\u0020-\\u007F]+/g;\n\nfunction firstWord(text) {\n if (!text) {\n return '';\n } else {\n return text.normalize('NFKD').replace(unicode, '').split(unsafeChars).find(word => word.length && !stopWords.has(word.toLowerCase()));\n }\n}\n\nconst name = new _core.util.Translator([{\n source: 'given',\n target: 'given'\n}, {\n source: 'family',\n target: 'family'\n}, {\n source: 'suffix',\n target: 'suffix'\n}, {\n source: 'prefix',\n target: 'non-dropping-particle'\n}, {\n source: 'family',\n target: 'literal',\n when: {\n source: false,\n target: {\n family: false,\n given: false\n }\n }\n}]);\nconst months = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'];\nconst TYPE = 'BibTeX type';\nexports.TYPE = TYPE;\nconst LABEL = 'BibTeX label';\nexports.LABEL = LABEL;\nconst MONTHS = {\n jan: 1,\n feb: 2,\n mar: 3,\n apr: 4,\n may: 5,\n jun: 6,\n jul: 7,\n aug: 8,\n sep: 9,\n oct: 10,\n nov: 11,\n dec: 12,\n january: 1,\n february: 2,\n march: 3,\n april: 4,\n may: 5,\n june: 6,\n july: 7,\n august: 8,\n september: 9,\n october: 10,\n november: 11,\n december: 12\n};\nexports.MONTHS = MONTHS;\nconst TYPE_KEYS = {\n bathesis: 'Bachelor\\'s thesis',\n mathesis: 'Master\\'s thesis',\n phdthesis: 'PhD thesis',\n candthesis: 'Candidate thesis',\n techreport: 'technical report',\n resreport: 'research report',\n software: 'computer software',\n datacd: 'data cd',\n audiocd: 'audio cd',\n patent: 'patent',\n patentde: 'German patent',\n patenteu: 'European patent',\n patentfr: 'French patent',\n patentuk: 'British patent',\n patentus: 'U.S. patent',\n patreq: 'patent request',\n patreqde: 'German patent request',\n patreqeu: 'European patent request',\n patreqfr: 'French patent request',\n patrequk: 'British patent request',\n patrequs: 'U.S. patent request'\n};\nexports.TYPE_KEYS = TYPE_KEYS;\nconst STANDARD_NUMBERS_PATTERN = /(^(?:ISAN )?(?:[0-9a-f]{4}-){4}[0-9a-z](?:-(?:[0-9a-f]{4}-){2}[0-9a-z])?$)|(^(?:979-?0-?|M-?)(?:\\d{9}|(?=[\\d-]{11}$)\\d+-\\d+-\\d)$)|(^ISRN .{1,36}$)|(^(?:ISWC )?T-?\\d{9}-?\\d$)/i;\nexports.STANDARD_NUMBERS_PATTERN = STANDARD_NUMBERS_PATTERN;\n\nfunction parseDate(date) {\n const parts = date.split('T')[0].replace(/[?~%]$/, '').split('-');\n const year = +parts[0].replace(/^Y(?=-?\\d{4}\\d+)/, '').replace(/X/g, '0');\n const month = +parts[1];\n const day = +parts[2];\n\n if (!month || month > 20) {\n return [year];\n } else if (!day) {\n return [year, month];\n } else {\n return [year, month, day];\n }\n}\n\nfunction parseMonth(value) {\n if (value == null) {\n return [];\n }\n\n if (+value) {\n return [parseInt(value, 10)];\n }\n\n value = value.trim().toLowerCase();\n\n if (value in MONTHS) {\n return [MONTHS[value]];\n }\n\n const parts = value.split(/\\s+/);\n let month;\n let day;\n\n if (parts[0] in MONTHS) {\n month = MONTHS[parts[0]];\n day = parseInt(parts[1]);\n } else if (parts[1] in MONTHS) {\n month = MONTHS[parts[1]];\n day = parseInt(parts[0]);\n }\n\n return day ? [month, day] : month ? [month] : [];\n}\n\nfunction formatLabel(author, issued, suffix, title) {\n let label = '';\n\n if (author && author[0]) {\n label += firstWord(author[0].family || author[0].literal);\n }\n\n if (issued && issued['date-parts'] && issued['date-parts'][0]) {\n label += issued['date-parts'][0][0];\n }\n\n if (suffix) {\n label += suffix;\n } else if (title) {\n label += firstWord(title);\n }\n\n return label;\n}\n\nconst Converters = {\n PICK: {\n toTarget(...args) {\n return args.find(Boolean);\n },\n\n toSource(value) {\n return [value];\n }\n\n },\n DATE: {\n toTarget(date) {\n const parts = date.split('/').map(part => part && part !== '..' ? parseDate(part) : undefined);\n return isNaN(parts[0][0]) ? {\n literal: date\n } : {\n 'date-parts': parts\n };\n },\n\n toSource(date) {\n if ('date-parts' in date) {\n return date['date-parts'].map(datePart => datePart.map(datePart => datePart.toString().padStart(2, '0')).join('-')).join('/');\n }\n }\n\n },\n YEAR_MONTH: {\n toTarget(year, month, day) {\n if (isNaN(+year)) {\n return {\n literal: year\n };\n } else if (!isNaN(+day) && !isNaN(+month)) {\n return {\n 'date-parts': [[+year, +month, +day]]\n };\n } else {\n return {\n 'date-parts': [[+year, ...parseMonth(month)]]\n };\n }\n },\n\n toSource(date) {\n if ('date-parts' in date) {\n const [year, month, day] = date['date-parts'][0];\n return [year.toString(), month ? day ? `${months[month - 1]} ${day}` : month : undefined];\n } else {\n return [];\n }\n }\n\n },\n EPRINT: {\n toTarget(id, type) {\n if (type === 'pubmed') {\n return id;\n }\n },\n\n toSource(id) {\n return [id, 'pubmed'];\n }\n\n },\n HOW_PUBLISHED: {\n toTarget(howPublished) {\n if (howPublished.startsWith('http')) {\n return howPublished;\n }\n }\n\n },\n KEYWORDS: {\n toTarget(list) {\n return list.join(',');\n },\n\n toSource(list) {\n return list.split(',');\n }\n\n },\n LABEL: {\n toTarget(label) {\n return [label, label];\n },\n\n toSource(id, label, author, issued, suffix, title) {\n let safeId;\n\n if (id === null) {\n safeId = 'null';\n } else if (id === undefined) {\n safeId = 'undefined';\n } else {\n safeId = id.toString().replace(unsafeChars, '');\n }\n\n if (_config.default.format.useIdAsLabel) {\n return safeId;\n }\n\n if (label && !unsafeChars.test(label)) {\n return label;\n } else {\n return formatLabel(author, issued, suffix, title) || safeId;\n }\n }\n\n },\n NAMES: {\n toTarget(list) {\n return list.map(name.convertToTarget);\n },\n\n toSource(list) {\n return list.map(name.convertToSource);\n }\n\n },\n STANDARD_NUMBERS: {\n toTarget(...args) {\n return args.find(Boolean);\n },\n\n toSource(number) {\n const match = number.toString().match(STANDARD_NUMBERS_PATTERN);\n return match ? match.slice(1, 5) : [];\n }\n\n },\n STATUS: {\n toSource(state) {\n if (/^(inpreparation|submitted|forthcoming|inpress|prepublished)$/i.test(state)) {\n return state;\n }\n }\n\n },\n TITLE: {\n toTarget(title, subtitle, addon) {\n if (subtitle) {\n title += ': ' + subtitle;\n }\n\n return title;\n },\n\n toSource(title) {\n return [title];\n }\n\n }\n};\nexports.Converters = Converters;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.format = format;\n\nfunction formatEntry({\n type,\n label,\n properties\n}, dict) {\n const fields = Object.entries(properties).map(([field, value]) => dict.listItem.join(`${field} = {${value}},`));\n return dict.entry.join(`@${type}{${label},${dict.list.join(fields.join(''))}}`);\n}\n\nfunction format(src, dict) {\n const entries = src.map(entry => formatEntry(entry, dict)).join('');\n return dict.bibliographyContainer.join(entries);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.format = format;\n\nfunction formatEntry({\n type,\n label,\n properties\n}, dict) {\n const fields = Object.entries(properties).concat([['type', type]]).map(([field, value]) => dict.listItem.join(`${field}: ${value}`));\n return dict.entry.join(`[${label}]${dict.list.join(fields.join(''))}`);\n}\n\nfunction format(src, dict) {\n const entries = src.map(entry => formatEntry(entry, dict)).join('\\n');\n return dict.bibliographyContainer.join(entries);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.format = format;\nexports.formatBibtex = formatBibtex;\n\nvar _index = require(\"../mapping/index.js\");\n\nvar _value = require(\"./value.js\");\n\nfunction formatEntryValues({\n type,\n label,\n properties\n}) {\n const output = {};\n\n for (const property in properties) {\n const value = properties[property];\n output[property] = (0, _value.format)(property, value);\n }\n\n return {\n type,\n label,\n properties: output\n };\n}\n\nfunction format(entries) {\n return (0, _index.format)(entries).map(formatEntryValues);\n}\n\nfunction formatBibtex(entries) {\n return (0, _index.formatBibtex)(entries).map(formatEntryValues);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _core = require(\"@citation-js/core\");\n\nvar _entries = require(\"./entries.js\");\n\nvar _bibtex = require(\"./bibtex.js\");\n\nvar _bibtxt = require(\"./bibtxt.js\");\n\nconst factory = function (mapper, formatter) {\n return function (data, opts = {}) {\n const {\n type,\n format = type || 'text'\n } = opts;\n data = mapper(data);\n\n if (format === 'object') {\n return data;\n } else if (_core.plugins.dict.has(format)) {\n return formatter(data, _core.plugins.dict.get(format), opts);\n } else {\n throw new RangeError(`Output dictionary \"${format}\" not available`);\n }\n };\n};\n\nvar _default = {\n bibtex: factory(_entries.formatBibtex, _bibtex.format),\n biblatex: factory(_entries.format, _bibtex.format),\n bibtxt: factory(_entries.formatBibtex, _bibtxt.format)\n};\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.format = format;\n\nvar _constants = require(\"../input/constants.js\");\n\nconst unicode = {};\n\nfor (const command in _constants.commands) {\n unicode[_constants.commands[command]] = command;\n}\n\nfor (const diacritic in _constants.diacritics) {\n unicode[_constants.diacritics[diacritic]] = diacritic;\n}\n\nfor (const ligature in _constants.ligatures) {\n unicode[_constants.ligatures[ligature]] = ligature;\n}\n\nconst UNSAFE_UNICODE = /[^a-zA-Z0-9\\s!\"#%&'()*+,\\-./:;=?@[\\]{}\\u0300-\\u0308\\u030a-\\u030c\\u0332\\u0323\\u0327\\u0328\\u0361\\u0326]/g;\nconst DIACRITIC_PATTERN = /.[\\u0300-\\u0308\\u030a-\\u030c\\u0332\\u0323\\u0327\\u0328\\u0361\\u0326]+/g;\nconst listDelimiters = {\n separated: ',',\n list: ' and '\n};\nconst richTextMappings = {\n i: '\\\\textit{',\n b: '\\\\textbf{',\n sc: '\\\\textsc{',\n sup: '\\\\textsuperscript{',\n sub: '\\\\textsubscript{',\n 'span style=\"font-variant:small-caps;\"': '\\\\textsc{',\n 'span class=\"nocase\"': '{'\n};\n\nfunction escapeValue(value) {\n return value.normalize('NFKD').replace(UNSAFE_UNICODE, char => char in unicode ? unicode[char] in _constants.ligatures ? unicode[char] : `\\\\${unicode[char]}{}` : '').replace(DIACRITIC_PATTERN, match => Array.from(match).reduce((subject, diacritic) => `{\\\\${unicode[diacritic]} ${subject}}`));\n}\n\nfunction formatRichText(value) {\n const closingTags = [];\n let tokens = value.split(/<(\\/?(?:i|b|sc|sup|sub|span)|span .*?)>/g);\n tokens = tokens.map((token, index) => {\n if (index % 2 === 0) {\n return escapeValue(token);\n } else if (token in richTextMappings) {\n closingTags.push('/' + token.split(' ')[0]);\n return richTextMappings[token];\n } else if (token === closingTags[closingTags.length - 1]) {\n closingTags.pop();\n return '}';\n } else {\n return '';\n }\n });\n return tokens.join('');\n}\n\nfunction formatName(name) {\n if (name.family && !name.prefix && !name.given & !name.suffix) {\n return name.family.includes(listDelimiters.list) ? name.family : `{${name.family}}`;\n }\n\n const parts = [''];\n\n if (name.prefix && name.family) {\n parts[0] += name.prefix + ' ';\n }\n\n if (name.family) {\n parts[0] += name.family;\n }\n\n if (name.suffix) {\n parts.push(name.suffix);\n parts.push(name.given || '');\n } else {\n parts.push(name.given);\n }\n\n return escapeValue(parts.join(', ').trim());\n}\n\nfunction formatTitle(title) {\n return formatRichText(title).split(/(:\\s*)/).map((part, i) => i % 2 ? part : part.replace(/(?!^)\\b[a-z]*[A-Z].*?\\b/g, '{$&}')).join('');\n}\n\nfunction formatSingleValue(value, valueType) {\n switch (valueType) {\n case 'title':\n return formatTitle(value);\n\n case 'literal':\n return formatRichText(value.toString());\n\n case 'name':\n return formatName(value);\n\n case 'verbatim':\n case 'uri':\n return value.toString();\n\n default:\n return escapeValue(value.toString());\n }\n}\n\nfunction formatList(values, valueType, listType) {\n const delimiter = listDelimiters[listType];\n return values.map(value => {\n const formatted = formatSingleValue(value, valueType);\n return formatted.includes(delimiter) ? `{${formatted}}` : formatted;\n }).join(delimiter);\n}\n\nfunction format(field, value) {\n if (!(field in _constants.fieldTypes)) {\n return formatSingleValue(value, 'verbatim');\n }\n\n const [listType, valueType] = _constants.fieldTypes[field];\n\n if (listType in listDelimiters) {\n return formatList(value, valueType, listType);\n } else {\n return formatSingleValue(value, valueType);\n }\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"format\", {\n enumerable: true,\n get: function get() {\n return _output.default;\n }\n});\nObject.defineProperty(exports, \"parse\", {\n enumerable: true,\n get: function get() {\n return _input.default;\n }\n});\n\nvar _input = _interopRequireDefault(require(\"./input\"));\n\nvar _output = _interopRequireDefault(require(\"./output\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nconst monthMap = {\n jan: 1,\n feb: 2,\n mar: 3,\n apr: 4,\n may: 5,\n jun: 6,\n jul: 7,\n aug: 8,\n sep: 9,\n oct: 10,\n nov: 11,\n dec: 12\n};\nconst dateRangeDelimiters = / (?:to|[-/]) | ?(?:--|[–—]) ?/;\nconst dateRangePattern = /^(\\d{4}-\\d{2}-\\d{2})\\/(\\d{4}-\\d{2}-\\d{2})$/;\n\nfunction getMonth(monthName) {\n return monthMap[monthName.toLowerCase().slice(0, 3)];\n}\n\nfunction parseEpoch(date) {\n const epoch = new Date(date);\n\n if (typeof date === 'number' && !isNaN(epoch.valueOf())) {\n return [epoch.getFullYear(), epoch.getMonth() + 1, epoch.getDate()];\n } else {\n return null;\n }\n}\n\nconst parseIso8601 = function parseIso8601(date) {\n const pattern = /^(\\d{4}|[-+]\\d{6,})-(\\d{2})(?:-(\\d{2}))?/;\n\n if (typeof date !== 'string' || !pattern.test(date)) {\n return null;\n }\n\n const _date$match = date.match(pattern),\n _date$match2 = _slicedToArray(_date$match, 4),\n year = _date$match2[1],\n month = _date$match2[2],\n day = _date$match2[3];\n\n if (!+month) {\n return [year];\n } else if (!+day) {\n return [year, month];\n } else {\n return [year, month, day];\n }\n};\n\nconst parseRfc2822 = function parseRfc2822(date) {\n const pattern = /^(?:[a-z]{3},\\s*)?(\\d{1,2}) ([a-z]{3}) (\\d{4,})/i;\n\n if (typeof date !== 'string' || !pattern.test(date)) {\n return null;\n }\n\n let _date$match3 = date.match(pattern),\n _date$match4 = _slicedToArray(_date$match3, 4),\n day = _date$match4[1],\n month = _date$match4[2],\n year = _date$match4[3];\n\n month = getMonth(month);\n\n if (!month) {\n return null;\n }\n\n return [year, month, day];\n};\n\nfunction parseAmericanDay(date) {\n const pattern = /^(\\d{1,2})\\/(\\d{1,2})\\/(\\d{2}(?:\\d{2})?)/;\n\n if (typeof date !== 'string' || !pattern.test(date)) {\n return null;\n }\n\n const _date$match5 = date.match(pattern),\n _date$match6 = _slicedToArray(_date$match5, 4),\n month = _date$match6[1],\n day = _date$match6[2],\n year = _date$match6[3];\n\n const check = new Date(year, month, day);\n\n if (check.getMonth() === parseInt(month)) {\n return [year, month, day];\n } else {\n return null;\n }\n}\n\nfunction parseDay(date) {\n const pattern = /^(\\d{1,2})[ .\\-/](\\d{1,2}|[a-z]{3,10})[ .\\-/](-?\\d+)/i;\n const reversePattern = /^(-?\\d+)[ .\\-/](\\d{1,2}|[a-z]{3,10})[ .\\-/](\\d{1,2})/i;\n let year;\n let month;\n let day;\n\n if (typeof date !== 'string') {\n return null;\n } else if (pattern.test(date)) {\n var _date$match7 = date.match(pattern);\n\n var _date$match8 = _slicedToArray(_date$match7, 4);\n\n day = _date$match8[1];\n month = _date$match8[2];\n year = _date$match8[3];\n } else if (reversePattern.test(date)) {\n var _date$match9 = date.match(reversePattern);\n\n var _date$match10 = _slicedToArray(_date$match9, 4);\n\n year = _date$match10[1];\n month = _date$match10[2];\n day = _date$match10[3];\n } else {\n return null;\n }\n\n if (getMonth(month)) {\n month = getMonth(month);\n } else if (isNaN(month)) {\n return null;\n }\n\n return [year, month, day];\n}\n\nfunction parseMonth(date) {\n const pattern = /^([a-z]{3,10}|-?\\d+)[^\\w-]+([a-z]{3,10}|-?\\d+)$/i;\n\n if (typeof date === 'string' && pattern.test(date)) {\n const values = date.match(pattern).slice(1, 3);\n let month;\n\n if (getMonth(values[1])) {\n month = getMonth(values.pop());\n } else if (getMonth(values[0])) {\n month = getMonth(values.shift());\n } else if (values.some(isNaN) || values.every(value => +value < 0)) {\n return null;\n } else if (+values[0] < 0) {\n month = values.pop();\n } else if (+values[0] > +values[1] && +values[1] > 0) {\n month = values.pop();\n } else {\n month = values.shift();\n }\n\n const year = values.pop();\n return [year, month];\n } else {\n return null;\n }\n}\n\nfunction parseYear(date) {\n if (typeof date !== 'string') {\n return null;\n }\n\n const adBc = date.match(/^(\\d+) ?(a\\.?d\\.?|b\\.?c\\.?)$/i);\n\n if (adBc) {\n const _adBc$slice = adBc.slice(1),\n _adBc$slice2 = _slicedToArray(_adBc$slice, 2),\n date = _adBc$slice2[0],\n suffix = _adBc$slice2[1];\n\n return [date * (suffix.toLowerCase()[0] === 'a' ? 1 : -1)];\n } else if (/^-?\\d+$/.test(date)) {\n return [date];\n } else {\n return null;\n }\n}\n\nfunction parseDateParts(value) {\n const dateParts = parseEpoch(value) || parseIso8601(value) || parseRfc2822(value) || parseAmericanDay(value) || parseDay(value) || parseMonth(value) || parseYear(value);\n return dateParts && dateParts.map(string => parseInt(string));\n}\n\nfunction splitDateRange(range) {\n if (dateRangePattern.test(range)) {\n return range.match(dateRangePattern).slice(1, 3);\n } else {\n return range.split(dateRangeDelimiters);\n }\n}\n\nfunction parseDate(rangeStart, rangeEnd) {\n const range = [];\n const rangeStartAsRange = typeof rangeStart === 'string' && splitDateRange(rangeStart);\n\n if (rangeEnd) {\n range.push(rangeStart, rangeEnd);\n } else if (rangeStartAsRange && rangeStartAsRange.length === 2) {\n range.push(...rangeStartAsRange);\n } else {\n range.push(rangeStart);\n }\n\n const dateParts = range.map(parseDateParts);\n\n if (dateParts.filter(Boolean).length === range.length) {\n return {\n 'date-parts': dateParts\n };\n } else {\n return {\n raw: rangeEnd ? range.join('/') : rangeStart\n };\n }\n}\n\nvar _default = parseDate;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nfunction padStart(str, len, chr) {\n if (str.length >= len) {\n return str;\n }\n\n while (str.length < len) {\n str = chr + str;\n }\n\n return str.slice(-len);\n}\n\nconst getDate = function getDate(date, delimiter = '-') {\n if (!date['date-parts']) {\n return date.raw;\n }\n\n const dateParts = date['date-parts'][0].map(part => part.toString());\n\n switch (dateParts.length) {\n case 3:\n dateParts[2] = padStart(dateParts[2], 2, '0');\n\n case 2:\n dateParts[1] = padStart(dateParts[1], 2, '0');\n\n case 1:\n dateParts[0] = padStart(dateParts[0], 4, '0');\n break;\n }\n\n return dateParts.join(delimiter);\n};\n\nvar _default = getDate;\nexports.default = _default;","import { util } from '@citation-js/core';\nimport defaultLocales from './locales.json';\nconst locales = new util.Register(defaultLocales);\n\nconst fetchLocale = lang => {\n if (locales.has(lang)) {\n return locales.get(lang);\n } else {\n return locales.get('en-US');\n }\n};\n\nexport default fetchLocale;\nexport { locales };","import { util } from '@citation-js/core';\nimport defaultTemplates from './styles.json';\nconst templates = new util.Register(defaultTemplates);\n\nconst fetchStyle = style => {\n if (templates.has(style)) {\n return templates.get(style);\n } else {\n return templates.get('apa');\n }\n};\n\nexport default fetchStyle;\nexport { templates };","import CSL from 'citeproc';\nimport { templates } from './styles.js';\nimport { locales } from './locales.js';\nconst proxied = Symbol.for('proxied');\n\nconst getWrapperProxy = function (original) {\n const proxy = function (state, entry) {\n if (state.sys.wrapBibliographyEntry) {\n const [prefix, postfix] = state.sys.wrapBibliographyEntry(this.system_id);\n entry = [prefix, entry, postfix].join('');\n }\n\n return original.call(this, state, entry);\n };\n\n proxy[proxied] = true;\n return proxy;\n};\n\nfor (const format in CSL.Output.Formats) {\n const original = CSL.Output.Formats[format]['@bibliography/entry'];\n\n if (!original || original[proxied]) {\n continue;\n }\n\n CSL.Output.Formats[format]['@bibliography/entry'] = getWrapperProxy(original);\n}\n\nfunction retrieveLocale(lang) {\n const unnormalised = lang.replace('-', '_');\n\n if (locales.has(lang)) {\n return locales.get(lang);\n } else if (locales.has(unnormalised)) {\n return locales.get(unnormalised);\n }\n}\n\nconst engines = {};\n\nconst fetchEngine = function (style, lang, template, retrieveItem, retrieveLocale) {\n const engineHash = `${style}|${lang}`;\n let engine;\n\n if (engines[engineHash] instanceof CSL.Engine) {\n engine = engines[engineHash];\n engine.sys.retrieveItem = retrieveItem;\n engine.updateItems([]);\n } else {\n engine = engines[engineHash] = new CSL.Engine({\n retrieveLocale,\n retrieveItem\n }, template, lang, true);\n }\n\n return engine;\n};\n\nconst prepareEngine = function (data, templateName, language, format) {\n if (!CSL.Output.Formats[format] || !CSL.Output.Formats[format]['@bibliography/entry']) {\n throw new TypeError(`Cannot find format '${format}'`);\n }\n\n const items = data.reduce((store, entry) => {\n store[entry.id] = entry;\n return store;\n }, {});\n const template = templates.get(templates.has(templateName) ? templateName : 'apa');\n language = locales.has(language) ? language : 'en-US';\n\n const callback = function (key) {\n if (Object.prototype.hasOwnProperty.call(items, key)) {\n return items[key];\n } else {\n throw new Error(`Cannot find entry with id '${key}'`);\n }\n };\n\n const engine = fetchEngine(templateName, language, template, callback, retrieveLocale);\n engine.setOutputFormat(format);\n return engine;\n};\n\nexport default prepareEngine;\nexport { fetchEngine };","import prepareEngine from './engines.js';\nimport { getPrefixedEntry } from './attr.js';\n\nconst getAffix = (source, affix) => typeof affix === 'function' ? affix(source) : affix || '';\n\nexport default function bibliography(data, options = {}) {\n const {\n template = 'apa',\n lang = 'en-US',\n format = 'text',\n nosort = false\n } = options;\n const ids = options.entry ? [].concat(options.entry) : data.map(({\n id\n }) => id);\n const citeproc = prepareEngine(data, template, lang, format);\n const sortedIds = citeproc.updateItems(ids, nosort);\n\n if (options.append || options.prepend) {\n const items = data.reduce((items, entry) => {\n items[entry.id] = entry;\n return items;\n }, {});\n\n citeproc.sys.wrapBibliographyEntry = function (id) {\n const entry = items[id];\n return [getAffix(entry, options.prepend), getAffix(entry, options.append)];\n };\n } else {\n citeproc.sys.wrapBibliographyEntry = () => ['', ''];\n }\n\n const bibliography = citeproc.makeBibliography();\n const [{\n bibstart,\n bibend\n }, bibBody] = bibliography;\n const entries = bibBody.map((element, index) => getPrefixedEntry(element, sortedIds[index]));\n\n if (options.asEntryArray) {\n return entries.map((element, index) => [sortedIds[index], element]);\n }\n\n return bibstart + entries.join('') + bibend;\n}","import { plugins } from '@citation-js/core';\nimport { locales } from './locales.js';\nimport { templates } from './styles.js';\nimport engine from './engines.js';\nimport bibliography from './bibliography.js';\nimport citation from './citation.js';\nplugins.add('@csl', {\n output: {\n bibliography,\n citation\n },\n config: {\n engine,\n locales,\n templates\n }\n});","const getAttributedEntry = (string, name, value) => string.replace(/^\\s*<[a-z]+/i, `$& data-${name}=\"${value}\"`);\n\nconst getPrefixedEntry = (value, id) => getAttributedEntry(value, 'csl-entry-id', id);\n\nexport { getAttributedEntry, getPrefixedEntry };","import prepareEngine from './engines.js';\nexport default function citation(data, options = {}) {\n const {\n template = 'apa',\n lang = 'en-US',\n format = 'text'\n } = options;\n const ids = data.map(({\n id\n }) => id);\n const entries = options.entry ? [].concat(options.entry) : ids;\n const citeproc = prepareEngine(data, template, lang, format);\n citeproc.updateItems(ids);\n const {\n citationsPre = [],\n citationsPost = []\n } = options;\n const citation = citeproc.previewCitationCluster({\n citationItems: entries.map(id => typeof id === 'object' ? id : {\n id\n }),\n properties: {\n noteIndex: 0\n }\n }, citationsPre, citationsPost, format);\n return citation;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.fetchEngine = exports.default = void 0;\n\nvar _citeproc = _interopRequireDefault(require(\"citeproc\"));\n\nvar _styles = require(\"./styles.js\");\n\nvar _locales = require(\"./locales.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nconst proxied = Symbol.for('proxied');\n\nconst getWrapperProxy = function (original) {\n const proxy = function (state, entry) {\n if (state.sys.wrapBibliographyEntry) {\n const [prefix, postfix] = state.sys.wrapBibliographyEntry(this.system_id);\n entry = [prefix, entry, postfix].join('');\n }\n\n return original.call(this, state, entry);\n };\n\n proxy[proxied] = true;\n return proxy;\n};\n\nfor (const format in _citeproc.default.Output.Formats) {\n const original = _citeproc.default.Output.Formats[format]['@bibliography/entry'];\n\n if (!original || original[proxied]) {\n continue;\n }\n\n _citeproc.default.Output.Formats[format]['@bibliography/entry'] = getWrapperProxy(original);\n}\n\nfunction retrieveLocale(lang) {\n const unnormalised = lang.replace('-', '_');\n\n if (_locales.locales.has(lang)) {\n return _locales.locales.get(lang);\n } else if (_locales.locales.has(unnormalised)) {\n return _locales.locales.get(unnormalised);\n }\n}\n\nconst engines = {};\n\nconst fetchEngine = function (style, lang, template, retrieveItem, retrieveLocale) {\n const engineHash = `${style}|${lang}`;\n let engine;\n\n if (engines[engineHash] instanceof _citeproc.default.Engine) {\n engine = engines[engineHash];\n engine.sys.retrieveItem = retrieveItem;\n engine.updateItems([]);\n } else {\n engine = engines[engineHash] = new _citeproc.default.Engine({\n retrieveLocale,\n retrieveItem\n }, template, lang, true);\n }\n\n return engine;\n};\n\nexports.fetchEngine = fetchEngine;\n\nconst prepareEngine = function (data, templateName, language, format) {\n if (!_citeproc.default.Output.Formats[format] || !_citeproc.default.Output.Formats[format]['@bibliography/entry']) {\n throw new TypeError(`Cannot find format '${format}'`);\n }\n\n const items = data.reduce((store, entry) => {\n store[entry.id] = entry;\n return store;\n }, {});\n\n const template = _styles.templates.get(_styles.templates.has(templateName) ? templateName : 'apa');\n\n language = _locales.locales.has(language) ? language : 'en-US';\n\n const callback = function (key) {\n if (Object.prototype.hasOwnProperty.call(items, key)) {\n return items[key];\n } else {\n throw new Error(`Cannot find entry with id '${key}'`);\n }\n };\n\n const engine = fetchEngine(templateName, language, template, callback, retrieveLocale);\n engine.setOutputFormat(format);\n return engine;\n};\n\nvar _default = prepareEngine;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.locales = exports.default = void 0;\n\nvar _core = require(\"@citation-js/core\");\n\nvar _locales = _interopRequireDefault(require(\"./locales.json\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nconst locales = new _core.util.Register(_locales.default);\nexports.locales = locales;\n\nconst fetchLocale = lang => {\n if (locales.has(lang)) {\n return locales.get(lang);\n } else {\n return locales.get('en-US');\n }\n};\n\nvar _default = fetchLocale;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.templates = exports.default = void 0;\n\nvar _core = require(\"@citation-js/core\");\n\nvar _styles = _interopRequireDefault(require(\"./styles.json\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nconst templates = new _core.util.Register(_styles.default);\nexports.templates = templates;\n\nconst fetchStyle = style => {\n if (templates.has(style)) {\n return templates.get(style);\n } else {\n return templates.get('apa');\n }\n};\n\nvar _default = fetchStyle;\nexports.default = _default;","function parseDoi(data) {\n const list = Array.isArray(data) ? data : data.trim().split(/(?:\\s+)/g);\n return list.map(doi => `https://doi.org/${doi}`);\n}\n\nexport { parseDoi as parse, parseDoi as default };","const doiTypes = {\n 'journal-article': 'article-journal',\n 'book-chapter': 'chapter',\n 'posted-content': 'manuscript',\n 'proceedings-article': 'paper-conference'\n};\n\nfunction fetchDoiType(value, data) {\n if (value === 'posted-content' && data.subtype === 'preprint') {\n return 'article';\n }\n\n return doiTypes[value] || value;\n}\n\nexport { fetchDoiType as parse, fetchDoiType as default };","import fetchDoiType from './type.js';\n\nfunction parseDoiJson(data) {\n const res = {\n type: fetchDoiType(data.type, data)\n };\n const dateFields = ['submitted', 'issued', 'event-date', 'original-date', 'container', 'accessed'];\n dateFields.forEach(field => {\n const value = data[field];\n\n if (value && value['date-parts'] && typeof value['date-parts'][0] === 'number') {\n value['date-parts'] = [value['date-parts']];\n }\n });\n return Object.assign({}, data, res);\n}\n\nexport { parseDoiJson as parse, parseDoiJson as default };","import { util } from '@citation-js/core';\nimport parseDoiJson from './json.js';\nconst apiOptions = {\n checkContentType: true,\n headers: {\n Accept: 'application/vnd.citationstyles.csl+json'\n }\n};\n\nasync function fetchDoiApiAsync(url) {\n const result = await util.fetchFileAsync(url, apiOptions);\n return result === '[]' ? {} : JSON.parse(result);\n}\n\nasync function parseDoiApiAsync(data) {\n const doiJsonList = await Promise.all([].concat(data).map(fetchDoiApiAsync));\n return doiJsonList.map(parseDoiJson);\n}\n\nfunction fetchDoiApi(url) {\n const result = util.fetchFile(url, apiOptions);\n return result === '[]' ? {} : JSON.parse(result);\n}\n\nfunction parseDoiApi(data) {\n return [].concat(data).map(fetchDoiApi).map(parseDoiJson);\n}\n\nexport { parseDoiApi as parse, parseDoiApiAsync as parseAsync };","import { plugins } from '@citation-js/core';\nimport * as id from './id.js';\nimport * as api from './api.js';\nimport * as json from './json.js';\nimport * as type from './type.js';\nconst ref = '@doi';\nconst parsers = {\n id,\n api,\n json,\n type\n};\nconst formats = {\n '@doi/api': {\n parse: api.parse,\n parseAsync: api.parseAsync,\n parseType: {\n dataType: 'String',\n predicate: /^\\s*(https?:\\/\\/(?:dx\\.)?doi\\.org\\/(10.\\d{4,9}\\/[-._;()/:A-Z0-9]+))\\s*$/i,\n extends: '@else/url'\n }\n },\n '@doi/id': {\n parse: id.parse,\n parseType: {\n dataType: 'String',\n predicate: /^\\s*(10.\\d{4,9}\\/[-._;()/:A-Z0-9]+)\\s*$/i\n }\n },\n '@doi/list+text': {\n parse: id.parse,\n parseType: {\n dataType: 'String',\n tokenList: /^10.\\d{4,9}\\/[-._;()/:A-Z0-9]+$/i\n }\n },\n '@doi/list+object': {\n parse: id.parse,\n parseType: {\n dataType: 'Array',\n elementConstraint: '@doi/id'\n }\n },\n '@doi/type': {\n parse: type.parse\n }\n};\nplugins.add(ref, {\n input: formats\n});\nexport { ref, parsers, formats };","import { parse as parseDate } from '@citation-js/date';\nimport TYPES from './spec/types.json';\nconst ISSN_REGEX = /^\\d{4}-\\d{4}$/;\nconst DOI_REGEX = /10(?:\\.[0-9]{4,})?\\/[^\\s]*[^\\s.,]/;\nconst CONVERTERS = {\n ANY: {\n toTarget(...values) {\n return values.find(Boolean);\n },\n\n toSource(value) {\n return [value];\n }\n\n },\n PAGE: {\n keepAll: true,\n\n toTarget(start, end) {\n return [start, end].filter(Boolean).join('-');\n },\n\n toSource(pages) {\n return pages.replace(/[-–—]/g, '-');\n }\n\n },\n ISBN: {\n toTarget(id) {\n return ISSN_REGEX.test(id) ? [id] : [undefined, id];\n },\n\n toSource(...ids) {\n return ids.find(Boolean);\n }\n\n },\n DATE: {\n toTarget(date) {\n return date && parseDate(date.split('/').slice(0, 3).filter(Boolean).join('/'));\n },\n\n toSource(date) {\n const parts = Array(4).fill('');\n date['date-parts'][0].forEach((part, index) => {\n parts[index] = part;\n });\n\n if (date.season) {\n parts[3] = date.season;\n }\n\n return parts.join('/');\n }\n\n },\n NAME: {\n toTarget(names) {\n return names && [].concat(names).map(name => {\n const parts = name.split(/, ?/);\n const [family, given, suffix] = parts;\n\n switch (parts.length) {\n case 3:\n return {\n family,\n given,\n suffix\n };\n\n case 2:\n return {\n family,\n given\n };\n\n case 1:\n if (family.indexOf(' ') > -1) {\n return {\n family\n };\n }\n\n default:\n return {\n literal: name\n };\n }\n });\n },\n\n toSource(names) {\n return names.map(({\n family,\n given,\n suffix,\n literal\n }) => {\n const parts = [family, given, suffix].filter(Boolean);\n return parts.length ? parts.join(', ') : literal;\n });\n }\n\n },\n KEYWORD: {\n toTarget(words) {\n words = [].concat(words);\n return words.join(',');\n },\n\n toSource(words) {\n return words.split(',');\n }\n\n },\n ID: {\n toSource(id) {\n return id.slice(0, 20);\n }\n\n },\n TYPE: {\n toTarget(type) {\n return TYPES.RIS[type];\n },\n\n toSource(type) {\n return TYPES.CSL[type];\n }\n\n },\n DOI: {\n toTarget(doi) {\n return doi.match(DOI_REGEX)[0];\n },\n\n toSource(doi) {\n return doi.match(DOI_REGEX)[0];\n }\n\n }\n};\nexport default CONVERTERS;","import CONVERTERS from '../converters.js';\nexport default [{\n source: 'TY',\n target: 'type'\n}, {\n source: 'ID',\n target: 'id'\n}, {\n source: ['T1', 'TI', 'CT'],\n target: 'title'\n}, {\n source: 'BT',\n target: 'title',\n when: {\n source: {\n type: ['BOOK', 'UNPB'],\n T1: false,\n TI: false,\n CT: false\n },\n target: false\n }\n}, {\n source: 'T2',\n target: 'container-title',\n when: {\n target: {\n type: ['bill', 'book', 'broadcast', 'chapter', 'dataset', 'entry', 'entry-dictionary', 'entry-encyclopedia', 'figure', 'graphic', 'interview', 'legal_case', 'legislation', 'manuscript', 'map', 'motion_picture', 'musical_score', 'pamphlet', 'paper-conference', 'patent', 'personal_communication', 'post', 'post-weblog', 'report', 'review', 'review-book', 'song', 'speech', 'thesis', 'treaty', 'webpage']\n }\n }\n}, {\n source: 'BT',\n target: 'container-title',\n when: {\n source: {\n type: ['ABST', 'ADVS', 'ART', 'BILL', 'CASE', 'CHAP', 'COMP', 'CONF', 'CTLG', 'DATA', 'ELEC', 'GEN', 'HEAR', 'ICOMM', 'INPR', 'JFULL', 'JOUR', 'MAP', 'MGZN', 'MPCT', 'MUSIC', 'NEWS', 'PAMP', 'PAT', 'PCOMM', 'RPRT', 'SER', 'SLIDE', 'SOUND', 'STAT', 'THES', 'UNBILL', 'VIDEO'],\n T2: false\n },\n target: false\n }\n}, {\n source: 'T3',\n target: 'collection-title'\n}, {\n source: ['A1', 'AU'],\n target: 'author'\n}, {\n source: ['A2', 'ED'],\n target: 'editor'\n}, {\n source: 'A3',\n target: 'collection-editor'\n}, {\n source: ['Y1', 'PY'],\n target: 'issued'\n}, {\n source: 'Y2',\n target: 'event-date',\n convert: CONVERTERS.DATE,\n when: {\n source: {\n type: ['CONF', 'CPAPER']\n },\n target: {\n type: ['paper-conference']\n }\n }\n}, {\n source: 'Y2',\n target: 'submitted',\n convert: CONVERTERS.DATE,\n when: {\n source: {\n type: ['PAT']\n },\n target: {\n type: 'patent'\n }\n }\n}, {\n source: ['AB', 'N1'],\n target: 'note'\n}, {\n source: 'N2',\n target: 'abstract'\n}, {\n source: 'KW',\n target: 'keyword'\n}, {\n source: ['JF', 'JO'],\n target: 'container-title',\n convert: CONVERTERS.ANY,\n when: {\n target: {\n type: ['article', 'article-journal', 'article-magazine', 'article-newspaper']\n }\n }\n}, {\n source: ['JA', 'J1', 'J2'],\n target: 'container-title-short'\n}, {\n source: 'VL',\n target: 'volume'\n}, {\n source: ['IS', 'CP'],\n target: 'issue'\n}, {\n source: 'SP',\n target: 'page-first'\n}, {\n source: ['SP', 'EP'],\n target: 'page',\n convert: CONVERTERS.PAGE,\n when: {\n source: {\n SP: true,\n EP: true\n }\n }\n}, {\n source: 'CY',\n target: 'publisher-place'\n}, {\n source: 'PB',\n target: 'publisher'\n}, {\n source: 'SN',\n target: ['ISSN', 'ISBN']\n}, {\n source: 'AV',\n target: 'archive_location'\n}, {\n source: 'UR',\n target: 'URL'\n}];","import NEW from './new.json';\nimport ADDITIONS from './additions.json';\nexport default NEW.concat(ADDITIONS);","import TYPES from './types.json';\nimport new_ from './new.json';\nimport old from './old.js';\nimport mixed from './mixed.js';\nexport const SPECS = {\n new: new_,\n old,\n mixed\n};\nexport { TYPES };","import { util } from '@citation-js/core';\nimport config from './config.json';\nimport { SPECS } from './spec/index.js';\nimport CONVERTERS from './converters.js';\nimport DATA_TYPES from './dataTypes.json';\nconst LINE_MATCH = /^[A-Z][A-Z0-9] {2}-( |$)/;\nconst LINE_SPLIT = / {2}-(?: |$)/;\nconst TRANSLATORS = new Map();\n\nfunction prepareTranslator(spec) {\n if (!TRANSLATORS.has(spec)) {\n for (const mapping of spec) {\n if (mapping.target in DATA_TYPES) {\n mapping.convert = CONVERTERS[DATA_TYPES[mapping.target]];\n }\n\n if (mapping.convert && mapping.convert.keepAll === true) {\n continue;\n }\n\n if (Array.isArray(mapping.source)) {\n if (mapping.convert) {\n const {\n toSource,\n toTarget\n } = mapping.convert;\n mapping.convert = {\n toTarget(...args) {\n return toTarget(CONVERTERS.ANY.toTarget(...args));\n },\n\n toSource(...args) {\n return CONVERTERS.ANY.toSource(toSource(...args));\n }\n\n };\n } else {\n mapping.convert = CONVERTERS.ANY;\n }\n }\n }\n\n TRANSLATORS.set(spec, new util.Translator(spec));\n }\n\n return TRANSLATORS.get(spec);\n}\n\nexport function parse(text) {\n const entries = [];\n let lastEntry;\n let lastTag;\n\n for (let line of text.split(/\\r?\\n/)) {\n line = line.trim();\n\n if (!LINE_MATCH.test(line)) {\n if (lastEntry && lastTag) {\n lastEntry[lastTag] += ' ' + line;\n }\n\n continue;\n }\n\n const [tag, value] = line.split(LINE_SPLIT);\n\n switch (tag) {\n case 'ER':\n lastEntry = undefined;\n lastTag = undefined;\n break;\n\n case 'TY':\n lastEntry = {};\n entries.push(lastEntry);\n\n default:\n if (Array.isArray(lastEntry[tag])) {\n lastEntry[tag].push(value);\n } else {\n lastEntry[tag] = lastEntry[tag] ? [lastEntry[tag], value] : value;\n }\n\n lastTag = tag;\n }\n }\n\n return entries;\n}\nexport function parseOld(data) {\n return prepareTranslator(SPECS.old).convertToTarget(data);\n}\nexport function parseNew(data) {\n return prepareTranslator(SPECS.new).convertToTarget(data);\n}\nexport function parseMixed(data) {\n return prepareTranslator(SPECS.mixed).convertToTarget(data);\n}\nexport function format(data, {\n type,\n format = type || 'text',\n spec\n} = {}) {\n const outputSpec = spec || config.outputSpec;\n const entries = data.map(prepareTranslator(SPECS[outputSpec]).convertToSource);\n\n if (format === 'object') {\n return entries;\n }\n\n return entries.map(entry => {\n const tags = [];\n\n for (const tag in entry) {\n if (tag === 'TY') {\n continue;\n }\n\n tags.push(...[].concat(entry[tag]).map(value => `${tag} - ${value.toString().replace(/(.{70})/g, '$1\\n')}`));\n }\n\n tags.unshift(`TY - ${entry.TY}`);\n tags.push('ER - ');\n return tags.join('\\n');\n }).join('\\n');\n}","import { plugins } from '@citation-js/core';\nimport config from './config.json';\nimport { parse, parseNew, parseOld, parseMixed, format } from './ris.js';\nconst oldProps = ['A1', 'AV', 'BT', 'CP', 'ED', 'EP', 'ID', 'J1', 'JA', 'JF', 'JO', 'L2', 'L3', 'N2', 'T1', 'U1', 'U2', 'U3', 'U4', 'U5', 'U6', 'Y1'];\nconst newProps = ['A4', 'AD', 'AN', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6', 'C7', 'C8', 'CA', 'CN', 'DA', 'DB', 'DO', 'DP', 'ET', 'LA', 'LB', 'NV', 'OP', 'PY', 'RI', 'RN', 'SE', 'ST', 'SV', 'TA', 'TT'];\nplugins.add('@ris', {\n input: {\n '@ris/file': {\n parse,\n parseType: {\n dataType: 'String',\n predicate: /^TY {2}- /m\n }\n },\n '@ris/record': {\n parse: parseMixed,\n parseType: {\n dataType: 'SimpleObject',\n propertyConstraint: {\n props: ['TY']\n }\n }\n },\n '@ris/new+record': {\n parse: parseNew,\n parseType: {\n extends: '@ris/record',\n propertyConstraint: [{\n props: newProps,\n match: 'some'\n }, {\n props: oldProps,\n match: 'none'\n }]\n }\n },\n '@ris/old+record': {\n parse: parseOld,\n parseType: {\n extends: '@ris/record',\n propertyConstraint: [{\n props: oldProps,\n match: 'some'\n }, {\n props: newProps,\n match: 'none'\n }]\n }\n }\n },\n config,\n output: {\n ris: format\n }\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"format\", {\n enumerable: true,\n get: function get() {\n return _output.default;\n }\n});\nObject.defineProperty(exports, \"parse\", {\n enumerable: true,\n get: function get() {\n return _input.default;\n }\n});\n\nvar _input = _interopRequireDefault(require(\"./input\"));\n\nvar _output = _interopRequireDefault(require(\"./output\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nconst monthMap = {\n jan: 1,\n feb: 2,\n mar: 3,\n apr: 4,\n may: 5,\n jun: 6,\n jul: 7,\n aug: 8,\n sep: 9,\n oct: 10,\n nov: 11,\n dec: 12\n};\nconst dateRangeDelimiters = / (?:to|[-/]) | ?(?:--|[–—]) ?/;\nconst dateRangePattern = /^(\\d{4}-\\d{2}-\\d{2})\\/(\\d{4}-\\d{2}-\\d{2})$/;\n\nfunction getMonth(monthName) {\n return monthMap[monthName.toLowerCase().slice(0, 3)];\n}\n\nfunction parseEpoch(date) {\n const epoch = new Date(date);\n\n if (typeof date === 'number' && !isNaN(epoch.valueOf())) {\n return [epoch.getFullYear(), epoch.getMonth() + 1, epoch.getDate()];\n } else {\n return null;\n }\n}\n\nconst parseIso8601 = function parseIso8601(date) {\n const pattern = /^(\\d{4}|[-+]\\d{6,})-(\\d{2})(?:-(\\d{2}))?/;\n\n if (typeof date !== 'string' || !pattern.test(date)) {\n return null;\n }\n\n const _date$match = date.match(pattern),\n _date$match2 = _slicedToArray(_date$match, 4),\n year = _date$match2[1],\n month = _date$match2[2],\n day = _date$match2[3];\n\n if (!+month) {\n return [year];\n } else if (!+day) {\n return [year, month];\n } else {\n return [year, month, day];\n }\n};\n\nconst parseRfc2822 = function parseRfc2822(date) {\n const pattern = /^(?:[a-z]{3},\\s*)?(\\d{1,2}) ([a-z]{3}) (\\d{4,})/i;\n\n if (typeof date !== 'string' || !pattern.test(date)) {\n return null;\n }\n\n let _date$match3 = date.match(pattern),\n _date$match4 = _slicedToArray(_date$match3, 4),\n day = _date$match4[1],\n month = _date$match4[2],\n year = _date$match4[3];\n\n month = getMonth(month);\n\n if (!month) {\n return null;\n }\n\n return [year, month, day];\n};\n\nfunction parseAmericanDay(date) {\n const pattern = /^(\\d{1,2})\\/(\\d{1,2})\\/(\\d{2}(?:\\d{2})?)/;\n\n if (typeof date !== 'string' || !pattern.test(date)) {\n return null;\n }\n\n const _date$match5 = date.match(pattern),\n _date$match6 = _slicedToArray(_date$match5, 4),\n month = _date$match6[1],\n day = _date$match6[2],\n year = _date$match6[3];\n\n const check = new Date(year, month, day);\n\n if (check.getMonth() === parseInt(month)) {\n return [year, month, day];\n } else {\n return null;\n }\n}\n\nfunction parseDay(date) {\n const pattern = /^(\\d{1,2})[ .\\-/](\\d{1,2}|[a-z]{3,10})[ .\\-/](-?\\d+)/i;\n const reversePattern = /^(-?\\d+)[ .\\-/](\\d{1,2}|[a-z]{3,10})[ .\\-/](\\d{1,2})/i;\n let year;\n let month;\n let day;\n\n if (typeof date !== 'string') {\n return null;\n } else if (pattern.test(date)) {\n var _date$match7 = date.match(pattern);\n\n var _date$match8 = _slicedToArray(_date$match7, 4);\n\n day = _date$match8[1];\n month = _date$match8[2];\n year = _date$match8[3];\n } else if (reversePattern.test(date)) {\n var _date$match9 = date.match(reversePattern);\n\n var _date$match10 = _slicedToArray(_date$match9, 4);\n\n year = _date$match10[1];\n month = _date$match10[2];\n day = _date$match10[3];\n } else {\n return null;\n }\n\n if (getMonth(month)) {\n month = getMonth(month);\n } else if (isNaN(month)) {\n return null;\n }\n\n return [year, month, day];\n}\n\nfunction parseMonth(date) {\n const pattern = /^([a-z]{3,10}|-?\\d+)[^\\w-]+([a-z]{3,10}|-?\\d+)$/i;\n\n if (typeof date === 'string' && pattern.test(date)) {\n const values = date.match(pattern).slice(1, 3);\n let month;\n\n if (getMonth(values[1])) {\n month = getMonth(values.pop());\n } else if (getMonth(values[0])) {\n month = getMonth(values.shift());\n } else if (values.some(isNaN) || values.every(value => +value < 0)) {\n return null;\n } else if (+values[0] < 0) {\n month = values.pop();\n } else if (+values[0] > +values[1] && +values[1] > 0) {\n month = values.pop();\n } else {\n month = values.shift();\n }\n\n const year = values.pop();\n return [year, month];\n } else {\n return null;\n }\n}\n\nfunction parseYear(date) {\n if (typeof date !== 'string') {\n return null;\n }\n\n const adBc = date.match(/^(\\d+) ?(a\\.?d\\.?|b\\.?c\\.?)$/i);\n\n if (adBc) {\n const _adBc$slice = adBc.slice(1),\n _adBc$slice2 = _slicedToArray(_adBc$slice, 2),\n date = _adBc$slice2[0],\n suffix = _adBc$slice2[1];\n\n return [date * (suffix.toLowerCase()[0] === 'a' ? 1 : -1)];\n } else if (/^-?\\d+$/.test(date)) {\n return [date];\n } else {\n return null;\n }\n}\n\nfunction parseDateParts(value) {\n const dateParts = parseEpoch(value) || parseIso8601(value) || parseRfc2822(value) || parseAmericanDay(value) || parseDay(value) || parseMonth(value) || parseYear(value);\n return dateParts && dateParts.map(string => parseInt(string));\n}\n\nfunction splitDateRange(range) {\n if (dateRangePattern.test(range)) {\n return range.match(dateRangePattern).slice(1, 3);\n } else {\n return range.split(dateRangeDelimiters);\n }\n}\n\nfunction parseDate(rangeStart, rangeEnd) {\n const range = [];\n const rangeStartAsRange = typeof rangeStart === 'string' && splitDateRange(rangeStart);\n\n if (rangeEnd) {\n range.push(rangeStart, rangeEnd);\n } else if (rangeStartAsRange && rangeStartAsRange.length === 2) {\n range.push(...rangeStartAsRange);\n } else {\n range.push(rangeStart);\n }\n\n const dateParts = range.map(parseDateParts);\n\n if (dateParts.filter(Boolean).length === range.length) {\n return {\n 'date-parts': dateParts\n };\n } else {\n return {\n raw: rangeEnd ? range.join('/') : rangeStart\n };\n }\n}\n\nvar _default = parseDate;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nfunction padStart(str, len, chr) {\n if (str.length >= len) {\n return str;\n }\n\n while (str.length < len) {\n str = chr + str;\n }\n\n return str.slice(-len);\n}\n\nconst getDate = function getDate(date, delimiter = '-') {\n if (!date['date-parts']) {\n return date.raw;\n }\n\n const dateParts = date['date-parts'][0].map(part => part.toString());\n\n switch (dateParts.length) {\n case 3:\n dateParts[2] = padStart(dateParts[2], 2, '0');\n\n case 2:\n dateParts[1] = padStart(dateParts[1], 2, '0');\n\n case 1:\n dateParts[0] = padStart(dateParts[0], 4, '0');\n break;\n }\n\n return dateParts.join(delimiter);\n};\n\nvar _default = getDate;\nexports.default = _default;","import wdk from 'wikidata-sdk';\nimport config from './config.json';\n\nconst parseWikidata = function (data, langs) {\n const list = [].concat(data);\n return [].concat(wdk.getManyEntities(list, langs || config.langs));\n};\n\nexport { parseWikidata as parse, parseWikidata as default };","import { util } from '@citation-js/core';\nconst {\n fetchFile,\n fetchFileAsync\n} = util;\nexport function parse(urls) {\n return [].concat(urls).map(fetchFile);\n}\nexport function parseAsync(urls) {\n return Promise.all([].concat(urls).map(fetchFileAsync));\n}","import { simplify } from 'wikidata-sdk';\nimport { parse as fetch, parseAsync as fetchAsync } from './api.js';\nimport { parse as getUrls } from './id.js';\nconst SIMPLIFY_OPTS = {\n keepQualifiers: true,\n timeConverter: 'simple-day'\n};\nconst FETCH_PLACE = {\n P17: null\n};\nconst FETCH_PUBLISHER = {\n P740: FETCH_PLACE,\n P159: FETCH_PLACE\n};\nconst FETCH_ADDITIONAL = {\n P50: null,\n P57: null,\n P86: null,\n P98: null,\n P110: null,\n P655: null,\n P1817: null,\n P921: {\n P50: null\n },\n P407: null,\n P364: null,\n P123: FETCH_PUBLISHER,\n P629: {\n P50: null,\n P123: FETCH_PUBLISHER\n },\n P437: null,\n P186: null,\n P179: {\n P98: null\n },\n P1433: {\n P4745: {\n P276: FETCH_PLACE\n }\n },\n P361: {\n P50: null\n }\n};\n\nfunction flat(array, part) {\n array.push(...part);\n return array;\n}\n\nfunction collectAdditionalIds(entity, needed) {\n if (!needed) {\n return [];\n }\n\n entity._needed = Object.assign(entity._needed || {}, needed);\n return Object.keys(entity.claims).filter(prop => prop in needed).map(prop => entity.claims[prop].map(({\n value\n }) => value.id || value)).reduce(flat, []);\n}\n\nfunction completeResponse(entities, old) {\n if (!old) {\n const allIds = [];\n\n for (const id in entities) {\n const ids = collectAdditionalIds(entities[id], FETCH_ADDITIONAL);\n\n for (const id of ids) {\n if (!allIds.includes(id)) {\n allIds.push(id);\n }\n }\n }\n\n return allIds;\n }\n\n const ids = [];\n\n for (const id of old) {\n const entity = entities[id];\n\n if (!entity._needed) {\n continue;\n }\n\n for (const prop in entity.claims) {\n if (prop in entity._needed) {\n for (const claim of entity.claims[prop]) {\n if (claim.value && claim.value.id) {\n continue;\n }\n\n claim.value = entities[claim.value];\n ids.push(...collectAdditionalIds(claim.value, entity._needed[prop]));\n }\n }\n }\n\n delete entity._needed;\n }\n\n return ids;\n}\n\nfunction simplifyEntities(entities) {\n return simplify.entities(entities, SIMPLIFY_OPTS);\n}\n\nfunction initLoopState(entities, cache) {\n return {\n needed: completeResponse(cache),\n incomplete: Object.keys(entities)\n };\n}\n\nfunction filterIdsAndGetUrls(needed, cache) {\n const shouldFetch = needed.filter((id, i) => !(id in cache) && needed.indexOf(id) === i);\n return getUrls(shouldFetch);\n}\n\nfunction addItemsToCache(response, cache) {\n const {\n entities\n } = JSON.parse(response);\n Object.assign(cache, simplifyEntities(entities));\n}\n\nfunction updateLoopState(state, cache) {\n return {\n needed: completeResponse(cache, state.incomplete),\n incomplete: state.needed\n };\n}\n\nfunction finalizeItems(entities, cache) {\n return Object.keys(entities).map(id => cache[id]);\n}\n\nexport function fillCache(entities) {\n const cache = simplifyEntities(entities);\n let state = initLoopState(entities, cache);\n\n while (state.needed.length) {\n const urls = filterIdsAndGetUrls(state.needed, cache);\n urls.map(url => addItemsToCache(fetch(url), cache));\n state = updateLoopState(state, cache);\n }\n\n return cache;\n}\nexport function parse(entities) {\n const cache = fillCache(entities);\n return finalizeItems(entities, cache);\n}\nexport async function fillCacheAsync(entities) {\n const cache = simplifyEntities(entities);\n let state = initLoopState(entities, cache);\n\n while (state.needed.length) {\n const urls = filterIdsAndGetUrls(state.needed, cache);\n await Promise.all(urls.map(async url => addItemsToCache(await fetchAsync(url), cache)));\n state = updateLoopState(state, cache);\n }\n\n return cache;\n}\nexport async function parseAsync(entities) {\n const cache = await fillCacheAsync(entities);\n return finalizeItems(entities, cache);\n}","import { logger } from '@citation-js/core';\nimport { parse as parseNameString } from '@citation-js/name';\nimport { parse as parseDate } from '@citation-js/date';\nimport config from './config.json';\nimport types from './types.json';\n\nconst getSeriesOrdinal = ({\n P1545\n}) => P1545 ? parseInt(P1545[0]) : -1;\n\nconst getStatedAs = qualifiers => [].concat(...[qualifiers.P1932, qualifiers.P1810].filter(Boolean));\n\nconst parseName = ({\n value,\n qualifiers\n}) => {\n let [name] = getStatedAs(qualifiers);\n\n if (!name) {\n name = typeof value === 'string' ? value : getLabel(value);\n }\n\n name = name ? parseNameString(name) : {\n literal: name\n };\n name._ordinal = getSeriesOrdinal(qualifiers);\n return name;\n};\n\nconst parseNames = values => {\n return values.map(parseName).sort((a, b) => a._ordinal - b._ordinal);\n};\n\nconst getPlace = value => {\n const country = value.claims.P17[0].value;\n const shortNames = country.claims.P1813.filter(({\n qualifiers: {\n P31\n }\n }) => !P31 || P31[0] !== 'Q28840786');\n return getLabel(value) + ', ' + (shortNames[0] || country.claims.P1448[0]).value;\n};\n\nconst getTitle = value => {\n return value.claims.P1476 ? value.claims.P1476[0].value : getLabel(value);\n};\n\nconst parseKeywords = values => {\n return values.map(({\n value\n }) => getLabel(value)).join(',');\n};\n\nconst parseDateRange = dates => ({\n 'date-parts': dates.map(date => parseDate(date.value)).filter(date => date && date['date-parts']).map(date => date['date-parts'][0])\n});\n\nexport function parseProp(prop, value, entity) {\n switch (prop) {\n case 'type':\n return parseType(value);\n\n case 'author':\n case 'director':\n case 'container-author':\n case 'collection-editor':\n case 'composer':\n case 'editor':\n case 'illustrator':\n case 'original-author':\n case 'recipient':\n case 'reviewed-author':\n case 'translator':\n return parseNames(value);\n\n case 'issued':\n case 'original-date':\n return parseDate(value);\n\n case 'event-date':\n return parseDateRange(value);\n\n case 'keyword':\n return parseKeywords(value);\n\n case 'container-title':\n case 'collection-title':\n case 'event':\n case 'medium':\n case 'publisher':\n case 'original-publisher':\n return getTitle(value);\n\n case 'event-place':\n case 'original-publisher-place':\n case 'publisher-place':\n return getPlace(value);\n\n case 'collection-number':\n return getSeriesOrdinal(value[0].qualifiers);\n\n case 'number-of-volumes':\n return value.length;\n\n default:\n return value;\n }\n}\nexport function parseType(type) {\n if (!types[type]) {\n logger.unmapped('[plugin-wikidata]', 'publication type', type);\n return 'book';\n }\n\n return types[type];\n}\nexport function getLabel(entity) {\n if (!entity) {\n return undefined;\n }\n\n const lang = config.langs.find(lang => entity.labels[lang]);\n return entity.labels[lang];\n}\nexport { parseProp as parse, parseProp as default };","import { logger } from '@citation-js/core';\nimport * as response from './response.js';\nimport { parseProp, getLabel } from './prop.js';\nimport props from './props.json';\nimport ignoredProps from './ignoredProps.json';\n\nfunction resolveProp(prop_, entity, unkown) {\n function resolve([prop, ...parts], {\n claims\n }) {\n if (!parts.length) {\n return claims[prop];\n } else if (claims[prop] && claims[prop].length) {\n return resolve(parts, claims[prop][0].value);\n }\n }\n\n const parts = prop_.split('.');\n unkown.delete(parts[0]);\n return resolve(parts, entity);\n}\n\nfunction prepareValue(statement, entity, unkown) {\n if (typeof statement !== 'object') {\n const value = resolveProp(statement, entity, unkown);\n return value && value[0].value;\n }\n\n const values = [].concat(...statement.props.map(prop => resolveProp(prop, entity, unkown)).filter(Boolean));\n\n if (statement.values === 'all') {\n return values[0] && values;\n } else {\n return values[0] && values[0].value;\n }\n}\n\nexport function parseEntity(entity) {\n const data = {\n id: entity.id,\n _wikiId: entity.id,\n source: 'Wikidata'\n };\n const unkown = new Set(Object.keys(entity.claims));\n\n for (const prop in props) {\n const input = prepareValue(props[prop], entity, unkown);\n\n if (input) {\n const output = parseProp(prop, input, entity);\n\n if (output) {\n data[prop] = output;\n }\n }\n }\n\n for (const prop of unkown) {\n if (prop in ignoredProps) {\n continue;\n }\n\n logger.unmapped('[plugin-wikidata]', 'property', prop);\n }\n\n if (!data.title) {\n data.title = getLabel(entity);\n }\n\n if (data['reviewed-title'] || data['reviewed-author']) {\n if (data.type.slice(0, 6) !== 'review') {\n data.type = 'review';\n }\n\n delete data.keyword;\n }\n\n if (data.recipient) {\n data.type = 'personal_communication';\n }\n\n if (data.event) {\n data.type = 'paper-conference';\n }\n\n return data;\n}\nexport async function parseEntitiesAsync({\n entities\n}) {\n return (await response.parseAsync(entities)).map(parseEntity);\n}\nexport function parseEntities({\n entities\n}) {\n return response.parse(entities).map(parseEntity);\n}\nexport { parseEntities as parse, parseEntitiesAsync as parseAsync, parseEntities as default };","export const parse = input => input.match(/\\/(Q\\d+)(?:[#?/]|\\s*$)/)[1];","import { plugins } from '@citation-js/core';\nimport * as id from './id.js';\nimport * as entity from './entity.js';\nimport * as prop from './prop.js';\nimport * as url from './url.js';\nimport * as api from './api.js';\nimport config from './config.json';\nconst ref = '@wikidata';\nconst parsers = {\n id,\n entity,\n prop,\n url,\n api\n};\nconst formats = {\n '@wikidata/id': {\n parse: id.parse,\n parseType: {\n dataType: 'String',\n predicate: /^Q\\d+$/\n }\n },\n '@wikidata/list+text': {\n parse(data) {\n return data.trim().split(/(?:[\\s,]\\s*)/g);\n },\n\n parseType: {\n dataType: 'String',\n predicate: /^\\s*((?:Q\\d+(?:[\\s,]\\s*))*Q\\d+)\\s*$/\n }\n },\n '@wikidata/api': {\n parse: api.parse,\n parseAsync: api.parseAsync,\n parseType: {\n dataType: 'String',\n predicate: /^(https?:\\/\\/(?:www\\.)?wikidata.org\\/w\\/api\\.php(?:\\?.*)?)$/,\n extends: '@else/url'\n }\n },\n '@wikidata/array+api': {\n parse: api.parse,\n parseAsync: api.parseAsync,\n parseType: {\n dataType: 'Array',\n elementConstraint: '@wikidata/api'\n }\n },\n '@wikidata/url': {\n parse: url.parse,\n parseType: {\n dataType: 'String',\n predicate: /\\/(Q\\d+)(?:[#?/]|\\s*$)/,\n extends: '@else/url'\n }\n },\n '@wikidata/list+object': {\n parse: id.parse,\n parseType: {\n dataType: 'Array',\n elementConstraint: '@wikidata/id'\n }\n },\n '@wikidata/object': {\n parse: entity.parse,\n parseAsync: entity.parseAsync,\n parseType: {\n dataType: 'SimpleObject',\n propertyConstraint: {\n props: 'entities'\n }\n }\n },\n '@wikidata/array+object': {\n parse(responses) {\n return responses.reduce((combined, {\n success,\n entities\n }) => {\n combined.success &= success;\n Object.assign(combined.entities, entities);\n return combined;\n }, {});\n },\n\n parseType: {\n dataType: 'Array',\n elementConstraint: '@wikidata/object'\n },\n outputs: '@wikidata/object'\n },\n '@wikidata/prop': {\n parse: prop.parseProp\n },\n '@wikidata/type': {\n parse: prop.parseType\n }\n};\nplugins.add(ref, {\n input: formats,\n config\n});\nexport { ref, parsers, formats };","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"format\", {\n enumerable: true,\n get: function get() {\n return _output.default;\n }\n});\nObject.defineProperty(exports, \"parse\", {\n enumerable: true,\n get: function get() {\n return _input.default;\n }\n});\n\nvar _input = _interopRequireDefault(require(\"./input\"));\n\nvar _output = _interopRequireDefault(require(\"./output\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nconst monthMap = {\n jan: 1,\n feb: 2,\n mar: 3,\n apr: 4,\n may: 5,\n jun: 6,\n jul: 7,\n aug: 8,\n sep: 9,\n oct: 10,\n nov: 11,\n dec: 12\n};\nconst dateRangeDelimiters = / (?:to|[-/]) | ?(?:--|[–—]) ?/;\nconst dateRangePattern = /^(\\d{4}-\\d{2}-\\d{2})\\/(\\d{4}-\\d{2}-\\d{2})$/;\n\nfunction getMonth(monthName) {\n return monthMap[monthName.toLowerCase().slice(0, 3)];\n}\n\nfunction parseEpoch(date) {\n const epoch = new Date(date);\n\n if (typeof date === 'number' && !isNaN(epoch.valueOf())) {\n return [epoch.getFullYear(), epoch.getMonth() + 1, epoch.getDate()];\n } else {\n return null;\n }\n}\n\nconst parseIso8601 = function parseIso8601(date) {\n const pattern = /^(\\d{4}|[-+]\\d{6,})-(\\d{2})(?:-(\\d{2}))?/;\n\n if (typeof date !== 'string' || !pattern.test(date)) {\n return null;\n }\n\n const _date$match = date.match(pattern),\n _date$match2 = _slicedToArray(_date$match, 4),\n year = _date$match2[1],\n month = _date$match2[2],\n day = _date$match2[3];\n\n if (!+month) {\n return [year];\n } else if (!+day) {\n return [year, month];\n } else {\n return [year, month, day];\n }\n};\n\nconst parseRfc2822 = function parseRfc2822(date) {\n const pattern = /^(?:[a-z]{3},\\s*)?(\\d{1,2}) ([a-z]{3}) (\\d{4,})/i;\n\n if (typeof date !== 'string' || !pattern.test(date)) {\n return null;\n }\n\n let _date$match3 = date.match(pattern),\n _date$match4 = _slicedToArray(_date$match3, 4),\n day = _date$match4[1],\n month = _date$match4[2],\n year = _date$match4[3];\n\n month = getMonth(month);\n\n if (!month) {\n return null;\n }\n\n return [year, month, day];\n};\n\nfunction parseAmericanDay(date) {\n const pattern = /^(\\d{1,2})\\/(\\d{1,2})\\/(\\d{2}(?:\\d{2})?)/;\n\n if (typeof date !== 'string' || !pattern.test(date)) {\n return null;\n }\n\n const _date$match5 = date.match(pattern),\n _date$match6 = _slicedToArray(_date$match5, 4),\n month = _date$match6[1],\n day = _date$match6[2],\n year = _date$match6[3];\n\n const check = new Date(year, month, day);\n\n if (check.getMonth() === parseInt(month)) {\n return [year, month, day];\n } else {\n return null;\n }\n}\n\nfunction parseDay(date) {\n const pattern = /^(\\d{1,2})[ .\\-/](\\d{1,2}|[a-z]{3,10})[ .\\-/](-?\\d+)/i;\n const reversePattern = /^(-?\\d+)[ .\\-/](\\d{1,2}|[a-z]{3,10})[ .\\-/](\\d{1,2})/i;\n let year;\n let month;\n let day;\n\n if (typeof date !== 'string') {\n return null;\n } else if (pattern.test(date)) {\n var _date$match7 = date.match(pattern);\n\n var _date$match8 = _slicedToArray(_date$match7, 4);\n\n day = _date$match8[1];\n month = _date$match8[2];\n year = _date$match8[3];\n } else if (reversePattern.test(date)) {\n var _date$match9 = date.match(reversePattern);\n\n var _date$match10 = _slicedToArray(_date$match9, 4);\n\n year = _date$match10[1];\n month = _date$match10[2];\n day = _date$match10[3];\n } else {\n return null;\n }\n\n if (getMonth(month)) {\n month = getMonth(month);\n } else if (isNaN(month)) {\n return null;\n }\n\n return [year, month, day];\n}\n\nfunction parseMonth(date) {\n const pattern = /^([a-z]{3,10}|-?\\d+)[^\\w-]+([a-z]{3,10}|-?\\d+)$/i;\n\n if (typeof date === 'string' && pattern.test(date)) {\n const values = date.match(pattern).slice(1, 3);\n let month;\n\n if (getMonth(values[1])) {\n month = getMonth(values.pop());\n } else if (getMonth(values[0])) {\n month = getMonth(values.shift());\n } else if (values.some(isNaN) || values.every(value => +value < 0)) {\n return null;\n } else if (+values[0] < 0) {\n month = values.pop();\n } else if (+values[0] > +values[1] && +values[1] > 0) {\n month = values.pop();\n } else {\n month = values.shift();\n }\n\n const year = values.pop();\n return [year, month];\n } else {\n return null;\n }\n}\n\nfunction parseYear(date) {\n if (typeof date !== 'string') {\n return null;\n }\n\n const adBc = date.match(/^(\\d+) ?(a\\.?d\\.?|b\\.?c\\.?)$/i);\n\n if (adBc) {\n const _adBc$slice = adBc.slice(1),\n _adBc$slice2 = _slicedToArray(_adBc$slice, 2),\n date = _adBc$slice2[0],\n suffix = _adBc$slice2[1];\n\n return [date * (suffix.toLowerCase()[0] === 'a' ? 1 : -1)];\n } else if (/^-?\\d+$/.test(date)) {\n return [date];\n } else {\n return null;\n }\n}\n\nfunction parseDateParts(value) {\n const dateParts = parseEpoch(value) || parseIso8601(value) || parseRfc2822(value) || parseAmericanDay(value) || parseDay(value) || parseMonth(value) || parseYear(value);\n return dateParts && dateParts.map(string => parseInt(string));\n}\n\nfunction splitDateRange(range) {\n if (dateRangePattern.test(range)) {\n return range.match(dateRangePattern).slice(1, 3);\n } else {\n return range.split(dateRangeDelimiters);\n }\n}\n\nfunction parseDate(rangeStart, rangeEnd) {\n const range = [];\n const rangeStartAsRange = typeof rangeStart === 'string' && splitDateRange(rangeStart);\n\n if (rangeEnd) {\n range.push(rangeStart, rangeEnd);\n } else if (rangeStartAsRange && rangeStartAsRange.length === 2) {\n range.push(...rangeStartAsRange);\n } else {\n range.push(rangeStart);\n }\n\n const dateParts = range.map(parseDateParts);\n\n if (dateParts.filter(Boolean).length === range.length) {\n return {\n 'date-parts': dateParts\n };\n } else {\n return {\n raw: rangeEnd ? range.join('/') : rangeStart\n };\n }\n}\n\nvar _default = parseDate;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nfunction padStart(str, len, chr) {\n if (str.length >= len) {\n return str;\n }\n\n while (str.length < len) {\n str = chr + str;\n }\n\n return str.slice(-len);\n}\n\nconst getDate = function getDate(date, delimiter = '-') {\n if (!date['date-parts']) {\n return date.raw;\n }\n\n const dateParts = date['date-parts'][0].map(part => part.toString());\n\n switch (dateParts.length) {\n case 3:\n dateParts[2] = padStart(dateParts[2], 2, '0');\n\n case 2:\n dateParts[1] = padStart(dateParts[1], 2, '0');\n\n case 1:\n dateParts[0] = padStart(dateParts[0], 4, '0');\n break;\n }\n\n return dateParts.join(delimiter);\n};\n\nvar _default = getDate;\nexports.default = _default;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { chainPropTypes } from '@material-ui/utils';\nimport withStyles from '../styles/withStyles';\nimport capitalize from '../utils/capitalize';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n userSelect: 'none',\n width: '1em',\n height: '1em',\n display: 'inline-block',\n fill: 'currentColor',\n flexShrink: 0,\n fontSize: theme.typography.pxToRem(24),\n transition: theme.transitions.create('fill', {\n duration: theme.transitions.duration.shorter\n })\n },\n\n /* Styles applied to the root element if `color=\"primary\"`. */\n colorPrimary: {\n color: theme.palette.primary.main\n },\n\n /* Styles applied to the root element if `color=\"secondary\"`. */\n colorSecondary: {\n color: theme.palette.secondary.main\n },\n\n /* Styles applied to the root element if `color=\"action\"`. */\n colorAction: {\n color: theme.palette.action.active\n },\n\n /* Styles applied to the root element if `color=\"error\"`. */\n colorError: {\n color: theme.palette.error.main\n },\n\n /* Styles applied to the root element if `color=\"disabled\"`. */\n colorDisabled: {\n color: theme.palette.action.disabled\n },\n\n /* Styles applied to the root element if `fontSize=\"inherit\"`. */\n fontSizeInherit: {\n fontSize: 'inherit'\n },\n\n /* Styles applied to the root element if `fontSize=\"small\"`. */\n fontSizeSmall: {\n fontSize: theme.typography.pxToRem(20)\n },\n\n /* Styles applied to the root element if `fontSize=\"large\"`. */\n fontSizeLarge: {\n fontSize: theme.typography.pxToRem(35)\n }\n };\n};\nvar SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(props, ref) {\n var children = props.children,\n classes = props.classes,\n className = props.className,\n _props$color = props.color,\n color = _props$color === void 0 ? 'inherit' : _props$color,\n _props$component = props.component,\n Component = _props$component === void 0 ? 'svg' : _props$component,\n _props$fontSize = props.fontSize,\n fontSize = _props$fontSize === void 0 ? 'medium' : _props$fontSize,\n htmlColor = props.htmlColor,\n titleAccess = props.titleAccess,\n _props$viewBox = props.viewBox,\n viewBox = _props$viewBox === void 0 ? '0 0 24 24' : _props$viewBox,\n other = _objectWithoutProperties(props, [\"children\", \"classes\", \"className\", \"color\", \"component\", \"fontSize\", \"htmlColor\", \"titleAccess\", \"viewBox\"]);\n\n return /*#__PURE__*/React.createElement(Component, _extends({\n className: clsx(classes.root, className, color !== 'inherit' && classes[\"color\".concat(capitalize(color))], fontSize !== 'default' && fontSize !== 'medium' && classes[\"fontSize\".concat(capitalize(fontSize))]),\n focusable: \"false\",\n viewBox: viewBox,\n color: htmlColor,\n \"aria-hidden\": titleAccess ? undefined : true,\n role: titleAccess ? 'img' : undefined,\n ref: ref\n }, other), children, titleAccess ? /*#__PURE__*/React.createElement(\"title\", null, titleAccess) : null);\n});\nprocess.env.NODE_ENV !== \"production\" ? SvgIcon.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * Node passed into the SVG element.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n * You can use the `htmlColor` prop to apply a color attribute to the SVG element.\n */\n color: PropTypes.oneOf(['action', 'disabled', 'error', 'inherit', 'primary', 'secondary']),\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.\n */\n fontSize: chainPropTypes(PropTypes.oneOf(['default', 'inherit', 'large', 'medium', 'small']), function (props) {\n var fontSize = props.fontSize;\n\n if (fontSize === 'default') {\n throw new Error('Material-UI: `fontSize=\"default\"` is deprecated. Use `fontSize=\"medium\"` instead.');\n }\n\n return null;\n }),\n\n /**\n * Applies a color attribute to the SVG element.\n */\n htmlColor: PropTypes.string,\n\n /**\n * The shape-rendering attribute. The behavior of the different options is described on the\n * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).\n * If you are having issues with blurry icons you should investigate this property.\n */\n shapeRendering: PropTypes.string,\n\n /**\n * Provides a human-readable title for the element that contains it.\n * https://www.w3.org/TR/SVG-access/#Equivalent\n */\n titleAccess: PropTypes.string,\n\n /**\n * Allows you to redefine what the coordinates without units mean inside an SVG element.\n * For example, if the SVG element is 500 (width) by 200 (height),\n * and you pass viewBox=\"0 0 50 20\",\n * this means that the coordinates inside the SVG will go from the top left corner (0,0)\n * to bottom right (50,20) and each unit will be worth 10px.\n */\n viewBox: PropTypes.string\n} : void 0;\nSvgIcon.muiName = 'SvgIcon';\nexport default withStyles(styles, {\n name: 'MuiSvgIcon'\n})(SvgIcon);","import { formatMuiErrorMessage as _formatMuiErrorMessage } from \"@material-ui/utils\";\n\n/* eslint-disable no-use-before-define */\n\n/**\n * Returns a number whose value is limited to the given range.\n *\n * @param {number} value The value to be clamped\n * @param {number} min The lower boundary of the output range\n * @param {number} max The upper boundary of the output range\n * @returns {number} A number in the range [min, max]\n */\nfunction clamp(value) {\n var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n\n if (process.env.NODE_ENV !== 'production') {\n if (value < min || value > max) {\n console.error(\"Material-UI: The value provided \".concat(value, \" is out of range [\").concat(min, \", \").concat(max, \"].\"));\n }\n }\n\n return Math.min(Math.max(min, value), max);\n}\n/**\n * Converts a color from CSS hex format to CSS rgb format.\n *\n * @param {string} color - Hex color, i.e. #nnn or #nnnnnn\n * @returns {string} A CSS rgb color string\n */\n\n\nexport function hexToRgb(color) {\n color = color.substr(1);\n var re = new RegExp(\".{1,\".concat(color.length >= 6 ? 2 : 1, \"}\"), 'g');\n var colors = color.match(re);\n\n if (colors && colors[0].length === 1) {\n colors = colors.map(function (n) {\n return n + n;\n });\n }\n\n return colors ? \"rgb\".concat(colors.length === 4 ? 'a' : '', \"(\").concat(colors.map(function (n, index) {\n return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;\n }).join(', '), \")\") : '';\n}\n\nfunction intToHex(int) {\n var hex = int.toString(16);\n return hex.length === 1 ? \"0\".concat(hex) : hex;\n}\n/**\n * Converts a color from CSS rgb format to CSS hex format.\n *\n * @param {string} color - RGB color, i.e. rgb(n, n, n)\n * @returns {string} A CSS rgb color string, i.e. #nnnnnn\n */\n\n\nexport function rgbToHex(color) {\n // Idempotent\n if (color.indexOf('#') === 0) {\n return color;\n }\n\n var _decomposeColor = decomposeColor(color),\n values = _decomposeColor.values;\n\n return \"#\".concat(values.map(function (n) {\n return intToHex(n);\n }).join(''));\n}\n/**\n * Converts a color from hsl format to rgb format.\n *\n * @param {string} color - HSL color values\n * @returns {string} rgb color values\n */\n\nexport function hslToRgb(color) {\n color = decomposeColor(color);\n var _color = color,\n values = _color.values;\n var h = values[0];\n var s = values[1] / 100;\n var l = values[2] / 100;\n var a = s * Math.min(l, 1 - l);\n\n var f = function f(n) {\n var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (n + h / 30) % 12;\n return l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n };\n\n var type = 'rgb';\n var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];\n\n if (color.type === 'hsla') {\n type += 'a';\n rgb.push(values[3]);\n }\n\n return recomposeColor({\n type: type,\n values: rgb\n });\n}\n/**\n * Returns an object with the type and values of a color.\n *\n * Note: Does not support rgb % values.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {object} - A MUI color object: {type: string, values: number[]}\n */\n\nexport function decomposeColor(color) {\n // Idempotent\n if (color.type) {\n return color;\n }\n\n if (color.charAt(0) === '#') {\n return decomposeColor(hexToRgb(color));\n }\n\n var marker = color.indexOf('(');\n var type = color.substring(0, marker);\n\n if (['rgb', 'rgba', 'hsl', 'hsla'].indexOf(type) === -1) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? \"Material-UI: Unsupported `\".concat(color, \"` color.\\nWe support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla().\") : _formatMuiErrorMessage(3, color));\n }\n\n var values = color.substring(marker + 1, color.length - 1).split(',');\n values = values.map(function (value) {\n return parseFloat(value);\n });\n return {\n type: type,\n values: values\n };\n}\n/**\n * Converts a color object with type and values to a string.\n *\n * @param {object} color - Decomposed color\n * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla'\n * @param {array} color.values - [n,n,n] or [n,n,n,n]\n * @returns {string} A CSS color string\n */\n\nexport function recomposeColor(color) {\n var type = color.type;\n var values = color.values;\n\n if (type.indexOf('rgb') !== -1) {\n // Only convert the first 3 values to int (i.e. not alpha)\n values = values.map(function (n, i) {\n return i < 3 ? parseInt(n, 10) : n;\n });\n } else if (type.indexOf('hsl') !== -1) {\n values[1] = \"\".concat(values[1], \"%\");\n values[2] = \"\".concat(values[2], \"%\");\n }\n\n return \"\".concat(type, \"(\").concat(values.join(', '), \")\");\n}\n/**\n * Calculates the contrast ratio between two colors.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n *\n * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {number} A contrast ratio value in the range 0 - 21.\n */\n\nexport function getContrastRatio(foreground, background) {\n var lumA = getLuminance(foreground);\n var lumB = getLuminance(background);\n return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);\n}\n/**\n * The relative brightness of any point in a color space,\n * normalized to 0 for darkest black and 1 for lightest white.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {number} The relative brightness of the color in the range 0 - 1\n */\n\nexport function getLuminance(color) {\n color = decomposeColor(color);\n var rgb = color.type === 'hsl' ? decomposeColor(hslToRgb(color)).values : color.values;\n rgb = rgb.map(function (val) {\n val /= 255; // normalized\n\n return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);\n }); // Truncate at 3 digits\n\n return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));\n}\n/**\n * Darken or lighten a color, depending on its luminance.\n * Light colors are darkened, dark colors are lightened.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {number} coefficient=0.15 - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\n\nexport function emphasize(color) {\n var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15;\n return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\nvar warnedOnce = false;\n/**\n * Set the absolute transparency of a color.\n * Any existing alpha values are overwritten.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {number} value - value to set the alpha channel to in the range 0 -1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n *\n * @deprecated\n * Use `import { alpha } from '@material-ui/core/styles'` instead.\n */\n\nexport function fade(color, value) {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnce) {\n warnedOnce = true;\n console.error(['Material-UI: The `fade` color utility was renamed to `alpha` to better describe its functionality.', '', \"You should use `import { alpha } from '@material-ui/core/styles'`\"].join('\\n'));\n }\n }\n\n return alpha(color, value);\n}\n/**\n * Set the absolute transparency of a color.\n * Any existing alpha value is overwritten.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {number} value - value to set the alpha channel to in the range 0-1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\n\nexport function alpha(color, value) {\n color = decomposeColor(color);\n value = clamp(value);\n\n if (color.type === 'rgb' || color.type === 'hsl') {\n color.type += 'a';\n }\n\n color.values[3] = value;\n return recomposeColor(color);\n}\n/**\n * Darkens a color.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\n\nexport function darken(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clamp(coefficient);\n\n if (color.type.indexOf('hsl') !== -1) {\n color.values[2] *= 1 - coefficient;\n } else if (color.type.indexOf('rgb') !== -1) {\n for (var i = 0; i < 3; i += 1) {\n color.values[i] *= 1 - coefficient;\n }\n }\n\n return recomposeColor(color);\n}\n/**\n * Lightens a color.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\n\nexport function lighten(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clamp(coefficient);\n\n if (color.type.indexOf('hsl') !== -1) {\n color.values[2] += (100 - color.values[2]) * coefficient;\n } else if (color.type.indexOf('rgb') !== -1) {\n for (var i = 0; i < 3; i += 1) {\n color.values[i] += (255 - color.values[i]) * coefficient;\n }\n }\n\n return recomposeColor(color);\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\n// Sorted ASC by size. That's important.\n// It can't be configured as it's used statically for propTypes.\nexport var keys = ['xs', 'sm', 'md', 'lg', 'xl']; // Keep in mind that @media is inclusive by the CSS specification.\n\nexport default function createBreakpoints(breakpoints) {\n var _breakpoints$values = breakpoints.values,\n values = _breakpoints$values === void 0 ? {\n xs: 0,\n sm: 600,\n md: 960,\n lg: 1280,\n xl: 1920\n } : _breakpoints$values,\n _breakpoints$unit = breakpoints.unit,\n unit = _breakpoints$unit === void 0 ? 'px' : _breakpoints$unit,\n _breakpoints$step = breakpoints.step,\n step = _breakpoints$step === void 0 ? 5 : _breakpoints$step,\n other = _objectWithoutProperties(breakpoints, [\"values\", \"unit\", \"step\"]);\n\n function up(key) {\n var value = typeof values[key] === 'number' ? values[key] : key;\n return \"@media (min-width:\".concat(value).concat(unit, \")\");\n }\n\n function down(key) {\n var endIndex = keys.indexOf(key) + 1;\n var upperbound = values[keys[endIndex]];\n\n if (endIndex === keys.length) {\n // xl down applies to all sizes\n return up('xs');\n }\n\n var value = typeof upperbound === 'number' && endIndex > 0 ? upperbound : key;\n return \"@media (max-width:\".concat(value - step / 100).concat(unit, \")\");\n }\n\n function between(start, end) {\n var endIndex = keys.indexOf(end);\n\n if (endIndex === keys.length - 1) {\n return up(start);\n }\n\n return \"@media (min-width:\".concat(typeof values[start] === 'number' ? values[start] : start).concat(unit, \") and \") + \"(max-width:\".concat((endIndex !== -1 && typeof values[keys[endIndex + 1]] === 'number' ? values[keys[endIndex + 1]] : end) - step / 100).concat(unit, \")\");\n }\n\n function only(key) {\n return between(key, key);\n }\n\n var warnedOnce = false;\n\n function width(key) {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnce) {\n warnedOnce = true;\n console.warn([\"Material-UI: The `theme.breakpoints.width` utility is deprecated because it's redundant.\", 'Use the `theme.breakpoints.values` instead.'].join('\\n'));\n }\n }\n\n return values[key];\n }\n\n return _extends({\n keys: keys,\n values: values,\n up: up,\n down: down,\n between: between,\n only: only,\n width: width\n }, other);\n}","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function createMixins(breakpoints, spacing, mixins) {\n var _toolbar;\n\n return _extends({\n gutters: function gutters() {\n var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n console.warn(['Material-UI: theme.mixins.gutters() is deprecated.', 'You can use the source of the mixin directly:', \"\\n paddingLeft: theme.spacing(2),\\n paddingRight: theme.spacing(2),\\n [theme.breakpoints.up('sm')]: {\\n paddingLeft: theme.spacing(3),\\n paddingRight: theme.spacing(3),\\n },\\n \"].join('\\n'));\n return _extends({\n paddingLeft: spacing(2),\n paddingRight: spacing(2)\n }, styles, _defineProperty({}, breakpoints.up('sm'), _extends({\n paddingLeft: spacing(3),\n paddingRight: spacing(3)\n }, styles[breakpoints.up('sm')])));\n },\n toolbar: (_toolbar = {\n minHeight: 56\n }, _defineProperty(_toolbar, \"\".concat(breakpoints.up('xs'), \" and (orientation: landscape)\"), {\n minHeight: 48\n }), _defineProperty(_toolbar, breakpoints.up('sm'), {\n minHeight: 64\n }), _toolbar)\n }, mixins);\n}","var common = {\n black: '#000',\n white: '#fff'\n};\nexport default common;","var grey = {\n 50: '#fafafa',\n 100: '#f5f5f5',\n 200: '#eeeeee',\n 300: '#e0e0e0',\n 400: '#bdbdbd',\n 500: '#9e9e9e',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n A100: '#d5d5d5',\n A200: '#aaaaaa',\n A400: '#303030',\n A700: '#616161'\n};\nexport default grey;","var indigo = {\n 50: '#e8eaf6',\n 100: '#c5cae9',\n 200: '#9fa8da',\n 300: '#7986cb',\n 400: '#5c6bc0',\n 500: '#3f51b5',\n 600: '#3949ab',\n 700: '#303f9f',\n 800: '#283593',\n 900: '#1a237e',\n A100: '#8c9eff',\n A200: '#536dfe',\n A400: '#3d5afe',\n A700: '#304ffe'\n};\nexport default indigo;","var pink = {\n 50: '#fce4ec',\n 100: '#f8bbd0',\n 200: '#f48fb1',\n 300: '#f06292',\n 400: '#ec407a',\n 500: '#e91e63',\n 600: '#d81b60',\n 700: '#c2185b',\n 800: '#ad1457',\n 900: '#880e4f',\n A100: '#ff80ab',\n A200: '#ff4081',\n A400: '#f50057',\n A700: '#c51162'\n};\nexport default pink;","var red = {\n 50: '#ffebee',\n 100: '#ffcdd2',\n 200: '#ef9a9a',\n 300: '#e57373',\n 400: '#ef5350',\n 500: '#f44336',\n 600: '#e53935',\n 700: '#d32f2f',\n 800: '#c62828',\n 900: '#b71c1c',\n A100: '#ff8a80',\n A200: '#ff5252',\n A400: '#ff1744',\n A700: '#d50000'\n};\nexport default red;","var orange = {\n 50: '#fff3e0',\n 100: '#ffe0b2',\n 200: '#ffcc80',\n 300: '#ffb74d',\n 400: '#ffa726',\n 500: '#ff9800',\n 600: '#fb8c00',\n 700: '#f57c00',\n 800: '#ef6c00',\n 900: '#e65100',\n A100: '#ffd180',\n A200: '#ffab40',\n A400: '#ff9100',\n A700: '#ff6d00'\n};\nexport default orange;","var blue = {\n 50: '#e3f2fd',\n 100: '#bbdefb',\n 200: '#90caf9',\n 300: '#64b5f6',\n 400: '#42a5f5',\n 500: '#2196f3',\n 600: '#1e88e5',\n 700: '#1976d2',\n 800: '#1565c0',\n 900: '#0d47a1',\n A100: '#82b1ff',\n A200: '#448aff',\n A400: '#2979ff',\n A700: '#2962ff'\n};\nexport default blue;","var green = {\n 50: '#e8f5e9',\n 100: '#c8e6c9',\n 200: '#a5d6a7',\n 300: '#81c784',\n 400: '#66bb6a',\n 500: '#4caf50',\n 600: '#43a047',\n 700: '#388e3c',\n 800: '#2e7d32',\n 900: '#1b5e20',\n A100: '#b9f6ca',\n A200: '#69f0ae',\n A400: '#00e676',\n A700: '#00c853'\n};\nexport default green;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport { formatMuiErrorMessage as _formatMuiErrorMessage } from \"@material-ui/utils\";\nimport { deepmerge } from '@material-ui/utils';\nimport common from '../colors/common';\nimport grey from '../colors/grey';\nimport indigo from '../colors/indigo';\nimport pink from '../colors/pink';\nimport red from '../colors/red';\nimport orange from '../colors/orange';\nimport blue from '../colors/blue';\nimport green from '../colors/green';\nimport { darken, getContrastRatio, lighten } from './colorManipulator';\nexport var light = {\n // The colors used to style the text.\n text: {\n // The most important text.\n primary: 'rgba(0, 0, 0, 0.87)',\n // Secondary text.\n secondary: 'rgba(0, 0, 0, 0.54)',\n // Disabled text have even lower visual prominence.\n disabled: 'rgba(0, 0, 0, 0.38)',\n // Text hints.\n hint: 'rgba(0, 0, 0, 0.38)'\n },\n // The color used to divide different elements.\n divider: 'rgba(0, 0, 0, 0.12)',\n // The background colors used to style the surfaces.\n // Consistency between these values is important.\n background: {\n paper: common.white,\n default: grey[50]\n },\n // The colors used to style the action elements.\n action: {\n // The color of an active action like an icon button.\n active: 'rgba(0, 0, 0, 0.54)',\n // The color of an hovered action.\n hover: 'rgba(0, 0, 0, 0.04)',\n hoverOpacity: 0.04,\n // The color of a selected action.\n selected: 'rgba(0, 0, 0, 0.08)',\n selectedOpacity: 0.08,\n // The color of a disabled action.\n disabled: 'rgba(0, 0, 0, 0.26)',\n // The background color of a disabled action.\n disabledBackground: 'rgba(0, 0, 0, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(0, 0, 0, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.12\n }\n};\nexport var dark = {\n text: {\n primary: common.white,\n secondary: 'rgba(255, 255, 255, 0.7)',\n disabled: 'rgba(255, 255, 255, 0.5)',\n hint: 'rgba(255, 255, 255, 0.5)',\n icon: 'rgba(255, 255, 255, 0.5)'\n },\n divider: 'rgba(255, 255, 255, 0.12)',\n background: {\n paper: grey[800],\n default: '#303030'\n },\n action: {\n active: common.white,\n hover: 'rgba(255, 255, 255, 0.08)',\n hoverOpacity: 0.08,\n selected: 'rgba(255, 255, 255, 0.16)',\n selectedOpacity: 0.16,\n disabled: 'rgba(255, 255, 255, 0.3)',\n disabledBackground: 'rgba(255, 255, 255, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(255, 255, 255, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.24\n }\n};\n\nfunction addLightOrDark(intent, direction, shade, tonalOffset) {\n var tonalOffsetLight = tonalOffset.light || tonalOffset;\n var tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = lighten(intent.main, tonalOffsetLight);\n } else if (direction === 'dark') {\n intent.dark = darken(intent.main, tonalOffsetDark);\n }\n }\n}\n\nexport default function createPalette(palette) {\n var _palette$primary = palette.primary,\n primary = _palette$primary === void 0 ? {\n light: indigo[300],\n main: indigo[500],\n dark: indigo[700]\n } : _palette$primary,\n _palette$secondary = palette.secondary,\n secondary = _palette$secondary === void 0 ? {\n light: pink.A200,\n main: pink.A400,\n dark: pink.A700\n } : _palette$secondary,\n _palette$error = palette.error,\n error = _palette$error === void 0 ? {\n light: red[300],\n main: red[500],\n dark: red[700]\n } : _palette$error,\n _palette$warning = palette.warning,\n warning = _palette$warning === void 0 ? {\n light: orange[300],\n main: orange[500],\n dark: orange[700]\n } : _palette$warning,\n _palette$info = palette.info,\n info = _palette$info === void 0 ? {\n light: blue[300],\n main: blue[500],\n dark: blue[700]\n } : _palette$info,\n _palette$success = palette.success,\n success = _palette$success === void 0 ? {\n light: green[300],\n main: green[500],\n dark: green[700]\n } : _palette$success,\n _palette$type = palette.type,\n type = _palette$type === void 0 ? 'light' : _palette$type,\n _palette$contrastThre = palette.contrastThreshold,\n contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre,\n _palette$tonalOffset = palette.tonalOffset,\n tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset,\n other = _objectWithoutProperties(palette, [\"primary\", \"secondary\", \"error\", \"warning\", \"info\", \"success\", \"type\", \"contrastThreshold\", \"tonalOffset\"]); // Use the same logic as\n // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59\n // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54\n\n\n function getContrastText(background) {\n var contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;\n\n if (process.env.NODE_ENV !== 'production') {\n var contrast = getContrastRatio(background, contrastText);\n\n if (contrast < 3) {\n console.error([\"Material-UI: The contrast ratio of \".concat(contrast, \":1 for \").concat(contrastText, \" on \").concat(background), 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\\n'));\n }\n }\n\n return contrastText;\n }\n\n var augmentColor = function augmentColor(color) {\n var mainShade = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;\n var lightShade = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 300;\n var darkShade = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 700;\n color = _extends({}, color);\n\n if (!color.main && color[mainShade]) {\n color.main = color[mainShade];\n }\n\n if (!color.main) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? \"Material-UI: The color provided to augmentColor(color) is invalid.\\nThe color object needs to have a `main` property or a `\".concat(mainShade, \"` property.\") : _formatMuiErrorMessage(4, mainShade));\n }\n\n if (typeof color.main !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? \"Material-UI: The color provided to augmentColor(color) is invalid.\\n`color.main` should be a string, but `\".concat(JSON.stringify(color.main), \"` was provided instead.\\n\\nDid you intend to use one of the following approaches?\\n\\nimport {\\xA0green } from \\\"@material-ui/core/colors\\\";\\n\\nconst theme1 = createTheme({ palette: {\\n primary: green,\\n} });\\n\\nconst theme2 = createTheme({ palette: {\\n primary: { main: green[500] },\\n} });\") : _formatMuiErrorMessage(5, JSON.stringify(color.main)));\n }\n\n addLightOrDark(color, 'light', lightShade, tonalOffset);\n addLightOrDark(color, 'dark', darkShade, tonalOffset);\n\n if (!color.contrastText) {\n color.contrastText = getContrastText(color.main);\n }\n\n return color;\n };\n\n var types = {\n dark: dark,\n light: light\n };\n\n if (process.env.NODE_ENV !== 'production') {\n if (!types[type]) {\n console.error(\"Material-UI: The palette type `\".concat(type, \"` is not supported.\"));\n }\n }\n\n var paletteOutput = deepmerge(_extends({\n // A collection of common colors.\n common: common,\n // The palette type, can be light or dark.\n type: type,\n // The colors used to represent primary interface elements for a user.\n primary: augmentColor(primary),\n // The colors used to represent secondary interface elements for a user.\n secondary: augmentColor(secondary, 'A400', 'A200', 'A700'),\n // The colors used to represent interface elements that the user should be made aware of.\n error: augmentColor(error),\n // The colors used to represent potentially dangerous actions or important messages.\n warning: augmentColor(warning),\n // The colors used to present information to the user that is neutral and not necessarily important.\n info: augmentColor(info),\n // The colors used to indicate the successful completion of an action that user triggered.\n success: augmentColor(success),\n // The grey colors.\n grey: grey,\n // Used by `getContrastText()` to maximize the contrast between\n // the background and the text.\n contrastThreshold: contrastThreshold,\n // Takes a background color and returns the text color that maximizes the contrast.\n getContrastText: getContrastText,\n // Generate a rich color object.\n augmentColor: augmentColor,\n // Used by the functions below to shift a color's luminance by approximately\n // two indexes within its tonal palette.\n // E.g., shift from Red 500 to Red 300 or Red 700.\n tonalOffset: tonalOffset\n }, types[type]), other);\n return paletteOutput;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport { deepmerge } from '@material-ui/utils';\n\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\n\nvar warnedOnce = false;\n\nfunction roundWithDeprecationWarning(value) {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnce) {\n console.warn(['Material-UI: The `theme.typography.round` helper is deprecated.', 'Head to https://mui.com/r/migration-v4/#theme for a migration path.'].join('\\n'));\n warnedOnce = true;\n }\n }\n\n return round(value);\n}\n\nvar caseAllCaps = {\n textTransform: 'uppercase'\n};\nvar defaultFontFamily = '\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';\n/**\n * @see @link{https://material.io/design/typography/the-type-system.html}\n * @see @link{https://material.io/design/typography/understanding-typography.html}\n */\n\nexport default function createTypography(palette, typography) {\n var _ref = typeof typography === 'function' ? typography(palette) : typography,\n _ref$fontFamily = _ref.fontFamily,\n fontFamily = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily,\n _ref$fontSize = _ref.fontSize,\n fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize,\n _ref$fontWeightLight = _ref.fontWeightLight,\n fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight,\n _ref$fontWeightRegula = _ref.fontWeightRegular,\n fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula,\n _ref$fontWeightMedium = _ref.fontWeightMedium,\n fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium,\n _ref$fontWeightBold = _ref.fontWeightBold,\n fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold,\n _ref$htmlFontSize = _ref.htmlFontSize,\n htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize,\n allVariants = _ref.allVariants,\n pxToRem2 = _ref.pxToRem,\n other = _objectWithoutProperties(_ref, [\"fontFamily\", \"fontSize\", \"fontWeightLight\", \"fontWeightRegular\", \"fontWeightMedium\", \"fontWeightBold\", \"htmlFontSize\", \"allVariants\", \"pxToRem\"]);\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof fontSize !== 'number') {\n console.error('Material-UI: `fontSize` is required to be a number.');\n }\n\n if (typeof htmlFontSize !== 'number') {\n console.error('Material-UI: `htmlFontSize` is required to be a number.');\n }\n }\n\n var coef = fontSize / 14;\n\n var pxToRem = pxToRem2 || function (size) {\n return \"\".concat(size / htmlFontSize * coef, \"rem\");\n };\n\n var buildVariant = function buildVariant(fontWeight, size, lineHeight, letterSpacing, casing) {\n return _extends({\n fontFamily: fontFamily,\n fontWeight: fontWeight,\n fontSize: pxToRem(size),\n // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/\n lineHeight: lineHeight\n }, fontFamily === defaultFontFamily ? {\n letterSpacing: \"\".concat(round(letterSpacing / size), \"em\")\n } : {}, casing, allVariants);\n };\n\n var variants = {\n h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),\n h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),\n h3: buildVariant(fontWeightRegular, 48, 1.167, 0),\n h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),\n h5: buildVariant(fontWeightRegular, 24, 1.334, 0),\n h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),\n subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),\n subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),\n body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),\n body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),\n button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),\n caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),\n overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps)\n };\n return deepmerge(_extends({\n htmlFontSize: htmlFontSize,\n pxToRem: pxToRem,\n round: roundWithDeprecationWarning,\n // TODO v5: remove\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontWeightLight: fontWeightLight,\n fontWeightRegular: fontWeightRegular,\n fontWeightMedium: fontWeightMedium,\n fontWeightBold: fontWeightBold\n }, variants), other, {\n clone: false // No need to clone deep\n\n });\n}","var shadowKeyUmbraOpacity = 0.2;\nvar shadowKeyPenumbraOpacity = 0.14;\nvar shadowAmbientShadowOpacity = 0.12;\n\nfunction createShadow() {\n return [\"\".concat(arguments.length <= 0 ? undefined : arguments[0], \"px \").concat(arguments.length <= 1 ? undefined : arguments[1], \"px \").concat(arguments.length <= 2 ? undefined : arguments[2], \"px \").concat(arguments.length <= 3 ? undefined : arguments[3], \"px rgba(0,0,0,\").concat(shadowKeyUmbraOpacity, \")\"), \"\".concat(arguments.length <= 4 ? undefined : arguments[4], \"px \").concat(arguments.length <= 5 ? undefined : arguments[5], \"px \").concat(arguments.length <= 6 ? undefined : arguments[6], \"px \").concat(arguments.length <= 7 ? undefined : arguments[7], \"px rgba(0,0,0,\").concat(shadowKeyPenumbraOpacity, \")\"), \"\".concat(arguments.length <= 8 ? undefined : arguments[8], \"px \").concat(arguments.length <= 9 ? undefined : arguments[9], \"px \").concat(arguments.length <= 10 ? undefined : arguments[10], \"px \").concat(arguments.length <= 11 ? undefined : arguments[11], \"px rgba(0,0,0,\").concat(shadowAmbientShadowOpacity, \")\")].join(',');\n} // Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss\n\n\nvar shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];\nexport default shadows;","var shape = {\n borderRadius: 4\n};\nexport default shape;","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport { deepmerge } from '@material-ui/utils';\nimport createBreakpoints from './createBreakpoints';\nimport createMixins from './createMixins';\nimport createPalette from './createPalette';\nimport createTypography from './createTypography';\nimport shadows from './shadows';\nimport shape from './shape';\nimport createSpacing from './createSpacing';\nimport transitions from './transitions';\nimport zIndex from './zIndex';\n\nfunction createTheme() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var _options$breakpoints = options.breakpoints,\n breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints,\n _options$mixins = options.mixins,\n mixinsInput = _options$mixins === void 0 ? {} : _options$mixins,\n _options$palette = options.palette,\n paletteInput = _options$palette === void 0 ? {} : _options$palette,\n spacingInput = options.spacing,\n _options$typography = options.typography,\n typographyInput = _options$typography === void 0 ? {} : _options$typography,\n other = _objectWithoutProperties(options, [\"breakpoints\", \"mixins\", \"palette\", \"spacing\", \"typography\"]);\n\n var palette = createPalette(paletteInput);\n var breakpoints = createBreakpoints(breakpointsInput);\n var spacing = createSpacing(spacingInput);\n var muiTheme = deepmerge({\n breakpoints: breakpoints,\n direction: 'ltr',\n mixins: createMixins(breakpoints, spacing, mixinsInput),\n overrides: {},\n // Inject custom styles\n palette: palette,\n props: {},\n // Provide default props\n shadows: shadows,\n typography: createTypography(palette, typographyInput),\n spacing: spacing,\n shape: shape,\n transitions: transitions,\n zIndex: zIndex\n }, other);\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n muiTheme = args.reduce(function (acc, argument) {\n return deepmerge(acc, argument);\n }, muiTheme);\n\n if (process.env.NODE_ENV !== 'production') {\n var pseudoClasses = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected'];\n\n var traverse = function traverse(node, parentKey) {\n var depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var key; // eslint-disable-next-line guard-for-in, no-restricted-syntax\n\n for (key in node) {\n var child = node[key];\n\n if (depth === 1) {\n if (key.indexOf('Mui') === 0 && child) {\n traverse(child, key, depth + 1);\n }\n } else if (pseudoClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {\n if (process.env.NODE_ENV !== 'production') {\n console.error([\"Material-UI: The `\".concat(parentKey, \"` component increases \") + \"the CSS specificity of the `\".concat(key, \"` internal state.\"), 'You can not override it like this: ', JSON.stringify(node, null, 2), '', 'Instead, you need to use the $ruleName syntax:', JSON.stringify({\n root: _defineProperty({}, \"&$\".concat(key), child)\n }, null, 2), '', 'https://mui.com/r/pseudo-classes-guide'].join('\\n'));\n } // Remove the style to prevent global conflicts.\n\n\n node[key] = {};\n }\n }\n };\n\n traverse(muiTheme.overrides);\n }\n\n return muiTheme;\n}\n\nvar warnedOnce = false;\nexport function createMuiTheme() {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnce) {\n warnedOnce = true;\n console.error(['Material-UI: the createMuiTheme function was renamed to createTheme.', '', \"You should use `import { createTheme } from '@material-ui/core/styles'`\"].join('\\n'));\n }\n }\n\n return createTheme.apply(void 0, arguments);\n}\nexport default createTheme;","import { createUnarySpacing } from '@material-ui/system';\nvar warnOnce;\nexport default function createSpacing() {\n var spacingInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 8;\n\n // Already transformed.\n if (spacingInput.mui) {\n return spacingInput;\n } // Material Design layouts are visually balanced. Most measurements align to an 8dp grid applied, which aligns both spacing and the overall layout.\n // Smaller components, such as icons and type, can align to a 4dp grid.\n // https://material.io/design/layout/understanding-layout.html#usage\n\n\n var transform = createUnarySpacing({\n spacing: spacingInput\n });\n\n var spacing = function spacing() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (!(args.length <= 4)) {\n console.error(\"Material-UI: Too many arguments provided, expected between 0 and 4, got \".concat(args.length));\n }\n }\n\n if (args.length === 0) {\n return transform(1);\n }\n\n if (args.length === 1) {\n return transform(args[0]);\n }\n\n return args.map(function (argument) {\n if (typeof argument === 'string') {\n return argument;\n }\n\n var output = transform(argument);\n return typeof output === 'number' ? \"\".concat(output, \"px\") : output;\n }).join(' ');\n }; // Backward compatibility, to remove in v5.\n\n\n Object.defineProperty(spacing, 'unit', {\n get: function get() {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnOnce || process.env.NODE_ENV === 'test') {\n console.error(['Material-UI: theme.spacing.unit usage has been deprecated.', 'It will be removed in v5.', 'You can replace `theme.spacing.unit * y` with `theme.spacing(y)`.', '', 'You can use the `https://github.com/mui-org/material-ui/tree/master/packages/material-ui-codemod/README.md#theme-spacing-api` migration helper to make the process smoother.'].join('\\n'));\n }\n\n warnOnce = true;\n }\n\n return spacingInput;\n }\n });\n spacing.mui = true;\n return spacing;\n}","import createTheme from './createTheme';\nvar defaultTheme = createTheme();\nexport default defaultTheme;","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\n// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves\n// to learn the context in which each easing should be used.\nexport var easing = {\n // This is the most common easing curve.\n easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\n // Objects enter the screen at full velocity from off-screen and\n // slowly decelerate to a resting point.\n easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',\n // Objects leave the screen at full velocity. They do not decelerate when off-screen.\n easeIn: 'cubic-bezier(0.4, 0, 1, 1)',\n // The sharp curve is used by objects that may return to the screen at any time.\n sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'\n}; // Follow https://material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations\n// to learn when use what timing\n\nexport var duration = {\n shortest: 150,\n shorter: 200,\n short: 250,\n // most basic recommended timing\n standard: 300,\n // this is to be used in complex animations\n complex: 375,\n // recommended when something is entering screen\n enteringScreen: 225,\n // recommended when something is leaving screen\n leavingScreen: 195\n};\n\nfunction formatMs(milliseconds) {\n return \"\".concat(Math.round(milliseconds), \"ms\");\n}\n/**\n * @param {string|Array} props\n * @param {object} param\n * @param {string} param.prop\n * @param {number} param.duration\n * @param {string} param.easing\n * @param {number} param.delay\n */\n\n\nexport default {\n easing: easing,\n duration: duration,\n create: function create() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all'];\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var _options$duration = options.duration,\n durationOption = _options$duration === void 0 ? duration.standard : _options$duration,\n _options$easing = options.easing,\n easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing,\n _options$delay = options.delay,\n delay = _options$delay === void 0 ? 0 : _options$delay,\n other = _objectWithoutProperties(options, [\"duration\", \"easing\", \"delay\"]);\n\n if (process.env.NODE_ENV !== 'production') {\n var isString = function isString(value) {\n return typeof value === 'string';\n };\n\n var isNumber = function isNumber(value) {\n return !isNaN(parseFloat(value));\n };\n\n if (!isString(props) && !Array.isArray(props)) {\n console.error('Material-UI: Argument \"props\" must be a string or Array.');\n }\n\n if (!isNumber(durationOption) && !isString(durationOption)) {\n console.error(\"Material-UI: Argument \\\"duration\\\" must be a number or a string but found \".concat(durationOption, \".\"));\n }\n\n if (!isString(easingOption)) {\n console.error('Material-UI: Argument \"easing\" must be a string.');\n }\n\n if (!isNumber(delay) && !isString(delay)) {\n console.error('Material-UI: Argument \"delay\" must be a number or a string.');\n }\n\n if (Object.keys(other).length !== 0) {\n console.error(\"Material-UI: Unrecognized argument(s) [\".concat(Object.keys(other).join(','), \"].\"));\n }\n }\n\n return (Array.isArray(props) ? props : [props]).map(function (animatedProp) {\n return \"\".concat(animatedProp, \" \").concat(typeof durationOption === 'string' ? durationOption : formatMs(durationOption), \" \").concat(easingOption, \" \").concat(typeof delay === 'string' ? delay : formatMs(delay));\n }).join(',');\n },\n getAutoHeightDuration: function getAutoHeightDuration(height) {\n if (!height) {\n return 0;\n }\n\n var constant = height / 36; // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10\n\n return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);\n }\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport { chainPropTypes, getDisplayName } from '@material-ui/utils';\nimport makeStyles from '../makeStyles';\nimport getThemeProps from '../getThemeProps';\nimport useTheme from '../useTheme'; // Link a style sheet with a component.\n// It does not modify the component passed to it;\n// instead, it returns a new component, with a `classes` property.\n\nvar withStyles = function withStyles(stylesOrCreator) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return function (Component) {\n var defaultTheme = options.defaultTheme,\n _options$withTheme = options.withTheme,\n withTheme = _options$withTheme === void 0 ? false : _options$withTheme,\n name = options.name,\n stylesOptions = _objectWithoutProperties(options, [\"defaultTheme\", \"withTheme\", \"name\"]);\n\n if (process.env.NODE_ENV !== 'production') {\n if (Component === undefined) {\n throw new Error(['You are calling withStyles(styles)(Component) with an undefined component.', 'You may have forgotten to import it.'].join('\\n'));\n }\n }\n\n var classNamePrefix = name;\n\n if (process.env.NODE_ENV !== 'production') {\n if (!name) {\n // Provide a better DX outside production.\n var displayName = getDisplayName(Component);\n\n if (displayName !== undefined) {\n classNamePrefix = displayName;\n }\n }\n }\n\n var useStyles = makeStyles(stylesOrCreator, _extends({\n defaultTheme: defaultTheme,\n Component: Component,\n name: name || Component.displayName,\n classNamePrefix: classNamePrefix\n }, stylesOptions));\n var WithStyles = /*#__PURE__*/React.forwardRef(function WithStyles(props, ref) {\n var classesProp = props.classes,\n innerRef = props.innerRef,\n other = _objectWithoutProperties(props, [\"classes\", \"innerRef\"]); // The wrapper receives only user supplied props, which could be a subset of\n // the actual props Component might receive due to merging with defaultProps.\n // So copying it here would give us the same result in the wrapper as well.\n\n\n var classes = useStyles(_extends({}, Component.defaultProps, props));\n var theme;\n var more = other;\n\n if (typeof name === 'string' || withTheme) {\n // name and withTheme are invariant in the outer scope\n // eslint-disable-next-line react-hooks/rules-of-hooks\n theme = useTheme() || defaultTheme;\n\n if (name) {\n more = getThemeProps({\n theme: theme,\n name: name,\n props: other\n });\n } // Provide the theme to the wrapped component.\n // So we don't have to use the `withTheme()` Higher-order Component.\n\n\n if (withTheme && !more.theme) {\n more.theme = theme;\n }\n }\n\n return /*#__PURE__*/React.createElement(Component, _extends({\n ref: innerRef || ref,\n classes: classes\n }, more));\n });\n process.env.NODE_ENV !== \"production\" ? WithStyles.propTypes = {\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n\n /**\n * Use that prop to pass a ref to the decorated component.\n * @deprecated\n */\n innerRef: chainPropTypes(PropTypes.oneOfType([PropTypes.func, PropTypes.object]), function (props) {\n if (props.innerRef == null) {\n return null;\n }\n\n return null; // return new Error(\n // 'Material-UI: The `innerRef` prop is deprecated and will be removed in v5. ' +\n // 'Refs are now automatically forwarded to the inner component.',\n // );\n })\n } : void 0;\n\n if (process.env.NODE_ENV !== 'production') {\n WithStyles.displayName = \"WithStyles(\".concat(getDisplayName(Component), \")\");\n }\n\n hoistNonReactStatics(WithStyles, Component);\n\n if (process.env.NODE_ENV !== 'production') {\n // Exposed for test purposes.\n WithStyles.Naked = Component;\n WithStyles.options = options;\n WithStyles.useStyles = useStyles;\n }\n\n return WithStyles;\n };\n};\n\nexport default withStyles;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { withStyles as withStylesWithoutDefault } from '@material-ui/styles';\nimport defaultTheme from './defaultTheme';\n\nfunction withStyles(stylesOrCreator, options) {\n return withStylesWithoutDefault(stylesOrCreator, _extends({\n defaultTheme: defaultTheme\n }, options));\n}\n\nexport default withStyles;","// We need to centralize the zIndex definitions as they work\n// like global values in the browser.\nvar zIndex = {\n mobileStepper: 1000,\n speedDial: 1050,\n appBar: 1100,\n drawer: 1200,\n modal: 1300,\n snackbar: 1400,\n tooltip: 1500\n};\nexport default zIndex;","import { formatMuiErrorMessage as _formatMuiErrorMessage } from \"@material-ui/utils\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word a the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? \"Material-UI: capitalize(string) expects a string argument.\" : _formatMuiErrorMessage(7));\n }\n\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","/**\n * Safe chained function\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n *\n * @param {function} functions to chain\n * @returns {function|null}\n */\nexport default function createChainedFunction() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return funcs.reduce(function (acc, func) {\n if (func == null) {\n return acc;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof func !== 'function') {\n console.error('Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.');\n }\n }\n\n return function chainedFunction() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n acc.apply(this, args);\n func.apply(this, args);\n };\n }, function () {});\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport React from 'react';\nimport SvgIcon from '../SvgIcon';\n/**\n * Private module reserved for @material-ui/x packages.\n */\n\nexport default function createSvgIcon(path, displayName) {\n var Component = function Component(props, ref) {\n return /*#__PURE__*/React.createElement(SvgIcon, _extends({\n ref: ref\n }, props), path);\n };\n\n if (process.env.NODE_ENV !== 'production') {\n // Need to set `displayName` on the inner component for React.memo.\n // React prior to 16.14 ignores `displayName` on the wrapper.\n Component.displayName = \"\".concat(displayName, \"Icon\");\n }\n\n Component.muiName = SvgIcon.muiName;\n return /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Component));\n}","// Corresponds to 10 frames at 60 Hz.\n// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.\nexport default function debounce(func) {\n var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 166;\n var timeout;\n\n function debounced() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n // eslint-disable-next-line consistent-this\n var that = this;\n\n var later = function later() {\n func.apply(that, args);\n };\n\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n }\n\n debounced.clear = function () {\n clearTimeout(timeout);\n };\n\n return debounced;\n}","export default function deprecatedPropType(validator, reason) {\n if (process.env.NODE_ENV === 'production') {\n return function () {\n return null;\n };\n }\n\n return function (props, propName, componentName, location, propFullName) {\n var componentNameSafe = componentName || '<>';\n var propFullNameSafe = propFullName || propName;\n\n if (typeof props[propName] !== 'undefined') {\n return new Error(\"The \".concat(location, \" `\").concat(propFullNameSafe, \"` of \") + \"`\".concat(componentNameSafe, \"` is deprecated. \").concat(reason));\n }\n\n return null;\n };\n}","export default function requirePropFactory(componentNameInError) {\n if (process.env.NODE_ENV === 'production') {\n return function () {\n return null;\n };\n }\n\n var requireProp = function requireProp(requiredProp) {\n return function (props, propName, componentName, location, propFullName) {\n var propFullNameSafe = propFullName || propName;\n\n if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {\n return new Error(\"The prop `\".concat(propFullNameSafe, \"` of \") + \"`\".concat(componentNameInError, \"` must be used on `\").concat(requiredProp, \"`.\"));\n }\n\n return null;\n };\n };\n\n return requireProp;\n}","export default function unsupportedProp(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n\n var propFullNameSafe = propFullName || propName;\n\n if (typeof props[propName] !== 'undefined') {\n return new Error(\"The prop `\".concat(propFullNameSafe, \"` is not supported. Please remove it.\"));\n }\n\n return null;\n}","import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf(element.type.muiName) !== -1;\n}","export default function ownerDocument(node) {\n return node && node.ownerDocument || document;\n}","import ownerDocument from './ownerDocument';\nexport default function ownerWindow(node) {\n var doc = ownerDocument(node);\n return doc.defaultView || window;\n}","// TODO v5: consider to make it private\nexport default function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}","import * as React from 'react';\n/**\n * Private module reserved for @material-ui/x packages.\n */\n\nexport default function useId(idOverride) {\n var _React$useState = React.useState(idOverride),\n defaultId = _React$useState[0],\n setDefaultId = _React$useState[1];\n\n var id = idOverride || defaultId;\n React.useEffect(function () {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the random value for client-side rendering only.\n // We can't use it server-side.\n setDefaultId(\"mui-\".concat(Math.round(Math.random() * 1e5)));\n }\n }, [defaultId]);\n return id;\n}","/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nexport default function useControlled(_ref) {\n var controlled = _ref.controlled,\n defaultProp = _ref.default,\n name = _ref.name,\n _ref$state = _ref.state,\n state = _ref$state === void 0 ? 'value' : _ref$state;\n\n var _React$useRef = React.useRef(controlled !== undefined),\n isControlled = _React$useRef.current;\n\n var _React$useState = React.useState(defaultProp),\n valueState = _React$useState[0],\n setValue = _React$useState[1];\n\n var value = isControlled ? controlled : valueState;\n\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(function () {\n if (isControlled !== (controlled !== undefined)) {\n console.error([\"Material-UI: A component is changing the \".concat(isControlled ? '' : 'un', \"controlled \").concat(state, \" state of \").concat(name, \" to be \").concat(isControlled ? 'un' : '', \"controlled.\"), 'Elements should not switch from uncontrolled to controlled (or vice versa).', \"Decide between using a controlled or uncontrolled \".concat(name, \" \") + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render, it's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [controlled]);\n\n var _React$useRef2 = React.useRef(defaultProp),\n defaultValue = _React$useRef2.current;\n\n React.useEffect(function () {\n if (!isControlled && defaultValue !== defaultProp) {\n console.error([\"Material-UI: A component is changing the default \".concat(state, \" state of an uncontrolled \").concat(name, \" after being initialized. \") + \"To suppress this warning opt to use a controlled \".concat(name, \".\")].join('\\n'));\n }\n }, [JSON.stringify(defaultProp)]);\n }\n\n var setValueIfUncontrolled = React.useCallback(function (newValue) {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}","import * as React from 'react';\nvar useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\n/**\n * https://github.com/facebook/react/issues/14099#issuecomment-440013892\n *\n * @param {function} fn\n */\n\nexport default function useEventCallback(fn) {\n var ref = React.useRef(fn);\n useEnhancedEffect(function () {\n ref.current = fn;\n });\n return React.useCallback(function () {\n return (0, ref.current).apply(void 0, arguments);\n }, []);\n}","import * as React from 'react';\nimport setRef from './setRef';\nexport default function useForkRef(refA, refB) {\n /**\n * This will create a new function if the ref props change and are defined.\n * This means react will call the old forkRef with `null` and the new forkRef\n * with the ref. Cleanup naturally emerges from this behavior\n */\n return React.useMemo(function () {\n if (refA == null && refB == null) {\n return null;\n }\n\n return function (refValue) {\n setRef(refA, refValue);\n setRef(refB, refValue);\n };\n }, [refA, refB]);\n}","// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nvar hadKeyboardEvent = true;\nvar hadFocusVisibleRecently = false;\nvar hadFocusVisibleRecentlyTimeout = null;\nvar inputTypesWhitelist = {\n text: true,\n search: true,\n url: true,\n tel: true,\n email: true,\n password: true,\n number: true,\n date: true,\n month: true,\n week: true,\n time: true,\n datetime: true,\n 'datetime-local': true\n};\n/**\n * Computes whether the given element should automatically trigger the\n * `focus-visible` class being added, i.e. whether it should always match\n * `:focus-visible` when focused.\n * @param {Element} node\n * @return {boolean}\n */\n\nfunction focusTriggersKeyboardModality(node) {\n var type = node.type,\n tagName = node.tagName;\n\n if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {\n return true;\n }\n\n if (tagName === 'TEXTAREA' && !node.readOnly) {\n return true;\n }\n\n if (node.isContentEditable) {\n return true;\n }\n\n return false;\n}\n/**\n * Keep track of our keyboard modality state with `hadKeyboardEvent`.\n * If the most recent user interaction was via the keyboard;\n * and the key press did not include a meta, alt/option, or control key;\n * then the modality is keyboard. Otherwise, the modality is not keyboard.\n * @param {KeyboardEvent} event\n */\n\n\nfunction handleKeyDown(event) {\n if (event.metaKey || event.altKey || event.ctrlKey) {\n return;\n }\n\n hadKeyboardEvent = true;\n}\n/**\n * If at any point a user clicks with a pointing device, ensure that we change\n * the modality away from keyboard.\n * This avoids the situation where a user presses a key on an already focused\n * element, and then clicks on a different element, focusing it with a\n * pointing device, while we still think we're in keyboard modality.\n */\n\n\nfunction handlePointerDown() {\n hadKeyboardEvent = false;\n}\n\nfunction handleVisibilityChange() {\n if (this.visibilityState === 'hidden') {\n // If the tab becomes active again, the browser will handle calling focus\n // on the element (Safari actually calls it twice).\n // If this tab change caused a blur on an element with focus-visible,\n // re-apply the class when the user switches back to the tab.\n if (hadFocusVisibleRecently) {\n hadKeyboardEvent = true;\n }\n }\n}\n\nfunction prepare(doc) {\n doc.addEventListener('keydown', handleKeyDown, true);\n doc.addEventListener('mousedown', handlePointerDown, true);\n doc.addEventListener('pointerdown', handlePointerDown, true);\n doc.addEventListener('touchstart', handlePointerDown, true);\n doc.addEventListener('visibilitychange', handleVisibilityChange, true);\n}\n\nexport function teardown(doc) {\n doc.removeEventListener('keydown', handleKeyDown, true);\n doc.removeEventListener('mousedown', handlePointerDown, true);\n doc.removeEventListener('pointerdown', handlePointerDown, true);\n doc.removeEventListener('touchstart', handlePointerDown, true);\n doc.removeEventListener('visibilitychange', handleVisibilityChange, true);\n}\n\nfunction isFocusVisible(event) {\n var target = event.target;\n\n try {\n return target.matches(':focus-visible');\n } catch (error) {} // browsers not implementing :focus-visible will throw a SyntaxError\n // we use our own heuristic for those browsers\n // rethrow might be better if it's not the expected error but do we really\n // want to crash if focus-visible malfunctioned?\n // no need for validFocusTarget check. the user does that by attaching it to\n // focusable events only\n\n\n return hadKeyboardEvent || focusTriggersKeyboardModality(target);\n}\n/**\n * Should be called if a blur event is fired on a focus-visible element\n */\n\n\nfunction handleBlurVisible() {\n // To detect a tab/window switch, we look for a blur event followed\n // rapidly by a visibility change.\n // If we don't see a visibility change within 100ms, it's probably a\n // regular focus change.\n hadFocusVisibleRecently = true;\n window.clearTimeout(hadFocusVisibleRecentlyTimeout);\n hadFocusVisibleRecentlyTimeout = window.setTimeout(function () {\n hadFocusVisibleRecently = false;\n }, 100);\n}\n\nexport default function useIsFocusVisible() {\n var ref = React.useCallback(function (instance) {\n var node = ReactDOM.findDOMNode(instance);\n\n if (node != null) {\n prepare(node.ownerDocument);\n }\n }, []);\n\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(isFocusVisible);\n }\n\n return {\n isFocusVisible: isFocusVisible,\n onBlurVisible: handleBlurVisible,\n ref: ref\n };\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z\"\n}), 'ArrowDownward');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z\"\n}), 'Cancel');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z\"\n}), 'CheckCircle');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 9H4v2h16V9zM4 15h16v-2H4v2z\"\n}), 'DragHandle');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z\"\n}), 'ExpandMore');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z\"\n}), 'Translate');\n\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _utils.createSvgIcon;\n }\n});\n\nvar _utils = require(\"@material-ui/core/utils\");","var hasSymbol = typeof Symbol === 'function' && Symbol.for;\nexport default hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__';","/* eslint-disable no-restricted-syntax */\nexport default function getThemeProps(params) {\n var theme = params.theme,\n name = params.name,\n props = params.props;\n\n if (!theme || !theme.props || !theme.props[name]) {\n return props;\n } // Resolve default props, code borrow from React source.\n // https://github.com/facebook/react/blob/15a8f031838a553e41c0b66eb1bcf1da8448104d/packages/react/src/ReactElement.js#L221\n\n\n var defaultProps = theme.props[name];\n var propName;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n\n return props;\n}","var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexport var isBrowser = (typeof window === \"undefined\" ? \"undefined\" : _typeof(window)) === \"object\" && (typeof document === \"undefined\" ? \"undefined\" : _typeof(document)) === 'object' && document.nodeType === 9;\n\nexport default isBrowser;\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport isInBrowser from 'is-in-browser';\nimport warning from 'tiny-warning';\nimport _createClass from '@babel/runtime/helpers/esm/createClass';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\n\nvar plainObjectConstrurctor = {}.constructor;\nfunction cloneStyle(style) {\n if (style == null || typeof style !== 'object') return style;\n if (Array.isArray(style)) return style.map(cloneStyle);\n if (style.constructor !== plainObjectConstrurctor) return style;\n var newStyle = {};\n\n for (var name in style) {\n newStyle[name] = cloneStyle(style[name]);\n }\n\n return newStyle;\n}\n\n/**\n * Create a rule instance.\n */\n\nfunction createRule(name, decl, options) {\n if (name === void 0) {\n name = 'unnamed';\n }\n\n var jss = options.jss;\n var declCopy = cloneStyle(decl);\n var rule = jss.plugins.onCreateRule(name, declCopy, options);\n if (rule) return rule; // It is an at-rule and it has no instance.\n\n if (name[0] === '@') {\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Unknown rule \" + name) : void 0;\n }\n\n return null;\n}\n\nvar join = function join(value, by) {\n var result = '';\n\n for (var i = 0; i < value.length; i++) {\n // Remove !important from the value, it will be readded later.\n if (value[i] === '!important') break;\n if (result) result += by;\n result += value[i];\n }\n\n return result;\n};\n/**\n * Converts JSS array value to a CSS string.\n *\n * `margin: [['5px', '10px']]` > `margin: 5px 10px;`\n * `border: ['1px', '2px']` > `border: 1px, 2px;`\n * `margin: [['5px', '10px'], '!important']` > `margin: 5px 10px !important;`\n * `color: ['red', !important]` > `color: red !important;`\n */\n\n\nvar toCssValue = function toCssValue(value) {\n if (!Array.isArray(value)) return value;\n var cssValue = ''; // Support space separated values via `[['5px', '10px']]`.\n\n if (Array.isArray(value[0])) {\n for (var i = 0; i < value.length; i++) {\n if (value[i] === '!important') break;\n if (cssValue) cssValue += ', ';\n cssValue += join(value[i], ' ');\n }\n } else cssValue = join(value, ', '); // Add !important, because it was ignored.\n\n\n if (value[value.length - 1] === '!important') {\n cssValue += ' !important';\n }\n\n return cssValue;\n};\n\nfunction getWhitespaceSymbols(options) {\n if (options && options.format === false) {\n return {\n linebreak: '',\n space: ''\n };\n }\n\n return {\n linebreak: '\\n',\n space: ' '\n };\n}\n\n/**\n * Indent a string.\n * http://jsperf.com/array-join-vs-for\n */\n\nfunction indentStr(str, indent) {\n var result = '';\n\n for (var index = 0; index < indent; index++) {\n result += ' ';\n }\n\n return result + str;\n}\n/**\n * Converts a Rule to CSS string.\n */\n\n\nfunction toCss(selector, style, options) {\n if (options === void 0) {\n options = {};\n }\n\n var result = '';\n if (!style) return result;\n var _options = options,\n _options$indent = _options.indent,\n indent = _options$indent === void 0 ? 0 : _options$indent;\n var fallbacks = style.fallbacks;\n\n if (options.format === false) {\n indent = -Infinity;\n }\n\n var _getWhitespaceSymbols = getWhitespaceSymbols(options),\n linebreak = _getWhitespaceSymbols.linebreak,\n space = _getWhitespaceSymbols.space;\n\n if (selector) indent++; // Apply fallbacks first.\n\n if (fallbacks) {\n // Array syntax {fallbacks: [{prop: value}]}\n if (Array.isArray(fallbacks)) {\n for (var index = 0; index < fallbacks.length; index++) {\n var fallback = fallbacks[index];\n\n for (var prop in fallback) {\n var value = fallback[prop];\n\n if (value != null) {\n if (result) result += linebreak;\n result += indentStr(prop + \":\" + space + toCssValue(value) + \";\", indent);\n }\n }\n }\n } else {\n // Object syntax {fallbacks: {prop: value}}\n for (var _prop in fallbacks) {\n var _value = fallbacks[_prop];\n\n if (_value != null) {\n if (result) result += linebreak;\n result += indentStr(_prop + \":\" + space + toCssValue(_value) + \";\", indent);\n }\n }\n }\n }\n\n for (var _prop2 in style) {\n var _value2 = style[_prop2];\n\n if (_value2 != null && _prop2 !== 'fallbacks') {\n if (result) result += linebreak;\n result += indentStr(_prop2 + \":\" + space + toCssValue(_value2) + \";\", indent);\n }\n } // Allow empty style in this case, because properties will be added dynamically.\n\n\n if (!result && !options.allowEmpty) return result; // When rule is being stringified before selector was defined.\n\n if (!selector) return result;\n indent--;\n if (result) result = \"\" + linebreak + result + linebreak;\n return indentStr(\"\" + selector + space + \"{\" + result, indent) + indentStr('}', indent);\n}\n\nvar escapeRegex = /([[\\].#*$><+~=|^:(),\"'`\\s])/g;\nvar nativeEscape = typeof CSS !== 'undefined' && CSS.escape;\nvar escape = (function (str) {\n return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, '\\\\$1');\n});\n\nvar BaseStyleRule =\n/*#__PURE__*/\nfunction () {\n function BaseStyleRule(key, style, options) {\n this.type = 'style';\n this.isProcessed = false;\n var sheet = options.sheet,\n Renderer = options.Renderer;\n this.key = key;\n this.options = options;\n this.style = style;\n if (sheet) this.renderer = sheet.renderer;else if (Renderer) this.renderer = new Renderer();\n }\n /**\n * Get or set a style property.\n */\n\n\n var _proto = BaseStyleRule.prototype;\n\n _proto.prop = function prop(name, value, options) {\n // It's a getter.\n if (value === undefined) return this.style[name]; // Don't do anything if the value has not changed.\n\n var force = options ? options.force : false;\n if (!force && this.style[name] === value) return this;\n var newValue = value;\n\n if (!options || options.process !== false) {\n newValue = this.options.jss.plugins.onChangeValue(value, name, this);\n }\n\n var isEmpty = newValue == null || newValue === false;\n var isDefined = name in this.style; // Value is empty and wasn't defined before.\n\n if (isEmpty && !isDefined && !force) return this; // We are going to remove this value.\n\n var remove = isEmpty && isDefined;\n if (remove) delete this.style[name];else this.style[name] = newValue; // Renderable is defined if StyleSheet option `link` is true.\n\n if (this.renderable && this.renderer) {\n if (remove) this.renderer.removeProperty(this.renderable, name);else this.renderer.setProperty(this.renderable, name, newValue);\n return this;\n }\n\n var sheet = this.options.sheet;\n\n if (sheet && sheet.attached) {\n process.env.NODE_ENV !== \"production\" ? warning(false, '[JSS] Rule is not linked. Missing sheet option \"link: true\".') : void 0;\n }\n\n return this;\n };\n\n return BaseStyleRule;\n}();\nvar StyleRule =\n/*#__PURE__*/\nfunction (_BaseStyleRule) {\n _inheritsLoose(StyleRule, _BaseStyleRule);\n\n function StyleRule(key, style, options) {\n var _this;\n\n _this = _BaseStyleRule.call(this, key, style, options) || this;\n var selector = options.selector,\n scoped = options.scoped,\n sheet = options.sheet,\n generateId = options.generateId;\n\n if (selector) {\n _this.selectorText = selector;\n } else if (scoped !== false) {\n _this.id = generateId(_assertThisInitialized(_assertThisInitialized(_this)), sheet);\n _this.selectorText = \".\" + escape(_this.id);\n }\n\n return _this;\n }\n /**\n * Set selector string.\n * Attention: use this with caution. Most browsers didn't implement\n * selectorText setter, so this may result in rerendering of entire Style Sheet.\n */\n\n\n var _proto2 = StyleRule.prototype;\n\n /**\n * Apply rule to an element inline.\n */\n _proto2.applyTo = function applyTo(renderable) {\n var renderer = this.renderer;\n\n if (renderer) {\n var json = this.toJSON();\n\n for (var prop in json) {\n renderer.setProperty(renderable, prop, json[prop]);\n }\n }\n\n return this;\n }\n /**\n * Returns JSON representation of the rule.\n * Fallbacks are not supported.\n * Useful for inline styles.\n */\n ;\n\n _proto2.toJSON = function toJSON() {\n var json = {};\n\n for (var prop in this.style) {\n var value = this.style[prop];\n if (typeof value !== 'object') json[prop] = value;else if (Array.isArray(value)) json[prop] = toCssValue(value);\n }\n\n return json;\n }\n /**\n * Generates a CSS string.\n */\n ;\n\n _proto2.toString = function toString(options) {\n var sheet = this.options.sheet;\n var link = sheet ? sheet.options.link : false;\n var opts = link ? _extends({}, options, {\n allowEmpty: true\n }) : options;\n return toCss(this.selectorText, this.style, opts);\n };\n\n _createClass(StyleRule, [{\n key: \"selector\",\n set: function set(selector) {\n if (selector === this.selectorText) return;\n this.selectorText = selector;\n var renderer = this.renderer,\n renderable = this.renderable;\n if (!renderable || !renderer) return;\n var hasChanged = renderer.setSelector(renderable, selector); // If selector setter is not implemented, rerender the rule.\n\n if (!hasChanged) {\n renderer.replaceRule(renderable, this);\n }\n }\n /**\n * Get selector string.\n */\n ,\n get: function get() {\n return this.selectorText;\n }\n }]);\n\n return StyleRule;\n}(BaseStyleRule);\nvar pluginStyleRule = {\n onCreateRule: function onCreateRule(key, style, options) {\n if (key[0] === '@' || options.parent && options.parent.type === 'keyframes') {\n return null;\n }\n\n return new StyleRule(key, style, options);\n }\n};\n\nvar defaultToStringOptions = {\n indent: 1,\n children: true\n};\nvar atRegExp = /@([\\w-]+)/;\n/**\n * Conditional rule for @media, @supports\n */\n\nvar ConditionalRule =\n/*#__PURE__*/\nfunction () {\n function ConditionalRule(key, styles, options) {\n this.type = 'conditional';\n this.isProcessed = false;\n this.key = key;\n var atMatch = key.match(atRegExp);\n this.at = atMatch ? atMatch[1] : 'unknown'; // Key might contain a unique suffix in case the `name` passed by user was duplicate.\n\n this.query = options.name || \"@\" + this.at;\n this.options = options;\n this.rules = new RuleList(_extends({}, options, {\n parent: this\n }));\n\n for (var name in styles) {\n this.rules.add(name, styles[name]);\n }\n\n this.rules.process();\n }\n /**\n * Get a rule.\n */\n\n\n var _proto = ConditionalRule.prototype;\n\n _proto.getRule = function getRule(name) {\n return this.rules.get(name);\n }\n /**\n * Get index of a rule.\n */\n ;\n\n _proto.indexOf = function indexOf(rule) {\n return this.rules.indexOf(rule);\n }\n /**\n * Create and register rule, run plugins.\n */\n ;\n\n _proto.addRule = function addRule(name, style, options) {\n var rule = this.rules.add(name, style, options);\n if (!rule) return null;\n this.options.jss.plugins.onProcessRule(rule);\n return rule;\n }\n /**\n * Replace rule, run plugins.\n */\n ;\n\n _proto.replaceRule = function replaceRule(name, style, options) {\n var newRule = this.rules.replace(name, style, options);\n if (newRule) this.options.jss.plugins.onProcessRule(newRule);\n return newRule;\n }\n /**\n * Generates a CSS string.\n */\n ;\n\n _proto.toString = function toString(options) {\n if (options === void 0) {\n options = defaultToStringOptions;\n }\n\n var _getWhitespaceSymbols = getWhitespaceSymbols(options),\n linebreak = _getWhitespaceSymbols.linebreak;\n\n if (options.indent == null) options.indent = defaultToStringOptions.indent;\n if (options.children == null) options.children = defaultToStringOptions.children;\n\n if (options.children === false) {\n return this.query + \" {}\";\n }\n\n var children = this.rules.toString(options);\n return children ? this.query + \" {\" + linebreak + children + linebreak + \"}\" : '';\n };\n\n return ConditionalRule;\n}();\nvar keyRegExp = /@container|@media|@supports\\s+/;\nvar pluginConditionalRule = {\n onCreateRule: function onCreateRule(key, styles, options) {\n return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;\n }\n};\n\nvar defaultToStringOptions$1 = {\n indent: 1,\n children: true\n};\nvar nameRegExp = /@keyframes\\s+([\\w-]+)/;\n/**\n * Rule for @keyframes\n */\n\nvar KeyframesRule =\n/*#__PURE__*/\nfunction () {\n function KeyframesRule(key, frames, options) {\n this.type = 'keyframes';\n this.at = '@keyframes';\n this.isProcessed = false;\n var nameMatch = key.match(nameRegExp);\n\n if (nameMatch && nameMatch[1]) {\n this.name = nameMatch[1];\n } else {\n this.name = 'noname';\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Bad keyframes name \" + key) : void 0;\n }\n\n this.key = this.type + \"-\" + this.name;\n this.options = options;\n var scoped = options.scoped,\n sheet = options.sheet,\n generateId = options.generateId;\n this.id = scoped === false ? this.name : escape(generateId(this, sheet));\n this.rules = new RuleList(_extends({}, options, {\n parent: this\n }));\n\n for (var name in frames) {\n this.rules.add(name, frames[name], _extends({}, options, {\n parent: this\n }));\n }\n\n this.rules.process();\n }\n /**\n * Generates a CSS string.\n */\n\n\n var _proto = KeyframesRule.prototype;\n\n _proto.toString = function toString(options) {\n if (options === void 0) {\n options = defaultToStringOptions$1;\n }\n\n var _getWhitespaceSymbols = getWhitespaceSymbols(options),\n linebreak = _getWhitespaceSymbols.linebreak;\n\n if (options.indent == null) options.indent = defaultToStringOptions$1.indent;\n if (options.children == null) options.children = defaultToStringOptions$1.children;\n\n if (options.children === false) {\n return this.at + \" \" + this.id + \" {}\";\n }\n\n var children = this.rules.toString(options);\n if (children) children = \"\" + linebreak + children + linebreak;\n return this.at + \" \" + this.id + \" {\" + children + \"}\";\n };\n\n return KeyframesRule;\n}();\nvar keyRegExp$1 = /@keyframes\\s+/;\nvar refRegExp = /\\$([\\w-]+)/g;\n\nvar findReferencedKeyframe = function findReferencedKeyframe(val, keyframes) {\n if (typeof val === 'string') {\n return val.replace(refRegExp, function (match, name) {\n if (name in keyframes) {\n return keyframes[name];\n }\n\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Referenced keyframes rule \\\"\" + name + \"\\\" is not defined.\") : void 0;\n return match;\n });\n }\n\n return val;\n};\n/**\n * Replace the reference for a animation name.\n */\n\n\nvar replaceRef = function replaceRef(style, prop, keyframes) {\n var value = style[prop];\n var refKeyframe = findReferencedKeyframe(value, keyframes);\n\n if (refKeyframe !== value) {\n style[prop] = refKeyframe;\n }\n};\n\nvar pluginKeyframesRule = {\n onCreateRule: function onCreateRule(key, frames, options) {\n return typeof key === 'string' && keyRegExp$1.test(key) ? new KeyframesRule(key, frames, options) : null;\n },\n // Animation name ref replacer.\n onProcessStyle: function onProcessStyle(style, rule, sheet) {\n if (rule.type !== 'style' || !sheet) return style;\n if ('animation-name' in style) replaceRef(style, 'animation-name', sheet.keyframes);\n if ('animation' in style) replaceRef(style, 'animation', sheet.keyframes);\n return style;\n },\n onChangeValue: function onChangeValue(val, prop, rule) {\n var sheet = rule.options.sheet;\n\n if (!sheet) {\n return val;\n }\n\n switch (prop) {\n case 'animation':\n return findReferencedKeyframe(val, sheet.keyframes);\n\n case 'animation-name':\n return findReferencedKeyframe(val, sheet.keyframes);\n\n default:\n return val;\n }\n }\n};\n\nvar KeyframeRule =\n/*#__PURE__*/\nfunction (_BaseStyleRule) {\n _inheritsLoose(KeyframeRule, _BaseStyleRule);\n\n function KeyframeRule() {\n return _BaseStyleRule.apply(this, arguments) || this;\n }\n\n var _proto = KeyframeRule.prototype;\n\n /**\n * Generates a CSS string.\n */\n _proto.toString = function toString(options) {\n var sheet = this.options.sheet;\n var link = sheet ? sheet.options.link : false;\n var opts = link ? _extends({}, options, {\n allowEmpty: true\n }) : options;\n return toCss(this.key, this.style, opts);\n };\n\n return KeyframeRule;\n}(BaseStyleRule);\nvar pluginKeyframeRule = {\n onCreateRule: function onCreateRule(key, style, options) {\n if (options.parent && options.parent.type === 'keyframes') {\n return new KeyframeRule(key, style, options);\n }\n\n return null;\n }\n};\n\nvar FontFaceRule =\n/*#__PURE__*/\nfunction () {\n function FontFaceRule(key, style, options) {\n this.type = 'font-face';\n this.at = '@font-face';\n this.isProcessed = false;\n this.key = key;\n this.style = style;\n this.options = options;\n }\n /**\n * Generates a CSS string.\n */\n\n\n var _proto = FontFaceRule.prototype;\n\n _proto.toString = function toString(options) {\n var _getWhitespaceSymbols = getWhitespaceSymbols(options),\n linebreak = _getWhitespaceSymbols.linebreak;\n\n if (Array.isArray(this.style)) {\n var str = '';\n\n for (var index = 0; index < this.style.length; index++) {\n str += toCss(this.at, this.style[index]);\n if (this.style[index + 1]) str += linebreak;\n }\n\n return str;\n }\n\n return toCss(this.at, this.style, options);\n };\n\n return FontFaceRule;\n}();\nvar keyRegExp$2 = /@font-face/;\nvar pluginFontFaceRule = {\n onCreateRule: function onCreateRule(key, style, options) {\n return keyRegExp$2.test(key) ? new FontFaceRule(key, style, options) : null;\n }\n};\n\nvar ViewportRule =\n/*#__PURE__*/\nfunction () {\n function ViewportRule(key, style, options) {\n this.type = 'viewport';\n this.at = '@viewport';\n this.isProcessed = false;\n this.key = key;\n this.style = style;\n this.options = options;\n }\n /**\n * Generates a CSS string.\n */\n\n\n var _proto = ViewportRule.prototype;\n\n _proto.toString = function toString(options) {\n return toCss(this.key, this.style, options);\n };\n\n return ViewportRule;\n}();\nvar pluginViewportRule = {\n onCreateRule: function onCreateRule(key, style, options) {\n return key === '@viewport' || key === '@-ms-viewport' ? new ViewportRule(key, style, options) : null;\n }\n};\n\nvar SimpleRule =\n/*#__PURE__*/\nfunction () {\n function SimpleRule(key, value, options) {\n this.type = 'simple';\n this.isProcessed = false;\n this.key = key;\n this.value = value;\n this.options = options;\n }\n /**\n * Generates a CSS string.\n */\n // eslint-disable-next-line no-unused-vars\n\n\n var _proto = SimpleRule.prototype;\n\n _proto.toString = function toString(options) {\n if (Array.isArray(this.value)) {\n var str = '';\n\n for (var index = 0; index < this.value.length; index++) {\n str += this.key + \" \" + this.value[index] + \";\";\n if (this.value[index + 1]) str += '\\n';\n }\n\n return str;\n }\n\n return this.key + \" \" + this.value + \";\";\n };\n\n return SimpleRule;\n}();\nvar keysMap = {\n '@charset': true,\n '@import': true,\n '@namespace': true\n};\nvar pluginSimpleRule = {\n onCreateRule: function onCreateRule(key, value, options) {\n return key in keysMap ? new SimpleRule(key, value, options) : null;\n }\n};\n\nvar plugins = [pluginStyleRule, pluginConditionalRule, pluginKeyframesRule, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];\n\nvar defaultUpdateOptions = {\n process: true\n};\nvar forceUpdateOptions = {\n force: true,\n process: true\n /**\n * Contains rules objects and allows adding/removing etc.\n * Is used for e.g. by `StyleSheet` or `ConditionalRule`.\n */\n\n};\n\nvar RuleList =\n/*#__PURE__*/\nfunction () {\n // Rules registry for access by .get() method.\n // It contains the same rule registered by name and by selector.\n // Original styles object.\n // Used to ensure correct rules order.\n function RuleList(options) {\n this.map = {};\n this.raw = {};\n this.index = [];\n this.counter = 0;\n this.options = options;\n this.classes = options.classes;\n this.keyframes = options.keyframes;\n }\n /**\n * Create and register rule.\n *\n * Will not render after Style Sheet was rendered the first time.\n */\n\n\n var _proto = RuleList.prototype;\n\n _proto.add = function add(name, decl, ruleOptions) {\n var _this$options = this.options,\n parent = _this$options.parent,\n sheet = _this$options.sheet,\n jss = _this$options.jss,\n Renderer = _this$options.Renderer,\n generateId = _this$options.generateId,\n scoped = _this$options.scoped;\n\n var options = _extends({\n classes: this.classes,\n parent: parent,\n sheet: sheet,\n jss: jss,\n Renderer: Renderer,\n generateId: generateId,\n scoped: scoped,\n name: name,\n keyframes: this.keyframes,\n selector: undefined\n }, ruleOptions); // When user uses .createStyleSheet(), duplicate names are not possible, but\n // `sheet.addRule()` opens the door for any duplicate rule name. When this happens\n // we need to make the key unique within this RuleList instance scope.\n\n\n var key = name;\n\n if (name in this.raw) {\n key = name + \"-d\" + this.counter++;\n } // We need to save the original decl before creating the rule\n // because cache plugin needs to use it as a key to return a cached rule.\n\n\n this.raw[key] = decl;\n\n if (key in this.classes) {\n // E.g. rules inside of @media container\n options.selector = \".\" + escape(this.classes[key]);\n }\n\n var rule = createRule(key, decl, options);\n if (!rule) return null;\n this.register(rule);\n var index = options.index === undefined ? this.index.length : options.index;\n this.index.splice(index, 0, rule);\n return rule;\n }\n /**\n * Replace rule.\n * Create a new rule and remove old one instead of overwriting\n * because we want to invoke onCreateRule hook to make plugins work.\n */\n ;\n\n _proto.replace = function replace(name, decl, ruleOptions) {\n var oldRule = this.get(name);\n var oldIndex = this.index.indexOf(oldRule);\n\n if (oldRule) {\n this.remove(oldRule);\n }\n\n var options = ruleOptions;\n if (oldIndex !== -1) options = _extends({}, ruleOptions, {\n index: oldIndex\n });\n return this.add(name, decl, options);\n }\n /**\n * Get a rule by name or selector.\n */\n ;\n\n _proto.get = function get(nameOrSelector) {\n return this.map[nameOrSelector];\n }\n /**\n * Delete a rule.\n */\n ;\n\n _proto.remove = function remove(rule) {\n this.unregister(rule);\n delete this.raw[rule.key];\n this.index.splice(this.index.indexOf(rule), 1);\n }\n /**\n * Get index of a rule.\n */\n ;\n\n _proto.indexOf = function indexOf(rule) {\n return this.index.indexOf(rule);\n }\n /**\n * Run `onProcessRule()` plugins on every rule.\n */\n ;\n\n _proto.process = function process() {\n var plugins = this.options.jss.plugins; // We need to clone array because if we modify the index somewhere else during a loop\n // we end up with very hard-to-track-down side effects.\n\n this.index.slice(0).forEach(plugins.onProcessRule, plugins);\n }\n /**\n * Register a rule in `.map`, `.classes` and `.keyframes` maps.\n */\n ;\n\n _proto.register = function register(rule) {\n this.map[rule.key] = rule;\n\n if (rule instanceof StyleRule) {\n this.map[rule.selector] = rule;\n if (rule.id) this.classes[rule.key] = rule.id;\n } else if (rule instanceof KeyframesRule && this.keyframes) {\n this.keyframes[rule.name] = rule.id;\n }\n }\n /**\n * Unregister a rule.\n */\n ;\n\n _proto.unregister = function unregister(rule) {\n delete this.map[rule.key];\n\n if (rule instanceof StyleRule) {\n delete this.map[rule.selector];\n delete this.classes[rule.key];\n } else if (rule instanceof KeyframesRule) {\n delete this.keyframes[rule.name];\n }\n }\n /**\n * Update the function values with a new data.\n */\n ;\n\n _proto.update = function update() {\n var name;\n var data;\n var options;\n\n if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'string') {\n name = arguments.length <= 0 ? undefined : arguments[0];\n data = arguments.length <= 1 ? undefined : arguments[1];\n options = arguments.length <= 2 ? undefined : arguments[2];\n } else {\n data = arguments.length <= 0 ? undefined : arguments[0];\n options = arguments.length <= 1 ? undefined : arguments[1];\n name = null;\n }\n\n if (name) {\n this.updateOne(this.get(name), data, options);\n } else {\n for (var index = 0; index < this.index.length; index++) {\n this.updateOne(this.index[index], data, options);\n }\n }\n }\n /**\n * Execute plugins, update rule props.\n */\n ;\n\n _proto.updateOne = function updateOne(rule, data, options) {\n if (options === void 0) {\n options = defaultUpdateOptions;\n }\n\n var _this$options2 = this.options,\n plugins = _this$options2.jss.plugins,\n sheet = _this$options2.sheet; // It is a rules container like for e.g. ConditionalRule.\n\n if (rule.rules instanceof RuleList) {\n rule.rules.update(data, options);\n return;\n }\n\n var style = rule.style;\n plugins.onUpdate(data, rule, sheet, options); // We rely on a new `style` ref in case it was mutated during onUpdate hook.\n\n if (options.process && style && style !== rule.style) {\n // We need to run the plugins in case new `style` relies on syntax plugins.\n plugins.onProcessStyle(rule.style, rule, sheet); // Update and add props.\n\n for (var prop in rule.style) {\n var nextValue = rule.style[prop];\n var prevValue = style[prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.\n // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.\n\n if (nextValue !== prevValue) {\n rule.prop(prop, nextValue, forceUpdateOptions);\n }\n } // Remove props.\n\n\n for (var _prop in style) {\n var _nextValue = rule.style[_prop];\n var _prevValue = style[_prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.\n // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.\n\n if (_nextValue == null && _nextValue !== _prevValue) {\n rule.prop(_prop, null, forceUpdateOptions);\n }\n }\n }\n }\n /**\n * Convert rules to a CSS string.\n */\n ;\n\n _proto.toString = function toString(options) {\n var str = '';\n var sheet = this.options.sheet;\n var link = sheet ? sheet.options.link : false;\n\n var _getWhitespaceSymbols = getWhitespaceSymbols(options),\n linebreak = _getWhitespaceSymbols.linebreak;\n\n for (var index = 0; index < this.index.length; index++) {\n var rule = this.index[index];\n var css = rule.toString(options); // No need to render an empty rule.\n\n if (!css && !link) continue;\n if (str) str += linebreak;\n str += css;\n }\n\n return str;\n };\n\n return RuleList;\n}();\n\nvar StyleSheet =\n/*#__PURE__*/\nfunction () {\n function StyleSheet(styles, options) {\n this.attached = false;\n this.deployed = false;\n this.classes = {};\n this.keyframes = {};\n this.options = _extends({}, options, {\n sheet: this,\n parent: this,\n classes: this.classes,\n keyframes: this.keyframes\n });\n\n if (options.Renderer) {\n this.renderer = new options.Renderer(this);\n }\n\n this.rules = new RuleList(this.options);\n\n for (var name in styles) {\n this.rules.add(name, styles[name]);\n }\n\n this.rules.process();\n }\n /**\n * Attach renderable to the render tree.\n */\n\n\n var _proto = StyleSheet.prototype;\n\n _proto.attach = function attach() {\n if (this.attached) return this;\n if (this.renderer) this.renderer.attach();\n this.attached = true; // Order is important, because we can't use insertRule API if style element is not attached.\n\n if (!this.deployed) this.deploy();\n return this;\n }\n /**\n * Remove renderable from render tree.\n */\n ;\n\n _proto.detach = function detach() {\n if (!this.attached) return this;\n if (this.renderer) this.renderer.detach();\n this.attached = false;\n return this;\n }\n /**\n * Add a rule to the current stylesheet.\n * Will insert a rule also after the stylesheet has been rendered first time.\n */\n ;\n\n _proto.addRule = function addRule(name, decl, options) {\n var queue = this.queue; // Plugins can create rules.\n // In order to preserve the right order, we need to queue all `.addRule` calls,\n // which happen after the first `rules.add()` call.\n\n if (this.attached && !queue) this.queue = [];\n var rule = this.rules.add(name, decl, options);\n if (!rule) return null;\n this.options.jss.plugins.onProcessRule(rule);\n\n if (this.attached) {\n if (!this.deployed) return rule; // Don't insert rule directly if there is no stringified version yet.\n // It will be inserted all together when .attach is called.\n\n if (queue) queue.push(rule);else {\n this.insertRule(rule);\n\n if (this.queue) {\n this.queue.forEach(this.insertRule, this);\n this.queue = undefined;\n }\n }\n return rule;\n } // We can't add rules to a detached style node.\n // We will redeploy the sheet once user will attach it.\n\n\n this.deployed = false;\n return rule;\n }\n /**\n * Replace a rule in the current stylesheet.\n */\n ;\n\n _proto.replaceRule = function replaceRule(nameOrSelector, decl, options) {\n var oldRule = this.rules.get(nameOrSelector);\n if (!oldRule) return this.addRule(nameOrSelector, decl, options);\n var newRule = this.rules.replace(nameOrSelector, decl, options);\n\n if (newRule) {\n this.options.jss.plugins.onProcessRule(newRule);\n }\n\n if (this.attached) {\n if (!this.deployed) return newRule; // Don't replace / delete rule directly if there is no stringified version yet.\n // It will be inserted all together when .attach is called.\n\n if (this.renderer) {\n if (!newRule) {\n this.renderer.deleteRule(oldRule);\n } else if (oldRule.renderable) {\n this.renderer.replaceRule(oldRule.renderable, newRule);\n }\n }\n\n return newRule;\n } // We can't replace rules to a detached style node.\n // We will redeploy the sheet once user will attach it.\n\n\n this.deployed = false;\n return newRule;\n }\n /**\n * Insert rule into the StyleSheet\n */\n ;\n\n _proto.insertRule = function insertRule(rule) {\n if (this.renderer) {\n this.renderer.insertRule(rule);\n }\n }\n /**\n * Create and add rules.\n * Will render also after Style Sheet was rendered the first time.\n */\n ;\n\n _proto.addRules = function addRules(styles, options) {\n var added = [];\n\n for (var name in styles) {\n var rule = this.addRule(name, styles[name], options);\n if (rule) added.push(rule);\n }\n\n return added;\n }\n /**\n * Get a rule by name or selector.\n */\n ;\n\n _proto.getRule = function getRule(nameOrSelector) {\n return this.rules.get(nameOrSelector);\n }\n /**\n * Delete a rule by name.\n * Returns `true`: if rule has been deleted from the DOM.\n */\n ;\n\n _proto.deleteRule = function deleteRule(name) {\n var rule = typeof name === 'object' ? name : this.rules.get(name);\n\n if (!rule || // Style sheet was created without link: true and attached, in this case we\n // won't be able to remove the CSS rule from the DOM.\n this.attached && !rule.renderable) {\n return false;\n }\n\n this.rules.remove(rule);\n\n if (this.attached && rule.renderable && this.renderer) {\n return this.renderer.deleteRule(rule.renderable);\n }\n\n return true;\n }\n /**\n * Get index of a rule.\n */\n ;\n\n _proto.indexOf = function indexOf(rule) {\n return this.rules.indexOf(rule);\n }\n /**\n * Deploy pure CSS string to a renderable.\n */\n ;\n\n _proto.deploy = function deploy() {\n if (this.renderer) this.renderer.deploy();\n this.deployed = true;\n return this;\n }\n /**\n * Update the function values with a new data.\n */\n ;\n\n _proto.update = function update() {\n var _this$rules;\n\n (_this$rules = this.rules).update.apply(_this$rules, arguments);\n\n return this;\n }\n /**\n * Updates a single rule.\n */\n ;\n\n _proto.updateOne = function updateOne(rule, data, options) {\n this.rules.updateOne(rule, data, options);\n return this;\n }\n /**\n * Convert rules to a CSS string.\n */\n ;\n\n _proto.toString = function toString(options) {\n return this.rules.toString(options);\n };\n\n return StyleSheet;\n}();\n\nvar PluginsRegistry =\n/*#__PURE__*/\nfunction () {\n function PluginsRegistry() {\n this.plugins = {\n internal: [],\n external: []\n };\n this.registry = {};\n }\n\n var _proto = PluginsRegistry.prototype;\n\n /**\n * Call `onCreateRule` hooks and return an object if returned by a hook.\n */\n _proto.onCreateRule = function onCreateRule(name, decl, options) {\n for (var i = 0; i < this.registry.onCreateRule.length; i++) {\n var rule = this.registry.onCreateRule[i](name, decl, options);\n if (rule) return rule;\n }\n\n return null;\n }\n /**\n * Call `onProcessRule` hooks.\n */\n ;\n\n _proto.onProcessRule = function onProcessRule(rule) {\n if (rule.isProcessed) return;\n var sheet = rule.options.sheet;\n\n for (var i = 0; i < this.registry.onProcessRule.length; i++) {\n this.registry.onProcessRule[i](rule, sheet);\n }\n\n if (rule.style) this.onProcessStyle(rule.style, rule, sheet);\n rule.isProcessed = true;\n }\n /**\n * Call `onProcessStyle` hooks.\n */\n ;\n\n _proto.onProcessStyle = function onProcessStyle(style, rule, sheet) {\n for (var i = 0; i < this.registry.onProcessStyle.length; i++) {\n rule.style = this.registry.onProcessStyle[i](rule.style, rule, sheet);\n }\n }\n /**\n * Call `onProcessSheet` hooks.\n */\n ;\n\n _proto.onProcessSheet = function onProcessSheet(sheet) {\n for (var i = 0; i < this.registry.onProcessSheet.length; i++) {\n this.registry.onProcessSheet[i](sheet);\n }\n }\n /**\n * Call `onUpdate` hooks.\n */\n ;\n\n _proto.onUpdate = function onUpdate(data, rule, sheet, options) {\n for (var i = 0; i < this.registry.onUpdate.length; i++) {\n this.registry.onUpdate[i](data, rule, sheet, options);\n }\n }\n /**\n * Call `onChangeValue` hooks.\n */\n ;\n\n _proto.onChangeValue = function onChangeValue(value, prop, rule) {\n var processedValue = value;\n\n for (var i = 0; i < this.registry.onChangeValue.length; i++) {\n processedValue = this.registry.onChangeValue[i](processedValue, prop, rule);\n }\n\n return processedValue;\n }\n /**\n * Register a plugin.\n */\n ;\n\n _proto.use = function use(newPlugin, options) {\n if (options === void 0) {\n options = {\n queue: 'external'\n };\n }\n\n var plugins = this.plugins[options.queue]; // Avoids applying same plugin twice, at least based on ref.\n\n if (plugins.indexOf(newPlugin) !== -1) {\n return;\n }\n\n plugins.push(newPlugin);\n this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function (registry, plugin) {\n for (var name in plugin) {\n if (name in registry) {\n registry[name].push(plugin[name]);\n } else {\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Unknown hook \\\"\" + name + \"\\\".\") : void 0;\n }\n }\n\n return registry;\n }, {\n onCreateRule: [],\n onProcessRule: [],\n onProcessStyle: [],\n onProcessSheet: [],\n onChangeValue: [],\n onUpdate: []\n });\n };\n\n return PluginsRegistry;\n}();\n\n/**\n * Sheets registry to access all instances in one place.\n */\n\nvar SheetsRegistry =\n/*#__PURE__*/\nfunction () {\n function SheetsRegistry() {\n this.registry = [];\n }\n\n var _proto = SheetsRegistry.prototype;\n\n /**\n * Register a Style Sheet.\n */\n _proto.add = function add(sheet) {\n var registry = this.registry;\n var index = sheet.options.index;\n if (registry.indexOf(sheet) !== -1) return;\n\n if (registry.length === 0 || index >= this.index) {\n registry.push(sheet);\n return;\n } // Find a position.\n\n\n for (var i = 0; i < registry.length; i++) {\n if (registry[i].options.index > index) {\n registry.splice(i, 0, sheet);\n return;\n }\n }\n }\n /**\n * Reset the registry.\n */\n ;\n\n _proto.reset = function reset() {\n this.registry = [];\n }\n /**\n * Remove a Style Sheet.\n */\n ;\n\n _proto.remove = function remove(sheet) {\n var index = this.registry.indexOf(sheet);\n this.registry.splice(index, 1);\n }\n /**\n * Convert all attached sheets to a CSS string.\n */\n ;\n\n _proto.toString = function toString(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n attached = _ref.attached,\n options = _objectWithoutPropertiesLoose(_ref, [\"attached\"]);\n\n var _getWhitespaceSymbols = getWhitespaceSymbols(options),\n linebreak = _getWhitespaceSymbols.linebreak;\n\n var css = '';\n\n for (var i = 0; i < this.registry.length; i++) {\n var sheet = this.registry[i];\n\n if (attached != null && sheet.attached !== attached) {\n continue;\n }\n\n if (css) css += linebreak;\n css += sheet.toString(options);\n }\n\n return css;\n };\n\n _createClass(SheetsRegistry, [{\n key: \"index\",\n\n /**\n * Current highest index number.\n */\n get: function get() {\n return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;\n }\n }]);\n\n return SheetsRegistry;\n}();\n\n/**\n * This is a global sheets registry. Only DomRenderer will add sheets to it.\n * On the server one should use an own SheetsRegistry instance and add the\n * sheets to it, because you need to make sure to create a new registry for\n * each request in order to not leak sheets across requests.\n */\n\nvar sheets = new SheetsRegistry();\n\n/* eslint-disable */\n\n/**\n * Now that `globalThis` is available on most platforms\n * (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis#browser_compatibility)\n * we check for `globalThis` first. `globalThis` is necessary for jss\n * to run in Agoric's secure version of JavaScript (SES). Under SES,\n * `globalThis` exists, but `window`, `self`, and `Function('return\n * this')()` are all undefined for security reasons.\n *\n * https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\n */\nvar globalThis$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' && window.Math === Math ? window : typeof self !== 'undefined' && self.Math === Math ? self : Function('return this')();\n\nvar ns = '2f1acc6c3a606b082e5eef5e54414ffb';\nif (globalThis$1[ns] == null) globalThis$1[ns] = 0; // Bundle may contain multiple JSS versions at the same time. In order to identify\n// the current version with just one short number and use it for classes generation\n// we use a counter. Also it is more accurate, because user can manually reevaluate\n// the module.\n\nvar moduleId = globalThis$1[ns]++;\n\nvar maxRules = 1e10;\n/**\n * Returns a function which generates unique class names based on counters.\n * When new generator function is created, rule counter is reseted.\n * We need to reset the rule counter for SSR for each request.\n */\n\nvar createGenerateId = function createGenerateId(options) {\n if (options === void 0) {\n options = {};\n }\n\n var ruleCounter = 0;\n\n var generateId = function generateId(rule, sheet) {\n ruleCounter += 1;\n\n if (ruleCounter > maxRules) {\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] You might have a memory leak. Rule counter is at \" + ruleCounter + \".\") : void 0;\n }\n\n var jssId = '';\n var prefix = '';\n\n if (sheet) {\n if (sheet.options.classNamePrefix) {\n prefix = sheet.options.classNamePrefix;\n }\n\n if (sheet.options.jss.id != null) {\n jssId = String(sheet.options.jss.id);\n }\n }\n\n if (options.minify) {\n // Using \"c\" because a number can't be the first char in a class name.\n return \"\" + (prefix || 'c') + moduleId + jssId + ruleCounter;\n }\n\n return prefix + rule.key + \"-\" + moduleId + (jssId ? \"-\" + jssId : '') + \"-\" + ruleCounter;\n };\n\n return generateId;\n};\n\n/**\n * Cache the value from the first time a function is called.\n */\n\nvar memoize = function memoize(fn) {\n var value;\n return function () {\n if (!value) value = fn();\n return value;\n };\n};\n/**\n * Get a style property value.\n */\n\n\nvar getPropertyValue = function getPropertyValue(cssRule, prop) {\n try {\n // Support CSSTOM.\n if (cssRule.attributeStyleMap) {\n return cssRule.attributeStyleMap.get(prop);\n }\n\n return cssRule.style.getPropertyValue(prop);\n } catch (err) {\n // IE may throw if property is unknown.\n return '';\n }\n};\n/**\n * Set a style property.\n */\n\n\nvar setProperty = function setProperty(cssRule, prop, value) {\n try {\n var cssValue = value;\n\n if (Array.isArray(value)) {\n cssValue = toCssValue(value);\n } // Support CSSTOM.\n\n\n if (cssRule.attributeStyleMap) {\n cssRule.attributeStyleMap.set(prop, cssValue);\n } else {\n var indexOfImportantFlag = cssValue ? cssValue.indexOf('!important') : -1;\n var cssValueWithoutImportantFlag = indexOfImportantFlag > -1 ? cssValue.substr(0, indexOfImportantFlag - 1) : cssValue;\n cssRule.style.setProperty(prop, cssValueWithoutImportantFlag, indexOfImportantFlag > -1 ? 'important' : '');\n }\n } catch (err) {\n // IE may throw if property is unknown.\n return false;\n }\n\n return true;\n};\n/**\n * Remove a style property.\n */\n\n\nvar removeProperty = function removeProperty(cssRule, prop) {\n try {\n // Support CSSTOM.\n if (cssRule.attributeStyleMap) {\n cssRule.attributeStyleMap.delete(prop);\n } else {\n cssRule.style.removeProperty(prop);\n }\n } catch (err) {\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] DOMException \\\"\" + err.message + \"\\\" was thrown. Tried to remove property \\\"\" + prop + \"\\\".\") : void 0;\n }\n};\n/**\n * Set the selector.\n */\n\n\nvar setSelector = function setSelector(cssRule, selectorText) {\n cssRule.selectorText = selectorText; // Return false if setter was not successful.\n // Currently works in chrome only.\n\n return cssRule.selectorText === selectorText;\n};\n/**\n * Gets the `head` element upon the first call and caches it.\n * We assume it can't be null.\n */\n\n\nvar getHead = memoize(function () {\n return document.querySelector('head');\n});\n/**\n * Find attached sheet with an index higher than the passed one.\n */\n\nfunction findHigherSheet(registry, options) {\n for (var i = 0; i < registry.length; i++) {\n var sheet = registry[i];\n\n if (sheet.attached && sheet.options.index > options.index && sheet.options.insertionPoint === options.insertionPoint) {\n return sheet;\n }\n }\n\n return null;\n}\n/**\n * Find attached sheet with the highest index.\n */\n\n\nfunction findHighestSheet(registry, options) {\n for (var i = registry.length - 1; i >= 0; i--) {\n var sheet = registry[i];\n\n if (sheet.attached && sheet.options.insertionPoint === options.insertionPoint) {\n return sheet;\n }\n }\n\n return null;\n}\n/**\n * Find a comment with \"jss\" inside.\n */\n\n\nfunction findCommentNode(text) {\n var head = getHead();\n\n for (var i = 0; i < head.childNodes.length; i++) {\n var node = head.childNodes[i];\n\n if (node.nodeType === 8 && node.nodeValue.trim() === text) {\n return node;\n }\n }\n\n return null;\n}\n/**\n * Find a node before which we can insert the sheet.\n */\n\n\nfunction findPrevNode(options) {\n var registry = sheets.registry;\n\n if (registry.length > 0) {\n // Try to insert before the next higher sheet.\n var sheet = findHigherSheet(registry, options);\n\n if (sheet && sheet.renderer) {\n return {\n parent: sheet.renderer.element.parentNode,\n node: sheet.renderer.element\n };\n } // Otherwise insert after the last attached.\n\n\n sheet = findHighestSheet(registry, options);\n\n if (sheet && sheet.renderer) {\n return {\n parent: sheet.renderer.element.parentNode,\n node: sheet.renderer.element.nextSibling\n };\n }\n } // Try to find a comment placeholder if registry is empty.\n\n\n var insertionPoint = options.insertionPoint;\n\n if (insertionPoint && typeof insertionPoint === 'string') {\n var comment = findCommentNode(insertionPoint);\n\n if (comment) {\n return {\n parent: comment.parentNode,\n node: comment.nextSibling\n };\n } // If user specifies an insertion point and it can't be found in the document -\n // bad specificity issues may appear.\n\n\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Insertion point \\\"\" + insertionPoint + \"\\\" not found.\") : void 0;\n }\n\n return false;\n}\n/**\n * Insert style element into the DOM.\n */\n\n\nfunction insertStyle(style, options) {\n var insertionPoint = options.insertionPoint;\n var nextNode = findPrevNode(options);\n\n if (nextNode !== false && nextNode.parent) {\n nextNode.parent.insertBefore(style, nextNode.node);\n return;\n } // Works with iframes and any node types.\n\n\n if (insertionPoint && typeof insertionPoint.nodeType === 'number') {\n var insertionPointElement = insertionPoint;\n var parentNode = insertionPointElement.parentNode;\n if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);else process.env.NODE_ENV !== \"production\" ? warning(false, '[JSS] Insertion point is not in the DOM.') : void 0;\n return;\n }\n\n getHead().appendChild(style);\n}\n/**\n * Read jss nonce setting from the page if the user has set it.\n */\n\n\nvar getNonce = memoize(function () {\n var node = document.querySelector('meta[property=\"csp-nonce\"]');\n return node ? node.getAttribute('content') : null;\n});\n\nvar _insertRule = function insertRule(container, rule, index) {\n try {\n if ('insertRule' in container) {\n container.insertRule(rule, index);\n } // Keyframes rule.\n else if ('appendRule' in container) {\n container.appendRule(rule);\n }\n } catch (err) {\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] \" + err.message) : void 0;\n return false;\n }\n\n return container.cssRules[index];\n};\n\nvar getValidRuleInsertionIndex = function getValidRuleInsertionIndex(container, index) {\n var maxIndex = container.cssRules.length; // In case previous insertion fails, passed index might be wrong\n\n if (index === undefined || index > maxIndex) {\n // eslint-disable-next-line no-param-reassign\n return maxIndex;\n }\n\n return index;\n};\n\nvar createStyle = function createStyle() {\n var el = document.createElement('style'); // Without it, IE will have a broken source order specificity if we\n // insert rules after we insert the style tag.\n // It seems to kick-off the source order specificity algorithm.\n\n el.textContent = '\\n';\n return el;\n};\n\nvar DomRenderer =\n/*#__PURE__*/\nfunction () {\n // Will be empty if link: true option is not set, because\n // it is only for use together with insertRule API.\n function DomRenderer(sheet) {\n this.getPropertyValue = getPropertyValue;\n this.setProperty = setProperty;\n this.removeProperty = removeProperty;\n this.setSelector = setSelector;\n this.hasInsertedRules = false;\n this.cssRules = [];\n // There is no sheet when the renderer is used from a standalone StyleRule.\n if (sheet) sheets.add(sheet);\n this.sheet = sheet;\n\n var _ref = this.sheet ? this.sheet.options : {},\n media = _ref.media,\n meta = _ref.meta,\n element = _ref.element;\n\n this.element = element || createStyle();\n this.element.setAttribute('data-jss', '');\n if (media) this.element.setAttribute('media', media);\n if (meta) this.element.setAttribute('data-meta', meta);\n var nonce = getNonce();\n if (nonce) this.element.setAttribute('nonce', nonce);\n }\n /**\n * Insert style element into render tree.\n */\n\n\n var _proto = DomRenderer.prototype;\n\n _proto.attach = function attach() {\n // In the case the element node is external and it is already in the DOM.\n if (this.element.parentNode || !this.sheet) return;\n insertStyle(this.element, this.sheet.options); // When rules are inserted using `insertRule` API, after `sheet.detach().attach()`\n // most browsers create a new CSSStyleSheet, except of all IEs.\n\n var deployed = Boolean(this.sheet && this.sheet.deployed);\n\n if (this.hasInsertedRules && deployed) {\n this.hasInsertedRules = false;\n this.deploy();\n }\n }\n /**\n * Remove style element from render tree.\n */\n ;\n\n _proto.detach = function detach() {\n if (!this.sheet) return;\n var parentNode = this.element.parentNode;\n if (parentNode) parentNode.removeChild(this.element); // In the most browsers, rules inserted using insertRule() API will be lost when style element is removed.\n // Though IE will keep them and we need a consistent behavior.\n\n if (this.sheet.options.link) {\n this.cssRules = [];\n this.element.textContent = '\\n';\n }\n }\n /**\n * Inject CSS string into element.\n */\n ;\n\n _proto.deploy = function deploy() {\n var sheet = this.sheet;\n if (!sheet) return;\n\n if (sheet.options.link) {\n this.insertRules(sheet.rules);\n return;\n }\n\n this.element.textContent = \"\\n\" + sheet.toString() + \"\\n\";\n }\n /**\n * Insert RuleList into an element.\n */\n ;\n\n _proto.insertRules = function insertRules(rules, nativeParent) {\n for (var i = 0; i < rules.index.length; i++) {\n this.insertRule(rules.index[i], i, nativeParent);\n }\n }\n /**\n * Insert a rule into element.\n */\n ;\n\n _proto.insertRule = function insertRule(rule, index, nativeParent) {\n if (nativeParent === void 0) {\n nativeParent = this.element.sheet;\n }\n\n if (rule.rules) {\n var parent = rule;\n var latestNativeParent = nativeParent;\n\n if (rule.type === 'conditional' || rule.type === 'keyframes') {\n var _insertionIndex = getValidRuleInsertionIndex(nativeParent, index); // We need to render the container without children first.\n\n\n latestNativeParent = _insertRule(nativeParent, parent.toString({\n children: false\n }), _insertionIndex);\n\n if (latestNativeParent === false) {\n return false;\n }\n\n this.refCssRule(rule, _insertionIndex, latestNativeParent);\n }\n\n this.insertRules(parent.rules, latestNativeParent);\n return latestNativeParent;\n }\n\n var ruleStr = rule.toString();\n if (!ruleStr) return false;\n var insertionIndex = getValidRuleInsertionIndex(nativeParent, index);\n\n var nativeRule = _insertRule(nativeParent, ruleStr, insertionIndex);\n\n if (nativeRule === false) {\n return false;\n }\n\n this.hasInsertedRules = true;\n this.refCssRule(rule, insertionIndex, nativeRule);\n return nativeRule;\n };\n\n _proto.refCssRule = function refCssRule(rule, index, cssRule) {\n rule.renderable = cssRule; // We only want to reference the top level rules, deleteRule API doesn't support removing nested rules\n // like rules inside media queries or keyframes\n\n if (rule.options.parent instanceof StyleSheet) {\n this.cssRules.splice(index, 0, cssRule);\n }\n }\n /**\n * Delete a rule.\n */\n ;\n\n _proto.deleteRule = function deleteRule(cssRule) {\n var sheet = this.element.sheet;\n var index = this.indexOf(cssRule);\n if (index === -1) return false;\n sheet.deleteRule(index);\n this.cssRules.splice(index, 1);\n return true;\n }\n /**\n * Get index of a CSS Rule.\n */\n ;\n\n _proto.indexOf = function indexOf(cssRule) {\n return this.cssRules.indexOf(cssRule);\n }\n /**\n * Generate a new CSS rule and replace the existing one.\n */\n ;\n\n _proto.replaceRule = function replaceRule(cssRule, rule) {\n var index = this.indexOf(cssRule);\n if (index === -1) return false;\n this.element.sheet.deleteRule(index);\n this.cssRules.splice(index, 1);\n return this.insertRule(rule, index);\n }\n /**\n * Get all rules elements.\n */\n ;\n\n _proto.getRules = function getRules() {\n return this.element.sheet.cssRules;\n };\n\n return DomRenderer;\n}();\n\nvar instanceCounter = 0;\n\nvar Jss =\n/*#__PURE__*/\nfunction () {\n function Jss(options) {\n this.id = instanceCounter++;\n this.version = \"10.10.0\";\n this.plugins = new PluginsRegistry();\n this.options = {\n id: {\n minify: false\n },\n createGenerateId: createGenerateId,\n Renderer: isInBrowser ? DomRenderer : null,\n plugins: []\n };\n this.generateId = createGenerateId({\n minify: false\n });\n\n for (var i = 0; i < plugins.length; i++) {\n this.plugins.use(plugins[i], {\n queue: 'internal'\n });\n }\n\n this.setup(options);\n }\n /**\n * Prepares various options, applies plugins.\n * Should not be used twice on the same instance, because there is no plugins\n * deduplication logic.\n */\n\n\n var _proto = Jss.prototype;\n\n _proto.setup = function setup(options) {\n if (options === void 0) {\n options = {};\n }\n\n if (options.createGenerateId) {\n this.options.createGenerateId = options.createGenerateId;\n }\n\n if (options.id) {\n this.options.id = _extends({}, this.options.id, options.id);\n }\n\n if (options.createGenerateId || options.id) {\n this.generateId = this.options.createGenerateId(this.options.id);\n }\n\n if (options.insertionPoint != null) this.options.insertionPoint = options.insertionPoint;\n\n if ('Renderer' in options) {\n this.options.Renderer = options.Renderer;\n } // eslint-disable-next-line prefer-spread\n\n\n if (options.plugins) this.use.apply(this, options.plugins);\n return this;\n }\n /**\n * Create a Style Sheet.\n */\n ;\n\n _proto.createStyleSheet = function createStyleSheet(styles, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n index = _options.index;\n\n if (typeof index !== 'number') {\n index = sheets.index === 0 ? 0 : sheets.index + 1;\n }\n\n var sheet = new StyleSheet(styles, _extends({}, options, {\n jss: this,\n generateId: options.generateId || this.generateId,\n insertionPoint: this.options.insertionPoint,\n Renderer: this.options.Renderer,\n index: index\n }));\n this.plugins.onProcessSheet(sheet);\n return sheet;\n }\n /**\n * Detach the Style Sheet and remove it from the registry.\n */\n ;\n\n _proto.removeStyleSheet = function removeStyleSheet(sheet) {\n sheet.detach();\n sheets.remove(sheet);\n return this;\n }\n /**\n * Create a rule without a Style Sheet.\n * [Deprecated] will be removed in the next major version.\n */\n ;\n\n _proto.createRule = function createRule$1(name, style, options) {\n if (style === void 0) {\n style = {};\n }\n\n if (options === void 0) {\n options = {};\n }\n\n // Enable rule without name for inline styles.\n if (typeof name === 'object') {\n return this.createRule(undefined, name, style);\n }\n\n var ruleOptions = _extends({}, options, {\n name: name,\n jss: this,\n Renderer: this.options.Renderer\n });\n\n if (!ruleOptions.generateId) ruleOptions.generateId = this.generateId;\n if (!ruleOptions.classes) ruleOptions.classes = {};\n if (!ruleOptions.keyframes) ruleOptions.keyframes = {};\n\n var rule = createRule(name, style, ruleOptions);\n\n if (rule) this.plugins.onProcessRule(rule);\n return rule;\n }\n /**\n * Register plugin. Passed function will be invoked with a rule instance.\n */\n ;\n\n _proto.use = function use() {\n var _this = this;\n\n for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {\n plugins[_key] = arguments[_key];\n }\n\n plugins.forEach(function (plugin) {\n _this.plugins.use(plugin);\n });\n return this;\n };\n\n return Jss;\n}();\n\nvar createJss = function createJss(options) {\n return new Jss(options);\n};\n\n/**\n * SheetsManager is like a WeakMap which is designed to count StyleSheet\n * instances and attach/detach automatically.\n * Used in react-jss.\n */\n\nvar SheetsManager =\n/*#__PURE__*/\nfunction () {\n function SheetsManager() {\n this.length = 0;\n this.sheets = new WeakMap();\n }\n\n var _proto = SheetsManager.prototype;\n\n _proto.get = function get(key) {\n var entry = this.sheets.get(key);\n return entry && entry.sheet;\n };\n\n _proto.add = function add(key, sheet) {\n if (this.sheets.has(key)) return;\n this.length++;\n this.sheets.set(key, {\n sheet: sheet,\n refs: 0\n });\n };\n\n _proto.manage = function manage(key) {\n var entry = this.sheets.get(key);\n\n if (entry) {\n if (entry.refs === 0) {\n entry.sheet.attach();\n }\n\n entry.refs++;\n return entry.sheet;\n }\n\n warning(false, \"[JSS] SheetsManager: can't find sheet to manage\");\n return undefined;\n };\n\n _proto.unmanage = function unmanage(key) {\n var entry = this.sheets.get(key);\n\n if (entry) {\n if (entry.refs > 0) {\n entry.refs--;\n if (entry.refs === 0) entry.sheet.detach();\n }\n } else {\n warning(false, \"SheetsManager: can't find sheet to unmanage\");\n }\n };\n\n _createClass(SheetsManager, [{\n key: \"size\",\n get: function get() {\n return this.length;\n }\n }]);\n\n return SheetsManager;\n}();\n\n/**\n* Export a constant indicating if this browser has CSSTOM support.\n* https://developers.google.com/web/updates/2018/03/cssom\n*/\nvar hasCSSTOMSupport = typeof CSS === 'object' && CSS != null && 'number' in CSS;\n\n/**\n * Extracts a styles object with only props that contain function values.\n */\nfunction getDynamicStyles(styles) {\n var to = null;\n\n for (var key in styles) {\n var value = styles[key];\n var type = typeof value;\n\n if (type === 'function') {\n if (!to) to = {};\n to[key] = value;\n } else if (type === 'object' && value !== null && !Array.isArray(value)) {\n var extracted = getDynamicStyles(value);\n\n if (extracted) {\n if (!to) to = {};\n to[key] = extracted;\n }\n }\n }\n\n return to;\n}\n\n/**\n * A better abstraction over CSS.\n *\n * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present\n * @website https://github.com/cssinjs/jss\n * @license MIT\n */\nvar index = createJss();\n\nexport default index;\nexport { RuleList, SheetsManager, SheetsRegistry, createJss as create, createGenerateId, createRule, getDynamicStyles, hasCSSTOMSupport, sheets, toCssValue };\n","// Used https://github.com/thinkloop/multi-key-cache as inspiration\nvar multiKeyStore = {\n set: function set(cache, key1, key2, value) {\n var subCache = cache.get(key1);\n\n if (!subCache) {\n subCache = new Map();\n cache.set(key1, subCache);\n }\n\n subCache.set(key2, value);\n },\n get: function get(cache, key1, key2) {\n var subCache = cache.get(key1);\n return subCache ? subCache.get(key2) : undefined;\n },\n delete: function _delete(cache, key1, key2) {\n var subCache = cache.get(key1);\n subCache.delete(key2);\n }\n};\nexport default multiKeyStore;","import nested from '../ThemeProvider/nested';\n/**\n * This is the list of the style rule name we use as drop in replacement for the built-in\n * pseudo classes (:checked, :disabled, :focused, etc.).\n *\n * Why do they exist in the first place?\n * These classes are used at a specificity of 2.\n * It allows them to override previously definied styles as well as\n * being untouched by simple user overrides.\n */\n\nvar pseudoClasses = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected']; // Returns a function which generates unique class names based on counters.\n// When new generator function is created, rule counter is reset.\n// We need to reset the rule counter for SSR for each request.\n//\n// It's inspired by\n// https://github.com/cssinjs/jss/blob/4e6a05dd3f7b6572fdd3ab216861d9e446c20331/src/utils/createGenerateClassName.js\n\nexport default function createGenerateClassName() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$disableGloba = options.disableGlobal,\n disableGlobal = _options$disableGloba === void 0 ? false : _options$disableGloba,\n _options$productionPr = options.productionPrefix,\n productionPrefix = _options$productionPr === void 0 ? 'jss' : _options$productionPr,\n _options$seed = options.seed,\n seed = _options$seed === void 0 ? '' : _options$seed;\n var seedPrefix = seed === '' ? '' : \"\".concat(seed, \"-\");\n var ruleCounter = 0;\n\n var getNextCounterId = function getNextCounterId() {\n ruleCounter += 1;\n\n if (process.env.NODE_ENV !== 'production') {\n if (ruleCounter >= 1e10) {\n console.warn(['Material-UI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));\n }\n }\n\n return ruleCounter;\n };\n\n return function (rule, styleSheet) {\n var name = styleSheet.options.name; // Is a global static MUI style?\n\n if (name && name.indexOf('Mui') === 0 && !styleSheet.options.link && !disableGlobal) {\n // We can use a shorthand class name, we never use the keys to style the components.\n if (pseudoClasses.indexOf(rule.key) !== -1) {\n return \"Mui-\".concat(rule.key);\n }\n\n var prefix = \"\".concat(seedPrefix).concat(name, \"-\").concat(rule.key);\n\n if (!styleSheet.options.theme[nested] || seed !== '') {\n return prefix;\n }\n\n return \"\".concat(prefix, \"-\").concat(getNextCounterId());\n }\n\n if (process.env.NODE_ENV === 'production') {\n return \"\".concat(seedPrefix).concat(productionPrefix).concat(getNextCounterId());\n }\n\n var suffix = \"\".concat(rule.key, \"-\").concat(getNextCounterId()); // Help with debuggability.\n\n if (styleSheet.options.classNamePrefix) {\n return \"\".concat(seedPrefix).concat(styleSheet.options.classNamePrefix, \"-\").concat(suffix);\n }\n\n return \"\".concat(seedPrefix).concat(suffix);\n };\n}","import warning from 'tiny-warning';\nimport { createRule } from 'jss';\n\nvar now = Date.now();\nvar fnValuesNs = \"fnValues\" + now;\nvar fnRuleNs = \"fnStyle\" + ++now;\n\nvar functionPlugin = function functionPlugin() {\n return {\n onCreateRule: function onCreateRule(name, decl, options) {\n if (typeof decl !== 'function') return null;\n var rule = createRule(name, {}, options);\n rule[fnRuleNs] = decl;\n return rule;\n },\n onProcessStyle: function onProcessStyle(style, rule) {\n // We need to extract function values from the declaration, so that we can keep core unaware of them.\n // We need to do that only once.\n // We don't need to extract functions on each style update, since this can happen only once.\n // We don't support function values inside of function rules.\n if (fnValuesNs in rule || fnRuleNs in rule) return style;\n var fnValues = {};\n\n for (var prop in style) {\n var value = style[prop];\n if (typeof value !== 'function') continue;\n delete style[prop];\n fnValues[prop] = value;\n }\n\n rule[fnValuesNs] = fnValues;\n return style;\n },\n onUpdate: function onUpdate(data, rule, sheet, options) {\n var styleRule = rule;\n var fnRule = styleRule[fnRuleNs]; // If we have a style function, the entire rule is dynamic and style object\n // will be returned from that function.\n\n if (fnRule) {\n // Empty object will remove all currently defined props\n // in case function rule returns a falsy value.\n styleRule.style = fnRule(data) || {};\n\n if (process.env.NODE_ENV === 'development') {\n for (var prop in styleRule.style) {\n if (typeof styleRule.style[prop] === 'function') {\n process.env.NODE_ENV !== \"production\" ? warning(false, '[JSS] Function values inside function rules are not supported.') : void 0;\n break;\n }\n }\n }\n }\n\n var fnValues = styleRule[fnValuesNs]; // If we have a fn values map, it is a rule with function values.\n\n if (fnValues) {\n for (var _prop in fnValues) {\n styleRule.prop(_prop, fnValues[_prop](data), options);\n }\n }\n }\n };\n};\n\nexport default functionPlugin;\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport { RuleList } from 'jss';\n\nvar at = '@global';\nvar atPrefix = '@global ';\n\nvar GlobalContainerRule =\n/*#__PURE__*/\nfunction () {\n function GlobalContainerRule(key, styles, options) {\n this.type = 'global';\n this.at = at;\n this.isProcessed = false;\n this.key = key;\n this.options = options;\n this.rules = new RuleList(_extends({}, options, {\n parent: this\n }));\n\n for (var selector in styles) {\n this.rules.add(selector, styles[selector]);\n }\n\n this.rules.process();\n }\n /**\n * Get a rule.\n */\n\n\n var _proto = GlobalContainerRule.prototype;\n\n _proto.getRule = function getRule(name) {\n return this.rules.get(name);\n }\n /**\n * Create and register rule, run plugins.\n */\n ;\n\n _proto.addRule = function addRule(name, style, options) {\n var rule = this.rules.add(name, style, options);\n if (rule) this.options.jss.plugins.onProcessRule(rule);\n return rule;\n }\n /**\n * Replace rule, run plugins.\n */\n ;\n\n _proto.replaceRule = function replaceRule(name, style, options) {\n var newRule = this.rules.replace(name, style, options);\n if (newRule) this.options.jss.plugins.onProcessRule(newRule);\n return newRule;\n }\n /**\n * Get index of a rule.\n */\n ;\n\n _proto.indexOf = function indexOf(rule) {\n return this.rules.indexOf(rule);\n }\n /**\n * Generates a CSS string.\n */\n ;\n\n _proto.toString = function toString(options) {\n return this.rules.toString(options);\n };\n\n return GlobalContainerRule;\n}();\n\nvar GlobalPrefixedRule =\n/*#__PURE__*/\nfunction () {\n function GlobalPrefixedRule(key, style, options) {\n this.type = 'global';\n this.at = at;\n this.isProcessed = false;\n this.key = key;\n this.options = options;\n var selector = key.substr(atPrefix.length);\n this.rule = options.jss.createRule(selector, style, _extends({}, options, {\n parent: this\n }));\n }\n\n var _proto2 = GlobalPrefixedRule.prototype;\n\n _proto2.toString = function toString(options) {\n return this.rule ? this.rule.toString(options) : '';\n };\n\n return GlobalPrefixedRule;\n}();\n\nvar separatorRegExp = /\\s*,\\s*/g;\n\nfunction addScope(selector, scope) {\n var parts = selector.split(separatorRegExp);\n var scoped = '';\n\n for (var i = 0; i < parts.length; i++) {\n scoped += scope + \" \" + parts[i].trim();\n if (parts[i + 1]) scoped += ', ';\n }\n\n return scoped;\n}\n\nfunction handleNestedGlobalContainerRule(rule, sheet) {\n var options = rule.options,\n style = rule.style;\n var rules = style ? style[at] : null;\n if (!rules) return;\n\n for (var name in rules) {\n sheet.addRule(name, rules[name], _extends({}, options, {\n selector: addScope(name, rule.selector)\n }));\n }\n\n delete style[at];\n}\n\nfunction handlePrefixedGlobalRule(rule, sheet) {\n var options = rule.options,\n style = rule.style;\n\n for (var prop in style) {\n if (prop[0] !== '@' || prop.substr(0, at.length) !== at) continue;\n var selector = addScope(prop.substr(at.length), rule.selector);\n sheet.addRule(selector, style[prop], _extends({}, options, {\n selector: selector\n }));\n delete style[prop];\n }\n}\n/**\n * Convert nested rules to separate, remove them from original styles.\n */\n\n\nfunction jssGlobal() {\n function onCreateRule(name, styles, options) {\n if (!name) return null;\n\n if (name === at) {\n return new GlobalContainerRule(name, styles, options);\n }\n\n if (name[0] === '@' && name.substr(0, atPrefix.length) === atPrefix) {\n return new GlobalPrefixedRule(name, styles, options);\n }\n\n var parent = options.parent;\n\n if (parent) {\n if (parent.type === 'global' || parent.options.parent && parent.options.parent.type === 'global') {\n options.scoped = false;\n }\n }\n\n if (!options.selector && options.scoped === false) {\n options.selector = name;\n }\n\n return null;\n }\n\n function onProcessRule(rule, sheet) {\n if (rule.type !== 'style' || !sheet) return;\n handleNestedGlobalContainerRule(rule, sheet);\n handlePrefixedGlobalRule(rule, sheet);\n }\n\n return {\n onCreateRule: onCreateRule,\n onProcessRule: onProcessRule\n };\n}\n\nexport default jssGlobal;\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport warning from 'tiny-warning';\n\nvar separatorRegExp = /\\s*,\\s*/g;\nvar parentRegExp = /&/g;\nvar refRegExp = /\\$([\\w-]+)/g;\n/**\n * Convert nested rules to separate, remove them from original styles.\n */\n\nfunction jssNested() {\n // Get a function to be used for $ref replacement.\n function getReplaceRef(container, sheet) {\n return function (match, key) {\n var rule = container.getRule(key) || sheet && sheet.getRule(key);\n\n if (rule) {\n return rule.selector;\n }\n\n process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Could not find the referenced rule \\\"\" + key + \"\\\" in \\\"\" + (container.options.meta || container.toString()) + \"\\\".\") : void 0;\n return key;\n };\n }\n\n function replaceParentRefs(nestedProp, parentProp) {\n var parentSelectors = parentProp.split(separatorRegExp);\n var nestedSelectors = nestedProp.split(separatorRegExp);\n var result = '';\n\n for (var i = 0; i < parentSelectors.length; i++) {\n var parent = parentSelectors[i];\n\n for (var j = 0; j < nestedSelectors.length; j++) {\n var nested = nestedSelectors[j];\n if (result) result += ', '; // Replace all & by the parent or prefix & with the parent.\n\n result += nested.indexOf('&') !== -1 ? nested.replace(parentRegExp, parent) : parent + \" \" + nested;\n }\n }\n\n return result;\n }\n\n function getOptions(rule, container, prevOptions) {\n // Options has been already created, now we only increase index.\n if (prevOptions) return _extends({}, prevOptions, {\n index: prevOptions.index + 1\n });\n var nestingLevel = rule.options.nestingLevel;\n nestingLevel = nestingLevel === undefined ? 1 : nestingLevel + 1;\n\n var options = _extends({}, rule.options, {\n nestingLevel: nestingLevel,\n index: container.indexOf(rule) + 1 // We don't need the parent name to be set options for chlid.\n\n });\n\n delete options.name;\n return options;\n }\n\n function onProcessStyle(style, rule, sheet) {\n if (rule.type !== 'style') return style;\n var styleRule = rule;\n var container = styleRule.options.parent;\n var options;\n var replaceRef;\n\n for (var prop in style) {\n var isNested = prop.indexOf('&') !== -1;\n var isNestedConditional = prop[0] === '@';\n if (!isNested && !isNestedConditional) continue;\n options = getOptions(styleRule, container, options);\n\n if (isNested) {\n var selector = replaceParentRefs(prop, styleRule.selector); // Lazily create the ref replacer function just once for\n // all nested rules within the sheet.\n\n if (!replaceRef) replaceRef = getReplaceRef(container, sheet); // Replace all $refs.\n\n selector = selector.replace(refRegExp, replaceRef);\n var name = styleRule.key + \"-\" + prop;\n\n if ('replaceRule' in container) {\n // for backward compatibility\n container.replaceRule(name, style[prop], _extends({}, options, {\n selector: selector\n }));\n } else {\n container.addRule(name, style[prop], _extends({}, options, {\n selector: selector\n }));\n }\n } else if (isNestedConditional) {\n // Place conditional right after the parent rule to ensure right ordering.\n container.addRule(prop, {}, options).addRule(styleRule.key, style[prop], {\n selector: styleRule.selector\n });\n }\n\n delete style[prop];\n }\n\n return style;\n }\n\n return {\n onProcessStyle: onProcessStyle\n };\n}\n\nexport default jssNested;\n","/* eslint-disable no-var, prefer-template */\nvar uppercasePattern = /[A-Z]/g\nvar msPattern = /^ms-/\nvar cache = {}\n\nfunction toHyphenLower(match) {\n return '-' + match.toLowerCase()\n}\n\nfunction hyphenateStyleName(name) {\n if (cache.hasOwnProperty(name)) {\n return cache[name]\n }\n\n var hName = name.replace(uppercasePattern, toHyphenLower)\n return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)\n}\n\nexport default hyphenateStyleName\n","import hyphenate from 'hyphenate-style-name';\n\n/**\n * Convert camel cased property names to dash separated.\n */\n\nfunction convertCase(style) {\n var converted = {};\n\n for (var prop in style) {\n var key = prop.indexOf('--') === 0 ? prop : hyphenate(prop);\n converted[key] = style[prop];\n }\n\n if (style.fallbacks) {\n if (Array.isArray(style.fallbacks)) converted.fallbacks = style.fallbacks.map(convertCase);else converted.fallbacks = convertCase(style.fallbacks);\n }\n\n return converted;\n}\n/**\n * Allow camel cased property names by converting them back to dasherized.\n */\n\n\nfunction camelCase() {\n function onProcessStyle(style) {\n if (Array.isArray(style)) {\n // Handle rules like @font-face, which can have multiple styles in an array\n for (var index = 0; index < style.length; index++) {\n style[index] = convertCase(style[index]);\n }\n\n return style;\n }\n\n return convertCase(style);\n }\n\n function onChangeValue(value, prop, rule) {\n if (prop.indexOf('--') === 0) {\n return value;\n }\n\n var hyphenatedProp = hyphenate(prop); // There was no camel case in place\n\n if (prop === hyphenatedProp) return value;\n rule.prop(hyphenatedProp, value); // Core will ignore that property value we set the proper one above.\n\n return null;\n }\n\n return {\n onProcessStyle: onProcessStyle,\n onChangeValue: onChangeValue\n };\n}\n\nexport default camelCase;\n","import { hasCSSTOMSupport } from 'jss';\n\nvar px = hasCSSTOMSupport && CSS ? CSS.px : 'px';\nvar ms = hasCSSTOMSupport && CSS ? CSS.ms : 'ms';\nvar percent = hasCSSTOMSupport && CSS ? CSS.percent : '%';\n/**\n * Generated jss-plugin-default-unit CSS property units\n */\n\nvar defaultUnits = {\n // Animation properties\n 'animation-delay': ms,\n 'animation-duration': ms,\n // Background properties\n 'background-position': px,\n 'background-position-x': px,\n 'background-position-y': px,\n 'background-size': px,\n // Border Properties\n border: px,\n 'border-bottom': px,\n 'border-bottom-left-radius': px,\n 'border-bottom-right-radius': px,\n 'border-bottom-width': px,\n 'border-left': px,\n 'border-left-width': px,\n 'border-radius': px,\n 'border-right': px,\n 'border-right-width': px,\n 'border-top': px,\n 'border-top-left-radius': px,\n 'border-top-right-radius': px,\n 'border-top-width': px,\n 'border-width': px,\n 'border-block': px,\n 'border-block-end': px,\n 'border-block-end-width': px,\n 'border-block-start': px,\n 'border-block-start-width': px,\n 'border-block-width': px,\n 'border-inline': px,\n 'border-inline-end': px,\n 'border-inline-end-width': px,\n 'border-inline-start': px,\n 'border-inline-start-width': px,\n 'border-inline-width': px,\n 'border-start-start-radius': px,\n 'border-start-end-radius': px,\n 'border-end-start-radius': px,\n 'border-end-end-radius': px,\n // Margin properties\n margin: px,\n 'margin-bottom': px,\n 'margin-left': px,\n 'margin-right': px,\n 'margin-top': px,\n 'margin-block': px,\n 'margin-block-end': px,\n 'margin-block-start': px,\n 'margin-inline': px,\n 'margin-inline-end': px,\n 'margin-inline-start': px,\n // Padding properties\n padding: px,\n 'padding-bottom': px,\n 'padding-left': px,\n 'padding-right': px,\n 'padding-top': px,\n 'padding-block': px,\n 'padding-block-end': px,\n 'padding-block-start': px,\n 'padding-inline': px,\n 'padding-inline-end': px,\n 'padding-inline-start': px,\n // Mask properties\n 'mask-position-x': px,\n 'mask-position-y': px,\n 'mask-size': px,\n // Width and height properties\n height: px,\n width: px,\n 'min-height': px,\n 'max-height': px,\n 'min-width': px,\n 'max-width': px,\n // Position properties\n bottom: px,\n left: px,\n top: px,\n right: px,\n inset: px,\n 'inset-block': px,\n 'inset-block-end': px,\n 'inset-block-start': px,\n 'inset-inline': px,\n 'inset-inline-end': px,\n 'inset-inline-start': px,\n // Shadow properties\n 'box-shadow': px,\n 'text-shadow': px,\n // Column properties\n 'column-gap': px,\n 'column-rule': px,\n 'column-rule-width': px,\n 'column-width': px,\n // Font and text properties\n 'font-size': px,\n 'font-size-delta': px,\n 'letter-spacing': px,\n 'text-decoration-thickness': px,\n 'text-indent': px,\n 'text-stroke': px,\n 'text-stroke-width': px,\n 'word-spacing': px,\n // Motion properties\n motion: px,\n 'motion-offset': px,\n // Outline properties\n outline: px,\n 'outline-offset': px,\n 'outline-width': px,\n // Perspective properties\n perspective: px,\n 'perspective-origin-x': percent,\n 'perspective-origin-y': percent,\n // Transform properties\n 'transform-origin': percent,\n 'transform-origin-x': percent,\n 'transform-origin-y': percent,\n 'transform-origin-z': percent,\n // Transition properties\n 'transition-delay': ms,\n 'transition-duration': ms,\n // Alignment properties\n 'vertical-align': px,\n 'flex-basis': px,\n // Some random properties\n 'shape-margin': px,\n size: px,\n gap: px,\n // Grid properties\n grid: px,\n 'grid-gap': px,\n 'row-gap': px,\n 'grid-row-gap': px,\n 'grid-column-gap': px,\n 'grid-template-rows': px,\n 'grid-template-columns': px,\n 'grid-auto-rows': px,\n 'grid-auto-columns': px,\n // Not existing properties.\n // Used to avoid issues with jss-plugin-expand integration.\n 'box-shadow-x': px,\n 'box-shadow-y': px,\n 'box-shadow-blur': px,\n 'box-shadow-spread': px,\n 'font-line-height': px,\n 'text-shadow-x': px,\n 'text-shadow-y': px,\n 'text-shadow-blur': px\n};\n\n/**\n * Clones the object and adds a camel cased property version.\n */\n\nfunction addCamelCasedVersion(obj) {\n var regExp = /(-[a-z])/g;\n\n var replace = function replace(str) {\n return str[1].toUpperCase();\n };\n\n var newObj = {};\n\n for (var key in obj) {\n newObj[key] = obj[key];\n newObj[key.replace(regExp, replace)] = obj[key];\n }\n\n return newObj;\n}\n\nvar units = addCamelCasedVersion(defaultUnits);\n/**\n * Recursive deep style passing function\n */\n\nfunction iterate(prop, value, options) {\n if (value == null) return value;\n\n if (Array.isArray(value)) {\n for (var i = 0; i < value.length; i++) {\n value[i] = iterate(prop, value[i], options);\n }\n } else if (typeof value === 'object') {\n if (prop === 'fallbacks') {\n for (var innerProp in value) {\n value[innerProp] = iterate(innerProp, value[innerProp], options);\n }\n } else {\n for (var _innerProp in value) {\n value[_innerProp] = iterate(prop + \"-\" + _innerProp, value[_innerProp], options);\n }\n } // eslint-disable-next-line no-restricted-globals\n\n } else if (typeof value === 'number' && isNaN(value) === false) {\n var unit = options[prop] || units[prop]; // Add the unit if available, except for the special case of 0px.\n\n if (unit && !(value === 0 && unit === px)) {\n return typeof unit === 'function' ? unit(value).toString() : \"\" + value + unit;\n }\n\n return value.toString();\n }\n\n return value;\n}\n/**\n * Add unit to numeric values.\n */\n\n\nfunction defaultUnit(options) {\n if (options === void 0) {\n options = {};\n }\n\n var camelCasedOptions = addCamelCasedVersion(options);\n\n function onProcessStyle(style, rule) {\n if (rule.type !== 'style') return style;\n\n for (var prop in style) {\n style[prop] = iterate(prop, style[prop], camelCasedOptions);\n }\n\n return style;\n }\n\n function onChangeValue(value, prop) {\n return iterate(prop, value, camelCasedOptions);\n }\n\n return {\n onProcessStyle: onProcessStyle,\n onChangeValue: onChangeValue\n };\n}\n\nexport default defaultUnit;\n","import isInBrowser from 'is-in-browser';\nimport _toConsumableArray from '@babel/runtime/helpers/esm/toConsumableArray';\n\n// Export javascript style and css style vendor prefixes.\nvar js = '';\nvar css = '';\nvar vendor = '';\nvar browser = '';\nvar isTouch = isInBrowser && 'ontouchstart' in document.documentElement; // We should not do anything if required serverside.\n\nif (isInBrowser) {\n // Order matters. We need to check Webkit the last one because\n // other vendors use to add Webkit prefixes to some properties\n var jsCssMap = {\n Moz: '-moz-',\n ms: '-ms-',\n O: '-o-',\n Webkit: '-webkit-'\n };\n\n var _document$createEleme = document.createElement('p'),\n style = _document$createEleme.style;\n\n var testProp = 'Transform';\n\n for (var key in jsCssMap) {\n if (key + testProp in style) {\n js = key;\n css = jsCssMap[key];\n break;\n }\n } // Correctly detect the Edge browser.\n\n\n if (js === 'Webkit' && 'msHyphens' in style) {\n js = 'ms';\n css = jsCssMap.ms;\n browser = 'edge';\n } // Correctly detect the Safari browser.\n\n\n if (js === 'Webkit' && '-apple-trailing-word' in style) {\n vendor = 'apple';\n }\n}\n/**\n * Vendor prefix string for the current browser.\n *\n * @type {{js: String, css: String, vendor: String, browser: String}}\n * @api public\n */\n\n\nvar prefix = {\n js: js,\n css: css,\n vendor: vendor,\n browser: browser,\n isTouch: isTouch\n};\n\n/**\n * Test if a keyframe at-rule should be prefixed or not\n *\n * @param {String} vendor prefix string for the current browser.\n * @return {String}\n * @api public\n */\n\nfunction supportedKeyframes(key) {\n // Keyframes is already prefixed. e.g. key = '@-webkit-keyframes a'\n if (key[1] === '-') return key; // No need to prefix IE/Edge. Older browsers will ignore unsupported rules.\n // https://caniuse.com/#search=keyframes\n\n if (prefix.js === 'ms') return key;\n return \"@\" + prefix.css + \"keyframes\" + key.substr(10);\n}\n\n// https://caniuse.com/#search=appearance\n\nvar appearence = {\n noPrefill: ['appearance'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'appearance') return false;\n if (prefix.js === 'ms') return \"-webkit-\" + prop;\n return prefix.css + prop;\n }\n};\n\n// https://caniuse.com/#search=color-adjust\n\nvar colorAdjust = {\n noPrefill: ['color-adjust'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'color-adjust') return false;\n if (prefix.js === 'Webkit') return prefix.css + \"print-\" + prop;\n return prop;\n }\n};\n\nvar regExp = /[-\\s]+(.)?/g;\n/**\n * Replaces the letter with the capital letter\n *\n * @param {String} match\n * @param {String} c\n * @return {String}\n * @api private\n */\n\nfunction toUpper(match, c) {\n return c ? c.toUpperCase() : '';\n}\n/**\n * Convert dash separated strings to camel-cased.\n *\n * @param {String} str\n * @return {String}\n * @api private\n */\n\n\nfunction camelize(str) {\n return str.replace(regExp, toUpper);\n}\n\n/**\n * Convert dash separated strings to pascal cased.\n *\n * @param {String} str\n * @return {String}\n * @api private\n */\n\nfunction pascalize(str) {\n return camelize(\"-\" + str);\n}\n\n// but we can use a longhand property instead.\n// https://caniuse.com/#search=mask\n\nvar mask = {\n noPrefill: ['mask'],\n supportedProperty: function supportedProperty(prop, style) {\n if (!/^mask/.test(prop)) return false;\n\n if (prefix.js === 'Webkit') {\n var longhand = 'mask-image';\n\n if (camelize(longhand) in style) {\n return prop;\n }\n\n if (prefix.js + pascalize(longhand) in style) {\n return prefix.css + prop;\n }\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=text-orientation\n\nvar textOrientation = {\n noPrefill: ['text-orientation'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'text-orientation') return false;\n\n if (prefix.vendor === 'apple' && !prefix.isTouch) {\n return prefix.css + prop;\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=transform\n\nvar transform = {\n noPrefill: ['transform'],\n supportedProperty: function supportedProperty(prop, style, options) {\n if (prop !== 'transform') return false;\n\n if (options.transform) {\n return prop;\n }\n\n return prefix.css + prop;\n }\n};\n\n// https://caniuse.com/#search=transition\n\nvar transition = {\n noPrefill: ['transition'],\n supportedProperty: function supportedProperty(prop, style, options) {\n if (prop !== 'transition') return false;\n\n if (options.transition) {\n return prop;\n }\n\n return prefix.css + prop;\n }\n};\n\n// https://caniuse.com/#search=writing-mode\n\nvar writingMode = {\n noPrefill: ['writing-mode'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'writing-mode') return false;\n\n if (prefix.js === 'Webkit' || prefix.js === 'ms' && prefix.browser !== 'edge') {\n return prefix.css + prop;\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=user-select\n\nvar userSelect = {\n noPrefill: ['user-select'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'user-select') return false;\n\n if (prefix.js === 'Moz' || prefix.js === 'ms' || prefix.vendor === 'apple') {\n return prefix.css + prop;\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=multicolumn\n// https://github.com/postcss/autoprefixer/issues/491\n// https://github.com/postcss/autoprefixer/issues/177\n\nvar breakPropsOld = {\n supportedProperty: function supportedProperty(prop, style) {\n if (!/^break-/.test(prop)) return false;\n\n if (prefix.js === 'Webkit') {\n var jsProp = \"WebkitColumn\" + pascalize(prop);\n return jsProp in style ? prefix.css + \"column-\" + prop : false;\n }\n\n if (prefix.js === 'Moz') {\n var _jsProp = \"page\" + pascalize(prop);\n\n return _jsProp in style ? \"page-\" + prop : false;\n }\n\n return false;\n }\n};\n\n// See https://github.com/postcss/autoprefixer/issues/324.\n\nvar inlineLogicalOld = {\n supportedProperty: function supportedProperty(prop, style) {\n if (!/^(border|margin|padding)-inline/.test(prop)) return false;\n if (prefix.js === 'Moz') return prop;\n var newProp = prop.replace('-inline', '');\n return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;\n }\n};\n\n// Camelization is required because we can't test using.\n// CSS syntax for e.g. in FF.\n\nvar unprefixed = {\n supportedProperty: function supportedProperty(prop, style) {\n return camelize(prop) in style ? prop : false;\n }\n};\n\nvar prefixed = {\n supportedProperty: function supportedProperty(prop, style) {\n var pascalized = pascalize(prop); // Return custom CSS variable without prefixing.\n\n if (prop[0] === '-') return prop; // Return already prefixed value without prefixing.\n\n if (prop[0] === '-' && prop[1] === '-') return prop;\n if (prefix.js + pascalized in style) return prefix.css + prop; // Try webkit fallback.\n\n if (prefix.js !== 'Webkit' && \"Webkit\" + pascalized in style) return \"-webkit-\" + prop;\n return false;\n }\n};\n\n// https://caniuse.com/#search=scroll-snap\n\nvar scrollSnap = {\n supportedProperty: function supportedProperty(prop) {\n if (prop.substring(0, 11) !== 'scroll-snap') return false;\n\n if (prefix.js === 'ms') {\n return \"\" + prefix.css + prop;\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=overscroll-behavior\n\nvar overscrollBehavior = {\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'overscroll-behavior') return false;\n\n if (prefix.js === 'ms') {\n return prefix.css + \"scroll-chaining\";\n }\n\n return prop;\n }\n};\n\nvar propMap = {\n 'flex-grow': 'flex-positive',\n 'flex-shrink': 'flex-negative',\n 'flex-basis': 'flex-preferred-size',\n 'justify-content': 'flex-pack',\n order: 'flex-order',\n 'align-items': 'flex-align',\n 'align-content': 'flex-line-pack' // 'align-self' is handled by 'align-self' plugin.\n\n}; // Support old flex spec from 2012.\n\nvar flex2012 = {\n supportedProperty: function supportedProperty(prop, style) {\n var newProp = propMap[prop];\n if (!newProp) return false;\n return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;\n }\n};\n\nvar propMap$1 = {\n flex: 'box-flex',\n 'flex-grow': 'box-flex',\n 'flex-direction': ['box-orient', 'box-direction'],\n order: 'box-ordinal-group',\n 'align-items': 'box-align',\n 'flex-flow': ['box-orient', 'box-direction'],\n 'justify-content': 'box-pack'\n};\nvar propKeys = Object.keys(propMap$1);\n\nvar prefixCss = function prefixCss(p) {\n return prefix.css + p;\n}; // Support old flex spec from 2009.\n\n\nvar flex2009 = {\n supportedProperty: function supportedProperty(prop, style, _ref) {\n var multiple = _ref.multiple;\n\n if (propKeys.indexOf(prop) > -1) {\n var newProp = propMap$1[prop];\n\n if (!Array.isArray(newProp)) {\n return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;\n }\n\n if (!multiple) return false;\n\n for (var i = 0; i < newProp.length; i++) {\n if (!(prefix.js + pascalize(newProp[0]) in style)) {\n return false;\n }\n }\n\n return newProp.map(prefixCss);\n }\n\n return false;\n }\n};\n\n// plugins = [\n// ...plugins,\n// breakPropsOld,\n// inlineLogicalOld,\n// unprefixed,\n// prefixed,\n// scrollSnap,\n// flex2012,\n// flex2009\n// ]\n// Plugins without 'noPrefill' value, going last.\n// 'flex-*' plugins should be at the bottom.\n// 'flex2009' going after 'flex2012'.\n// 'prefixed' going after 'unprefixed'\n\nvar plugins = [appearence, colorAdjust, mask, textOrientation, transform, transition, writingMode, userSelect, breakPropsOld, inlineLogicalOld, unprefixed, prefixed, scrollSnap, overscrollBehavior, flex2012, flex2009];\nvar propertyDetectors = plugins.filter(function (p) {\n return p.supportedProperty;\n}).map(function (p) {\n return p.supportedProperty;\n});\nvar noPrefill = plugins.filter(function (p) {\n return p.noPrefill;\n}).reduce(function (a, p) {\n a.push.apply(a, _toConsumableArray(p.noPrefill));\n return a;\n}, []);\n\nvar el;\nvar cache = {};\n\nif (isInBrowser) {\n el = document.createElement('p'); // We test every property on vendor prefix requirement.\n // Once tested, result is cached. It gives us up to 70% perf boost.\n // http://jsperf.com/element-style-object-access-vs-plain-object\n //\n // Prefill cache with known css properties to reduce amount of\n // properties we need to feature test at runtime.\n // http://davidwalsh.name/vendor-prefix\n\n var computed = window.getComputedStyle(document.documentElement, '');\n\n for (var key$1 in computed) {\n // eslint-disable-next-line no-restricted-globals\n if (!isNaN(key$1)) cache[computed[key$1]] = computed[key$1];\n } // Properties that cannot be correctly detected using the\n // cache prefill method.\n\n\n noPrefill.forEach(function (x) {\n return delete cache[x];\n });\n}\n/**\n * Test if a property is supported, returns supported property with vendor\n * prefix if required. Returns `false` if not supported.\n *\n * @param {String} prop dash separated\n * @param {Object} [options]\n * @return {String|Boolean}\n * @api public\n */\n\n\nfunction supportedProperty(prop, options) {\n if (options === void 0) {\n options = {};\n }\n\n // For server-side rendering.\n if (!el) return prop; // Remove cache for benchmark tests or return property from the cache.\n\n if (process.env.NODE_ENV !== 'benchmark' && cache[prop] != null) {\n return cache[prop];\n } // Check if 'transition' or 'transform' natively supported in browser.\n\n\n if (prop === 'transition' || prop === 'transform') {\n options[prop] = prop in el.style;\n } // Find a plugin for current prefix property.\n\n\n for (var i = 0; i < propertyDetectors.length; i++) {\n cache[prop] = propertyDetectors[i](prop, el.style, options); // Break loop, if value found.\n\n if (cache[prop]) break;\n } // Reset styles for current property.\n // Firefox can even throw an error for invalid properties, e.g., \"0\".\n\n\n try {\n el.style[prop] = '';\n } catch (err) {\n return false;\n }\n\n return cache[prop];\n}\n\nvar cache$1 = {};\nvar transitionProperties = {\n transition: 1,\n 'transition-property': 1,\n '-webkit-transition': 1,\n '-webkit-transition-property': 1\n};\nvar transPropsRegExp = /(^\\s*[\\w-]+)|, (\\s*[\\w-]+)(?![^()]*\\))/g;\nvar el$1;\n/**\n * Returns prefixed value transition/transform if needed.\n *\n * @param {String} match\n * @param {String} p1\n * @param {String} p2\n * @return {String}\n * @api private\n */\n\nfunction prefixTransitionCallback(match, p1, p2) {\n if (p1 === 'var') return 'var';\n if (p1 === 'all') return 'all';\n if (p2 === 'all') return ', all';\n var prefixedValue = p1 ? supportedProperty(p1) : \", \" + supportedProperty(p2);\n if (!prefixedValue) return p1 || p2;\n return prefixedValue;\n}\n\nif (isInBrowser) el$1 = document.createElement('p');\n/**\n * Returns prefixed value if needed. Returns `false` if value is not supported.\n *\n * @param {String} property\n * @param {String} value\n * @return {String|Boolean}\n * @api public\n */\n\nfunction supportedValue(property, value) {\n // For server-side rendering.\n var prefixedValue = value;\n if (!el$1 || property === 'content') return value; // It is a string or a number as a string like '1'.\n // We want only prefixable values here.\n // eslint-disable-next-line no-restricted-globals\n\n if (typeof prefixedValue !== 'string' || !isNaN(parseInt(prefixedValue, 10))) {\n return prefixedValue;\n } // Create cache key for current value.\n\n\n var cacheKey = property + prefixedValue; // Remove cache for benchmark tests or return value from cache.\n\n if (process.env.NODE_ENV !== 'benchmark' && cache$1[cacheKey] != null) {\n return cache$1[cacheKey];\n } // IE can even throw an error in some cases, for e.g. style.content = 'bar'.\n\n\n try {\n // Test value as it is.\n el$1.style[property] = prefixedValue;\n } catch (err) {\n // Return false if value not supported.\n cache$1[cacheKey] = false;\n return false;\n } // If 'transition' or 'transition-property' property.\n\n\n if (transitionProperties[property]) {\n prefixedValue = prefixedValue.replace(transPropsRegExp, prefixTransitionCallback);\n } else if (el$1.style[property] === '') {\n // Value with a vendor prefix.\n prefixedValue = prefix.css + prefixedValue; // Hardcode test to convert \"flex\" to \"-ms-flexbox\" for IE10.\n\n if (prefixedValue === '-ms-flex') el$1.style[property] = '-ms-flexbox'; // Test prefixed value.\n\n el$1.style[property] = prefixedValue; // Return false if value not supported.\n\n if (el$1.style[property] === '') {\n cache$1[cacheKey] = false;\n return false;\n }\n } // Reset styles for current property.\n\n\n el$1.style[property] = ''; // Write current value to cache.\n\n cache$1[cacheKey] = prefixedValue;\n return cache$1[cacheKey];\n}\n\nexport { prefix, supportedKeyframes, supportedProperty, supportedValue };\n","import { supportedKeyframes, supportedValue, supportedProperty } from 'css-vendor';\nimport { toCssValue } from 'jss';\n\n/**\n * Add vendor prefix to a property name when needed.\n */\n\nfunction jssVendorPrefixer() {\n function onProcessRule(rule) {\n if (rule.type === 'keyframes') {\n var atRule = rule;\n atRule.at = supportedKeyframes(atRule.at);\n }\n }\n\n function prefixStyle(style) {\n for (var prop in style) {\n var value = style[prop];\n\n if (prop === 'fallbacks' && Array.isArray(value)) {\n style[prop] = value.map(prefixStyle);\n continue;\n }\n\n var changeProp = false;\n var supportedProp = supportedProperty(prop);\n if (supportedProp && supportedProp !== prop) changeProp = true;\n var changeValue = false;\n var supportedValue$1 = supportedValue(supportedProp, toCssValue(value));\n if (supportedValue$1 && supportedValue$1 !== value) changeValue = true;\n\n if (changeProp || changeValue) {\n if (changeProp) delete style[prop];\n style[supportedProp || prop] = supportedValue$1 || value;\n }\n }\n\n return style;\n }\n\n function onProcessStyle(style, rule) {\n if (rule.type !== 'style') return style;\n return prefixStyle(style);\n }\n\n function onChangeValue(value, prop) {\n return supportedValue(prop, toCssValue(value)) || value;\n }\n\n return {\n onProcessRule: onProcessRule,\n onProcessStyle: onProcessStyle,\n onChangeValue: onChangeValue\n };\n}\n\nexport default jssVendorPrefixer;\n","/**\n * Sort props by length.\n */\nfunction jssPropsSort() {\n var sort = function sort(prop0, prop1) {\n if (prop0.length === prop1.length) {\n return prop0 > prop1 ? 1 : -1;\n }\n\n return prop0.length - prop1.length;\n };\n\n return {\n onProcessStyle: function onProcessStyle(style, rule) {\n if (rule.type !== 'style') return style;\n var newStyle = {};\n var props = Object.keys(style).sort(sort);\n\n for (var i = 0; i < props.length; i++) {\n newStyle[props[i]] = style[props[i]];\n }\n\n return newStyle;\n }\n };\n}\n\nexport default jssPropsSort;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { exactProp } from '@material-ui/utils';\nimport createGenerateClassName from '../createGenerateClassName';\nimport { create } from 'jss';\nimport jssPreset from '../jssPreset'; // Default JSS instance.\n\nvar jss = create(jssPreset()); // Use a singleton or the provided one by the context.\n//\n// The counter-based approach doesn't tolerate any mistake.\n// It's much safer to use the same counter everywhere.\n\nvar generateClassName = createGenerateClassName(); // Exported for test purposes\n\nexport var sheetsManager = new Map();\nvar defaultOptions = {\n disableGeneration: false,\n generateClassName: generateClassName,\n jss: jss,\n sheetsCache: null,\n sheetsManager: sheetsManager,\n sheetsRegistry: null\n};\nexport var StylesContext = React.createContext(defaultOptions);\n\nif (process.env.NODE_ENV !== 'production') {\n StylesContext.displayName = 'StylesContext';\n}\n\nvar injectFirstNode;\nexport default function StylesProvider(props) {\n var children = props.children,\n _props$injectFirst = props.injectFirst,\n injectFirst = _props$injectFirst === void 0 ? false : _props$injectFirst,\n _props$disableGenerat = props.disableGeneration,\n disableGeneration = _props$disableGenerat === void 0 ? false : _props$disableGenerat,\n localOptions = _objectWithoutProperties(props, [\"children\", \"injectFirst\", \"disableGeneration\"]);\n\n var outerOptions = React.useContext(StylesContext);\n\n var context = _extends({}, outerOptions, {\n disableGeneration: disableGeneration\n }, localOptions);\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof window === 'undefined' && !context.sheetsManager) {\n console.error('Material-UI: You need to use the ServerStyleSheets API when rendering on the server.');\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (context.jss.options.insertionPoint && injectFirst) {\n console.error('Material-UI: You cannot use a custom insertionPoint and at the same time.');\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (injectFirst && localOptions.jss) {\n console.error('Material-UI: You cannot use the jss and injectFirst props at the same time.');\n }\n }\n\n if (!context.jss.options.insertionPoint && injectFirst && typeof window !== 'undefined') {\n if (!injectFirstNode) {\n var head = document.head;\n injectFirstNode = document.createComment('mui-inject-first');\n head.insertBefore(injectFirstNode, head.firstChild);\n }\n\n context.jss = create({\n plugins: jssPreset().plugins,\n insertionPoint: injectFirstNode\n });\n }\n\n return /*#__PURE__*/React.createElement(StylesContext.Provider, {\n value: context\n }, children);\n}\nprocess.env.NODE_ENV !== \"production\" ? StylesProvider.propTypes = {\n /**\n * Your component tree.\n */\n children: PropTypes.node.isRequired,\n\n /**\n * You can disable the generation of the styles with this option.\n * It can be useful when traversing the React tree outside of the HTML\n * rendering step on the server.\n * Let's say you are using react-apollo to extract all\n * the queries made by the interface server-side - you can significantly speed up the traversal with this prop.\n */\n disableGeneration: PropTypes.bool,\n\n /**\n * JSS's class name generator.\n */\n generateClassName: PropTypes.func,\n\n /**\n * By default, the styles are injected last in the element of the page.\n * As a result, they gain more specificity than any other style sheet.\n * If you want to override Material-UI's styles, set this prop.\n */\n injectFirst: PropTypes.bool,\n\n /**\n * JSS's instance.\n */\n jss: PropTypes.object,\n\n /**\n * @ignore\n */\n serverGenerateClassName: PropTypes.func,\n\n /**\n * @ignore\n *\n * Beta feature.\n *\n * Cache for the sheets.\n */\n sheetsCache: PropTypes.object,\n\n /**\n * @ignore\n *\n * The sheetsManager is used to deduplicate style sheet injection in the page.\n * It's deduplicating using the (theme, styles) couple.\n * On the server, you should provide a new instance for each request.\n */\n sheetsManager: PropTypes.object,\n\n /**\n * @ignore\n *\n * Collect the sheets.\n */\n sheetsRegistry: PropTypes.object\n} : void 0;\n\nif (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? StylesProvider.propTypes = exactProp(StylesProvider.propTypes) : void 0;\n}","import functions from 'jss-plugin-rule-value-function';\nimport global from 'jss-plugin-global';\nimport nested from 'jss-plugin-nested';\nimport camelCase from 'jss-plugin-camel-case';\nimport defaultUnit from 'jss-plugin-default-unit';\nimport vendorPrefixer from 'jss-plugin-vendor-prefixer';\nimport propsSort from 'jss-plugin-props-sort'; // Subset of jss-preset-default with only the plugins the Material-UI components are using.\n\nexport default function jssPreset() {\n return {\n plugins: [functions(), global(), nested(), camelCase(), defaultUnit(), // Disable the vendor prefixer server-side, it does nothing.\n // This way, we can get a performance boost.\n // In the documentation, we are using `autoprefixer` to solve this problem.\n typeof window === 'undefined' ? null : vendorPrefixer(), propsSort()]\n };\n}","/* eslint-disable import/prefer-default-export */\n// Global index counter to preserve source order.\n// We create the style sheet during the creation of the component,\n// children are handled after the parents, so the order of style elements would be parent->child.\n// It is a problem though when a parent passes a className\n// which needs to override any child's styles.\n// StyleSheet of the child has a higher specificity, because of the source order.\n// So our solution is to render sheets them in the reverse order child->sheet, so\n// that parent has a higher specificity.\nvar indexCounter = -1e9;\nexport function increment() {\n indexCounter += 1;\n\n if (process.env.NODE_ENV !== 'production') {\n if (indexCounter >= 0) {\n console.warn(['Material-UI: You might have a memory leak.', 'The indexCounter is not supposed to grow that much.'].join('\\n'));\n }\n }\n\n return indexCounter;\n}","// We use the same empty object to ref count the styles that don't need a theme object.\nvar noopTheme = {};\nexport default noopTheme;","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport React from 'react';\nimport { getDynamicStyles } from 'jss';\nimport mergeClasses from '../mergeClasses';\nimport multiKeyStore from './multiKeyStore';\nimport useTheme from '../useTheme';\nimport { StylesContext } from '../StylesProvider';\nimport { increment } from './indexCounter';\nimport getStylesCreator from '../getStylesCreator';\nimport noopTheme from '../getStylesCreator/noopTheme';\n\nfunction getClasses(_ref, classes, Component) {\n var state = _ref.state,\n stylesOptions = _ref.stylesOptions;\n\n if (stylesOptions.disableGeneration) {\n return classes || {};\n }\n\n if (!state.cacheClasses) {\n state.cacheClasses = {\n // Cache for the finalized classes value.\n value: null,\n // Cache for the last used classes prop pointer.\n lastProp: null,\n // Cache for the last used rendered classes pointer.\n lastJSS: {}\n };\n } // Tracks if either the rendered classes or classes prop has changed,\n // requiring the generation of a new finalized classes object.\n\n\n var generate = false;\n\n if (state.classes !== state.cacheClasses.lastJSS) {\n state.cacheClasses.lastJSS = state.classes;\n generate = true;\n }\n\n if (classes !== state.cacheClasses.lastProp) {\n state.cacheClasses.lastProp = classes;\n generate = true;\n }\n\n if (generate) {\n state.cacheClasses.value = mergeClasses({\n baseClasses: state.cacheClasses.lastJSS,\n newClasses: classes,\n Component: Component\n });\n }\n\n return state.cacheClasses.value;\n}\n\nfunction attach(_ref2, props) {\n var state = _ref2.state,\n theme = _ref2.theme,\n stylesOptions = _ref2.stylesOptions,\n stylesCreator = _ref2.stylesCreator,\n name = _ref2.name;\n\n if (stylesOptions.disableGeneration) {\n return;\n }\n\n var sheetManager = multiKeyStore.get(stylesOptions.sheetsManager, stylesCreator, theme);\n\n if (!sheetManager) {\n sheetManager = {\n refs: 0,\n staticSheet: null,\n dynamicStyles: null\n };\n multiKeyStore.set(stylesOptions.sheetsManager, stylesCreator, theme, sheetManager);\n }\n\n var options = _extends({}, stylesCreator.options, stylesOptions, {\n theme: theme,\n flip: typeof stylesOptions.flip === 'boolean' ? stylesOptions.flip : theme.direction === 'rtl'\n });\n\n options.generateId = options.serverGenerateClassName || options.generateClassName;\n var sheetsRegistry = stylesOptions.sheetsRegistry;\n\n if (sheetManager.refs === 0) {\n var staticSheet;\n\n if (stylesOptions.sheetsCache) {\n staticSheet = multiKeyStore.get(stylesOptions.sheetsCache, stylesCreator, theme);\n }\n\n var styles = stylesCreator.create(theme, name);\n\n if (!staticSheet) {\n staticSheet = stylesOptions.jss.createStyleSheet(styles, _extends({\n link: false\n }, options));\n staticSheet.attach();\n\n if (stylesOptions.sheetsCache) {\n multiKeyStore.set(stylesOptions.sheetsCache, stylesCreator, theme, staticSheet);\n }\n }\n\n if (sheetsRegistry) {\n sheetsRegistry.add(staticSheet);\n }\n\n sheetManager.staticSheet = staticSheet;\n sheetManager.dynamicStyles = getDynamicStyles(styles);\n }\n\n if (sheetManager.dynamicStyles) {\n var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, _extends({\n link: true\n }, options));\n dynamicSheet.update(props);\n dynamicSheet.attach();\n state.dynamicSheet = dynamicSheet;\n state.classes = mergeClasses({\n baseClasses: sheetManager.staticSheet.classes,\n newClasses: dynamicSheet.classes\n });\n\n if (sheetsRegistry) {\n sheetsRegistry.add(dynamicSheet);\n }\n } else {\n state.classes = sheetManager.staticSheet.classes;\n }\n\n sheetManager.refs += 1;\n}\n\nfunction update(_ref3, props) {\n var state = _ref3.state;\n\n if (state.dynamicSheet) {\n state.dynamicSheet.update(props);\n }\n}\n\nfunction detach(_ref4) {\n var state = _ref4.state,\n theme = _ref4.theme,\n stylesOptions = _ref4.stylesOptions,\n stylesCreator = _ref4.stylesCreator;\n\n if (stylesOptions.disableGeneration) {\n return;\n }\n\n var sheetManager = multiKeyStore.get(stylesOptions.sheetsManager, stylesCreator, theme);\n sheetManager.refs -= 1;\n var sheetsRegistry = stylesOptions.sheetsRegistry;\n\n if (sheetManager.refs === 0) {\n multiKeyStore.delete(stylesOptions.sheetsManager, stylesCreator, theme);\n stylesOptions.jss.removeStyleSheet(sheetManager.staticSheet);\n\n if (sheetsRegistry) {\n sheetsRegistry.remove(sheetManager.staticSheet);\n }\n }\n\n if (state.dynamicSheet) {\n stylesOptions.jss.removeStyleSheet(state.dynamicSheet);\n\n if (sheetsRegistry) {\n sheetsRegistry.remove(state.dynamicSheet);\n }\n }\n}\n\nfunction useSynchronousEffect(func, values) {\n var key = React.useRef([]);\n var output; // Store \"generation\" key. Just returns a new object every time\n\n var currentKey = React.useMemo(function () {\n return {};\n }, values); // eslint-disable-line react-hooks/exhaustive-deps\n // \"the first render\", or \"memo dropped the value\"\n\n if (key.current !== currentKey) {\n key.current = currentKey;\n output = func();\n }\n\n React.useEffect(function () {\n return function () {\n if (output) {\n output();\n }\n };\n }, [currentKey] // eslint-disable-line react-hooks/exhaustive-deps\n );\n}\n\nexport default function makeStyles(stylesOrCreator) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var name = options.name,\n classNamePrefixOption = options.classNamePrefix,\n Component = options.Component,\n _options$defaultTheme = options.defaultTheme,\n defaultTheme = _options$defaultTheme === void 0 ? noopTheme : _options$defaultTheme,\n stylesOptions2 = _objectWithoutProperties(options, [\"name\", \"classNamePrefix\", \"Component\", \"defaultTheme\"]);\n\n var stylesCreator = getStylesCreator(stylesOrCreator);\n var classNamePrefix = name || classNamePrefixOption || 'makeStyles';\n stylesCreator.options = {\n index: increment(),\n name: name,\n meta: classNamePrefix,\n classNamePrefix: classNamePrefix\n };\n\n var useStyles = function useStyles() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var theme = useTheme() || defaultTheme;\n\n var stylesOptions = _extends({}, React.useContext(StylesContext), stylesOptions2);\n\n var instance = React.useRef();\n var shouldUpdate = React.useRef();\n useSynchronousEffect(function () {\n var current = {\n name: name,\n state: {},\n stylesCreator: stylesCreator,\n stylesOptions: stylesOptions,\n theme: theme\n };\n attach(current, props);\n shouldUpdate.current = false;\n instance.current = current;\n return function () {\n detach(current);\n };\n }, [theme, stylesCreator]);\n React.useEffect(function () {\n if (shouldUpdate.current) {\n update(instance.current, props);\n }\n\n shouldUpdate.current = true;\n });\n var classes = getClasses(instance.current, props.classes, Component);\n\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(classes);\n }\n\n return classes;\n };\n\n return useStyles;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport { deepmerge } from '@material-ui/utils';\nimport noopTheme from './noopTheme';\nexport default function getStylesCreator(stylesOrCreator) {\n var themingEnabled = typeof stylesOrCreator === 'function';\n\n if (process.env.NODE_ENV !== 'production') {\n if (_typeof(stylesOrCreator) !== 'object' && !themingEnabled) {\n console.error(['Material-UI: The `styles` argument provided is invalid.', 'You need to provide a function generating the styles or a styles object.'].join('\\n'));\n }\n }\n\n return {\n create: function create(theme, name) {\n var styles;\n\n try {\n styles = themingEnabled ? stylesOrCreator(theme) : stylesOrCreator;\n } catch (err) {\n if (process.env.NODE_ENV !== 'production') {\n if (themingEnabled === true && theme === noopTheme) {\n // TODO: prepend error message/name instead\n console.error(['Material-UI: The `styles` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\\n'));\n }\n }\n\n throw err;\n }\n\n if (!name || !theme.overrides || !theme.overrides[name]) {\n return styles;\n }\n\n var overrides = theme.overrides[name];\n\n var stylesWithOverrides = _extends({}, styles);\n\n Object.keys(overrides).forEach(function (key) {\n if (process.env.NODE_ENV !== 'production') {\n if (!stylesWithOverrides[key]) {\n console.warn(['Material-UI: You are trying to override a style that does not exist.', \"Fix the `\".concat(key, \"` key of `theme.overrides.\").concat(name, \"`.\")].join('\\n'));\n }\n }\n\n stylesWithOverrides[key] = deepmerge(stylesWithOverrides[key], overrides[key]);\n });\n return stylesWithOverrides;\n },\n options: {}\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { getDisplayName } from '@material-ui/utils';\nexport default function mergeClasses() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var baseClasses = options.baseClasses,\n newClasses = options.newClasses,\n Component = options.Component;\n\n if (!newClasses) {\n return baseClasses;\n }\n\n var nextClasses = _extends({}, baseClasses);\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof newClasses === 'string') {\n console.error([\"Material-UI: The value `\".concat(newClasses, \"` \") + \"provided to the classes prop of \".concat(getDisplayName(Component), \" is incorrect.\"), 'You might want to use the className prop instead.'].join('\\n'));\n return baseClasses;\n }\n }\n\n Object.keys(newClasses).forEach(function (key) {\n if (process.env.NODE_ENV !== 'production') {\n if (!baseClasses[key] && newClasses[key]) {\n console.error([\"Material-UI: The key `\".concat(key, \"` \") + \"provided to the classes prop is not implemented in \".concat(getDisplayName(Component), \".\"), \"You can only override one of the following: \".concat(Object.keys(baseClasses).join(','), \".\")].join('\\n'));\n }\n\n if (newClasses[key] && typeof newClasses[key] !== 'string') {\n console.error([\"Material-UI: The key `\".concat(key, \"` \") + \"provided to the classes prop is not valid for \".concat(getDisplayName(Component), \".\"), \"You need to provide a non empty string instead of: \".concat(newClasses[key], \".\")].join('\\n'));\n }\n }\n\n if (newClasses[key]) {\n nextClasses[key] = \"\".concat(baseClasses[key], \" \").concat(newClasses[key]);\n }\n });\n return nextClasses;\n}","import React from 'react';\nvar ThemeContext = React.createContext(null);\n\nif (process.env.NODE_ENV !== 'production') {\n ThemeContext.displayName = 'ThemeContext';\n}\n\nexport default ThemeContext;","import React from 'react';\nimport ThemeContext from './ThemeContext';\nexport default function useTheme() {\n var theme = React.useContext(ThemeContext);\n\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(theme);\n }\n\n return theme;\n}","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport PropTypes from 'prop-types';\nimport merge from './merge'; // The breakpoint **start** at this value.\n// For instance with the first breakpoint xs: [xs, sm[.\n\nvar values = {\n xs: 0,\n sm: 600,\n md: 960,\n lg: 1280,\n xl: 1920\n};\nvar defaultBreakpoints = {\n // Sorted ASC by size. That's important.\n // It can't be configured as it's used statically for propTypes.\n keys: ['xs', 'sm', 'md', 'lg', 'xl'],\n up: function up(key) {\n return \"@media (min-width:\".concat(values[key], \"px)\");\n }\n};\nexport function handleBreakpoints(props, propValue, styleFromPropValue) {\n if (process.env.NODE_ENV !== 'production') {\n if (!props.theme) {\n console.error('Material-UI: You are calling a style function without a theme value.');\n }\n }\n\n if (Array.isArray(propValue)) {\n var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;\n return propValue.reduce(function (acc, item, index) {\n acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);\n return acc;\n }, {});\n }\n\n if (_typeof(propValue) === 'object') {\n var _themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;\n\n return Object.keys(propValue).reduce(function (acc, breakpoint) {\n acc[_themeBreakpoints.up(breakpoint)] = styleFromPropValue(propValue[breakpoint]);\n return acc;\n }, {});\n }\n\n var output = styleFromPropValue(propValue);\n return output;\n}\n\nfunction breakpoints(styleFunction) {\n var newStyleFunction = function newStyleFunction(props) {\n var base = styleFunction(props);\n var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;\n var extended = themeBreakpoints.keys.reduce(function (acc, key) {\n if (props[key]) {\n acc = acc || {};\n acc[themeBreakpoints.up(key)] = styleFunction(_extends({\n theme: props.theme\n }, props[key]));\n }\n\n return acc;\n }, null);\n return merge(base, extended);\n };\n\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends({}, styleFunction.propTypes, {\n xs: PropTypes.object,\n sm: PropTypes.object,\n md: PropTypes.object,\n lg: PropTypes.object,\n xl: PropTypes.object\n }) : {};\n newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl'].concat(_toConsumableArray(styleFunction.filterProps));\n return newStyleFunction;\n}\n\nexport default breakpoints;","import { deepmerge } from '@material-ui/utils';\n\nfunction merge(acc, item) {\n if (!item) {\n return acc;\n }\n\n return deepmerge(acc, item, {\n clone: false // No need to clone deep, it's way faster.\n\n });\n}\n\nexport default merge;","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport responsivePropType from './responsivePropType';\nimport { handleBreakpoints } from './breakpoints';\nimport merge from './merge';\nimport memoize from './memoize';\nvar properties = {\n m: 'margin',\n p: 'padding'\n};\nvar directions = {\n t: 'Top',\n r: 'Right',\n b: 'Bottom',\n l: 'Left',\n x: ['Left', 'Right'],\n y: ['Top', 'Bottom']\n};\nvar aliases = {\n marginX: 'mx',\n marginY: 'my',\n paddingX: 'px',\n paddingY: 'py'\n}; // memoize() impact:\n// From 300,000 ops/sec\n// To 350,000 ops/sec\n\nvar getCssProperties = memoize(function (prop) {\n // It's not a shorthand notation.\n if (prop.length > 2) {\n if (aliases[prop]) {\n prop = aliases[prop];\n } else {\n return [prop];\n }\n }\n\n var _prop$split = prop.split(''),\n _prop$split2 = _slicedToArray(_prop$split, 2),\n a = _prop$split2[0],\n b = _prop$split2[1];\n\n var property = properties[a];\n var direction = directions[b] || '';\n return Array.isArray(direction) ? direction.map(function (dir) {\n return property + dir;\n }) : [property + direction];\n});\nvar spacingKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY'];\nexport function createUnarySpacing(theme) {\n var themeSpacing = theme.spacing || 8;\n\n if (typeof themeSpacing === 'number') {\n return function (abs) {\n if (process.env.NODE_ENV !== 'production') {\n if (typeof abs !== 'number') {\n console.error(\"Material-UI: Expected spacing argument to be a number, got \".concat(abs, \".\"));\n }\n }\n\n return themeSpacing * abs;\n };\n }\n\n if (Array.isArray(themeSpacing)) {\n return function (abs) {\n if (process.env.NODE_ENV !== 'production') {\n if (abs > themeSpacing.length - 1) {\n console.error([\"Material-UI: The value provided (\".concat(abs, \") overflows.\"), \"The supported values are: \".concat(JSON.stringify(themeSpacing), \".\"), \"\".concat(abs, \" > \").concat(themeSpacing.length - 1, \", you need to add the missing values.\")].join('\\n'));\n }\n }\n\n return themeSpacing[abs];\n };\n }\n\n if (typeof themeSpacing === 'function') {\n return themeSpacing;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n console.error([\"Material-UI: The `theme.spacing` value (\".concat(themeSpacing, \") is invalid.\"), 'It should be a number, an array or a function.'].join('\\n'));\n }\n\n return function () {\n return undefined;\n };\n}\n\nfunction getValue(transformer, propValue) {\n if (typeof propValue === 'string' || propValue == null) {\n return propValue;\n }\n\n var abs = Math.abs(propValue);\n var transformed = transformer(abs);\n\n if (propValue >= 0) {\n return transformed;\n }\n\n if (typeof transformed === 'number') {\n return -transformed;\n }\n\n return \"-\".concat(transformed);\n}\n\nfunction getStyleFromPropValue(cssProperties, transformer) {\n return function (propValue) {\n return cssProperties.reduce(function (acc, cssProperty) {\n acc[cssProperty] = getValue(transformer, propValue);\n return acc;\n }, {});\n };\n}\n\nfunction spacing(props) {\n var theme = props.theme;\n var transformer = createUnarySpacing(theme);\n return Object.keys(props).map(function (prop) {\n // Using a hash computation over an array iteration could be faster, but with only 28 items,\n // it's doesn't worth the bundle size.\n if (spacingKeys.indexOf(prop) === -1) {\n return null;\n }\n\n var cssProperties = getCssProperties(prop);\n var styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);\n var propValue = props[prop];\n return handleBreakpoints(props, propValue, styleFromPropValue);\n }).reduce(merge, {});\n}\n\nspacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce(function (obj, key) {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nspacing.filterProps = spacingKeys;\nexport default spacing;","export default function memoize(fn) {\n var cache = {};\n return function (arg) {\n if (cache[arg] === undefined) {\n cache[arg] = fn(arg);\n }\n\n return cache[arg];\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nexport function isPlainObject(item) {\n return item && _typeof(item) === 'object' && item.constructor === Object;\n}\nexport default function deepmerge(target, source) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {\n clone: true\n };\n var output = options.clone ? _extends({}, target) : target;\n\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(function (key) {\n // Avoid prototype pollution\n if (key === '__proto__') {\n return;\n }\n\n if (isPlainObject(source[key]) && key in target) {\n output[key] = deepmerge(target[key], source[key], options);\n } else {\n output[key] = source[key];\n }\n });\n }\n\n return output;\n}","/**\n * WARNING: Don't import this directly.\n * Use `MuiError` from `@material-ui/utils/macros/MuiError.macro` instead.\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code) {\n // Apply babel-plugin-transform-template-literals in loose mode\n // loose mode is safe iff we're concatenating primitives\n // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose\n\n /* eslint-disable prefer-template */\n var url = 'https://mui.com/production-error/?code=' + code;\n\n for (var i = 1; i < arguments.length; i += 1) {\n // rest params over-transpile for this case\n // eslint-disable-next-line prefer-rest-params\n url += '&args[]=' + encodeURIComponent(arguments[i]);\n }\n\n return 'Minified Material-UI error #' + code + '; visit ' + url + ' for the full message.';\n /* eslint-enable prefer-template */\n}","import { Session as SessionInterface, SessionContext, SessionStatus } from '@sentry/types';\nimport { dropUndefinedKeys, uuid4 } from '@sentry/utils';\n\n/**\n * @inheritdoc\n */\nexport class Session implements SessionInterface {\n public userAgent?: string;\n public errors: number = 0;\n public release?: string;\n public sid: string = uuid4();\n public did?: string;\n public timestamp: number = Date.now();\n public started: number = Date.now();\n public duration: number = 0;\n public status: SessionStatus = SessionStatus.Ok;\n public environment?: string;\n public ipAddress?: string;\n\n constructor(context?: Omit) {\n if (context) {\n this.update(context);\n }\n }\n\n /** JSDoc */\n // eslint-disable-next-line complexity\n update(context: SessionContext = {}): void {\n if (context.user) {\n if (context.user.ip_address) {\n this.ipAddress = context.user.ip_address;\n }\n\n if (!context.did) {\n this.did = context.user.id || context.user.email || context.user.username;\n }\n }\n\n this.timestamp = context.timestamp || Date.now();\n\n if (context.sid) {\n // Good enough uuid validation. — Kamil\n this.sid = context.sid.length === 32 ? context.sid : uuid4();\n }\n if (context.did) {\n this.did = `${context.did}`;\n }\n if (typeof context.started === 'number') {\n this.started = context.started;\n }\n if (typeof context.duration === 'number') {\n this.duration = context.duration;\n } else {\n this.duration = this.timestamp - this.started;\n }\n if (context.release) {\n this.release = context.release;\n }\n if (context.environment) {\n this.environment = context.environment;\n }\n if (context.ipAddress) {\n this.ipAddress = context.ipAddress;\n }\n if (context.userAgent) {\n this.userAgent = context.userAgent;\n }\n if (typeof context.errors === 'number') {\n this.errors = context.errors;\n }\n if (context.status) {\n this.status = context.status;\n }\n }\n\n /** JSDoc */\n close(status?: Exclude): void {\n if (status) {\n this.update({ status });\n } else if (this.status === SessionStatus.Ok) {\n this.update({ status: SessionStatus.Exited });\n } else {\n this.update();\n }\n }\n\n /** JSDoc */\n toJSON(): {\n init: boolean;\n sid: string;\n did?: string;\n timestamp: string;\n started: string;\n duration: number;\n status: SessionStatus;\n errors: number;\n attrs?: {\n release?: string;\n environment?: string;\n user_agent?: string;\n ip_address?: string;\n };\n } {\n return dropUndefinedKeys({\n sid: `${this.sid}`,\n init: true,\n started: new Date(this.started).toISOString(),\n timestamp: new Date(this.timestamp).toISOString(),\n status: this.status,\n errors: this.errors,\n did: typeof this.did === 'number' || typeof this.did === 'string' ? `${this.did}` : undefined,\n duration: this.duration,\n attrs: dropUndefinedKeys({\n release: this.release,\n environment: this.environment,\n ip_address: this.ipAddress,\n user_agent: this.userAgent,\n }),\n });\n }\n}\n","/* eslint-disable max-lines */\nimport {\n Breadcrumb,\n BreadcrumbHint,\n Client,\n CustomSamplingContext,\n Event,\n EventHint,\n Extra,\n Extras,\n Hub as HubInterface,\n Integration,\n IntegrationClass,\n Primitive,\n SessionContext,\n Severity,\n Span,\n SpanContext,\n Transaction,\n TransactionContext,\n User,\n} from '@sentry/types';\nimport { consoleSandbox, dateTimestampInSeconds, getGlobalObject, isNodeEnv, logger, uuid4 } from '@sentry/utils';\n\nimport { Carrier, DomainAsCarrier, Layer } from './interfaces';\nimport { Scope } from './scope';\nimport { Session } from './session';\n\n/**\n * API compatibility version of this hub.\n *\n * WARNING: This number should only be increased when the global interface\n * changes and new methods are introduced.\n *\n * @hidden\n */\nexport const API_VERSION = 3;\n\n/**\n * Default maximum number of breadcrumbs added to an event. Can be overwritten\n * with {@link Options.maxBreadcrumbs}.\n */\nconst DEFAULT_BREADCRUMBS = 100;\n\n/**\n * Absolute maximum number of breadcrumbs added to an event. The\n * `maxBreadcrumbs` option cannot be higher than this value.\n */\nconst MAX_BREADCRUMBS = 100;\n\n/**\n * @inheritDoc\n */\nexport class Hub implements HubInterface {\n /** Is a {@link Layer}[] containing the client and scope */\n private readonly _stack: Layer[] = [{}];\n\n /** Contains the last event id of a captured event. */\n private _lastEventId?: string;\n\n /**\n * Creates a new instance of the hub, will push one {@link Layer} into the\n * internal stack on creation.\n *\n * @param client bound to the hub.\n * @param scope bound to the hub.\n * @param version number, higher number means higher priority.\n */\n public constructor(client?: Client, scope: Scope = new Scope(), private readonly _version: number = API_VERSION) {\n this.getStackTop().scope = scope;\n this.bindClient(client);\n }\n\n /**\n * @inheritDoc\n */\n public isOlderThan(version: number): boolean {\n return this._version < version;\n }\n\n /**\n * @inheritDoc\n */\n public bindClient(client?: Client): void {\n const top = this.getStackTop();\n top.client = client;\n if (client && client.setupIntegrations) {\n client.setupIntegrations();\n }\n }\n\n /**\n * @inheritDoc\n */\n public pushScope(): Scope {\n // We want to clone the content of prev scope\n const scope = Scope.clone(this.getScope());\n this.getStack().push({\n client: this.getClient(),\n scope,\n });\n return scope;\n }\n\n /**\n * @inheritDoc\n */\n public popScope(): boolean {\n if (this.getStack().length <= 1) return false;\n return !!this.getStack().pop();\n }\n\n /**\n * @inheritDoc\n */\n public withScope(callback: (scope: Scope) => void): void {\n const scope = this.pushScope();\n try {\n callback(scope);\n } finally {\n this.popScope();\n }\n }\n\n /**\n * @inheritDoc\n */\n public getClient(): C | undefined {\n return this.getStackTop().client as C;\n }\n\n /** Returns the scope of the top stack. */\n public getScope(): Scope | undefined {\n return this.getStackTop().scope;\n }\n\n /** Returns the scope stack for domains or the process. */\n public getStack(): Layer[] {\n return this._stack;\n }\n\n /** Returns the topmost scope layer in the order domain > local > process. */\n public getStackTop(): Layer {\n return this._stack[this._stack.length - 1];\n }\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n public captureException(exception: any, hint?: EventHint): string {\n const eventId = (this._lastEventId = uuid4());\n let finalHint = hint;\n\n // If there's no explicit hint provided, mimick the same thing that would happen\n // in the minimal itself to create a consistent behavior.\n // We don't do this in the client, as it's the lowest level API, and doing this,\n // would prevent user from having full control over direct calls.\n if (!hint) {\n let syntheticException: Error;\n try {\n throw new Error('Sentry syntheticException');\n } catch (exception) {\n syntheticException = exception as Error;\n }\n finalHint = {\n originalException: exception,\n syntheticException,\n };\n }\n\n this._invokeClient('captureException', exception, {\n ...finalHint,\n event_id: eventId,\n });\n return eventId;\n }\n\n /**\n * @inheritDoc\n */\n public captureMessage(message: string, level?: Severity, hint?: EventHint): string {\n const eventId = (this._lastEventId = uuid4());\n let finalHint = hint;\n\n // If there's no explicit hint provided, mimick the same thing that would happen\n // in the minimal itself to create a consistent behavior.\n // We don't do this in the client, as it's the lowest level API, and doing this,\n // would prevent user from having full control over direct calls.\n if (!hint) {\n let syntheticException: Error;\n try {\n throw new Error(message);\n } catch (exception) {\n syntheticException = exception as Error;\n }\n finalHint = {\n originalException: message,\n syntheticException,\n };\n }\n\n this._invokeClient('captureMessage', message, level, {\n ...finalHint,\n event_id: eventId,\n });\n return eventId;\n }\n\n /**\n * @inheritDoc\n */\n public captureEvent(event: Event, hint?: EventHint): string {\n const eventId = (this._lastEventId = uuid4());\n this._invokeClient('captureEvent', event, {\n ...hint,\n event_id: eventId,\n });\n return eventId;\n }\n\n /**\n * @inheritDoc\n */\n public lastEventId(): string | undefined {\n return this._lastEventId;\n }\n\n /**\n * @inheritDoc\n */\n public addBreadcrumb(breadcrumb: Breadcrumb, hint?: BreadcrumbHint): void {\n const { scope, client } = this.getStackTop();\n\n if (!scope || !client) return;\n\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const { beforeBreadcrumb = null, maxBreadcrumbs = DEFAULT_BREADCRUMBS } =\n (client.getOptions && client.getOptions()) || {};\n\n if (maxBreadcrumbs <= 0) return;\n\n const timestamp = dateTimestampInSeconds();\n const mergedBreadcrumb = { timestamp, ...breadcrumb };\n const finalBreadcrumb = beforeBreadcrumb\n ? (consoleSandbox(() => beforeBreadcrumb(mergedBreadcrumb, hint)) as Breadcrumb | null)\n : mergedBreadcrumb;\n\n if (finalBreadcrumb === null) return;\n\n scope.addBreadcrumb(finalBreadcrumb, Math.min(maxBreadcrumbs, MAX_BREADCRUMBS));\n }\n\n /**\n * @inheritDoc\n */\n public setUser(user: User | null): void {\n const scope = this.getScope();\n if (scope) scope.setUser(user);\n }\n\n /**\n * @inheritDoc\n */\n public setTags(tags: { [key: string]: Primitive }): void {\n const scope = this.getScope();\n if (scope) scope.setTags(tags);\n }\n\n /**\n * @inheritDoc\n */\n public setExtras(extras: Extras): void {\n const scope = this.getScope();\n if (scope) scope.setExtras(extras);\n }\n\n /**\n * @inheritDoc\n */\n public setTag(key: string, value: Primitive): void {\n const scope = this.getScope();\n if (scope) scope.setTag(key, value);\n }\n\n /**\n * @inheritDoc\n */\n public setExtra(key: string, extra: Extra): void {\n const scope = this.getScope();\n if (scope) scope.setExtra(key, extra);\n }\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n public setContext(name: string, context: { [key: string]: any } | null): void {\n const scope = this.getScope();\n if (scope) scope.setContext(name, context);\n }\n\n /**\n * @inheritDoc\n */\n public configureScope(callback: (scope: Scope) => void): void {\n const { scope, client } = this.getStackTop();\n if (scope && client) {\n callback(scope);\n }\n }\n\n /**\n * @inheritDoc\n */\n public run(callback: (hub: Hub) => void): void {\n const oldHub = makeMain(this);\n try {\n callback(this);\n } finally {\n makeMain(oldHub);\n }\n }\n\n /**\n * @inheritDoc\n */\n public getIntegration(integration: IntegrationClass): T | null {\n const client = this.getClient();\n if (!client) return null;\n try {\n return client.getIntegration(integration);\n } catch (_oO) {\n logger.warn(`Cannot retrieve integration ${integration.id} from the current Hub`);\n return null;\n }\n }\n\n /**\n * @inheritDoc\n */\n public startSpan(context: SpanContext): Span {\n return this._callExtensionMethod('startSpan', context);\n }\n\n /**\n * @inheritDoc\n */\n public startTransaction(context: TransactionContext, customSamplingContext?: CustomSamplingContext): Transaction {\n return this._callExtensionMethod('startTransaction', context, customSamplingContext);\n }\n\n /**\n * @inheritDoc\n */\n public traceHeaders(): { [key: string]: string } {\n return this._callExtensionMethod<{ [key: string]: string }>('traceHeaders');\n }\n\n /**\n * @inheritDoc\n */\n public startSession(context?: SessionContext): Session {\n // End existing session if there's one\n this.endSession();\n\n const { scope, client } = this.getStackTop();\n const { release, environment } = (client && client.getOptions()) || {};\n const session = new Session({\n release,\n environment,\n ...(scope && { user: scope.getUser() }),\n ...context,\n });\n if (scope) {\n scope.setSession(session);\n }\n return session;\n }\n\n /**\n * @inheritDoc\n */\n public endSession(): void {\n const { scope, client } = this.getStackTop();\n if (!scope) return;\n\n const session = scope.getSession && scope.getSession();\n if (session) {\n session.close();\n if (client && client.captureSession) {\n client.captureSession(session);\n }\n scope.setSession();\n }\n }\n\n /**\n * Internal helper function to call a method on the top client if it exists.\n *\n * @param method The method to call on the client.\n * @param args Arguments to pass to the client function.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private _invokeClient(method: M, ...args: any[]): void {\n const { scope, client } = this.getStackTop();\n if (client && client[method]) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any\n (client as any)[method](...args, scope);\n }\n }\n\n /**\n * Calls global extension method and binding current instance to the function call\n */\n // @ts-ignore Function lacks ending return statement and return type does not include 'undefined'. ts(2366)\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private _callExtensionMethod(method: string, ...args: any[]): T {\n const carrier = getMainCarrier();\n const sentry = carrier.__SENTRY__;\n if (sentry && sentry.extensions && typeof sentry.extensions[method] === 'function') {\n return sentry.extensions[method].apply(this, args);\n }\n logger.warn(`Extension method ${method} couldn't be found, doing nothing.`);\n }\n}\n\n/** Returns the global shim registry. */\nexport function getMainCarrier(): Carrier {\n const carrier = getGlobalObject();\n carrier.__SENTRY__ = carrier.__SENTRY__ || {\n extensions: {},\n hub: undefined,\n };\n return carrier;\n}\n\n/**\n * Replaces the current main hub with the passed one on the global object\n *\n * @returns The old replaced hub\n */\nexport function makeMain(hub: Hub): Hub {\n const registry = getMainCarrier();\n const oldHub = getHubFromCarrier(registry);\n setHubOnCarrier(registry, hub);\n return oldHub;\n}\n\n/**\n * Returns the default hub instance.\n *\n * If a hub is already registered in the global carrier but this module\n * contains a more recent version, it replaces the registered version.\n * Otherwise, the currently registered hub will be returned.\n */\nexport function getCurrentHub(): Hub {\n // Get main carrier (global for every environment)\n const registry = getMainCarrier();\n\n // If there's no hub, or its an old API, assign a new one\n if (!hasHubOnCarrier(registry) || getHubFromCarrier(registry).isOlderThan(API_VERSION)) {\n setHubOnCarrier(registry, new Hub());\n }\n\n // Prefer domains over global if they are there (applicable only to Node environment)\n if (isNodeEnv()) {\n return getHubFromActiveDomain(registry);\n }\n // Return hub that lives on a global object\n return getHubFromCarrier(registry);\n}\n\n/**\n * Returns the active domain, if one exists\n *\n * @returns The domain, or undefined if there is no active domain\n */\nexport function getActiveDomain(): DomainAsCarrier | undefined {\n const sentry = getMainCarrier().__SENTRY__;\n\n return sentry && sentry.extensions && sentry.extensions.domain && sentry.extensions.domain.active;\n}\n\n/**\n * Try to read the hub from an active domain, and fallback to the registry if one doesn't exist\n * @returns discovered hub\n */\nfunction getHubFromActiveDomain(registry: Carrier): Hub {\n try {\n const activeDomain = getActiveDomain();\n\n // If there's no active domain, just return global hub\n if (!activeDomain) {\n return getHubFromCarrier(registry);\n }\n\n // If there's no hub on current domain, or it's an old API, assign a new one\n if (!hasHubOnCarrier(activeDomain) || getHubFromCarrier(activeDomain).isOlderThan(API_VERSION)) {\n const registryHubTopStack = getHubFromCarrier(registry).getStackTop();\n setHubOnCarrier(activeDomain, new Hub(registryHubTopStack.client, Scope.clone(registryHubTopStack.scope)));\n }\n\n // Return hub that lives on a domain\n return getHubFromCarrier(activeDomain);\n } catch (_Oo) {\n // Return hub that lives on a global object\n return getHubFromCarrier(registry);\n }\n}\n\n/**\n * This will tell whether a carrier has a hub on it or not\n * @param carrier object\n */\nfunction hasHubOnCarrier(carrier: Carrier): boolean {\n return !!(carrier && carrier.__SENTRY__ && carrier.__SENTRY__.hub);\n}\n\n/**\n * This will create a new {@link Hub} and add to the passed object on\n * __SENTRY__.hub.\n * @param carrier object\n * @hidden\n */\nexport function getHubFromCarrier(carrier: Carrier): Hub {\n if (carrier && carrier.__SENTRY__ && carrier.__SENTRY__.hub) return carrier.__SENTRY__.hub;\n carrier.__SENTRY__ = carrier.__SENTRY__ || {};\n carrier.__SENTRY__.hub = new Hub();\n return carrier.__SENTRY__.hub;\n}\n\n/**\n * This will set passed {@link Hub} on the passed object's __SENTRY__.hub attribute\n * @param carrier object\n * @param hub Hub\n */\nexport function setHubOnCarrier(carrier: Carrier, hub: Hub): boolean {\n if (!carrier) return false;\n carrier.__SENTRY__ = carrier.__SENTRY__ || {};\n carrier.__SENTRY__.hub = hub;\n return true;\n}\n","/* eslint-disable max-lines */\nimport {\n Breadcrumb,\n CaptureContext,\n Context,\n Contexts,\n Event,\n EventHint,\n EventProcessor,\n Extra,\n Extras,\n Primitive,\n Scope as ScopeInterface,\n ScopeContext,\n Severity,\n Span,\n Transaction,\n User,\n} from '@sentry/types';\nimport { dateTimestampInSeconds, getGlobalObject, isPlainObject, isThenable, SyncPromise } from '@sentry/utils';\n\nimport { Session } from './session';\n\n/**\n * Holds additional event information. {@link Scope.applyToEvent} will be\n * called by the client before an event will be sent.\n */\nexport class Scope implements ScopeInterface {\n /** Flag if notifiying is happening. */\n protected _notifyingListeners: boolean = false;\n\n /** Callback for client to receive scope changes. */\n protected _scopeListeners: Array<(scope: Scope) => void> = [];\n\n /** Callback list that will be called after {@link applyToEvent}. */\n protected _eventProcessors: EventProcessor[] = [];\n\n /** Array of breadcrumbs. */\n protected _breadcrumbs: Breadcrumb[] = [];\n\n /** User */\n protected _user: User = {};\n\n /** Tags */\n protected _tags: { [key: string]: Primitive } = {};\n\n /** Extra */\n protected _extra: Extras = {};\n\n /** Contexts */\n protected _contexts: Contexts = {};\n\n /** Fingerprint */\n protected _fingerprint?: string[];\n\n /** Severity */\n protected _level?: Severity;\n\n /** Transaction Name */\n protected _transactionName?: string;\n\n /** Span */\n protected _span?: Span;\n\n /** Session */\n protected _session?: Session;\n\n /**\n * Inherit values from the parent scope.\n * @param scope to clone.\n */\n public static clone(scope?: Scope): Scope {\n const newScope = new Scope();\n if (scope) {\n newScope._breadcrumbs = [...scope._breadcrumbs];\n newScope._tags = { ...scope._tags };\n newScope._extra = { ...scope._extra };\n newScope._contexts = { ...scope._contexts };\n newScope._user = scope._user;\n newScope._level = scope._level;\n newScope._span = scope._span;\n newScope._session = scope._session;\n newScope._transactionName = scope._transactionName;\n newScope._fingerprint = scope._fingerprint;\n newScope._eventProcessors = [...scope._eventProcessors];\n }\n return newScope;\n }\n\n /**\n * Add internal on change listener. Used for sub SDKs that need to store the scope.\n * @hidden\n */\n public addScopeListener(callback: (scope: Scope) => void): void {\n this._scopeListeners.push(callback);\n }\n\n /**\n * @inheritDoc\n */\n public addEventProcessor(callback: EventProcessor): this {\n this._eventProcessors.push(callback);\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setUser(user: User | null): this {\n this._user = user || {};\n if (this._session) {\n this._session.update({ user });\n }\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public getUser(): User | undefined {\n return this._user;\n }\n\n /**\n * @inheritDoc\n */\n public setTags(tags: { [key: string]: Primitive }): this {\n this._tags = {\n ...this._tags,\n ...tags,\n };\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setTag(key: string, value: Primitive): this {\n this._tags = { ...this._tags, [key]: value };\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setExtras(extras: Extras): this {\n this._extra = {\n ...this._extra,\n ...extras,\n };\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setExtra(key: string, extra: Extra): this {\n this._extra = { ...this._extra, [key]: extra };\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setFingerprint(fingerprint: string[]): this {\n this._fingerprint = fingerprint;\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setLevel(level: Severity): this {\n this._level = level;\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setTransactionName(name?: string): this {\n this._transactionName = name;\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * Can be removed in major version.\n * @deprecated in favor of {@link this.setTransactionName}\n */\n public setTransaction(name?: string): this {\n return this.setTransactionName(name);\n }\n\n /**\n * @inheritDoc\n */\n public setContext(key: string, context: Context | null): this {\n if (context === null) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete this._contexts[key];\n } else {\n this._contexts = { ...this._contexts, [key]: context };\n }\n\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setSpan(span?: Span): this {\n this._span = span;\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public getSpan(): Span | undefined {\n return this._span;\n }\n\n /**\n * @inheritDoc\n */\n public getTransaction(): Transaction | undefined {\n // often, this span will be a transaction, but it's not guaranteed to be\n const span = this.getSpan() as undefined | (Span & { spanRecorder: { spans: Span[] } });\n\n // try it the new way first\n if (span?.transaction) {\n return span?.transaction;\n }\n\n // fallback to the old way (known bug: this only finds transactions with sampled = true)\n if (span?.spanRecorder?.spans[0]) {\n return span.spanRecorder.spans[0] as Transaction;\n }\n\n // neither way found a transaction\n return undefined;\n }\n\n /**\n * @inheritDoc\n */\n public setSession(session?: Session): this {\n if (!session) {\n delete this._session;\n } else {\n this._session = session;\n }\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public getSession(): Session | undefined {\n return this._session;\n }\n\n /**\n * @inheritDoc\n */\n public update(captureContext?: CaptureContext): this {\n if (!captureContext) {\n return this;\n }\n\n if (typeof captureContext === 'function') {\n const updatedScope = (captureContext as (scope: T) => T)(this);\n return updatedScope instanceof Scope ? updatedScope : this;\n }\n\n if (captureContext instanceof Scope) {\n this._tags = { ...this._tags, ...captureContext._tags };\n this._extra = { ...this._extra, ...captureContext._extra };\n this._contexts = { ...this._contexts, ...captureContext._contexts };\n if (captureContext._user && Object.keys(captureContext._user).length) {\n this._user = captureContext._user;\n }\n if (captureContext._level) {\n this._level = captureContext._level;\n }\n if (captureContext._fingerprint) {\n this._fingerprint = captureContext._fingerprint;\n }\n } else if (isPlainObject(captureContext)) {\n // eslint-disable-next-line no-param-reassign\n captureContext = captureContext as ScopeContext;\n this._tags = { ...this._tags, ...captureContext.tags };\n this._extra = { ...this._extra, ...captureContext.extra };\n this._contexts = { ...this._contexts, ...captureContext.contexts };\n if (captureContext.user) {\n this._user = captureContext.user;\n }\n if (captureContext.level) {\n this._level = captureContext.level;\n }\n if (captureContext.fingerprint) {\n this._fingerprint = captureContext.fingerprint;\n }\n }\n\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public clear(): this {\n this._breadcrumbs = [];\n this._tags = {};\n this._extra = {};\n this._user = {};\n this._contexts = {};\n this._level = undefined;\n this._transactionName = undefined;\n this._fingerprint = undefined;\n this._span = undefined;\n this._session = undefined;\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public addBreadcrumb(breadcrumb: Breadcrumb, maxBreadcrumbs?: number): this {\n const mergedBreadcrumb = {\n timestamp: dateTimestampInSeconds(),\n ...breadcrumb,\n };\n\n this._breadcrumbs =\n maxBreadcrumbs !== undefined && maxBreadcrumbs >= 0\n ? [...this._breadcrumbs, mergedBreadcrumb].slice(-maxBreadcrumbs)\n : [...this._breadcrumbs, mergedBreadcrumb];\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public clearBreadcrumbs(): this {\n this._breadcrumbs = [];\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * Applies the current context and fingerprint to the event.\n * Note that breadcrumbs will be added by the client.\n * Also if the event has already breadcrumbs on it, we do not merge them.\n * @param event Event\n * @param hint May contain additional informartion about the original exception.\n * @hidden\n */\n public applyToEvent(event: Event, hint?: EventHint): PromiseLike {\n if (this._extra && Object.keys(this._extra).length) {\n event.extra = { ...this._extra, ...event.extra };\n }\n if (this._tags && Object.keys(this._tags).length) {\n event.tags = { ...this._tags, ...event.tags };\n }\n if (this._user && Object.keys(this._user).length) {\n event.user = { ...this._user, ...event.user };\n }\n if (this._contexts && Object.keys(this._contexts).length) {\n event.contexts = { ...this._contexts, ...event.contexts };\n }\n if (this._level) {\n event.level = this._level;\n }\n if (this._transactionName) {\n event.transaction = this._transactionName;\n }\n // We want to set the trace context for normal events only if there isn't already\n // a trace context on the event. There is a product feature in place where we link\n // errors with transaction and it relys on that.\n if (this._span) {\n event.contexts = { trace: this._span.getTraceContext(), ...event.contexts };\n const transactionName = this._span.transaction?.name;\n if (transactionName) {\n event.tags = { transaction: transactionName, ...event.tags };\n }\n }\n\n this._applyFingerprint(event);\n\n event.breadcrumbs = [...(event.breadcrumbs || []), ...this._breadcrumbs];\n event.breadcrumbs = event.breadcrumbs.length > 0 ? event.breadcrumbs : undefined;\n\n return this._notifyEventProcessors([...getGlobalEventProcessors(), ...this._eventProcessors], event, hint);\n }\n\n /**\n * This will be called after {@link applyToEvent} is finished.\n */\n protected _notifyEventProcessors(\n processors: EventProcessor[],\n event: Event | null,\n hint?: EventHint,\n index: number = 0,\n ): PromiseLike {\n return new SyncPromise((resolve, reject) => {\n const processor = processors[index];\n if (event === null || typeof processor !== 'function') {\n resolve(event);\n } else {\n const result = processor({ ...event }, hint) as Event | null;\n if (isThenable(result)) {\n (result as PromiseLike)\n .then(final => this._notifyEventProcessors(processors, final, hint, index + 1).then(resolve))\n .then(null, reject);\n } else {\n this._notifyEventProcessors(processors, result, hint, index + 1)\n .then(resolve)\n .then(null, reject);\n }\n }\n });\n }\n\n /**\n * This will be called on every set call.\n */\n protected _notifyScopeListeners(): void {\n // We need this check for this._notifyingListeners to be able to work on scope during updates\n // If this check is not here we'll produce endless recursion when something is done with the scope\n // during the callback.\n if (!this._notifyingListeners) {\n this._notifyingListeners = true;\n this._scopeListeners.forEach(callback => {\n callback(this);\n });\n this._notifyingListeners = false;\n }\n }\n\n /**\n * Applies fingerprint from the scope to the event if there's one,\n * uses message if there's one instead or get rid of empty fingerprint\n */\n private _applyFingerprint(event: Event): void {\n // Make sure it's an array first and we actually have something in place\n event.fingerprint = event.fingerprint\n ? Array.isArray(event.fingerprint)\n ? event.fingerprint\n : [event.fingerprint]\n : [];\n\n // If we have something on the scope, then merge it with event\n if (this._fingerprint) {\n event.fingerprint = event.fingerprint.concat(this._fingerprint);\n }\n\n // If we have no data at all, remove empty array default\n if (event.fingerprint && !event.fingerprint.length) {\n delete event.fingerprint;\n }\n }\n}\n\n/**\n * Retruns the global event processors.\n */\nfunction getGlobalEventProcessors(): EventProcessor[] {\n /* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access */\n const global = getGlobalObject();\n global.__SENTRY__ = global.__SENTRY__ || {};\n global.__SENTRY__.globalEventProcessors = global.__SENTRY__.globalEventProcessors || [];\n return global.__SENTRY__.globalEventProcessors;\n /* eslint-enable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access */\n}\n\n/**\n * Add a EventProcessor to be kept globally.\n * @param callback EventProcessor to add\n */\nexport function addGlobalEventProcessor(callback: EventProcessor): void {\n getGlobalEventProcessors().push(callback);\n}\n","import { ExtractedNodeRequestData, Primitive, WorkerLocation } from './misc';\nimport { Span, SpanContext } from './span';\n\n/**\n * Interface holding Transaction-specific properties\n */\nexport interface TransactionContext extends SpanContext {\n /**\n * Human-readable identifier for the transaction\n */\n name: string;\n\n /**\n * If true, sets the end timestamp of the transaction to the highest timestamp of child spans, trimming\n * the duration of the transaction. This is useful to discard extra time in the transaction that is not\n * accounted for in child spans, like what happens in the idle transaction Tracing integration, where we finish the\n * transaction after a given \"idle time\" and we don't want this \"idle time\" to be part of the transaction.\n */\n trimEnd?: boolean;\n\n /**\n * If this transaction has a parent, the parent's sampling decision\n */\n parentSampled?: boolean;\n}\n\n/**\n * Data pulled from a `sentry-trace` header\n */\nexport type TraceparentData = Pick;\n\n/**\n * Transaction \"Class\", inherits Span only has `setName`\n */\nexport interface Transaction extends TransactionContext, Span {\n /**\n * @inheritDoc\n */\n spanId: string;\n\n /**\n * @inheritDoc\n */\n traceId: string;\n\n /**\n * @inheritDoc\n */\n startTimestamp: number;\n\n /**\n * @inheritDoc\n */\n tags: { [key: string]: Primitive };\n\n /**\n * @inheritDoc\n */\n data: { [key: string]: any };\n\n /**\n * Set the name of the transaction\n */\n setName(name: string): void;\n}\n\n/**\n * Context data passed by the user when starting a transaction, to be used by the tracesSampler method.\n */\nexport interface CustomSamplingContext {\n [key: string]: any;\n}\n\n/**\n * Data passed to the `tracesSampler` function, which forms the basis for whatever decisions it might make.\n *\n * Adds default data to data provided by the user. See {@link Hub.startTransaction}\n */\nexport interface SamplingContext extends CustomSamplingContext {\n /**\n * Context data with which transaction being sampled was created\n */\n transactionContext: TransactionContext;\n\n /**\n * Sampling decision from the parent transaction, if any.\n */\n parentSampled?: boolean;\n\n /**\n * Object representing the URL of the current page or worker script. Passed by default in a browser or service worker\n * context.\n */\n location?: WorkerLocation;\n\n /**\n * Object representing the incoming request to a node server. Passed by default when using the TracingHandler.\n */\n request?: ExtractedNodeRequestData;\n}\n\nexport type Measurements = Record;\n\nexport enum TransactionSamplingMethod {\n Explicit = 'explicitly_set',\n Sampler = 'client_sampler',\n Rate = 'client_rate',\n Inheritance = 'inheritance',\n}\n","import { addInstrumentationHandler, logger } from '@sentry/utils';\n\nimport { SpanStatus } from './spanstatus';\nimport { getActiveTransaction } from './utils';\n\n/**\n * Configures global error listeners\n */\nexport function registerErrorInstrumentation(): void {\n addInstrumentationHandler({\n callback: errorCallback,\n type: 'error',\n });\n addInstrumentationHandler({\n callback: errorCallback,\n type: 'unhandledrejection',\n });\n}\n\n/**\n * If an error or unhandled promise occurs, we mark the active transaction as failed\n */\nfunction errorCallback(): void {\n const activeTransaction = getActiveTransaction();\n if (activeTransaction) {\n logger.log(`[Tracing] Transaction: ${SpanStatus.InternalError} -> Global error occured`);\n activeTransaction.setStatus(SpanStatus.InternalError);\n }\n}\n","import { getActiveDomain, getMainCarrier, Hub } from '@sentry/hub';\nimport { CustomSamplingContext, SamplingContext, TransactionContext, TransactionSamplingMethod } from '@sentry/types';\nimport {\n dynamicRequire,\n extractNodeRequestData,\n getGlobalObject,\n isInstanceOf,\n isNodeEnv,\n logger,\n} from '@sentry/utils';\n\nimport { registerErrorInstrumentation } from './errors';\nimport { IdleTransaction } from './idletransaction';\nimport { Transaction } from './transaction';\nimport { hasTracingEnabled } from './utils';\n\n/** Returns all trace headers that are currently on the top scope. */\nfunction traceHeaders(this: Hub): { [key: string]: string } {\n const scope = this.getScope();\n if (scope) {\n const span = scope.getSpan();\n if (span) {\n return {\n 'sentry-trace': span.toTraceparent(),\n };\n }\n }\n return {};\n}\n\n/**\n * Makes a sampling decision for the given transaction and stores it on the transaction.\n *\n * Called every time a transaction is created. Only transactions which emerge with a `sampled` value of `true` will be\n * sent to Sentry.\n *\n * @param hub: The hub off of which to read config options\n * @param transaction: The transaction needing a sampling decision\n * @param samplingContext: Default and user-provided data which may be used to help make the decision\n *\n * @returns The given transaction with its `sampled` value set\n */\nfunction sample(hub: Hub, transaction: T, samplingContext: SamplingContext): T {\n const client = hub.getClient();\n const options = (client && client.getOptions()) || {};\n\n // nothing to do if there's no client or if tracing is disabled\n if (!client || !hasTracingEnabled(options)) {\n transaction.sampled = false;\n return transaction;\n }\n\n // if the user has forced a sampling decision by passing a `sampled` value in their transaction context, go with that\n if (transaction.sampled !== undefined) {\n transaction.tags = { ...transaction.tags, __sentry_samplingMethod: TransactionSamplingMethod.Explicit };\n return transaction;\n }\n\n // we would have bailed already if neither `tracesSampler` nor `tracesSampleRate` were defined, so one of these should\n // work; prefer the hook if so\n let sampleRate;\n if (typeof options.tracesSampler === 'function') {\n sampleRate = options.tracesSampler(samplingContext);\n // cast the rate to a number first in case it's a boolean\n transaction.tags = {\n ...transaction.tags,\n __sentry_samplingMethod: TransactionSamplingMethod.Sampler,\n // TODO kmclb - once tag types are loosened, don't need to cast to string here\n __sentry_sampleRate: String(Number(sampleRate)),\n };\n } else if (samplingContext.parentSampled !== undefined) {\n sampleRate = samplingContext.parentSampled;\n transaction.tags = { ...transaction.tags, __sentry_samplingMethod: TransactionSamplingMethod.Inheritance };\n } else {\n sampleRate = options.tracesSampleRate;\n // cast the rate to a number first in case it's a boolean\n transaction.tags = {\n ...transaction.tags,\n __sentry_samplingMethod: TransactionSamplingMethod.Rate,\n // TODO kmclb - once tag types are loosened, don't need to cast to string here\n __sentry_sampleRate: String(Number(sampleRate)),\n };\n }\n\n // Since this is coming from the user (or from a function provided by the user), who knows what we might get. (The\n // only valid values are booleans or numbers between 0 and 1.)\n if (!isValidSampleRate(sampleRate)) {\n logger.warn(`[Tracing] Discarding transaction because of invalid sample rate.`);\n transaction.sampled = false;\n return transaction;\n }\n\n // if the function returned 0 (or false), or if `tracesSampleRate` is 0, it's a sign the transaction should be dropped\n if (!sampleRate) {\n logger.log(\n `[Tracing] Discarding transaction because ${\n typeof options.tracesSampler === 'function'\n ? 'tracesSampler returned 0 or false'\n : 'a negative sampling decision was inherited or tracesSampleRate is set to 0'\n }`,\n );\n transaction.sampled = false;\n return transaction;\n }\n\n // Now we roll the dice. Math.random is inclusive of 0, but not of 1, so strict < is safe here. In case sampleRate is\n // a boolean, the < comparison will cause it to be automatically cast to 1 if it's true and 0 if it's false.\n transaction.sampled = Math.random() < (sampleRate as number | boolean);\n\n // if we're not going to keep it, we're done\n if (!transaction.sampled) {\n logger.log(\n `[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(\n sampleRate,\n )})`,\n );\n return transaction;\n }\n\n // at this point we know we're keeping the transaction, whether because of an inherited decision or because it got\n // lucky with the dice roll\n transaction.initSpanRecorder(options._experiments?.maxSpans as number);\n\n logger.log(`[Tracing] starting ${transaction.op} transaction - ${transaction.name}`);\n return transaction;\n}\n/**\n * Gets the correct context to pass to the tracesSampler, based on the environment (i.e., which SDK is being used)\n *\n * @returns The default sample context\n */\nfunction getDefaultSamplingContext(transactionContext: TransactionContext): SamplingContext {\n // promote parent sampling decision (if any) for easy access\n const { parentSampled } = transactionContext;\n const defaultSamplingContext: SamplingContext = { transactionContext, parentSampled };\n\n if (isNodeEnv()) {\n const domain = getActiveDomain();\n\n if (domain) {\n // for all node servers that we currently support, we store the incoming request object (which is an instance of\n // http.IncomingMessage) on the domain\n\n // the domain members are stored as an array, so our only way to find the request is to iterate through the array\n // and compare types\n\n const nodeHttpModule = dynamicRequire(module, 'http');\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n const requestType = nodeHttpModule.IncomingMessage;\n\n const request = domain.members.find(member => isInstanceOf(member, requestType));\n if (request) {\n defaultSamplingContext.request = extractNodeRequestData(request);\n }\n }\n }\n\n // we must be in browser-js (or some derivative thereof)\n else {\n // we use `getGlobalObject()` rather than `window` since service workers also have a `location` property on `self`\n const globalObject = getGlobalObject();\n\n if ('location' in globalObject) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any\n defaultSamplingContext.location = { ...(globalObject as any).location };\n }\n }\n\n return defaultSamplingContext;\n}\n\n/**\n * Checks the given sample rate to make sure it is valid type and value (a boolean, or a number between 0 and 1).\n */\nfunction isValidSampleRate(rate: unknown): boolean {\n // we need to check NaN explicitly because it's of type 'number' and therefore wouldn't get caught by this typecheck\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (isNaN(rate as any) || !(typeof rate === 'number' || typeof rate === 'boolean')) {\n logger.warn(\n `[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(\n rate,\n )} of type ${JSON.stringify(typeof rate)}.`,\n );\n return false;\n }\n\n // in case sampleRate is a boolean, it will get automatically cast to 1 if it's true and 0 if it's false\n if (rate < 0 || rate > 1) {\n logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${rate}.`);\n return false;\n }\n return true;\n}\n\n/**\n * Creates a new transaction and adds a sampling decision if it doesn't yet have one.\n *\n * The Hub.startTransaction method delegates to this method to do its work, passing the Hub instance in as `this`, as if\n * it had been called on the hub directly. Exists as a separate function so that it can be injected into the class as an\n * \"extension method.\"\n *\n * @param this: The Hub starting the transaction\n * @param transactionContext: Data used to configure the transaction\n * @param CustomSamplingContext: Optional data to be provided to the `tracesSampler` function (if any)\n *\n * @returns The new transaction\n *\n * @see {@link Hub.startTransaction}\n */\nfunction _startTransaction(\n this: Hub,\n transactionContext: TransactionContext,\n customSamplingContext?: CustomSamplingContext,\n): Transaction {\n const transaction = new Transaction(transactionContext, this);\n return sample(this, transaction, {\n ...getDefaultSamplingContext(transactionContext),\n ...customSamplingContext,\n });\n}\n\n/**\n * Create new idle transaction.\n */\nexport function startIdleTransaction(\n hub: Hub,\n transactionContext: TransactionContext,\n idleTimeout?: number,\n onScope?: boolean,\n): IdleTransaction {\n const transaction = new IdleTransaction(transactionContext, hub, idleTimeout, onScope);\n return sample(hub, transaction, getDefaultSamplingContext(transactionContext));\n}\n\n/**\n * @private\n */\nexport function _addTracingExtensions(): void {\n const carrier = getMainCarrier();\n if (carrier.__SENTRY__) {\n carrier.__SENTRY__.extensions = carrier.__SENTRY__.extensions || {};\n if (!carrier.__SENTRY__.extensions.startTransaction) {\n carrier.__SENTRY__.extensions.startTransaction = _startTransaction;\n }\n if (!carrier.__SENTRY__.extensions.traceHeaders) {\n carrier.__SENTRY__.extensions.traceHeaders = traceHeaders;\n }\n }\n}\n\n/**\n * This patches the global object and injects the Tracing extensions methods\n */\nexport function addExtensionMethods(): void {\n _addTracingExtensions();\n\n // If an error happens globally, we should make sure transaction status is set to error.\n registerErrorInstrumentation();\n}\n","import { Hub } from '@sentry/hub';\nimport { TransactionContext } from '@sentry/types';\nimport { logger, timestampWithMs } from '@sentry/utils';\n\nimport { Span, SpanRecorder } from './span';\nimport { SpanStatus } from './spanstatus';\nimport { Transaction } from './transaction';\n\nexport const DEFAULT_IDLE_TIMEOUT = 1000;\n\n/**\n * @inheritDoc\n */\nexport class IdleTransactionSpanRecorder extends SpanRecorder {\n public constructor(\n private readonly _pushActivity: (id: string) => void,\n private readonly _popActivity: (id: string) => void,\n public transactionSpanId: string = '',\n maxlen?: number,\n ) {\n super(maxlen);\n }\n\n /**\n * @inheritDoc\n */\n public add(span: Span): void {\n // We should make sure we do not push and pop activities for\n // the transaction that this span recorder belongs to.\n if (span.spanId !== this.transactionSpanId) {\n // We patch span.finish() to pop an activity after setting an endTimestamp.\n span.finish = (endTimestamp?: number) => {\n span.endTimestamp = typeof endTimestamp === 'number' ? endTimestamp : timestampWithMs();\n this._popActivity(span.spanId);\n };\n\n // We should only push new activities if the span does not have an end timestamp.\n if (span.endTimestamp === undefined) {\n this._pushActivity(span.spanId);\n }\n }\n\n super.add(span);\n }\n}\n\nexport type BeforeFinishCallback = (transactionSpan: IdleTransaction, endTimestamp: number) => void;\n\n/**\n * An IdleTransaction is a transaction that automatically finishes. It does this by tracking child spans as activities.\n * You can have multiple IdleTransactions active, but if the `onScope` option is specified, the idle transaction will\n * put itself on the scope on creation.\n */\nexport class IdleTransaction extends Transaction {\n // Activities store a list of active spans\n public activities: Record = {};\n\n // Stores reference to the timeout that calls _beat().\n private _heartbeatTimer: number = 0;\n\n // Track state of activities in previous heartbeat\n private _prevHeartbeatString: string | undefined;\n\n // Amount of times heartbeat has counted. Will cause transaction to finish after 3 beats.\n private _heartbeatCounter: number = 0;\n\n // We should not use heartbeat if we finished a transaction\n private _finished: boolean = false;\n\n private readonly _beforeFinishCallbacks: BeforeFinishCallback[] = [];\n\n // If a transaction is created and no activities are added, we want to make sure that\n // it times out properly. This is cleared and not used when activities are added.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private _initTimeout: any;\n\n public constructor(\n transactionContext: TransactionContext,\n private readonly _idleHub?: Hub,\n // The time to wait in ms until the idle transaction will be finished. Default: 1000\n private readonly _idleTimeout: number = DEFAULT_IDLE_TIMEOUT,\n // If an idle transaction should be put itself on and off the scope automatically.\n private readonly _onScope: boolean = false,\n ) {\n super(transactionContext, _idleHub);\n\n if (_idleHub && _onScope) {\n // There should only be one active transaction on the scope\n clearActiveTransaction(_idleHub);\n\n // We set the transaction here on the scope so error events pick up the trace\n // context and attach it to the error.\n logger.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`);\n _idleHub.configureScope(scope => scope.setSpan(this));\n }\n }\n\n /** {@inheritDoc} */\n public finish(endTimestamp: number = timestampWithMs()): string | undefined {\n this._finished = true;\n this.activities = {};\n\n if (this.spanRecorder) {\n logger.log('[Tracing] finishing IdleTransaction', new Date(endTimestamp * 1000).toISOString(), this.op);\n\n for (const callback of this._beforeFinishCallbacks) {\n callback(this, endTimestamp);\n }\n\n this.spanRecorder.spans = this.spanRecorder.spans.filter((span: Span) => {\n // If we are dealing with the transaction itself, we just return it\n if (span.spanId === this.spanId) {\n return true;\n }\n\n // We cancel all pending spans with status \"cancelled\" to indicate the idle transaction was finished early\n if (!span.endTimestamp) {\n span.endTimestamp = endTimestamp;\n span.setStatus(SpanStatus.Cancelled);\n logger.log('[Tracing] cancelling span since transaction ended early', JSON.stringify(span, undefined, 2));\n }\n\n const keepSpan = span.startTimestamp < endTimestamp;\n if (!keepSpan) {\n logger.log(\n '[Tracing] discarding Span since it happened after Transaction was finished',\n JSON.stringify(span, undefined, 2),\n );\n }\n return keepSpan;\n });\n\n // this._onScope is true if the transaction was previously on the scope.\n if (this._onScope) {\n clearActiveTransaction(this._idleHub);\n }\n\n logger.log('[Tracing] flushing IdleTransaction');\n } else {\n logger.log('[Tracing] No active IdleTransaction');\n }\n\n return super.finish(endTimestamp);\n }\n\n /**\n * Register a callback function that gets excecuted before the transaction finishes.\n * Useful for cleanup or if you want to add any additional spans based on current context.\n *\n * This is exposed because users have no other way of running something before an idle transaction\n * finishes.\n */\n public registerBeforeFinishCallback(callback: BeforeFinishCallback): void {\n this._beforeFinishCallbacks.push(callback);\n }\n\n /**\n * @inheritDoc\n */\n public initSpanRecorder(maxlen?: number): void {\n if (!this.spanRecorder) {\n this._initTimeout = setTimeout(() => {\n if (!this._finished) {\n this.finish();\n }\n }, this._idleTimeout);\n\n const pushActivity = (id: string): void => {\n if (this._finished) {\n return;\n }\n this._pushActivity(id);\n };\n const popActivity = (id: string): void => {\n if (this._finished) {\n return;\n }\n this._popActivity(id);\n };\n\n this.spanRecorder = new IdleTransactionSpanRecorder(pushActivity, popActivity, this.spanId, maxlen);\n\n // Start heartbeat so that transactions do not run forever.\n logger.log('Starting heartbeat');\n this._pingHeartbeat();\n }\n this.spanRecorder.add(this);\n }\n\n /**\n * Start tracking a specific activity.\n * @param spanId The span id that represents the activity\n */\n private _pushActivity(spanId: string): void {\n if (this._initTimeout) {\n clearTimeout(this._initTimeout);\n this._initTimeout = undefined;\n }\n logger.log(`[Tracing] pushActivity: ${spanId}`);\n this.activities[spanId] = true;\n logger.log('[Tracing] new activities count', Object.keys(this.activities).length);\n }\n\n /**\n * Remove an activity from usage\n * @param spanId The span id that represents the activity\n */\n private _popActivity(spanId: string): void {\n if (this.activities[spanId]) {\n logger.log(`[Tracing] popActivity ${spanId}`);\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete this.activities[spanId];\n logger.log('[Tracing] new activities count', Object.keys(this.activities).length);\n }\n\n if (Object.keys(this.activities).length === 0) {\n const timeout = this._idleTimeout;\n // We need to add the timeout here to have the real endtimestamp of the transaction\n // Remember timestampWithMs is in seconds, timeout is in ms\n const end = timestampWithMs() + timeout / 1000;\n\n setTimeout(() => {\n if (!this._finished) {\n this.finish(end);\n }\n }, timeout);\n }\n }\n\n /**\n * Checks when entries of this.activities are not changing for 3 beats.\n * If this occurs we finish the transaction.\n */\n private _beat(): void {\n clearTimeout(this._heartbeatTimer);\n // We should not be running heartbeat if the idle transaction is finished.\n if (this._finished) {\n return;\n }\n\n const keys = Object.keys(this.activities);\n const heartbeatString = keys.length ? keys.reduce((prev: string, current: string) => prev + current) : '';\n\n if (heartbeatString === this._prevHeartbeatString) {\n this._heartbeatCounter += 1;\n } else {\n this._heartbeatCounter = 1;\n }\n\n this._prevHeartbeatString = heartbeatString;\n\n if (this._heartbeatCounter >= 3) {\n logger.log(`[Tracing] Transaction finished because of no change for 3 heart beats`);\n this.setStatus(SpanStatus.DeadlineExceeded);\n this.setTag('heartbeat', 'failed');\n this.finish();\n } else {\n this._pingHeartbeat();\n }\n }\n\n /**\n * Pings the heartbeat\n */\n private _pingHeartbeat(): void {\n logger.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`);\n this._heartbeatTimer = (setTimeout(() => {\n this._beat();\n }, 5000) as unknown) as number;\n }\n}\n\n/**\n * Reset active transaction on scope\n */\nfunction clearActiveTransaction(hub?: Hub): void {\n if (hub) {\n const scope = hub.getScope();\n if (scope) {\n const transaction = scope.getTransaction();\n if (transaction) {\n scope.setSpan(undefined);\n }\n }\n }\n}\n","import { Hub } from '@sentry/hub';\nimport { EventProcessor, Integration, SpanContext } from '@sentry/types';\nimport { dynamicRequire, fill, logger } from '@sentry/utils';\n\n// This allows us to use the same array for both defaults options and the type itself.\n// (note `as const` at the end to make it a union of string literal types (i.e. \"a\" | \"b\" | ... )\n// and not just a string[])\ntype Operation = typeof OPERATIONS[number];\nconst OPERATIONS = [\n 'aggregate', // aggregate(pipeline, options, callback)\n 'bulkWrite', // bulkWrite(operations, options, callback)\n 'countDocuments', // countDocuments(query, options, callback)\n 'createIndex', // createIndex(fieldOrSpec, options, callback)\n 'createIndexes', // createIndexes(indexSpecs, options, callback)\n 'deleteMany', // deleteMany(filter, options, callback)\n 'deleteOne', // deleteOne(filter, options, callback)\n 'distinct', // distinct(key, query, options, callback)\n 'drop', // drop(options, callback)\n 'dropIndex', // dropIndex(indexName, options, callback)\n 'dropIndexes', // dropIndexes(options, callback)\n 'estimatedDocumentCount', // estimatedDocumentCount(options, callback)\n 'findOne', // findOne(query, options, callback)\n 'findOneAndDelete', // findOneAndDelete(filter, options, callback)\n 'findOneAndReplace', // findOneAndReplace(filter, replacement, options, callback)\n 'findOneAndUpdate', // findOneAndUpdate(filter, update, options, callback)\n 'indexes', // indexes(options, callback)\n 'indexExists', // indexExists(indexes, options, callback)\n 'indexInformation', // indexInformation(options, callback)\n 'initializeOrderedBulkOp', // initializeOrderedBulkOp(options, callback)\n 'insertMany', // insertMany(docs, options, callback)\n 'insertOne', // insertOne(doc, options, callback)\n 'isCapped', // isCapped(options, callback)\n 'mapReduce', // mapReduce(map, reduce, options, callback)\n 'options', // options(options, callback)\n 'parallelCollectionScan', // parallelCollectionScan(options, callback)\n 'rename', // rename(newName, options, callback)\n 'replaceOne', // replaceOne(filter, doc, options, callback)\n 'stats', // stats(options, callback)\n 'updateMany', // updateMany(filter, update, options, callback)\n 'updateOne', // updateOne(filter, update, options, callback)\n] as const;\n\n// All of the operations above take `options` and `callback` as their final parameters, but some of them\n// take additional parameters as well. For those operations, this is a map of\n// { : [] }, as a way to know what to call the operation's\n// positional arguments when we add them to the span's `data` object later\nconst OPERATION_SIGNATURES: {\n [op in Operation]?: string[];\n} = {\n // aggregate intentionally not included because `pipeline` arguments are too complex to serialize well\n // see https://github.com/getsentry/sentry-javascript/pull/3102\n bulkWrite: ['operations'],\n countDocuments: ['query'],\n createIndex: ['fieldOrSpec'],\n createIndexes: ['indexSpecs'],\n deleteMany: ['filter'],\n deleteOne: ['filter'],\n distinct: ['key', 'query'],\n dropIndex: ['indexName'],\n findOne: ['query'],\n findOneAndDelete: ['filter'],\n findOneAndReplace: ['filter', 'replacement'],\n findOneAndUpdate: ['filter', 'update'],\n indexExists: ['indexes'],\n insertMany: ['docs'],\n insertOne: ['doc'],\n mapReduce: ['map', 'reduce'],\n rename: ['newName'],\n replaceOne: ['filter', 'doc'],\n updateMany: ['filter', 'update'],\n updateOne: ['filter', 'update'],\n};\n\ninterface MongoCollection {\n collectionName: string;\n dbName: string;\n namespace: string;\n prototype: {\n [operation in Operation]: (...args: unknown[]) => unknown;\n };\n}\n\ninterface MongoOptions {\n operations?: Operation[];\n describeOperations?: boolean | Operation[];\n}\n\n/** Tracing integration for mongo package */\nexport class Mongo implements Integration {\n /**\n * @inheritDoc\n */\n public static id: string = 'Mongo';\n\n /**\n * @inheritDoc\n */\n public name: string = Mongo.id;\n\n private _operations: Operation[];\n private _describeOperations?: boolean | Operation[];\n\n /**\n * @inheritDoc\n */\n public constructor(options: MongoOptions = {}) {\n this._operations = Array.isArray(options.operations)\n ? options.operations\n : ((OPERATIONS as unknown) as Operation[]);\n this._describeOperations = 'describeOperations' in options ? options.describeOperations : true;\n }\n\n /**\n * @inheritDoc\n */\n public setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void {\n let collection: MongoCollection;\n\n try {\n const mongodbModule = dynamicRequire(module, 'mongodb') as { Collection: MongoCollection };\n collection = mongodbModule.Collection;\n } catch (e) {\n logger.error('Mongo Integration was unable to require `mongodb` package.');\n return;\n }\n\n this._instrumentOperations(collection, this._operations, getCurrentHub);\n }\n\n /**\n * Patches original collection methods\n */\n private _instrumentOperations(collection: MongoCollection, operations: Operation[], getCurrentHub: () => Hub): void {\n operations.forEach((operation: Operation) => this._patchOperation(collection, operation, getCurrentHub));\n }\n\n /**\n * Patches original collection to utilize our tracing functionality\n */\n private _patchOperation(collection: MongoCollection, operation: Operation, getCurrentHub: () => Hub): void {\n if (!(operation in collection.prototype)) return;\n\n const getSpanContext = this._getSpanContextFromOperationArguments.bind(this);\n\n fill(collection.prototype, operation, function(orig: () => void | Promise) {\n return function(this: unknown, ...args: unknown[]) {\n const lastArg = args[args.length - 1];\n const scope = getCurrentHub().getScope();\n const parentSpan = scope?.getSpan();\n\n // Check if the operation was passed a callback. (mapReduce requires a different check, as\n // its (non-callback) arguments can also be functions.)\n if (typeof lastArg !== 'function' || (operation === 'mapReduce' && args.length === 2)) {\n const span = parentSpan?.startChild(getSpanContext(this, operation, args));\n return (orig.call(this, ...args) as Promise).then((res: unknown) => {\n span?.finish();\n return res;\n });\n }\n\n const span = parentSpan?.startChild(getSpanContext(this, operation, args.slice(0, -1)));\n return orig.call(this, ...args.slice(0, -1), function(err: Error, result: unknown) {\n span?.finish();\n lastArg(err, result);\n });\n };\n });\n }\n\n /**\n * Form a SpanContext based on the user input to a given operation.\n */\n private _getSpanContextFromOperationArguments(\n collection: MongoCollection,\n operation: Operation,\n args: unknown[],\n ): SpanContext {\n const data: { [key: string]: string } = {\n collectionName: collection.collectionName,\n dbName: collection.dbName,\n namespace: collection.namespace,\n };\n const spanContext: SpanContext = {\n op: `db`,\n description: operation,\n data,\n };\n\n // If the operation takes no arguments besides `options` and `callback`, or if argument\n // collection is disabled for this operation, just return early.\n const signature = OPERATION_SIGNATURES[operation];\n const shouldDescribe = Array.isArray(this._describeOperations)\n ? this._describeOperations.includes(operation)\n : this._describeOperations;\n\n if (!signature || !shouldDescribe) {\n return spanContext;\n }\n\n try {\n // Special case for `mapReduce`, as the only one accepting functions as arguments.\n if (operation === 'mapReduce') {\n const [map, reduce] = args as { name?: string }[];\n data[signature[0]] = typeof map === 'string' ? map : map.name || '';\n data[signature[1]] = typeof reduce === 'string' ? reduce : reduce.name || '';\n } else {\n for (let i = 0; i < signature.length; i++) {\n data[signature[i]] = JSON.stringify(args[i]);\n }\n }\n } catch (_oO) {\n // no-empty\n }\n\n return spanContext;\n }\n}\n","import { Hub } from '@sentry/hub';\nimport { EventProcessor, Integration } from '@sentry/types';\nimport { dynamicRequire, fill, logger } from '@sentry/utils';\n\ninterface MysqlConnection {\n prototype: {\n query: () => void;\n };\n}\n\n/** Tracing integration for node-mysql package */\nexport class Mysql implements Integration {\n /**\n * @inheritDoc\n */\n public static id: string = 'Mysql';\n\n /**\n * @inheritDoc\n */\n public name: string = Mysql.id;\n\n /**\n * @inheritDoc\n */\n public setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void {\n let connection: MysqlConnection;\n\n try {\n // Unfortunatelly mysql is using some custom loading system and `Connection` is not exported directly.\n connection = dynamicRequire(module, 'mysql/lib/Connection.js');\n } catch (e) {\n logger.error('Mysql Integration was unable to require `mysql` package.');\n return;\n }\n\n // The original function will have one of these signatures:\n // function (callback) => void\n // function (options, callback) => void\n // function (options, values, callback) => void\n fill(connection.prototype, 'query', function(orig: () => void) {\n return function(this: unknown, options: unknown, values: unknown, callback: unknown) {\n const scope = getCurrentHub().getScope();\n const parentSpan = scope?.getSpan();\n const span = parentSpan?.startChild({\n description: typeof options === 'string' ? options : (options as { sql: string }).sql,\n op: `db`,\n });\n\n if (typeof callback === 'function') {\n return orig.call(this, options, values, function(err: Error, result: unknown, fields: unknown) {\n span?.finish();\n callback(err, result, fields);\n });\n }\n\n if (typeof values === 'function') {\n return orig.call(this, options, function(err: Error, result: unknown, fields: unknown) {\n span?.finish();\n values(err, result, fields);\n });\n }\n\n return orig.call(this, options, values, callback);\n };\n });\n }\n}\n","import { Hub } from '@sentry/hub';\nimport { EventProcessor, Integration } from '@sentry/types';\nimport { dynamicRequire, fill, logger } from '@sentry/utils';\n\ninterface PgClient {\n prototype: {\n query: () => void | Promise;\n };\n}\n\n/** Tracing integration for node-postgres package */\nexport class Postgres implements Integration {\n /**\n * @inheritDoc\n */\n public static id: string = 'Postgres';\n\n /**\n * @inheritDoc\n */\n public name: string = Postgres.id;\n\n /**\n * @inheritDoc\n */\n public setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void {\n let client: PgClient;\n\n try {\n const pgModule = dynamicRequire(module, 'pg') as { Client: PgClient };\n client = pgModule.Client;\n } catch (e) {\n logger.error('Postgres Integration was unable to require `pg` package.');\n return;\n }\n\n /**\n * function (query, callback) => void\n * function (query, params, callback) => void\n * function (query) => Promise\n * function (query, params) => Promise\n */\n fill(client.prototype, 'query', function(orig: () => void | Promise) {\n return function(this: unknown, config: unknown, values: unknown, callback: unknown) {\n const scope = getCurrentHub().getScope();\n const parentSpan = scope?.getSpan();\n const span = parentSpan?.startChild({\n description: typeof config === 'string' ? config : (config as { text: string }).text,\n op: `db`,\n });\n\n if (typeof callback === 'function') {\n return orig.call(this, config, values, function(err: Error, result: unknown) {\n span?.finish();\n callback(err, result);\n });\n }\n\n if (typeof values === 'function') {\n return orig.call(this, config, function(err: Error, result: unknown) {\n span?.finish();\n values(err, result);\n });\n }\n\n return (orig.call(this, config, values) as Promise).then((res: unknown) => {\n span?.finish();\n return res;\n });\n };\n });\n }\n}\n","/* eslint-disable max-lines */\nimport { Primitive, Span as SpanInterface, SpanContext, Transaction } from '@sentry/types';\nimport { dropUndefinedKeys, timestampWithMs, uuid4 } from '@sentry/utils';\n\nimport { SpanStatus } from './spanstatus';\n\n/**\n * Keeps track of finished spans for a given transaction\n * @internal\n * @hideconstructor\n * @hidden\n */\nexport class SpanRecorder {\n public spans: Span[] = [];\n\n private readonly _maxlen: number;\n\n public constructor(maxlen: number = 1000) {\n this._maxlen = maxlen;\n }\n\n /**\n * This is just so that we don't run out of memory while recording a lot\n * of spans. At some point we just stop and flush out the start of the\n * trace tree (i.e.the first n spans with the smallest\n * start_timestamp).\n */\n public add(span: Span): void {\n if (this.spans.length > this._maxlen) {\n span.spanRecorder = undefined;\n } else {\n this.spans.push(span);\n }\n }\n}\n\n/**\n * Span contains all data about a span\n */\nexport class Span implements SpanInterface {\n /**\n * @inheritDoc\n */\n public traceId: string = uuid4();\n\n /**\n * @inheritDoc\n */\n public spanId: string = uuid4().substring(16);\n\n /**\n * @inheritDoc\n */\n public parentSpanId?: string;\n\n /**\n * Internal keeper of the status\n */\n public status?: SpanStatus | string;\n\n /**\n * @inheritDoc\n */\n public sampled?: boolean;\n\n /**\n * Timestamp in seconds when the span was created.\n */\n public startTimestamp: number = timestampWithMs();\n\n /**\n * Timestamp in seconds when the span ended.\n */\n public endTimestamp?: number;\n\n /**\n * @inheritDoc\n */\n public op?: string;\n\n /**\n * @inheritDoc\n */\n public description?: string;\n\n /**\n * @inheritDoc\n */\n public tags: { [key: string]: Primitive } = {};\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n public data: { [key: string]: any } = {};\n\n /**\n * List of spans that were finalized\n */\n public spanRecorder?: SpanRecorder;\n\n /**\n * @inheritDoc\n */\n public transaction?: Transaction;\n\n /**\n * You should never call the constructor manually, always use `Sentry.startTransaction()`\n * or call `startChild()` on an existing span.\n * @internal\n * @hideconstructor\n * @hidden\n */\n public constructor(spanContext?: SpanContext) {\n if (!spanContext) {\n return this;\n }\n if (spanContext.traceId) {\n this.traceId = spanContext.traceId;\n }\n if (spanContext.spanId) {\n this.spanId = spanContext.spanId;\n }\n if (spanContext.parentSpanId) {\n this.parentSpanId = spanContext.parentSpanId;\n }\n // We want to include booleans as well here\n if ('sampled' in spanContext) {\n this.sampled = spanContext.sampled;\n }\n if (spanContext.op) {\n this.op = spanContext.op;\n }\n if (spanContext.description) {\n this.description = spanContext.description;\n }\n if (spanContext.data) {\n this.data = spanContext.data;\n }\n if (spanContext.tags) {\n this.tags = spanContext.tags;\n }\n if (spanContext.status) {\n this.status = spanContext.status;\n }\n if (spanContext.startTimestamp) {\n this.startTimestamp = spanContext.startTimestamp;\n }\n if (spanContext.endTimestamp) {\n this.endTimestamp = spanContext.endTimestamp;\n }\n }\n\n /**\n * @inheritDoc\n * @deprecated\n */\n public child(\n spanContext?: Pick>,\n ): Span {\n return this.startChild(spanContext);\n }\n\n /**\n * @inheritDoc\n */\n public startChild(\n spanContext?: Pick>,\n ): Span {\n const childSpan = new Span({\n ...spanContext,\n parentSpanId: this.spanId,\n sampled: this.sampled,\n traceId: this.traceId,\n });\n\n childSpan.spanRecorder = this.spanRecorder;\n if (childSpan.spanRecorder) {\n childSpan.spanRecorder.add(childSpan);\n }\n\n childSpan.transaction = this.transaction;\n\n return childSpan;\n }\n\n /**\n * @inheritDoc\n */\n public setTag(key: string, value: Primitive): this {\n this.tags = { ...this.tags, [key]: value };\n return this;\n }\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n public setData(key: string, value: any): this {\n this.data = { ...this.data, [key]: value };\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setStatus(value: SpanStatus): this {\n this.status = value;\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setHttpStatus(httpStatus: number): this {\n this.setTag('http.status_code', String(httpStatus));\n const spanStatus = SpanStatus.fromHttpCode(httpStatus);\n if (spanStatus !== SpanStatus.UnknownError) {\n this.setStatus(spanStatus);\n }\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public isSuccess(): boolean {\n return this.status === SpanStatus.Ok;\n }\n\n /**\n * @inheritDoc\n */\n public finish(endTimestamp?: number): void {\n this.endTimestamp = typeof endTimestamp === 'number' ? endTimestamp : timestampWithMs();\n }\n\n /**\n * @inheritDoc\n */\n public toTraceparent(): string {\n let sampledString = '';\n if (this.sampled !== undefined) {\n sampledString = this.sampled ? '-1' : '-0';\n }\n return `${this.traceId}-${this.spanId}${sampledString}`;\n }\n\n /**\n * @inheritDoc\n */\n public getTraceContext(): {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data?: { [key: string]: any };\n description?: string;\n op?: string;\n parent_span_id?: string;\n span_id: string;\n status?: string;\n tags?: { [key: string]: Primitive };\n trace_id: string;\n } {\n return dropUndefinedKeys({\n data: Object.keys(this.data).length > 0 ? this.data : undefined,\n description: this.description,\n op: this.op,\n parent_span_id: this.parentSpanId,\n span_id: this.spanId,\n status: this.status,\n tags: Object.keys(this.tags).length > 0 ? this.tags : undefined,\n trace_id: this.traceId,\n });\n }\n\n /**\n * @inheritDoc\n */\n public toJSON(): {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data?: { [key: string]: any };\n description?: string;\n op?: string;\n parent_span_id?: string;\n span_id: string;\n start_timestamp: number;\n status?: string;\n tags?: { [key: string]: Primitive };\n timestamp?: number;\n trace_id: string;\n } {\n return dropUndefinedKeys({\n data: Object.keys(this.data).length > 0 ? this.data : undefined,\n description: this.description,\n op: this.op,\n parent_span_id: this.parentSpanId,\n span_id: this.spanId,\n start_timestamp: this.startTimestamp,\n status: this.status,\n tags: Object.keys(this.tags).length > 0 ? this.tags : undefined,\n timestamp: this.endTimestamp,\n trace_id: this.traceId,\n });\n }\n}\n","/** The status of an Span. */\n// eslint-disable-next-line import/export\nexport enum SpanStatus {\n /** The operation completed successfully. */\n Ok = 'ok',\n /** Deadline expired before operation could complete. */\n DeadlineExceeded = 'deadline_exceeded',\n /** 401 Unauthorized (actually does mean unauthenticated according to RFC 7235) */\n Unauthenticated = 'unauthenticated',\n /** 403 Forbidden */\n PermissionDenied = 'permission_denied',\n /** 404 Not Found. Some requested entity (file or directory) was not found. */\n NotFound = 'not_found',\n /** 429 Too Many Requests */\n ResourceExhausted = 'resource_exhausted',\n /** Client specified an invalid argument. 4xx. */\n InvalidArgument = 'invalid_argument',\n /** 501 Not Implemented */\n Unimplemented = 'unimplemented',\n /** 503 Service Unavailable */\n Unavailable = 'unavailable',\n /** Other/generic 5xx. */\n InternalError = 'internal_error',\n /** Unknown. Any non-standard HTTP status code. */\n UnknownError = 'unknown_error',\n /** The operation was cancelled (typically by the user). */\n Cancelled = 'cancelled',\n /** Already exists (409) */\n AlreadyExists = 'already_exists',\n /** Operation was rejected because the system is not in a state required for the operation's */\n FailedPrecondition = 'failed_precondition',\n /** The operation was aborted, typically due to a concurrency issue. */\n Aborted = 'aborted',\n /** Operation was attempted past the valid range. */\n OutOfRange = 'out_of_range',\n /** Unrecoverable data loss or corruption */\n DataLoss = 'data_loss',\n}\n\n// eslint-disable-next-line @typescript-eslint/no-namespace, import/export\nexport namespace SpanStatus {\n /**\n * Converts a HTTP status code into a {@link SpanStatus}.\n *\n * @param httpStatus The HTTP response status code.\n * @returns The span status or {@link SpanStatus.UnknownError}.\n */\n export function fromHttpCode(httpStatus: number): SpanStatus {\n if (httpStatus < 400) {\n return SpanStatus.Ok;\n }\n\n if (httpStatus >= 400 && httpStatus < 500) {\n switch (httpStatus) {\n case 401:\n return SpanStatus.Unauthenticated;\n case 403:\n return SpanStatus.PermissionDenied;\n case 404:\n return SpanStatus.NotFound;\n case 409:\n return SpanStatus.AlreadyExists;\n case 413:\n return SpanStatus.FailedPrecondition;\n case 429:\n return SpanStatus.ResourceExhausted;\n default:\n return SpanStatus.InvalidArgument;\n }\n }\n\n if (httpStatus >= 500 && httpStatus < 600) {\n switch (httpStatus) {\n case 501:\n return SpanStatus.Unimplemented;\n case 503:\n return SpanStatus.Unavailable;\n case 504:\n return SpanStatus.DeadlineExceeded;\n default:\n return SpanStatus.InternalError;\n }\n }\n\n return SpanStatus.UnknownError;\n }\n}\n","import { getCurrentHub, Hub } from '@sentry/hub';\nimport { Event, Measurements, Transaction as TransactionInterface, TransactionContext } from '@sentry/types';\nimport { isInstanceOf, logger } from '@sentry/utils';\n\nimport { Span as SpanClass, SpanRecorder } from './span';\n\n/** JSDoc */\nexport class Transaction extends SpanClass implements TransactionInterface {\n public name: string;\n private _measurements: Measurements = {};\n\n /**\n * The reference to the current hub.\n */\n private readonly _hub: Hub = (getCurrentHub() as unknown) as Hub;\n\n private readonly _trimEnd?: boolean;\n\n /**\n * This constructor should never be called manually. Those instrumenting tracing should use\n * `Sentry.startTransaction()`, and internal methods should use `hub.startTransaction()`.\n * @internal\n * @hideconstructor\n * @hidden\n */\n public constructor(transactionContext: TransactionContext, hub?: Hub) {\n super(transactionContext);\n\n if (isInstanceOf(hub, Hub)) {\n this._hub = hub as Hub;\n }\n\n this.name = transactionContext.name ? transactionContext.name : '';\n\n this._trimEnd = transactionContext.trimEnd;\n\n // this is because transactions are also spans, and spans have a transaction pointer\n this.transaction = this;\n }\n\n /**\n * JSDoc\n */\n public setName(name: string): void {\n this.name = name;\n }\n\n /**\n * Attaches SpanRecorder to the span itself\n * @param maxlen maximum number of spans that can be recorded\n */\n public initSpanRecorder(maxlen: number = 1000): void {\n if (!this.spanRecorder) {\n this.spanRecorder = new SpanRecorder(maxlen);\n }\n this.spanRecorder.add(this);\n }\n\n /**\n * Set observed measurements for this transaction.\n * @hidden\n */\n public setMeasurements(measurements: Measurements): void {\n this._measurements = { ...measurements };\n }\n\n /**\n * @inheritDoc\n */\n public finish(endTimestamp?: number): string | undefined {\n // This transaction is already finished, so we should not flush it again.\n if (this.endTimestamp !== undefined) {\n return undefined;\n }\n\n if (!this.name) {\n logger.warn('Transaction has no name, falling back to ``.');\n this.name = '';\n }\n\n // just sets the end timestamp\n super.finish(endTimestamp);\n\n if (this.sampled !== true) {\n // At this point if `sampled !== true` we want to discard the transaction.\n logger.log('[Tracing] Discarding transaction because its trace was not chosen to be sampled.');\n return undefined;\n }\n\n const finishedSpans = this.spanRecorder ? this.spanRecorder.spans.filter(s => s !== this && s.endTimestamp) : [];\n\n if (this._trimEnd && finishedSpans.length > 0) {\n this.endTimestamp = finishedSpans.reduce((prev: SpanClass, current: SpanClass) => {\n if (prev.endTimestamp && current.endTimestamp) {\n return prev.endTimestamp > current.endTimestamp ? prev : current;\n }\n return prev;\n }).endTimestamp;\n }\n\n const transaction: Event = {\n contexts: {\n trace: this.getTraceContext(),\n },\n spans: finishedSpans,\n start_timestamp: this.startTimestamp,\n tags: this.tags,\n timestamp: this.endTimestamp,\n transaction: this.name,\n type: 'transaction',\n };\n\n const hasMeasurements = Object.keys(this._measurements).length > 0;\n\n if (hasMeasurements) {\n logger.log('[Measurements] Adding measurements to transaction', JSON.stringify(this._measurements, undefined, 2));\n transaction.measurements = this._measurements;\n }\n\n return this._hub.captureEvent(transaction);\n }\n}\n","import { getCurrentHub, Hub } from '@sentry/hub';\nimport { Options, TraceparentData, Transaction } from '@sentry/types';\n\nexport const TRACEPARENT_REGEXP = new RegExp(\n '^[ \\\\t]*' + // whitespace\n '([0-9a-f]{32})?' + // trace_id\n '-?([0-9a-f]{16})?' + // span_id\n '-?([01])?' + // sampled\n '[ \\\\t]*$', // whitespace\n);\n\n/**\n * Determines if tracing is currently enabled.\n *\n * Tracing is enabled when at least one of `tracesSampleRate` and `tracesSampler` is defined in the SDK config.\n */\nexport function hasTracingEnabled(options: Options): boolean {\n return 'tracesSampleRate' in options || 'tracesSampler' in options;\n}\n\n/**\n * Extract transaction context data from a `sentry-trace` header.\n *\n * @param traceparent Traceparent string\n *\n * @returns Object containing data from the header, or undefined if traceparent string is malformed\n */\nexport function extractTraceparentData(traceparent: string): TraceparentData | undefined {\n const matches = traceparent.match(TRACEPARENT_REGEXP);\n if (matches) {\n let parentSampled: boolean | undefined;\n if (matches[3] === '1') {\n parentSampled = true;\n } else if (matches[3] === '0') {\n parentSampled = false;\n }\n return {\n traceId: matches[1],\n parentSampled,\n parentSpanId: matches[2],\n };\n }\n return undefined;\n}\n\n/** Grabs active transaction off scope, if any */\nexport function getActiveTransaction(hub: Hub = getCurrentHub()): T | undefined {\n return hub?.getScope()?.getTransaction() as T | undefined;\n}\n\n/**\n * Converts from milliseconds to seconds\n * @param time time in ms\n */\nexport function msToSec(time: number): number {\n return time / 1000;\n}\n\n/**\n * Converts from seconds to milliseconds\n * @param time time in seconds\n */\nexport function secToMs(time: number): number {\n return time * 1000;\n}\n\n// so it can be used in manual instrumentation without necessitating a hard dependency on @sentry/utils\nexport { stripUrlQueryAndFragment } from '@sentry/utils';\n","import { User } from './user';\n\n/**\n * @inheritdoc\n */\nexport interface Session extends SessionContext {\n /** JSDoc */\n update(context?: SessionContext): void;\n\n /** JSDoc */\n close(status?: SessionStatus): void;\n\n /** JSDoc */\n toJSON(): {\n init: boolean;\n sid: string;\n did?: string;\n timestamp: string;\n started: string;\n duration: number;\n status: SessionStatus;\n errors: number;\n attrs?: {\n release?: string;\n environment?: string;\n user_agent?: string;\n ip_address?: string;\n };\n };\n}\n\n/**\n * Session Context\n */\nexport interface SessionContext {\n sid?: string;\n did?: string;\n timestamp?: number;\n started?: number;\n duration?: number;\n status?: SessionStatus;\n release?: string;\n environment?: string;\n userAgent?: string;\n ipAddress?: string;\n errors?: number;\n user?: User | null;\n}\n\n/**\n * Session Status\n */\nexport enum SessionStatus {\n /** JSDoc */\n Ok = 'ok',\n /** JSDoc */\n Exited = 'exited',\n /** JSDoc */\n Crashed = 'crashed',\n /** JSDoc */\n Abnormal = 'abnormal',\n}\n","import { isString } from './is';\n\n/**\n * Given a child DOM element, returns a query-selector statement describing that\n * and its ancestors\n * e.g. [HTMLElement] => body > div > input#foo.btn[name=baz]\n * @returns generated DOM path\n */\nexport function htmlTreeAsString(elem: unknown): string {\n type SimpleNode = {\n parentNode: SimpleNode;\n } | null;\n\n // try/catch both:\n // - accessing event.target (see getsentry/raven-js#838, #768)\n // - `htmlTreeAsString` because it's complex, and just accessing the DOM incorrectly\n // - can throw an exception in some circumstances.\n try {\n let currentElem = elem as SimpleNode;\n const MAX_TRAVERSE_HEIGHT = 5;\n const MAX_OUTPUT_LEN = 80;\n const out = [];\n let height = 0;\n let len = 0;\n const separator = ' > ';\n const sepLength = separator.length;\n let nextStr;\n\n // eslint-disable-next-line no-plusplus\n while (currentElem && height++ < MAX_TRAVERSE_HEIGHT) {\n nextStr = _htmlElementAsString(currentElem);\n // bail out if\n // - nextStr is the 'html' element\n // - the length of the string that would be created exceeds MAX_OUTPUT_LEN\n // (ignore this limit if we are on the first iteration)\n if (nextStr === 'html' || (height > 1 && len + out.length * sepLength + nextStr.length >= MAX_OUTPUT_LEN)) {\n break;\n }\n\n out.push(nextStr);\n\n len += nextStr.length;\n currentElem = currentElem.parentNode;\n }\n\n return out.reverse().join(separator);\n } catch (_oO) {\n return '';\n }\n}\n\n/**\n * Returns a simple, query-selector representation of a DOM element\n * e.g. [HTMLElement] => input#foo.btn[name=baz]\n * @returns generated DOM path\n */\nfunction _htmlElementAsString(el: unknown): string {\n const elem = el as {\n tagName?: string;\n id?: string;\n className?: string;\n getAttribute(key: string): string;\n };\n\n const out = [];\n let className;\n let classes;\n let key;\n let attr;\n let i;\n\n if (!elem || !elem.tagName) {\n return '';\n }\n\n out.push(elem.tagName.toLowerCase());\n if (elem.id) {\n out.push(`#${elem.id}`);\n }\n\n // eslint-disable-next-line prefer-const\n className = elem.className;\n if (className && isString(className)) {\n classes = className.split(/\\s+/);\n for (i = 0; i < classes.length; i++) {\n out.push(`.${classes[i]}`);\n }\n }\n const allowedAttrs = ['type', 'name', 'title', 'alt'];\n for (i = 0; i < allowedAttrs.length; i++) {\n key = allowedAttrs[i];\n attr = elem.getAttribute(key);\n if (attr) {\n out.push(`[${key}=\"${attr}\"]`);\n }\n }\n return out.join('');\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/ban-types */\nimport { WrappedFunction } from '@sentry/types';\n\nimport { isInstanceOf, isString } from './is';\nimport { logger } from './logger';\nimport { getGlobalObject } from './misc';\nimport { fill } from './object';\nimport { getFunctionName } from './stacktrace';\nimport { supportsHistory, supportsNativeFetch } from './supports';\n\nconst global = getGlobalObject();\n\n/** Object describing handler that will be triggered for a given `type` of instrumentation */\ninterface InstrumentHandler {\n type: InstrumentHandlerType;\n callback: InstrumentHandlerCallback;\n}\ntype InstrumentHandlerType =\n | 'console'\n | 'dom'\n | 'fetch'\n | 'history'\n | 'sentry'\n | 'xhr'\n | 'error'\n | 'unhandledrejection';\ntype InstrumentHandlerCallback = (data: any) => void;\n\n/**\n * Instrument native APIs to call handlers that can be used to create breadcrumbs, APM spans etc.\n * - Console API\n * - Fetch API\n * - XHR API\n * - History API\n * - DOM API (click/typing)\n * - Error API\n * - UnhandledRejection API\n */\n\nconst handlers: { [key in InstrumentHandlerType]?: InstrumentHandlerCallback[] } = {};\nconst instrumented: { [key in InstrumentHandlerType]?: boolean } = {};\n\n/** Instruments given API */\nfunction instrument(type: InstrumentHandlerType): void {\n if (instrumented[type]) {\n return;\n }\n\n instrumented[type] = true;\n\n switch (type) {\n case 'console':\n instrumentConsole();\n break;\n case 'dom':\n instrumentDOM();\n break;\n case 'xhr':\n instrumentXHR();\n break;\n case 'fetch':\n instrumentFetch();\n break;\n case 'history':\n instrumentHistory();\n break;\n case 'error':\n instrumentError();\n break;\n case 'unhandledrejection':\n instrumentUnhandledRejection();\n break;\n default:\n logger.warn('unknown instrumentation type:', type);\n }\n}\n\n/**\n * Add handler that will be called when given type of instrumentation triggers.\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addInstrumentationHandler(handler: InstrumentHandler): void {\n if (!handler || typeof handler.type !== 'string' || typeof handler.callback !== 'function') {\n return;\n }\n handlers[handler.type] = handlers[handler.type] || [];\n (handlers[handler.type] as InstrumentHandlerCallback[]).push(handler.callback);\n instrument(handler.type);\n}\n\n/** JSDoc */\nfunction triggerHandlers(type: InstrumentHandlerType, data: any): void {\n if (!type || !handlers[type]) {\n return;\n }\n\n for (const handler of handlers[type] || []) {\n try {\n handler(data);\n } catch (e) {\n logger.error(\n `Error while triggering instrumentation handler.\\nType: ${type}\\nName: ${getFunctionName(\n handler,\n )}\\nError: ${e}`,\n );\n }\n }\n}\n\n/** JSDoc */\nfunction instrumentConsole(): void {\n if (!('console' in global)) {\n return;\n }\n\n ['debug', 'info', 'warn', 'error', 'log', 'assert'].forEach(function(level: string): void {\n if (!(level in global.console)) {\n return;\n }\n\n fill(global.console, level, function(originalConsoleLevel: () => any): Function {\n return function(...args: any[]): void {\n triggerHandlers('console', { args, level });\n\n // this fails for some browsers. :(\n if (originalConsoleLevel) {\n Function.prototype.apply.call(originalConsoleLevel, global.console, args);\n }\n };\n });\n });\n}\n\n/** JSDoc */\nfunction instrumentFetch(): void {\n if (!supportsNativeFetch()) {\n return;\n }\n\n fill(global, 'fetch', function(originalFetch: () => void): () => void {\n return function(...args: any[]): void {\n const handlerData = {\n args,\n fetchData: {\n method: getFetchMethod(args),\n url: getFetchUrl(args),\n },\n startTimestamp: Date.now(),\n };\n\n triggerHandlers('fetch', {\n ...handlerData,\n });\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return originalFetch.apply(global, args).then(\n (response: Response) => {\n triggerHandlers('fetch', {\n ...handlerData,\n endTimestamp: Date.now(),\n response,\n });\n return response;\n },\n (error: Error) => {\n triggerHandlers('fetch', {\n ...handlerData,\n endTimestamp: Date.now(),\n error,\n });\n // NOTE: If you are a Sentry user, and you are seeing this stack frame,\n // it means the sentry.javascript SDK caught an error invoking your application code.\n // This is expected behavior and NOT indicative of a bug with sentry.javascript.\n throw error;\n },\n );\n };\n });\n}\n\ntype XHRSendInput = null | Blob | BufferSource | FormData | URLSearchParams | string;\n\n/** JSDoc */\ninterface SentryWrappedXMLHttpRequest extends XMLHttpRequest {\n [key: string]: any;\n __sentry_xhr__?: {\n method?: string;\n url?: string;\n status_code?: number;\n body?: XHRSendInput;\n };\n}\n\n/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/** Extract `method` from fetch call arguments */\nfunction getFetchMethod(fetchArgs: any[] = []): string {\n if ('Request' in global && isInstanceOf(fetchArgs[0], Request) && fetchArgs[0].method) {\n return String(fetchArgs[0].method).toUpperCase();\n }\n if (fetchArgs[1] && fetchArgs[1].method) {\n return String(fetchArgs[1].method).toUpperCase();\n }\n return 'GET';\n}\n\n/** Extract `url` from fetch call arguments */\nfunction getFetchUrl(fetchArgs: any[] = []): string {\n if (typeof fetchArgs[0] === 'string') {\n return fetchArgs[0];\n }\n if ('Request' in global && isInstanceOf(fetchArgs[0], Request)) {\n return fetchArgs[0].url;\n }\n return String(fetchArgs[0]);\n}\n/* eslint-enable @typescript-eslint/no-unsafe-member-access */\n\n/** JSDoc */\nfunction instrumentXHR(): void {\n if (!('XMLHttpRequest' in global)) {\n return;\n }\n\n // Poor man's implementation of ES6 `Map`, tracking and keeping in sync key and value separately.\n const requestKeys: XMLHttpRequest[] = [];\n const requestValues: Array[] = [];\n const xhrproto = XMLHttpRequest.prototype;\n\n fill(xhrproto, 'open', function(originalOpen: () => void): () => void {\n return function(this: SentryWrappedXMLHttpRequest, ...args: any[]): void {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const xhr = this;\n const url = args[1];\n xhr.__sentry_xhr__ = {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n method: isString(args[0]) ? args[0].toUpperCase() : args[0],\n url: args[1],\n };\n\n // if Sentry key appears in URL, don't capture it as a request\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (isString(url) && xhr.__sentry_xhr__.method === 'POST' && url.match(/sentry_key/)) {\n xhr.__sentry_own_request__ = true;\n }\n\n const onreadystatechangeHandler = function(): void {\n if (xhr.readyState === 4) {\n try {\n // touching statusCode in some platforms throws\n // an exception\n if (xhr.__sentry_xhr__) {\n xhr.__sentry_xhr__.status_code = xhr.status;\n }\n } catch (e) {\n /* do nothing */\n }\n\n try {\n const requestPos = requestKeys.indexOf(xhr);\n if (requestPos !== -1) {\n // Make sure to pop both key and value to keep it in sync.\n requestKeys.splice(requestPos);\n const args = requestValues.splice(requestPos)[0];\n if (xhr.__sentry_xhr__ && args[0] !== undefined) {\n xhr.__sentry_xhr__.body = args[0] as XHRSendInput;\n }\n }\n } catch (e) {\n /* do nothing */\n }\n\n triggerHandlers('xhr', {\n args,\n endTimestamp: Date.now(),\n startTimestamp: Date.now(),\n xhr,\n });\n }\n };\n\n if ('onreadystatechange' in xhr && typeof xhr.onreadystatechange === 'function') {\n fill(xhr, 'onreadystatechange', function(original: WrappedFunction): Function {\n return function(...readyStateArgs: any[]): void {\n onreadystatechangeHandler();\n return original.apply(xhr, readyStateArgs);\n };\n });\n } else {\n xhr.addEventListener('readystatechange', onreadystatechangeHandler);\n }\n\n return originalOpen.apply(xhr, args);\n };\n });\n\n fill(xhrproto, 'send', function(originalSend: () => void): () => void {\n return function(this: SentryWrappedXMLHttpRequest, ...args: any[]): void {\n requestKeys.push(this);\n requestValues.push(args);\n\n triggerHandlers('xhr', {\n args,\n startTimestamp: Date.now(),\n xhr: this,\n });\n\n return originalSend.apply(this, args);\n };\n });\n}\n\nlet lastHref: string;\n\n/** JSDoc */\nfunction instrumentHistory(): void {\n if (!supportsHistory()) {\n return;\n }\n\n const oldOnPopState = global.onpopstate;\n global.onpopstate = function(this: WindowEventHandlers, ...args: any[]): any {\n const to = global.location.href;\n // keep track of the current URL state, as we always receive only the updated state\n const from = lastHref;\n lastHref = to;\n triggerHandlers('history', {\n from,\n to,\n });\n if (oldOnPopState) {\n return oldOnPopState.apply(this, args);\n }\n };\n\n /** @hidden */\n function historyReplacementFunction(originalHistoryFunction: () => void): () => void {\n return function(this: History, ...args: any[]): void {\n const url = args.length > 2 ? args[2] : undefined;\n if (url) {\n // coerce to string (this is what pushState does)\n const from = lastHref;\n const to = String(url);\n // keep track of the current URL state, as we always receive only the updated state\n lastHref = to;\n triggerHandlers('history', {\n from,\n to,\n });\n }\n return originalHistoryFunction.apply(this, args);\n };\n }\n\n fill(global.history, 'pushState', historyReplacementFunction);\n fill(global.history, 'replaceState', historyReplacementFunction);\n}\n\n/** JSDoc */\nfunction instrumentDOM(): void {\n if (!('document' in global)) {\n return;\n }\n\n // Capture breadcrumbs from any click that is unhandled / bubbled up all the way\n // to the document. Do this before we instrument addEventListener.\n global.document.addEventListener('click', domEventHandler('click', triggerHandlers.bind(null, 'dom')), false);\n global.document.addEventListener('keypress', keypressEventHandler(triggerHandlers.bind(null, 'dom')), false);\n\n // After hooking into document bubbled up click and keypresses events, we also hook into user handled click & keypresses.\n ['EventTarget', 'Node'].forEach((target: string) => {\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n const proto = (global as any)[target] && (global as any)[target].prototype;\n\n // eslint-disable-next-line no-prototype-builtins\n if (!proto || !proto.hasOwnProperty || !proto.hasOwnProperty('addEventListener')) {\n return;\n }\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n\n fill(proto, 'addEventListener', function(\n original: () => void,\n ): (\n eventName: string,\n fn: EventListenerOrEventListenerObject,\n options?: boolean | AddEventListenerOptions,\n ) => void {\n return function(\n this: any,\n eventName: string,\n fn: EventListenerOrEventListenerObject,\n options?: boolean | AddEventListenerOptions,\n ): (eventName: string, fn: EventListenerOrEventListenerObject, capture?: boolean, secure?: boolean) => void {\n if (fn && (fn as EventListenerObject).handleEvent) {\n if (eventName === 'click') {\n fill(fn, 'handleEvent', function(innerOriginal: () => void): (caughtEvent: Event) => void {\n return function(this: any, event: Event): (event: Event) => void {\n domEventHandler('click', triggerHandlers.bind(null, 'dom'))(event);\n return innerOriginal.call(this, event);\n };\n });\n }\n if (eventName === 'keypress') {\n fill(fn, 'handleEvent', function(innerOriginal: () => void): (caughtEvent: Event) => void {\n return function(this: any, event: Event): (event: Event) => void {\n keypressEventHandler(triggerHandlers.bind(null, 'dom'))(event);\n return innerOriginal.call(this, event);\n };\n });\n }\n } else {\n if (eventName === 'click') {\n domEventHandler('click', triggerHandlers.bind(null, 'dom'), true)(this);\n }\n if (eventName === 'keypress') {\n keypressEventHandler(triggerHandlers.bind(null, 'dom'))(this);\n }\n }\n\n return original.call(this, eventName, fn, options);\n };\n });\n\n fill(proto, 'removeEventListener', function(\n original: () => void,\n ): (\n this: any,\n eventName: string,\n fn: EventListenerOrEventListenerObject,\n options?: boolean | EventListenerOptions,\n ) => () => void {\n return function(\n this: any,\n eventName: string,\n fn: EventListenerOrEventListenerObject,\n options?: boolean | EventListenerOptions,\n ): () => void {\n try {\n original.call(this, eventName, ((fn as unknown) as WrappedFunction).__sentry_wrapped__, options);\n } catch (e) {\n // ignore, accessing __sentry_wrapped__ will throw in some Selenium environments\n }\n return original.call(this, eventName, fn, options);\n };\n });\n });\n}\n\nconst debounceDuration: number = 1000;\nlet debounceTimer: number = 0;\nlet keypressTimeout: number | undefined;\nlet lastCapturedEvent: Event | undefined;\n\n/**\n * Wraps addEventListener to capture UI breadcrumbs\n * @param name the event name (e.g. \"click\")\n * @param handler function that will be triggered\n * @param debounce decides whether it should wait till another event loop\n * @returns wrapped breadcrumb events handler\n * @hidden\n */\nfunction domEventHandler(name: string, handler: Function, debounce: boolean = false): (event: Event) => void {\n return (event: Event): void => {\n // reset keypress timeout; e.g. triggering a 'click' after\n // a 'keypress' will reset the keypress debounce so that a new\n // set of keypresses can be recorded\n keypressTimeout = undefined;\n // It's possible this handler might trigger multiple times for the same\n // event (e.g. event propagation through node ancestors). Ignore if we've\n // already captured the event.\n if (!event || lastCapturedEvent === event) {\n return;\n }\n\n lastCapturedEvent = event;\n\n if (debounceTimer) {\n clearTimeout(debounceTimer);\n }\n\n if (debounce) {\n debounceTimer = setTimeout(() => {\n handler({ event, name });\n });\n } else {\n handler({ event, name });\n }\n };\n}\n\n/**\n * Wraps addEventListener to capture keypress UI events\n * @param handler function that will be triggered\n * @returns wrapped keypress events handler\n * @hidden\n */\nfunction keypressEventHandler(handler: Function): (event: Event) => void {\n // TODO: if somehow user switches keypress target before\n // debounce timeout is triggered, we will only capture\n // a single breadcrumb from the FIRST target (acceptable?)\n return (event: Event): void => {\n let target;\n\n try {\n target = event.target;\n } catch (e) {\n // just accessing event properties can throw an exception in some rare circumstances\n // see: https://github.com/getsentry/raven-js/issues/838\n return;\n }\n\n const tagName = target && (target as HTMLElement).tagName;\n\n // only consider keypress events on actual input elements\n // this will disregard keypresses targeting body (e.g. tabbing\n // through elements, hotkeys, etc)\n if (!tagName || (tagName !== 'INPUT' && tagName !== 'TEXTAREA' && !(target as HTMLElement).isContentEditable)) {\n return;\n }\n\n // record first keypress in a series, but ignore subsequent\n // keypresses until debounce clears\n if (!keypressTimeout) {\n domEventHandler('input', handler)(event);\n }\n clearTimeout(keypressTimeout);\n\n keypressTimeout = (setTimeout(() => {\n keypressTimeout = undefined;\n }, debounceDuration) as any) as number;\n };\n}\n\nlet _oldOnErrorHandler: OnErrorEventHandler = null;\n/** JSDoc */\nfunction instrumentError(): void {\n _oldOnErrorHandler = global.onerror;\n\n global.onerror = function(msg: any, url: any, line: any, column: any, error: any): boolean {\n triggerHandlers('error', {\n column,\n error,\n line,\n msg,\n url,\n });\n\n if (_oldOnErrorHandler) {\n // eslint-disable-next-line prefer-rest-params\n return _oldOnErrorHandler.apply(this, arguments);\n }\n\n return false;\n };\n}\n\nlet _oldOnUnhandledRejectionHandler: ((e: any) => void) | null = null;\n/** JSDoc */\nfunction instrumentUnhandledRejection(): void {\n _oldOnUnhandledRejectionHandler = global.onunhandledrejection;\n\n global.onunhandledrejection = function(e: any): boolean {\n triggerHandlers('unhandledrejection', e);\n\n if (_oldOnUnhandledRejectionHandler) {\n // eslint-disable-next-line prefer-rest-params\n return _oldOnUnhandledRejectionHandler.apply(this, arguments);\n }\n\n return true;\n };\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n\nimport { Primitive } from '@sentry/types';\n/**\n * Checks whether given value's type is one of a few Error or Error-like\n * {@link isError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isError(wat: any): boolean {\n switch (Object.prototype.toString.call(wat)) {\n case '[object Error]':\n return true;\n case '[object Exception]':\n return true;\n case '[object DOMException]':\n return true;\n default:\n return isInstanceOf(wat, Error);\n }\n}\n\n/**\n * Checks whether given value's type is ErrorEvent\n * {@link isErrorEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isErrorEvent(wat: any): boolean {\n return Object.prototype.toString.call(wat) === '[object ErrorEvent]';\n}\n\n/**\n * Checks whether given value's type is DOMError\n * {@link isDOMError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isDOMError(wat: any): boolean {\n return Object.prototype.toString.call(wat) === '[object DOMError]';\n}\n\n/**\n * Checks whether given value's type is DOMException\n * {@link isDOMException}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isDOMException(wat: any): boolean {\n return Object.prototype.toString.call(wat) === '[object DOMException]';\n}\n\n/**\n * Checks whether given value's type is a string\n * {@link isString}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isString(wat: any): boolean {\n return Object.prototype.toString.call(wat) === '[object String]';\n}\n\n/**\n * Checks whether given value's is a primitive (undefined, null, number, boolean, string, bigint, symbol)\n * {@link isPrimitive}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isPrimitive(wat: any): wat is Primitive {\n return wat === null || (typeof wat !== 'object' && typeof wat !== 'function');\n}\n\n/**\n * Checks whether given value's type is an object literal\n * {@link isPlainObject}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isPlainObject(wat: any): boolean {\n return Object.prototype.toString.call(wat) === '[object Object]';\n}\n\n/**\n * Checks whether given value's type is an Event instance\n * {@link isEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isEvent(wat: any): boolean {\n return typeof Event !== 'undefined' && isInstanceOf(wat, Event);\n}\n\n/**\n * Checks whether given value's type is an Element instance\n * {@link isElement}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isElement(wat: any): boolean {\n return typeof Element !== 'undefined' && isInstanceOf(wat, Element);\n}\n\n/**\n * Checks whether given value's type is an regexp\n * {@link isRegExp}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isRegExp(wat: any): boolean {\n return Object.prototype.toString.call(wat) === '[object RegExp]';\n}\n\n/**\n * Checks whether given value has a then function.\n * @param wat A value to be checked.\n */\nexport function isThenable(wat: any): boolean {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return Boolean(wat && wat.then && typeof wat.then === 'function');\n}\n\n/**\n * Checks whether given value's type is a SyntheticEvent\n * {@link isSyntheticEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isSyntheticEvent(wat: any): boolean {\n return isPlainObject(wat) && 'nativeEvent' in wat && 'preventDefault' in wat && 'stopPropagation' in wat;\n}\n/**\n * Checks whether given value's type is an instance of provided constructor.\n * {@link isInstanceOf}.\n *\n * @param wat A value to be checked.\n * @param base A constructor to be used in a check.\n * @returns A boolean representing the result.\n */\nexport function isInstanceOf(wat: any, base: any): boolean {\n try {\n return wat instanceof base;\n } catch (_e) {\n return false;\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { consoleSandbox, getGlobalObject } from './misc';\n\n// TODO: Implement different loggers for different environments\nconst global = getGlobalObject();\n\n/** Prefix for logging strings */\nconst PREFIX = 'Sentry Logger ';\n\n/** JSDoc */\nclass Logger {\n /** JSDoc */\n private _enabled: boolean;\n\n /** JSDoc */\n public constructor() {\n this._enabled = false;\n }\n\n /** JSDoc */\n public disable(): void {\n this._enabled = false;\n }\n\n /** JSDoc */\n public enable(): void {\n this._enabled = true;\n }\n\n /** JSDoc */\n public log(...args: any[]): void {\n if (!this._enabled) {\n return;\n }\n consoleSandbox(() => {\n global.console.log(`${PREFIX}[Log]: ${args.join(' ')}`);\n });\n }\n\n /** JSDoc */\n public warn(...args: any[]): void {\n if (!this._enabled) {\n return;\n }\n consoleSandbox(() => {\n global.console.warn(`${PREFIX}[Warn]: ${args.join(' ')}`);\n });\n }\n\n /** JSDoc */\n public error(...args: any[]): void {\n if (!this._enabled) {\n return;\n }\n consoleSandbox(() => {\n global.console.error(`${PREFIX}[Error]: ${args.join(' ')}`);\n });\n }\n}\n\n// Ensure we only have a single logger instance, even if multiple versions of @sentry/utils are being used\nglobal.__SENTRY__ = global.__SENTRY__ || {};\nconst logger = (global.__SENTRY__.logger as Logger) || (global.__SENTRY__.logger = new Logger());\n\nexport { logger };\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Event, Integration, StackFrame, WrappedFunction } from '@sentry/types';\n\nimport { isNodeEnv } from './node';\nimport { snipLine } from './string';\n\n/** Internal */\ninterface SentryGlobal {\n Sentry?: {\n Integrations?: Integration[];\n };\n SENTRY_ENVIRONMENT?: string;\n SENTRY_DSN?: string;\n SENTRY_RELEASE?: {\n id?: string;\n };\n __SENTRY__: {\n globalEventProcessors: any;\n hub: any;\n logger: any;\n };\n}\n\nconst fallbackGlobalObject = {};\n\n/**\n * Safely get global scope object\n *\n * @returns Global scope object\n */\nexport function getGlobalObject(): T & SentryGlobal {\n return (isNodeEnv()\n ? global\n : typeof window !== 'undefined'\n ? window\n : typeof self !== 'undefined'\n ? self\n : fallbackGlobalObject) as T & SentryGlobal;\n}\n\n/**\n * Extended Window interface that allows for Crypto API usage in IE browsers\n */\ninterface MsCryptoWindow extends Window {\n msCrypto?: Crypto;\n}\n\n/**\n * UUID4 generator\n *\n * @returns string Generated UUID4.\n */\nexport function uuid4(): string {\n const global = getGlobalObject() as MsCryptoWindow;\n const crypto = global.crypto || global.msCrypto;\n\n if (!(crypto === void 0) && crypto.getRandomValues) {\n // Use window.crypto API if available\n const arr = new Uint16Array(8);\n crypto.getRandomValues(arr);\n\n // set 4 in byte 7\n // eslint-disable-next-line no-bitwise\n arr[3] = (arr[3] & 0xfff) | 0x4000;\n // set 2 most significant bits of byte 9 to '10'\n // eslint-disable-next-line no-bitwise\n arr[4] = (arr[4] & 0x3fff) | 0x8000;\n\n const pad = (num: number): string => {\n let v = num.toString(16);\n while (v.length < 4) {\n v = `0${v}`;\n }\n return v;\n };\n\n return (\n pad(arr[0]) + pad(arr[1]) + pad(arr[2]) + pad(arr[3]) + pad(arr[4]) + pad(arr[5]) + pad(arr[6]) + pad(arr[7])\n );\n }\n // http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/2117523#2117523\n return 'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, c => {\n // eslint-disable-next-line no-bitwise\n const r = (Math.random() * 16) | 0;\n // eslint-disable-next-line no-bitwise\n const v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n}\n\n/**\n * Parses string form of URL into an object\n * // borrowed from https://tools.ietf.org/html/rfc3986#appendix-B\n * // intentionally using regex and not href parsing trick because React Native and other\n * // environments where DOM might not be available\n * @returns parsed URL object\n */\nexport function parseUrl(\n url: string,\n): {\n host?: string;\n path?: string;\n protocol?: string;\n relative?: string;\n} {\n if (!url) {\n return {};\n }\n\n const match = url.match(/^(([^:/?#]+):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/);\n\n if (!match) {\n return {};\n }\n\n // coerce to undefined values to empty string so we don't get 'undefined'\n const query = match[6] || '';\n const fragment = match[8] || '';\n return {\n host: match[4],\n path: match[5],\n protocol: match[2],\n relative: match[5] + query + fragment, // everything minus origin\n };\n}\n\n/**\n * Extracts either message or type+value from an event that can be used for user-facing logs\n * @returns event's description\n */\nexport function getEventDescription(event: Event): string {\n if (event.message) {\n return event.message;\n }\n if (event.exception && event.exception.values && event.exception.values[0]) {\n const exception = event.exception.values[0];\n\n if (exception.type && exception.value) {\n return `${exception.type}: ${exception.value}`;\n }\n return exception.type || exception.value || event.event_id || '';\n }\n return event.event_id || '';\n}\n\n/** JSDoc */\ninterface ExtensibleConsole extends Console {\n [key: string]: any;\n}\n\n/** JSDoc */\nexport function consoleSandbox(callback: () => any): any {\n const global = getGlobalObject();\n const levels = ['debug', 'info', 'warn', 'error', 'log', 'assert'];\n\n if (!('console' in global)) {\n return callback();\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n const originalConsole = (global as any).console as ExtensibleConsole;\n const wrappedLevels: { [key: string]: any } = {};\n\n // Restore all wrapped console methods\n levels.forEach(level => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (level in (global as any).console && (originalConsole[level] as WrappedFunction).__sentry_original__) {\n wrappedLevels[level] = originalConsole[level] as WrappedFunction;\n originalConsole[level] = (originalConsole[level] as WrappedFunction).__sentry_original__;\n }\n });\n\n // Perform callback manipulations\n const result = callback();\n\n // Revert restoration to wrapped state\n Object.keys(wrappedLevels).forEach(level => {\n originalConsole[level] = wrappedLevels[level];\n });\n\n return result;\n}\n\n/**\n * Adds exception values, type and value to an synthetic Exception.\n * @param event The event to modify.\n * @param value Value of the exception.\n * @param type Type of the exception.\n * @hidden\n */\nexport function addExceptionTypeValue(event: Event, value?: string, type?: string): void {\n event.exception = event.exception || {};\n event.exception.values = event.exception.values || [];\n event.exception.values[0] = event.exception.values[0] || {};\n event.exception.values[0].value = event.exception.values[0].value || value || '';\n event.exception.values[0].type = event.exception.values[0].type || type || 'Error';\n}\n\n/**\n * Adds exception mechanism to a given event.\n * @param event The event to modify.\n * @param mechanism Mechanism of the mechanism.\n * @hidden\n */\nexport function addExceptionMechanism(\n event: Event,\n mechanism: {\n [key: string]: any;\n } = {},\n): void {\n // TODO: Use real type with `keyof Mechanism` thingy and maybe make it better?\n try {\n // @ts-ignore Type 'Mechanism | {}' is not assignable to type 'Mechanism | undefined'\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n event.exception!.values![0].mechanism = event.exception!.values![0].mechanism || {};\n Object.keys(mechanism).forEach(key => {\n // @ts-ignore Mechanism has no index signature\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n event.exception!.values![0].mechanism[key] = mechanism[key];\n });\n } catch (_oO) {\n // no-empty\n }\n}\n\n/**\n * A safe form of location.href\n */\nexport function getLocationHref(): string {\n try {\n return document.location.href;\n } catch (oO) {\n return '';\n }\n}\n\n// https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string\nconst SEMVER_REGEXP = /^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/;\n\n/**\n * Represents Semantic Versioning object\n */\ninterface SemVer {\n major?: number;\n minor?: number;\n patch?: number;\n prerelease?: string;\n buildmetadata?: string;\n}\n\n/**\n * Parses input into a SemVer interface\n * @param input string representation of a semver version\n */\nexport function parseSemver(input: string): SemVer {\n const match = input.match(SEMVER_REGEXP) || [];\n const major = parseInt(match[1], 10);\n const minor = parseInt(match[2], 10);\n const patch = parseInt(match[3], 10);\n return {\n buildmetadata: match[5],\n major: isNaN(major) ? undefined : major,\n minor: isNaN(minor) ? undefined : minor,\n patch: isNaN(patch) ? undefined : patch,\n prerelease: match[4],\n };\n}\n\nconst defaultRetryAfter = 60 * 1000; // 60 seconds\n\n/**\n * Extracts Retry-After value from the request header or returns default value\n * @param now current unix timestamp\n * @param header string representation of 'Retry-After' header\n */\nexport function parseRetryAfterHeader(now: number, header?: string | number | null): number {\n if (!header) {\n return defaultRetryAfter;\n }\n\n const headerDelay = parseInt(`${header}`, 10);\n if (!isNaN(headerDelay)) {\n return headerDelay * 1000;\n }\n\n const headerDate = Date.parse(`${header}`);\n if (!isNaN(headerDate)) {\n return headerDate - now;\n }\n\n return defaultRetryAfter;\n}\n\n/**\n * This function adds context (pre/post/line) lines to the provided frame\n *\n * @param lines string[] containing all lines\n * @param frame StackFrame that will be mutated\n * @param linesOfContext number of context lines we want to add pre/post\n */\nexport function addContextToFrame(lines: string[], frame: StackFrame, linesOfContext: number = 5): void {\n const lineno = frame.lineno || 0;\n const maxLines = lines.length;\n const sourceLine = Math.max(Math.min(maxLines, lineno - 1), 0);\n\n frame.pre_context = lines\n .slice(Math.max(0, sourceLine - linesOfContext), sourceLine)\n .map((line: string) => snipLine(line, 0));\n\n frame.context_line = snipLine(lines[Math.min(maxLines - 1, sourceLine)], frame.colno || 0);\n\n frame.post_context = lines\n .slice(Math.min(sourceLine + 1, maxLines), sourceLine + 1 + linesOfContext)\n .map((line: string) => snipLine(line, 0));\n}\n\n/**\n * Strip the query string and fragment off of a given URL or path (if present)\n *\n * @param urlPath Full URL or path, including possible query string and/or fragment\n * @returns URL or path without query string or fragment\n */\nexport function stripUrlQueryAndFragment(urlPath: string): string {\n // eslint-disable-next-line no-useless-escape\n return urlPath.split(/[\\?#]/, 1)[0];\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ExtractedNodeRequestData } from '@sentry/types';\n\nimport { isString } from './is';\nimport { normalize } from './object';\n\n/**\n * Checks whether we're in the Node.js or Browser environment\n *\n * @returns Answer to given question\n */\nexport function isNodeEnv(): boolean {\n return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]';\n}\n\n/**\n * Requires a module which is protected against bundler minification.\n *\n * @param request The module path to resolve\n */\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport function dynamicRequire(mod: any, request: string): any {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return mod.require(request);\n}\n\n/** Default request keys that'll be used to extract data from the request */\nconst DEFAULT_REQUEST_KEYS = ['cookies', 'data', 'headers', 'method', 'query_string', 'url'];\n\n/**\n * Normalizes data from the request object, accounting for framework differences.\n *\n * @param req The request object from which to extract data\n * @param keys An optional array of keys to include in the normalized data. Defaults to DEFAULT_REQUEST_KEYS if not\n * provided.\n * @returns An object containing normalized request data\n */\nexport function extractNodeRequestData(\n req: { [key: string]: any },\n keys: string[] = DEFAULT_REQUEST_KEYS,\n): ExtractedNodeRequestData {\n // make sure we can safely use dynamicRequire below\n if (!isNodeEnv()) {\n throw new Error(\"Can't get node request data outside of a node environment\");\n }\n\n const requestData: { [key: string]: any } = {};\n\n // headers:\n // node, express: req.headers\n // koa: req.header\n const headers = (req.headers || req.header || {}) as {\n host?: string;\n cookie?: string;\n };\n // method:\n // node, express, koa: req.method\n const method = req.method;\n // host:\n // express: req.hostname in > 4 and req.host in < 4\n // koa: req.host\n // node: req.headers.host\n const host = req.hostname || req.host || headers.host || '';\n // protocol:\n // node: \n // express, koa: req.protocol\n const protocol =\n req.protocol === 'https' || req.secure || ((req.socket || {}) as { encrypted?: boolean }).encrypted\n ? 'https'\n : 'http';\n // url (including path and query string):\n // node, express: req.originalUrl\n // koa: req.url\n const originalUrl = (req.originalUrl || req.url || '') as string;\n // absolute url\n const absoluteUrl = `${protocol}://${host}${originalUrl}`;\n\n keys.forEach(key => {\n switch (key) {\n case 'headers':\n requestData.headers = headers;\n break;\n case 'method':\n requestData.method = method;\n break;\n case 'url':\n requestData.url = absoluteUrl;\n break;\n case 'cookies':\n // cookies:\n // node, express, koa: req.headers.cookie\n // vercel, sails.js, express (w/ cookie middleware): req.cookies\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n requestData.cookies = req.cookies || dynamicRequire(module, 'cookie').parse(headers.cookie || '');\n break;\n case 'query_string':\n // query string:\n // node: req.url (raw)\n // express, koa: req.query\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n requestData.query_string = dynamicRequire(module, 'url').parse(originalUrl || '', false).query;\n break;\n case 'data':\n if (method === 'GET' || method === 'HEAD') {\n break;\n }\n // body data:\n // node, express, koa: req.body\n if (req.body !== undefined) {\n requestData.data = isString(req.body) ? req.body : JSON.stringify(normalize(req.body));\n }\n break;\n default:\n if ({}.hasOwnProperty.call(req, key)) {\n requestData[key] = (req as { [key: string]: any })[key];\n }\n }\n });\n\n return requestData;\n}\n","/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/**\n * Memo class used for decycle json objects. Uses WeakSet if available otherwise array.\n */\nexport class Memo {\n /** Determines if WeakSet is available */\n private readonly _hasWeakSet: boolean;\n /** Either WeakSet or Array */\n private readonly _inner: any;\n\n public constructor() {\n this._hasWeakSet = typeof WeakSet === 'function';\n this._inner = this._hasWeakSet ? new WeakSet() : [];\n }\n\n /**\n * Sets obj to remember.\n * @param obj Object to remember\n */\n public memoize(obj: any): boolean {\n if (this._hasWeakSet) {\n if (this._inner.has(obj)) {\n return true;\n }\n this._inner.add(obj);\n return false;\n }\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (let i = 0; i < this._inner.length; i++) {\n const value = this._inner[i];\n if (value === obj) {\n return true;\n }\n }\n this._inner.push(obj);\n return false;\n }\n\n /**\n * Removes object from internal storage.\n * @param obj Object to forget\n */\n public unmemoize(obj: any): void {\n if (this._hasWeakSet) {\n this._inner.delete(obj);\n } else {\n for (let i = 0; i < this._inner.length; i++) {\n if (this._inner[i] === obj) {\n this._inner.splice(i, 1);\n break;\n }\n }\n }\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ExtendedError, WrappedFunction } from '@sentry/types';\n\nimport { htmlTreeAsString } from './browser';\nimport { isElement, isError, isEvent, isInstanceOf, isPlainObject, isPrimitive, isSyntheticEvent } from './is';\nimport { Memo } from './memo';\nimport { getFunctionName } from './stacktrace';\nimport { truncate } from './string';\n\n/**\n * Wrap a given object method with a higher-order function\n *\n * @param source An object that contains a method to be wrapped.\n * @param name A name of method to be wrapped.\n * @param replacementFactory A function that should be used to wrap a given method, returning the wrapped method which\n * will be substituted in for `source[name]`.\n * @returns void\n */\nexport function fill(source: { [key: string]: any }, name: string, replacementFactory: (...args: any[]) => any): void {\n if (!(name in source)) {\n return;\n }\n\n const original = source[name] as () => any;\n const wrapped = replacementFactory(original) as WrappedFunction;\n\n // Make sure it's a function first, as we need to attach an empty prototype for `defineProperties` to work\n // otherwise it'll throw \"TypeError: Object.defineProperties called on non-object\"\n if (typeof wrapped === 'function') {\n try {\n wrapped.prototype = wrapped.prototype || {};\n Object.defineProperties(wrapped, {\n __sentry_original__: {\n enumerable: false,\n value: original,\n },\n });\n } catch (_Oo) {\n // This can throw if multiple fill happens on a global object like XMLHttpRequest\n // Fixes https://github.com/getsentry/sentry-javascript/issues/2043\n }\n }\n\n source[name] = wrapped;\n}\n\n/**\n * Encodes given object into url-friendly format\n *\n * @param object An object that contains serializable values\n * @returns string Encoded\n */\nexport function urlEncode(object: { [key: string]: any }): string {\n return Object.keys(object)\n .map(key => `${encodeURIComponent(key)}=${encodeURIComponent(object[key])}`)\n .join('&');\n}\n\n/**\n * Transforms any object into an object literal with all its attributes\n * attached to it.\n *\n * @param value Initial source that we have to transform in order for it to be usable by the serializer\n */\nfunction getWalkSource(\n value: any,\n): {\n [key: string]: any;\n} {\n if (isError(value)) {\n const error = value as ExtendedError;\n const err: {\n [key: string]: any;\n stack: string | undefined;\n message: string;\n name: string;\n } = {\n message: error.message,\n name: error.name,\n stack: error.stack,\n };\n\n for (const i in error) {\n if (Object.prototype.hasOwnProperty.call(error, i)) {\n err[i] = error[i];\n }\n }\n\n return err;\n }\n\n if (isEvent(value)) {\n /**\n * Event-like interface that's usable in browser and node\n */\n interface SimpleEvent {\n [key: string]: unknown;\n type: string;\n target?: unknown;\n currentTarget?: unknown;\n }\n\n const event = value as SimpleEvent;\n\n const source: {\n [key: string]: any;\n } = {};\n\n source.type = event.type;\n\n // Accessing event.target can throw (see getsentry/raven-js#838, #768)\n try {\n source.target = isElement(event.target)\n ? htmlTreeAsString(event.target)\n : Object.prototype.toString.call(event.target);\n } catch (_oO) {\n source.target = '';\n }\n\n try {\n source.currentTarget = isElement(event.currentTarget)\n ? htmlTreeAsString(event.currentTarget)\n : Object.prototype.toString.call(event.currentTarget);\n } catch (_oO) {\n source.currentTarget = '';\n }\n\n if (typeof CustomEvent !== 'undefined' && isInstanceOf(value, CustomEvent)) {\n source.detail = event.detail;\n }\n\n for (const i in event) {\n if (Object.prototype.hasOwnProperty.call(event, i)) {\n source[i] = event;\n }\n }\n\n return source;\n }\n\n return value as {\n [key: string]: any;\n };\n}\n\n/** Calculates bytes size of input string */\nfunction utf8Length(value: string): number {\n // eslint-disable-next-line no-bitwise\n return ~-encodeURI(value).split(/%..|./).length;\n}\n\n/** Calculates bytes size of input object */\nfunction jsonSize(value: any): number {\n return utf8Length(JSON.stringify(value));\n}\n\n/** JSDoc */\nexport function normalizeToSize(\n object: { [key: string]: any },\n // Default Node.js REPL depth\n depth: number = 3,\n // 100kB, as 200kB is max payload size, so half sounds reasonable\n maxSize: number = 100 * 1024,\n): T {\n const serialized = normalize(object, depth);\n\n if (jsonSize(serialized) > maxSize) {\n return normalizeToSize(object, depth - 1, maxSize);\n }\n\n return serialized as T;\n}\n\n/**\n * Transform any non-primitive, BigInt, or Symbol-type value into a string. Acts as a no-op on strings, numbers,\n * booleans, null, and undefined.\n *\n * @param value The value to stringify\n * @returns For non-primitive, BigInt, and Symbol-type values, a string denoting the value's type, type and value, or\n * type and `description` property, respectively. For non-BigInt, non-Symbol primitives, returns the original value,\n * unchanged.\n */\nfunction serializeValue(value: any): any {\n const type = Object.prototype.toString.call(value);\n\n // Node.js REPL notation\n if (typeof value === 'string') {\n return value;\n }\n if (type === '[object Object]') {\n return '[Object]';\n }\n if (type === '[object Array]') {\n return '[Array]';\n }\n\n const normalized = normalizeValue(value);\n return isPrimitive(normalized) ? normalized : type;\n}\n\n/**\n * normalizeValue()\n *\n * Takes unserializable input and make it serializable friendly\n *\n * - translates undefined/NaN values to \"[undefined]\"/\"[NaN]\" respectively,\n * - serializes Error objects\n * - filter global objects\n */\nfunction normalizeValue(value: T, key?: any): T | string {\n if (key === 'domain' && value && typeof value === 'object' && ((value as unknown) as { _events: any })._events) {\n return '[Domain]';\n }\n\n if (key === 'domainEmitter') {\n return '[DomainEmitter]';\n }\n\n if (typeof (global as any) !== 'undefined' && (value as unknown) === global) {\n return '[Global]';\n }\n\n if (typeof (window as any) !== 'undefined' && (value as unknown) === window) {\n return '[Window]';\n }\n\n if (typeof (document as any) !== 'undefined' && (value as unknown) === document) {\n return '[Document]';\n }\n\n // React's SyntheticEvent thingy\n if (isSyntheticEvent(value)) {\n return '[SyntheticEvent]';\n }\n\n if (typeof value === 'number' && value !== value) {\n return '[NaN]';\n }\n\n if (value === void 0) {\n return '[undefined]';\n }\n\n if (typeof value === 'function') {\n return `[Function: ${getFunctionName(value)}]`;\n }\n\n // symbols and bigints are considered primitives by TS, but aren't natively JSON-serilaizable\n\n if (typeof value === 'symbol') {\n return `[${String(value)}]`;\n }\n\n if (typeof value === 'bigint') {\n return `[BigInt: ${String(value)}]`;\n }\n\n return value;\n}\n\n/**\n * Walks an object to perform a normalization on it\n *\n * @param key of object that's walked in current iteration\n * @param value object to be walked\n * @param depth Optional number indicating how deep should walking be performed\n * @param memo Optional Memo class handling decycling\n */\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport function walk(key: string, value: any, depth: number = +Infinity, memo: Memo = new Memo()): any {\n // If we reach the maximum depth, serialize whatever has left\n if (depth === 0) {\n return serializeValue(value);\n }\n\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n // If value implements `toJSON` method, call it and return early\n if (value !== null && value !== undefined && typeof value.toJSON === 'function') {\n return value.toJSON();\n }\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n\n // If normalized value is a primitive, there are no branches left to walk, so we can just bail out, as theres no point in going down that branch any further\n const normalized = normalizeValue(value, key);\n if (isPrimitive(normalized)) {\n return normalized;\n }\n\n // Create source that we will use for next itterations, either objectified error object (Error type with extracted keys:value pairs) or the input itself\n const source = getWalkSource(value);\n\n // Create an accumulator that will act as a parent for all future itterations of that branch\n const acc = Array.isArray(value) ? [] : {};\n\n // If we already walked that branch, bail out, as it's circular reference\n if (memo.memoize(value)) {\n return '[Circular ~]';\n }\n\n // Walk all keys of the source\n for (const innerKey in source) {\n // Avoid iterating over fields in the prototype if they've somehow been exposed to enumeration.\n if (!Object.prototype.hasOwnProperty.call(source, innerKey)) {\n continue;\n }\n // Recursively walk through all the child nodes\n (acc as { [key: string]: any })[innerKey] = walk(innerKey, source[innerKey], depth - 1, memo);\n }\n\n // Once walked through all the branches, remove the parent from memo storage\n memo.unmemoize(value);\n\n // Return accumulated values\n return acc;\n}\n\n/**\n * normalize()\n *\n * - Creates a copy to prevent original input mutation\n * - Skip non-enumerablers\n * - Calls `toJSON` if implemented\n * - Removes circular references\n * - Translates non-serializeable values (undefined/NaN/Functions) to serializable format\n * - Translates known global objects/Classes to a string representations\n * - Takes care of Error objects serialization\n * - Optionally limit depth of final output\n */\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport function normalize(input: any, depth?: number): any {\n try {\n return JSON.parse(JSON.stringify(input, (key: string, value: any) => walk(key, value, depth)));\n } catch (_oO) {\n return '**non-serializable**';\n }\n}\n\n/**\n * Given any captured exception, extract its keys and create a sorted\n * and truncated list that will be used inside the event message.\n * eg. `Non-error exception captured with keys: foo, bar, baz`\n */\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport function extractExceptionKeysForMessage(exception: any, maxLength: number = 40): string {\n const keys = Object.keys(getWalkSource(exception));\n keys.sort();\n\n if (!keys.length) {\n return '[object has no keys]';\n }\n\n if (keys[0].length >= maxLength) {\n return truncate(keys[0], maxLength);\n }\n\n for (let includedKeys = keys.length; includedKeys > 0; includedKeys--) {\n const serialized = keys.slice(0, includedKeys).join(', ');\n if (serialized.length > maxLength) {\n continue;\n }\n if (includedKeys === keys.length) {\n return serialized;\n }\n return truncate(serialized, maxLength);\n }\n\n return '';\n}\n\n/**\n * Given any object, return the new object with removed keys that value was `undefined`.\n * Works recursively on objects and arrays.\n */\nexport function dropUndefinedKeys(val: T): T {\n if (isPlainObject(val)) {\n const obj = val as { [key: string]: any };\n const rv: { [key: string]: any } = {};\n for (const key of Object.keys(obj)) {\n if (typeof obj[key] !== 'undefined') {\n rv[key] = dropUndefinedKeys(obj[key]);\n }\n }\n return rv as T;\n }\n\n if (Array.isArray(val)) {\n return (val as any[]).map(dropUndefinedKeys) as any;\n }\n\n return val;\n}\n","const defaultFunctionName = '';\n\n/**\n * Safely extract function name from itself\n */\nexport function getFunctionName(fn: unknown): string {\n try {\n if (!fn || typeof fn !== 'function') {\n return defaultFunctionName;\n }\n return fn.name || defaultFunctionName;\n } catch (e) {\n // Just accessing custom props in some Selenium environments\n // can cause a \"Permission denied\" exception (see raven-js#495).\n return defaultFunctionName;\n }\n}\n","import { isRegExp, isString } from './is';\n\n/**\n * Truncates given string to the maximum characters count\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string (0 = unlimited)\n * @returns string Encoded\n */\nexport function truncate(str: string, max: number = 0): string {\n if (typeof str !== 'string' || max === 0) {\n return str;\n }\n return str.length <= max ? str : `${str.substr(0, max)}...`;\n}\n\n/**\n * This is basically just `trim_line` from\n * https://github.com/getsentry/sentry/blob/master/src/sentry/lang/javascript/processor.py#L67\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string\n * @returns string Encoded\n */\nexport function snipLine(line: string, colno: number): string {\n let newLine = line;\n const ll = newLine.length;\n if (ll <= 150) {\n return newLine;\n }\n if (colno > ll) {\n // eslint-disable-next-line no-param-reassign\n colno = ll;\n }\n\n let start = Math.max(colno - 60, 0);\n if (start < 5) {\n start = 0;\n }\n\n let end = Math.min(start + 140, ll);\n if (end > ll - 5) {\n end = ll;\n }\n if (end === ll) {\n start = Math.max(end - 140, 0);\n }\n\n newLine = newLine.slice(start, end);\n if (start > 0) {\n newLine = `'{snip} ${newLine}`;\n }\n if (end < ll) {\n newLine += ' {snip}';\n }\n\n return newLine;\n}\n\n/**\n * Join values in array\n * @param input array of values to be joined together\n * @param delimiter string to be placed in-between values\n * @returns Joined values\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function safeJoin(input: any[], delimiter?: string): string {\n if (!Array.isArray(input)) {\n return '';\n }\n\n const output = [];\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (let i = 0; i < input.length; i++) {\n const value = input[i];\n try {\n output.push(String(value));\n } catch (e) {\n output.push('[value cannot be serialized]');\n }\n }\n\n return output.join(delimiter);\n}\n\n/**\n * Checks if the value matches a regex or includes the string\n * @param value The string value to be checked against\n * @param pattern Either a regex or a string that must be contained in value\n */\nexport function isMatchingPattern(value: string, pattern: RegExp | string): boolean {\n if (!isString(value)) {\n return false;\n }\n\n if (isRegExp(pattern)) {\n return (pattern as RegExp).test(value);\n }\n if (typeof pattern === 'string') {\n return value.indexOf(pattern) !== -1;\n }\n return false;\n}\n","import { logger } from './logger';\nimport { getGlobalObject } from './misc';\n\n/**\n * Tells whether current environment supports ErrorEvent objects\n * {@link supportsErrorEvent}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsErrorEvent(): boolean {\n try {\n new ErrorEvent('');\n return true;\n } catch (e) {\n return false;\n }\n}\n\n/**\n * Tells whether current environment supports DOMError objects\n * {@link supportsDOMError}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsDOMError(): boolean {\n try {\n // Chrome: VM89:1 Uncaught TypeError: Failed to construct 'DOMError':\n // 1 argument required, but only 0 present.\n // @ts-ignore It really needs 1 argument, not 0.\n new DOMError('');\n return true;\n } catch (e) {\n return false;\n }\n}\n\n/**\n * Tells whether current environment supports DOMException objects\n * {@link supportsDOMException}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsDOMException(): boolean {\n try {\n new DOMException('');\n return true;\n } catch (e) {\n return false;\n }\n}\n\n/**\n * Tells whether current environment supports Fetch API\n * {@link supportsFetch}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsFetch(): boolean {\n if (!('fetch' in getGlobalObject())) {\n return false;\n }\n\n try {\n new Headers();\n new Request('');\n new Response();\n return true;\n } catch (e) {\n return false;\n }\n}\n/**\n * isNativeFetch checks if the given function is a native implementation of fetch()\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction isNativeFetch(func: Function): boolean {\n return func && /^function fetch\\(\\)\\s+\\{\\s+\\[native code\\]\\s+\\}$/.test(func.toString());\n}\n\n/**\n * Tells whether current environment supports Fetch API natively\n * {@link supportsNativeFetch}.\n *\n * @returns true if `window.fetch` is natively implemented, false otherwise\n */\nexport function supportsNativeFetch(): boolean {\n if (!supportsFetch()) {\n return false;\n }\n\n const global = getGlobalObject();\n\n // Fast path to avoid DOM I/O\n // eslint-disable-next-line @typescript-eslint/unbound-method\n if (isNativeFetch(global.fetch)) {\n return true;\n }\n\n // window.fetch is implemented, but is polyfilled or already wrapped (e.g: by a chrome extension)\n // so create a \"pure\" iframe to see if that has native fetch\n let result = false;\n const doc = global.document;\n // eslint-disable-next-line deprecation/deprecation\n if (doc && typeof (doc.createElement as unknown) === `function`) {\n try {\n const sandbox = doc.createElement('iframe');\n sandbox.hidden = true;\n doc.head.appendChild(sandbox);\n if (sandbox.contentWindow && sandbox.contentWindow.fetch) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n result = isNativeFetch(sandbox.contentWindow.fetch);\n }\n doc.head.removeChild(sandbox);\n } catch (err) {\n logger.warn('Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ', err);\n }\n }\n\n return result;\n}\n\n/**\n * Tells whether current environment supports ReportingObserver API\n * {@link supportsReportingObserver}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsReportingObserver(): boolean {\n return 'ReportingObserver' in getGlobalObject();\n}\n\n/**\n * Tells whether current environment supports Referrer Policy API\n * {@link supportsReferrerPolicy}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsReferrerPolicy(): boolean {\n // Despite all stars in the sky saying that Edge supports old draft syntax, aka 'never', 'always', 'origin' and 'default\n // https://caniuse.com/#feat=referrer-policy\n // It doesn't. And it throw exception instead of ignoring this parameter...\n // REF: https://github.com/getsentry/raven-js/issues/1233\n\n if (!supportsFetch()) {\n return false;\n }\n\n try {\n new Request('_', {\n referrerPolicy: 'origin' as ReferrerPolicy,\n });\n return true;\n } catch (e) {\n return false;\n }\n}\n\n/**\n * Tells whether current environment supports History API\n * {@link supportsHistory}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsHistory(): boolean {\n // NOTE: in Chrome App environment, touching history.pushState, *even inside\n // a try/catch block*, will cause Chrome to output an error to console.error\n // borrowed from: https://github.com/angular/angular.js/pull/13945/files\n const global = getGlobalObject();\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const chrome = (global as any).chrome;\n const isChromePackagedApp = chrome && chrome.app && chrome.app.runtime;\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n const hasHistoryApi = 'history' in global && !!global.history.pushState && !!global.history.replaceState;\n\n return !isChromePackagedApp && hasHistoryApi;\n}\n","/* eslint-disable @typescript-eslint/explicit-function-return-type */\n/* eslint-disable @typescript-eslint/typedef */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { isThenable } from './is';\n\n/** SyncPromise internal states */\nenum States {\n /** Pending */\n PENDING = 'PENDING',\n /** Resolved / OK */\n RESOLVED = 'RESOLVED',\n /** Rejected / Error */\n REJECTED = 'REJECTED',\n}\n\n/**\n * Thenable class that behaves like a Promise and follows it's interface\n * but is not async internally\n */\nclass SyncPromise implements PromiseLike {\n private _state: States = States.PENDING;\n private _handlers: Array<{\n done: boolean;\n onfulfilled?: ((value: T) => T | PromiseLike) | null;\n onrejected?: ((reason: any) => any) | null;\n }> = [];\n private _value: any;\n\n public constructor(\n executor: (resolve: (value?: T | PromiseLike | null) => void, reject: (reason?: any) => void) => void,\n ) {\n try {\n executor(this._resolve, this._reject);\n } catch (e) {\n this._reject(e);\n }\n }\n\n /** JSDoc */\n public static resolve(value: T | PromiseLike): PromiseLike {\n return new SyncPromise(resolve => {\n resolve(value);\n });\n }\n\n /** JSDoc */\n public static reject(reason?: any): PromiseLike {\n return new SyncPromise((_, reject) => {\n reject(reason);\n });\n }\n\n /** JSDoc */\n public static all(collection: Array>): PromiseLike {\n return new SyncPromise((resolve, reject) => {\n if (!Array.isArray(collection)) {\n reject(new TypeError(`Promise.all requires an array as input.`));\n return;\n }\n\n if (collection.length === 0) {\n resolve([]);\n return;\n }\n\n let counter = collection.length;\n const resolvedCollection: U[] = [];\n\n collection.forEach((item, index) => {\n SyncPromise.resolve(item)\n .then(value => {\n resolvedCollection[index] = value;\n counter -= 1;\n\n if (counter !== 0) {\n return;\n }\n resolve(resolvedCollection);\n })\n .then(null, reject);\n });\n });\n }\n\n /** JSDoc */\n public then(\n onfulfilled?: ((value: T) => TResult1 | PromiseLike) | null,\n onrejected?: ((reason: any) => TResult2 | PromiseLike) | null,\n ): PromiseLike {\n return new SyncPromise((resolve, reject) => {\n this._attachHandler({\n done: false,\n onfulfilled: result => {\n if (!onfulfilled) {\n // TODO: ¯\\_(ツ)_/¯\n // TODO: FIXME\n resolve(result as any);\n return;\n }\n try {\n resolve(onfulfilled(result));\n return;\n } catch (e) {\n reject(e);\n return;\n }\n },\n onrejected: reason => {\n if (!onrejected) {\n reject(reason);\n return;\n }\n try {\n resolve(onrejected(reason));\n return;\n } catch (e) {\n reject(e);\n return;\n }\n },\n });\n });\n }\n\n /** JSDoc */\n public catch(\n onrejected?: ((reason: any) => TResult | PromiseLike) | null,\n ): PromiseLike {\n return this.then(val => val, onrejected);\n }\n\n /** JSDoc */\n public finally(onfinally?: (() => void) | null): PromiseLike {\n return new SyncPromise((resolve, reject) => {\n let val: TResult | any;\n let isRejected: boolean;\n\n return this.then(\n value => {\n isRejected = false;\n val = value;\n if (onfinally) {\n onfinally();\n }\n },\n reason => {\n isRejected = true;\n val = reason;\n if (onfinally) {\n onfinally();\n }\n },\n ).then(() => {\n if (isRejected) {\n reject(val);\n return;\n }\n\n resolve((val as unknown) as any);\n });\n });\n }\n\n /** JSDoc */\n public toString(): string {\n return '[object SyncPromise]';\n }\n\n /** JSDoc */\n private readonly _resolve = (value?: T | PromiseLike | null) => {\n this._setResult(States.RESOLVED, value);\n };\n\n /** JSDoc */\n private readonly _reject = (reason?: any) => {\n this._setResult(States.REJECTED, reason);\n };\n\n /** JSDoc */\n private readonly _setResult = (state: States, value?: T | PromiseLike | any) => {\n if (this._state !== States.PENDING) {\n return;\n }\n\n if (isThenable(value)) {\n (value as PromiseLike).then(this._resolve, this._reject);\n return;\n }\n\n this._state = state;\n this._value = value;\n\n this._executeHandlers();\n };\n\n // TODO: FIXME\n /** JSDoc */\n private readonly _attachHandler = (handler: {\n /** JSDoc */\n done: boolean;\n /** JSDoc */\n onfulfilled?(value: T): any;\n /** JSDoc */\n onrejected?(reason: any): any;\n }) => {\n this._handlers = this._handlers.concat(handler);\n this._executeHandlers();\n };\n\n /** JSDoc */\n private readonly _executeHandlers = () => {\n if (this._state === States.PENDING) {\n return;\n }\n\n const cachedHandlers = this._handlers.slice();\n this._handlers = [];\n\n cachedHandlers.forEach(handler => {\n if (handler.done) {\n return;\n }\n\n if (this._state === States.RESOLVED) {\n if (handler.onfulfilled) {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n handler.onfulfilled((this._value as unknown) as any);\n }\n }\n\n if (this._state === States.REJECTED) {\n if (handler.onrejected) {\n handler.onrejected(this._value);\n }\n }\n\n handler.done = true;\n });\n };\n}\n\nexport { SyncPromise };\n","import { getGlobalObject } from './misc';\nimport { dynamicRequire, isNodeEnv } from './node';\n\n/**\n * An object that can return the current timestamp in seconds since the UNIX epoch.\n */\ninterface TimestampSource {\n nowSeconds(): number;\n}\n\n/**\n * A TimestampSource implementation for environments that do not support the Performance Web API natively.\n *\n * Note that this TimestampSource does not use a monotonic clock. A call to `nowSeconds` may return a timestamp earlier\n * than a previously returned value. We do not try to emulate a monotonic behavior in order to facilitate debugging. It\n * is more obvious to explain \"why does my span have negative duration\" than \"why my spans have zero duration\".\n */\nconst dateTimestampSource: TimestampSource = {\n nowSeconds: () => Date.now() / 1000,\n};\n\n/**\n * A partial definition of the [Performance Web API]{@link https://developer.mozilla.org/en-US/docs/Web/API/Performance}\n * for accessing a high resolution monotonic clock.\n */\ninterface Performance {\n /**\n * The millisecond timestamp at which measurement began, measured in Unix time.\n */\n timeOrigin: number;\n /**\n * Returns the current millisecond timestamp, where 0 represents the start of measurement.\n */\n now(): number;\n}\n\n/**\n * Returns a wrapper around the native Performance API browser implementation, or undefined for browsers that do not\n * support the API.\n *\n * Wrapping the native API works around differences in behavior from different browsers.\n */\nfunction getBrowserPerformance(): Performance | undefined {\n const { performance } = getGlobalObject();\n if (!performance || !performance.now) {\n return undefined;\n }\n\n // Replace performance.timeOrigin with our own timeOrigin based on Date.now().\n //\n // This is a partial workaround for browsers reporting performance.timeOrigin such that performance.timeOrigin +\n // performance.now() gives a date arbitrarily in the past.\n //\n // Additionally, computing timeOrigin in this way fills the gap for browsers where performance.timeOrigin is\n // undefined.\n //\n // The assumption that performance.timeOrigin + performance.now() ~= Date.now() is flawed, but we depend on it to\n // interact with data coming out of performance entries.\n //\n // Note that despite recommendations against it in the spec, browsers implement the Performance API with a clock that\n // might stop when the computer is asleep (and perhaps under other circumstances). Such behavior causes\n // performance.timeOrigin + performance.now() to have an arbitrary skew over Date.now(). In laptop computers, we have\n // observed skews that can be as long as days, weeks or months.\n //\n // See https://github.com/getsentry/sentry-javascript/issues/2590.\n //\n // BUG: despite our best intentions, this workaround has its limitations. It mostly addresses timings of pageload\n // transactions, but ignores the skew built up over time that can aversely affect timestamps of navigation\n // transactions of long-lived web pages.\n const timeOrigin = Date.now() - performance.now();\n\n return {\n now: () => performance.now(),\n timeOrigin,\n };\n}\n\n/**\n * Returns the native Performance API implementation from Node.js. Returns undefined in old Node.js versions that don't\n * implement the API.\n */\nfunction getNodePerformance(): Performance | undefined {\n try {\n const perfHooks = dynamicRequire(module, 'perf_hooks') as { performance: Performance };\n return perfHooks.performance;\n } catch (_) {\n return undefined;\n }\n}\n\n/**\n * The Performance API implementation for the current platform, if available.\n */\nconst platformPerformance: Performance | undefined = isNodeEnv() ? getNodePerformance() : getBrowserPerformance();\n\nconst timestampSource: TimestampSource =\n platformPerformance === undefined\n ? dateTimestampSource\n : {\n nowSeconds: () => (platformPerformance.timeOrigin + platformPerformance.now()) / 1000,\n };\n\n/**\n * Returns a timestamp in seconds since the UNIX epoch using the Date API.\n */\nexport const dateTimestampInSeconds = dateTimestampSource.nowSeconds.bind(dateTimestampSource);\n\n/**\n * Returns a timestamp in seconds since the UNIX epoch using either the Performance or Date APIs, depending on the\n * availability of the Performance API.\n *\n * See `usingPerformanceAPI` to test whether the Performance API is used.\n *\n * BUG: Note that because of how browsers implement the Performance API, the clock might stop when the computer is\n * asleep. This creates a skew between `dateTimestampInSeconds` and `timestampInSeconds`. The\n * skew can grow to arbitrary amounts like days, weeks or months.\n * See https://github.com/getsentry/sentry-javascript/issues/2590.\n */\nexport const timestampInSeconds = timestampSource.nowSeconds.bind(timestampSource);\n\n// Re-exported with an old name for backwards-compatibility.\nexport const timestampWithMs = timestampInSeconds;\n\n/**\n * A boolean that is true when timestampInSeconds uses the Performance API to produce monotonic timestamps.\n */\nexport const usingPerformanceAPI = platformPerformance !== undefined;\n\n/**\n * The number of milliseconds since the UNIX epoch. This value is only usable in a browser, and only when the\n * performance API is available.\n */\nexport const browserPerformanceTimeOrigin = ((): number | undefined => {\n const { performance } = getGlobalObject();\n if (!performance) {\n return undefined;\n }\n if (performance.timeOrigin) {\n return performance.timeOrigin;\n }\n // While performance.timing.navigationStart is deprecated in favor of performance.timeOrigin, performance.timeOrigin\n // is not as widely supported. Namely, performance.timeOrigin is undefined in Safari as of writing.\n // Also as of writing, performance.timing is not available in Web Workers in mainstream browsers, so it is not always\n // a valid fallback. In the absence of an initial time provided by the browser, fallback to the current time from the\n // Date API.\n // eslint-disable-next-line deprecation/deprecation\n return (performance.timing && performance.timing.navigationStart) || Date.now();\n})();\n","'use strict';\n\nconst arrayMoveMutate = (array, from, to) => {\n\tconst startIndex = from < 0 ? array.length + from : from;\n\n\tif (startIndex >= 0 && startIndex < array.length) {\n\t\tconst endIndex = to < 0 ? array.length + to : to;\n\n\t\tconst [item] = array.splice(from, 1);\n\t\tarray.splice(endIndex, 0, item);\n\t}\n};\n\nconst arrayMove = (array, from, to) => {\n\tarray = [...array];\n\tarrayMoveMutate(array, from, to);\n\treturn array;\n};\n\nmodule.exports = arrayMove;\nmodule.exports.mutate = arrayMoveMutate;\n","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nconst base64 = require('base64-js')\nconst ieee754 = require('ieee754')\nconst customInspectSymbol =\n (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation\n ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation\n : null\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nconst K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n const arr = new Uint8Array(1)\n const proto = { foo: function () { return 42 } }\n Object.setPrototypeOf(proto, Uint8Array.prototype)\n Object.setPrototypeOf(arr, proto)\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n const buf = new Uint8Array(length)\n Object.setPrototypeOf(buf, Buffer.prototype)\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayView(value)\n }\n\n if (value == null) {\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof SharedArrayBuffer !== 'undefined' &&\n (isInstance(value, SharedArrayBuffer) ||\n (value && isInstance(value.buffer, SharedArrayBuffer)))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n const valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n const b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\nObject.setPrototypeOf(Buffer, Uint8Array)\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpreted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n const length = byteLength(string, encoding) | 0\n let buf = createBuffer(length)\n\n const actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n const length = array.length < 0 ? 0 : checked(array.length) | 0\n const buf = createBuffer(length)\n for (let i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayView (arrayView) {\n if (isInstance(arrayView, Uint8Array)) {\n const copy = new Uint8Array(arrayView)\n return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)\n }\n return fromArrayLike(arrayView)\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n let buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(buf, Buffer.prototype)\n\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n const len = checked(obj.length) | 0\n const buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n let x = a.length\n let y = b.length\n\n for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n let i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n const buffer = Buffer.allocUnsafe(length)\n let pos = 0\n for (i = 0; i < list.length; ++i) {\n let buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n if (pos + buf.length > buffer.length) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)\n buf.copy(buffer, pos)\n } else {\n Uint8Array.prototype.set.call(\n buffer,\n buf,\n pos\n )\n }\n } else if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n } else {\n buf.copy(buffer, pos)\n }\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n const len = string.length\n const mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n let loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n const i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n const len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (let i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n const len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (let i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n const len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (let i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n const length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n let str = ''\n const max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return ''\n}\nif (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n let x = thisEnd - thisStart\n let y = end - start\n const len = Math.min(x, y)\n\n const thisCopy = this.slice(thisStart, thisEnd)\n const targetCopy = target.slice(start, end)\n\n for (let i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n let indexSize = 1\n let arrLength = arr.length\n let valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n let i\n if (dir) {\n let foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n let found = true\n for (let j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n const remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n const strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n let i\n for (i = 0; i < length; ++i) {\n const parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n const remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n case 'latin1':\n case 'binary':\n return asciiWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n const res = []\n\n let i = start\n while (i < end) {\n const firstByte = buf[i]\n let codePoint = null\n let bytesPerSequence = (firstByte > 0xEF)\n ? 4\n : (firstByte > 0xDF)\n ? 3\n : (firstByte > 0xBF)\n ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n let secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nconst MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n const len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n let res = ''\n let i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n const len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n let out = ''\n for (let i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]]\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n const bytes = buf.slice(start, end)\n let res = ''\n // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n for (let i = 0; i < bytes.length - 1; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n const len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n const newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(newBuf, Buffer.prototype)\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUintLE =\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUintBE =\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n let val = this[offset + --byteLength]\n let mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUint8 =\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUint16LE =\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUint16BE =\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUint32LE =\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUint32BE =\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const lo = first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24\n\n const hi = this[++offset] +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24\n\n return BigInt(lo) + (BigInt(hi) << BigInt(32))\n})\n\nBuffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const hi = first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n const lo = this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last\n\n return (BigInt(hi) << BigInt(32)) + BigInt(lo)\n})\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let i = byteLength\n let mul = 1\n let val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = this[offset + 4] +\n this[offset + 5] * 2 ** 8 +\n this[offset + 6] * 2 ** 16 +\n (last << 24) // Overflow\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24)\n})\n\nBuffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last)\n})\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUintLE =\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let mul = 1\n let i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUintBE =\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let i = byteLength - 1\n let mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUint8 =\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUint16LE =\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUint16BE =\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUint32LE =\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUint32BE =\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction wrtBigUInt64LE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n return offset\n}\n\nfunction wrtBigUInt64BE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset + 7] = lo\n lo = lo >> 8\n buf[offset + 6] = lo\n lo = lo >> 8\n buf[offset + 5] = lo\n lo = lo >> 8\n buf[offset + 4] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset + 3] = hi\n hi = hi >> 8\n buf[offset + 2] = hi\n hi = hi >> 8\n buf[offset + 1] = hi\n hi = hi >> 8\n buf[offset] = hi\n return offset + 8\n}\n\nBuffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = 0\n let mul = 1\n let sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = byteLength - 1\n let mul = 1\n let sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nBuffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n const len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n const code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n } else if (typeof val === 'boolean') {\n val = Number(val)\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n let i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n const bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n const len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// CUSTOM ERRORS\n// =============\n\n// Simplified versions from Node, changed for Buffer-only usage\nconst errors = {}\nfunction E (sym, getMessage, Base) {\n errors[sym] = class NodeError extends Base {\n constructor () {\n super()\n\n Object.defineProperty(this, 'message', {\n value: getMessage.apply(this, arguments),\n writable: true,\n configurable: true\n })\n\n // Add the error code to the name to include it in the stack trace.\n this.name = `${this.name} [${sym}]`\n // Access the stack to generate the error message including the error code\n // from the name.\n this.stack // eslint-disable-line no-unused-expressions\n // Reset the name to the actual name.\n delete this.name\n }\n\n get code () {\n return sym\n }\n\n set code (value) {\n Object.defineProperty(this, 'code', {\n configurable: true,\n enumerable: true,\n value,\n writable: true\n })\n }\n\n toString () {\n return `${this.name} [${sym}]: ${this.message}`\n }\n }\n}\n\nE('ERR_BUFFER_OUT_OF_BOUNDS',\n function (name) {\n if (name) {\n return `${name} is outside of buffer bounds`\n }\n\n return 'Attempt to access memory outside buffer bounds'\n }, RangeError)\nE('ERR_INVALID_ARG_TYPE',\n function (name, actual) {\n return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`\n }, TypeError)\nE('ERR_OUT_OF_RANGE',\n function (str, range, input) {\n let msg = `The value of \"${str}\" is out of range.`\n let received = input\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n }\n msg += ` It must be ${range}. Received ${received}`\n return msg\n }, RangeError)\n\nfunction addNumericalSeparator (val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\n\n// CHECK FUNCTIONS\n// ===============\n\nfunction checkBounds (buf, offset, byteLength) {\n validateNumber(offset, 'offset')\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n boundsError(offset, buf.length - (byteLength + 1))\n }\n}\n\nfunction checkIntBI (value, min, max, buf, offset, byteLength) {\n if (value > max || value < min) {\n const n = typeof min === 'bigint' ? 'n' : ''\n let range\n if (byteLength > 3) {\n if (min === 0 || min === BigInt(0)) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +\n `${(byteLength + 1) * 8 - 1}${n}`\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`\n }\n throw new errors.ERR_OUT_OF_RANGE('value', range, value)\n }\n checkBounds(buf, offset, byteLength)\n}\n\nfunction validateNumber (value, name) {\n if (typeof value !== 'number') {\n throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n}\n\nfunction boundsError (value, length, type) {\n if (Math.floor(value) !== value) {\n validateNumber(value, type)\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)\n }\n\n if (length < 0) {\n throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()\n }\n\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset',\n `>= ${type ? 1 : 0} and <= ${length}`,\n value)\n}\n\n// HELPER FUNCTIONS\n// ================\n\nconst INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n let codePoint\n const length = string.length\n let leadSurrogate = null\n const bytes = []\n\n for (let i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n let c, hi, lo\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n let i\n for (i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n// Create lookup table for `toString('hex')`\n// See: https://github.com/feross/buffer/issues/219\nconst hexSliceLookupTable = (function () {\n const alphabet = '0123456789abcdef'\n const table = new Array(256)\n for (let i = 0; i < 16; ++i) {\n const i16 = i * 16\n for (let j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j]\n }\n }\n return table\n})()\n\n// Return not function with Error if BigInt not supported\nfunction defineBigIntMethod (fn) {\n return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn\n}\n\nfunction BufferBigIntNotDefined () {\n throw new Error('BigInt not supported')\n}\n","const core = require('@citation-js/core')\n\nrequire('@citation-js/plugin-bibjson')\nrequire('@citation-js/plugin-bibtex')\nrequire('@citation-js/plugin-csl')\nrequire('@citation-js/plugin-doi')\nrequire('@citation-js/plugin-ris')\nrequire('@citation-js/plugin-wikidata')\n\nconst citeproc = require('citeproc')\nconst name = require('@citation-js/name')\nconst date = require('@citation-js/date')\n\nfunction clone (obj) {\n const copy = {}\n for (const key in obj) {\n copy[key] = typeof obj[key] === 'object' ? clone(obj[key]) : obj[key]\n }\n return copy\n}\n\nconst attr = {\n getAttributedEntry (string, name, value) {\n return string.replace(/^\\s*<[a-z]+/i, `$& data-${name}=\"${value}\"`)\n },\n getPrefixedEntry (value, id) {\n return attr.getAttributedEntry(value, 'csl-entry-id', id)\n },\n getWrappedEntry (value, source, affixes) {\n const getAffix = (source, affix) => typeof affix === 'function' ? affix(source) : affix == null ? affix : ''\n\n if (affixes.prepend == null && affixes.append == null) {\n return value\n }\n\n const prefix = getAffix(source, affixes.prepend)\n const suffix = getAffix(source, affixes.append)\n let start = ''\n let end = ''\n const match = value.match(/^([^>]+>)([\\s\\S]+)(<[^<]+)$/i)\n if (match) {\n start = match[1]\n value = match[2]\n end = match[3]\n }\n\n return start + prefix + value + suffix + end\n }\n}\n\nfunction Cite (data, opts) {\n if (!(this instanceof Cite)) {\n return new Cite(data, opts)\n }\n\n const self = new core.Cite(data, opts)\n this._options = self._options\n this.log = self.log\n this.data = self.data\n}\n\nCite.prototype = Object.create(core.Cite.prototype)\n\nCite.async = core.Cite.async\nCite.validateOptions = core.Cite.validateOptions\nCite.validateOutputOptions = core.Cite.validateOutputOptions\n\nCite.input = core.plugins.input.chain\nCite.inputAsync = core.plugins.input.chainAsync\n\nCite.util = Object.assign({ attr }, core.util)\nCite.version = {\n cite: core.version,\n citeproc: citeproc.PROCESSOR_VERSION\n}\n\nconst CSL = core.plugins.config.get('@csl')\n\nCite.CSL = {\n engine: require('@citation-js/plugin-csl/lib/engines').fetchEngine,\n item (data) {\n return id => data.find(entry => entry.id === id)\n },\n locale (lang) {\n return CSL.styles.get(CSL.styles.has(lang) ? lang : 'en-US')\n },\n style (style) {\n return CSL.templates.get(CSL.templates.has(style) ? style : 'apa')\n },\n register: {\n addTemplate: CSL.templates.add.bind(CSL.templates),\n getTemplate: CSL.templates.get.bind(CSL.templates),\n hasTemplate: CSL.templates.has.bind(CSL.templates),\n addLocale: CSL.locales.add.bind(CSL.locales),\n getLocale: CSL.locales.get.bind(CSL.locales),\n hasLocale: CSL.locales.has.bind(CSL.locales)\n }\n}\n\nCite.plugins = clone(core.plugins)\ndelete Cite.plugins.input.util.clean\n\nCite.parse = Object.assign({\n input: {\n chain: core.plugins.input.chain,\n chainAsync: core.plugins.input.chainAsync,\n chainLink: core.plugins.input.chainLink,\n chainLinkAsync: core.plugins.input.chainLinkAsync,\n data: core.plugins.input.data,\n dataAsync: core.plugins.input.dataAsync,\n type: core.plugins.input.type,\n async: {\n chain: core.plugins.input.chainAsync,\n chainLink: core.plugins.input.chainLinkAsync,\n data: core.plugins.input.dataAsync\n }\n },\n name: name.parse,\n date: date.parse,\n csl: core.plugins.input.util.clean,\n\n bibjson: require('@citation-js/plugin-bibjson').parsers.json.record,\n bibtex: ((parsers, entries, types) => ({\n json (entries) {\n return entries.parse([].concat(entries))\n },\n prop (field, value) {\n const parsed = entries.parse([{\n type: 'book',\n properties: { [field]: value }\n }])[0]\n const key = Object.keys(parsed).find(([key]) => key !== 'type')\n return [key, parsed[key]]\n },\n text (file) {\n return parsers['@biblatex/text'].parse(file)\n },\n type (type) {\n return types[type] || 'book'\n }\n }))(\n require('@citation-js/plugin-bibtex/lib/input').formats,\n require('@citation-js/plugin-bibtex/lib/input/entries'),\n require('@citation-js/plugin-bibtex/lib/mapping/bibtexTypes').target\n ),\n bibtxt: ((bibtxt) => ({\n text: bibtxt.parse,\n textEntry: bibtxt.textEntry\n }))(require('@citation-js/plugin-bibtex/lib/input/bibtxt')),\n doi: ((doi) => ({\n api: doi.parsers.api.parse,\n id: doi.parsers.id.parse,\n async: {\n api: doi.parsers.api.parseAsync\n }\n }))(require('@citation-js/plugin-doi')),\n json: require('@citation-js/core/lib/plugin-common/input').parsers.json.parse,\n wikidata: ((wikidata) => ({\n json: wikidata.parsers.entity.parse,\n list: wikidata.parsers.id.parse,\n prop: wikidata.parsers.prop.parse,\n type: wikidata.parsers.prop.parseType,\n async: {\n json: wikidata.parsers.entity.parseAsync,\n prop (...args) {\n return Promise.resolve(wikidata.parsers.prop.parse.apply(this, args))\n }\n }\n }))(require('@citation-js/plugin-wikidata'))\n}, Cite.plugins.input)\n\nCite.get = Object.assign({\n dict: Cite.plugins.dict,\n\n name: name.format,\n date: date.format,\n\n bibtex: ((formatters, entries, converters, types) => ({\n json (entry) {\n return entries.formatBibtex([entry])[0]\n },\n label ({ id, 'citation-label': label, author, issued, 'year-suffix': suffix, title }) {\n return converters.LABEL.toSource(id, label, author, issued, suffix, title)\n },\n text (entries, asHtml) {\n return formatters.bibtex(entries, { format: asHtml ? 'html' : 'text' })\n },\n type (type) {\n return types[type] || 'misc'\n }\n }))(\n require('@citation-js/plugin-bibtex/lib/output').default,\n require('@citation-js/plugin-bibtex/lib/output/entries'),\n require('@citation-js/plugin-bibtex/lib/mapping/shared').Converters,\n require('@citation-js/plugin-bibtex/lib/mapping/bibtexTypes').target\n ),\n bibtxt: require('@citation-js/plugin-bibtex/lib/output/bibtxt').format,\n json: require('@citation-js/core/lib/plugin-common/output').default.data,\n label: require('@citation-js/core/lib/plugin-common/output').default.label\n}, Cite.plugins.output)\n\nmodule.exports = Cite\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"format\", {\n enumerable: true,\n get: function get() {\n return _output.default;\n }\n});\nObject.defineProperty(exports, \"parse\", {\n enumerable: true,\n get: function get() {\n return _input.default;\n }\n});\n\nvar _input = _interopRequireDefault(require(\"./input\"));\n\nvar _output = _interopRequireDefault(require(\"./output\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nconst monthMap = {\n jan: 1,\n feb: 2,\n mar: 3,\n apr: 4,\n may: 5,\n jun: 6,\n jul: 7,\n aug: 8,\n sep: 9,\n oct: 10,\n nov: 11,\n dec: 12\n};\nconst dateRangeDelimiters = / (?:to|[-/]) | ?(?:--|[–—]) ?/;\nconst dateRangePattern = /^(\\d{4}-\\d{2}-\\d{2})\\/(\\d{4}-\\d{2}-\\d{2})$/;\n\nfunction getMonth(monthName) {\n return monthMap[monthName.toLowerCase().slice(0, 3)];\n}\n\nfunction parseEpoch(date) {\n const epoch = new Date(date);\n\n if (typeof date === 'number' && !isNaN(epoch.valueOf())) {\n return [epoch.getFullYear(), epoch.getMonth() + 1, epoch.getDate()];\n } else {\n return null;\n }\n}\n\nconst parseIso8601 = function parseIso8601(date) {\n const pattern = /^(\\d{4}|[-+]\\d{6,})-(\\d{2})(?:-(\\d{2}))?/;\n\n if (typeof date !== 'string' || !pattern.test(date)) {\n return null;\n }\n\n const _date$match = date.match(pattern),\n _date$match2 = _slicedToArray(_date$match, 4),\n year = _date$match2[1],\n month = _date$match2[2],\n day = _date$match2[3];\n\n if (!+month) {\n return [year];\n } else if (!+day) {\n return [year, month];\n } else {\n return [year, month, day];\n }\n};\n\nconst parseRfc2822 = function parseRfc2822(date) {\n const pattern = /^(?:[a-z]{3},\\s*)?(\\d{1,2}) ([a-z]{3}) (\\d{4,})/i;\n\n if (typeof date !== 'string' || !pattern.test(date)) {\n return null;\n }\n\n let _date$match3 = date.match(pattern),\n _date$match4 = _slicedToArray(_date$match3, 4),\n day = _date$match4[1],\n month = _date$match4[2],\n year = _date$match4[3];\n\n month = getMonth(month);\n\n if (!month) {\n return null;\n }\n\n return [year, month, day];\n};\n\nfunction parseAmericanDay(date) {\n const pattern = /^(\\d{1,2})\\/(\\d{1,2})\\/(\\d{2}(?:\\d{2})?)/;\n\n if (typeof date !== 'string' || !pattern.test(date)) {\n return null;\n }\n\n const _date$match5 = date.match(pattern),\n _date$match6 = _slicedToArray(_date$match5, 4),\n month = _date$match6[1],\n day = _date$match6[2],\n year = _date$match6[3];\n\n const check = new Date(year, month, day);\n\n if (check.getMonth() === parseInt(month)) {\n return [year, month, day];\n } else {\n return null;\n }\n}\n\nfunction parseDay(date) {\n const pattern = /^(\\d{1,2})[ .\\-/](\\d{1,2}|[a-z]{3,10})[ .\\-/](-?\\d+)/i;\n const reversePattern = /^(-?\\d+)[ .\\-/](\\d{1,2}|[a-z]{3,10})[ .\\-/](\\d{1,2})/i;\n let year;\n let month;\n let day;\n\n if (typeof date !== 'string') {\n return null;\n } else if (pattern.test(date)) {\n var _date$match7 = date.match(pattern);\n\n var _date$match8 = _slicedToArray(_date$match7, 4);\n\n day = _date$match8[1];\n month = _date$match8[2];\n year = _date$match8[3];\n } else if (reversePattern.test(date)) {\n var _date$match9 = date.match(reversePattern);\n\n var _date$match10 = _slicedToArray(_date$match9, 4);\n\n year = _date$match10[1];\n month = _date$match10[2];\n day = _date$match10[3];\n } else {\n return null;\n }\n\n if (getMonth(month)) {\n month = getMonth(month);\n } else if (isNaN(month)) {\n return null;\n }\n\n return [year, month, day];\n}\n\nfunction parseMonth(date) {\n const pattern = /^([a-z]{3,10}|-?\\d+)[^\\w-]+([a-z]{3,10}|-?\\d+)$/i;\n\n if (typeof date === 'string' && pattern.test(date)) {\n const values = date.match(pattern).slice(1, 3);\n let month;\n\n if (getMonth(values[1])) {\n month = getMonth(values.pop());\n } else if (getMonth(values[0])) {\n month = getMonth(values.shift());\n } else if (values.some(isNaN) || values.every(value => +value < 0)) {\n return null;\n } else if (+values[0] < 0) {\n month = values.pop();\n } else if (+values[0] > +values[1] && +values[1] > 0) {\n month = values.pop();\n } else {\n month = values.shift();\n }\n\n const year = values.pop();\n return [year, month];\n } else {\n return null;\n }\n}\n\nfunction parseYear(date) {\n if (typeof date !== 'string') {\n return null;\n }\n\n const adBc = date.match(/^(\\d+) ?(a\\.?d\\.?|b\\.?c\\.?)$/i);\n\n if (adBc) {\n const _adBc$slice = adBc.slice(1),\n _adBc$slice2 = _slicedToArray(_adBc$slice, 2),\n date = _adBc$slice2[0],\n suffix = _adBc$slice2[1];\n\n return [date * (suffix.toLowerCase()[0] === 'a' ? 1 : -1)];\n } else if (/^-?\\d+$/.test(date)) {\n return [date];\n } else {\n return null;\n }\n}\n\nfunction parseDateParts(value) {\n const dateParts = parseEpoch(value) || parseIso8601(value) || parseRfc2822(value) || parseAmericanDay(value) || parseDay(value) || parseMonth(value) || parseYear(value);\n return dateParts && dateParts.map(string => parseInt(string));\n}\n\nfunction splitDateRange(range) {\n if (dateRangePattern.test(range)) {\n return range.match(dateRangePattern).slice(1, 3);\n } else {\n return range.split(dateRangeDelimiters);\n }\n}\n\nfunction parseDate(rangeStart, rangeEnd) {\n const range = [];\n const rangeStartAsRange = typeof rangeStart === 'string' && splitDateRange(rangeStart);\n\n if (rangeEnd) {\n range.push(rangeStart, rangeEnd);\n } else if (rangeStartAsRange && rangeStartAsRange.length === 2) {\n range.push(...rangeStartAsRange);\n } else {\n range.push(rangeStart);\n }\n\n const dateParts = range.map(parseDateParts);\n\n if (dateParts.filter(Boolean).length === range.length) {\n return {\n 'date-parts': dateParts\n };\n } else {\n return {\n raw: rangeEnd ? range.join('/') : rangeStart\n };\n }\n}\n\nvar _default = parseDate;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nfunction padStart(str, len, chr) {\n if (str.length >= len) {\n return str;\n }\n\n while (str.length < len) {\n str = chr + str;\n }\n\n return str.slice(-len);\n}\n\nconst getDate = function getDate(date, delimiter = '-') {\n if (!date['date-parts']) {\n return date.raw;\n }\n\n const dateParts = date['date-parts'][0].map(part => part.toString());\n\n switch (dateParts.length) {\n case 3:\n dateParts[2] = padStart(dateParts[2], 2, '0');\n\n case 2:\n dateParts[1] = padStart(dateParts[1], 2, '0');\n\n case 1:\n dateParts[0] = padStart(dateParts[0], 4, '0');\n break;\n }\n\n return dateParts.join(delimiter);\n};\n\nvar _default = getDate;\nexports.default = _default;","/*\nCopyright (c) 2009-2019 Frank Bennett\n\n\tThis program is free software: you can redistribute it and/or\n\tmodify it under EITHER\n\n * the terms of the Common Public Attribution License (CPAL) as\n\t published by the Open Source Initiative, either version 1 of\n\t the CPAL, or (at your option) any later version; OR\n\n * the terms of the GNU Affero General Public License (AGPL)\n as published by the Free Software Foundation, either version\n 3 of the AGPL, or (at your option) any later version.\n\n\tThis program is distributed in the hope that it will be useful,\n\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n\tAffero General Public License for more details.\n\n\tYou should have received copies of the Common Public Attribution\n License and of the GNU Affero General Public License along with\n this program. If not, see or\n respectively.\n*/\n/*global CSL: true */\n\n/**\n * A Javascript implementation of the CSL citation formatting language.\n *\n *

    A configured instance of the process is built in two stages,\n * using {@link CSL.Core.Build} and {@link CSL.Core.Configure}.\n * The former sets up hash-accessible locale data and imports the CSL format file\n * to be applied to the citations,\n * transforming it into a one-dimensional token list, and\n * registering functions and parameters on each token as appropriate.\n * The latter sets jump-point information\n * on tokens that constitute potential branch\n * points, in a single back-to-front scan of the token list.\n * This\n * yields a token list that can be executed front-to-back by\n * body methods available on the\n * {@link CSL.Engine} class.

    \n *\n *

    This top-level {@link CSL} object itself carries\n * constants that are needed during processing.

    \n * @namespace A CSL citation formatter.\n */\n\n// IE6 does not implement Array.indexOf().\n// IE7 neither, according to rumour.\n\n\n// Potential skip words:\n// under; along; out; between; among; outside; inside; amid; amidst; against; toward; towards.\n// See https://forums.zotero.org/discussion/30484/?Focus=159613#Comment_159613\n\n'use strict';\n\n\nvar CSL = {\n\n PROCESSOR_VERSION: \"1.4.61\",\n\n error: function(str) { // default error function\n if (\"undefined\" === typeof Error) {\n throw new Error(\"citeproc-js error: \" + str);\n } else {\n throw \"citeproc-js error: \" + str;\n }\n },\n debug: function(str) { // default debug function\n if (\"undefined\" === typeof console) {\n dump(\"CSL: \" + str + \"\\n\");\n } else {\n console.log(\"citeproc-js warning: \" + str);\n }\n },\n\n toLocaleUpperCase(str) {\n var arr = this.tmp.lang_array;\n try {\n str = str.toLocaleUpperCase(arr);\n } catch (e) {\n str = str.toUpperCase();\n }\n return str;\n },\n\n toLocaleLowerCase(str) {\n var arr = this.tmp.lang_array;\n try {\n str = str.toLocaleLowerCase(arr);\n } catch (e) {\n str = str.toLowerCase();\n }\n return str;\n },\n\n LOCATOR_LABELS_REGEXP: new RegExp(\"^((vrs|sv|subpara|op|subch|add|amend|annot|app|art|bibliog|bk|ch|cl|col|cmt|dec|dept|div|ex|fig|fld|fol|n|hypo|illus|intro|l|no|p|pp|para|pt|pmbl|princ|pub|r|rn|sched|sec|ser|subdiv|subsec|supp|tbl|tit|vol)\\\\.)\\\\s+(.*)\"),\n\n STATUTE_SUBDIV_PLAIN_REGEX: /(?:(?:^| )(?:vrs|sv|subpara|op|subch|add|amend|annot|app|art|bibliog|bk|ch|cl|col|cmt|dec|dept|div|ex|fig|fld|fol|n|hypo|illus|intro|l|no|p|pp|para|pt|pmbl|princ|pub|r|rn|sched|sec|ser|subdiv|subsec|supp|tbl|tit|vol)\\. *)/,\n STATUTE_SUBDIV_PLAIN_REGEX_FRONT: /(?:^\\s*[.,;]*\\s*(?:vrs|sv|subpara|op|subch|add|amend|annot|app|art|bibliog|bk|ch|cl|col|cmt|dec|dept|div|ex|fig|fld|fol|n|hypo|illus|intro|l|no|p|pp|para|pt|pmbl|princ|pub|r|rn|sched|sec|ser|subdiv|subsec|supp|tbl|tit|vol)\\. *)/,\n \n STATUTE_SUBDIV_STRINGS: {\n \"vrs.\": \"verse\",\n\t\t\"sv.\": \"sub-verbo\",\n \"subpara.\": \"subparagraph\",\n \"op.\": \"opus\",\n \"subch.\": \"subchapter\",\n \"add.\": \"addendum\",\n \"amend.\": \"amendment\",\n \"annot.\": \"annotation\",\n \"app.\": \"appendix\",\n \"art.\": \"article\",\n \"bibliog.\": \"bibliography\",\n \"bk.\": \"book\",\n \"ch.\": \"chapter\",\n \"cl.\": \"clause\",\n \"col.\": \"column\",\n \"cmt.\": \"comment\",\n \"dec.\": \"decision\",\n \"dept.\": \"department\",\n \"ex.\": \"example\",\n \"fig.\": \"figure\",\n \"fld.\": \"field\",\n \"fol.\": \"folio\",\n \"n.\": \"note\",\n \"hypo.\": \"hypothetical\",\n \"illus.\": \"illustration\",\n \"intro.\": \"introduction\",\n \"l.\": \"line\",\n \"no.\": \"issue\",\n \"p.\": \"page\",\n \"pp.\": \"page\",\n \"para.\": \"paragraph\",\n \"pt.\": \"part\",\n \"pmbl.\": \"preamble\",\n \"princ.\": \"principle\",\n \"pub.\": \"publication\",\n \"r.\": \"rule\",\n \"rn.\": \"randnummer\",\n \"sched.\": \"schedule\",\n \"sec.\": \"section\",\n \"ser.\": \"series,\",\n \"subdiv.\": \"subdivision\",\n \"subsec.\": \"subsection\",\n \"supp.\": \"supplement\",\n \"tbl.\": \"table\",\n \"tit.\": \"title\",\n \"vol.\": \"volume\"\n },\n STATUTE_SUBDIV_STRINGS_REVERSE: {\n \"verse\": \"vrs.\",\n\t\t\"sub-verbo\": \"sv.\",\n \"sub verbo\": \"sv.\",\n \"subparagraph\": \"subpara.\",\n \"opus\": \"op.\",\n \"subchapter\": \"subch.\",\n \"addendum\": \"add.\",\n \"amendment\": \"amend.\",\n \"annotation\": \"annot.\",\n \"appendix\": \"app.\",\n \"article\": \"art.\",\n \"bibliography\": \"bibliog.\",\n \"book\": \"bk.\",\n \"chapter\": \"ch.\",\n \"clause\": \"cl.\",\n \"column\": \"col.\",\n \"comment\": \"cmt.\",\n \"decision\": \"dec.\",\n \"department\": \"dept.\",\n \"example\": \"ex.\",\n \"figure\": \"fig.\",\n \"field\": \"fld.\",\n \"folio\": \"fol.\",\n \"note\": \"n.\",\n \"hypothetical\": \"hypo.\",\n \"illustration\": \"illus.\",\n \"introduction\": \"intro.\",\n \"line\": \"l.\",\n \"issue\": \"no.\",\n \"page\": \"p.\",\n \"paragraph\": \"para.\",\n \"part\": \"pt.\",\n \"preamble\": \"pmbl.\",\n \"principle\": \"princ.\",\n \"publication\": \"pub.\",\n \"rule\": \"r.\",\n \"randnummer\": \"rn.\",\n \"schedule\": \"sched.\",\n \"section\": \"sec.\",\n \"series,\": \"ser.\",\n \"subdivision\": \"subdiv.\",\n \"subsection\": \"subsec.\",\n \"supplement\": \"supp.\",\n \"table\": \"tbl.\",\n \"title\": \"tit.\",\n \"volume\": \"vol.\"\n },\n\n LOCATOR_LABELS_MAP: {\n \"vrs\": \"verse\",\n\t\t\"sv\": \"sub-verbo\",\n \"subpara\": \"subparagraph\",\n \"op\": \"opus\",\n \"subch\": \"subchapter\",\n \"add\": \"addendum\",\n \"amend\": \"amendment\",\n \"annot\": \"annotation\",\n \"app\": \"appendix\",\n \"art\": \"article\",\n \"bibliog\": \"bibliography\",\n \"bk\": \"book\",\n \"ch\": \"chapter\",\n \"cl\": \"clause\",\n \"col\": \"column\",\n \"cmt\": \"comment\",\n \"dec\": \"decision\",\n \"dept\": \"department\",\n \"ex\": \"example\",\n \"fig\": \"figure\",\n \"fld\": \"field\",\n \"fol\": \"folio\",\n \"n\": \"note\",\n \"hypo\": \"hypothetical\",\n \"illus\": \"illustration\",\n \"intro\": \"introduction\",\n \"l\": \"line\",\n \"no\": \"issue\",\n \"p\": \"page\",\n \"pp\": \"page\",\n \"para\": \"paragraph\",\n \"pt\": \"part\",\n \"pmbl\": \"preamble\",\n \"princ\": \"principle\",\n \"pub\": \"publication\",\n \"r\": \"rule\",\n \"rn\": \"randnummer\",\n \"sched\": \"schedule\",\n \"sec\": \"section\",\n \"ser\": \"series,\",\n \"subdiv\": \"subdivision\",\n \"subsec\": \"subsection\",\n \"supp\": \"supplement\",\n \"tbl\": \"table\",\n \"tit\": \"title\",\n \"vol\": \"volume\"\n },\n MODULE_MACROS: {\n \"juris-pretitle\": true,\n \"juris-title\": true,\n \"juris-pretitle-short\": true,\n \"juris-title-short\": true,\n \"juris-main\": true,\n \"juris-main-short\": true,\n \"juris-tail\": true,\n \"juris-tail-short\": true,\n \"juris-locator\": true\n },\n MODULE_TYPES: {\n \"legal_case\": true,\n \"legislation\": true,\n \"bill\": true,\n \"hearing\": true,\n \"gazette\": true,\n \"report\": true,\n \"regulation\": true,\n \"standard\": true,\n \"patent\": true,\n \"locator\": true\n },\n checkNestedBrace: function(state) {\n if (state.opt.xclass === \"note\") {\n this.depth = 0;\n this.update = function(str) {\n \n // Receives affix string, returns with flipped parens.\n \n var str = str ? str : \"\";\n var lst = str.split(/([\\(\\)])/);\n for (var i=1,ilen=lst.length;i -1; j--) {\n\t\t\t\t if (state.opt.availableAbbrevDomains[country].indexOf(itemDomainPreference[j]) > -1) {\n\t\t\t\t\t domain = itemDomainPreference[j];\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t if (!domain && globalDomainPreference) {\n\t\t\t for (var j=globalDomainPreference.length-1; j > -1; j--) {\n\t\t\t\t if (state.opt.availableAbbrevDomains[country].indexOf(globalDomainPreference[j]) > -1) {\n\t\t\t\t\t domain = globalDomainPreference[j];\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n }\n return domain;\n },\n \n FIELD_CATEGORY_REMAP: {\n \"title\": \"title\",\n \"container-title\": \"container-title\",\n \"collection-title\": \"collection-title\",\n \"country\": \"place\",\n \"number\": \"number\",\n \"place\": \"place\",\n \"archive\": \"container-title\",\n \"title-short\": \"title\",\n \"genre\": \"title\",\n \"event\": \"title\",\n \"medium\": \"title\",\n\t\t\"archive-place\": \"place\",\n\t\t\"publisher-place\": \"place\",\n\t\t\"event-place\": \"place\",\n\t\t\"jurisdiction\": \"place\",\n\t\t\"language-name\": \"place\",\n\t\t\"language-name-original\": \"place\",\n \"call-number\": \"number\",\n \"chapter-number\": \"number\",\n \"collection-number\": \"number\",\n \"edition\": \"number\",\n \"page\": \"number\",\n \"issue\": \"number\",\n \"locator\": \"number\",\n \"locator-extra\": \"number\",\n \"number-of-pages\": \"number\",\n \"number-of-volumes\": \"number\",\n \"volume\": \"number\",\n \"citation-number\": \"number\",\n \"publisher\": \"institution-part\"\n },\n \n parseLocator: function(item) {\n if (this.opt.development_extensions.locator_date_and_revision) {\n // Break out locator elements if necessary\n if (item.locator) {\n item.locator = \"\" + item.locator;\n var idx = item.locator.indexOf(\"|\");\n if (idx > -1) {\n var raw_locator = item.locator;\n item.locator = raw_locator.slice(0, idx);\n raw_locator = raw_locator.slice(idx + 1);\n var m = raw_locator.match(/^([0-9]{4}-[0-9]{2}-[0-9]{2}).*/);\n if (m) {\n item[\"locator-date\"] = this.fun.dateparser.parseDateToObject(m[1]);\n raw_locator = raw_locator.slice(m[1].length);\n }\n item[\"locator-extra\"] = raw_locator.replace(/^\\s+/, \"\").replace(/\\s+$/, \"\");\n }\n }\n }\n if (item.locator) {\n item.locator = (\"\" + item.locator).replace(/\\s+$/, '');\n }\n return item;\n },\n\n normalizeLocaleStr: function(str) {\n if (!str) {\n return;\n }\n var lst = str.split('-');\n lst[0] = lst[0].toLowerCase();\n if (lst[1]) {\n lst[1] = lst[1].toUpperCase();\n }\n return lst.join(\"-\");\n },\n\n parseNoteFieldHacks: function(Item, validFieldsForType, allowDateOverride) {\n if (\"string\" !== typeof Item.note) {\n return;\n }\n var elems = [];\n var lines = Item.note.split('\\n');\n // Normalize entries\n for (var i=0, ilen=lines.length; i0 || j>1) && !elems[j-1].match(CSL.NOTE_FIELD_REGEXP)) {\n break;\n } else {\n elems[j] = '\\n' + elems[j].slice(2,-1).trim() + '\\n';\n }\n }\n lines[i] = elems.join('');\n }\n }\n // Resplit\n lines = lines.join('\\n').split('\\n');\n var offset = 0;\n var names = {};\n for (var i=0,ilen=lines.length;i -1) {\n if (!Item[key] || allowDateOverride) {\n Item[key] = CSL.DateParser.parseDateToArray(val);\n if (!validFieldsForType || (validFieldsForType[key] && this.isDateString(val))) {\n lines[i] = \"\";\n }\n }\n } else if (!Item[key]) {\n if (CSL.NAME_VARIABLES.indexOf(key.replace(/^alt-/, \"\")) > -1) {\n if (!names[key]) {\n names[key] = [];\n }\n var lst = val.split(/\\s*\\|\\|\\s*/);\n if (lst.length === 1) {\n names[key].push({literal:lst[0]});\n } else if (lst.length === 2) {\n var name = {family:lst[0],given:lst[1]};\n CSL.parseParticles(name);\n names[key].push(name);\n }\n } else {\n Item[key] = val;\n }\n if (!validFieldsForType || validFieldsForType[key]) {\n lines[i] = \"\";\n }\n }\n }\n for (var key in names) {\n Item[key] = names[key];\n }\n // Final cleanup for validCslFields only: eliminate blank lines, add blank line to text\n if (validFieldsForType) {\n if (lines[offset].trim()) {\n lines[offset] = '\\n' + lines[offset];\n }\n for (var i=offset-1;i>-1;i--) {\n if (!lines[i].trim()) {\n lines = lines.slice(0, i).concat(lines.slice(i + 1));\n }\n }\n }\n Item.note = lines.join(\"\\n\").trim();\n },\n\n checkPrefixSpaceAppend: function (state, prefix) {\n if (!prefix) {\n prefix = \"\";\n }\n var sp = \"\";\n // We need the raw string, without decorations\n // of any kind. Markup scheme is known, though, so\n // markup can be safely stripped at string level.\n //\n // U+201d = right double quotation mark\n // U+2019 = right single quotation mark\n // U+00bb = right double angle bracket (guillemet)\n // U+202f = non-breaking thin space\n // U+00a0 = non-breaking space\n var test_prefix = prefix.replace(/<[^>]+>/g, \"\").replace(/[\"'\\u201d\\u2019\\u00bb\\u202f\\u00a0 ]+$/g,\"\");\n var test_char = test_prefix.slice(-1);\n if (test_prefix.match(CSL.ENDSWITH_ROMANESQUE_REGEXP)) {\n sp = \" \";\n } else if (CSL.TERMINAL_PUNCTUATION.slice(0,-1).indexOf(test_char) > -1) {\n sp = \" \";\n } else if (test_char.match(/[\\)\\],0-9]/)) {\n sp = \" \";\n }\n // Protect against double spaces, which would trigger an extra,\n // explicit, non-breaking space.\n var prefix = (prefix + sp).replace(/\\s+/g, \" \");\n return prefix;\n },\n\n checkIgnorePredecessor: function(state, prefix) {\n var ignorePredecessor = false;\n var test_prefix = prefix.replace(/<[^>]+>/g, \"\").replace(/[\"'\\u201d\\u2019\\u00bb\\u202f\\u00a0 ]+$/g,\"\");\n var test_char = test_prefix.slice(-1);\n if (CSL.TERMINAL_PUNCTUATION.slice(0,-1).indexOf(test_char) > -1 && prefix.trim().indexOf(\" \") > -1) {\n state.tmp.term_predecessor = false;\n return true;\n }\n return false;\n },\n\n checkSuffixSpacePrepend: function(state, suffix) {\n if (!suffix) {\n return \"\";\n }\n if (suffix.match(CSL.STARTSWITH_ROMANESQUE_REGEXP) || ['[','('].indexOf(suffix.slice(0,1)) > -1) {\n suffix = \" \" + suffix;\n }\n return suffix;\n },\n \n GENDERS: [\"masculine\", \"feminine\"],\n \n ERROR_NO_RENDERED_FORM: 1,\n\n PREVIEW: \"Just for laughs.\",\n ASSUME_ALL_ITEMS_REGISTERED: 2,\n\n START: 0,\n END: 1,\n SINGLETON: 2,\n\n SEEN: 6,\n SUCCESSOR: 3,\n SUCCESSOR_OF_SUCCESSOR: 4,\n SUPPRESS: 5,\n\n SINGULAR: 0,\n PLURAL: 1,\n\n LITERAL: true,\n\n BEFORE: 1,\n AFTER: 2,\n\n DESCENDING: 1,\n ASCENDING: 2,\n\n PRIMARY: 1,\n SECONDARY: 2,\n \n POSITION_FIRST: 0,\n POSITION_SUBSEQUENT: 1,\n POSITION_IBID: 2,\n POSITION_IBID_WITH_LOCATOR: 3,\n POSITION_CONTAINER_SUBSEQUENT: 4,\n\n POSITION_MAP: {\n \"0\": 0,\n \"4\": 1,\n \"1\": 2,\n \"2\": 3,\n \"3\": 4\n },\n \n POSITION_TEST_VARS: [\"position\", \"first-reference-note-number\", \"near-note\"],\n\n AREAS: [\"citation\", \"citation_sort\", \"bibliography\", \"bibliography_sort\", \"intext\"],\n\n CITE_FIELDS: [\"first-reference-note-number\", \"first-container-reference-note-number\", \"locator\", \"locator-extra\"],\n\n SWAPPING_PUNCTUATION: [\".\", \"!\", \"?\", \":\", \",\"],\n TERMINAL_PUNCTUATION: [\":\", \".\", \";\", \"!\", \"?\", \" \"],\n\n // update modes\n NONE: 0,\n NUMERIC: 1,\n POSITION: 2,\n TRIGRAPH: 3,\n\n DATE_PARTS: [\"year\", \"month\", \"day\"],\n DATE_PARTS_ALL: [\"year\", \"month\", \"day\", \"season\"],\n DATE_PARTS_INTERNAL: [\"year\", \"month\", \"day\", \"year_end\", \"month_end\", \"day_end\"],\n\n NAME_PARTS: [\"non-dropping-particle\", \"family\", \"given\", \"dropping-particle\", \"suffix\", \"literal\"],\n\n DISAMBIGUATE_OPTIONS: [\n \"disambiguate-add-names\",\n \"disambiguate-add-givenname\",\n \"disambiguate-add-year-suffix\"\n ],\n\n GIVENNAME_DISAMBIGUATION_RULES: [\n \"all-names\",\n \"all-names-with-initials\",\n \"primary-name\",\n \"primary-name-with-initials\",\n \"by-cite\"\n ],\n\n NAME_ATTRIBUTES: [\n \"and\",\n \"delimiter-precedes-last\",\n \"delimiter-precedes-et-al\",\n \"initialize-with\",\n \"initialize\",\n \"name-as-sort-order\",\n \"sort-separator\",\n \"et-al-min\",\n \"et-al-use-first\",\n \"et-al-subsequent-min\",\n \"et-al-subsequent-use-first\",\n \"form\",\n \"prefix\",\n \"suffix\",\n \"delimiter\"\n ],\n\n LOOSE: 0,\n STRICT: 1,\n TOLERANT: 2,\n\n PREFIX_PUNCTUATION: /[.;:]\\s*$/,\n SUFFIX_PUNCTUATION: /^\\s*[.;:,\\(\\)]/,\n\n NUMBER_REGEXP: /(?:^\\d+|\\d+$)/,\n //\n // \\u0400-\\u042f are cyrillic and extended cyrillic capitals\n // this is not fully smart yet. can't do what this was trying to do\n // with regexps, actually; we want to identify strings with a leading\n // capital letter, and any subsequent capital letters. Have to compare\n // locale caps version with existing version, character by character.\n // hard stuff, but if it breaks, that's what to do.\n // \\u0600-\\u06ff is Arabic/Persian\n // \\u200c-\\u200e and \\u202a-\\u202e are special spaces and left-right \n // control characters\n\n\n\n NAME_INITIAL_REGEXP: /^([A-Z\\u0e01-\\u0e5b\\u00c0-\\u017f\\u0400-\\u042f\\u0590-\\u05d4\\u05d6-\\u05ff\\u0600-\\u06ff\\u0370\\u0372\\u0376\\u0386\\u0388-\\u03ab\\u03e2\\u03e4\\u03e6\\u03e8\\u03ea\\u03ec\\u03ee\\u03f4\\u03f7\\u03fd-\\u03ff])([a-zA-Z\\u0e01-\\u0e5b\\u00c0-\\u017f\\u0400-\\u052f\\u0600-\\u06ff\\u0370-\\u03ff\\u1f00-\\u1fff]*|)(\\.)*/,\n ROMANESQUE_REGEXP: /[-0-9a-zA-Z\\u0e01-\\u0e5b\\u00c0-\\u017f\\u0370-\\u03ff\\u0400-\\u052f\\u0590-\\u05d4\\u05d6-\\u05ff\\u1f00-\\u1fff\\u0600-\\u06ff\\u200c\\u200d\\u200e\\u0218\\u0219\\u021a\\u021b\\u202a-\\u202e]/,\n ROMANESQUE_NOT_REGEXP: /[^a-zA-Z\\u0e01-\\u0e5b\\u00c0-\\u017f\\u0370-\\u03ff\\u0400-\\u052f\\u0590-\\u05d4\\u05d6-\\u05ff\\u1f00-\\u1fff\\u0600-\\u06ff\\u200c\\u200d\\u200e\\u0218\\u0219\\u021a\\u021b\\u202a-\\u202e]/g,\n STARTSWITH_ROMANESQUE_REGEXP: /^[&a-zA-Z\\u0e01-\\u0e5b\\u00c0-\\u017f\\u0370-\\u03ff\\u0400-\\u052f\\u0590-\\u05d4\\u05d6-\\u05ff\\u1f00-\\u1fff\\u0600-\\u06ff\\u200c\\u200d\\u200e\\u0218\\u0219\\u021a\\u021b\\u202a-\\u202e]/,\n ENDSWITH_ROMANESQUE_REGEXP: /[.;:&a-zA-Z\\u0e01-\\u0e5b\\u00c0-\\u017f\\u0370-\\u03ff\\u0400-\\u052f\\u0590-\\u05d4\\u05d6-\\u05ff\\u1f00-\\u1fff\\u0600-\\u06ff\\u200c\\u200d\\u200e\\u0218\\u0219\\u021a\\u021b\\u202a-\\u202e]$/,\n ALL_ROMANESQUE_REGEXP: /^[a-zA-Z\\u0e01-\\u0e5b\\u00c0-\\u017f\\u0370-\\u03ff\\u0400-\\u052f\\u0590-\\u05d4\\u05d6-\\u05ff\\u1f00-\\u1fff\\u0600-\\u06ff\\u200c\\u200d\\u200e\\u0218\\u0219\\u021a\\u021b\\u202a-\\u202e]+$/,\n\n VIETNAMESE_SPECIALS: /[\\u00c0-\\u00c3\\u00c8-\\u00ca\\u00cc\\u00cd\\u00d2-\\u00d5\\u00d9\\u00da\\u00dd\\u00e0-\\u00e3\\u00e8-\\u00ea\\u00ec\\u00ed\\u00f2-\\u00f5\\u00f9\\u00fa\\u00fd\\u0101\\u0103\\u0110\\u0111\\u0128\\u0129\\u0168\\u0169\\u01a0\\u01a1\\u01af\\u01b0\\u1ea0-\\u1ef9]/,\n\n VIETNAMESE_NAMES: /^(?:(?:[.AaBbCcDdEeGgHhIiKkLlMmNnOoPpQqRrSsTtUuVvXxYy \\u00c0-\\u00c3\\u00c8-\\u00ca\\u00cc\\u00cd\\u00d2-\\u00d5\\u00d9\\u00da\\u00dd\\u00e0-\\u00e3\\u00e8-\\u00ea\\u00ec\\u00ed\\u00f2-\\u00f5\\u00f9\\u00fa\\u00fd\\u0101\\u0103\\u0110\\u0111\\u0128\\u0129\\u0168\\u0169\\u01a0\\u01a1\\u01af\\u01b0\\u1ea0-\\u1ef9]{2,6})(\\s+|$))+$/,\n\n NOTE_FIELDS_REGEXP: /\\{:(?:[\\-_a-z]+|[A-Z]+):[^\\}]+\\}/g,\n NOTE_FIELD_REGEXP: /^([\\-_a-z]+|[A-Z]+):\\s*([^\\}]+)$/,\n\n\tPARTICLE_GIVEN_REGEXP: /^([^ ]+(?:\\u02bb |\\u2019 | |\\' ) *)(.+)$/,\n\tPARTICLE_FAMILY_REGEXP: /^([^ ]+(?:\\-|\\u02bb|\\u2019| |\\') *)(.+)$/,\n\n DISPLAY_CLASSES: [\"block\", \"left-margin\", \"right-inline\", \"indent\"],\n\n NAME_VARIABLES: [\n \"author\",\n \"chair\",\n \"collection-editor\",\n \"compiler\",\n \"composer\",\n \"container-author\",\n \"contributor\",\n \"curator\",\n \"director\",\n \"editor\",\n \"editor-translator\", \n \"editorial-director\",\n \"executive-producer\",\n \"guest\",\n \"host\",\n \"illustrator\",\n \"interviewer\",\n \"narrator\", \n \"organizer\",\n \"original-author\",\n \"performer\",\n \"producer\",\n \"recipient\",\n \"reviewed-author\",\n \"script-writer\",\n \"series-creator\",\n \"translator\",\n \"commenter\"\n ],\n CREATORS: [\n \"author\",\n \"chair\",\n \"collection-editor\",\n \"compiler\",\n \"composer\",\n \"container-author\",\n \"contributor\",\n \"curator\",\n \"director\",\n \"editor\",\n \"editor-translator\", \n \"editorial-director\",\n \"executive-producer\",\n \"guest\",\n \"host\",\n \"illustrator\",\n \"interviewer\",\n \"narrator\", \n \"organizer\",\n \"original-author\",\n \"performer\",\n \"producer\",\n \"recipient\",\n \"reviewed-author\",\n \"script-writer\",\n \"series-creator\",\n \"translator\",\n \"commenter\"\n ],\n NUMERIC_VARIABLES: [\n \"call-number\",\n \"chapter-number\",\n \"collection-number\",\n \"division\",\n \"edition\",\n \"page\",\n \"issue\",\n \"locator\",\n \"locator-extra\",\n \"number\",\n \"number-of-pages\",\n \"number-of-volumes\",\n \"part-number\",\n \"printing-number\",\n \"section\",\n \"supplement-number\",\n \"version\",\n \"volume\",\n \"supplement\", // maybe deprecated this? supplement-number should serve this purpose in standard CSL.\n \"citation-number\"\n ],\n //var x = new Array();\n //x = x.concat([\"title\",\"container-title\",\"issued\",\"page\"]);\n //x = x.concat([\"locator\",\"collection-number\",\"original-date\"]);\n //x = x.concat([\"reporting-date\",\"decision-date\",\"filing-date\"]);\n //x = x.concat([\"revision-date\"]);\n //NUMERIC_VARIABLES = x.slice();\n DATE_VARIABLES: [\n \"locator-date\", \n \"issued\", \n \"event-date\", \n \"accessed\", \n \"original-date\",\n \"publication-date\",\n \"available-date\",\n \"submitted\",\n \"alt-issued\",\n \"alt-event\"\n ],\n VARIABLES_WITH_SHORT_FORM: [\n \"title\",\n \"container-title\"\n ],\n TITLE_FIELD_SPLITS: function(seg) {\n var keys = [\"title\", \"short\", \"main\", \"sub\", \"subjoin\"];\n var ret = {};\n for (var i=0,ilen=keys.length;i -1; j += -1) {\n if (SKIP_WORDS.indexOf(fld[j].toLowerCase()) > -1) {\n toEnd.push(fld.pop());\n } else {\n break;\n }\n }\n fld.reverse();\n var start = fld.join(\" \");\n var end = toEnd.join(\" \");\n if (\"drop\" === drop_or_demote || !end) {\n fld = start;\n } else if (\"demote\" === drop_or_demote) {\n fld = [start, end].join(\", \");\n }\n }\n return fld;\n },\n\n extractTitleAndSubtitle: function (Item, narrowSpaceLocale) {\n var narrowSpace = narrowSpaceLocale ? \"\\u202f\" : \"\";\n // XXX In this function, split on split-char, but prefer exact match\n // XXX of subtitle to a split-char in title if found.\n var segments = [\"\"];\n if (this.opt.development_extensions.split_container_title) {\n segments.push(\"container-\");\n }\n for (var i=0,ilen=segments.length;i -1) {\n vals[title.subjoin] = narrowSpace + \": \";\n }\n if (vals[title.subjoin].indexOf(\"-\") > -1 || vals[title.subjoin].indexOf(\"—\") > -1) {\n vals[title.subjoin] = \"—\";\n }\n }\n if (lang) {\n for (var key in vals) {\n if (!Item.multi._keys[key]) {\n Item.multi._keys[key] = {};\n }\n Item.multi._keys[key][lang] = vals[key];\n }\n } else {\n for (var key in vals) {\n Item[key] = vals[key];\n }\n }\n }\n }\n },\n\n titlecaseSentenceOrNormal: function(state, Item, seg, lang, sentenceCase) {\n // Hold on here.\n // What is seg here?\n // It's ... either \"\" or \"container-\". Which is ugly, but works.\n // But this ALWAYS returns the full title, never short.\n // So sentence-casing cannot be applied to short.\n // Goes unnoticed because forced sentence-casing almost never appears in styles.\n var title = CSL.TITLE_FIELD_SPLITS(seg);\n var vals = {};\n if (lang && Item.multi) {\n if (Item.multi._keys[title.title]) {\n vals[title.title] = Item.multi._keys[title.title][lang];\n }\n if (Item.multi._keys[title.main]) {\n vals[title.main] = Item.multi._keys[title.main][lang];\n }\n if (Item.multi._keys[title.sub]) {\n vals[title.sub] = Item.multi._keys[title.sub][lang];\n }\n if (Item.multi._keys[title.subjoin]) {\n vals[title.subjoin] = Item.multi._keys[title.subjoin][lang];\n }\n } else {\n vals[title.title] = Item[title.title];\n vals[title.main] = Item[title.main];\n vals[title.sub] = Item[title.sub];\n vals[title.subjoin] = Item[title.subjoin];\n }\n if (vals[title.main] && vals[title.sub]) {\n var mainTitle = vals[title.main];\n var subJoin = vals[title.subjoin];\n var subTitle = vals[title.sub];\n if (sentenceCase) {\n mainTitle = CSL.Output.Formatters.sentence(state, mainTitle);\n subTitle = CSL.Output.Formatters.sentence(state, subTitle);\n } else if (state.opt.development_extensions.uppercase_subtitles) {\n subTitle = CSL.Output.Formatters[\"capitalize-first\"](state, subTitle);\n }\n return [mainTitle, subJoin, subTitle].join(\"\");\n } else if (vals[title.title]) {\n if (sentenceCase) {\n return CSL.Output.Formatters.sentence(state, vals[title.title]);\n } else if (state.opt.development_extensions.uppercase_subtitles) {\n // Split and apply everywhere.\n var splits = CSL.TITLE_SPLIT(vals[title.title]);\n for (var i=0,ilen=splits.length; i -1 || splits[i].indexOf(\"—\") > -1) {\n splits[i] = \"—\";\n }\n }\n vals[title.title] = splits.join(\"\");\n return vals[title.title];\n } else {\n return vals[title.title];\n }\n } else {\n return \"\";\n }\n },\n\n getSafeEscape: function(state) {\n if ([\"bibliography\", \"citation\"].indexOf(state.tmp.area) > -1) {\n // Callback to apply thin space hack\n // Callback to force LTR/RTL on parens and braces\n // XXX Is this really necessary?\n var callbacks = [];\n if (state.opt.development_extensions.thin_non_breaking_space_html_hack && state.opt.mode === \"html\") {\n callbacks.push(function (txt) {\n return txt.replace(/\\u202f/g, '');\n });\n }\n if (callbacks.length) {\n return function (txt) {\n for (var i = 0, ilen = callbacks.length; i < ilen; i += 1) {\n txt = callbacks[i](txt);\n }\n return CSL.Output.Formats[state.opt.mode].text_escape(txt);\n };\n } else {\n return CSL.Output.Formats[state.opt.mode].text_escape;\n }\n } else {\n return function (txt) { return txt; };\n }\n },\n\n SKIP_WORDS: [\"about\",\"above\",\"across\",\"afore\",\"after\",\"against\",\"al\", \"along\",\"alongside\",\"amid\",\"amidst\",\"among\",\"amongst\",\"anenst\",\"apropos\",\"apud\",\"around\",\"as\",\"aside\",\"astride\",\"at\",\"athwart\",\"atop\",\"barring\",\"before\",\"behind\",\"below\",\"beneath\",\"beside\",\"besides\",\"between\",\"beyond\",\"but\",\"by\",\"circa\",\"despite\",\"down\",\"during\",\"et\", \"except\",\"for\",\"forenenst\",\"from\",\"given\",\"in\",\"inside\",\"into\",\"lest\",\"like\",\"modulo\",\"near\",\"next\",\"notwithstanding\",\"of\",\"off\",\"on\",\"onto\",\"out\",\"over\",\"per\",\"plus\",\"pro\",\"qua\",\"sans\",\"since\",\"than\",\"through\",\" thru\",\"throughout\",\"thruout\",\"till\",\"to\",\"toward\",\"towards\",\"under\",\"underneath\",\"until\",\"unto\",\"up\",\"upon\",\"versus\",\"vs.\",\"v.\",\"vs\",\"v\",\"via\",\"vis-à-vis\",\"with\",\"within\",\"without\",\"according to\",\"ahead of\",\"apart from\",\"as for\",\"as of\",\"as per\",\"as regards\",\"aside from\",\"back to\",\"because of\",\"close to\",\"due to\",\"except for\",\"far from\",\"inside of\",\"instead of\",\"near to\",\"next to\",\"on to\",\"out from\",\"out of\",\"outside of\",\"prior to\",\"pursuant to\",\"rather than\",\"regardless of\",\"such as\",\"that of\",\"up to\",\"where as\",\"or\", \"yet\", \"so\", \"for\", \"and\", \"nor\", \"a\", \"an\", \"the\", \"de\", \"d'\", \"von\", \"van\", \"c\", \"ca\"],\n\n FORMAT_KEY_SEQUENCE: [\n \"@strip-periods\",\n \"@font-style\",\n \"@font-variant\",\n \"@font-weight\",\n \"@text-decoration\",\n \"@vertical-align\",\n \"@quotes\"\n ],\n\n INSTITUTION_KEYS: [\n \"font-style\",\n \"font-variant\",\n \"font-weight\",\n \"text-decoration\",\n \"text-case\"\n ],\n\n SUFFIX_CHARS: \"a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z\",\n ROMAN_NUMERALS: [\n [ \"\", \"i\", \"ii\", \"iii\", \"iv\", \"v\", \"vi\", \"vii\", \"viii\", \"ix\" ],\n [ \"\", \"x\", \"xx\", \"xxx\", \"xl\", \"l\", \"lx\", \"lxx\", \"lxxx\", \"xc\" ],\n [ \"\", \"c\", \"cc\", \"ccc\", \"cd\", \"d\", \"dc\", \"dcc\", \"dccc\", \"cm\" ],\n [ \"\", \"m\", \"mm\", \"mmm\", \"mmmm\", \"mmmmm\"]\n ],\n\n LANGS: {\n \"af-ZA\":\"Afrikaans\",\n \"ar\":\"Arabic\",\n \"bg-BG\":\"Bulgarian\",\n \"ca-AD\":\"Catalan\",\n \"cs-CZ\":\"Czech\",\n \"da-DK\":\"Danish\",\n \"de-AT\":\"Austrian\",\n \"de-CH\":\"German (CH)\",\n \"de-DE\":\"German (DE)\",\n \"el-GR\":\"Greek\",\n \"en-GB\":\"English (GB)\",\n \"en-US\":\"English (US)\",\n \"es-ES\":\"Spanish\",\n \"et-EE\":\"Estonian\",\n \"eu\":\"European\",\n \"fa-IR\":\"Persian\",\n \"fi-FI\":\"Finnish\",\n \"fr-CA\":\"French (CA)\",\n \"fr-FR\":\"French (FR)\",\n \"he-IL\":\"Hebrew\",\n \"hr-HR\":\"Croatian\",\n \"hu-HU\":\"Hungarian\",\n \"is-IS\":\"Icelandic\",\n \"it-IT\":\"Italian\",\n \"ja-JP\":\"Japanese\",\n \"km-KH\":\"Khmer\",\n \"ko-KR\":\"Korean\",\n \"lt-LT\":\"Lithuanian\",\n \"lv-LV\":\"Latvian\",\n \"mn-MN\":\"Mongolian\",\n \"nb-NO\":\"Norwegian (Bokmål)\",\n \"nl-NL\":\"Dutch\",\n \"nn-NO\":\"Norwegian (Nynorsk)\",\n \"pl-PL\":\"Polish\",\n \"pt-BR\":\"Portuguese (BR)\",\n \"pt-PT\":\"Portuguese (PT)\",\n \"ro-RO\":\"Romanian\",\n \"ru-RU\":\"Russian\",\n \"sk-SK\":\"Slovak\",\n \"sl-SI\":\"Slovenian\",\n \"sr-RS\":\"Serbian\",\n \"sv-SE\":\"Swedish\",\n \"th-TH\":\"Thai\",\n \"tr-TR\":\"Turkish\",\n \"uk-UA\":\"Ukrainian\",\n \"vi-VN\":\"Vietnamese\",\n \"zh-CN\":\"Chinese (CN)\",\n \"zh-TW\":\"Chinese (TW)\"\n },\n\n LANG_BASES: {\n af: \"af_ZA\",\n ar: \"ar\",\n bg: \"bg_BG\",\n ca: \"ca_AD\",\n cs: \"cs_CZ\",\n da: \"da_DK\",\n de: \"de_DE\",\n el: \"el_GR\",\n en: \"en_US\",\n es: \"es_ES\",\n et: \"et_EE\",\n eu: \"eu\",\n fa: \"fa_IR\",\n fi: \"fi_FI\",\n fr: \"fr_FR\",\n he: \"he_IL\",\n hr: \"hr-HR\",\n hu: \"hu_HU\",\n is: \"is_IS\",\n it: \"it_IT\",\n ja: \"ja_JP\",\n km: \"km_KH\",\n ko: \"ko_KR\",\n lt: \"lt_LT\",\n lv: \"lv-LV\",\n mn: \"mn_MN\",\n nb: \"nb_NO\",\n nl: \"nl_NL\",\n nn: \"nn-NO\",\n pl: \"pl_PL\",\n pt: \"pt_PT\",\n ro: \"ro_RO\",\n ru: \"ru_RU\",\n sk: \"sk_SK\",\n sl: \"sl_SI\",\n sr: \"sr_RS\",\n sv: \"sv_SE\",\n th: \"th_TH\",\n tr: \"tr_TR\",\n uk: \"uk_UA\",\n vi: \"vi_VN\",\n zh: \"zh_CN\"\n },\n\n SUPERSCRIPTS: {\n \"\\u00AA\": \"\\u0061\",\n \"\\u00B2\": \"\\u0032\",\n \"\\u00B3\": \"\\u0033\",\n \"\\u00B9\": \"\\u0031\",\n \"\\u00BA\": \"\\u006F\",\n \"\\u02B0\": \"\\u0068\",\n \"\\u02B1\": \"\\u0266\",\n \"\\u02B2\": \"\\u006A\",\n \"\\u02B3\": \"\\u0072\",\n \"\\u02B4\": \"\\u0279\",\n \"\\u02B5\": \"\\u027B\",\n \"\\u02B6\": \"\\u0281\",\n \"\\u02B7\": \"\\u0077\",\n \"\\u02B8\": \"\\u0079\",\n \"\\u02E0\": \"\\u0263\",\n \"\\u02E1\": \"\\u006C\",\n \"\\u02E2\": \"\\u0073\",\n \"\\u02E3\": \"\\u0078\",\n \"\\u02E4\": \"\\u0295\",\n \"\\u1D2C\": \"\\u0041\",\n \"\\u1D2D\": \"\\u00C6\",\n \"\\u1D2E\": \"\\u0042\",\n \"\\u1D30\": \"\\u0044\",\n \"\\u1D31\": \"\\u0045\",\n \"\\u1D32\": \"\\u018E\",\n \"\\u1D33\": \"\\u0047\",\n \"\\u1D34\": \"\\u0048\",\n \"\\u1D35\": \"\\u0049\",\n \"\\u1D36\": \"\\u004A\",\n \"\\u1D37\": \"\\u004B\",\n \"\\u1D38\": \"\\u004C\",\n \"\\u1D39\": \"\\u004D\",\n \"\\u1D3A\": \"\\u004E\",\n \"\\u1D3C\": \"\\u004F\",\n \"\\u1D3D\": \"\\u0222\",\n \"\\u1D3E\": \"\\u0050\",\n \"\\u1D3F\": \"\\u0052\",\n \"\\u1D40\": \"\\u0054\",\n \"\\u1D41\": \"\\u0055\",\n \"\\u1D42\": \"\\u0057\",\n \"\\u1D43\": \"\\u0061\",\n \"\\u1D44\": \"\\u0250\",\n \"\\u1D45\": \"\\u0251\",\n \"\\u1D46\": \"\\u1D02\",\n \"\\u1D47\": \"\\u0062\",\n \"\\u1D48\": \"\\u0064\",\n \"\\u1D49\": \"\\u0065\",\n \"\\u1D4A\": \"\\u0259\",\n \"\\u1D4B\": \"\\u025B\",\n \"\\u1D4C\": \"\\u025C\",\n \"\\u1D4D\": \"\\u0067\",\n \"\\u1D4F\": \"\\u006B\",\n \"\\u1D50\": \"\\u006D\",\n \"\\u1D51\": \"\\u014B\",\n \"\\u1D52\": \"\\u006F\",\n \"\\u1D53\": \"\\u0254\",\n \"\\u1D54\": \"\\u1D16\",\n \"\\u1D55\": \"\\u1D17\",\n \"\\u1D56\": \"\\u0070\",\n \"\\u1D57\": \"\\u0074\",\n \"\\u1D58\": \"\\u0075\",\n \"\\u1D59\": \"\\u1D1D\",\n \"\\u1D5A\": \"\\u026F\",\n \"\\u1D5B\": \"\\u0076\",\n \"\\u1D5C\": \"\\u1D25\",\n \"\\u1D5D\": \"\\u03B2\",\n \"\\u1D5E\": \"\\u03B3\",\n \"\\u1D5F\": \"\\u03B4\",\n \"\\u1D60\": \"\\u03C6\",\n \"\\u1D61\": \"\\u03C7\",\n \"\\u2070\": \"\\u0030\",\n \"\\u2071\": \"\\u0069\",\n \"\\u2074\": \"\\u0034\",\n \"\\u2075\": \"\\u0035\",\n \"\\u2076\": \"\\u0036\",\n \"\\u2077\": \"\\u0037\",\n \"\\u2078\": \"\\u0038\",\n \"\\u2079\": \"\\u0039\",\n \"\\u207A\": \"\\u002B\",\n \"\\u207B\": \"\\u2212\",\n \"\\u207C\": \"\\u003D\",\n \"\\u207D\": \"\\u0028\",\n \"\\u207E\": \"\\u0029\",\n \"\\u207F\": \"\\u006E\",\n \"\\u2120\": \"\\u0053\\u004D\",\n \"\\u2122\": \"\\u0054\\u004D\",\n \"\\u3192\": \"\\u4E00\",\n \"\\u3193\": \"\\u4E8C\",\n \"\\u3194\": \"\\u4E09\",\n \"\\u3195\": \"\\u56DB\",\n \"\\u3196\": \"\\u4E0A\",\n \"\\u3197\": \"\\u4E2D\",\n \"\\u3198\": \"\\u4E0B\",\n \"\\u3199\": \"\\u7532\",\n \"\\u319A\": \"\\u4E59\",\n \"\\u319B\": \"\\u4E19\",\n \"\\u319C\": \"\\u4E01\",\n \"\\u319D\": \"\\u5929\",\n \"\\u319E\": \"\\u5730\",\n \"\\u319F\": \"\\u4EBA\",\n \"\\u02C0\": \"\\u0294\",\n \"\\u02C1\": \"\\u0295\",\n \"\\u06E5\": \"\\u0648\",\n \"\\u06E6\": \"\\u064A\"\n },\n SUPERSCRIPTS_REGEXP: new RegExp(\"[\\u00AA\\u00B2\\u00B3\\u00B9\\u00BA\\u02B0\\u02B1\\u02B2\\u02B3\\u02B4\\u02B5\\u02B6\\u02B7\\u02B8\\u02E0\\u02E1\\u02E2\\u02E3\\u02E4\\u1D2C\\u1D2D\\u1D2E\\u1D30\\u1D31\\u1D32\\u1D33\\u1D34\\u1D35\\u1D36\\u1D37\\u1D38\\u1D39\\u1D3A\\u1D3C\\u1D3D\\u1D3E\\u1D3F\\u1D40\\u1D41\\u1D42\\u1D43\\u1D44\\u1D45\\u1D46\\u1D47\\u1D48\\u1D49\\u1D4A\\u1D4B\\u1D4C\\u1D4D\\u1D4F\\u1D50\\u1D51\\u1D52\\u1D53\\u1D54\\u1D55\\u1D56\\u1D57\\u1D58\\u1D59\\u1D5A\\u1D5B\\u1D5C\\u1D5D\\u1D5E\\u1D5F\\u1D60\\u1D61\\u2070\\u2071\\u2074\\u2075\\u2076\\u2077\\u2078\\u2079\\u207A\\u207B\\u207C\\u207D\\u207E\\u207F\\u2120\\u2122\\u3192\\u3193\\u3194\\u3195\\u3196\\u3197\\u3198\\u3199\\u319A\\u319B\\u319C\\u319D\\u319E\\u319F\\u02C0\\u02C1\\u06E5\\u06E6]\", \"g\"),\n\n // I think we need to have separate args for prefix and term,\n // since they have different effects between comma-safe and comma-safe-numbers-only.\n // Either that, or -- oh, we could just bang the two together for the test where\n // necessary.\n \n UPDATE_GROUP_CONTEXT_CONDITION: function (state, str, valueTerm, token, value) {\n if (!state.opt.use_context_condition) return;\n var flags = state.tmp.group_context.tip;\n if (flags.condition) {\n if (!flags.condition.termtxt) {\n flags.condition.termtxt = str;\n flags.condition.valueTerm = valueTerm;\n }\n if (!flags.value_seen && flags.condition.test === \"comma-safe-numbers-only\") {\n if (value) {\n flags.value_seen = true;\n if (!value.match(/^[0-9]/)) {\n state.tmp.just_did_number = false;\n }\n }\n }\n } else {\n // If not inside a conditional group, raise numeric flag\n // if and only if the current term string ends in a number.\n if (token && token.decorations.filter(o => o[0] === \"@vertical-align\").length > 0) {\n state.tmp.just_did_number = false;\n } else if (token && token.strings.suffix) {\n state.tmp.just_did_number = false;\n } else if (str) {\n if (str.match(/[0-9]$/)) {\n state.tmp.just_did_number = true;\n } else {\n state.tmp.just_did_number = false;\n }\n }\n }\n },\n\n EVALUATE_GROUP_CONDITION: function(state, flags) {\n if (!state.opt.use_context_condition) return;\n var testres;\n var numbersOnly = flags.condition.test === \"comma-safe-numbers-only\";\n if (flags.condition.test === \"empty-label\") {\n testres = !flags.condition.termtxt;\n } else if (flags.condition.test === \"empty-label-no-decor\") {\n testres = !flags.condition.termtxt || flags.condition.termtxt.indexOf(\"%s\") > -1;\n } else if ([\"comma-safe\", \"comma-safe-numbers-only\"].indexOf(flags.condition.test) > -1) {\n var locale_term = flags.condition.termtxt;\n var termStartAlpha = false;\n if (flags.condition.termtxt) {\n termStartAlpha = flags.condition.termtxt.slice(0,1).match(CSL.ALL_ROMANESQUE_REGEXP);\n }\n var num = state.tmp.just_did_number;\n if (num) {\n if (flags.condition.valueTerm) {\n testres = numbersOnly ? false : true;\n } else if (!locale_term) {\n testres = true;\n } else if (termStartAlpha) {\n testres = numbersOnly ? false : true;\n } else if ([\"always\", \"after-number\"].indexOf(state.opt.require_comma_on_symbol) > -1) {\n testres = true;\n } else {\n testres = false;\n }\n } else {\n if (flags.condition.valueTerm) {\n testres = false;\n } else if (!locale_term) {\n testres = false;\n } else if (termStartAlpha) {\n testres = numbersOnly ? false : true;\n } else if (state.opt.require_comma_on_symbol === \"always\") {\n testres = true;\n } else {\n testres = false;\n }\n }\n }\n if (testres) {\n var force_suppress = false;\n } else {\n var force_suppress = true;\n }\n if (flags.condition.not) {\n force_suppress = !force_suppress;\n }\n return force_suppress;\n },\n \n SYS_OPTIONS: [\n \"prioritize_disambiguate_condition\",\n \"csl_reverse_lookup_support\",\n \"main_title_from_short_title\",\n \"uppercase_subtitles\",\n \"force_short_title_casing_alignment\",\n \"implicit_short_title\",\n \"split_container_title\"\n ],\n\n TITLE_SPLIT_REGEXP: (function() {\n var splits = [\n \"\\\\.\\\\s+\",\n \"\\\\!\\\\s+\",\n \"\\\\?\\\\s+\",\n \"\\\\s*::*\\\\s+\",\n \"\\\\s*—\\\\s*\",\n \"\\\\s+\\\\-\\\\s+\",\n \"\\\\s*\\\\-\\\\-\\\\-*\\\\s*\"\n ]\n return {\n match: new RegExp(\"(\" + splits.join(\"|\") + \")\", \"g\"),\n matchfirst: new RegExp(\"^(\" + splits.join(\"|\") + \")\"),\n split: new RegExp(\"(?:\" + splits.join(\"|\") + \")\")\n }\n })(),\n\n TITLE_SPLIT: function(str) {\n if (!str) {\n return str;\n }\n var m = str.match(CSL.TITLE_SPLIT_REGEXP.match);\n var lst = str.split(CSL.TITLE_SPLIT_REGEXP.split);\n for (var i=lst.length-2; i>-1; i--) {\n lst[i] = lst[i].trim();\n if (lst[i] && lst[i].slice(-1).toLowerCase() !== lst[i].slice(-1)) {\n // recombine\n lst[i] = lst[i] + m[i] + lst[i+1];\n lst = lst.slice(0, i+1).concat(lst.slice(i+2))\n } else {\n // merge\n lst = lst.slice(0, i+1).concat([m[i]]).concat(lst.slice(i+1))\n }\n }\n return lst;\n },\n \n GET_COURT_CLASS: function(state, Item, sortKey){\n // Get authority as a string\n var cls = \"\";\n var authority = null;\n var country = Item.jurisdiction ? Item.jurisdiction.split(\":\")[0] : null;\n // inStyle versus in module\n var classType = \"court_condition_classes\";\n if (sortKey) {\n classType = \"court_key_classes\";\n }\n if (country && Item.authority) {\n if (\"string\" === typeof Item.authority) {\n authority = Item.authority;\n } else {\n if (Item.authority[0] && Item.authority[0].literal) {\n authority = Item.authority[0].literal;\n }\n }\n }\n if (authority) {\n if (this.lang && state.locale[this.lang].opts[classType] && state.locale[this.lang].opts[classType][country] && state.locale[this.lang].opts[classType][country][authority]) {\n cls = state.locale[this.lang].opts[classType][country][authority];\n } else if (state.locale[state.opt[\"default-locale\"][0]].opts[classType] && state.locale[state.opt[\"default-locale\"][0]].opts[classType][country] && state.locale[state.opt[\"default-locale\"][0]].opts[classType][country][authority]) {\n cls = state.locale[state.opt[\"default-locale\"][0]].opts[classType][country][authority]\n }\n }\n return cls;\n },\n\n SET_COURT_CLASSES: function(state, lang, myxml, dataObj) {\n var nodes = myxml.getNodesByName(dataObj, 'court-class');\n for (var pos = 0, len = myxml.numberofnodes(nodes); pos < len; pos += 1) {\n var courtclass = nodes[pos];\n var attributes = myxml.attributes(courtclass);\n var cls = attributes[\"@name\"];\n var country = attributes[\"@country\"];\n var courts = attributes[\"@courts\"];\n \n // Okay, this is a hack.\n // If state.registry IS NOT yet defined, this is an in-style declaration.\n // If state.registry IS defined, this is an in-module declaration.\n var classType = \"court_key_classes\";\n if (state.registry) {\n classType = \"court_condition_classes\";\n }\n \n if (cls && country && courts) {\n courts = courts.trim().split(/\\s+/);\n if (!state.locale[lang].opts[classType]) {\n state.locale[lang].opts[classType] = {};\n }\n if (!state.locale[lang].opts[classType][country]) {\n state.locale[lang].opts[classType][country] = {};\n }\n for (var i=0,ilen=courts.length;i -1 && !myjson.children[i].attrs.prefix && !myjson.children[i].attrs.suffix) {\n mustHaves = mustHaves.slice(0,haveVarname).concat(mustHaves.slice(haveVarname+1));\n } else {\n useme = false;\n break;\n }\n }\n if (useme && !mustHaves.length) {\n myjson.attrs[\"has-publisher-and-publisher-place\"] = true;\n }\n }\n for (var i=0,ilen=myjson.children.length;i -1) {\n continue;\n }\n var child = node.childNodes.item(j); \n var subskippers = [];\n for (var k = 0, klen = child.childNodes.length; k < klen; k += 1) {\n if (child.childNodes.item(k).nodeType !== 1) {\n subskippers.push(k);\n }\n }\n if (child.childNodes.length - subskippers.length === 0) {\n twovars.push(child.getAttribute('variable'));\n if (child.getAttribute('suffix')\n || child.getAttribute('prefix')) {\n twovars = [];\n break;\n }\n }\n }\n if (twovars.indexOf(\"publisher\") > -1 && twovars.indexOf(\"publisher-place\") > -1) {\n node.setAttribute('has-publisher-and-publisher-place', true);\n }\n }\n }\n};\n*/\n\nCSL.XmlJSON.prototype.isChildOfSubstitute = function(parents) {\n if (parents.length > 0) {\n var myparents = parents.slice();\n var parent = myparents.pop();\n if (parent === \"substitute\") {\n return true;\n } else {\n return this.isChildOfSubstitute(myparents);\n }\n }\n return false;\n};\n\nCSL.XmlJSON.prototype.addMissingNameNodes = function(myjson,parents) {\n if (!parents) {\n parents = [];\n }\n if (myjson.name === \"names\") {\n // Trawl through children to decide whether a name node is needed here\n if (!this.isChildOfSubstitute(parents)) {\n var addName = true;\n for (var i=0,ilen=myjson.children.length;i -1) {\n var institution = this.nodeCopy(this.institution);\n for (var i=0,ilen = CSL.INSTITUTION_KEYS.length;i/, \"\");\n xml = xml.replace(//g, \"\");\n xml = xml.replace(/^\\s+/g, \"\");\n xml = xml.replace(/\\s+$/g, \"\");\n return xml;\n};\n\n\n/*\n * String parser for XML inputs\n */\nCSL.parseXml = function(str) {\n\n var _pos = 0;\n var _obj = {children:[]};\n var _stack = [_obj.children];\n\n function _listifyString(str) {\n str = str.split(/(?:\\r\\n|\\n|\\r)/).join(\" \").replace(/>[\t ]+<\").replace(/<\\!--.*?-->/g, \"\");\n var lst = str.split(\"><\");\n var stylePos = null;\n for (var i=0,ilen=lst.length;i 0) {\n lst[i] = \"<\" + lst[i];\n }\n if (i < (lst.length-1)) {\n lst[i] = lst[i] + \">\";\n }\n if (\"number\" != typeof stylePos) {\n if (lst[i].slice(0, 7) === \"