@citolab/qti-components 7.0.4 → 7.0.6-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/chunk-22HAPLRD.js +0 -0
- package/cdn/chunk-4DFVJE2A.js +48 -0
- package/cdn/chunk-4I75QSIL.js +8 -0
- package/cdn/chunk-5WCOPF7O.js +73 -0
- package/cdn/chunk-A536ZOJJ.js +43 -0
- package/cdn/chunk-BLKKKK6C.js +11 -0
- package/cdn/chunk-DC2R556M.js +5 -0
- package/cdn/chunk-GALSGMIP.js +5 -0
- package/cdn/chunk-IXSX4SJX.js +1 -0
- package/cdn/chunk-KYOTSBCX.js +1 -0
- package/cdn/chunk-L4TDHAKL.js +24 -0
- package/cdn/chunk-LVW3MHTI.js +23 -0
- package/cdn/chunk-M6AATWPS.js +59 -0
- package/cdn/chunk-MFWSHIPH.js +17 -0
- package/cdn/chunk-QGKK4T2J.js +8 -0
- package/cdn/chunk-ROXN2HIJ.js +8 -0
- package/cdn/chunk-SQDSHH6N.js +3539 -0
- package/cdn/chunk-T4A5AZCI.js +939 -0
- package/cdn/chunk-VI2WKTN4.js +1 -0
- package/cdn/index.global.js +36 -36
- package/cdn/index.js +1 -4783
- package/cdn/qti-components/index.global.js +226 -0
- package/cdn/qti-components/index.js +1 -0
- package/cdn/qti-item/core/index.global.js +149 -0
- package/cdn/qti-item/core/index.js +1 -0
- package/cdn/qti-loader/index.global.js +1 -0
- package/cdn/qti-loader/index.js +1 -0
- package/cdn/qti-test/components/index.global.js +207 -0
- package/cdn/qti-test/components/index.js +1 -0
- package/cdn/qti-test/components/styles.global.js +44 -0
- package/cdn/qti-test/components/styles.js +1 -0
- package/cdn/qti-test/components/test-component.abstract.global.js +170 -0
- package/cdn/qti-test/components/test-component.abstract.js +1 -0
- package/cdn/qti-test/components/test-item-link.global.js +170 -0
- package/cdn/qti-test/components/test-item-link.js +1 -0
- package/cdn/qti-test/components/test-next.global.js +170 -0
- package/cdn/qti-test/components/test-next.js +1 -0
- package/cdn/qti-test/components/test-next.spec.css +1 -0
- package/cdn/qti-test/components/test-next.spec.global.js +64 -0
- package/cdn/qti-test/components/test-next.spec.js +713 -0
- package/cdn/qti-test/components/test-paging-buttons-stamp.global.js +207 -0
- package/cdn/qti-test/components/test-paging-buttons-stamp.js +1 -0
- package/cdn/qti-test/components/test-prev.global.js +170 -0
- package/cdn/qti-test/components/test-prev.js +1 -0
- package/cdn/qti-test/components/test-view.global.js +170 -0
- package/cdn/qti-test/components/test-view.js +1 -0
- package/cdn/qti-test/core/index.global.js +205 -0
- package/cdn/qti-test/core/index.js +1 -0
- package/cdn/qti-transformers/index.global.js +1 -0
- package/cdn/qti-transformers/index.js +1 -0
- package/dist/chunk-2CHF3TMY.js +3529 -0
- package/dist/chunk-2CHF3TMY.js.map +1 -0
- package/dist/{transformers/index.js → chunk-2OA7E3E7.js} +2 -1
- package/dist/chunk-2OA7E3E7.js.map +1 -0
- package/dist/chunk-3TFUBCJW.js +72 -0
- package/dist/chunk-3TFUBCJW.js.map +1 -0
- package/dist/chunk-44VE5POH.js +55 -0
- package/dist/chunk-44VE5POH.js.map +1 -0
- package/dist/chunk-4FH7P7YI.js +43 -0
- package/dist/chunk-4FH7P7YI.js.map +1 -0
- package/dist/chunk-4YG2FPKK.js +31 -0
- package/dist/chunk-4YG2FPKK.js.map +1 -0
- package/dist/chunk-6SG3NMKU.js +50 -0
- package/dist/chunk-6SG3NMKU.js.map +1 -0
- package/dist/chunk-ANLIJZBL.js +118 -0
- package/dist/chunk-ANLIJZBL.js.map +1 -0
- package/dist/chunk-CNQYM52B.js +569 -0
- package/dist/chunk-CNQYM52B.js.map +1 -0
- package/dist/chunk-F3NTI6TX.js +10 -0
- package/dist/chunk-F3NTI6TX.js.map +1 -0
- package/dist/chunk-F7HTXGGH.js +78 -0
- package/dist/chunk-F7HTXGGH.js.map +1 -0
- package/dist/chunk-MAC76UNI.js +1 -0
- package/dist/chunk-MAC76UNI.js.map +1 -0
- package/dist/chunk-OO6JSYLP.js +50 -0
- package/dist/chunk-OO6JSYLP.js.map +1 -0
- package/dist/chunk-QYN5S4EM.js +107 -0
- package/dist/chunk-QYN5S4EM.js.map +1 -0
- package/dist/chunk-UB5K44DB.js +30 -0
- package/dist/chunk-UB5K44DB.js.map +1 -0
- package/dist/chunk-UBZPSVSE.js +6301 -0
- package/dist/chunk-UBZPSVSE.js.map +1 -0
- package/dist/index.d.ts +13 -503
- package/dist/index.js +132 -13584
- package/dist/index.js.map +1 -1
- package/dist/item.css +10 -10
- package/dist/qti-components/index.d.ts +150 -0
- package/dist/qti-components/index.js +188 -0
- package/dist/qti-components/index.js.map +1 -0
- package/dist/qti-components-jsx.d.ts +147 -201
- package/dist/qti-item/core/index.d.ts +61 -0
- package/dist/qti-item/core/index.js +13 -0
- package/dist/qti-item/core/index.js.map +1 -0
- package/dist/{loader → qti-loader}/index.d.ts +1 -1
- package/dist/qti-loader/index.js +29 -0
- package/dist/qti-loader/index.js.map +1 -0
- package/dist/{qti-simple-choice-D0GiMrqD.d.ts → qti-simple-choice-DxWcdKHi.d.ts} +30 -40
- package/dist/qti-test/components/index.d.ts +11 -0
- package/dist/qti-test/components/index.js +32 -0
- package/dist/qti-test/components/index.js.map +1 -0
- package/dist/qti-test/components/styles.d.ts +8 -0
- package/dist/qti-test/components/styles.js +14 -0
- package/dist/qti-test/components/styles.js.map +1 -0
- package/dist/qti-test/components/test-component.abstract.d.ts +22 -0
- package/dist/qti-test/components/test-component.abstract.js +10 -0
- package/dist/qti-test/components/test-component.abstract.js.map +1 -0
- package/dist/qti-test/components/test-item-link.d.ts +20 -0
- package/dist/qti-test/components/test-item-link.js +12 -0
- package/dist/qti-test/components/test-item-link.js.map +1 -0
- package/dist/qti-test/components/test-next.d.ts +31 -0
- package/dist/qti-test/components/test-next.js +12 -0
- package/dist/qti-test/components/test-next.js.map +1 -0
- package/dist/qti-test/components/test-next.spec.css +2481 -0
- package/dist/qti-test/components/test-next.spec.css.map +1 -0
- package/dist/qti-test/components/test-next.spec.d.ts +13 -0
- package/dist/qti-test/components/test-next.spec.js +45904 -0
- package/dist/qti-test/components/test-next.spec.js.map +1 -0
- package/dist/qti-test/components/test-paging-buttons-stamp.d.ts +21 -0
- package/dist/qti-test/components/test-paging-buttons-stamp.js +11 -0
- package/dist/qti-test/components/test-paging-buttons-stamp.js.map +1 -0
- package/dist/qti-test/components/test-prev.d.ts +31 -0
- package/dist/qti-test/components/test-prev.js +12 -0
- package/dist/qti-test/components/test-prev.js.map +1 -0
- package/dist/qti-test/components/test-view.d.ts +26 -0
- package/dist/qti-test/components/test-view.js +11 -0
- package/dist/qti-test/components/test-view.js.map +1 -0
- package/dist/qti-test/core/index.d.ts +121 -0
- package/dist/qti-test/core/index.js +27 -0
- package/dist/qti-test/core/index.js.map +1 -0
- package/dist/qti-transformers/index.js +12 -0
- package/dist/qti-transformers/index.js.map +1 -0
- package/dist/test.context-DbSTxKk_.d.ts +99 -0
- package/dist/vscode.html-custom-data.json +53 -42
- package/package.json +100 -111
- package/dist/custom-element-eslint-rules.js +0 -329
- package/dist/custom-elements.json +0 -27271
- package/dist/loader/index.js +0 -310
- package/dist/loader/index.js.map +0 -1
- package/dist/qti-simple-choice-CfgBEvdI.d.ts +0 -1143
- package/dist/qti-simple-choice-UTrFa_RQ.d.ts +0 -1177
- package/dist/qti-simple-choice-zEsDq3c0.d.ts +0 -1147
- package/dist/transformers/index.js.map +0 -1
- /package/dist/{transformers → qti-transformers}/index.d.ts +0 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
function t(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function e(t){if(Array.isArray(t))return t}function n(e){if(Array.isArray(e))return t(e)}function i(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function r(t,e,n,i,r,o,a){try{var s=t[o](a);var u=s.value}catch(t){n(t);return}if(s.done){e(u)}else{Promise.resolve(u).then(i,r)}}function o(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,u,"next",t)}function u(t){r(a,i,o,s,u,"throw",t)}s(undefined)})}}function a(t,e,n){e=d(e);return E(t,j()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function s(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function u(t,e,n){if(j()){u=Reflect.construct}else{u=function t(t,e,n){var i=[null];i.push.apply(i,e);var r=Function.bind.apply(t,i);var o=new r;if(n)k(o,n.prototype);return o}}return u.apply(null,arguments)}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function c(t,e,n){if(e)l(t.prototype,e);if(n)l(t,n);return t}function h(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function v(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){v=Reflect.get}else{v=function t(t,e,n){var i=O(t,e);if(!i)return;var r=Object.getOwnPropertyDescriptor(i,e);if(r.get){return r.get.call(n||t)}return r.value}}return v(t,e,n||t)}function d(t){d=Object.setPrototypeOf?Object.getPrototypeOf:function t(t){return t.__proto__||Object.getPrototypeOf(t)};return d(t)}function f(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)k(t,e)}function p(t,e){if(e!=null&&typeof Symbol!=="undefined"&&e[Symbol.hasInstance]){return!!e[Symbol.hasInstance](t)}else{return t instanceof e}}function y(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function _(t){if(typeof Symbol!=="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function b(t,e){var n=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n==null)return;var i=[];var r=true;var o=false;var a,s;try{for(n=n.call(t);!(r=(a=n.next()).done);r=true){i.push(a.value);if(e&&i.length===e)break}}catch(t){o=true;s=t}finally{try{if(!r&&n["return"]!=null)n["return"]()}finally{if(o)throw s}}return i}function m(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function w(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};var i=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))}i.forEach(function(e){h(t,e,n[e])})}return t}function $(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);if(e){i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})}n.push.apply(n,i)}return n}function A(t,e){e=e!=null?e:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(e))}else{$(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function E(t,e){if(e&&(U(e)==="object"||typeof e==="function")){return e}return i(t)}function k(t,e){k=Object.setPrototypeOf||function t(t,e){t.__proto__=e;return t};return k(t,e)}function S(t,n){return e(t)||b(t,n)||x(t,n)||m()}function O(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=d(t);if(t===null)break}return t}function P(t,e){if(!e){e=t.slice(0)}return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function C(t){return n(t)||_(t)||x(t)||g()}function U(t){"@swc/helpers - typeof";return t&&typeof Symbol!=="undefined"&&t.constructor===Symbol?"symbol":typeof t}function x(e,n){if(!e)return;if(typeof e==="string")return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor)i=e.constructor.name;if(i==="Map"||i==="Set")return Array.from(i);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return t(e,n)}function R(t){var e=typeof Map==="function"?new Map:undefined;R=function t(t){if(t===null||!y(t))return t;if(typeof t!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof e!=="undefined"){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return u(t,arguments,d(this).constructor)}n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:false,writable:true,configurable:true}});return k(n,t)};return R(t)}function j(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(j=function(){return!!t})()}function T(t,e){var n,i,r,o,a={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),"throw":s(1),"return":s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,i&&(r=o[0]&2?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;if(i=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:a.label++;return{value:o[1],done:false};case 5:a.label++;i=o[1];o=[0];continue;case 7:o=a.ops.pop();a.trys.pop();continue;default:if(!(r=a.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(o[0]===6&&a.label<r[1]){a.label=r[1];r=o;break}if(r&&a.label<r[2]){a.label=r[2];a.ops.push(o);break}if(r[2])a.ops.pop();a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t];i=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}}function M(){var t=P(['<option value="','" ?selected=',">","</option>"]);M=function e(){return t};return t}function N(){var t=P(['\n <label part="label" for="viewSelect">','</label>\n <select\n part="select"\n id="viewSelect"\n .disabled=',"\n @change=","\n >\n ","\n </select>\n "]);N=function e(){return t};return t}var QtiComponents=function(){var t=function t(t,e){if(!tO(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return tm!==void 0?tm.createHTML(e):e};var e=function t(t){return function(e,n){return(typeof n==="undefined"?"undefined":U(n))=="object"?t9(t,e,n):function(t,e,n){var i=e.hasOwnProperty(n);return e.constructor.createProperty(n,i?A(w({},t),{wrapped:!0}):t),i?Object.getOwnPropertyDescriptor(e,n):void 0}(t,e,n)}};var n=function t(t){return e(A(w({},t),{state:!0,attribute:!1}))};var i=function t(t){var e=t.context,n=t.subscribe;return function(t,i){(typeof i==="undefined"?"undefined":U(i))=="object"?i.addInitializer(function(){var i=this;new ee(this,{context:e,callback:function(e){t.set.call(i,e)},subscribe:n})}):t.constructor.addInitializer(function(t){new ee(t,{context:e,callback:function(e){t[i]=e},subscribe:n})})}};var r=function t(t,e){var n=w({waitUntilFirstUpdate:!1},e);return function(e,i){var r=e.update,o=Array.isArray(t)?t:[t];e.update=function(t){var e=this;o.forEach(function(r){var o=r;if(t.has(o)){var a=t.get(o),s=e[o];a!==s&&(!n.waitUntilFirstUpdate||e.hasUpdated)&&e[i](a,s)}}),r.call(this,t)}}};var u=function t(t){return function(n,i){e(t)(n,i);var r="__".concat(i);Object.defineProperty(n,i,{get:function t(){return this[r]},set:function e(e){var n=this[r];if(this[r]=e,n!==e){var o;if((o=this._internals)===null||o===void 0?void 0:o.states){var a=i.toLowerCase();e?this._internals.states.add("--".concat(a)):this._internals.states.delete("--".concat(a))}if(t.aria&&this._internals){var s=t.aria;e?this._internals[s]="true":this._internals[s]=null}this.requestUpdate(i,n)}},configurable:!0,enumerable:!0})}};var l,h;var y=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var g=function(t,e){for(var n in e)y(t,n,{get:e[n],enumerable:!0})},$=function(t,e,n,i){var r=true,o=false,a=undefined;if(e&&(typeof e==="undefined"?"undefined":U(e))=="object"||typeof e=="function")try{var s=function(){var r=l.value;!m.call(t,r)&&r!==n&&y(t,r,{get:function(){return e[r]},enumerable:!(i=_(e,r))||i.enumerable})};for(var u=b(e)[Symbol.iterator](),l;!(r=(l=u.next()).done);r=true)s()}catch(t){o=true;a=t}finally{try{if(!r&&u.return!=null){u.return()}}finally{if(o){throw a}}}return t};var E=function(t){return $(y({},"__esModule",{value:!0}),t)},k=function(t,e,n,i){for(var r=i>1?void 0:i?_(e,n):e,o=t.length-1,a;o>=0;o--)(a=t[o])&&(r=(i?a(e,n,r):a(r))||r);return i&&r&&y(e,n,r),r};var O={};g(O,{TestView:function(){return eo}});var P=/*#__PURE__*/function(){"use strict";function t(e){s(this,t);this.ariaAtomic="",this.ariaAutoComplete="",this.ariaBrailleLabel="",this.ariaBrailleRoleDescription="",this.ariaBusy="",this.ariaChecked="",this.ariaColCount="",this.ariaColIndex="",this.ariaColSpan="",this.ariaCurrent="",this.ariaDescription="",this.ariaDisabled="",this.ariaExpanded="",this.ariaHasPopup="",this.ariaHidden="",this.ariaInvalid="",this.ariaKeyShortcuts="",this.ariaLabel="",this.ariaLevel="",this.ariaLive="",this.ariaModal="",this.ariaMultiLine="",this.ariaMultiSelectable="",this.ariaOrientation="",this.ariaPlaceholder="",this.ariaPosInSet="",this.ariaPressed="",this.ariaReadOnly="",this.ariaRequired="",this.ariaRoleDescription="",this.ariaRowCount="",this.ariaRowIndex="",this.ariaRowSpan="",this.ariaSelected="",this.ariaSetSize="",this.ariaSort="",this.ariaValueMax="",this.ariaValueMin="",this.ariaValueNow="",this.ariaValueText="",this.role="",this.form=null,this.labels=[],this.states=new Set,this.validationMessage="",this.validity={},this.willValidate=!0,this.__host=e}c(t,[{key:"shadowRoot",get:function t(){return this.__host.__shadowRoot}},{key:"checkValidity",value:function t(){return console.warn("`ElementInternals.checkValidity()` was called on the server.This method always returns true."),!0}},{key:"reportValidity",value:function t(){return!0}},{key:"setFormValue",value:function t(){}},{key:"setValidity",value:function t(){}}]);return t}();var x=new WeakMap,j=function(t){var e=x.get(t);return e===void 0&&x.set(t,e=new Map),e},I=/*#__PURE__*/function(){"use strict";function t(){s(this,t);this.__shadowRootMode=null,this.__shadowRoot=null,this.__internals=null}c(t,[{key:"attributes",get:function t(){return Array.from(j(this)).map(function(t){var e=S(t,2),n=e[0],i=e[1];return{name:n,value:i}})}},{key:"shadowRoot",get:function t(){return this.__shadowRootMode==="closed"?null:this.__shadowRoot}},{key:"localName",get:function t(){return this.constructor.__localName}},{key:"tagName",get:function t(){var t;return(t=this.localName)===null||t===void 0?void 0:t.toUpperCase()}},{key:"setAttribute",value:function t(t,e){j(this).set(t,String(e))}},{key:"removeAttribute",value:function t(t){j(this).delete(t)}},{key:"toggleAttribute",value:function t(t,e){if(this.hasAttribute(t)){if(e===void 0||!e)return this.removeAttribute(t),!1}else return e===void 0||e?(this.setAttribute(t,""),!0):!1;return!0}},{key:"hasAttribute",value:function t(t){return j(this).has(t)}},{key:"attachShadow",value:function t(t){var e={host:this};return this.__shadowRootMode=t.mode,t&&t.mode==="open"&&(this.__shadowRoot=e),e}},{key:"attachInternals",value:function t(){if(this.__internals!==null)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");var t=new P(this);return this.__internals=t,t}},{key:"getAttribute",value:function t(t){var e;return(e=j(this).get(t))!==null&&e!==void 0?e:null}}]);return t}();var H=/*#__PURE__*/function(t){"use strict";f(e,t);function e(){s(this,e);return a(this,e,arguments)}return e}(I),D=H;var V=/*#__PURE__*/function(){"use strict";function t(){s(this,t);this.__definitions=new Map}c(t,[{key:"define",value:function t(t,e){if(this.__definitions.has(t))if(process.env.NODE_ENV==="development")console.warn("'CustomElementRegistry' already has \"".concat(t,'" defined. This may have been caused by live reload or hot module replacement in which case it can be safely ignored.\nMake sure to test your application with a production build as repeat registrations will throw in production.'));else throw new Error("Failed to execute 'define' on 'CustomElementRegistry': the name \"".concat(t,'" has already been used with this registry'));var n;e.__localName=t,this.__definitions.set(t,{ctor:e,observedAttributes:(n=e.observedAttributes)!==null&&n!==void 0?n:[]})}},{key:"get",value:function t(t){var e;return(e=this.__definitions.get(t))===null||e===void 0?void 0:e.ctor}}]);return t}(),L=V;var z=new L;var B=globalThis,q=B.ShadowRoot&&(B.ShadyCSS===void 0||B.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,W=Symbol(),F=new WeakMap,K=/*#__PURE__*/function(){"use strict";function t(e,n,i){s(this,t);if(this._$cssResult$=!0,i!==W)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}c(t,[{key:"styleSheet",get:function t(){var t=this.o,e=this.t;if(q&&t===void 0){var n=e!==void 0&&e.length===1;n&&(t=F.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&F.set(e,t))}return t}},{key:"toString",value:function t(){return this.cssText}}]);return t}(),J=function(t){return new K(typeof t=="string"?t:t+"",void 0,W)};var Z=function(t,e){var n=true,i=false,r=undefined;if(q)t.adoptedStyleSheets=e.map(function(t){return p(t,CSSStyleSheet)?t:t.styleSheet});else try{for(var o=e[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){var s=a.value;var u=document.createElement("style"),l=B.litNonce;l!==void 0&&u.setAttribute("nonce",l),u.textContent=s.cssText,t.appendChild(u)}}catch(t){i=true;r=t}finally{try{if(!n&&o.return!=null){o.return()}}finally{if(i){throw r}}}},G=q||B.CSSStyleSheet===void 0?function(t){return t}:function(t){return p(t,CSSStyleSheet)?function(t){var e="";var n=true,i=false,r=undefined;try{for(var o=t.cssRules[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){var s=a.value;e+=s.cssText}}catch(t){i=true;r=t}finally{try{if(!n&&o.return!=null){o.return()}}finally{if(i){throw r}}}return J(e)}(t):t};var Q=Object.is,X=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,tt=Object.getOwnPropertyNames,te=Object.getOwnPropertySymbols,tn=Object.getPrototypeOf,ti=globalThis;var tr;(tr=ti.customElements)!==null&&tr!==void 0?tr:ti.customElements=z;var to=ti.trustedTypes,ta=to?to.emptyScript:"",ts=ti.reactiveElementPolyfillSupport,tu=function(t,e){return t},tl={toAttribute:function t(t,e){switch(e){case Boolean:t=t?ta:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute:function t(t,e){var n=t;switch(e){case Boolean:n=t!==null;break;case Number:n=t===null?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},tc=function(t,e){return!Q(t,e)},th={attribute:!0,type:String,converter:tl,reflect:!1,hasChanged:tc};var tv,td;(tv=Symbol.metadata)!==null&&tv!==void 0?tv:Symbol.metadata=Symbol("metadata"),(td=ti.litPropertyMetadata)!==null&&td!==void 0?td:ti.litPropertyMetadata=new WeakMap;var tf;var tp=/*#__PURE__*/function(t){"use strict";f(e,t);function e(){s(this,e);var t;t=a(this,e),t._$Ep=void 0,t.isUpdatePending=!1,t.hasUpdated=!1,t._$Em=null,t._$Ev();return t}c(e,[{key:"_$Ev",value:function t(){var t=this;var e;this._$ES=new Promise(function(e){return t.enableUpdating=e}),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)===null||e===void 0?void 0:e.forEach(function(e){return e(t)})}},{key:"addController",value:function t(t){var e;var n;((n=this._$EO)!==null&&n!==void 0?n:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)===null||e===void 0?void 0:e.call(t))}},{key:"removeController",value:function t(t){var e;(e=this._$EO)===null||e===void 0?void 0:e.delete(t)}},{key:"_$E_",value:function t(){var t=new Map,e=this.constructor.elementProperties;var n=true,i=false,r=undefined;try{for(var o=e.keys()[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){var s=a.value;this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s])}}catch(t){i=true;r=t}finally{try{if(!n&&o.return!=null){o.return()}}finally{if(i){throw r}}}t.size>0&&(this._$Ep=t)}},{key:"createRenderRoot",value:function t(){var t;var e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Z(e,this.constructor.elementStyles),e}},{key:"connectedCallback",value:function t(){var t;var e;(e=this.renderRoot)!==null&&e!==void 0?e:this.renderRoot=this.createRenderRoot(),this.enableUpdating(!0),(t=this._$EO)===null||t===void 0?void 0:t.forEach(function(t){var e;return(e=t.hostConnected)===null||e===void 0?void 0:e.call(t)})}},{key:"enableUpdating",value:function t(t){}},{key:"disconnectedCallback",value:function t(){var t;(t=this._$EO)===null||t===void 0?void 0:t.forEach(function(t){var e;return(e=t.hostDisconnected)===null||e===void 0?void 0:e.call(t)})}},{key:"attributeChangedCallback",value:function t(t,e,n){this._$AK(t,n)}},{key:"_$EC",value:function t(t,e){var n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){var r;var o=(((r=n.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?n.converter:tl).toAttribute(e,n.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}},{key:"_$AK",value:function t(t,e){var n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){var r;var o=n.getPropertyOptions(i),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((r=o.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?o.converter:tl;this._$Em=i,this[i]=a.fromAttribute(e,o.type),this._$Em=null}}},{key:"requestUpdate",value:function t(t,e,n){if(t!==void 0){var i;if(n!==null&&n!==void 0?n:n=this.constructor.getPropertyOptions(t),!((i=n.hasChanged)!==null&&i!==void 0?i:tc)(this[t],e))return;this.P(t,e,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}},{key:"P",value:function t(t,e,n){var i;this._$AL.has(t)||this._$AL.set(t,e),n.reflect===!0&&this._$Em!==t&&((i=this._$Ej)!==null&&i!==void 0?i:this._$Ej=new Set).add(t)}},{key:"_$ET",value:function t(){var t=this;return o(function(){var e,n,i;return T(this,function(r){switch(r.label){case 0:t.isUpdatePending=!0;r.label=1;case 1:r.trys.push([1,3,,4]);return[4,t._$ES];case 2:r.sent();return[3,4];case 3:e=r.sent();Promise.reject(e);return[3,4];case 4:n=t.scheduleUpdate();i=n!=null;if(!i)return[3,6];return[4,n];case 5:i=r.sent();r.label=6;case 6:return[2,(i,!t.isUpdatePending)]}})})()}},{key:"scheduleUpdate",value:function t(){return this.performUpdate()}},{key:"performUpdate",value:function t(){if(!this.isUpdatePending)return;if(!this.hasUpdated){var t;if((t=this.renderRoot)!==null&&t!==void 0?t:this.renderRoot=this.createRenderRoot(),this._$Ep){var e=true,n=false,i=undefined;try{for(var r=this._$Ep[Symbol.iterator](),o;!(e=(o=r.next()).done);e=true){var a=S(o.value,2),s=a[0],u=a[1];this[s]=u}}catch(t){n=true;i=t}finally{try{if(!e&&r.return!=null){r.return()}}finally{if(n){throw i}}}this._$Ep=void 0}var l=this.constructor.elementProperties;var c=true,h=false,v=undefined;if(l.size>0)try{for(var d=l[Symbol.iterator](),f;!(c=(f=d.next()).done);c=true){var p=S(f.value,2),y=p[0],_=p[1];_.wrapped!==!0||this._$AL.has(y)||this[y]===void 0||this.P(y,this[y],_)}}catch(t){h=true;v=t}finally{try{if(!c&&d.return!=null){d.return()}}finally{if(h){throw v}}}}var b=!1,m=this._$AL;try{var g;b=this.shouldUpdate(m),b?(this.willUpdate(m),(g=this._$EO)===null||g===void 0?void 0:g.forEach(function(t){var e;return(e=t.hostUpdate)===null||e===void 0?void 0:e.call(t)}),this.update(m)):this._$EU()}catch(t){throw b=!1,this._$EU(),t}b&&this._$AE(m)}},{key:"willUpdate",value:function t(t){}},{key:"_$AE",value:function t(t){var e;(e=this._$EO)===null||e===void 0?void 0:e.forEach(function(t){var e;return(e=t.hostUpdated)===null||e===void 0?void 0:e.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}},{key:"_$EU",value:function t(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function t(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function t(){return this._$ES}},{key:"shouldUpdate",value:function t(t){return!0}},{key:"update",value:function t(t){var e=this;this._$Ej&&(this._$Ej=this._$Ej.forEach(function(t){return e._$EC(t,e[t])})),this._$EU()}},{key:"updated",value:function t(t){}},{key:"firstUpdated",value:function t(t){}}],[{key:"addInitializer",value:function t(t){var e;this._$Ei(),((e=this.l)!==null&&e!==void 0?e:this.l=[]).push(t)}},{key:"observedAttributes",get:function t(){return this.finalize(),this._$Eh&&C(this._$Eh.keys())}},{key:"createProperty",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:th;if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){var n=Symbol(),i=this.getPropertyDescriptor(t,n,e);i!==void 0&&X(this.prototype,t,i)}}},{key:"getPropertyDescriptor",value:function t(t,e,n){var i;var r=(i=Y(this.prototype,t))!==null&&i!==void 0?i:{get:function t(){return this[e]},set:function t(t){this[e]=t}},o=r.get,a=r.set;return{get:function t(){return o===null||o===void 0?void 0:o.call(this)},set:function e(e){var i=o===null||o===void 0?void 0:o.call(this);a.call(this,e),this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function t(t){var e;return(e=this.elementProperties.get(t))!==null&&e!==void 0?e:th}},{key:"_$Ei",value:function t(){if(this.hasOwnProperty(tu("elementProperties")))return;var t=tn(this);t.finalize(),t.l!==void 0&&(this.l=C(t.l)),this.elementProperties=new Map(t.elementProperties)}},{key:"finalize",value:function t(){if(this.hasOwnProperty(tu("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(tu("properties"))){var t=this.properties,e=C(tt(t)).concat(C(te(t)));var n=true,i=false,r=undefined;try{for(var o=e[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){var s=a.value;this.createProperty(s,t[s])}}catch(t){i=true;r=t}finally{try{if(!n&&o.return!=null){o.return()}}finally{if(i){throw r}}}}var u=this[Symbol.metadata];if(u!==null){var l=litPropertyMetadata.get(u);var c=true,h=false,v=undefined;if(l!==void 0)try{for(var d=l[Symbol.iterator](),f;!(c=(f=d.next()).done);c=true){var p=S(f.value,2),y=p[0],_=p[1];this.elementProperties.set(y,_)}}catch(t){h=true;v=t}finally{try{if(!c&&d.return!=null){d.return()}}finally{if(h){throw v}}}}this._$Eh=new Map;var b=true,m=false,g=undefined;try{for(var w=this.elementProperties[Symbol.iterator](),$;!(b=($=w.next()).done);b=true){var A=S($.value,2),E=A[0],k=A[1];var O=this._$Eu(E,k);O!==void 0&&this._$Eh.set(O,E)}}catch(t){m=true;g=t}finally{try{if(!b&&w.return!=null){w.return()}}finally{if(m){throw g}}}this.elementStyles=this.finalizeStyles(this.styles)}},{key:"finalizeStyles",value:function t(t){var e=[];if(Array.isArray(t)){var n=new Set(t.flat(1/0).reverse());var i=true,r=false,o=undefined;try{for(var a=n[Symbol.iterator](),s;!(i=(s=a.next()).done);i=true){var u=s.value;e.unshift(G(u))}}catch(t){r=true;o=t}finally{try{if(!i&&a.return!=null){a.return()}}finally{if(r){throw o}}}}else t!==void 0&&e.push(G(t));return e}},{key:"_$Eu",value:function t(t,e){var n=e.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}}]);return e}((tf=globalThis.HTMLElement)!==null&&tf!==void 0?tf:D);var ty;tp.elementStyles=[],tp.shadowRootOptions={mode:"open"},tp[tu("elementProperties")]=new Map,tp[tu("finalized")]=new Map,ts===null||ts===void 0?void 0:ts({ReactiveElement:tp}),((ty=ti.reactiveElementVersions)!==null&&ty!==void 0?ty:ti.reactiveElementVersions=[]).push("2.0.4");var t_=globalThis,tb=t_.trustedTypes,tm=tb?tb.createPolicy("lit-html",{createHTML:function(t){return t}}):void 0,tg="$lit$",tw="lit$".concat(Math.random().toFixed(9).slice(2),"$"),t$="?"+tw,tA="<".concat(t$,">"),tE=t_.document===void 0?{createTreeWalker:function(){return{}}}:document,tk=function(){return tE.createComment("")},tS=function(t){return t===null||(typeof t==="undefined"?"undefined":U(t))!="object"&&typeof t!="function"},tO=Array.isArray,tP=function(t){return tO(t)||typeof(t===null||t===void 0?void 0:t[Symbol.iterator])=="function"},tC="[ \n\f\r]",tU=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tx=/-->/g,tR=/>/g,tj=RegExp(">|".concat(tC,"(?:([^\\s\"'>=/]+)(").concat(tC,"*=").concat(tC,"*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),tT=/'/g,tM=/"/g,tN=/^(?:script|style|textarea|title)$/i,tI=function(t){return function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++){i[r-1]=arguments[r]}return{_$litType$:t,strings:e,values:i}}},tH=tI(1),tD=tI(2),tV=tI(3),tL=Symbol.for("lit-noChange"),tz=Symbol.for("lit-nothing"),tB=new WeakMap,tq=tE.createTreeWalker(tE,129);var tW=function(e,n){var i=e.length-1,r=[],o,a=n===2?"<svg>":n===3?"<math>":"",s=tU;for(var u=0;u<i;u++){var l=e[u],c=void 0,h=void 0,v=-1,d=0;for(;d<l.length&&(s.lastIndex=d,h=s.exec(l),h!==null);)d=s.lastIndex,s===tU?h[1]==="!--"?s=tx:h[1]!==void 0?s=tR:h[2]!==void 0?(tN.test(h[2])&&(o=RegExp("</"+h[2],"g")),s=tj):h[3]!==void 0&&(s=tj):s===tj?h[0]===">"?(s=o!==null&&o!==void 0?o:tU,v=-1):h[1]===void 0?v=-2:(v=s.lastIndex-h[2].length,c=h[1],s=h[3]===void 0?tj:h[3]==='"'?tM:tT):s===tM||s===tT?s=tj:s===tx||s===tR?s=tU:(s=tj,o=void 0);var f=s===tj&&e[u+1].startsWith("/>")?" ":"";a+=s===tU?l+tA:v>=0?(r.push(c),l.slice(0,v)+tg+l.slice(v)+tw+f):l+tw+(v===-2?u:f)}return[t(e,a+(e[i]||"<?>")+(n===2?"</svg>":n===3?"</math>":"")),r]},tF=/*#__PURE__*/function(){"use strict";function t(e,n){var i=e.strings,r=e._$litType$;s(this,t);var o;this.parts=[];var a=0,u=0,l=i.length-1,c=this.parts,h=S(tW(i,r),2),v=h[0],d=h[1];if(this.el=t.createElement(v,n),tq.currentNode=this.el.content,r===2||r===3){var f;var p=this.el.content.firstChild;(f=p).replaceWith.apply(f,C(p.childNodes))}for(;(o=tq.nextNode())!==null&&c.length<l;){if(o.nodeType===1){var y=true,_=false,b=undefined;if(o.hasAttributes())try{for(var m=o.getAttributeNames()[Symbol.iterator](),g;!(y=(g=m.next()).done);y=true){var w=g.value;if(w.endsWith(tg)){var $=d[u++],A=o.getAttribute(w).split(tw),E=/([.?@])?(.*)/.exec($);c.push({type:1,index:a,name:E[2],strings:A,ctor:E[1]==="."?tQ:E[1]==="?"?tX:E[1]==="@"?tY:tG}),o.removeAttribute(w)}else w.startsWith(tw)&&(c.push({type:6,index:a}),o.removeAttribute(w))}}catch(t){_=true;b=t}finally{try{if(!y&&m.return!=null){m.return()}}finally{if(_){throw b}}}if(tN.test(o.tagName)){var k=o.textContent.split(tw),O=k.length-1;if(O>0){o.textContent=tb?tb.emptyScript:"";for(var P=0;P<O;P++)o.append(k[P],tk()),tq.nextNode(),c.push({type:2,index:++a});o.append(k[O],tk())}}}else if(o.nodeType===8)if(o.data===t$)c.push({type:2,index:a});else{var U=-1;for(;(U=o.data.indexOf(tw,U+1))!==-1;)c.push({type:7,index:a}),U+=tw.length-1}a++}}c(t,null,[{key:"createElement",value:function t(t,e){var n=tE.createElement("template");return n.innerHTML=t,n}}]);return t}();function tK(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,i=arguments.length>3?arguments[3]:void 0;var r,o;if(e===tL)return e;var a=i!==void 0?(r=n._$Co)===null||r===void 0?void 0:r[i]:n._$Cl,s=tS(e)?void 0:e._$litDirective$;var u;return(a===null||a===void 0?void 0:a.constructor)!==s&&(a===null||a===void 0?void 0:(o=a._$AO)===null||o===void 0?void 0:o.call(a,!1),s===void 0?a=void 0:(a=new s(t),a._$AT(t,n,i)),i!==void 0?((u=n._$Co)!==null&&u!==void 0?u:n._$Co=[])[i]=a:n._$Cl=a),a!==void 0&&(e=tK(t,a._$AS(t,e.values),a,i)),e}var tJ=/*#__PURE__*/function(){"use strict";function t(e,n){s(this,t);this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}c(t,[{key:"parentNode",get:function t(){return this._$AM.parentNode}},{key:"_$AU",get:function t(){return this._$AM._$AU}},{key:"u",value:function t(t){var e;var n=this._$AD,i=n.el,r=i.content,o=n.parts,a=((e=t===null||t===void 0?void 0:t.creationScope)!==null&&e!==void 0?e:tE).importNode(r,!0);tq.currentNode=a;var s=tq.nextNode(),u=0,l=0,c=o[0];for(;c!==void 0;){if(u===c.index){var h=void 0;c.type===2?h=new tZ(s,s.nextSibling,this,t):c.type===1?h=new c.ctor(s,c.name,c.strings,this,t):c.type===6&&(h=new t0(s,this,t)),this._$AV.push(h),c=o[++l]}u!==(c===null||c===void 0?void 0:c.index)&&(s=tq.nextNode(),u++)}return tq.currentNode=tE,a}},{key:"p",value:function t(t){var e=0;var n=true,i=false,r=undefined;try{for(var o=this._$AV[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){var s=a.value;s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}catch(t){i=true;r=t}finally{try{if(!n&&o.return!=null){o.return()}}finally{if(i){throw r}}}}}]);return t}(),tZ=/*#__PURE__*/function(){"use strict";function e(t,n,i,r){s(this,e);var o;this.type=2,this._$AH=tz,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=i,this.options=r,this._$Cv=(o=r===null||r===void 0?void 0:r.isConnected)!==null&&o!==void 0?o:!0}c(e,[{key:"_$AU",get:function t(){var t;var e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cv}},{key:"parentNode",get:function t(){var t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t===null||t===void 0?void 0:t.nodeType)===11&&(t=e.parentNode),t}},{key:"startNode",get:function t(){return this._$AA}},{key:"endNode",get:function t(){return this._$AB}},{key:"_$AI",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this;t=tK(this,t,e),tS(t)?t===tz||t==null||t===""?(this._$AH!==tz&&this._$AR(),this._$AH=tz):t!==this._$AH&&t!==tL&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):tP(t)?this.k(t):this._(t)}},{key:"O",value:function t(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}},{key:"T",value:function t(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}},{key:"_",value:function t(t){this._$AH!==tz&&tS(this._$AH)?this._$AA.nextSibling.data=t:this.T(tE.createTextNode(t)),this._$AH=t}},{key:"$",value:function e(e){var n;var i=e.values,r=e._$litType$,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=tF.createElement(t(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)===null||n===void 0?void 0:n._$AD)===o)this._$AH.p(i);else{var a=new tJ(o,this),s=a.u(this.options);a.p(i),this.T(s),this._$AH=a}}},{key:"_$AC",value:function t(t){var e=tB.get(t.strings);return e===void 0&&tB.set(t.strings,e=new tF(t)),e}},{key:"k",value:function t(t){tO(this._$AH)||(this._$AH=[],this._$AR());var n=this._$AH,i,r=0;var o=true,a=false,s=undefined;try{for(var u=t[Symbol.iterator](),l;!(o=(l=u.next()).done);o=true){var c=l.value;r===n.length?n.push(i=new e(this.O(tk()),this.O(tk()),this,this.options)):i=n[r],i._$AI(c),r++}}catch(t){a=true;s=t}finally{try{if(!o&&u.return!=null){u.return()}}finally{if(a){throw s}}}r<n.length&&(this._$AR(i&&i._$AB.nextSibling,r),n.length=r)}},{key:"_$AR",value:function t(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this._$AA.nextSibling,e=arguments.length>1?arguments[1]:void 0;var n,i;for((n=(i=this)._$AP)===null||n===void 0?void 0:n.call(i,!1,!0,e);t&&t!==this._$AB;){var r=t.nextSibling;t.remove(),t=r}}},{key:"setConnected",value:function t(t){var e,n;this._$AM===void 0&&(this._$Cv=t,(e=(n=this)._$AP)===null||e===void 0?void 0:e.call(n,t))}}]);return e}(),tG=/*#__PURE__*/function(){"use strict";function t(e,n,i,r,o){s(this,t);this.type=1,this._$AH=tz,this._$AN=void 0,this.element=e,this.name=n,this._$AM=r,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=tz}c(t,[{key:"tagName",get:function t(){return this.element.tagName}},{key:"_$AU",get:function t(){return this._$AM._$AU}},{key:"_$AI",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;var r=this.strings,o=!1;if(r===void 0)t=tK(this,t,e,0),o=!tS(t)||t!==this._$AH&&t!==tL,o&&(this._$AH=t);else{var a=t,s,u;for(t=r[0],s=0;s<r.length-1;s++)u=tK(this,a[n+s],e,s),u===tL&&(u=this._$AH[s]),o||(o=!tS(u)||u!==this._$AH[s]),u===tz?t=tz:t!==tz&&(t+=(u!==null&&u!==void 0?u:"")+r[s+1]),this._$AH[s]=u}o&&!i&&this.j(t)}},{key:"j",value:function t(t){t===tz?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!==null&&t!==void 0?t:"")}}]);return t}(),tQ=/*#__PURE__*/function(t){"use strict";f(e,t);function e(){s(this,e);var t;t=a(this,e,arguments),t.type=3;return t}c(e,[{key:"j",value:function t(t){this.element[this.name]=t===tz?void 0:t}}]);return e}(tG),tX=/*#__PURE__*/function(t){"use strict";f(e,t);function e(){s(this,e);var t;t=a(this,e,arguments),t.type=4;return t}c(e,[{key:"j",value:function t(t){this.element.toggleAttribute(this.name,!!t&&t!==tz)}}]);return e}(tG),tY=/*#__PURE__*/function(t){"use strict";f(e,t);function e(t,n,i,r,o){s(this,e);var u;u=a(this,e,[t,n,i,r,o]),u.type=5;return u}c(e,[{key:"_$AI",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this;var n;if((t=(n=tK(this,t,e,0))!==null&&n!==void 0?n:tz)===tL)return;var i=this._$AH,r=t===tz&&i!==tz||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==tz&&(i===tz||r);r&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}},{key:"handleEvent",value:function t(t){var e;var n;typeof this._$AH=="function"?this._$AH.call((n=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&n!==void 0?n:this.element,t):this._$AH.handleEvent(t)}}]);return e}(tG),t0=/*#__PURE__*/function(){"use strict";function t(e,n,i){s(this,t);this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}c(t,[{key:"_$AU",get:function t(){return this._$AM._$AU}},{key:"_$AI",value:function t(t){tK(this,t)}}]);return t}();var t1=t_.litHtmlPolyfillSupport;var t2;t1===null||t1===void 0?void 0:t1(tF,tZ),((t2=t_.litHtmlVersions)!==null&&t2!==void 0?t2:t_.litHtmlVersions=[]).push("3.2.1");var t3=function(t,e,n){var i;var r=(i=n===null||n===void 0?void 0:n.renderBefore)!==null&&i!==void 0?i:e,o=r._$litPart$;if(o===void 0){var a;var s=(a=n===null||n===void 0?void 0:n.renderBefore)!==null&&a!==void 0?a:null;r._$litPart$=o=new tZ(e.insertBefore(tk(),s),s,void 0,n!==null&&n!==void 0?n:{})}return o._$AI(t),o};var t4=/*#__PURE__*/function(t){"use strict";f(e,t);function e(){s(this,e);var t;t=a(this,e,arguments),t.renderOptions={host:t},t._$Do=void 0;return t}c(e,[{key:"createRenderRoot",value:function t(){var t;var n=v(d(e.prototype),"createRenderRoot",this).call(this);var i;return(i=(t=this.renderOptions).renderBefore)!==null&&i!==void 0?i:t.renderBefore=n.firstChild,n}},{key:"update",value:function t(t){var n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),v(d(e.prototype),"update",this).call(this,t),this._$Do=t3(n,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function t(){var t;v(d(e.prototype),"connectedCallback",this).call(this),(t=this._$Do)===null||t===void 0?void 0:t.setConnected(!0)}},{key:"disconnectedCallback",value:function t(){var t;v(d(e.prototype),"disconnectedCallback",this).call(this),(t=this._$Do)===null||t===void 0?void 0:t.setConnected(!1)}},{key:"render",value:function t(){return tL}}]);return e}(tp);t4._$litElement$=!0,t4.finalized=!0,(l=(h=globalThis).litElementHydrateSupport)===null||l===void 0?void 0:l.call(h,{LitElement:t4});var t6=globalThis.litElementPolyfillSupport;t6===null||t6===void 0?void 0:t6({LitElement:t4});var t5;((t5=globalThis.litElementVersions)!==null&&t5!==void 0?t5:globalThis.litElementVersions=[]).push("4.1.1");var t8=function(t){return function(e,n){n!==void 0?n.addInitializer(function(){customElements.define(t,e)}):customElements.define(t,e)}};var t7={attribute:!0,type:String,converter:tl,reflect:!1,hasChanged:tc},t9=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t7,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;var i=n.kind,r=n.metadata,o=globalThis.litPropertyMetadata.get(r);if(o===void 0&&globalThis.litPropertyMetadata.set(r,o=new Map),o.set(n.name,t),i==="accessor"){var a=n.name;return{set:function n(n){var i=e.get.call(this);e.set.call(this,n),this.requestUpdate(a,i,t)},init:function e(e){return e!==void 0&&this.P(a,void 0,t),e}}}if(i==="setter"){var s=n.name;return function n(n){var i=this[s];e.call(this,n),this.requestUpdate(s,i,t)}}throw Error("Unsupported decorator location: "+i)};var et=/*#__PURE__*/function(t){"use strict";f(e,t);function e(t,n,i){s(this,e);var r;r=a(this,e,["context-request",{bubbles:!0,composed:!0}]),r.context=t,r.callback=n,r.subscribe=i!==null&&i!==void 0?i:!1;return r}return e}(R(Event));var ee=/*#__PURE__*/function(){"use strict";function t(e,n,i,r){var o=this;s(this,t);if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=function(t,e){o.unsubscribe&&(o.unsubscribe!==e&&(o.provided=!1,o.unsubscribe()),o.subscribe||o.unsubscribe()),o.value=t,o.host.requestUpdate(),o.provided&&!o.subscribe||(o.provided=!0,o.callback&&o.callback(t,e)),o.unsubscribe=e},this.host=e,n.context!==void 0){var a=n;var u;this.context=a.context,this.callback=a.callback,this.subscribe=(u=a.subscribe)!==null&&u!==void 0?u:!1}else this.context=n,this.callback=i,this.subscribe=r!==null&&r!==void 0?r:!1;this.host.addController(this)}c(t,[{key:"hostConnected",value:function t(){this.dispatchRequest()}},{key:"hostDisconnected",value:function t(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}},{key:"dispatchRequest",value:function t(){this.host.dispatchEvent(new et(this.context,this.t,this.subscribe))}}]);return t}();var en=Symbol("test"),ei=Symbol("testElement");var er=/*#__PURE__*/function(t){"use strict";f(e,t);function e(){s(this,e);var t;t=a(this,e);t.disabled=!0;t._internals=t.attachInternals();return t}c(e,[{key:"_handleTestElementChange",value:function t(t,e){e.el&&(this.disabled=!1)}},{key:"willUpdate",value:function t(t){if(t.has("_testContext")){var e;var n;var i=(n=this._testContext)!==null&&n!==void 0?n:{},r=i.items,o=r===void 0?[]:r,a=i.navItemId;this.itemIndex=o.findIndex(function(t){return t.identifier===a}),this.items=o,this.view=(e=this._testContext)===null||e===void 0?void 0:e.view}}},{key:"_switchView",value:function t(t){this.dispatchEvent(new CustomEvent("on-test-switch-view",{composed:!0,bubbles:!0,detail:t}))}},{key:"_requestItem",value:function t(t){this.dispatchEvent(new CustomEvent("qti-request-test-item",{composed:!0,bubbles:!0,detail:t}))}}]);return e}(t4);k([u({type:Boolean,reflect:!0,aria:"ariaDisabled"})],er.prototype,"disabled",2),k([n(),i({context:en,subscribe:!0})],er.prototype,"_testContext",2),k([n(),i({context:ei,subscribe:!0})],er.prototype,"_testElement",2),k([r("_testElement")],er.prototype,"_handleTestElementChange",1);var eo=/*#__PURE__*/function(t){"use strict";f(e,t);function e(){s(this,e);var t;t=a(this,e,arguments);t.label="view";t._handleViewOptionsChange=function(){t.updateViewOptions()};t._viewOptions=eo.DEFAULT_VIEW_OPTIONS;return t}c(e,[{key:"connectedCallback",value:function t(){v(d(e.prototype),"connectedCallback",this).call(this),this.updateViewOptions()}},{key:"updateViewOptions",value:function t(){if(this.viewOptions){var t=this.viewOptions.split(",").map(function(t){return t.trim()});this._viewOptions=t.filter(function(t){return eo.DEFAULT_VIEW_OPTIONS.includes(t)})}else this._viewOptions=eo.DEFAULT_VIEW_OPTIONS}},{key:"render",value:function t(){var t=this;return tH(N(),this.label,this.disabled,function(e){var n=e.target;t._switchView(n.value)},this._viewOptions.map(function(e){return tH(M(),e,e===t.view,e)}))}}]);return e}(er);eo.DEFAULT_VIEW_OPTIONS=["author","candidate","proctor","scorer","testConstructor","tutor"],k([e({type:String})],eo.prototype,"label",2),k([e({type:String,attribute:"view-options"})],eo.prototype,"viewOptions",2),k([r("viewOptions",{waitUntilFirstUpdate:!0})],eo.prototype,"_handleViewOptionsChange",2),k([n()],eo.prototype,"_viewOptions",2),eo=k([t8("test-view")],eo);return E(O)}();/*! Bundled license information:
|
|
2
|
+
|
|
3
|
+
@lit-labs/ssr-dom-shim/lib/element-internals.js:
|
|
4
|
+
(**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright 2023 Google LLC
|
|
7
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
|
+
*)
|
|
9
|
+
|
|
10
|
+
@lit-labs/ssr-dom-shim/index.js:
|
|
11
|
+
(**
|
|
12
|
+
* @license
|
|
13
|
+
* Copyright 2019 Google LLC
|
|
14
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
15
|
+
*)
|
|
16
|
+
|
|
17
|
+
@lit/reactive-element/node/css-tag.js:
|
|
18
|
+
(**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright 2019 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
+
*)
|
|
23
|
+
|
|
24
|
+
lit-html/node/lit-html.js:
|
|
25
|
+
(**
|
|
26
|
+
* @license
|
|
27
|
+
* Copyright 2017 Google LLC
|
|
28
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
+
*)
|
|
30
|
+
|
|
31
|
+
lit-element/lit-element.js:
|
|
32
|
+
(**
|
|
33
|
+
* @license
|
|
34
|
+
* Copyright 2017 Google LLC
|
|
35
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
|
+
*)
|
|
37
|
+
|
|
38
|
+
lit-html/node/is-server.js:
|
|
39
|
+
(**
|
|
40
|
+
* @license
|
|
41
|
+
* Copyright 2022 Google LLC
|
|
42
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
+
*)
|
|
44
|
+
|
|
45
|
+
@lit/reactive-element/node/decorators/custom-element.js:
|
|
46
|
+
(**
|
|
47
|
+
* @license
|
|
48
|
+
* Copyright 2017 Google LLC
|
|
49
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
50
|
+
*)
|
|
51
|
+
|
|
52
|
+
@lit/reactive-element/node/decorators/property.js:
|
|
53
|
+
(**
|
|
54
|
+
* @license
|
|
55
|
+
* Copyright 2017 Google LLC
|
|
56
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
+
*)
|
|
58
|
+
|
|
59
|
+
@lit/reactive-element/node/decorators/state.js:
|
|
60
|
+
(**
|
|
61
|
+
* @license
|
|
62
|
+
* Copyright 2017 Google LLC
|
|
63
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
|
+
*)
|
|
65
|
+
|
|
66
|
+
@lit/reactive-element/node/decorators/event-options.js:
|
|
67
|
+
(**
|
|
68
|
+
* @license
|
|
69
|
+
* Copyright 2017 Google LLC
|
|
70
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
71
|
+
*)
|
|
72
|
+
|
|
73
|
+
@lit/reactive-element/node/decorators/base.js:
|
|
74
|
+
(**
|
|
75
|
+
* @license
|
|
76
|
+
* Copyright 2017 Google LLC
|
|
77
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
78
|
+
*)
|
|
79
|
+
|
|
80
|
+
@lit/reactive-element/node/decorators/query.js:
|
|
81
|
+
(**
|
|
82
|
+
* @license
|
|
83
|
+
* Copyright 2017 Google LLC
|
|
84
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
85
|
+
*)
|
|
86
|
+
|
|
87
|
+
@lit/reactive-element/node/decorators/query-all.js:
|
|
88
|
+
(**
|
|
89
|
+
* @license
|
|
90
|
+
* Copyright 2017 Google LLC
|
|
91
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
92
|
+
*)
|
|
93
|
+
|
|
94
|
+
@lit/reactive-element/node/decorators/query-async.js:
|
|
95
|
+
(**
|
|
96
|
+
* @license
|
|
97
|
+
* Copyright 2017 Google LLC
|
|
98
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
99
|
+
*)
|
|
100
|
+
|
|
101
|
+
@lit/reactive-element/node/decorators/query-assigned-elements.js:
|
|
102
|
+
(**
|
|
103
|
+
* @license
|
|
104
|
+
* Copyright 2021 Google LLC
|
|
105
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
106
|
+
*)
|
|
107
|
+
|
|
108
|
+
@lit/reactive-element/node/decorators/query-assigned-nodes.js:
|
|
109
|
+
(**
|
|
110
|
+
* @license
|
|
111
|
+
* Copyright 2017 Google LLC
|
|
112
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
113
|
+
*)
|
|
114
|
+
|
|
115
|
+
@lit/context/lib/context-request-event.js:
|
|
116
|
+
(**
|
|
117
|
+
* @license
|
|
118
|
+
* Copyright 2021 Google LLC
|
|
119
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
120
|
+
*)
|
|
121
|
+
|
|
122
|
+
@lit/context/lib/create-context.js:
|
|
123
|
+
(**
|
|
124
|
+
* @license
|
|
125
|
+
* Copyright 2021 Google LLC
|
|
126
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
127
|
+
*)
|
|
128
|
+
|
|
129
|
+
@lit/context/lib/controllers/context-consumer.js:
|
|
130
|
+
(**
|
|
131
|
+
* @license
|
|
132
|
+
* Copyright 2021 Google LLC
|
|
133
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
134
|
+
*)
|
|
135
|
+
|
|
136
|
+
@lit/context/lib/value-notifier.js:
|
|
137
|
+
(**
|
|
138
|
+
* @license
|
|
139
|
+
* Copyright 2021 Google LLC
|
|
140
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
141
|
+
*)
|
|
142
|
+
|
|
143
|
+
@lit/context/lib/controllers/context-provider.js:
|
|
144
|
+
(**
|
|
145
|
+
* @license
|
|
146
|
+
* Copyright 2021 Google LLC
|
|
147
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
148
|
+
*)
|
|
149
|
+
|
|
150
|
+
@lit/context/lib/context-root.js:
|
|
151
|
+
(**
|
|
152
|
+
* @license
|
|
153
|
+
* Copyright 2021 Google LLC
|
|
154
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
155
|
+
*)
|
|
156
|
+
|
|
157
|
+
@lit/context/lib/decorators/provide.js:
|
|
158
|
+
(**
|
|
159
|
+
* @license
|
|
160
|
+
* Copyright 2017 Google LLC
|
|
161
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
162
|
+
*)
|
|
163
|
+
|
|
164
|
+
@lit/context/lib/decorators/consume.js:
|
|
165
|
+
(**
|
|
166
|
+
* @license
|
|
167
|
+
* Copyright 2022 Google LLC
|
|
168
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
169
|
+
*)
|
|
170
|
+
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunk-BLKKKK6C.js";import"../../chunk-KYOTSBCX.js";import"../../chunk-IXSX4SJX.js";import"../../chunk-M6AATWPS.js";import"../../chunk-5WCOPF7O.js";import"../../chunk-4DFVJE2A.js";import"../../chunk-VI2WKTN4.js";export{a as TestView};
|