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,EAAA0D,EAAA,MAAAyF,KAAA,IAAAnJ,EAAA,SAGvB,OADA6Q,EAAAsC,iBAAA,YAAAtC,EAAAsQ,kBAAA,KACA,CAAatQ,QAAAqS,YAEbjV,EAAAkF,iBAAA,SAAAlN,IACA,UAAA4K,MAAiBA,EAAAqS,OAAAA,KAAgBD,EAAA,CACjC,IAAApS,EAAAzN,MAAAkN,OAAA,SAEA,QAAA4S,EAAAO,gBAKA,OAJAxd,EAAAmN,iBACAvC,EAAAsQ,kBAAgC1W,EAAC,qFACjCoG,EAAA8R,sBACA9R,EAAAwC,QAGA,MAAAvB,EAAAoR,EAAAQ,YACA5R,IAAAjB,EAAAzN,MAAA0O,EACA,GAEA,COoQmE6R,CAAe1V,KACnE3I,SD9FfyK,iBAAA,sBAAAtJ,QAAAsR,IAAiEyC,EAAAzC,KC+FnDzS,SLpJdyK,iBAAA,qBAAAtJ,QAAAwH,IACAA,EAAA8B,iBAAA,4BAAAtJ,QAAAyL,GACAjE,EAAA8D,cAAA,oBACAjC,EAAA7B,GACAA,EAAAkF,iBAAA,YAAArD,EAAA7B,IACAA,EAAAkF,iBAAA,aAAArD,EAAA7B,OKgJgB3I,SJlHhByK,iBAAA,wBAAAtJ,QAAA6N,GImHchP,SH1QdyK,iBAAA,0BAAAtJ,QAAAqR,GG2QexS,SFlLfyK,iBAAA,2BAAAtJ,QAAAiS,E","sources":["webpack://djancloud-frontend/webpack/bootstrap","webpack://djancloud-frontend/./src/js/altcha_solver.js","webpack://djancloud-frontend/webpack/runtime/define property getters","webpack://djancloud-frontend/webpack/runtime/ensure chunk","webpack://djancloud-frontend/webpack/runtime/get javascript chunk filename","webpack://djancloud-frontend/webpack/runtime/get mini-css chunk filename","webpack://djancloud-frontend/webpack/runtime/global","webpack://djancloud-frontend/webpack/runtime/hasOwnProperty shorthand","webpack://djancloud-frontend/webpack/runtime/load script","webpack://djancloud-frontend/webpack/runtime/make namespace object","webpack://djancloud-frontend/webpack/runtime/publicPath","webpack://djancloud-frontend/webpack/runtime/css loading","webpack://djancloud-frontend/webpack/runtime/jsonp chunk loading","webpack://djancloud-frontend/./src/js/altcha_client.js","webpack://djancloud-frontend/./src/js/i18n.js","webpack://djancloud-frontend/./src/js/form_phone.js","webpack://djancloud-frontend/./src/js/icons.js","webpack://djancloud-frontend/./src/js/form_repeat.js","webpack://djancloud-frontend/./src/js/form_sections.js","webpack://djancloud-frontend/./src/js/form_incomplete.js","webpack://djancloud-frontend/./src/js/form_check.js","webpack://djancloud-frontend/./src/js/form_week.js","webpack://djancloud-frontend/./src/js/public_form.js","webpack://djancloud-frontend/./src/js/form_file_limits.js"],"sourcesContent":["// The module cache\nconst __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tconst cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tconst module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","/**\n * @file The ALTCHA \"PoW v2\" solver of the public fill page, without the DOM.\n *\n * The server (file/captcha.py, through the `altcha` Python package) hands out\n * a signed challenge: a nonce, a salt, a PBKDF2/SHA-256 cost and a key prefix.\n * Solving it means finding the counter whose derived key starts with that\n * prefix, the password being the nonce followed by the counter as a 32-bit\n * big-endian integer. The answer goes back as base64 JSON of the challenge\n * and the solution, the payload format of the ALTCHA libraries.\n *\n * PBKDF2 is native in WebCrypto, so no WebAssembly is needed. This module is\n * shared by the worker (altcha_worker.js), which runs `solveRange` on its\n * share of the counters, and by public_form.js, which falls back to it on the\n * main thread where workers are unavailable. It also times the renewal of a\n * challenge (`challengeLifetime`, `renewalDelay`). It holds no state and no\n * DOM, so `node --test` runs it as is.\n */\n\n/**\n * Bytes of a hex string.\n *\n * @param {string} hex\n * @returns {Uint8Array}\n */\nexport function hexToBytes(hex) {\n  const bytes = new Uint8Array(hex.length / 2);\n  for (let i = 0; i < bytes.length; i += 1) bytes[i] = parseInt(hex.substr(i * 2, 2), 16);\n  return bytes;\n}\n\n/**\n * Hex string of bytes.\n *\n * @param {ArrayBuffer|Uint8Array} buffer\n * @returns {string}\n */\nexport function bytesToHex(buffer) {\n  return Array.from(new Uint8Array(buffer), byte => byte.toString(16).padStart(2, '0')).join('');\n}\n\n/**\n * The KDF password of `counter`: the nonce bytes, then the counter as a\n * 32-bit big-endian unsigned integer.\n *\n * @param {Uint8Array} nonce\n * @param {number} counter\n * @returns {Uint8Array}\n */\nexport function passwordFor(nonce, counter) {\n  const password = new Uint8Array(nonce.length + 4);\n  password.set(nonce, 0);\n  new DataView(password.buffer).setUint32(nonce.length, counter, false);\n  return password;\n}\n\n/**\n * The derived key of one counter, as hex, through WebCrypto's PBKDF2.\n *\n * @param {object} parameters The challenge's `parameters`.\n * @param {Uint8Array} salt\n * @param {Uint8Array} password\n * @param {SubtleCrypto} subtle\n * @returns {Promise<string>}\n */\nexport async function deriveKey(parameters, salt, password, subtle) {\n  const hash = String(parameters.algorithm || '').split('/')[1] || 'SHA-256';\n  const key = await subtle.importKey('raw', password, 'PBKDF2', false, ['deriveBits']);\n  const bits = await subtle.deriveBits(\n    { name: 'PBKDF2', hash, salt, iterations: parameters.cost },\n    key, (parameters.keyLength || 32) * 8);\n  return bytesToHex(bits);\n}\n\n/**\n * Try the counters start, start + step, ... up to `limit`, and return the\n * first that solves the challenge, or null.\n *\n * @param {object} parameters The challenge's `parameters`.\n * @param {object} [options]\n * @param {number} [options.start=0] First counter.\n * @param {number} [options.step=1] Increment: several workers split the range.\n * @param {number} [options.limit=1000000] Counter to give up at.\n * @param {SubtleCrypto} [options.subtle] WebCrypto, `crypto.subtle` by default.\n * @param {function(): boolean} [options.cancelled] Asked between attempts.\n * @returns {Promise<{counter: number, derivedKey: string}|null>}\n */\nexport async function solveRange(parameters, options = {}) {\n  const { start = 0, step = 1, limit = 1000000 } = options;\n  const subtle = options.subtle || globalThis.crypto.subtle;\n  const nonce = hexToBytes(parameters.nonce);\n  const salt = hexToBytes(parameters.salt);\n  const prefix = String(parameters.keyPrefix || '00').toLowerCase();\n  for (let counter = start; counter <= limit; counter += step) {\n    if (options.cancelled && options.cancelled()) return null;\n    const derivedKey = await deriveKey(parameters, salt, passwordFor(nonce, counter), subtle);\n    if (derivedKey.startsWith(prefix)) return { counter, derivedKey };\n  }\n  return null;\n}\n\n/**\n * The value of the form's `altcha` field: base64 JSON of the challenge and\n * its solution.\n *\n * @param {object} challenge As the server sent it: {parameters, signature}.\n * @param {{counter: number, derivedKey: string}} solution\n * @param {number} [time] Milliseconds spent, informative only.\n * @returns {string}\n */\nexport function encodePayload(challenge, solution, time) {\n  const payload = { challenge, solution: { counter: solution.counter, derivedKey: solution.derivedKey } };\n  if (typeof time === 'number') payload.solution.time = Math.round(time);\n  return globalThis.btoa(JSON.stringify(payload));\n}\n\n/** Ask for a new challenge this long before the current one expires. */\nexport const RENEW_MARGIN_MS = 60 * 1000;\n/** Never renew sooner than this after solving, whatever the server says. */\nexport const RENEW_FLOOR_MS = 30 * 1000;\n\n/**\n * How long a challenge lives from the moment its response arrived, from the\n * `X-Challenge-Expires-In` header the server sets (seconds). The challenge's\n * own `expiresAt` is a date on the server's clock, which the browser's may\n * be far from.\n *\n * @param {{get: function(string): (string|null)}} headers The response's headers.\n * @returns {number|null} Milliseconds, or null when the server did not say.\n */\nexport function challengeLifetime(headers) {\n  const raw = headers && headers.get('X-Challenge-Expires-In');\n  const seconds = Number(raw);\n  if (raw === null || raw === undefined || raw === '' || !Number.isFinite(seconds) || seconds <= 0) return null;\n  return seconds * 1000;\n}\n\n/**\n * The wait before solving a fresh challenge: shortly before the current one\n * expires, timed on a monotonic clock (`performance.now()`), never below\n * RENEW_FLOOR_MS.\n *\n * @param {number} lifetimeMs What `challengeLifetime` gave.\n * @param {number} receivedAt `performance.now()` when the challenge arrived.\n * @param {number} now `performance.now()` at the time of asking.\n * @returns {number} Milliseconds.\n */\nexport function renewalDelay(lifetimeMs, receivedAt, now) {\n  return Math.max(receivedAt + lifetimeMs - RENEW_MARGIN_MS - now, RENEW_FLOOR_MS);\n}\n","// define getter/value functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tif(Array.isArray(definition)) {\n\t\tvar i = 0;\n\t\twhile(i < definition.length) {\n\t\t\tvar key = definition[i++];\n\t\t\tvar binding = definition[i++];\n\t\t\tvar descriptor = binding === 0 ? { enumerable: true, value: definition[i++] } : { enumerable: true, get: binding };\n\t\t\tif(!__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, descriptor);\n\t\t}\n\t} else {\n\t\tfor(var key in definition) {\n\t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t\t}\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => (chunkId + \"-\" + {\"1642\":\"ddc57501\",\"6190\":\"abd15648\",\"8168\":\"69e8c90e\",\"8888\":\"fb3c58d3\",\"9038\":\"3c3b7920\"}[chunkId] + \".js\");","// This function allow to reference async chunks\n__webpack_require__.miniCssF = (chunkId) => (chunkId + \"-\" + \"d1cd27d7\" + \".css\");","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop));","const inProgress = {};\nconst dataWebpackPrefix = \"djancloud-frontend:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tlet script, needAttach;\n\tif(key !== undefined) {\n\t\tconst scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tconst s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tconst onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tconst doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode?.removeChild(script);\n\t\tdoneFns?.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tconst timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","let scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nconst document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript?.tagName.toUpperCase() === 'SCRIPT')\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tconst scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tlet i = scripts.length - 1;\n\t\t\twhile (i > -1 && (!scriptUrl || !/^https?:/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/^blob:|[?#].*$/g, \"\").replace(/\\/[^/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","if (typeof document === \"undefined\") return;\nvar createStylesheet = (chunkId, fullhref, oldTag, resolve, reject) => {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tif (__webpack_require__.nc) {\n\t\tlinkTag.nonce = __webpack_require__.nc;\n\t}\n\tvar onLinkComplete = (event) => {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && event.type;\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + errorType + \": \" + realHref + \")\");\n\t\t\terr.name = \"ChunkLoadError\";\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = (href, fullhref) => {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = (chunkId) => {\n\treturn new Promise((resolve, reject) => {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t8781: 0\n};\n\n__webpack_require__.f.miniCss = (chunkId, promises) => {\n\tvar cssChunks = {\"1642\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(() => {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, (e) => {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr\n\n// no prefetching\n\n// no preloaded","__webpack_require__.b = (typeof document !== 'undefined' && document.baseURI) || self.location.href;\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nconst installedChunks = {\n\t8781: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tlet installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tconst promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tconst error = new Error();\n\t\t\t\t\tconst loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tconst errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tconst realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\terror.event = event;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(__webpack_require__.p + __webpack_require__.u(chunkId), loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nconst webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tlet [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nconst chunkLoadingGlobal = self[\"webpackChunkdjancloud_frontend\"] = self[\"webpackChunkdjancloud_frontend\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","/**\n * @file altcha_client.js\n * @description Solving an ALTCHA challenge in the browser (file/captcha.py),\n * in workers when the browser has them: the public forms (public_form.js) and\n * the guests of a conversation's public link (ChatLinkApp.vue).\n */\nimport { encodePayload, solveRange } from './altcha_solver.js';\n\n/** At most this many workers, whatever the core count. */\nconst MAX_WORKERS = 4;\n/** The counter a solver gives up at: far past what the server ever asks. */\nconst COUNTER_LIMIT = 200000;\n\n/**\n * Split the counters among workers and resolve with the first answer.\n *\n * @param {object} parameters The challenge's `parameters`.\n * @returns {Promise<{counter: number, derivedKey: string}|null>}\n */\nfunction solveInWorkers(parameters) {\n  const count = Math.max(1, Math.min(MAX_WORKERS, navigator.hardwareConcurrency || 2));\n  return new Promise((resolve) => {\n    const workers = [];\n    let pending = count;\n    /**\n     * Stop every worker and settle.\n     *\n     * @param {object|null} result\n     */\n    const finish = (result) => {\n      workers.forEach(worker => worker.terminate());\n      resolve(result);\n    };\n    for (let index = 0; index < count; index += 1) {\n      const worker = new Worker(new URL('./altcha_worker.js', import.meta.url));\n      workers.push(worker);\n      worker.onmessage = (event) => {\n        if (event.data && event.data.counter !== null && event.data.counter !== undefined) {\n          finish(event.data);\n          return;\n        }\n        pending -= 1;\n        if (!pending) finish(null);\n      };\n      worker.onerror = () => {\n        pending -= 1;\n        if (!pending) finish(null);\n      };\n      worker.postMessage({ parameters, start: index, step: count, limit: COUNTER_LIMIT });\n    }\n  });\n}\n\n/**\n * Solve a challenge, in workers when the browser has them.\n *\n * @param {object} parameters The challenge's `parameters`.\n * @returns {Promise<{counter: number, derivedKey: string}|null>}\n */\nexport async function solve(parameters) {\n  if (typeof Worker === 'function') {\n    try {\n      const found = await solveInWorkers(parameters);\n      if (found) return found;\n    } catch {\n      // Fall through to the main thread: slower, but it gets there.\n    }\n  }\n  return solveRange(parameters, { limit: COUNTER_LIMIT });\n}\n\n\n/**\n * Fetch a challenge from `url`, solve it, and give the payload to post.\n *\n * @param {string} url - The challenge endpoint.\n * @returns {Promise<string>} The `altcha` value.\n */\nexport async function fetchAndSolve(url) {\n  const started = performance.now();\n  const response = await fetch(url, { credentials: 'same-origin', headers: { Accept: 'application/json' } });\n  if (!response.ok) throw new Error(`challenge ${response.status}`);\n  const challenge = await response.json();\n  const found = await solve(challenge.parameters);\n  if (!found) throw new Error('unsolved');\n  return encodePayload(challenge, found, Math.round(performance.now() - started));\n}\n","// Bridge to Django's JavaScript catalogue (`/jsi18n/`, loaded by base.html).\n//\n// Source strings stay in English in the code; the French wording lives in\n// `locale/fr/LC_MESSAGES/djangojs.po`. If the catalogue has not loaded — a unit\n// test, a page that omits the script — every helper degrades to the source\n// string instead of throwing.\n\n/** Translate a string. */\nexport function gettext(text) {\n  return typeof window !== 'undefined' && window.gettext\n    ? window.gettext(text)\n    : text;\n}\n\n/** Plural-aware translation. */\nexport function ngettext(singular, plural, count) {\n  if (typeof window !== 'undefined' && window.ngettext) {\n    return window.ngettext(singular, plural, count);\n  }\n  return count === 1 ? singular : plural;\n}\n\n/**\n * Translate a string within a context (`msgctxt` in djangojs.po), for a word\n * that reads differently elsewhere: \"Closed\" is \"Clos\" for a poll and\n * \"Fermé\" for a form.\n *\n * @param {string} context - The msgctxt of the catalogue entry.\n * @param {string} text - The source string.\n * @returns {string} The translation, or `text` when the catalogue is missing.\n */\nexport function pgettext(context, text) {\n  return typeof window !== 'undefined' && window.pgettext\n    ? window.pgettext(context, text)\n    : text;\n}\n\n/**\n * Translate then substitute named placeholders, e.g.\n *   interpolate(gettext('%(count)s items selected'), { count: 3 })\n */\nexport function interpolate(text, params) {\n  return String(text).replace(/%\\((\\w+)\\)s/g, (match, key) =>\n    (Object.prototype.hasOwnProperty.call(params, key) ? params[key] : match));\n}\n\n/** Shorthand: translate and interpolate in one call. */\nexport function t(text, params) {\n  const translated = gettext(text);\n  return params ? interpolate(translated, params) : translated;\n}\n\nexport default { gettext, ngettext, pgettext, interpolate, t };\n","/**\n * @file The phone questions of a form's fill page (public_form.js), with\n * intl-tel-input: a searchable list of countries with their flag and dialling\n * code, the number formatted while it is typed, and checked before the form\n * is sent by the same rules (libphonenumber) the server applies again\n * (file/form_schema.py `clean_phone`). No country is picked beforehand:\n * the respondent picks one, or types the number with its dialling code.\n *\n * The library, its styles and its number rules are loaded only on a page\n * with a phone question; the rules come last, when the picker is up. Without\n * JavaScript the input stays a plain `type=\"tel\"` field and the server does\n * the checking. What is posted is the whole international number, so the\n * country picked travels with it.\n */\nimport { t } from './i18n.js';\n\n/**\n * The texts of the picker in the page's language: French has its own, any\n * other language gets the library's English.\n *\n * @param {string} lang The page's language, \"fr\" or \"fr-FR\" alike.\n * @returns {Promise<Object>}\n */\nasync function pickerTexts(lang) {\n  if (!lang.toLowerCase().startsWith('fr')) return {};\n  const module = await import('intl-tel-input/locale/fr');\n  return module.default;\n}\n\n/**\n * Turn every phone question of `form` into a country picker and a number\n * field, and hold the form back while one holds a number that cannot exist.\n *\n * @param {HTMLFormElement} form\n * @returns {Promise<void>}\n */\nexport async function initPhoneInputs(form) {\n  const inputs = Array.from(form.querySelectorAll('input[type=\"tel\"][data-phone]'));\n  if (!inputs.length) return;\n  const lang = document.documentElement.lang || 'fr';\n  const [{ default: intlTelInput }, uiTranslations] = await Promise.all([\n    import('intl-tel-input'),\n    pickerTexts(lang),\n    import('intl-tel-input/styles'),\n  ]);\n  const pickers = inputs.map((input) => {\n    const picker = intlTelInput(input, {\n      initialCountry: '',\n      // The dialling code stays in the number: \"+33 6...\" typed straight in\n      // picks the flag, a country picked writes its code in the field.\n      separateDialCode: false,\n      strictMode: true,\n      countryNameLocale: lang,\n      uiTranslations,\n      containerClass: 'dc-phone',\n      loadUtils: () => import('intl-tel-input/utils'),\n    });\n    input.addEventListener('input', () => input.setCustomValidity(''));\n    return { input, picker };\n  });\n  form.addEventListener('submit', (event) => {\n    for (const { input, picker } of pickers) {\n      if (!input.value.trim()) continue;\n      // null while the rules are still loading: the server checks anyway.\n      if (picker.isValidNumber() === false) {\n        event.preventDefault();\n        input.setCustomValidity(t('Enter a valid phone number, with its country code (+33 for France, for example).'));\n        input.reportValidity();\n        input.focus();\n        return;\n      }\n      const number = picker.getNumber();\n      if (number) input.value = number;\n    }\n  });\n}\n","// Single source of truth for the stroked 24x24 glyphs used across the UI.\n// Values are arrays of `d` attributes so multi-path glyphs work the same way.\n// Rendered by AppIcon.vue — never paste raw <svg> markup in a component again.\n\nexport const ICONS = {\n  // Objects\n  folder: ['M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z'],\n  // « Save to my files »: a copy into a folder (Heroicons v1 folder-download).\n  'folder-download': ['M12 10v6m0 0l-3-3m3 3l3-3M3 17V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z'],\n  file: ['M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'],\n  image: ['M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z'],\n  document: ['M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z'],\n  markdown: ['M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z'],\n  // A web page the assistant opened beside the conversation (Heroicons v1 globe).\n  globe: ['M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z'],\n  // Automatic folders: work the machine does on its own.\n  sparkles: ['M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z'],\n\n  // A pen, for what asks for a signature (the explorer menu, the signature\n  // pages).\n  signature: ['M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z'],\n\n  // The PDF editor: a page turned a quarter either way (Lucide's rotate-ccw\n  // and rotate-cw), taken out to a file of its own (Heroicons v1\n  // external-link), and a text added (Lucide's type).\n  'rotate-left': ['M3 12a9 9 0 109-9 9.75 9.75 0 00-6.74 2.74L3 8', 'M3 3v5h5'],\n  'rotate-right': ['M21 12a9 9 0 11-9-9c2.52 0 4.93 1 6.74 2.74L21 8', 'M21 3v5h-5'],\n  extract: ['M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14'],\n  text: ['M4 7V4h16v3', 'M9 20h6', 'M12 4v16'],\n\n  // Actions\n  plus: ['M12 4v16m8-8H4'],\n  close: ['M6 18L18 6M6 6l12 12'],\n  download: ['M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4'],\n  upload: ['M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12'],\n  edit: ['M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z'],\n  move: ['M7 16V4m0 0L3 8m4-4l4 4m6 0v12m0 0l4-4m-4 4l-4-4'],\n  trash: ['M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16'],\n  // A tray taking in an arrow: the Save of the document pages (save_button.js).\n  save: ['M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3m-1 4l-3 3m0 0l-3-3m3 3V4'],\n  // The Print of the editor page (print_document.js), Heroicons v1 outline.\n  printer: ['M17 17h2a2 2 0 002-2v-4a2 2 0 00-2-2H5a2 2 0 00-2 2v4a2 2 0 002 2h2m2 4h6a2 2 0 002-2v-4a2 2 0 00-2-2H9a2 2 0 00-2 2v4a2 2 0 002 2zm8-12V5a2 2 0 00-2-2H9a2 2 0 00-2 2v4h10z'],\n  // A curved arrow back: a message replied to (MailReader.vue, _mail_row.html).\n  reply: ['M9 15L3 9m0 0l6-6M3 9h12a6 6 0 010 12h-3'],\n  // The same arrow, onward: a message forwarded.\n  forward: ['M15 15l6-6m0 0l-6-6m6 6H9a6 6 0 000 12h3'],\n  restore: ['M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15'],\n  // Pause and resume an account in the user administration (Heroicons v1 outline).\n  pause: ['M10 9v6m4-6v6m7-3a9 9 0 11-18 0 9 9 0 0118 0z'],\n  play: [\n    'M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z',\n    'M21 12a9 9 0 11-18 0 9 9 0 0118 0z',\n  ],\n  search: ['M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'],\n  link: ['M13.828 10.172a4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.1-1.1m-1.756-4.928a4 4 0 005.656 0l3-3a4 4 0 10-5.656-5.656l-1.1 1.1'],\n  tag: ['M7 7h.01M7 3h5a1.99 1.99 0 011.414.586l7 7a2 2 0 010 2.828l-5 5a2 2 0 01-2.828 0l-7-7A2 2 0 013 10V5a2 2 0 012-2z'],\n  // A funnel, for the mail rules (Heroicons v1 filter).\n  filter: ['M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z'],\n  clock: ['M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'],\n  star: ['M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.196-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.783-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z'],\n  // \"More actions\" menu of a listing row (ui/ActionMenu.vue).\n  'dots-horizontal': ['M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z'],\n  gear: [\n    'M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z',\n    'M15 12a3 3 0 11-6 0 3 3 0 016 0z',\n  ],\n\n  // File families, for the tinted badges of the listings. One glyph per family\n  // of `FILE_TYPE_MAP` in common.js — keep the two in step.\n  video: ['M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z'],\n  audio: ['M9 19V6l12-3v13M9 19a3 3 0 11-6 0 3 3 0 016 0zm12-3a3 3 0 11-6 0 3 3 0 016 0z'],\n  code: ['M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4'],\n  archive: ['M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4'],\n\n  // People\n  contact: ['M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'],\n  'user-add': ['M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM3 20a6 6 0 0112 0v1H3v-1z'],\n  addressbook: ['M17 20h2a2 2 0 002-2V6a2 2 0 00-2-2H7a2 2 0 00-2 2v12a2 2 0 002 2h2m3-6a3 3 0 100-6 3 3 0 000 6zm-5 6a5 5 0 0110 0H9z'],\n  // An organisation among the contacts (Heroicons v1 outline \"office-building\").\n  building: ['M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4'],\n  people: ['M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z'],\n  // The badge of an avatar whose photo can be changed (Heroicons v1 outline).\n  camera: [\n    'M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z',\n    'M15 13a3 3 0 11-6 0 3 3 0 016 0z',\n  ],\n  copy: ['M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z'],\n\n  mail: ['M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'],\n  calendar: ['M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'],\n  // A slot of a booking page taken: a form's booking question.\n  'calendar-check': ['M8 7V3m8 4V3M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z', 'M9 15l2 2 4-4'],\n  task: ['M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-6 4h6'],\n\n  // Office documents in the New menu. A sheet is a grid, a deck is a framed\n  // board on a stand — enough to tell the three entries apart at 16px.\n  spreadsheet: ['M4 5h16v14H4z', 'M4 10h16M4 15h16M10 5v14'],\n  presentation: ['M3 4h18M4 4v9a1 1 0 001 1h14a1 1 0 001-1V4', 'M12 14v6m-3 0h6'],\n\n  // A diagram in the New menu: two boxes and the link between them, which is\n  // what a flowchart reduces to at 16px.\n  diagram: ['M4 4h6v5H4zM14 15h6v5h-6z', 'M7 9v3a2 2 0 002 2h5'],\n\n  // A form in the New menu and the listing: a sheet, one field, a ticked box.\n  form: ['M5 4h14a1 1 0 011 1v14a1 1 0 01-1 1H5a1 1 0 01-1-1V5a1 1 0 011-1z',\n    'M8 8h8v3H8zM8 15h3', 'M13.5 15.5l1.5 1.5 3-3'],\n  // Question types of the form editor's palette.\n  phone: ['M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z'],\n  hash: ['M7 20l4-16m2 16l4-16M6 9h14M4 15h14'],\n  radio: ['M21 12a9 9 0 11-18 0 9 9 0 0118 0z', 'M15 12a3 3 0 11-6 0 3 3 0 016 0z'],\n  heading: ['M6 4v16M18 4v16M6 12h12'],\n  // Drag handle of a form row or question.\n  grip: ['M9 6h.01M15 6h.01M9 12h.01M15 12h.01M9 18h.01M15 18h.01'],\n  'arrow-down': ['M19 14l-7 7m0 0l-7-7m7 7V3'],\n  'arrow-left': ['M10 19l-7-7m0 0l7-7m-7 7h18'],\n  // A mouse pointer, for the drag-and-drop demo of an empty form (FormCanvas.vue).\n  cursor: ['M5 3l13 7.5-5.8 1.4L9.8 18z', 'M12.2 11.9l4.3 5.6'],\n\n  // Assistant composer: attach a file, send (Heroicons v1 outline), stop an answer.\n  'paper-clip': ['M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13'],\n  // The paper plane of the composer's Send.\n  send: ['M12 19l9 2-9-18-9 18 9-2zm0 0v-8'],\n  'arrow-up': ['M5 10l7-7m0 0l7 7m-7-7v18'],\n  // Stop: a plain square, rendered `filled` (the user's choice over Heroicons' ringed stop).\n  stop: ['M8 8h8v8H8z'],\n  // Dictation (the form editor's assistant composer): a microphone, and the\n  // same struck through while it listens, to stop it (Heroicons v1 outline).\n  mic: ['M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z'],\n  'mic-off': ['M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z',\n    'M4 4l16 16'],\n\n  // Table column chooser: three vertical bands inside a frame.\n  columns: ['M4 5h16v14H4z', 'M10 5v14M15 5v14'],\n\n  // Top bar menu button of the narrow layout, which slides in the navigation drawer.\n  menu: ['M4 6h16M4 12h16M4 18h16'],\n\n  // Entries of the row menu of the narrow listing (FileListItem.vue): select\n  // the row, open its details panel (Heroicons v1 outline).\n  check: ['M5 13l4 4L19 7'],\n  // Zoom rows of the image and PDF viewers' \"…\" menu (Heroicons v1 outline).\n  'zoom-in': ['M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0zM10 7v6m3-3H7'],\n  'zoom-out': ['M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0zM13 10H7'],\n  expand: ['M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4'],\n  // Its reverse: the mail drawer brought back to its size (MailDockWindow.vue).\n  shrink: ['M9 4v5H4m5 0L4 4m11 0v5h5m-5 0l5-5M9 20v-5H4m5 0l-5 5m11 0v-5h5m-5 0l5 5'],\n  // Comments of a file, in the \"…\" menu of a viewer's action bar.\n  bell: ['M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9'],\n  chat: ['M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.86 9.86 0 01-4-.8L3 20l1.3-3.2A7.6 7.6 0 013 12c0-4.418 4.03-8 9-8s9 3.582 9 8z'],\n  // The editor's \"Preview\" entry, back from the Markdown source (Heroicons v1 outline).\n  eye: [\n    'M15 12a3 3 0 11-6 0 3 3 0 016 0z',\n    'M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z',\n  ],\n  // The same eye crossed out, once a visibility toggle has hidden something:\n  // the slots of a booking page (Heroicons v1 outline, as _visibility_eye.html).\n  'eye-off': ['M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21'],\n  // The grid view of the explorer, in the \"…\" menu of its action bar.\n  grid: ['M4 5a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM14 5a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1V5zM4 15a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1H5a1 1 0 01-1-1v-4zM14 15a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-4z'],\n  info: ['M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'],\n  // A help section to unfold, e.g. how to embed a form (Heroicons v1 outline).\n  help: ['M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'],\n  // Shows and hides the details panel: the frame of the page with the column\n  // the panel takes drawn on its right.\n  'panel-right': ['M4 5h16v14H4z', 'M15 5v14'],\n\n  // Secrets and what unlocks them, for a password manager and the like (the\n  // Coffre module): a vault locked and open, a key, a protected account, the\n  // fingerprint of a passkey, and the kinds of item a vault keeps -- a bank\n  // card, an identity, a terminal for an SSH key. All Heroicons v1 outline\n  // 1.0.6 (lock-closed, lock-open, key, shield-check, finger-print,\n  // credit-card, identification, terminal), copied as published.\n  lock: ['M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z'],\n  'lock-open': ['M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z'],\n  key: ['M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z'],\n  'shield-check': ['M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z'],\n  fingerprint: ['M12 11c0 3.517-1.009 6.799-2.753 9.571m-3.44-2.04l.054-.09A13.916 13.916 0 008 11a4 4 0 118 0c0 1.017-.07 2.019-.203 3m-2.118 6.844A21.88 21.88 0 0015.171 17m3.839 1.132c.645-2.266.99-4.659.99-7.132A8 8 0 008 4.07M3 15.364c.64-1.319 1-2.8 1-4.364 0-1.457.39-2.823 1.07-4'],\n  'credit-card': ['M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z'],\n  identification: ['M10 6H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V8a2 2 0 00-2-2h-5m-4 0V5a2 2 0 114 0v1m-4 0a2 2 0 104 0m-5 8a2 2 0 100-4 2 2 0 000 4zm0 0c1.306 0 2.417.835 2.83 2M9 14a3.001 3.001 0 00-2.83 2M15 11h3m-3 4h2'],\n  terminal: ['M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'],\n\n  // Chevrons\n  'chevron-right': ['M9 5l7 7-7 7'],\n  'chevron-left': ['M15 19l-7-7 7-7'],\n  'chevron-down': ['M19 9l-7 7-7-7'],\n  'chevron-up': ['M5 15l7-7 7 7'],\n};\n\nexport function iconPaths(name) {\n  return ICONS[name] || [];\n}\n\n/**\n * Inline SVG markup for a glyph, for the pages rendered by Django.\n * @param {string} iconName - A key of ICONS.\n * @param {string} [sizeClass='w-4 h-4'] - Classes of the <svg>.\n * @returns {string}\n */\nexport function iconMarkup(iconName, sizeClass = 'w-4 h-4') {\n  const paths = iconPaths(iconName)\n    .map(d => `<path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"${d}\"/>`)\n    .join('');\n  return `<svg class=\"${sizeClass}\" fill=\"none\" stroke=\"currentColor\" `\n    + `viewBox=\"0 0 24 24\" aria-hidden=\"true\" focusable=\"false\">${paths}</svg>`;\n}\n","/**\n * @file Repeated blocks and display conditions of a form's fill page\n * (_form_sheet.html, form_schema.fill_blocks).\n *\n * A block with a condition (`data-show-if`, the name of the input it watches,\n * and `data-show-value`) is hidden while that answer does not match, as the\n * server decides (form_schema.condition_met): the same value, or among the\n * boxes ticked (`data-show-multiple`). An answer inside a hidden block counts\n * as none, so a condition on it hides its block too.\n *\n * A repeated block (`data-repeat-items`) gets its \"Add\" and \"Remove\" in place:\n * a new item is a copy of the first, emptied, and every item is renumbered\n * so its inputs keep the names the server reads (\"f_<id>__<item>\") and the\n * hidden count (`data-repeat-count`) says how many there are. Without this\n * script those buttons send the page and the server does the same\n * (form_schema.repeat_action).\n */\nimport { t } from './i18n.js';\n\n/** The attributes that carry an item's number, \"__<item>\" at their end or before \"-help\"/\"-error\". */\nconst NUMBERED_ATTRIBUTES = ['name', 'id', 'for', 'aria-describedby'];\n\n/**\n * Whether an answer meets a condition, as form_schema.condition_met reads it.\n *\n * @param {string[]} values The answer: the value typed or chosen, or the boxes ticked.\n * @param {string} expected The condition's value.\n * @param {boolean} multiple Whether the answer is tick boxes.\n * @returns {boolean}\n */\nexport function matches(values, expected, multiple) {\n  const wanted = String(expected || '').trim().toLowerCase();\n  const given = (values || []).map(value => String(value).trim().toLowerCase()).filter(Boolean);\n  if (multiple) return given.includes(wanted);\n  return given.length > 0 && given[0] === wanted;\n}\n\n/**\n * `text` with the item number `from` replaced by `to`, wherever an attribute\n * of an item names it: \"f_x__2\", \"f_x__2-error\", \"f_x__2-help f_x__2-error\".\n *\n * @param {string} text\n * @param {number} from\n * @param {number} to\n * @returns {string}\n */\nexport function renumber(text, from, to) {\n  return String(text).replace(new RegExp(`__${from}(?=$|[-\\\\s])`, 'g'), `__${to}`);\n}\n\n/**\n * The answer to the input named `name`, as the server would read it: none\n * when it sits in a hidden block.\n *\n * @param {HTMLFormElement} form\n * @param {string} name\n * @returns {string[]}\n */\nfunction answerOf(form, name) {\n  const values = [];\n  form.querySelectorAll(`[name=\"${CSS.escape(name)}\"]`).forEach((input) => {\n    if (input.closest('[data-block]')?.hidden) return;\n    if ((input.type === 'radio' || input.type === 'checkbox') && !input.checked) return;\n    if (input.value) values.push(input.value);\n  });\n  return values;\n}\n\n/**\n * Show or hide every block with a condition, in page order: a block's answer\n * is read once the blocks before it are settled.\n *\n * @param {HTMLFormElement} form\n */\nfunction applyConditions(form) {\n  form.querySelectorAll('[data-block][data-show-if]').forEach((block) => {\n    block.hidden = !matches(answerOf(form, block.dataset.showIf), block.dataset.showValue,\n      block.hasAttribute('data-show-multiple'));\n  });\n}\n\n/**\n * Give an item the number `to` (it had `from`): its inputs' names, ids,\n * labels and descriptions, its title and its Remove button.\n *\n * @param {HTMLElement} item\n * @param {number} from\n * @param {number} to\n * @param {string} [label] The block's name of one item (\"Beneficial owner\"),\n *   passed in: a new item is renumbered before it joins the list.\n */\nfunction renumberItem(item, from, to, label = '') {\n  item.dataset.repeatItem = String(to);\n  item.querySelectorAll('*').forEach((element) => {\n    NUMBERED_ATTRIBUTES.forEach((attribute) => {\n      if (element.hasAttribute(attribute)) {\n        element.setAttribute(attribute, renumber(element.getAttribute(attribute), from, to));\n      }\n    });\n  });\n  const number = item.querySelector('.dc-form-item-number');\n  if (number) number.textContent = label ? `${label} ${to + 1}` : t('Item %(number)s', { number: to + 1 });\n  const remove = item.querySelector('[data-repeat-remove]');\n  if (remove) remove.value = `${remove.value.split(':')[0]}:${to}`;\n}\n\n/**\n * Empty an item copied from another: its answers, its errors.\n *\n * @param {HTMLElement} item\n */\nfunction clearItem(item) {\n  item.querySelectorAll('input, textarea, select').forEach((input) => {\n    if (input.type === 'radio' || input.type === 'checkbox') input.checked = false;\n    else if (input.tagName === 'SELECT') input.selectedIndex = 0;\n    else input.value = '';\n    input.removeAttribute('aria-invalid');\n  });\n  item.querySelectorAll('.dc-field-error').forEach(error => error.remove());\n}\n\n/**\n * Bring one repeated block to life: Add and Remove in place, within its bounds.\n *\n * A complement's repeated block (form_schema._fill_sent_repeated) has\n * nothing to add or remove: no `[data-repeat-items]`, nothing to do.\n *\n * @param {HTMLElement} block A `.dc-form-block` holding `[data-repeat-items]`.\n */\nfunction initRepeat(block) {\n  const list = block.querySelector('[data-repeat-items]');\n  if (!list) return;\n  const count = block.querySelector('[data-repeat-count]');\n  const add = block.querySelector('[data-repeat-add]');\n  const min = Number(list.dataset.repeatMin || 0);\n  const max = Number(list.dataset.repeatMax || 1);\n  const label = list.dataset.repeatLabel || '';\n  const items = () => Array.from(list.querySelectorAll(':scope > [data-repeat-item]'));\n  // A copy of the first item as the page drew it, emptied: what Add appends,\n  // even once every item has been removed.\n  const template = items()[0]?.cloneNode(true);\n  if (template) clearItem(template);\n\n  const settle = () => {\n    const current = items();\n    count.value = String(current.length);\n    if (add) add.hidden = current.length >= max || !template;\n    current.forEach((item) => {\n      const remove = item.querySelector('[data-repeat-remove]');\n      if (remove) remove.hidden = current.length <= min;\n    });\n  };\n\n  if (add) {\n    add.addEventListener('click', (event) => {\n      event.preventDefault();\n      if (!template || items().length >= max) return;\n      const item = template.cloneNode(true);\n      renumberItem(item, Number(template.dataset.repeatItem), items().length, label);\n      list.appendChild(item);\n      settle();\n      item.querySelector('input, textarea, select')?.focus();\n    });\n  }\n\n  list.addEventListener('click', (event) => {\n    const remove = event.target.closest('[data-repeat-remove]');\n    if (!remove) return;\n    event.preventDefault();\n    if (items().length <= min) return;\n    const item = remove.closest('[data-repeat-item]');\n    const gone = Number(item.dataset.repeatItem);\n    item.remove();\n    items().forEach((other) => {\n      const number = Number(other.dataset.repeatItem);\n      if (number > gone) renumberItem(other, number, number - 1, label);\n    });\n    settle();\n    add?.focus();\n  });\n  settle();\n}\n\n/**\n * Bring the repeated blocks and the conditions of every fill page form to life.\n *\n * @param {ParentNode} root\n */\nexport function initFormBlocks(root) {\n  root.querySelectorAll('form.dc-form-body').forEach((form) => {\n    form.querySelectorAll('.dc-form-block.is-repeat').forEach(initRepeat);\n    if (form.querySelector('[data-show-if]')) {\n      applyConditions(form);\n      form.addEventListener('input', () => applyConditions(form));\n      form.addEventListener('change', () => applyConditions(form));\n    }\n  });\n}\n","/**\n * @file The sections of a form's fill page (_form_sheet.html): a form of more\n * than one block shows each block as a section (`[data-form-section]`, a\n * <details>), headed by its title and where it stands, with the progress of\n * the whole form above them (`[data-form-progress]`).\n *\n * One section stands open at a time: on arrival, the one the server opened\n * when it holds an error or a question to correct, else the first that\n * still asks for something; \"Next section\" folds it and unfolds the next.\n * Each heading says what is left (To provide, To fill in), Completed with\n * the files chosen, or To correct while a question refused or refused by\n * the server is not answered again; the bar counts the sections that ask\n * for something and are done. Everything is counted again as the\n * respondent types, picks or drops files, and when a display condition\n * hides or shows a block (form_repeat.js). A section hidden by its\n * condition is neither numbered nor counted.\n *\n * Nothing is checked here: the server reads the answers as before. Without\n * this script the sections open and close by themselves, and the bar stays\n * hidden.\n */\nimport { iconMarkup } from './icons.js';\n\n/**\n * Where a section stands, from what its questions hold.\n *\n * @param {{required: number, filled: number, flagged: boolean}} counts\n *   The required questions of the section, how many of them are answered,\n *   and whether it holds an error or a question to correct.\n * @returns {'complete'|'fix'|'todo'|'optional'}\n */\nexport function sectionState({ required, filled, flagged }) {\n  if (!required) return 'optional';\n  if (filled >= required) return 'complete';\n  return flagged ? 'fix' : 'todo';\n}\n\n/**\n * The progress of the form: the sections that ask for something, and how\n * many of them are complete.\n *\n * @param {string[]} states The states of the sections shown (`sectionState`).\n * @returns {{done: number, total: number, percent: number}}\n */\nexport function progressOf(states) {\n  const counted = states.filter(state => state !== 'optional');\n  const done = counted.filter(state => state === 'complete').length;\n  const total = counted.length;\n  return { done, total, percent: total ? Math.round((done / total) * 100) : 0 };\n}\n\n/**\n * The files a file question holds: those chosen now, and those its draft\n * keeps (_form_field.html `.dc-form-kept`) but for the ones ticked out.\n *\n * @param {Element} wrapper The question's `.dc-form-field`.\n * @returns {string[]} Their names.\n */\nfunction filesOf(wrapper) {\n  const names = [];\n  wrapper.querySelectorAll('input[type=\"file\"]').forEach((input) => {\n    Array.from(input.files || []).forEach(file => names.push(file.name));\n  });\n  wrapper.querySelectorAll('.dc-form-kept-file').forEach((entry) => {\n    const remove = entry.querySelector('input[name=\"draft_remove\"]');\n    if (remove && remove.checked) return;\n    const name = entry.querySelector('.dc-form-kept-name');\n    if (name) names.push(name.textContent.trim());\n  });\n  return names;\n}\n\n/**\n * Whether a question holds an answer, as the respondent left it on the page.\n *\n * @param {Element} wrapper The question's `.dc-form-field`.\n * @returns {boolean}\n */\nexport function answered(wrapper) {\n  // A question of a complement shown back as it was sent\n  if (wrapper.classList.contains('dc-form-sent')) return true;\n  if (wrapper.querySelector('input[type=\"file\"]')) return filesOf(wrapper).length > 0;\n  const week = wrapper.querySelector('[data-week-value]');\n  if (week) return Boolean(week.value);\n  const boxes = Array.from(wrapper.querySelectorAll('input[type=\"radio\"], input[type=\"checkbox\"]'))\n    .filter(input => input.name !== 'draft_remove');\n  if (boxes.length) return boxes.some(input => input.checked && input.value !== '');\n  return Array.from(wrapper.querySelectorAll('input:not([type=\"hidden\"]), select, textarea'))\n    .some(control => String(control.value || '').trim() !== '');\n}\n\n/**\n * The questions under `root` that count: those not inside a question of a\n * complement shown back (its own input is counted through it).\n *\n * @param {Element} root A section, a block, a form.\n * @returns {Element[]}\n */\nexport function questionsOf(root) {\n  return Array.from(root.querySelectorAll('.dc-form-field'))\n    .filter(wrapper => !(wrapper.parentElement && wrapper.parentElement.closest('.dc-form-sent')));\n}\n\n/**\n * Bring the sections of one fill page to life.\n *\n * @param {HTMLElement} progress The `[data-form-progress]` element, with the labels.\n */\nfunction initSections(progress) {\n  const form = progress.closest('form');\n  const sections = Array.from(form.querySelectorAll('[data-form-section]'));\n  if (!sections.length) return;\n  const labels = progress.dataset;\n  const count = progress.querySelector('[data-form-progress-count]');\n  const bar = progress.querySelector('[data-form-progress-bar]');\n  const shown = () => sections.filter(section => !section.closest('[data-block]').hidden);\n\n  /**\n   * Count a section again and draw its heading.\n   *\n   * @param {HTMLDetailsElement} section\n   * @param {number} number Its place among the sections shown.\n   * @returns {string} Its state.\n   */\n  const drawSection = (section, number) => {\n    const questions = questionsOf(section);\n    const required = questions.filter(wrapper => wrapper.hasAttribute('data-required'));\n    const flagged = Boolean(section.querySelector('.dc-field-error, .dc-form-refusal, [aria-invalid=\"true\"]'));\n    const state = sectionState({\n      required: required.length, filled: required.filter(answered).length, flagged,\n    });\n    const hasFiles = Boolean(section.querySelector('input[type=\"file\"]'));\n    const mark = section.querySelector('[data-section-mark]');\n    mark.className = `dc-form-section-mark is-${state}`;\n    if (state === 'complete') mark.innerHTML = iconMarkup('check', 'w-3.5 h-3.5');\n    else mark.textContent = String(number);\n    const badge = section.querySelector('[data-section-state]');\n    badge.hidden = false;\n    badge.className = `dc-badge ${state === 'complete' ? 'is-success' : state === 'fix' ? 'is-warning' : 'is-info'}`;\n    badge.textContent = {\n      complete: labels.labelComplete,\n      fix: labels.labelFix,\n      optional: labels.labelOptional,\n      todo: hasFiles ? labels.labelTodoFile : labels.labelTodo,\n    }[state];\n    const summary = section.querySelector('[data-section-summary]');\n    const files = state === 'complete' ? questions.flatMap(filesOf) : [];\n    summary.hidden = !files.length;\n    summary.textContent = files.join(', ');\n    section.classList.toggle('is-complete', state === 'complete');\n    section.classList.toggle('is-fix', state === 'fix');\n    return state;\n  };\n\n  /** Count everything again: each section shown, the bar, the \"Next section\" buttons. */\n  const draw = () => {\n    const visible = shown();\n    const states = visible.map((section, index) => drawSection(section, index + 1));\n    const { done, total, percent } = progressOf(states);\n    progress.hidden = !total;\n    count.textContent = labels.labelProgress.replace('__DONE__', String(done)).replace('__TOTAL__', String(total));\n    bar.setAttribute('aria-valuenow', String(percent));\n    bar.firstElementChild.style.width = `${percent}%`;\n    sections.forEach((section) => {\n      const next = section.querySelector('[data-section-next]');\n      if (next) next.hidden = visible.indexOf(section) < 0 || visible.indexOf(section) === visible.length - 1;\n    });\n    return states;\n  };\n\n  /**\n   * Unfold one section and fold the others.\n   *\n   * @param {HTMLDetailsElement} section\n   */\n  const openOnly = (section) => {\n    sections.forEach((other) => { other.open = other === section; });\n  };\n\n  // On arrival: the section the server opened when it holds an error or a\n  // question to correct, else the first that still asks for something.\n  const states = draw();\n  const visible = shown();\n  const flagged = visible.find((section, index) => states[index] === 'fix');\n  const pending = visible.find((section, index) => states[index] === 'todo');\n  openOnly(flagged || pending || visible[0] || sections[0]);\n\n  sections.forEach((section) => {\n    section.addEventListener('toggle', () => {\n      if (section.open) sections.forEach((other) => { if (other !== section) other.open = false; });\n    });\n    const next = section.querySelector('[data-section-next]');\n    if (!next) return;\n    next.addEventListener('click', () => {\n      const list = shown();\n      const following = list[list.indexOf(section) + 1];\n      if (!following) return;\n      openOnly(following);\n      following.scrollIntoView({ block: 'start', behavior: 'smooth' });\n      following.querySelector('summary').focus({ preventScroll: true });\n    });\n  });\n\n  // After the other handlers of the same event (the file lists of\n  // public_form.js, the conditions of form_repeat.js) have done their part.\n  const later = () => window.setTimeout(draw, 0);\n  form.addEventListener('input', later);\n  form.addEventListener('change', later);\n  form.addEventListener('click', later);\n  // The messages of the module that made the form (form_check.js)\n  form.addEventListener('dc:form-checked', later);\n  // A question the browser reports invalid (a file over its limits) is shown.\n  form.addEventListener('invalid', (event) => {\n    const section = event.target.closest && event.target.closest('[data-form-section]');\n    if (section && !section.open) openOnly(section);\n  }, true);\n}\n\n/**\n * Bring to life the sections of every fill page under `root`.\n *\n * @param {ParentNode} root\n */\nexport function initFormSections(root) {\n  root.querySelectorAll('[data-form-progress]').forEach(initSections);\n}\n","/**\n * @file The box « I cannot provide everything asked and want to send anyway »\n * of a fill page whose answer may go incomplete (_form_sheet.html\n * `[data-form-incomplete]`, a form keeping drafts for an identified\n * respondent), as fiduvault's request page had it: while a required question\n * of a block shown is left empty, the box is there and « Send » is held;\n * once every required answer is given, the box goes and « Send » sends. The\n * box ticked, « Send » sends the answer as it is (`incomplete=1`, the server\n * leaving its empty required questions be).\n *\n * « Send » is held by a class and a refused submit, not `disabled`, which\n * the captcha of a public page owns (public_form.js). Without this script the\n * box is always there and the server checks as before.\n */\nimport { answered, questionsOf } from './form_sections.js';\n\n/**\n * Whether every required question of the blocks shown holds an answer.\n *\n * @param {HTMLFormElement} form\n * @returns {boolean}\n */\nexport function complete(form) {\n  return Array.from(form.querySelectorAll('[data-block]'))\n    .filter(block => !block.hidden)\n    .every(block => questionsOf(block)\n      .filter(wrapper => wrapper.hasAttribute('data-required'))\n      .every(answered));\n}\n\n/**\n * Bring the box of one fill page to life.\n *\n * @param {HTMLElement} box The `[data-form-incomplete]` label.\n */\nfunction initBox(box) {\n  const form = box.closest('form');\n  const tick = box.querySelector('input[name=\"incomplete\"]');\n  const send = form.querySelector('.dc-form-actions-buttons [data-altcha-submit]:not([name])');\n\n  /** Show the box while something is missing, and hold « Send » until it is ticked. */\n  const draw = () => {\n    const done = complete(form);\n    box.hidden = done;\n    if (done) tick.checked = false;\n    const held = !done && !tick.checked;\n    if (send) {\n      send.classList.toggle('is-held', held);\n      send.setAttribute('aria-disabled', held ? 'true' : 'false');\n    }\n    return held;\n  };\n\n  form.addEventListener('submit', (event) => {\n    // Another button posted (a draft, a repeated block, a booking week).\n    const submitter = event.submitter;\n    if (submitter && submitter.name) return;\n    if (draw()) event.preventDefault();\n  });\n  // After the other handlers of the same event (file lists, conditions).\n  const later = () => window.setTimeout(draw, 0);\n  form.addEventListener('input', later);\n  form.addEventListener('change', later);\n  form.addEventListener('click', later);\n  draw();\n}\n\n/**\n * Bring the box of every fill page under `root` to life.\n *\n * @param {ParentNode} root\n */\nexport function initIncomplete(root) {\n  root.querySelectorAll('[data-form-incomplete]').forEach(initBox);\n}\n","/**\n * @file The check the module that made a form makes of its answers while\n * they are given (_form_sheet.html `data-module-check`,\n * file/modules/form_checks.py): its messages show beside the questions they\n * concern, as the server's own errors do.\n *\n * A moment after an answer changes, the page sends what it holds -- never\n * the files, only what the other questions say -- to its own address with\n * `X-Form-Check: 1`; nothing is stored. The module's messages show for the\n * questions the respondent has already answered or left, so that an empty\n * form does not open on a wall of red. « Send » asks once more, for every\n * question: an answer the module refuses is not posted, so the files chosen\n * stay chosen, and the section of the first refused question opens. A check\n * that does not come back lets the answer go: the server checks it again,\n * and the module on reception.\n */\n\n/** Milliseconds of quiet after a change before the page asks. */\nexport const QUIET_MS = 700;\n\n/**\n * The fields of a form as the check reads them: everything but the files,\n * which are sent with the answer only.\n *\n * @param {HTMLFormElement} form\n * @returns {FormData}\n */\nexport function checkBody(form) {\n  const body = new FormData(form);\n  Array.from(body.keys()).forEach((key) => {\n    if (body.getAll(key).some(value => typeof File !== 'undefined' && value instanceof File)) body.delete(key);\n  });\n  return body;\n}\n\n/**\n * Bring the check of one form to life.\n *\n * @param {HTMLFormElement} form A form with `data-module-check`.\n */\nfunction initCheck(form) {\n  const touched = new Set();\n  let timer = 0;\n  let asked = 0;\n  let cleared = false;\n\n  /**\n   * The question an input belongs to.\n   *\n   * @param {Element} element\n   * @returns {Element|null}\n   */\n  const questionOf = element => (element && element.closest ? element.closest('.dc-form-field') : null);\n\n  /** Take away the messages of the last check. */\n  const clear = () => {\n    form.querySelectorAll('[data-check-error]').forEach(note => note.remove());\n    form.querySelectorAll('[data-check-invalid]').forEach((input) => {\n      input.removeAttribute('aria-invalid');\n      input.removeAttribute('data-check-invalid');\n    });\n  };\n\n  /**\n   * Show the module's messages.\n   *\n   * @param {Object<string, string>} errors Input name -> message.\n   * @param {boolean} all Every question, not only those answered or left.\n   * @returns {Element|null} The first question refused.\n   */\n  const show = (errors, all) => {\n    clear();\n    let first = null;\n    Object.entries(errors || {}).forEach(([name, message]) => {\n      const input = form.querySelector(`[name=\"${CSS.escape(name)}\"]`);\n      const question = questionOf(input);\n      if (!question || (!all && !touched.has(question))) return;\n      const note = document.createElement('p');\n      note.className = 'dc-field-error';\n      note.setAttribute('data-check-error', '');\n      note.setAttribute('role', 'alert');\n      note.textContent = message;\n      question.append(note);\n      input.setAttribute('aria-invalid', 'true');\n      input.setAttribute('data-check-invalid', '');\n      if (!first) first = question;\n    });\n    form.dispatchEvent(new CustomEvent('dc:form-checked', { bubbles: true }));\n    return first;\n  };\n\n  /**\n   * Ask the module what it thinks of the answers as they stand.\n   *\n   * @returns {Promise<Object<string, string>|null>} Its messages, or null when it did not answer.\n   */\n  const ask = async () => {\n    const number = ++asked;\n    try {\n      const response = await fetch(form.getAttribute('action') || window.location.href, {\n        method: 'POST',\n        body: checkBody(form),\n        credentials: 'same-origin',\n        headers: { 'X-Form-Check': '1', Accept: 'application/json' },\n      });\n      if (!response.ok) return null;\n      const payload = await response.json();\n      // An older question answered after a newer one is left unsaid\n      if (number !== asked) return null;\n      return payload && typeof payload.errors === 'object' ? payload.errors : null;\n    } catch {\n      return null;\n    }\n  };\n\n  /** Ask a moment after the last change. */\n  const later = (event) => {\n    const question = questionOf(event.target);\n    if (question) touched.add(question);\n    if (event.target && event.target.type === 'file') return;\n    window.clearTimeout(timer);\n    timer = window.setTimeout(async () => {\n      const errors = await ask();\n      if (errors) show(errors, false);\n    }, QUIET_MS);\n  };\n  form.addEventListener('change', later);\n  form.addEventListener('input', later);\n  // A question left counts as answered: its message may show\n  form.addEventListener('focusout', (event) => {\n    const question = questionOf(event.target);\n    if (question) touched.add(question);\n  });\n\n  form.addEventListener('submit', async (event) => {\n    const submitter = event.submitter;\n    // Another button (a draft, a repeated block, a booking week), the box « send as it is », or the second\n    // pass of a checked answer: it goes\n    if (event.defaultPrevented || (submitter && submitter.name) || cleared\n        || form.querySelector('input[name=\"incomplete\"]:checked')) return;\n    event.preventDefault();\n    window.clearTimeout(timer);\n    const errors = await ask();\n    const first = errors ? show(errors, true) : null;\n    if (!first) {\n      cleared = true;\n      if (submitter) form.requestSubmit(submitter); else form.requestSubmit();\n      cleared = false;\n      return;\n    }\n    const section = first.closest('[data-form-section]');\n    if (section && !section.open) section.open = true;\n    first.scrollIntoView({ block: 'center', behavior: 'smooth' });\n  });\n}\n\n/**\n * Bring the check of every form under `root` that a module checks to life.\n *\n * @param {ParentNode} root\n */\nexport function initModuleCheck(root) {\n  root.querySelectorAll('form[data-module-check]').forEach(initCheck);\n}\n","/**\n * @file The navigation of a form's booking question (_form_field.html).\n *\n * The server draws the next few days with a free slot (file/booking.py\n * DAYS_SHOWN), a column per day, with Previous/Next submit buttons that\n * redraw the whole page on the days before or after when there is no\n * JavaScript. Here those buttons fetch the days instead (`data-week-url`,\n * file/form_booking.py `week_payload`) and only the grid is redrawn, so\n * nothing typed elsewhere in the form moves. The chosen slot lives in the\n * hidden input `data-week-value`, which is what is sent when the slot's day\n * is not among those shown, and the \"Your choice\" line recalls it whatever\n * the days. The server checks the slot again when the answer is sent.\n *\n * A day shows its first `data-week-step` slots (file/booking.py\n * SLOTS_SHOWN), more when the chosen one comes later; \"Show more slots\"\n * (`data-week-more`), a submit button too that draws the page again with\n * every slot of the days shown, uncovers that many more of every day here.\n *\n * The pure helpers (`weekUrl`, `dayEntries`, `choiceLabel`, `shownRows`)\n * hold no DOM, so `node --test` runs them as is.\n */\n\n/**\n * The address of the days from `start`.\n *\n * @param {string} base The endpoint (`data-week-url`).\n * @param {string} start The first day wanted, \"YYYY-MM-DD\".\n * @returns {string}\n */\nexport function weekUrl(base, start) {\n  const separator = base.includes('?') ? '&' : '?';\n  return `${base}${separator}from=${encodeURIComponent(start || '')}`;\n}\n\n/**\n * The days of a payload with each slot marked checked when it is the\n * chosen one.\n *\n * @param {{days: Array<{date: string, label: string, slots: Array<{value: string, label: string}>}>}} payload\n * @param {string} chosen The value of the chosen slot, or ''.\n * @returns {Array<{date: string, label: string, slots: Array<{value: string, label: string, checked: boolean}>}>}\n */\nexport function dayEntries(payload, chosen) {\n  return (payload && Array.isArray(payload.days) ? payload.days : []).map(day => ({\n    date: day.date,\n    label: day.label,\n    slots: (day.slots || []).map(slot => ({ value: slot.value, label: slot.label, checked: slot.value === chosen })),\n  }));\n}\n\n/**\n * How a chosen slot reads: \"Tuesday 6 October, 10:00\", as the server writes it.\n *\n * @param {string} dayLabel The day's heading.\n * @param {string} time The slot's time.\n * @returns {string}\n */\nexport function choiceLabel(dayLabel, time) {\n  return `${dayLabel}, ${time}`;\n}\n\n/**\n * How many slots of each day show: `step`, or as many more rows of `step` as\n * it takes to show the chosen slot. The server draws the first days by the\n * same rule (file/form_booking.py `shown_rows`).\n *\n * @param {ReturnType<typeof dayEntries>} days\n * @param {number} step The slots a day shows at first, and each \"Show more slots\" adds.\n * @returns {number}\n */\nexport function shownRows(days, step) {\n  return days.reduce((rows, day) => {\n    const index = day.slots.findIndex(slot => slot.checked);\n    return index < 0 ? rows : Math.max(rows, (Math.floor(index / step) + 1) * step);\n  }, step);\n}\n\n/**\n * Draw the days into `grid`, the first `rows` slots of each shown.\n *\n * @param {HTMLElement} grid The `data-week-days` element.\n * @param {ReturnType<typeof dayEntries>} days\n * @param {string} name The input name of the question.\n * @param {string} emptyLabel What an empty grid says.\n * @param {number} rows How many slots of each day show (`shownRows`).\n */\nfunction drawDays(grid, days, name, emptyLabel, rows) {\n  const doc = grid.ownerDocument;\n  grid.replaceChildren();\n  if (!days.length) {\n    const empty = doc.createElement('p');\n    empty.className = 'dc-field-hint dc-form-week-empty';\n    empty.textContent = emptyLabel;\n    grid.append(empty);\n    return;\n  }\n  days.forEach((day) => {\n    const column = doc.createElement('div');\n    column.className = 'dc-form-week-day';\n    column.setAttribute('role', 'group');\n    column.setAttribute('aria-label', day.label);\n    const heading = doc.createElement('p');\n    heading.className = 'dc-label';\n    heading.textContent = day.label;\n    column.append(heading);\n    day.slots.forEach((slot, index) => {\n      const label = doc.createElement('label');\n      label.className = 'dc-form-slot';\n      label.hidden = index >= rows;\n      const input = doc.createElement('input');\n      input.type = 'radio';\n      input.name = name;\n      input.value = slot.value;\n      input.checked = slot.checked;\n      const text = doc.createElement('span');\n      text.textContent = slot.label;\n      label.append(input, text);\n      column.append(label);\n    });\n    grid.append(column);\n  });\n}\n\n/**\n * Show the next `step` hidden slots of every day of `grid`.\n *\n * @param {HTMLElement} grid The `data-week-days` element.\n * @param {number} step\n * @returns {HTMLInputElement|null} The radio of the first slot shown.\n */\nfunction showMore(grid, step) {\n  let first = null;\n  grid.querySelectorAll('.dc-form-week-day').forEach((day) => {\n    Array.from(day.querySelectorAll('.dc-form-slot[hidden]')).slice(0, step).forEach((slot) => {\n      slot.hidden = false;\n      first = first || slot.querySelector('input');\n    });\n  });\n  return first;\n}\n\n/**\n * Wire one booking question's week picker: navigation by fetch, \"Show more\n * slots\" in place, and the chosen slot kept in the hidden input and recalled\n * above the grid.\n *\n * @param {HTMLElement} box The `data-week-picker` element.\n */\nexport function initWeekPicker(box) {\n  const name = box.dataset.weekName;\n  const hidden = box.querySelector('[data-week-value]');\n  const choice = box.querySelector('[data-week-choice]');\n  const choiceText = box.querySelector('[data-week-choice-label]');\n  const label = box.querySelector('[data-week-label]');\n  const grid = box.querySelector('[data-week-days]');\n  const buttons = Array.from(box.querySelectorAll('[data-week-nav]'));\n  const more = box.querySelector('[data-week-more]');\n  const step = Number(box.dataset.weekStep) || 6;\n  if (!hidden || !grid || !box.dataset.weekUrl) return;\n\n  /** \"Show more slots\" is there while a slot of the days shown is hidden. */\n  const syncMore = () => {\n    if (more) more.hidden = !grid.querySelector('.dc-form-slot[hidden]');\n  };\n\n  box.addEventListener('change', (event) => {\n    const input = event.target;\n    if (!(input instanceof HTMLInputElement) || input.name !== name || !input.checked) return;\n    hidden.value = input.value;\n    if (!input.value) {\n      choice.hidden = true;\n      return;\n    }\n    const day = input.closest('[role=\"group\"]');\n    const time = input.parentElement.querySelector('span');\n    choiceText.textContent = choiceLabel(day ? day.getAttribute('aria-label') : '', time ? time.textContent : '');\n    choice.hidden = false;\n  });\n\n  /**\n   * Fetch and draw the days from `start`.\n   *\n   * @param {string} start \"YYYY-MM-DD\".\n   * @param {HTMLButtonElement} button The button pressed, focused again after.\n   */\n  const load = async (start, button) => {\n    grid.classList.add('is-loading');\n    grid.setAttribute('aria-busy', 'true');\n    buttons.forEach((other) => { other.disabled = true; });\n    if (more) more.disabled = true;\n    try {\n      const response = await fetch(weekUrl(box.dataset.weekUrl, start), {\n        credentials: 'same-origin', headers: { Accept: 'application/json' },\n      });\n      if (!response.ok) throw new Error(`week ${response.status}`);\n      const payload = await response.json();\n      const days = dayEntries(payload, hidden.value);\n      drawDays(grid, days, name, box.dataset.labelEmpty || '', shownRows(days, step));\n      syncMore();\n      label.textContent = payload.label || '';\n      buttons.forEach((other) => {\n        const target = other.dataset.weekNav === 'prev' ? payload.prev : payload.next;\n        other.value = target || '';\n        other.disabled = !target;\n      });\n    } catch {\n      label.textContent = box.dataset.labelFailed || '';\n      buttons.forEach((other) => { other.disabled = !other.value; });\n    } finally {\n      grid.classList.remove('is-loading');\n      grid.removeAttribute('aria-busy');\n      if (more) more.disabled = false;\n      const focus = button && !button.disabled ? button : buttons.find(other => !other.disabled);\n      if (focus) focus.focus();\n    }\n  };\n\n  buttons.forEach((button) => {\n    // A plain button now: the form is sent by its own Send button only.\n    button.type = 'button';\n    button.addEventListener('click', () => {\n      if (button.value) load(button.value, button);\n    });\n  });\n\n  if (more) {\n    more.type = 'button';\n    more.addEventListener('click', () => {\n      const first = showMore(grid, step);\n      syncMore();\n      // Gone once nothing is left hidden: the focus moves to the first slot it uncovered.\n      if (more.hidden && first) first.focus();\n    });\n  }\n}\n\n/**\n * Wire every booking question of the page.\n *\n * @param {ParentNode} root\n */\nexport function initWeekPickers(root) {\n  root.querySelectorAll('[data-week-picker]').forEach((box) => { initWeekPicker(box); });\n}\n","/**\n * @file The script of a form's fill page (form_fill.html): the captcha of\n * the public page (_form_captcha.html), and, on any fill page with a file\n * question, a check of the files chosen against the question's limits before\n * anything is uploaded. A question taking several files adds each pick to\n * the files already chosen, listed under it with a button to take one out,\n * where a browser alone would replace them. A phone question gets a country\n * picker and is checked before sending (form_phone.js). The page itself works without JavaScript; the\n * server checks everything again.\n *\n * On load, fetch a challenge from the `data-altcha-url` of each\n * `.dc-captcha`, solve it in workers (altcha_worker.js, one per core up to\n * four), and write the answer into the hidden `altcha` field. Until then the\n * send buttons of that form (`data-altcha-submit`) are disabled and a status\n * line says what is going on. A challenge expires (file/captcha.py TTL): a\n * page left open longer solves a fresh one shortly before, timed from when the\n * challenge arrived as the server counts it (`X-Challenge-Expires-In`) on the\n * monotonic clock, never on the browser's date. The solution in hand stays\n * in the field until the fresh one is ready.\n *\n * It also moves a booking question from week to week without reloading the\n * page (form_week.js), brings repeated blocks and display conditions to\n * life (form_repeat.js), and shows a form of several blocks one section at a\n * time with its progress (form_sections.js). Where an answer may go\n * incomplete, \"Send\" waits for every required answer or for the box « I\n * cannot provide everything asked » (form_incomplete.js). A question's error\n * from the server goes once its answer changes. The module that made a form\n * checks its answers as they are given (form_check.js). On a form embedded in another site (`?embed=1`),\n * js/common.js tells the framing page what happens (form_embed.js).\n */\nimport { solve } from './altcha_client.js';\nimport { challengeLifetime, encodePayload, renewalDelay } from './altcha_solver.js';\nimport { fileProblem, mergeFiles, sizeLabel } from './form_file_limits.js';\nimport { initPhoneInputs } from './form_phone.js';\nimport { iconMarkup } from './icons.js';\nimport { initFormBlocks } from './form_repeat.js';\nimport { initFormSections } from './form_sections.js';\nimport { initIncomplete } from './form_incomplete.js';\nimport { initModuleCheck } from './form_check.js';\nimport { initWeekPickers } from './form_week.js';\nimport { t } from './i18n.js';\n\n/** A renewal that failed while the solution in hand is still valid is tried again after this. */\nconst RETRY_MS = 15 * 1000;\n/** Until when (`performance.now()`) the solution in each box's field is valid. */\nconst validUntil = new WeakMap();\n\n/**\n * Run the captcha of one `.dc-captcha` block: fetch, solve, fill, and renew\n * before the challenge expires. A renewal keeps the solution in hand, and\n * the send buttons usable, until the fresh one is ready; one that fails is\n * tried again while the solution in hand lasts.\n *\n * @param {HTMLElement} box\n * @param {boolean} [renewing=false] Whether a solution is already in the field.\n */\nasync function runCaptcha(box, renewing = false) {\n  const form = box.closest('form');\n  const field = box.querySelector('input[name=\"altcha\"]');\n  const status = box.querySelector('[data-altcha-status]');\n  const buttons = form ? Array.from(form.querySelectorAll('[data-altcha-submit]')) : [];\n\n  /**\n   * Show a status line and enable or disable the send buttons.\n   *\n   * @param {string} state 'working', 'done' or 'failed'.\n   */\n  const quiet = box.hasAttribute('data-altcha-quiet');\n  const show = (state) => {\n    // A quiet box (a secondary post, \"send a new code\") speaks only of a failure.\n    status.hidden = quiet && state !== 'failed';\n    status.textContent = box.dataset[`label${state[0].toUpperCase()}${state.slice(1)}`] || '';\n    status.classList.toggle('is-done', state === 'done');\n    status.classList.toggle('is-failed', state === 'failed');\n    buttons.forEach((button) => { button.disabled = state !== 'done'; });\n  };\n\n  if (!renewing) {\n    field.value = '';\n    show('working');\n  }\n  try {\n    const response = await fetch(box.dataset.altchaUrl, {\n      credentials: 'same-origin', headers: { Accept: 'application/json' },\n    });\n    if (!response.ok) throw new Error(`challenge ${response.status}`);\n    const receivedAt = performance.now();\n    const lifetime = challengeLifetime(response.headers);\n    const challenge = await response.json();\n    const solution = await solve(challenge.parameters);\n    if (!solution) throw new Error('unsolved');\n    field.value = encodePayload(challenge, solution, performance.now() - receivedAt);\n    show('done');\n    if (lifetime) {\n      validUntil.set(box, receivedAt + lifetime);\n      window.setTimeout(() => runCaptcha(box, true), renewalDelay(lifetime, receivedAt, performance.now()));\n    }\n  } catch {\n    if (renewing && performance.now() + RETRY_MS < (validUntil.get(box) || 0)) {\n      // The solution in hand still holds: keep it, and try again shortly.\n      window.setTimeout(() => runCaptcha(box, true), RETRY_MS);\n      return;\n    }\n    // Leave the buttons usable: the server says what went wrong, and a\n    // reload fetches a new challenge.\n    show('failed');\n    buttons.forEach((button) => { button.disabled = false; });\n  }\n}\n\n/**\n * The message for what is wrong with the files of a file input, or ''.\n *\n * @param {HTMLInputElement} input A file input with `data-max-files` and `data-max-mb`.\n * @returns {string}\n */\nfunction fileMessage(input) {\n  const problem = fileProblem(input.files, {\n    maxFiles: Number(input.dataset.maxFiles), maxMb: Number(input.dataset.maxMb),\n  });\n  if (!problem) return '';\n  if (problem.code === 'too-many') {\n    return problem.max === 1 ? t('Send only one file.') : t('Send at most %(max)s files.', { max: problem.max });\n  }\n  return t('\"%(name)s\" is larger than %(max)s MB.', { name: problem.name, max: problem.max });\n}\n\n/**\n * Put `files` in a file input, as if picked in one go.\n *\n * @param {HTMLInputElement} input\n * @param {File[]} files\n */\nfunction setFiles(input, files) {\n  const transfer = new DataTransfer();\n  files.forEach(file => transfer.items.add(file));\n  input.files = transfer.files;\n}\n\n/**\n * Draw the files of a multiple file input in `list`, each with a button that\n * takes it out.\n *\n * @param {HTMLInputElement} input\n * @param {HTMLUListElement} list\n */\nfunction renderFileList(input, list) {\n  const files = Array.from(input.files || []);\n  list.hidden = !files.length;\n  list.replaceChildren(...files.map((file, index) => {\n    const item = document.createElement('li');\n    item.className = 'dc-form-file-item';\n    item.innerHTML = iconMarkup('file', 'w-4 h-4 dc-form-file-item-icon');\n    const name = document.createElement('span');\n    name.className = 'dc-form-file-item-name';\n    name.textContent = file.name;\n    name.title = file.name;\n    const size = document.createElement('span');\n    size.className = 'dc-form-file-item-size';\n    size.textContent = sizeLabel(file.size);\n    const remove = document.createElement('button');\n    remove.type = 'button';\n    remove.className = 'dc-icon-btn-quiet';\n    remove.title = t('Remove %(name)s', { name: file.name });\n    remove.setAttribute('aria-label', remove.title);\n    remove.innerHTML = iconMarkup('close', 'w-4 h-4');\n    remove.addEventListener('click', () => {\n      setFiles(input, files.filter((_, at) => at !== index));\n      renderFileList(input, list);\n      input.setCustomValidity(fileMessage(input));\n      // Focus stays in the list, or goes back to the input once it is empty.\n      const next = list.querySelectorAll('button')[Math.min(index, list.children.length - 1)];\n      (next || input).focus();\n    });\n    item.append(name, size, remove);\n    return item;\n  }));\n}\n\n/**\n * The list of the files chosen in a file input, under its zone (the input's\n * label, _form_field.html) or under the input itself.\n *\n * @param {HTMLInputElement} input\n * @returns {HTMLUListElement}\n */\nfunction fileListOf(input) {\n  const list = document.createElement('ul');\n  list.className = 'dc-form-file-list';\n  list.hidden = true;\n  list.setAttribute('aria-label', t('Files chosen'));\n  const zone = input.parentElement && input.parentElement.querySelector(`[data-form-upload-zone][for=\"${CSS.escape(input.id)}\"]`);\n  (zone || input).after(list);\n  return list;\n}\n\n/**\n * Make a multiple file input add each pick to the files chosen before,\n * listed under it. Without DataTransfer (old browsers) it keeps the\n * browser's own behaviour.\n *\n * @param {HTMLInputElement} input\n */\nfunction keepEarlierFiles(input) {\n  if (typeof DataTransfer === 'undefined') return;\n  const list = fileListOf(input);\n  let chosen = [];\n  input.addEventListener('change', () => {\n    chosen = mergeFiles(chosen, input.files);\n    setFiles(input, chosen);\n    renderFileList(input, list);\n  });\n  // A removal changes the input without a change event: keep `chosen` in step.\n  list.addEventListener('click', () => { chosen = Array.from(input.files || []); });\n}\n\n/**\n * List the file a single file input holds, with the button that takes it\n * out: the input is out of sight behind its zone, so the browser's own\n * \"No file chosen\" is not there to say it.\n *\n * @param {HTMLInputElement} input\n */\nfunction showChosenFile(input) {\n  if (typeof DataTransfer === 'undefined') return;\n  const list = fileListOf(input);\n  input.addEventListener('change', () => renderFileList(input, list));\n}\n\n/**\n * Let files be dropped on the zone of a file input (its label): they go in\n * the input as if chosen, the first one only for a single file.\n *\n * @param {HTMLInputElement} input\n */\nfunction acceptDrops(input) {\n  const zone = input.parentElement && input.parentElement.querySelector(`[data-form-upload-zone][for=\"${CSS.escape(input.id)}\"]`);\n  if (!zone || typeof DataTransfer === 'undefined') return;\n  const over = (on) => zone.classList.toggle('is-over', on);\n  zone.addEventListener('dragover', (event) => {\n    if (!event.dataTransfer || !Array.from(event.dataTransfer.types || []).includes('Files')) return;\n    event.preventDefault();\n    over(true);\n  });\n  zone.addEventListener('dragleave', () => over(false));\n  zone.addEventListener('drop', (event) => {\n    event.preventDefault();\n    over(false);\n    const dropped = Array.from((event.dataTransfer && event.dataTransfer.files) || []);\n    if (!dropped.length) return;\n    setFiles(input, input.multiple ? dropped : dropped.slice(0, 1));\n    input.dispatchEvent(new Event('change', { bubbles: true }));\n  });\n}\n\n/**\n * Check a file input when files are chosen, and its form before it is sent:\n * files the server would refuse are said so at once, instead of after the\n * upload.\n *\n * @param {HTMLFormElement} form A form holding file inputs with limits.\n */\nfunction checkFiles(form) {\n  const inputs = Array.from(form.querySelectorAll('input[type=\"file\"][data-max-files]'));\n  // First, so the check below sees every file chosen, not the last pick only.\n  inputs.filter(input => input.multiple).forEach(keepEarlierFiles);\n  inputs.filter(input => !input.multiple).forEach(showChosenFile);\n  inputs.forEach(acceptDrops);\n  inputs.forEach((input) => {\n    input.addEventListener('change', () => {\n      input.setCustomValidity(fileMessage(input));\n      input.reportValidity();\n    });\n  });\n  form.addEventListener('submit', (event) => {\n    // The form is `novalidate` (the server words the other errors): only\n    // the files are held back here.\n    const wrong = inputs.find(input => fileMessage(input));\n    if (!wrong) return;\n    event.preventDefault();\n    wrong.setCustomValidity(fileMessage(wrong));\n    wrong.reportValidity();\n    wrong.focus();\n  });\n}\n\n/**\n * Take a question's error away once its answer changes: the server's message\n * (`.dc-field-error`, aria-invalid) said what was wrong with the answer as it\n * was sent, not with the one being typed. The server checks it again.\n *\n * @param {HTMLFormElement} form\n */\nfunction clearErrorsOnChange(form) {\n  const clear = (event) => {\n    const wrapper = event.target.closest && event.target.closest('.dc-form-field');\n    if (!wrapper || event.target.type === 'file') return;\n    wrapper.querySelectorAll(':scope > .dc-field-error').forEach(error => error.remove());\n    [wrapper, ...wrapper.querySelectorAll('[aria-invalid=\"true\"]')].forEach((element) => {\n      element.removeAttribute('aria-invalid');\n    });\n    [wrapper, ...wrapper.querySelectorAll('[aria-describedby]')].forEach((element) => {\n      const ids = (element.getAttribute('aria-describedby') || '').split(/\\s+/)\n        .filter(id => id && document.getElementById(id));\n      if (ids.length) element.setAttribute('aria-describedby', ids.join(' '));\n      else element.removeAttribute('aria-describedby');\n    });\n  };\n  form.addEventListener('input', clear);\n  form.addEventListener('change', clear);\n}\n\n/**\n * A file question's error goes once files are chosen again and pass the\n * question's limits (`checkFiles` reports those that do not).\n *\n * @param {HTMLFormElement} form\n */\nfunction clearFileErrorsOnChange(form) {\n  form.addEventListener('change', (event) => {\n    const input = event.target;\n    if (input.type !== 'file' || fileMessage(input) || !(input.files || []).length) return;\n    const wrapper = input.closest('.dc-form-field');\n    if (!wrapper) return;\n    wrapper.querySelectorAll(':scope > .dc-field-error, :scope > .dc-form-file-dropped').forEach(note => note.remove());\n    input.removeAttribute('aria-invalid');\n  });\n}\n\ndocument.querySelectorAll('.dc-captcha[data-altcha-url]').forEach((box) => { runCaptcha(box); });\ndocument.querySelectorAll('form.dc-form-body').forEach((form) => {\n  clearErrorsOnChange(form);\n  clearFileErrorsOnChange(form);\n});\ndocument.querySelectorAll('form[enctype=\"multipart/form-data\"]').forEach((form) => { checkFiles(form); });\ndocument.querySelectorAll('form.dc-form-body').forEach((form) => { initPhoneInputs(form); });\ninitWeekPickers(document);\ninitFormBlocks(document);\ninitFormSections(document);\ninitIncomplete(document);\ninitModuleCheck(document);\n","/**\n * @file The limits of a form's file question, checked in the browser before\n * anything is sent (public_form.js). The server checks them again\n * (file/form_schema.py `clean_files`): this only spares a respondent the\n * upload of files it would refuse. Also what a multiple file question does\n * with a second pick (`mergeFiles`) and the sizes it lists. No DOM, so\n * `node --test` runs it as is.\n */\n\n/**\n * What is wrong with `files` for a question taking at most `maxFiles` files\n * of `maxMb` megabytes each, or null. A limit that is not a positive number\n * is not checked.\n *\n * @param {Array<{name: string, size: number}>} files\n * @param {{maxFiles: number, maxMb: number}} limits\n * @returns {{code: 'too-many', max: number}|{code: 'too-large', name: string, max: number}|null}\n */\nexport function fileProblem(files, { maxFiles, maxMb }) {\n  const list = Array.from(files || []);\n  if (Number.isFinite(maxFiles) && maxFiles > 0 && list.length > maxFiles) {\n    return { code: 'too-many', max: maxFiles };\n  }\n  if (Number.isFinite(maxMb) && maxMb > 0) {\n    const big = list.find(file => file.size > maxMb * 1024 * 1024);\n    if (big) return { code: 'too-large', name: big.name, max: maxMb };\n  }\n  return null;\n}\n\n/**\n * The files of a multiple file question once `added` are chosen after\n * `chosen`: a browser replaces its selection at each pick, the page adds to\n * it instead. The same file picked twice (name, size, date) is kept once.\n *\n * @template {{name: string, size: number, lastModified?: number}} F\n * @param {Iterable<F>} chosen\n * @param {Iterable<F>} added\n * @returns {F[]}\n */\nexport function mergeFiles(chosen, added) {\n  const key = file => `${file.name}\\u0000${file.size}\\u0000${file.lastModified || 0}`;\n  const seen = new Set();\n  return [...Array.from(chosen || []), ...Array.from(added || [])].filter((file) => {\n    const id = key(file);\n    if (seen.has(id)) return false;\n    seen.add(id);\n    return true;\n  });\n}\n\n/**\n * A file size as a person reads it: \"820 B\", \"4.2 KB\", \"12 MB\".\n *\n * @param {number} bytes\n * @returns {string}\n */\nexport function sizeLabel(bytes) {\n  if (!Number.isFinite(bytes) || bytes < 1024) return `${Math.max(0, bytes || 0)} B`;\n  const units = ['KB', 'MB', 'GB'];\n  let value = bytes / 1024;\n  let index = 0;\n  while (value >= 1024 && index < units.length - 1) { value /= 1024; index += 1; }\n  return `${value >= 10 ? Math.round(value) : value.toFixed(1)} ${units[index]}`;\n}\n"],"names":["__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","hexToBytes","hex","bytes","Uint8Array","length","i","parseInt","substr","passwordFor","nonce","counter","password","set","DataView","buffer","setUint32","async","deriveKey","parameters","salt","subtle","hash","String","algorithm","split","key","importKey","deriveBits","name","iterations","cost","keyLength","Array","from","byte","toString","padStart","join","m","d","definition","isArray","binding","descriptor","enumerable","value","get","o","Object","defineProperty","f","e","chunkId","Promise","all","keys","reduce","promises","u","miniCssF","g","globalThis","this","Function","window","obj","prop","prototype","hasOwnProperty","call","inProgress","dataWebpackPrefix","l","url","done","push","script","needAttach","scripts","document","getElementsByTagName","s","getAttribute","createElement","charset","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","timeout","doneFns","parentNode","removeChild","forEach","fn","setTimeout","bind","type","target","head","appendChild","r","Symbol","toStringTag","scriptUrl","importScripts","location","currentScript","tagName","toUpperCase","test","Error","replace","p","installedCssChunks","miniCss","resolve","reject","href","fullhref","existingLinkTags","dataHref","tag","rel","existingStyleTags","findStylesheet","oldTag","linkTag","errorType","realHref","err","code","request","createStylesheet","loadStylesheet","then","b","baseURI","self","installedChunks","j","installedChunkData","promise","error","loadingEnded","realSrc","message","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","id","chunkLoadingGlobal","COUNTER_LIMIT","t","text","params","translated","gettext","match","interpolate","pickerTexts","lang","toLowerCase","startsWith","default","ICONS","folder","file","image","markdown","globe","sparkles","signature","extract","plus","close","download","upload","edit","move","trash","save","printer","reply","forward","restore","pause","play","search","link","filter","clock","star","gear","video","audio","archive","contact","addressbook","building","people","camera","copy","mail","calendar","task","spreadsheet","presentation","diagram","form","phone","radio","heading","grip","cursor","send","stop","mic","columns","menu","check","expand","shrink","bell","chat","eye","grid","info","help","lock","fingerprint","identification","terminal","iconMarkup","iconName","sizeClass","map","NUMBERED_ATTRIBUTES","applyConditions","querySelectorAll","block","hidden","values","expected","multiple","wanted","trim","given","Boolean","includes","matches","CSS","escape","input","closest","checked","answerOf","dataset","showIf","showValue","hasAttribute","renumberItem","item","to","label","repeatItem","element","attribute","RegExp","renumber","number","querySelector","textContent","remove","initRepeat","list","count","add","min","Number","repeatMin","max","repeatMax","repeatLabel","items","template","cloneNode","selectedIndex","removeAttribute","settle","current","addEventListener","preventDefault","focus","gone","other","filesOf","wrapper","names","files","entry","answered","classList","contains","week","boxes","control","questionsOf","root","parentElement","initSections","progress","sections","labels","bar","shown","section","draw","visible","states","index","questions","required","flagged","state","filled","sectionState","hasFiles","mark","className","innerHTML","badge","complete","labelComplete","fix","labelFix","optional","labelOptional","todo","labelTodoFile","labelTodo","summary","flatMap","toggle","drawSection","total","percent","counted","Math","round","progressOf","labelProgress","firstElementChild","style","width","next","indexOf","openOnly","open","find","pending","following","scrollIntoView","behavior","preventScroll","later","initBox","box","tick","every","held","submitter","checkBody","body","FormData","getAll","File","delete","initCheck","touched","Set","timer","asked","cleared","questionOf","show","errors","note","first","entries","question","has","append","dispatchEvent","CustomEvent","bubbles","ask","response","fetch","method","credentials","headers","Accept","ok","payload","json","defaultPrevented","requestSubmit","initWeekPicker","weekName","choice","choiceText","buttons","more","step","weekStep","weekUrl","syncMore","HTMLInputElement","day","time","dayLabel","choiceLabel","button","start","disabled","base","separator","encodeURIComponent","status","days","chosen","date","slots","slot","dayEntries","emptyLabel","rows","doc","ownerDocument","replaceChildren","empty","column","drawDays","labelEmpty","findIndex","floor","shownRows","weekNav","labelFailed","load","slice","showMore","validUntil","WeakMap","runCaptcha","renewing","field","quiet","altchaUrl","receivedAt","performance","now","lifetime","raw","seconds","isFinite","challengeLifetime","challenge","solution","Worker","found","navigator","hardwareConcurrency","workers","finish","result","worker","terminate","URL","onmessage","postMessage","limit","solveInWorkers","options","crypto","prefix","keyPrefix","cancelled","derivedKey","solveRange","solve","btoa","JSON","stringify","encodePayload","lifetimeMs","renewalDelay","fileMessage","problem","maxFiles","maxMb","big","size","fileProblem","setFiles","transfer","DataTransfer","renderFileList","title","units","toFixed","sizeLabel","_","at","setCustomValidity","children","fileListOf","after","keepEarlierFiles","added","seen","lastModified","mergeFiles","showChosenFile","acceptDrops","zone","over","on","dataTransfer","types","dropped","Event","clear","ids","getElementById","clearErrorsOnChange","clearFileErrorsOnChange","inputs","reportValidity","wrong","checkFiles","documentElement","intlTelInput","uiTranslations","pickers","picker","initialCountry","separateDialCode","strictMode","countryNameLocale","containerClass","loadUtils","isValidNumber","getNumber","initPhoneInputs"],"sourceRoot":""}