@pictogrammers/components 0.3.2 → 0.4.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/README.md +11 -12
- package/favicon.svg +20 -0
- package/index.html +67 -49
- package/main.js +2 -0
- package/main.js.LICENSE.txt +10 -0
- package/package.json +6 -6
- package/pg/annoy/README.md +0 -5
- package/pg/annoy/__examples__/basic/basic.css +3 -0
- package/pg/annoy/__examples__/basic/basic.html +4 -7
- package/pg/annoy/__examples__/basic/basic.ts +3 -1
- package/pg/annoy/annoy.css +29 -198
- package/pg/annoy/annoy.html +5 -56
- package/pg/annoy/annoy.ts +4 -25
- package/pg/app/README.md +11 -0
- package/pg/app/__examples__/basic/basic.css +8 -0
- package/pg/app/__examples__/basic/basic.html +15 -0
- package/pg/app/__examples__/basic/basic.ts +13 -0
- package/pg/app/app.css +108 -0
- package/pg/app/app.html +16 -0
- package/pg/app/app.ts +45 -0
- package/pg/app/index.ts +3 -0
- package/pg/avatar/__examples__/basic/basic.ts +5 -3
- package/pg/button/README.md +3 -0
- package/pg/button/button.css +13 -12
- package/pg/button/button.spec.ts +35 -0
- package/pg/button/button.ts +17 -12
- package/pg/buttonLink/buttonLink.css +3 -2
- package/pg/buttonMenu/README.md +54 -0
- package/pg/buttonMenu/__examples__/basic/basic.html +6 -0
- package/pg/buttonMenu/__examples__/basic/basic.ts +43 -0
- package/pg/buttonMenu/buttonMenu.css +12 -0
- package/pg/buttonMenu/buttonMenu.html +4 -0
- package/pg/buttonMenu/buttonMenu.ts +63 -0
- package/pg/buttonMenu/index.ts +3 -0
- package/pg/buttonToggle/__examples__/basic/basic.ts +2 -2
- package/pg/buttonToggle/__examples__/persist/persist.html +10 -0
- package/pg/buttonToggle/__examples__/persist/persist.ts +35 -0
- package/pg/cardUser/__examples__/basic/basic.ts +0 -1
- package/pg/cardUser/cardUser.css +2 -10
- package/pg/cardUser/cardUser.html +0 -5
- package/pg/cardUser/cardUser.ts +0 -6
- package/pg/database/README.md +1 -1
- package/pg/database/__examples__/basic/basic.html +2 -1
- package/pg/database/__examples__/basic/basic.ts +3 -3
- package/pg/dropdown/dropdown.ts +0 -19
- package/pg/grid/__examples__/basic/basic.html +2 -2
- package/pg/grid/__examples__/basic/basic.ts +3 -2
- package/pg/grid/grid.ts +0 -1
- package/pg/icon/README.md +6 -5
- package/pg/icon/__examples__/basic/basic.html +2 -2
- package/pg/icon/__examples__/basic/basic.ts +1 -1
- package/pg/icon/icon.ts +6 -0
- package/pg/inputCheckList/__examples__/basic/basic.ts +5 -5
- package/pg/inputCheckList/inputCheckList.ts +2 -0
- package/pg/inputFileLocal/inputFileLocal.css +3 -2
- package/pg/inputPixelEditor/README.md +132 -0
- package/pg/inputPixelEditor/__examples__/basic/basic.css +29 -0
- package/pg/inputPixelEditor/__examples__/basic/basic.html +63 -0
- package/pg/inputPixelEditor/__examples__/basic/basic.ts +200 -0
- package/pg/inputPixelEditor/__examples__/basic/openUtils.ts +41 -0
- package/pg/inputPixelEditor/__examples__/basic/saveUtil.ts +35 -0
- package/pg/inputPixelEditor/index.ts +3 -0
- package/pg/inputPixelEditor/inputPixelEditor.css +27 -0
- package/pg/inputPixelEditor/inputPixelEditor.html +3 -0
- package/pg/inputPixelEditor/inputPixelEditor.ts +839 -0
- package/pg/inputPixelEditor/utils/bitmapToMask.ts +202 -0
- package/pg/inputPixelEditor/utils/cloneGrid.ts +17 -0
- package/pg/inputPixelEditor/utils/constants.ts +1 -0
- package/pg/inputPixelEditor/utils/createLayer.ts +8 -0
- package/pg/inputPixelEditor/utils/debounce.ts +5 -0
- package/pg/inputPixelEditor/utils/diffGrid.ts +26 -0
- package/pg/inputPixelEditor/utils/fillGrid.ts +11 -0
- package/pg/inputPixelEditor/utils/getEllipseOutlinePixels.ts +105 -0
- package/pg/inputPixelEditor/utils/getEllipsePixels.ts +28 -0
- package/pg/inputPixelEditor/utils/getGuides.ts +232 -0
- package/pg/inputPixelEditor/utils/getLinePixels.ts +18 -0
- package/pg/inputPixelEditor/utils/getRectangleOutlinePixels.ts +20 -0
- package/pg/inputPixelEditor/utils/getRectanglePixels.ts +15 -0
- package/pg/inputPixelEditor/utils/inputMode.ts +8 -0
- package/pg/inputPixelEditor/utils/interateGrid.ts +7 -0
- package/pg/inputPixelEditor/utils/isEmptyGrid.ts +3 -0
- package/pg/inputPixelEditor/utils/maskToBitmap.ts +66 -0
- package/pg/inputRange/__examples__/basic/basic.ts +4 -4
- package/pg/inputRange/inputRange.ts +6 -4
- package/pg/inputSelect/README.md +1 -1
- package/pg/inputSelect/__examples__/basic/basic.ts +7 -5
- package/pg/inputSelect/inputSelect.css +15 -12
- package/pg/inputSelect/inputSelect.html +3 -3
- package/pg/inputSelect/inputSelect.ts +33 -30
- package/pg/inputText/__examples__/basic/basic.ts +6 -6
- package/pg/inputText/inputText.css +1 -0
- package/pg/inputUserSelect/README.md +1 -1
- package/pg/inputUserSelect/inputUserSelect.ts +1 -1
- package/pg/listTag/__examples__/basic/basic.ts +4 -5
- package/pg/markdown/README.md +17 -3
- package/pg/markdown/__examples__/basic/basic.ts +2 -2
- package/pg/markdown/__examples__/basic/constants.ts +1 -1
- package/pg/markdown/markdown.css +11 -0
- package/pg/menu/README.md +46 -0
- package/pg/menu/__examples__/basic/basic.html +6 -0
- package/pg/menu/__examples__/basic/basic.ts +46 -0
- package/pg/menu/index.ts +3 -0
- package/pg/menu/menu.css +19 -0
- package/pg/menu/menu.html +1 -0
- package/pg/menu/menu.ts +119 -0
- package/pg/menuDivider/README.md +7 -0
- package/pg/menuDivider/__examples__/basic/basic.html +3 -0
- package/pg/menuDivider/__examples__/basic/basic.ts +28 -0
- package/pg/menuDivider/index.ts +3 -0
- package/pg/menuDivider/menuDivider.css +9 -0
- package/pg/menuDivider/menuDivider.html +1 -0
- package/pg/menuDivider/menuDivider.ts +22 -0
- package/pg/menuIcon/menuIcon.ts +43 -36
- package/pg/menuItem/README.md +32 -0
- package/pg/menuItem/__examples__/basic/basic.html +26 -0
- package/pg/menuItem/__examples__/basic/basic.ts +41 -0
- package/pg/menuItem/index.ts +3 -0
- package/pg/menuItem/menuItem.css +97 -0
- package/pg/menuItem/menuItem.html +1 -0
- package/pg/menuItem/menuItem.ts +77 -0
- package/pg/menuItemIcon/README.md +32 -0
- package/pg/menuItemIcon/__examples__/basic/basic.html +34 -0
- package/pg/menuItemIcon/__examples__/basic/basic.ts +55 -0
- package/pg/menuItemIcon/index.ts +3 -0
- package/pg/menuItemIcon/menuItemIcon.css +106 -0
- package/pg/menuItemIcon/menuItemIcon.html +4 -0
- package/pg/menuItemIcon/menuItemIcon.ts +156 -0
- package/pg/modalAlert/__examples__/basic/basic.ts +1 -1
- package/pg/modalAlert/modalAlert.css +1 -4
- package/pg/modalAlert/modalAlert.ts +18 -4
- package/pg/modification/__examples__/basic/basic.ts +1 -2
- package/pg/modification/__examples__/basic/constants.ts +25 -50
- package/pg/modification/modification.ts +1 -1
- package/pg/overlay/overlay.ts +13 -12
- package/pg/overlayContextMenu/README.md +35 -0
- package/pg/overlayContextMenu/__examples__/basic/basic.css +23 -0
- package/pg/overlayContextMenu/__examples__/basic/basic.html +7 -0
- package/pg/overlayContextMenu/__examples__/basic/basic.ts +87 -0
- package/pg/overlayContextMenu/index.ts +3 -0
- package/pg/overlayContextMenu/overlayContextMenu.css +16 -0
- package/pg/overlayContextMenu/overlayContextMenu.html +3 -0
- package/pg/overlayContextMenu/overlayContextMenu.ts +98 -0
- package/pg/overlayMenu/README.md +33 -0
- package/pg/overlayMenu/__examples__/basic/basic.css +3 -0
- package/pg/overlayMenu/__examples__/basic/basic.html +5 -0
- package/pg/overlayMenu/__examples__/basic/basic.ts +62 -0
- package/pg/overlayMenu/index.ts +3 -0
- package/pg/overlayMenu/overlayMenu.css +16 -0
- package/pg/overlayMenu/overlayMenu.html +3 -0
- package/pg/overlayMenu/overlayMenu.ts +67 -0
- package/pg/overlaySelectMenu/README.md +33 -0
- package/pg/overlaySelectMenu/__examples__/basic/basic.css +3 -0
- package/pg/overlaySelectMenu/__examples__/basic/basic.html +5 -0
- package/pg/overlaySelectMenu/__examples__/basic/basic.ts +62 -0
- package/pg/overlaySelectMenu/index.ts +3 -0
- package/pg/overlaySelectMenu/overlaySelectMenu.css +17 -0
- package/pg/overlaySelectMenu/overlaySelectMenu.html +3 -0
- package/pg/overlaySelectMenu/overlaySelectMenu.ts +96 -0
- package/pg/overlaySubMenu/README.md +35 -0
- package/pg/overlaySubMenu/index.ts +3 -0
- package/pg/overlaySubMenu/overlaySubMenu.css +27 -0
- package/pg/overlaySubMenu/overlaySubMenu.html +3 -0
- package/pg/overlaySubMenu/overlaySubMenu.ts +103 -0
- package/pg/picker/picker.ts +1 -19
- package/pg/scroll/__examples__/basic/basic.ts +1 -1
- package/pg/search/__examples__/basic/basic.ts +10 -7
- package/pg/search/search.css +2 -2
- package/pg/shared/models/user.ts +0 -2
- package/pg/tab/tab.ts +0 -10
- package/pg/tabs/partials/tab.css +42 -0
- package/pg/tabs/partials/tab.ts +70 -0
- package/pg/tabs/tabs.css +0 -53
- package/pg/tabs/tabs.ts +54 -70
- package/pg/toast/README.md +35 -6
- package/pg/toast/__examples__/basic/basic.html +7 -0
- package/pg/toast/__examples__/basic/basic.ts +76 -0
- package/pg/toast/toast.css +3 -0
- package/pg/toast/toast.ts +20 -4
- package/pg/tooltip/addTooltip.ts +3 -1
- package/pg/tooltip/tooltip.ts +1 -1
- package/pg/tree/README.md +67 -0
- package/pg/tree/__examples__/basic/basic.html +10 -0
- package/pg/tree/__examples__/basic/basic.ts +162 -0
- package/pg/tree/index.ts +3 -0
- package/pg/tree/tree.css +28 -0
- package/pg/tree/tree.html +1 -0
- package/pg/tree/tree.ts +217 -0
- package/pg/treeButtonIcon/README.md +39 -0
- package/pg/treeButtonIcon/index.ts +3 -0
- package/pg/treeButtonIcon/treeButtonIcon.css +18 -0
- package/pg/treeButtonIcon/treeButtonIcon.html +3 -0
- package/pg/treeButtonIcon/treeButtonIcon.ts +42 -0
- package/pg/treeItem/README.md +3 -0
- package/pg/treeItem/index.ts +3 -0
- package/pg/treeItem/treeItem.css +263 -0
- package/pg/treeItem/treeItem.html +16 -0
- package/pg/treeItem/treeItem.ts +558 -0
- package/pgAnnoy.js +1 -0
- package/pgApp.js +1 -0
- package/pgAvatar.js +1 -0
- package/pgButton.js +1 -0
- package/pgButtonGroup.js +1 -0
- package/pgButtonLink.js +1 -0
- package/pgButtonMenu.js +1 -0
- package/pgButtonToggle.js +1 -0
- package/pgCard.js +1 -0
- package/pgCardUser.js +1 -0
- package/pgColor.js +1 -0
- package/pgDatabase.js +1 -0
- package/pgDropdown.js +1 -0
- package/pgGrid.js +1 -0
- package/pgHeader.js +1 -0
- package/pgIcon.js +1 -0
- package/pgInputCheck.js +1 -0
- package/pgInputCheckList.js +1 -0
- package/pgInputFileLocal.js +1 -0
- package/pgInputHexRgb.js +1 -0
- package/pgInputPixelEditor.js +1 -0
- package/pgInputRange.js +1 -0
- package/pgInputSelect.js +1 -0
- package/pgInputText.js +1 -0
- package/pgInputTextIcon.js +1 -0
- package/pgInputUserSelect.js +1 -0
- package/pgListTag.js +1 -0
- package/pgMarkdown.js +2 -0
- package/pgMarkdown.js.LICENSE.txt +10 -0
- package/pgMenu.js +1 -0
- package/pgMenuDivider.js +1 -0
- package/pgMenuIcon.js +1 -0
- package/pgMenuItem.js +1 -0
- package/pgMenuItemIcon.js +1 -0
- package/pgModalAlert.js +1 -0
- package/pgModification.js +1 -0
- package/pgNav.js +1 -0
- package/pgOverlay.js +1 -0
- package/pgOverlayContextMenu.js +1 -0
- package/pgOverlayMenu.js +1 -0
- package/pgOverlaySelectMenu.js +1 -0
- package/pgOverlaySubMenu.js +1 -0
- package/pgPicker.js +1 -0
- package/pgPreview.js +1 -0
- package/pgScroll.js +1 -0
- package/pgSearch.js +1 -0
- package/pgTab.js +1 -0
- package/pgTabs.js +1 -0
- package/pgToast.js +1 -0
- package/pgToasts.js +1 -0
- package/pgTooltip.js +1 -0
- package/pgTree.js +1 -0
- package/pgTreeButtonIcon.js +1 -0
- package/pgTreeItem.js +1 -0
- package/theme-ui3.css +31 -0
- package/@types/css.d.ts +0 -4
- package/@types/html.d.ts +0 -4
- package/dist/main.js +0 -3819
- package/dist/pgAnnoy.js +0 -116
- package/dist/pgAvatar.js +0 -136
- package/dist/pgButton.js +0 -116
- package/dist/pgButtonGroup.js +0 -116
- package/dist/pgButtonLink.js +0 -116
- package/dist/pgButtonToggle.js +0 -146
- package/dist/pgCard.js +0 -116
- package/dist/pgCardUser.js +0 -196
- package/dist/pgColor.js +0 -136
- package/dist/pgDatabase.js +0 -236
- package/dist/pgDropdown.js +0 -686
- package/dist/pgGrid.js +0 -126
- package/dist/pgHeader.js +0 -116
- package/dist/pgIcon.js +0 -116
- package/dist/pgInputCheck.js +0 -116
- package/dist/pgInputCheckList.js +0 -126
- package/dist/pgInputFileLocal.js +0 -116
- package/dist/pgInputHexRgb.js +0 -126
- package/dist/pgInputRange.js +0 -116
- package/dist/pgInputSelect.js +0 -116
- package/dist/pgInputText.js +0 -116
- package/dist/pgInputTextIcon.js +0 -176
- package/dist/pgInputUserSelect.js +0 -116
- package/dist/pgListTag.js +0 -136
- package/dist/pgMarkdown.js +0 -346
- package/dist/pgMenuIcon.js +0 -206
- package/dist/pgModalAlert.js +0 -126
- package/dist/pgModification.js +0 -396
- package/dist/pgNav.js +0 -116
- package/dist/pgOverlay.js +0 -96
- package/dist/pgPicker.js +0 -116
- package/dist/pgPreview.js +0 -116
- package/dist/pgScroll.js +0 -266
- package/dist/pgSearch.js +0 -146
- package/dist/pgTab.js +0 -116
- package/dist/pgTabs.js +0 -136
- package/dist/pgToast.js +0 -136
- package/dist/pgToasts.js +0 -136
- package/dist/pgTooltip.js +0 -126
package/main.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see main.js.LICENSE.txt */
|
|
2
|
+
(()=>{var e={83:()=>{!function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),r=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return a})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return a}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return a})).replace(/<<key>>/g,(function(){return"(?:"+i+"|"+r+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(r),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Prism)},97:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: contents;\n}\n\n[part="overlay"] {\n margin: 0;\n padding: 0;\n border: 0;\n background: transparent;\n overflow: visible;\n --pg-menu-box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.25);\n top: anchor(top);\n left: anchor(left);\n min-width: calc(anchor-size(width) + calc(2 * var(--pg-menu-padding, 0.25rem)));\n margin: var(--pg-overlay-menu-_y, 0) 0 0 var(--pg-overlay-menu-_x, 0);\n overflow: visible;\n}\n',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},111:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,":host {\n display: inline-flex;\n}\n\n::slotted(*) {\n align-self: center;\n display: flex;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},136:(e,t,n)=>{"use strict";var a=n(3822);var i=n(6208);var r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o=[(0,a.uA)({selector:"x-pg-card-user-basic",template:'<div class="example"> <pg-card-user part="cardUser1"></pg-card-user> </div>'})],l=[],c=HTMLElement,d=[],u=[];(class extends c{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"$cardUser1",static:!1,private:!1,access:{has:e=>"$cardUser1"in e,get:e=>e.$cardUser1,set:(e,t)=>{e.$cardUser1=t}},metadata:i},d,u),r(null,e={value:t},o,{kind:"class",name:t.name,metadata:i},null,l),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,l)}$cardUser1=s(this,d,void 0);connectedCallback(){this.$cardUser1.user=(new i.K).from({id:"c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",name:"Austin Andrews",description:"Hello, I am a developer that gets bored and makes icons, then websites for icons, then more icons. Open Source is pretty awesome.",base64:"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",github:"Templarian",iconCount:928,website:"http://templarian.com",sponsored:!0,core:!0})}constructor(){super(...arguments),s(this,u)}})})()},196:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,"p {\n margin: 0.5rem 0;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},233:(e,t,n)=>{"use strict";var a=n(3822);var i=n(4071),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};window.process={env:{}};(()=>{let e,t,n,o,l,c,d,u=[(0,a.uA)({selector:"pg-picker",style:i.A,template:'<parent/> <div part="popover"> <div part="arrow"></div> <input part="search" type="text"/> <div part="scroll"> <pg-grid part="grid" height="12rem"></pg-grid> </div> </div>'})],p=[],h=HTMLElement,f=[],g=[],m=[],v=[],b=[],y=[],w=[],x=[],k=[],E=[];(class extends h{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],o=[(0,a.eS)()],l=[(0,a.eS)()],c=[(0,a.eS)()],d=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"icons",static:!1,private:!1,access:{has:e=>"icons"in e,get:e=>e.icons,set:(e,t)=>{e.icons=t}},metadata:i},f,g),r(null,null,o,{kind:"field",name:"$popover",static:!1,private:!1,access:{has:e=>"$popover"in e,get:e=>e.$popover,set:(e,t)=>{e.$popover=t}},metadata:i},m,v),r(null,null,l,{kind:"field",name:"$arrow",static:!1,private:!1,access:{has:e=>"$arrow"in e,get:e=>e.$arrow,set:(e,t)=>{e.$arrow=t}},metadata:i},b,y),r(null,null,c,{kind:"field",name:"$search",static:!1,private:!1,access:{has:e=>"$search"in e,get:e=>e.$search,set:(e,t)=>{e.$search=t}},metadata:i},w,x),r(null,null,d,{kind:"field",name:"$grid",static:!1,private:!1,access:{has:e=>"$grid"in e,get:e=>e.$grid,set:(e,t)=>{e.$grid=t}},metadata:i},k,E),r(null,e={value:t},u,{kind:"class",name:t.name,metadata:i},null,p),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,p)}icons=s(this,f,[]);$popover=(s(this,g),s(this,m,void 0));$arrow=(s(this,v),s(this,b,void 0));$search=(s(this,y),s(this,w,void 0));$grid=(s(this,x),s(this,k,void 0));isVisible=(s(this,E),!1);connectedCallback(){}search="";render(){this.$grid.icons=this.icons.filter((e=>-1!==e.name.indexOf(this.search)))}})})()},300:(e,t,n)=>{"use strict";var a=n(3822),i=n(6208);const r="iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAasSURBVHhe7Z1taFZlGMevHNN9SDEFM0KXWakgpWWmaep8mW6+LHtjHxphkBDVF4kk0IjyiwV9iIgISWRJgzILQ2s5p8t3DJcYJn0oX+ZUcLqpNR26nv9zrnvPOfee7Xk79zkXcf3g4bmv52ye2/O7z32u+74e8Y4FM6u6SRHDAH5XhKBChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChKFChBH7P9h5Z91qGjX6Xo6IGur3UN2XWzhyyyuvvkRTpz/GEdGZ0y303pr1HMVDrHdI6X2jaObs6VQ6ZnTPq+q5xTRggPtuDSoZREufqQicO9mXRJ/iJFYhS5dXcivF8OHDkhfGNeUVc6mkpISjFOn6FCWxCSkuLqay+U9xFGRB4mK5BkLSgT6hb3ERm5DpM6fS4CF3ckR06dJlbhFNmTqJhg2/i6PwwbQ0bsKDHHnPDgP6hL7FRWxCli6v4JbH7p1N3CIqKiqixcsWchQ+i5bM55ZH/Y5d3PKw+xYlsQi5e+QIemTyRI6Ifjt6nPY2HeTIo68ppVAwHZVXzOOIqLOzk7Zt3Z58N6Bv6GMcxCLEvtgYob8fO0EXWi/yJwlp94yghyelpIWFPVU2Ne6nf67/m3z342pAZCJyIUhpK6vKOfJGaFPjvmTbnjqWJdLSsLEThvrt3jnNuwF9jCL9ton8jFOemJxMbQ0YmTc6byTbtpBpMxKjeXBqNBcKpiEkDAbckceajyfbePffoegj+ho1kQvpNV35RuaF8xeTzxPDwIHFNKeP1DgfcG4kDAZ7ANhxHNNWpEKQys6YNY0jpLptPSPU0GvaCnGhZl/gxoZUZgfsGH11mX6nI1Ih88rnBEborp/2cCsFnif+jKd0TGLNMD61ZsgXJAhIFAwnT/xJZ0+f48gDMT43oK/oc5REKqTXdGXdDQDPEzvjCWPlbicI6c4N4p62IhOCEYrRbsBIPPX3GY6C2BlPeWVZcjMwX5AYIEEw3LzZlViI/sJREHyO4wb02UX63ReRCSmvzHx3GPBcOfVXShY2AWeVzeAod5AYIEEwHNx3mK5evcZREHyO437svrskEiEY3bPKnuSo/xFqCHPqyGaq9GMfR98LuUNzIRIhuCD+re7+RqihoX433bp1iyNvOyOfWsUDD90f2EhEZnfk0FGO0oPj+DkD+h7VsyQyIX4yjVDQdukyHTnczJFHPhdl0eIF3PJAZnf79m2O0oPjdgb4vxFib3VnM0INP1vi5i6cndN2RrqaSzaDAdg/h79DFNVE50LsClzzkWPJGjr+cple51paA2uSXKuJ9kaiqXukO5f9Av46CYiimuj0Sw4YoXXfbQxclEI5dOBXWvvW+xz1z4cfrwts8xfK1Y5rVP30CurqSqXFYeP0DrFHaBhkW020ay5hEEU10akQF5W3bKuJrh7CrquJzqYsjNDarz/nyFt7rHrt7Z6t9lyYt3AOVb/4LEfetnnNCys56g0e/JvqPgvsXX20/hM6cfwkR9kzYeI4WrX6dY48ap5fmdyZdoEzITUrqqnm5WqOcpv7bTBFbd6yIbAx+eYba3rtFBvw5bd1H6zliOjKlXaqrlqRMd1NB+Ru/nZDoIZT+0Ud1W6s4yhcnExZdlUQ2ClsLqRbk/RXTbSnq6Zd+/OSAfB727+v58jDZTXRyZ9qVwWRuh7YG9wfyhVbaF/VRHsjERQyGIC9JnFZTXQipNcIbdxfcKoIoUg7DX1VE7FV799IxFri5B+pGkc+2JVM4CppCF2IXRUE5ksMhQCh9TsaOPJIV02sWBLcKsm0iZkt27bu4JaHq2pi6ELsqiAeqNlulWTixx92csvDriai7a+5gGy3SjJh36GuqomhCwnzgWqDgpa/xAr81US7sohpJqz0FHdoo3W3uZi2QhViVwVBoQ9UG3vEm2oiXmj78X89NQzwDUc/LqqJRWNHj3+X2wWDETN06BBqT0xTeGFEf1X7DR8Nh9aW8/T4tEepo70jeY7r165Ty9lWGplYBGLKMudua7tMGz7dlFiQ3uTfLJz2Kx00ZmwpdXd395wHC92+1kP5oP/lkTCcpL1K/qgQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQYagQURD9B1WpU64ZforRAAAAAElFTkSuQmCC",s=[{id:"14ea5584-07e3-11e4-bf19-842b2b6cfe1b",base64:r,name:"First Last 1",twitter:"templarian",github:"Templarian",website:"http://templarian.com",iconCount:1e3},{id:"24ea5584-07e3-11e4-bf19-842b2b6cfe1b",base64:r,name:"First Last 2",twitter:"templarian",github:"Templarian",website:"http://templarian.com",iconCount:0},{id:"34ea5584-07e3-11e4-bf19-842b2b6cfe1b",base64:r,name:"First Last 3",twitter:"templarian",github:"Templarian",website:"http://templarian.com",iconCount:9999}].map((e=>(new i.K).from(e)));var o=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},l=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,i,r=[(0,a.uA)({selector:"x-pg-input-user-select-basic",template:'<div class="example"> <pg-input-user-select part="input"></pg-input-user-select> <code>onchange: <span part="value"></span></code> </div>'})],c=[],d=HTMLElement,u=[],p=[],h=[],f=[];(class extends d{static{t=this}static{const s="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],i=[(0,a.eS)()],o(null,null,n,{kind:"field",name:"$input",static:!1,private:!1,access:{has:e=>"$input"in e,get:e=>e.$input,set:(e,t)=>{e.$input=t}},metadata:s},u,p),o(null,null,i,{kind:"field",name:"$value",static:!1,private:!1,access:{has:e=>"$value"in e,get:e=>e.$value,set:(e,t)=>{e.$value=t}},metadata:s},h,f),o(null,e={value:t},r,{kind:"class",name:t.name,metadata:s},null,c),t=e.value,s&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s}),l(t,c)}$input=l(this,u,void 0);$value=(l(this,p),l(this,h,void 0));connectedCallback(){this.$input.options=s,this.$input.addEventListener("change",this.handleChange.bind(this))}handleChange(e){const{name:t,value:n}=e.detail;this.$value.innerText=`${t} - ${n}`}constructor(){super(...arguments),l(this,f)}})})()},305:(e,t,n)=>{"use strict";var a=n(3822);var i=n(9367),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o,l,c,d,u,p,h=[(0,a.uA)({selector:"x-pg-scroll-basic",template:'<p> Content <span part="scrollCount">0</span> <button part="small">10 Items</button> <button part="large">500 Items</button> Overflow = <code part="overflow">visible</code> </p> <div class="example" part="overflowContainer"> <pg-scroll part="scroll"> <div part="scrollList" style="display:flex;flex-direction:column"></div> </pg-scroll> </div>',style:i.A})],f=[],g=HTMLElement,m=[],v=[],b=[],y=[],w=[],x=[],k=[],E=[],C=[],$=[],A=[],S=[],F=[],L=[];(class extends g{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(g[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],o=[(0,a.eS)()],l=[(0,a.eS)()],c=[(0,a.eS)()],d=[(0,a.eS)()],u=[(0,a.eS)()],p=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"$scroll",static:!1,private:!1,access:{has:e=>"$scroll"in e,get:e=>e.$scroll,set:(e,t)=>{e.$scroll=t}},metadata:i},m,v),r(null,null,o,{kind:"field",name:"$scrollList",static:!1,private:!1,access:{has:e=>"$scrollList"in e,get:e=>e.$scrollList,set:(e,t)=>{e.$scrollList=t}},metadata:i},b,y),r(null,null,l,{kind:"field",name:"$scrollCount",static:!1,private:!1,access:{has:e=>"$scrollCount"in e,get:e=>e.$scrollCount,set:(e,t)=>{e.$scrollCount=t}},metadata:i},w,x),r(null,null,c,{kind:"field",name:"$small",static:!1,private:!1,access:{has:e=>"$small"in e,get:e=>e.$small,set:(e,t)=>{e.$small=t}},metadata:i},k,E),r(null,null,d,{kind:"field",name:"$large",static:!1,private:!1,access:{has:e=>"$large"in e,get:e=>e.$large,set:(e,t)=>{e.$large=t}},metadata:i},C,$),r(null,null,u,{kind:"field",name:"$overflow",static:!1,private:!1,access:{has:e=>"$overflow"in e,get:e=>e.$overflow,set:(e,t)=>{e.$overflow=t}},metadata:i},A,S),r(null,null,p,{kind:"field",name:"$overflowContainer",static:!1,private:!1,access:{has:e=>"$overflowContainer"in e,get:e=>e.$overflowContainer,set:(e,t)=>{e.$overflowContainer=t}},metadata:i},F,L),r(null,e={value:t},h,{kind:"class",name:t.name,metadata:i},null,f),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,f)}$scroll=s(this,m,void 0);$scrollList=(s(this,v),s(this,b,void 0));$scrollCount=(s(this,y),s(this,w,void 0));$small=(s(this,x),s(this,k,void 0));$large=(s(this,E),s(this,C,void 0));$overflow=(s(this,$),s(this,A,void 0));$overflowContainer=(s(this,S),s(this,F,void 0));connectedCallback(){const e=[];var t=0,n=0;const a=()=>{this.$scroll.height=44*e.length};function i(){e.splice(0,e.length);for(var t=0;t<10;t++)e.push(`Test Item ${t}`);a()}this.$small.addEventListener("click",i),this.$large.addEventListener("click",(function(){e.splice(0,e.length);for(var t=0;t<500;t++)e.push(`Test Item ${t}`);a()}));var r=[];const s=e=>{for(var t=r.length;t<e;t++){var n=document.createElement("button");n.innerText="Placeholder",n.style.height="44px",this.$scrollList.appendChild(n),r.push(n)}r.forEach(((t,n)=>{t.style.display=n<e-1?"":"none"}))};this.$scroll.addEventListener("calculate",(a=>{var{offsetY:i,height:o,viewHeight:l}=a.detail,c=Math.ceil(l/44)+1,d=Math.floor(i/44);s(c),t===d&&n===l||(this.$scrollCount.innerText=`${d}, ${c}`,r.forEach(((t,n)=>{t.innerText=e[n+d]})),t=d,n=l),this.$scrollList.style.transform=`translateY(${-1*i%44}px)`}));(e=>{"auto"===e?(this.$overflowContainer.style.overflow="auto",this.$overflowContainer.style.height="300px",this.$overflow.innerText="auto"):(this.$overflowContainer.style.overflow="visible",this.$overflowContainer.style.height="",this.$overflow.innerText="visible")})("auto"),i()}constructor(){super(...arguments),s(this,L)}})})()},309:(e,t,n)=>{"use strict";var a=n(3822);var i=n(6119),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o,l,c,d,u,p,h,f=[(0,a.uA)({selector:"pg-button",style:i.A,template:'<button part="button"> <slot></slot> </button>'})],g=[],m=HTMLElement,v=[],b=[],y=[],w=[],x=[],k=[],E=[],C=[],$=[],A=[],S=[],F=[],L=[],O=[],T=[],D=[];(class extends m{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;n=[(0,a.kv)(a._w)],o=[(0,a.kv)(a._w)],l=[(0,a.kv)(a._w)],c=[(0,a.kv)(a._w)],d=[(0,a.kv)(a._w)],u=[(0,a.eS)()],p=[(0,a.eS)()],h=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"active",static:!1,private:!1,access:{has:e=>"active"in e,get:e=>e.active,set:(e,t)=>{e.active=t}},metadata:i},v,b),r(null,null,o,{kind:"field",name:"block",static:!1,private:!1,access:{has:e=>"block"in e,get:e=>e.block,set:(e,t)=>{e.block=t}},metadata:i},y,w),r(null,null,l,{kind:"field",name:"start",static:!1,private:!1,access:{has:e=>"start"in e,get:e=>e.start,set:(e,t)=>{e.start=t}},metadata:i},x,k),r(null,null,c,{kind:"field",name:"center",static:!1,private:!1,access:{has:e=>"center"in e,get:e=>e.center,set:(e,t)=>{e.center=t}},metadata:i},E,C),r(null,null,d,{kind:"field",name:"end",static:!1,private:!1,access:{has:e=>"end"in e,get:e=>e.end,set:(e,t)=>{e.end=t}},metadata:i},$,A),r(null,null,u,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:i},S,F),r(null,null,p,{kind:"field",name:"$number",static:!1,private:!1,access:{has:e=>"$number"in e,get:e=>e.$number,set:(e,t)=>{e.$number=t}},metadata:i},L,O),r(null,null,h,{kind:"field",name:"$bar",static:!1,private:!1,access:{has:e=>"$bar"in e,get:e=>e.$bar,set:(e,t)=>{e.$bar=t}},metadata:i},T,D),r(null,e={value:t},f,{kind:"class",name:t.name,metadata:i},null,g),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,g)}active=s(this,v,!1);block=(s(this,b),s(this,y,!1));start=(s(this,w),s(this,x,!1));center=(s(this,k),s(this,E,!1));end=(s(this,C),s(this,$,!1));$button=(s(this,A),s(this,S,void 0));$number=(s(this,F),s(this,L,void 0));$bar=(s(this,O),s(this,T,void 0));connectedCallback(){this.$button.addEventListener("click",(e=>{e.stopPropagation(),this.dispatchEvent(new CustomEvent("click"))}))}render(e){e.active&&this.$button.classList.toggle("active",this.active),e.start&&this.$button.classList.toggle("start",this.start),e.end&&this.$button.classList.toggle("end",this.end),e.center&&this.$button.classList.toggle("center",this.center),e.block&&this.$button.classList.toggle("block",this.block)}getBoundingClientRect(){return this.$button.getBoundingClientRect()}constructor(){super(...arguments),s(this,D)}})})()},361:(e,t,n)=>{"use strict";var a=n(3822);var i=n(7915);const r=e=>{var t=document.createElement("textarea");t.setAttribute("style","position:fixed;opacity:0;top:100px;left:100px;"),t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),setTimeout((function(){document.body.removeChild(t)}),1500)};var s=n(7791),o=n(3942),l=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},c=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,d,u,p,h,f,g,m,v,b,y,w,x,k,E,C,$,A,S,F,L,O,T,D,j,I,P,M=[(0,a.uA)({selector:"pg-menu-icon",style:i.A,template:'<div part="contextMenu"> <a part="newTab" href="">Open icon in New Tab</a> <button part="copyIconName">Copy Icon Name</button> <div class="section">Download PNG</div> <div class="group"> <button part="png24">24</button> <button part="png36">36</button> <button part="png48">48</button> <button part="png96">96</button> </div> <div class="row" style="margin-top:.25rem"> <div class="group"> <button part="pngBlack"><span class="black"></span></button> <button part="pngWhite"><span class="white"></span></button> <button part="pngColor"> <svg viewBox="0 0 24 24"> <path fill="#fff" d="M19.35,11.72L17.22,13.85L15.81,12.43L8.1,20.14L3.5,22L2,20.5L3.86,15.9L11.57,8.19L10.15,6.78L12.28,4.65L19.35,11.72M16.76,3C17.93,1.83 19.83,1.83 21,3C22.17,4.17 22.17,6.07 21,7.24L19.08,9.16L14.84,4.92L16.76,3M5.56,17.03L4.5,19.5L6.97,18.44L14.4,11L13,9.6L5.56,17.03Z"/> <path fill="currentColor" d="M12.97 8L15.8 10.85L7.67 19L3.71 20.68L3.15 20.11L4.84 16.15L12.97 8Z"/> </svg> </button> </div> <div class="group"> <button part="pngDownload" class="download"> PNG <svg viewBox="0 0 24 24"> <path fill="currentColor" d="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"/> </svg> </button> </div> </div> <div class="section">SVG</div> <div class="row" style="margin-bottom:.25rem"> <div class="group"> <button part="svgBlack" class="active"><span class="black"></span></button> <button part="svgWhite"><span class="white"></span></button> <button part="svgColor"> <svg viewBox="0 0 24 24"> <path fill="#fff" d="M19.35,11.72L17.22,13.85L15.81,12.43L8.1,20.14L3.5,22L2,20.5L3.86,15.9L11.57,8.19L10.15,6.78L12.28,4.65L19.35,11.72M16.76,3C17.93,1.83 19.83,1.83 21,3C22.17,4.17 22.17,6.07 21,7.24L19.08,9.16L14.84,4.92L16.76,3M5.56,17.03L4.5,19.5L6.97,18.44L14.4,11L13,9.6L5.56,17.03Z"/> <path fill="currentColor" d="M12.97 8L15.8 10.85L7.67 19L3.71 20.68L3.15 20.11L4.84 16.15L12.97 8Z"/> </svg> </button> </div> <div class="group"> <button part="svgDownload" class="download"> SVG <svg viewBox="0 0 24 24"> <path fill="currentColor" d="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"/> </svg> </button> </div> </div> <button part="copySvgInline">Copy HTML SVG Inline</button> <button part="copySvgFile">Copy SVG File Contents</button> <button part="copySvgPath">Copy SVG Path Data</button> <div class="section">Desktop Font</div> <button part="copyUnicode">Copy Unicode Character</button> <button part="copyCodepoint">Copy Codepoint</button> <div class="divider"></div> <button part="copyPreview">Copy GitHub Preview</button> <div part="color"> <pg-input-hex-rgb part="colorHexRgb"></pg-input-hex-rgb> <pg-color part="colorPicker"></pg-color> </div> </div>'})],B=[],z=HTMLElement,H=[],R=[],N=[],V=[],_=[],K=[],Y=[],q=[],U=[],G=[],Q=[],W=[],Z=[],J=[],X=[],ee=[],te=[],ne=[],ae=[],ie=[],re=[],se=[],oe=[],le=[],ce=[],de=[],ue=[],pe=[],he=[],fe=[],ge=[],me=[],ve=[],be=[],ye=[],we=[],xe=[],ke=[],Ee=[],Ce=[],$e=[],Ae=[],Se=[],Fe=[],Le=[],Oe=[],Te=[],De=[],je=[],Ie=[],Pe=[],Me=[],Be=[],ze=[];(class extends z{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(z[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],d=[(0,a.eS)()],u=[(0,a.eS)()],p=[(0,a.eS)()],h=[(0,a.eS)()],f=[(0,a.eS)()],g=[(0,a.eS)()],m=[(0,a.eS)()],v=[(0,a.eS)()],b=[(0,a.eS)()],y=[(0,a.eS)()],w=[(0,a.eS)()],x=[(0,a.eS)()],k=[(0,a.eS)()],E=[(0,a.eS)()],C=[(0,a.eS)()],$=[(0,a.eS)()],A=[(0,a.eS)()],S=[(0,a.eS)()],F=[(0,a.eS)()],L=[(0,a.eS)()],O=[(0,a.eS)()],T=[(0,a.eS)()],D=[(0,a.eS)()],j=[(0,a.Yr)("store")],I=[(0,a.kv)()],P=[(0,a.kv)()],l(null,null,n,{kind:"field",name:"$contextMenu",static:!1,private:!1,access:{has:e=>"$contextMenu"in e,get:e=>e.$contextMenu,set:(e,t)=>{e.$contextMenu=t}},metadata:i},H,R),l(null,null,d,{kind:"field",name:"$newTab",static:!1,private:!1,access:{has:e=>"$newTab"in e,get:e=>e.$newTab,set:(e,t)=>{e.$newTab=t}},metadata:i},N,V),l(null,null,u,{kind:"field",name:"$copyIconName",static:!1,private:!1,access:{has:e=>"$copyIconName"in e,get:e=>e.$copyIconName,set:(e,t)=>{e.$copyIconName=t}},metadata:i},_,K),l(null,null,p,{kind:"field",name:"$pngBlack",static:!1,private:!1,access:{has:e=>"$pngBlack"in e,get:e=>e.$pngBlack,set:(e,t)=>{e.$pngBlack=t}},metadata:i},Y,q),l(null,null,h,{kind:"field",name:"$pngWhite",static:!1,private:!1,access:{has:e=>"$pngWhite"in e,get:e=>e.$pngWhite,set:(e,t)=>{e.$pngWhite=t}},metadata:i},U,G),l(null,null,f,{kind:"field",name:"$pngColor",static:!1,private:!1,access:{has:e=>"$pngColor"in e,get:e=>e.$pngColor,set:(e,t)=>{e.$pngColor=t}},metadata:i},Q,W),l(null,null,g,{kind:"field",name:"$png24",static:!1,private:!1,access:{has:e=>"$png24"in e,get:e=>e.$png24,set:(e,t)=>{e.$png24=t}},metadata:i},Z,J),l(null,null,m,{kind:"field",name:"$png36",static:!1,private:!1,access:{has:e=>"$png36"in e,get:e=>e.$png36,set:(e,t)=>{e.$png36=t}},metadata:i},X,ee),l(null,null,v,{kind:"field",name:"$png48",static:!1,private:!1,access:{has:e=>"$png48"in e,get:e=>e.$png48,set:(e,t)=>{e.$png48=t}},metadata:i},te,ne),l(null,null,b,{kind:"field",name:"$png96",static:!1,private:!1,access:{has:e=>"$png96"in e,get:e=>e.$png96,set:(e,t)=>{e.$png96=t}},metadata:i},ae,ie),l(null,null,y,{kind:"field",name:"$pngDownload",static:!1,private:!1,access:{has:e=>"$pngDownload"in e,get:e=>e.$pngDownload,set:(e,t)=>{e.$pngDownload=t}},metadata:i},re,se),l(null,null,w,{kind:"field",name:"$svgBlack",static:!1,private:!1,access:{has:e=>"$svgBlack"in e,get:e=>e.$svgBlack,set:(e,t)=>{e.$svgBlack=t}},metadata:i},oe,le),l(null,null,x,{kind:"field",name:"$svgWhite",static:!1,private:!1,access:{has:e=>"$svgWhite"in e,get:e=>e.$svgWhite,set:(e,t)=>{e.$svgWhite=t}},metadata:i},ce,de),l(null,null,k,{kind:"field",name:"$svgColor",static:!1,private:!1,access:{has:e=>"$svgColor"in e,get:e=>e.$svgColor,set:(e,t)=>{e.$svgColor=t}},metadata:i},ue,pe),l(null,null,E,{kind:"field",name:"$svgDownload",static:!1,private:!1,access:{has:e=>"$svgDownload"in e,get:e=>e.$svgDownload,set:(e,t)=>{e.$svgDownload=t}},metadata:i},he,fe),l(null,null,C,{kind:"field",name:"$copySvgInline",static:!1,private:!1,access:{has:e=>"$copySvgInline"in e,get:e=>e.$copySvgInline,set:(e,t)=>{e.$copySvgInline=t}},metadata:i},ge,me),l(null,null,$,{kind:"field",name:"$copySvgFile",static:!1,private:!1,access:{has:e=>"$copySvgFile"in e,get:e=>e.$copySvgFile,set:(e,t)=>{e.$copySvgFile=t}},metadata:i},ve,be),l(null,null,A,{kind:"field",name:"$copySvgPath",static:!1,private:!1,access:{has:e=>"$copySvgPath"in e,get:e=>e.$copySvgPath,set:(e,t)=>{e.$copySvgPath=t}},metadata:i},ye,we),l(null,null,S,{kind:"field",name:"$copyUnicode",static:!1,private:!1,access:{has:e=>"$copyUnicode"in e,get:e=>e.$copyUnicode,set:(e,t)=>{e.$copyUnicode=t}},metadata:i},xe,ke),l(null,null,F,{kind:"field",name:"$copyCodepoint",static:!1,private:!1,access:{has:e=>"$copyCodepoint"in e,get:e=>e.$copyCodepoint,set:(e,t)=>{e.$copyCodepoint=t}},metadata:i},Ee,Ce),l(null,null,L,{kind:"field",name:"$copyPreview",static:!1,private:!1,access:{has:e=>"$copyPreview"in e,get:e=>e.$copyPreview,set:(e,t)=>{e.$copyPreview=t}},metadata:i},$e,Ae),l(null,null,O,{kind:"field",name:"$color",static:!1,private:!1,access:{has:e=>"$color"in e,get:e=>e.$color,set:(e,t)=>{e.$color=t}},metadata:i},Se,Fe),l(null,null,T,{kind:"field",name:"$colorPicker",static:!1,private:!1,access:{has:e=>"$colorPicker"in e,get:e=>e.$colorPicker,set:(e,t)=>{e.$colorPicker=t}},metadata:i},Le,Oe),l(null,null,D,{kind:"field",name:"$colorHexRgb",static:!1,private:!1,access:{has:e=>"$colorHexRgb"in e,get:e=>e.$colorHexRgb,set:(e,t)=>{e.$colorHexRgb=t}},metadata:i},Te,De),l(null,null,j,{kind:"field",name:"store",static:!1,private:!1,access:{has:e=>"store"in e,get:e=>e.store,set:(e,t)=>{e.store=t}},metadata:i},je,Ie),l(null,null,I,{kind:"field",name:"currentIndex",static:!1,private:!1,access:{has:e=>"currentIndex"in e,get:e=>e.currentIndex,set:(e,t)=>{e.currentIndex=t}},metadata:i},Pe,Me),l(null,null,P,{kind:"field",name:"icon",static:!1,private:!1,access:{has:e=>"icon"in e,get:e=>e.icon,set:(e,t)=>{e.icon=t}},metadata:i},Be,ze),l(null,e={value:t},M,{kind:"class",name:t.name,metadata:i},null,B),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),c(t,B)}$contextMenu=c(this,H,void 0);$newTab=(c(this,R),c(this,N,void 0));$copyIconName=(c(this,V),c(this,_,void 0));$pngBlack=(c(this,K),c(this,Y,void 0));$pngWhite=(c(this,q),c(this,U,void 0));$pngColor=(c(this,G),c(this,Q,void 0));$png24=(c(this,W),c(this,Z,void 0));$png36=(c(this,J),c(this,X,void 0));$png48=(c(this,ee),c(this,te,void 0));$png96=(c(this,ne),c(this,ae,void 0));$pngDownload=(c(this,ie),c(this,re,void 0));$svgBlack=(c(this,se),c(this,oe,void 0));$svgWhite=(c(this,le),c(this,ce,void 0));$svgColor=(c(this,de),c(this,ue,void 0));$svgDownload=(c(this,pe),c(this,he,void 0));$copySvgInline=(c(this,fe),c(this,ge,void 0));$copySvgFile=(c(this,me),c(this,ve,void 0));$copySvgPath=(c(this,be),c(this,ye,void 0));$copyUnicode=(c(this,we),c(this,xe,void 0));$copyCodepoint=(c(this,ke),c(this,Ee,void 0));$copyPreview=(c(this,Ce),c(this,$e,void 0));$color=(c(this,Ae),c(this,Se,void 0));$colorPicker=(c(this,Fe),c(this,Le,void 0));$colorHexRgb=(c(this,Oe),c(this,Te,void 0));store=(c(this,De),c(this,je,new Map([["cachePngColor","#000000"],["cachePngSize",24],["cacheSvgColor","#000000"]])));color=(c(this,Ie),"svg");currentIndex=c(this,Pe,0);icon=(c(this,Me),c(this,Be,new o.I));connectedCallback(){this.$copyIconName.addEventListener("click",this.handleCopyIconName.bind(this)),this.$svgBlack.addEventListener("click",(()=>{this.store.set("cacheSvgColor","#000000"),this.render()})),this.$svgWhite.addEventListener("click",(()=>{this.store.set("cacheSvgColor","#FFFFFF"),this.render()}));let e=!1;this.$svgColor.addEventListener("click",(()=>{if(e)return void(e=!1);this.color="svg",this.$colorPicker.value=this.store.get("cacheSvgColor"),this.$colorHexRgb.value=this.store.get("cacheSvgColor");const t=this;this.$color.style.visibility="visible";let n=!0;this.$color.addEventListener("mouseenter",(()=>n=!1)),this.$color.addEventListener("mouseleave",(()=>n=!0)),document.addEventListener("mousedown",(function a(i){n&&(t.$color.style.visibility="hidden",document.removeEventListener("mousedown",a),e=!0,t.render(),setTimeout((()=>e=!1),500))}))})),this.$pngBlack.addEventListener("click",(()=>{this.store.set("cachePngColor","#000000"),this.render()})),this.$pngWhite.addEventListener("click",(()=>{this.store.set("cachePngColor","#FFFFFF"),this.render()}));let t=!1;this.$pngColor.addEventListener("click",(()=>{if(t)return void(t=!1);this.color="png",this.$colorPicker.value=this.store.get("cachePngColor"),this.$colorHexRgb.value=this.store.get("cachePngColor");const e=this;this.$color.style.visibility="visible";let n=!0;this.$color.addEventListener("mouseenter",(()=>n=!1)),this.$color.addEventListener("mouseleave",(()=>n=!0)),document.addEventListener("mousedown",(function a(i){n&&(e.$color.style.visibility="hidden",document.removeEventListener("mousedown",a),t=!0,e.render(),setTimeout((()=>t=!1),500))}))})),this.$png24.addEventListener("click",(()=>{this.store.set("cachePngSize",24),this.render()})),this.$png36.addEventListener("click",(()=>{this.store.set("cachePngSize",36),this.render()})),this.$png48.addEventListener("click",(()=>{this.store.set("cachePngSize",48),this.render()})),this.$png96.addEventListener("click",(()=>{this.store.set("cachePngSize",96),this.render()})),this.$svgDownload.addEventListener("click",(()=>{alert(`SVG ${this.store.get("cacheSvgColor")}`)})),this.$pngDownload.addEventListener("click",(()=>{alert(`SVG ${this.store.get("cachePngSize")} ${this.store.get("cachePngColor")}`)})),this.$copySvgInline.addEventListener("click",(()=>{const e=this.icon;r(function(e){return`<svg viewBox="0 0 24 24"><path fill="currentColor" d="${e.data}"/></svg>`}(e)),this.hideContextMenu(),(0,s.Zt)(`Copied inline SVG "${e.name}" to clipboard.`)})),this.$copySvgFile.addEventListener("click",(()=>{})),this.$copySvgPath.addEventListener("click",(()=>{})),this.$copyUnicode.addEventListener("click",(()=>{})),this.$copyCodepoint.addEventListener("click",(()=>{})),this.$copyPreview.addEventListener("click",(()=>{}))}handleCopyIconName(){const e=this.icon;e&&e.name&&(r(e.name),(0,s.Zt)(`Copied "${e.name}" to clipboard.`)),this.hideContextMenu()}hideContextMenu(){}showContextMenu(e,t,n){this.dispatchEvent(new CustomEvent("closemenu"))}render(){const e=this.store.get("cacheSvgColor"),t=this.store.get("cachePngColor"),n=this.store.get("cachePngSize");this.$svgBlack.classList.toggle("active","#000000"===e),this.$svgWhite.classList.toggle("active","#FFFFFF"===e),this.$svgColor.classList.toggle("active","#000000"!==e&&"#FFFFFF"!==e),this.$pngBlack.classList.toggle("active","#000000"===t),this.$pngWhite.classList.toggle("active","#FFFFFF"===t),this.$pngColor.classList.toggle("active","#000000"!==t&&"#FFFFFF"!==t),this.$png24.classList.toggle("active",24===n),this.$png36.classList.toggle("active",36===n),this.$png48.classList.toggle("active",48===n),this.$png96.classList.toggle("active",96===n),this.$colorPicker.addEventListener("select",this.handleColorSelect.bind(this)),this.$colorHexRgb.addEventListener("change",this.handleHexRgbChange.bind(this)),this.syncEyedropper()}handleColorSelect(e){switch(this.color){case"svg":this.store.set("cacheSvgColor",e.detail.hex);break;case"png":this.store.set("cachePngColor",e.detail.hex)}this.$colorHexRgb.value=e.detail.hex,this.syncEyedropper()}handleHexRgbChange(e){switch(this.color){case"svg":this.store.set("cacheSvgColor",e.detail.hex);break;case"png":this.store.set("cachePngColor",e.detail.hex)}this.$colorPicker.value=e.detail.hex,this.syncEyedropper()}syncEyedropper(){const e=this.store.get("cachePngColor");this.$pngColor.style.color="#000000"!==e&&"#FFFFFF"!==e?e:"transparent";const t=this.store.get("cacheSvgColor");this.$svgColor.style.color="#000000"!==t&&"#FFFFFF"!==t?t:"transparent"}constructor(){super(...arguments),c(this,ze)}})})()},373:(e,t,n)=>{"use strict";n.d(t,{C1:()=>o,M3:()=>p,NS:()=>s,Rj:()=>i,SK:()=>u,SV:()=>f,TC:()=>h,_N:()=>c,a$:()=>r,fF:()=>d,fk:()=>l,wv:()=>a});const a="top",i="top-start",r="top-end",s="right",o="right-start",l="right-end",c="bottom",d="bottom-start",u="bottom-end",p="left",h="left-start",f="left-end"},529:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,":host {\n display: contents;\n}\n\n[part=button] {\n font-family: var(--pg-font-family);\n background: var(--pg-input-select-background, #FFFFFF);\n text-align: left;\n display: grid;\n grid-template-rows: auto;\n grid-template-columns: 100% 0;\n border: 1px solid var(--pg-input-select-border-color, #453C4F);\n border-radius: 0.25rem;\n padding: 0;\n width: 100%;\n font-size: 1rem;\n outline: 0;\n}\n\n[part=button]:focus {\n box-shadow: 0 0 0 3px rgba(79, 143, 249, 0.5);\n}\n\n[part=label] {\n grid-row: 1;\n grid-column: 1;\n padding: 0.5rem 0.75rem;\n font-size: var(--pg-input-select-font-size, 1rem);\n}\n\n[part=chevron] {\n grid-row: 1;\n grid-column: 2;\n pointer-events: none;\n width: 1.5rem;\n height: 1.5rem;\n align-self: center;\n transform: translate(-2rem, 0);\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},743:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(3822);var i=n(1219),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const o=(()=>{let e,t,n,o,l,c,d,u,p=[(0,a.uA)({selector:"pg-menu-item",style:i.A,template:'<button part="label"></button>'})],h=[],f=HTMLElement,g=[],m=[],v=[],b=[],y=[],w=[],x=[],k=[],E=[],C=[],$=[],A=[];(class extends f{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(f[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],o=[(0,a.kv)()],l=[(0,a.kv)()],c=[(0,a.kv)()],d=[(0,a.kv)()],u=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"index",static:!1,private:!1,access:{has:e=>"index"in e,get:e=>e.index,set:(e,t)=>{e.index=t}},metadata:i},g,m),r(null,null,o,{kind:"field",name:"label",static:!1,private:!1,access:{has:e=>"label"in e,get:e=>e.label,set:(e,t)=>{e.label=t}},metadata:i},v,b),r(null,null,l,{kind:"field",name:"checked",static:!1,private:!1,access:{has:e=>"checked"in e,get:e=>e.checked,set:(e,t)=>{e.checked=t}},metadata:i},y,w),r(null,null,c,{kind:"field",name:"disabled",static:!1,private:!1,access:{has:e=>"disabled"in e,get:e=>e.disabled,set:(e,t)=>{e.disabled=t}},metadata:i},x,k),r(null,null,d,{kind:"field",name:"items",static:!1,private:!1,access:{has:e=>"items"in e,get:e=>e.items,set:(e,t)=>{e.items=t}},metadata:i},E,C),r(null,null,u,{kind:"field",name:"$label",static:!1,private:!1,access:{has:e=>"$label"in e,get:e=>e.$label,set:(e,t)=>{e.$label=t}},metadata:i},$,A),r(null,e={value:t},p,{kind:"class",name:t.name,metadata:i},null,h),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})}static delegatesFocus=!0;index=s(this,g,void 0);label=(s(this,m),s(this,v,""));checked=(s(this,b),s(this,y,!1));disabled=(s(this,w),s(this,x,!1));items=(s(this,k),s(this,E,[]));$label=(s(this,C),s(this,$,void 0));render(e){e.label&&(this.$label.textContent=this.label),e.disabled&&(this.$label.disabled=this.disabled),e.checked&&this.$label.classList.toggle("checked",this.checked),e.checked&&!0===this.checked&&this.dispatchEvent(new CustomEvent("hasCheck",{bubbles:!0}))}connectedCallback(){this.$label.addEventListener("click",(()=>{this.dispatchEvent(new CustomEvent("select",{detail:{index:this.index}}))})),this.$label.addEventListener("keydown",(e=>{switch(e.key){case"ArrowDown":this.dispatchEvent(new CustomEvent("down",{detail:{index:this.index}})),e.preventDefault();break;case"ArrowUp":this.dispatchEvent(new CustomEvent("up",{detail:{index:this.index}})),e.preventDefault();break;case"Escape":this.dispatchEvent(new CustomEvent("close")),e.preventDefault()}}))}focus(){this.$label.focus()}getHeight(){return this.$label.getBoundingClientRect().height}constructor(){super(...arguments),s(this,A)}static{s(t,h)}});return t})()},944:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,s,o=[(0,a.uA)({selector:"x-pg-button-toggle-basic",template:'<div class="example"> <div>click to toggle state</div> <pg-button-toggle part="button"> <pg-icon slot="inactive" path="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"></pg-icon> <pg-icon slot="active" path="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"></pg-icon> </pg-button-toggle> <div> <code>onclick: <code part="value"></code></code> </div> </div>'})],l=[],c=HTMLElement,d=[],u=[],p=[],h=[];(class extends c{static{t=this}static{const f="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],s=[(0,a.eS)()],i(null,null,n,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:f},d,u),i(null,null,s,{kind:"field",name:"$value",static:!1,private:!1,access:{has:e=>"$value"in e,get:e=>e.$value,set:(e,t)=>{e.$value=t}},metadata:f},p,h),i(null,e={value:t},o,{kind:"class",name:t.name,metadata:f},null,l),t=e.value,f&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:f}),r(t,l)}$button=r(this,d,void 0);$value=(r(this,u),r(this,p,void 0));connectedCallback(){this.$button.addEventListener("click",this.handleClick.bind(this))}handleClick(e){const{active:t}=e.detail;this.$value.textContent=`${t}`}constructor(){super(...arguments),r(this,h)}})})()},945:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,":host {\n display: block;\n color: #453C4F;\n}\n\nh1 {\n font-size: 2rem;\n margin-top: 1rem;\n margin-bottom: 0.75rem;\n}\n\nh2 {\n font-size: 1.75rem;\n margin-top: 2rem;\n margin-bottom: 0.75rem;\n}\n\nh2 + p {\n margin-top: 0.75rem;\n}\n\nh3 {\n font-size: 1.5rem;\n margin-top: 1.5rem;\n margin-bottom: 0.5rem;\n}\n\nh4 {\n font-size: 1.25rem;\n margin-top: 1.5rem;\n margin-bottom: 0.5rem;\n}\n\nblockquote {\n border-left: 4px solid #453C4F;\n padding: 0.25rem 0.5rem;\n margin: 1rem 0;\n}\n\nblockquote p:first-child {\n margin-top: 0;\n}\n\nblockquote p:last-child {\n margin-bottom: 0;\n}\n\nblockquote.note {\n background: #FFFF88;\n color: rgba(0, 0, 0, 0.8);\n border-color: rgba(0, 0, 0, 0.3);\n border-top: 1px solid rgba(0, 0, 0, 0.2);\n border-right: 1px solid rgba(0, 0, 0, 0.2);\n border-bottom: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 0.25rem;\n}\n\nblockquote.warning {\n background: #fff3cd;\n color: #856404;\n border-color: #856404;\n border-top: 1px solid #ffeeba;\n border-right: 1px solid #ffeeba;\n border-bottom: 1px solid #ffeeba;\n border-radius: 0.25rem;\n}\n\nblockquote.good,\nblockquote.success {\n background: #d4edda;\n color: #155724;\n border-color: #155724;\n border-top: 1px solid #c3e6cb;\n border-right: 1px solid #c3e6cb;\n border-bottom: 1px solid #c3e6cb;\n border-radius: 0.25rem;\n}\n\nblockquote.bad,\nblockquote.danger,\nblockquote.alert {\n background: #f8d7da;\n color: #721c24;\n border-color: #721c24;\n border-top: 1px solid #f5c6cb;\n border-right: 1px solid #f5c6cb;\n border-bottom: 1px solid #f5c6cb;\n border-radius: 0.25rem;\n}\n\nblockquote.information,\nblockquote.attention {\n background: #cfe2ff;\n color: #073984;\n border-color: #073984;\n border-top: 1px solid #bbd6fe;\n border-right: 1px solid #bbd6fe;\n border-bottom: 1px solid #bbd6fe;\n border-radius: 0.25rem;\n}\n\npre {\n background: #222;\n padding: 0.75rem;\n border-radius: 0.25rem;\n color: #EEE;\n overflow: auto;\n box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1) inset;\n}\n\ntable {\n border-radius: 0.25rem;\n border-spacing: 0;\n margin: 1rem 0;\n}\ntable tr th {\n text-align: left;\n padding: 0.125rem 0.25rem;\n}\ntable tr td {\n padding: 0.125rem 0.25rem;\n}\ntable tr:nth-child(1) td {\n border-top: 1px solid #453C4F;\n}\ntable tr:nth-child(1) td:first-child {\n border-radius: 0.25rem 0 0 0;\n}\ntable tr:nth-child(1) td:last-child {\n border-radius: 0 0.25rem 0 0;\n}\ntable tr td:first-child {\n border-left: 1px solid #453C4F;\n}\ntable tr:last-child td {\n border-bottom: 1px solid #453C4F;\n}\ntable tr td:last-child {\n border-right: 1px solid #453C4F;\n}\ntable tr:last-child td:first-child {\n border-radius: 0 0 0 0.25rem;\n}\ntable tr:last-child td:last-child {\n border-radius: 0 0 0.25rem 0;\n}\ntable tr:nth-child(even) {\n background: rgba(0, 0, 0, 0.05);\n}\ntable tr td:nth-child(even) {\n background: rgba(0, 0, 0, 0.05);\n}\n\np {\n font-size: 1.125rem;\n line-height: 1.75rem;\n margin: 1rem 0;\n}\n\nimg {\n border: 0.25rem solid var(--pg-markdown-img-border-color, #453C4F);\n border-radius: 0.25rem;\n}\n\na {\n color: #278eca;\n}\n\n[part=content] > ul,\n.tab-content > ul {\n list-style: square;\n padding-left: 2rem;\n line-height: 1.75rem;\n}\n\n[part=content] > ul > li > ul,\n.tab-content > ul > li > ul {\n list-style: square;\n padding-left: 1.25rem;\n line-height: 1.75rem;\n}\n\ndl dd {\n margin-left: 2rem;\n}\n\n[part=content] > p code,\n[part=content] > ul code,\n[part=content] > table code,\n.tab-content > p code,\n.tab-content > ul code,\n.tab-content > table code{\n display: inline-block;\n background: rgba(0, 0, 0, 0.05);\n padding: 0.125rem 0.25rem;\n border-radius: 0.125rem;\n text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);\n border: 1px solid rgba(69, 60, 79, 0.2);\n line-height: 1.125rem;\n}\n\n[part=content] > p a > code,\n[part=content] > ul a > code,\n[part=content] > table a > code,\n.tab-content > p a > code,\n.tab-content > ul a > code,\n.tab-content > table a > code {\n text-decoration: none;\n}\n\n[part=content] > p a:hover > code,\n[part=content] > ul a:hover > code,\n[part=content] > table a:hover > code,\n.tab-content > p a:hover > code,\n.tab-content > ul a:hover > code,\n.tab-content > table a:hover > code {\n border-color: #278eca;\n}\n\ntable code {\n transform: translateY(-1px);\n}\n\nh1 > code,\nh2 > code,\nh3 > code,\nh4 > code,\nh5 > code {\n border: 1px solid #DDD;\n padding: 0.25rem 0.5rem;\n border-radius: 0.5rem;\n background: #F1F1F1;\n}\n\np > svg.icon,\nblockquote > svg.icon,\np > a.icon > svg.icon,\nblockquote > a.icon > svg.icon,\nth > svg.icon,\nth > a.icon > svg.icon,\ntd > svg.icon,\ntd > a.icon > svg.icon {\n width: 1.5rem;\n height: 1.5rem;\n vertical-align: middle;\n}\n\np > a.button {\n display: inline-flex;\n padding: 0.25rem 0.5rem;\n background: transparent;\n border-radius: 0.25rem;\n color: #fff;\n text-decoration: none;\n font-size: 1rem;\n color: var(--pg-markdown-button-color, #453C4F);\n border: 1px solid var(--pg-markdown-button-color, #453C4F);\n}\n\np > a.button:hover {\n background: var(--pg-markdown-button-hover-background, #453C4F);\n color: var(--pg-markdown-button-hover-color, #fff);\n}\n\np > a.button:active {\n box-shadow: 0 1px 0.25rem rgba(0, 0, 0, 0.4) inset;\n}\n\np > a.button > svg.icon {\n width: 1.5rem;\n height: 1.5rem;\n margin-left: -0.125rem;\n margin-right: 0.25rem;\n align-self: center;\n}\n\n/* PrismJS 1.15.0\n/**\n * prism.js Visual Studio Code Theme\n * @author Visual Studio Code\n */\n\ncode[class*=\"language-\"],\npre[class*=\"language-\"] {\n color: #9CDCFE;\n background: none;\n font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n text-align: left;\n white-space: pre;\n word-spacing: normal;\n word-break: normal;\n word-wrap: normal;\n line-height: 1.5;\n\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n\n}\n\n/* Code blocks */\npre[class*=\"language-\"] {\n margin: .5em 0;\n overflow: auto;\n}\n\n:not(pre) > code[class*=\"language-\"],\npre[class*=\"language-\"] {\n background: #1E1E1E;\n}\n\n/* Inline code */\n:not(pre) > code[class*=\"language-\"] {\n padding: .1em;\n border-radius: .3em;\n white-space: normal;\n}\n\n.token.comment,\n.token.block-comment,\n.token.prolog,\n.token.doctype,\n.token.cdata {\n color: #608B4E;\n}\n\n.token.punctuation {\n color: #ccc;\n}\n\n.token.tag,\n.token.namespace,\n.token.deleted {\n color: #4EC9B0;\n}\n\n.token.attr-name {\n color: #9CDCFE;\n}\n\n.token.function-name {\n color: #6196cc;\n}\n\n.token.boolean {\n color: #569CD6;\n}\n.token.number {\n color: #B5CEA8;\n}\n.token.function {\n color: #DCDCAA;\n}\n\n.token.property,\n.token.constant,\n.token.symbol {\n color: #f8c555;\n}\n\n.token.class-name {\n color: #4EC9B0;\n}\n\n.token.selector,\n.token.important,\n.token.atrule,\n.token.keyword,\n.token.builtin {\n color: #C586C0;\n}\n\n.token.string,\n.token.char,\n.token.attr-value,\n.token.regex,\n.token.variable {\n color: #CE9169;\n}\n\n.token.operator {\n color: #D4D4D4;\n}\n.token.entity,\n.token.url {\n color: #67cdcc;\n}\n\n.token.important,\n.token.bold {\n font-weight: bold;\n}\n.token.italic {\n font-style: italic;\n}\n\n.token.entity {\n cursor: help;\n}\n\n.token.inserted {\n color: green;\n}\n/* TypeScript */\n.language-jsx .token:not(.keyword) + .token.keyword + .token.keyword + .token.keyword,\n.language-jsx .token:not(.keyword) + .token.keyword + .token.keyword + .token.keyword + .token.class-name + .token.keyword,\n.language-jsx .token.function-variable.function + .token.operator + .token.keyword {\n color: #569CD6;\n}\n/* JSX */\n.language-jsx .language-javascript {\n color: #9CDCFE;\n}\n.language-jsx .language-javascript .token.string {\n color: #CE9169;\n}\n.language-jsx .language-javascript .token.punctuation {\n color: #3F9CD6;\n}\n.language-jsx .language-javascript .script-punctuation + .token.punctuation + .token.punctuation {\n color: #D4D4D4;\n}\n.language-jsx .language-javascript .script-punctuation + .token.punctuation + .token.punctuation ~ .token.punctuation {\n color: #D4D4D4;\n}\n.language-jsx .language-javascript .script-punctuation + .token.punctuation + .token.punctuation ~ .token.punctuation + .token.punctuation {\n color: #3F9CD6;\n}\n\n/* Fancy Language Labels */\n\npre {\n position: relative;\n font-size: 0.875rem;\n}\n\npre code:not([class]) {\n font-size: 0.875rem;\n}\n\npre.language-text::before {\n content: 'Text';\n}\npre.language-html::before {\n content: 'HTML';\n}\npre.language-typescript::before {\n content: 'TypeScript';\n}\npre.language-javascript::before {\n content: 'JavaScript';\n}\npre.language-jsx::before {\n content: 'JavaScript / JSX';\n}\npre.language-tsx::before {\n content: 'TypeScript / TSX';\n}\npre.language-xml::before {\n content: 'XML';\n}\npre.language-css::before {\n content: 'CSS';\n}\npre.language-scss::before {\n content: 'SCSS';\n}\npre.language-php::before {\n content: 'PHP';\n}\npre.language-yaml::before {\n content: 'YAML';\n}\npre.language-groovy::before {\n content: 'Groovy';\n}\n\npre.language-text::before,\npre.language-html::before,\npre.language-typescript::before,\npre.language-javascript::before,\npre.language-tsx::before,\npre.language-jsx::before,\npre.language-xml::before,\npre.language-css::before,\npre.language-scss::before,\npre.language-php::before,\npre.language-yaml::before,\npre.language-groovy::before {\n display: var(--pg-markdown-language-display, 'block');\n font-size: 12px;\n border-radius: 0 0 0 4px;\n position: absolute;\n top: 0;\n right: 0;\n color: #453C4F;\n background: #FFF;\n padding: 2px 4px 2px 6px;\n pointer-events: none;\n border-bottom: 1px solid #000;\n border-left: 1px solid #000;\n}\n\n/* YAML */\ndiv.yaml + pre.language-yaml {\n margin-top: 0;\n}\n.yaml-preview {\n position: relative;\n background: #1e1e1e;\n color: #fff;\n padding: 0.75rem 1.25rem;\n border-radius: 0.25rem;\n margin-bottom: 1rem;\n}\n.yaml-preview code {\n border: none;\n color: #fff;\n font-size: 1rem;\n padding: 0;\n}\n.yaml-preview ul {\n list-style: none;\n padding-left: 0;\n margin-bottom: 0;\n margin-top: 0;\n}\n.yaml-preview ul li button {\n position: relative;\n top: 1px;\n background: #fff;\n color: #444;\n border: none;\n border-radius: 2px;\n padding: 0;\n width: 1rem;\n line-height: 1rem;\n font-weight: bold;\n margin-left: -1rem;\n margin-right: 0.75rem;\n cursor: pointer;\n}\n.yaml-preview ul li button:focus {\n outline: none;\n}\n.yaml-preview ul li button:hover {\n color: #000;\n background: #f1f1f1;\n}\n.yaml-preview ul li ul {\n padding-left: 1rem;\n}\n.yaml-preview ul li ul > li {\n border-left: 1px solid rgba(255, 255, 255, 0.05);\n padding-left: 0.5rem;\n}\n.yaml-preview ul > li {\n border-left: 1px solid transparent;\n padding-left: 0.5rem;\n}\n.yaml-preview .yaml-end {\n padding-left: 0.75rem;\n}\n.yaml-preview .yaml-prop {\n padding-left: 0.75rem;\n}\n.yaml-preview .yaml-type {\n color: #9cdcfe;\n}\n.yaml-preview .yaml-error {\n color: #e91e63;\n}\n.yaml-preview .yaml-key {\n color: #c586c0;\n}\n.yaml-preview .yaml-auth {\n width: 1rem;\n height: 1rem;\n fill: #d7b558;\n margin-left: -0.5rem;\n margin-right: -0.1rem;\n margin-bottom: -0.1rem;\n}\n.yaml-preview .yaml-example {\n color: #666;\n}\n.yaml-preview::before {\n content: 'JSON Preview';\n font-size: 12px;\n border-radius: 0 4px 0 4px;\n position: absolute;\n top: 0;\n right: 0;\n color: #453C4F;\n background: #fff;\n padding: 2px 4px 2px 6px;\n pointer-events: none;\n border-bottom: 1px solid #000;\n border-left: 1px solid #000;\n}\n.yaml-toolbar button {\n margin-right: 0.25rem;\n padding: 0.25rem 0.75rem 0.25rem 0.75rem;\n background: #eee;\n border: 1px solid #ddd;\n color: #444;\n border-radius: 0.25rem 0.25rem 0 0;\n cursor: pointer;\n}\n.yaml-toolbar button:focus {\n outline: none;\n}\n.yaml-toolbar button:hover {\n border-color: #bbb;\n}\n.yaml-toolbar button.active {\n margin-right: 0.25rem;\n padding: 0.25rem 0.75rem 0.25rem 0.75rem;\n background: #1e1e1e;\n border: 1px solid #1e1e1e;\n color: #fff;\n border-radius: 0.25rem 0.25rem 0 0;\n position: relative;\n z-index: 1;\n cursor: default;\n}\n.yaml-toolbar button.active:focus {\n outline: none;\n}\n.yaml-show {\n margin-top: 0;\n border-top-left-radius: 0 !important;\n}\n.yaml-hide {\n display: none;\n}\n\n/* Tabs */\n\n.tabs {\n display: grid;\n grid-template-rows: calc(2.5rem - 1px) auto;\n grid-template-columns: calc(100% - 2rem) 2rem;\n box-sizing: border-box;\n margin: 1rem 0;\n}\n\n.tabs .tabset {\n grid-row: 1;\n display: flex;\n list-style: none;\n padding: 0;\n align-self: flex-start;\n align-items: flex-start;\n margin: 0;\n box-sizing: border-box;\n}\n\n.tabs .tab-label,\n.tabs .tab-title {\n display: flex;\n}\n\n.tabs .tab-label {\n padding: 0 0.75rem;\n font-size: 1.125rem;\n font-weight: bold;\n line-height: 2.5rem;\n border: 1px solid transparent;\n}\n\n.tabs .tab-title {\n margin-right: 0.25rem;\n position: relative;\n}\n\n.tabs .tab-title a {\n display: flex;\n line-height: calc(2.5rem - 0.5px);\n border-top: 1px solid transparent;\n border-right: 1px solid transparent;\n border-bottom: 0;\n border-left: 1px solid transparent;\n border-radius: 0.25rem 0.25rem 0 0;\n padding: 0 0.75rem;\n text-decoration: none;\n color: var(--pg-markdown-tab-border, #453C4F);\n align-items: center;\n align-content: center;\n box-sizing: border-box;\n}\n\n.tabs .tab-title a svg:nth-child(1) {\n width: 1.5rem;\n margin: -0.25rem;\n align-self: center;\n}\n\n.tabs .tab-title a span:nth-child(2) {\n margin-left: 0.55rem;\n}\n\n.tabs .tab-title a svg:nth-child(3) {\n width: 1.5rem;\n margin: -0.25rem;\n align-self: center;\n}\n\n.tabs .tab-title:not(.active) a:hover {\n border-color: rgba(69, 60, 79, 0.5);\n}\n\n.tabs .tab-title.active a {\n border-color: var(--pg-markdown-tab-border, #453C4F);\n font-weight: bold;\n background: #fff;\n cursor: default;\n height: calc(2.5rem + 0.5px);\n}\n\n.tabs .tab-title:not(.active):first-child:hover::before {\n position: absolute;\n top: calc(2.5rem - 1px);\n content: ' ';\n border-top: 1px solid var(--pg-markdown-tab-border, #453C4F);\n border-left: 1px solid var(--pg-markdown-tab-border, #453C4F);\n height: 0.25rem;\n width: 0.25rem;\n background: #fff;\n}\n\n.tabs .tab-title.active:first-child::before {\n position: absolute;\n bottom: -0.25rem;\n content: ' ';\n border-left: 1px solid var(--pg-markdown-tab-border, #453C4F);\n height: 0.25rem;\n width: 0.25rem;\n background: #fff;\n}\n\n.tabs .tab-content {\n box-sizing: border-box;\n grid-row: 2;\n grid-column: 1 / span 2;\n border: 1px solid var(--pg-markdown-tab-border, #453C4F);\n border-radius: 0.25rem;\n padding: 1px 1rem;\n background: #fff;\n}\n\n.tabs .tab-content > *:nth-child(1) {\n margin-top: 1rem;\n}\n\n.tabs .tab-content > *:nth-last-child(1) {\n margin-bottom: 1rem;\n}\n\n.tabs .tab-content.has-label {\n border-radius: 0.25rem;\n}\n\n.tab-hide {\n display: none;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},993:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r),o=n(4417),l=n.n(o),c=new URL(n(5662),n.b),d=new URL(n(9708),n.b),u=new URL(n(6383),n.b),p=new URL(n(1544),n.b),h=new URL(n(2570),n.b),f=new URL(n(6209),n.b),g=s()(i()),m=l()(c),v=l()(d),b=l()(u),y=l()(p),w=l()(h),x=l()(f);g.push([e.id,`:host {\n display: contents;\n}\n\n[part=button] {\n outline: none;\n display: flex;\n align-items: center;\n font-family: var(--pg-font-family);\n text-align: var(--pg-menu-item-text-align, left);\n background: var(--pg-menu-item-background, transparent);\n padding: var(--pg-menu-item-padding, 0.25rem 0.5rem 0.25rem 0.5rem);\n border-color: transparent;\n border-width: 0;\n border-style: solid;\n border-top-left-radius: var(--pg-menu-item-border-radius-top, 0.25rem);\n border-top-right-radius: var(--pg-menu-item-border-radius-top, 0.25rem);\n border-bottom-left-radius: var(--pg-menu-item-border-radius-bottom, 0.25rem);\n border-bottom-right-radius: var(--pg-menu-item-border-radius-bottom, 0.25rem);\n color: var(--pg-menu-item-color, #453C4F);\n}\n\n[part=button]:not(:disabled):active,\n[part=button]:not(:disabled):hover {\n background: var(--pg-menu-item-selected-background, #453C4F);\n color: #FFFFFF;\n --pg-icon-color: #FFFFFF;\n}\n\n[part=button]:not(:disabled):active {\n background: var(--pg-menu-item-active-background, #5f516e);\n}\n\n[part=button]:disabled {\n color: var(--pg-menu-item-disabled-color, rgb(69, 60, 79, 0.75));\n --pg-icon-color: var(--pg-menu-item-disabled-color, rgb(69, 60, 79, 0.75));\n}\n\n@container style(--pg-menu-_has-check: true) {\n [part=button] {\n padding-inline-start: 1.5rem;\n }\n\n [part=button].checked::before {\n position: absolute;\n translate: -1.5rem 0;\n content: var(--pg-menu-item-check, url(${m}));\n width: 1.5rem;\n height: 1.5rem;\n }\n\n [part=button].checked:active::before,\n [part=button].checked:hover::before {\n content: var(--pg-menu-item-hover-check, url(${v}));\n }\n\n [part=button].checked:disabled::before {\n content: var(--pg-menu-item-disabled-check, url(${b}));\n }\n}\n\n[part=button]:focus-visible {\n position: relative;\n}\n\n[part=button]:focus-visible::after {\n pointer-events: none;\n content: '';\n position: absolute;\n top: -1px;\n right: -1px;\n bottom: -1px;\n left: -1px;\n border-radius: 0.25rem;\n box-shadow: 0 0 0 3px var(--pg-focus-color, rgb(79, 143, 249, 0.5));\n}\n\n[part=button]:focus-visible:not(:hover)::after {\n background: var(--pg-focus-background-color, rgb(79, 143, 249, 0.1));\n}\n\n[part=icon] {\n margin-inline-end: 0.5rem;\n}\n\n[part=button].more [part=label]::after {\n content: var(--pg-menu-item-check, url(${y}));\n width: 1.5rem;\n height: 1.5rem;\n vertical-align: middle;\n translate: 0.25rem 0;\n}\n\n[part=button].more:active [part=label]::after,\n[part=button].more:hover [part=label]::after {\n content: var(--pg-menu-item-hover-check, url(${w}));\n}\n\n[part=button].more:disabled [part=label]::after {\n content: var(--pg-menu-item-disabled-check, url(${x}));\n}\n\n[part=label] {\n display: flex;\n align-items: center;\n}\n`,""]);var k=new CSSStyleSheet;k.replaceSync(g.toString());const E=k},1017:(e,t,n)=>{"use strict";var a=n(3822);var i=n(4801),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o,l,c,d=[(0,a.uA)({selector:"pg-app",style:i.A,template:'<div part="grid"> <header part="header"> <button part="logo"> <slot name="icon"></slot> </button> <slot name="top"></slot> </header> <div part="side"> <slot name="side"></slot> </div> <button part="resize"></button> <slot name="main"></slot> <div part="home" class="hide"> <slot name="home"></slot> </div> </div>'})],u=[],p=HTMLElement,h=[],f=[],g=[],m=[],v=[],b=[],y=[],w=[];(class extends p{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],o=[(0,a.eS)()],l=[(0,a.eS)()],c=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"$logo",static:!1,private:!1,access:{has:e=>"$logo"in e,get:e=>e.$logo,set:(e,t)=>{e.$logo=t}},metadata:i},h,f),r(null,null,o,{kind:"field",name:"$home",static:!1,private:!1,access:{has:e=>"$home"in e,get:e=>e.$home,set:(e,t)=>{e.$home=t}},metadata:i},g,m),r(null,null,l,{kind:"field",name:"$side",static:!1,private:!1,access:{has:e=>"$side"in e,get:e=>e.$side,set:(e,t)=>{e.$side=t}},metadata:i},v,b),r(null,null,c,{kind:"field",name:"$resize",static:!1,private:!1,access:{has:e=>"$resize"in e,get:e=>e.$resize,set:(e,t)=>{e.$resize=t}},metadata:i},y,w),r(null,e={value:t},d,{kind:"class",name:t.name,metadata:i},null,u),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,u)}$logo=s(this,h,void 0);$home=(s(this,f),s(this,g,void 0));$side=(s(this,m),s(this,v,void 0));$resize=(s(this,b),s(this,y,void 0));connectedCallback(){this.$logo.addEventListener("click",this.#e.bind(this)),this.$resize.addEventListener("pointerdown",this.#t.bind(this))}#e(){this.$logo.classList.toggle("selected"),this.$home.classList.toggle("hide")}#t(e){const{clientX:t}=e;this.$resize.classList.add("dragging");const n=this.$side.getBoundingClientRect().width;let a=t;const i=e=>{const t=a-e.clientX,i=n-t;this.$side.style.width=`${i}px`},r=()=>{this.$resize.classList.remove("dragging"),document.removeEventListener("pointermove",i),document.removeEventListener("pointerup",r)};document.addEventListener("pointermove",i),document.addEventListener("pointerup",r)}constructor(){super(...arguments),s(this,w)}})})()},1056:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n=[(0,a.uA)({selector:"x-pg-button-link-basic",template:'<div class="example"> <div class="example-flex"> <pg-button-link href="#test">Example Button Link</pg-button-link> <pg-button-link href="#test"> <pg-icon path="M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"> </pg-icon> </pg-button-link> <pg-button-link href="#test"> <pg-icon path="M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"> </pg-icon> With Icon </pg-button-link> </div> <pg-button-link href="#test" block>Block Button Link</pg-button-link> </div>'})],s=[],o=HTMLElement;(class extends o{static{t=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;i(null,e={value:t},n,{kind:"class",name:t.name,metadata:a},null,s),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),r(t,s)}})})()},1081:(e,t,n)=>{"use strict";var a=n(3822);var i=n(3713);function r(e){const t=[];for(let n=0;n<e.length;n++){t.push([]);for(let a=0;a<e[0].length;a++)t[n].push(e[n][a])}return t}function s(e,t,n,a){return function(e,t,n){return Math.sqrt(Math.pow(t*n,2)+Math.pow(e,2))}(e,t,a)<=n}function o(e,t,n,a){return function(e,t,n,a){return s(e,t,n,a)&&!(s(e+1,t,n,a)&&s(e-1,t,n,a)&&s(e,t+1,n,a)&&s(e,t-1,n,a))}(e=-.5*(n-2*(e+.5)),t=-.5*(a-2*(t+.5)),n/2,n/a)}function l(e,t,n,a){return Math.abs(e-n)===Math.abs(t-a)&&Math.abs(e-n)?(console.log("circle",Math.abs(e-n),Math.abs(t-a)),function(e,t,n,a){const i=Math.abs(e-n),r=Math.abs(t-a),s=Math.min(e,n),l=Math.min(t,a),c=[];for(let e=0;e<r;e++)for(let t=0;t<i;t++)o(t,e,i,r)&&c.push({x:t+s,y:e+l});return c}(e,t,n+1,a+1)):function(e,t,n,a){const i=[];var r,s=Math.abs(n-e),o=Math.abs(a-t),l=1&o,c=4*(1-s)*o*o,d=4*(l+1)*s*s,u=c+d+l*s*s;e>n&&(e=n,n+=s),t>a&&(t=a),a=(t+=o+1>>1)-l,s*=8*s,l=8*o*o;do{i.push({x:n,y:t}),i.push({x:e,y:t}),i.push({x:e,y:a}),i.push({x:n,y:a}),(r=2*u)<=d&&(t++,a--,u+=d+=s),(r>=c||2*u>d)&&(e++,n--,u+=c+=l)}while(e<=n);for(;t-a<=o;)i.push({x:e-1,y:t}),i.push({x:n+1,y:t++}),i.push({x:e-1,y:a}),i.push({x:n+1,y:a--});return i}(e,t,n,a)}const c="#FFFFFF";function d(e,t,n,a){const i=[],r=Math.abs(n-e),s=Math.abs(a-t),o=e<n?1:-1,l=t<a?1:-1;let c=r-s;for(;i.push({x:e,y:t}),e!==n||t!==a;){var d=2*c;d>-s&&(c-=s,e+=o),d<r&&(c+=r,t+=l)}return i}function u(e,t,n,a){const i=[],r=Math.min(e,n),s=Math.min(t,a);for(var o=Math.abs(n-e)+1,l=Math.abs(a-t)+1,c=s;c<s+l;c++)for(var d=r;d<r+o;d++)i.push({x:d,y:c});return i}function p(e,t,n,a){const i=[],r=Math.min(e,n),s=Math.min(t,a);for(var o=Math.abs(n-e),l=Math.abs(a-t),c=s;c<=s+l;c++)i.push({x:r,y:c}),i.push({x:r+o,y:c});for(var d=r+1;d<=r+o-1;d++)i.push({x:d,y:s}),i.push({x:d,y:s+l});return i}function h(e,t){let n=[];for(let a=0;a<t;a++){const t=[];for(let n=0;n<e;n++)t.push(0);n.push(t)}return n}function f(e,t){for(let n=0;n<e.length;n++)for(let a=0;a<e[0].length;a++)t(a,n,e[n][a])}function g(e,t,n){return t*n+e}function m(e,t){const n=document.createElement("canvas");return n.width=e,n.height=t,[n,n.getContext("2d")]}const v=[{name:"Circle Outer",width:22,height:22,color:"#F00",opacity:1,lines:[[7,1],[15,1],[15,2],[17,2],[17,3],[18,3],[18,4],[19,4],[19,5],[20,5],[20,7],[21,7],[21,15],[20,15],[20,17],[19,17],[19,18],[18,18],[18,19],[17,19],[17,20],[15,20],[15,21],[7,21],[7,20],[5,20],[5,19],[4,19],[4,18],[3,18],[3,17],[2,17],[2,15],[1,15],[1,7],[2,7],[2,5],[3,5],[3,4],[4,4],[4,3],[5,3],[5,2],[7,2],[7,1]]},{name:"Circle Inner",width:22,height:22,color:"#00F",opacity:1,lines:[[8,3],[14,3],[14,4],[16,4],[16,5],[17,5],[17,6],[18,6],[18,8],[19,8],[19,14],[18,14],[18,16],[17,16],[17,17],[16,17],[16,18],[14,18],[14,19],[8,19],[8,18],[6,18],[6,17],[5,17],[5,16],[4,16],[4,14],[3,14],[3,8],[4,8],[4,6],[5,6],[5,5],[6,5],[6,4],[8,4],[8,3]]},{name:"Square",width:22,height:22,color:"#9932cc",opacity:1,dashed:[4,4],lines:[[2,2],[20,2],[20,20],[2,20],[2,2]]},{name:"Square",width:22,height:22,color:"#9932cc",opacity:.1,dashed:[4,4],dashOffset:4,lines:[[2,2],[20,2],[20,20],[2,20],[2,2]]}],b=new Map;function y(e,t,n,a){const i=`${e}:${t}:${n}:${a}`;if(b.has(i))return b.get(i);let r=v.filter((n=>n.width===e&&n.height===t));0===r.length&&e%2==0&&t%2==0&&(r=[{name:"Horizontal",color:"#00F",opacity:1,lines:[[0,t/2],[e,t/2]]},{name:"Vertical",color:"#00F",opacity:1,lines:[[e/2,0],[e/2,t]]}]);const s=n+a,o=e*s-a,l=t*s-a,c=document.createElement("canvas"),d=c.getContext("2d");if(c.width=o,c.height=l,0!==a){d.fillStyle="#BBB";for(let t=1;t<e;t++)d.fillRect(t*s-a,0,1,l);for(let e=1;e<t;e++)d.fillRect(0,e*s-a,o,1)}return r.forEach((e=>{d.lineDashOffset=e.dashOffset||0,d.setLineDash(e.dashed||[1]),d.strokeStyle=e.color,d.globalAlpha=e.opacity,d.lineWidth=1,d.fillStyle="transparent",d.beginPath(),e.lines.forEach(((e,t)=>{0===t?d.moveTo(e[0]*(n+a)-.5,e[1]*(n+a)-.5):d.lineTo(e[0]*(n+a)-.5,e[1]*(n+a)-.5)})),d.stroke()})),b.set(i,c),c}var w,x=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},k=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};function E([e,t,n,a]){return`rgba(${e}, ${t}, ${n}, ${a})`}!function(e){e[e.Group=0]="Group",e[e.Pixel=1]="Pixel",e[e.ColorUpdate=2]="ColorUpdate",e[e.ColorAdd=3]="ColorAdd",e[e.ColorRemove=4]="ColorRemove",e[e.LayerAdd=5]="LayerAdd",e[e.LayerRemove=6]="LayerRemove",e[e.LayerName=7]="LayerName",e[e.LayerLock=8]="LayerLock",e[e.LayerUnlock=9]="LayerUnlock",e[e.LayerExport=10]="LayerExport",e[e.LayerVisible=11]="LayerVisible",e[e.LayerOpacity=12]="LayerOpacity"}(w||(w={}));(()=>{let e,t,n,s,o,v,b,C,$,A=[(0,a.uA)({selector:"pg-input-pixel-editor",style:i.A,template:'<div part="wrapper" tabindex="0"> <canvas part="canvas" draggable="false"></canvas> </div>'})],S=[],F=HTMLElement,L=[],O=[],T=[],D=[],j=[],I=[],P=[],M=[],B=[],z=[],H=[],R=[],N=[],V=[];(class extends F{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(F[Symbol.metadata]??null):void 0;n=[(0,a.kv)(a.pO)],s=[(0,a.kv)(a.pO)],o=[(0,a.kv)(a.pO)],v=[(0,a.kv)(a.pO)],b=[(0,a.kv)(a._w)],C=[(0,a.kv)()],$=[(0,a.eS)()],x(null,null,n,{kind:"field",name:"width",static:!1,private:!1,access:{has:e=>"width"in e,get:e=>e.width,set:(e,t)=>{e.width=t}},metadata:i},L,O),x(null,null,s,{kind:"field",name:"height",static:!1,private:!1,access:{has:e=>"height"in e,get:e=>e.height,set:(e,t)=>{e.height=t}},metadata:i},T,D),x(null,null,o,{kind:"field",name:"size",static:!1,private:!1,access:{has:e=>"size"in e,get:e=>e.size,set:(e,t)=>{e.size=t}},metadata:i},j,I),x(null,null,v,{kind:"field",name:"gridSize",static:!1,private:!1,access:{has:e=>"gridSize"in e,get:e=>e.gridSize,set:(e,t)=>{e.gridSize=t}},metadata:i},P,M),x(null,null,b,{kind:"field",name:"transparent",static:!1,private:!1,access:{has:e=>"transparent"in e,get:e=>e.transparent,set:(e,t)=>{e.transparent=t}},metadata:i},B,z),x(null,null,C,{kind:"field",name:"placeholder",static:!1,private:!1,access:{has:e=>"placeholder"in e,get:e=>e.placeholder,set:(e,t)=>{e.placeholder=t}},metadata:i},H,R),x(null,null,$,{kind:"field",name:"$canvas",static:!1,private:!1,access:{has:e=>"$canvas"in e,get:e=>e.$canvas,set:(e,t)=>{e.$canvas=t}},metadata:i},N,V),x(null,e={value:t},A,{kind:"class",name:t.name,metadata:i},null,S),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),k(t,S)}width=k(this,L,10);height=(k(this,O),k(this,T,10));size=(k(this,D),k(this,j,10));gridSize=(k(this,I),k(this,P,1));transparent=(k(this,M),k(this,B,!1));placeholder=(k(this,z),k(this,H,""));$canvas=(k(this,R),k(this,N,void 0));#n=(k(this,V),0);#a=!1;#i=!1;#r=-1;#s=-1;#o=-1;#l=-1;#c=-1;#d=0;#u=[];#p=!1;#h=!1;#f=!1;#g=[];#m=[];#v=[];#b;#y=[[0,0,0,0],[0,0,0,1]];#w;#x;#k;#E;#C;#$;#A;#S;connectedCallback(){const e=this.$canvas.getContext("2d");null!==e&&(this.#b=e,this.$canvas.addEventListener("contextmenu",this.handleContextMenu.bind(this)),this.$canvas.addEventListener("doubleclick",this.handleDoubleClick.bind(this)),this.$canvas.addEventListener("pointerdown",this.handlePointerDown.bind(this)),this.$canvas.addEventListener("pointerup",this.handlePointerUp.bind(this)),this.$canvas.addEventListener("pointermove",this.handlePointerMove.bind(this)),this.$canvas.addEventListener("pointerenter",this.handlePointerEnter.bind(this)),this.$canvas.addEventListener("pointerleave",this.handlePointerLeave.bind(this)),this.$canvas.addEventListener("keydown",this.handleKeyDown.bind(this)),this.$canvas.addEventListener("keyup",this.handleKeyUp.bind(this)))}render(e){(e.width||e.height||e.size||e.transparent)&&this.#F()}#L=!0;#F(){const e=this.size+this.gridSize,t=this.width*e-this.gridSize,n=this.height*e-this.gridSize;if(this.$canvas.width=t,this.$canvas.height=n,this.#b.clearRect(0,0,t,n),[this.#w,this.#x]=m(t,n),[this.#k,this.#E]=m(t,n),[this.#C,this.#$]=m(t,n),[this.#A,this.#S]=m(t,n),this.transparent)for(let t=0;t<this.height;t++)for(let n=0;n<this.width;n++)this.#x.fillStyle=c,this.#x.fillRect(n*e,t*e,this.size+1,this.size+1),this.#x.fillStyle="#DDD",this.#x.fillRect(n*e+Math.ceil(this.size/2),t*e,Math.floor(this.size/2),Math.floor(this.size/2)),this.#x.fillRect(n*e,t*e+Math.floor(this.size/2),Math.ceil(this.size/2),Math.ceil(this.size/2));else this.#x.clearRect(0,0,t,n);this.#L?(this.#d=0,this.#u=[{name:"Layer 1",export:!0,locked:!1,visible:!0,opacity:1}],this.#g=[h(this.width,this.height)],this.#L=!1,this.#m=[],this.#v=[]):this.#O(),this.#T()}#O(){const e=this.#g.toReversed(),t=e.length;for(let n=0;n<this.height;n++){if(n>=e[0].length)for(let n=0;n<t;n++)e[n].push(new Array(this.width).fill(0));for(let a=0;a<this.width;a++){if(a>=e[0][n].length)for(let a=0;a<t;a++)e[a][n].push(0);for(let i=0;i<t;i++)if(0!==e[i][n][a]){this.#D(a,n,e[i][n][a]);break}}}}#j(){const e=this.#g.map((e=>function(e,t={}){let n,a,i,r=1,s=0,o=0;if(t.width){if(n=e,a=t.width,i=n.length/a,i%1!=0)throw new Error(`Invalid bitmask width. ${i} = ${n.length} / ${a}`)}else{if(!(e[0]instanceof Array))throw new Error("options.width is required for 1 dimensional array.");n=e.flat(),a=e[0].length,i=e.length}t.scale&&(r=t.scale),t.offsetX&&(s=t.offsetX),t.offsetY&&(o=t.offsetY);const l=a+2,c=Array(l*(i+2)).fill(0);function d(e,t){return(t+1)*l+(e+1)}for(let e=0;e<i;++e)for(let t=0;t<a;++t)c[d(t,e)]=n[g(t,e,a)];const u=a*(i+1),p=Array(u+(a+1)*i).fill(0).map((()=>({x:0,y:0,next:void 0})));function h(e,t){return t*a+e}function f(e,t){return u+t*(a+1)+e}const m=new Set;function v(e,t,n){e.x=t,e.y=n,m.add(e)}function b(e){for(var t=e.next;void 0!==t&&t!==e;t=t.next)m.delete(t);void 0!==t&&m.add(e)}for(let e=0;e<i;++e)for(let t=0;t<a;++t)if(1==c[d(t,e)]){if(0==c[d(t-1,e)]){const n=p[f(t,e)];v(n,t,e+1),c[d(t-1,e-1)]?n.next=p[h(t-1,e)]:c[d(t,e-1)]?n.next=p[f(t,e-1)]:n.next=p[h(t,e)],b(n)}if(0==c[d(t+1,e)]){const n=p[f(t+1,e)];v(n,t+1,e),c[d(t+1,e+1)]?n.next=p[h(t+1,e+1)]:c[d(t,e+1)]?n.next=p[f(t+1,e+1)]:n.next=p[h(t,e+1)],b(n)}if(0==c[d(t,e-1)]){const n=p[h(t,e)];v(n,t,e),c[d(t+1,e-1)]?n.next=p[f(t+1,e-1)]:c[d(t+1,e)]?n.next=p[h(t+1,e)]:n.next=p[f(t+1,e)],b(n)}if(0==c[d(t,e+1)]){const n=p[h(t,e+1)];v(n,t+1,e+1),c[d(t-1,e+1)]?n.next=p[f(t,e+1)]:c[d(t-1,e)]?n.next=p[h(t-1,e+1)]:n.next=p[f(t,e)],b(n)}}for(const e of m){let t=e;do{t.next&&(t.next.type=t.x==t?.next?.x?"V":"H",t=t.next)}while(t!==e)}for(let e of m){let t=e;do{if(t.type!=t.next?.type)for(;t.next?.type==t.next?.next?.type;)t.next===e&&(m.delete(e),e=t.next.next,m.add(e)),t.next=t.next?.next;t=t.next}while(t!==e)}let y="";for(const e of m){y+=`M${e.x*r},${e.y*r}`;for(var w=e.next;w!=e;w=w?.next)"H"==w?.type?y+=`H${w?.x*r+s}`:"V"==w?.type&&(y+=`V${w?.y*r+o}`);y+="Z"}return y}(e,{scale:1})));console.log("change:",e),this.dispatchEvent(new CustomEvent("change",{detail:{value:e}}))}#I=0;#P(){clearInterval(this.#I),this.#I=window.setTimeout(this.#j.bind(this),1e3)}#D(e,t,n){if(e>this.width)throw new Error(`Invalid x; ${e} > ${this.width}`);if(t>this.height)throw new Error(`Invalid y; ${t} > ${this.height}`);const a=this.size+this.gridSize;this.#b.clearRect(e*a,t*a,this.size,this.size),this.#E.clearRect(e*a,t*a,this.size,this.size),this.#$.clearRect(e*a,t*a,this.size,this.size),0!==this.#y[n][3]&&(this.#E.fillStyle=c,this.#E.fillRect(e*a-this.gridSize+1,t*a-this.gridSize+1,this.size+2*this.gridSize-2,this.size+2*this.gridSize-2),this.#E.fillStyle=E(this.#y[n]),this.#E.fillRect(e*a+1,t*a+1,this.size-2,this.size-2)),0!==this.#y[n][3]&&(this.#$.fillStyle=E(this.#y[n]),this.#$.fillRect(e*a,t*a,this.size,this.size)),this.#b.drawImage(this.#w,e*a,t*a,this.size+2,this.size+2,e*a,t*a,this.size+2,this.size+2),this.#b.drawImage(this.#i?this.#k:this.#C,e*a,t*a,this.size+2,this.size+2,e*a,t*a,this.size+2,this.size+2),console.log("draw pixel(x, y, color, data):",e,t,n,this.#g[this.#d][t][e]),this.#g[this.#d][t][e]=n,this.#P()}#M(){for(let e=0;e<this.height;e++)for(let t=0;t<this.width;t++)this.#D(t,e,this.#g[this.#d][e][t])}#B(e,t,n){const a=this.size+this.gridSize,i=this.width*a-this.gridSize,r=this.height*a-this.gridSize,{minX:s,maxX:o,minY:l,maxY:d}=e.reduce(((e,a)=>({minX:Math.min(e.minX,a.x,t),maxX:Math.max(e.maxX,a.x,t),minY:Math.min(e.minY,a.y,n),maxY:Math.max(e.maxY,a.y,n)})),{minX:this.width,maxX:0,minY:this.height,maxY:0}),u=s*a,p=l*a,h=(o-s+1)*a,f=(d-l+1)*a;this.#b.clearRect(u,p,h,f),this.#b.drawImage(this.#w,u,p,h,f,u,p,h,f),this.#b.drawImage(this.#k,u,p,h,f,u,p,h,f),this.#S.clearRect(0,0,i,r),e.forEach((({x:e,y:t})=>{this.#S.fillStyle=c,this.#S.beginPath(),this.#S.arc(e*a+5,t*a+5,3,0,2*Math.PI),this.#S.closePath(),this.#S.fill(),this.#S.fillStyle="#1B79C8",this.#S.beginPath(),this.#S.arc(e*a+5,t*a+5,2,0,2*Math.PI),this.#S.closePath(),this.#S.fill()})),this.#b.drawImage(this.#A,u,p,h,f,u,p,h,f),this.dispatchEvent(new CustomEvent("debug",{detail:{x:u,y:p,width:h,height:f,canvas:this.$canvas,context:this.#b,editLayer:this.#k,noEditLayer:this.#C,baseLayer:this.#w,previewLayer:this.#A}}))}handleKeyDown(e){switch(console.log(e.shiftKey,e.ctrlKey,e.altKey,e.key),e.key){case" ":console.log("space");break;case"Escape":console.log("escape")}}handleKeyUp(e){}handleContextMenu(e){e?.preventDefault()}handleDoubleClick(e){e?.preventDefault()}handlePointerDown(e){if(1!==e.buttons&&32!==e.buttons)return e.preventDefault(),void e.stopPropagation();this.#f=e.altKey,this.#p=e.ctrlKey,this.#h=e.shiftKey;const t=this.$canvas.getBoundingClientRect(),n=this.size+this.gridSize;let a=Math.floor((e.clientX-t.left)/n),i=Math.floor((e.clientY-t.top)/n);if(a===this.#l&&i===this.#c)return;a>=this.width&&(a=this.width-1),i>=this.height&&(i=this.height-1),this.#a=!0,this.#r=this.#g[this.#d][i][a],this.#s=a,this.#o=i,this.#l=a,this.#c=i;const r=32===e.buttons?0:1;if(0===this.#n)this.#D(a,i,r),this.#g[this.#d][i][a]=r;console.log(this.#n,a,i)}handlePointerUp(e){const t=this.$canvas.getBoundingClientRect(),n=this.size+this.gridSize;let a=Math.floor((e.clientX-t.left)/n),i=Math.floor((e.clientY-t.top)/n);if(a>=this.width&&(a=this.width-1),i>=this.height&&(i=this.height-1),-1!==this.#s||-1!==this.#o){if(a===this.#s&&i===this.#o&&1===this.#r){if(0===this.#n)this.#D(a,i,0),this.#g[this.#d][i][a]=0}else switch(this.#n){case 1:d(this.#s,this.#o,a,i).forEach((({x:e,y:t})=>{this.#D(e,t,1)}));break;case 2:u(this.#s,this.#o,a,i).forEach((({x:e,y:t})=>{this.#D(e,t,1)}));break;case 3:p(this.#s,this.#o,a,i).forEach((({x:e,y:t})=>{this.#D(e,t,1)}));break;case 4:case 5:l(this.#s,this.#o,a,i).forEach((({x:e,y:t})=>{this.#D(e,t,1)}))}this.#l=-1,this.#c=-1,this.#a=!1}}handlePointerMove(e){const t=this.$canvas;if(this.#a){this.#f=e.altKey,this.#p=e.ctrlKey,this.#h=e.shiftKey;const a=this.#g,i=t.getBoundingClientRect(),r=this.size+this.gridSize,s=[],o=this.#s,c=this.#o,h=this.#l,f=this.#c;if("function"==typeof e.getCoalescedEvents){const t=e.getCoalescedEvents();for(const e of t){let t=Math.floor((e.clientX-i.left)/r),n=Math.floor((e.clientY-i.top)/r);t>=this.width||n>=this.height||t===h&&n===f||s.push([t,n])}}else{let t=Math.floor((e.clientX-i.left)/r),n=Math.floor((e.clientY-i.top)/r);if(t===h&&n===f)return;t>=this.width&&(t=this.width-1),n>=this.height&&(n=this.height-1),s.push([t,n])}const g=32===e.buttons?0:1;if(0===s.length)return;const[m,v]=s.at(-1);switch(this.#l=m,this.#c=v,this.#n){case 0:for(var n of s)this.#D(n[0],n[1],g),a[this.#d][n[1]][n[0]]=g;break;case 1:this.#B(d(o,c,m,v),h,f);break;case 2:this.#B(u(o,c,m,v),h,f);break;case 3:this.#B(p(o,c,m,v),h,f);break;case 4:case 5:this.#B(l(o,c,m,v),h,f)}}}handlePointerEnter(e){this.#a||this.#i||(this.#i=!0,this.#b.drawImage(this.#w,0,0),this.#b.drawImage(this.#i?this.#k:this.#C,0,0))}handlePointerLeave(e){this.#a||(this.#i=!1,this.#b.drawImage(this.#w,0,0),this.#b.drawImage(this.#i?this.#k:this.#C,0,0))}#T(){this.#b.drawImage(this.#w,0,0),this.#b.drawImage(this.#C,0,0)}mergeColor(e,t){}clear(){const e=h(this.width,this.height);!function(e,t){const n=[],a=e[0].length,i=e.length,r=t[0].length,s=t.length,o=Math.max(a,r),l=Math.max(i,s);for(let a=0;a<l;a++)for(let i=0;i<o;i++){const r=t&&t[a]&&t[a][i],s=e&&e[a]&&e[a][i];r!==s&&n.push([i,a,s,r])}}(this.#g[this.#d],e);this.#m.push({type:w.Group,data:{name:"Clear"}}),this.#m.push({type:w.Pixel,data:{pixels:[],layer:this.#d}}),this.#g=[h(this.width,this.height)],this.#T()}reset(){this.#L=!0,this.#F()}clearHistory(){this.#m=[],this.#v=[]}applyTemplate(e){this.#g=[e],this.#M()}flipHorizontal(){const e=r(this.#g[this.#d]),t=e[0].length-1;f(this.#g[this.#d],((n,a)=>{e[a][n]=this.#g[this.#d][a][t-n]})),this.#g[this.#d]=e}flipVertical(){const e=r(this.#g[this.#d]),t=e.length-1;f(this.#g[this.#d],((n,a)=>{e[this.#d][a][n]=this.#g[t-a][n]})),this.#g[this.#d]=e}move(e,t){const n=h(this.width,this.height);for(let e=0;e<this.height;e++)n[e].fill(0);f(this.#g[this.#d],((a,i)=>{i-t<0||a-e<0||i-t>=this.height||a-e>=this.width||(n[i][a]=this.#g[this.#d][i-t][a-e])})),this.#g[this.#d]=n}invert(){this.#y.length>2||(f(this.#g[this.#d],((e,t)=>{this.#g[this.#d][t][e]=0===this.#g[this.#d][t][e]?1:0})),this.#M())}applyGuides(){const e=y(this.width,this.height,this.size,this.gridSize);this.#x.drawImage(e,0,0)}clearGuides(){}undo(){const e=this.#m.pop();if(e&&e.type===w.Pixel)this.#v.push(e),e.data.pixels.forEach((e=>{const[t,n]=e;this.#g[this.#d][n][t]=e[2]}))}redo(){}rotateClockwise(){this.#z(!1)}rotateCounterclockwise(){this.#z(!0)}#z(e=!1){const t=r(this.#g[this.#d]);if(e){const e=this.#g[0].map(((e,t)=>this.#g.map((e=>e[e.length-1-t]))));for(let n=0;n<this.height;n++)for(let a=0;a<this.width;a++)t[n][a]=e[this.#d][n][a]}else{const e=this.#g[0].map(((e,t)=>this.#g.map((e=>e[t])).reverse()));for(let n=0;n<this.height;n++)for(let a=0;a<this.width;a++)t[n][a]=e[this.#d][n][a]}this.#g[this.#d]=t}hasUndo(){return 0!==this.#m.length}hasRedo(){return 0!==this.#v.length}inputModePixel(){this.#n=0}inputModeLine(){this.#n=1}inputModeRectangle(){this.#n=2}inputModeRectangleOutline(){this.#n=3}inputModeEllipse(){this.#n=4}inputModeEllipseOutline(){this.#n=5}async save(e={}){const t={width:this.width,height:this.height,transparent:this.transparent,colors:this.#y,layers:this.#u,data:this.#g};!0===e.history&&(t.undo=this.#m,t.redo=this.#v);for(let e=0;e<t.data.length;e++)for(let n=t.data[e].length-1;n>=0;n--)if(n>=this.height)t.data[e].pop();else for(let a=t.data[e][n].length-1;a>=0;a--)a>=this.width&&t.data[e][n].pop();return t}async open(e){if("object"!=typeof e)return["json must be type object"];const t=[],n=Object.keys(e);["width","height","transparent","colors","layers","data"].forEach((e=>{n.includes(e)||t.push(`JSON key '${e}' required.`)})),this.width=e.width,this.height=e.height,this.transparent=e.transparent,this.#y=e.colors,this.#u=e.layers,this.#g=e.data,e.undo&&(this.#m=e.undo),e.redo&&(this.#v=e.redo),this.#F()}})})()},1113:()=>{!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism)},1169:(e,t,n)=>{"use strict";var a=n(3822),i=n(6421);var r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o,l,c,d,u=[(0,a.uA)({selector:"x-pg-toast-basic",template:'<div> <button part="toastInfo">Info</button> <button part="toastWarning">Warning</button> <button part="toastError">Error</button> <button part="toastLoading">Loading (mock 3 seconds)</button> <button part="toastToggle">Toggle Toast</button> </div>'})],p=[],h=HTMLElement,f=[],g=[],m=[],v=[],b=[],y=[],w=[],x=[],k=[],E=[];(class extends h{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],o=[(0,a.eS)()],l=[(0,a.eS)()],c=[(0,a.eS)()],d=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"$toastInfo",static:!1,private:!1,access:{has:e=>"$toastInfo"in e,get:e=>e.$toastInfo,set:(e,t)=>{e.$toastInfo=t}},metadata:i},f,g),r(null,null,o,{kind:"field",name:"$toastWarning",static:!1,private:!1,access:{has:e=>"$toastWarning"in e,get:e=>e.$toastWarning,set:(e,t)=>{e.$toastWarning=t}},metadata:i},m,v),r(null,null,l,{kind:"field",name:"$toastError",static:!1,private:!1,access:{has:e=>"$toastError"in e,get:e=>e.$toastError,set:(e,t)=>{e.$toastError=t}},metadata:i},b,y),r(null,null,c,{kind:"field",name:"$toastLoading",static:!1,private:!1,access:{has:e=>"$toastLoading"in e,get:e=>e.$toastLoading,set:(e,t)=>{e.$toastLoading=t}},metadata:i},w,x),r(null,null,d,{kind:"field",name:"$toastToggle",static:!1,private:!1,access:{has:e=>"$toastToggle"in e,get:e=>e.$toastToggle,set:(e,t)=>{e.$toastToggle=t}},metadata:i},k,E),r(null,e={value:t},u,{kind:"class",name:t.name,metadata:i},null,p),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,p)}$toastInfo=s(this,f,void 0);$toastWarning=(s(this,g),s(this,m,void 0));$toastError=(s(this,v),s(this,b,void 0));$toastLoading=(s(this,y),s(this,w,void 0));$toastToggle=(s(this,x),s(this,k,void 0));connectedCallback(){this.$toastInfo.addEventListener("click",this.handleInfo.bind(this)),this.$toastWarning.addEventListener("click",this.handleWarning.bind(this)),this.$toastError.addEventListener("click",this.handleError.bind(this)),this.$toastLoading.addEventListener("click",this.handleLoading.bind(this)),this.$toastToggle.addEventListener("click",this.handleToggle.bind(this))}handleInfo(){i.A.open({type:"info",message:"Hello World! With really long content that wraps rows."})}handleWarning(){i.A.open({type:"warning",message:"Hello World! Warning"})}handleError(){i.A.open({type:"error",message:"Hello World! Error"})}async handleLoading(){const e=await i.A.open({type:"info",message:"Loading...",loading:!0});setTimeout((()=>{e({type:"success",message:"Saved record.",timeout:5})}),3e3)}cacheToast=s(this,E);async handleToggle(){this.cacheToast?(this.cacheToast(),this.cacheToast=null):this.cacheToast=await i.A.open({type:"info",message:"Loading...",loading:!0})}})})()},1193:(e,t,n)=>{"use strict";var a=n(3822),i=n(3681);var r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o,l=[(0,a.uA)({selector:"x-pg-modal-alert-basic",template:'<div class="example"> <button part="button">Launch Alert Modal</button> <div><code>Result: </code><code part="result"></code></div> </div>'})],c=[],d=HTMLElement,u=[],p=[],h=[],f=[];(class extends d{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],o=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:i},u,p),r(null,null,o,{kind:"field",name:"$result",static:!1,private:!1,access:{has:e=>"$result"in e,get:e=>e.$result,set:(e,t)=>{e.$result=t}},metadata:i},h,f),r(null,e={value:t},l,{kind:"class",name:t.name,metadata:i},null,c),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,c)}$button=s(this,u,void 0);$result=(s(this,p),s(this,h,void 0));connectedCallback(){this.$button.addEventListener("click",this.handleClick.bind(this))}async handleClick(){const e=await i.A.open({header:"Delete Item",message:"Are you sure you want to delete the item?"});this.$result.textContent=`${e}`}constructor(){super(...arguments),s(this,f)}})})()},1217:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: contents;\n}\n\n[part="overlay"] {\n margin: 0;\n padding: 0;\n border: 0;\n background: transparent;\n overflow: visible;\n --pg-menu-box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.25);\n top: calc(anchor(top) - 0.25rem);\n left: calc(anchor(right) - 0.25rem);\n min-width: 10rem;\n translate: var(--pg-overlay-menu-_x, 0) var(--pg-overlay-menu-_y, 0);\n position-try-fallbacks: --custom-right, --custom-left;\n}\n\n@position-try --custom-right {\n top: calc(anchor(top) - 0.25rem);\n left: calc(anchor(right) - 0.25rem);\n}\n\n@position-try --custom-left {\n top: calc(anchor(top) - 0.25rem);\n left: calc(anchor(left) - anchor-size(width) + 0.25rem);\n}\n',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},1219:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r),o=n(4417),l=n.n(o),c=new URL(n(5662),n.b),d=new URL(n(9708),n.b),u=new URL(n(6383),n.b),p=new URL(n(1544),n.b),h=new URL(n(2570),n.b),f=new URL(n(6209),n.b),g=s()(i()),m=l()(c),v=l()(d),b=l()(u),y=l()(p),w=l()(h),x=l()(f);g.push([e.id,`:host {\n display: contents;\n}\n\n[part=label] {\n outline: none;\n display: flex;\n align-items: center;\n font-family: var(--pg-font-family);\n text-align: var(--pg-menu-item-text-align, left);\n background: var(--pg-menu-item-background, transparent);\n padding: var(--pg-menu-item-padding, 0.25rem 0.5rem 0.25rem 0.5rem);\n border-color: transparent;\n border-width: 0;\n border-style: solid;\n border-top-left-radius: var(--pg-menu-item-border-radius-top, 0.25rem);\n border-top-right-radius: var(--pg-menu-item-border-radius-top, 0.25rem);\n border-bottom-left-radius: var(--pg-menu-item-border-radius-bottom, 0.25rem);\n border-bottom-right-radius: var(--pg-menu-item-border-radius-bottom, 0.25rem);\n color: var(--pg-menu-item-color, #453C4F);\n}\n\n[part=label]:not(:disabled):active,\n[part=label]:not(:disabled):hover {\n background: var(--pg-menu-item-selected-background, #453C4F);\n color: #FFFFFF;\n}\n\n[part=label]:not(:disabled):active {\n background: var(--pg-menu-item-active-background, #5f516e);\n}\n\n[part=label]:disabled {\n color: var(--pg-menu-item-disabled-color, rgb(69, 60, 79, 0.75));\n}\n\n@container style(--pg-menu-_has-check: true) {\n [part=label] {\n padding-inline-start: 1.5rem;\n }\n\n [part=label].checked::before {\n position: absolute;\n translate: -1.5rem 0;\n content: var(--pg-menu-item-check, url(${m}));\n width: 1.5rem;\n height: 1.5rem;\n }\n\n [part=label].checked:active::before,\n [part=label].checked:hover::before {\n content: var(--pg-menu-item-hover-check, url(${v}));\n }\n\n [part=label].checked:disabled::before {\n content: var(--pg-menu-item-disabled-check, url(${b}));\n }\n}\n\n[part=label]:focus-visible {\n position: relative;\n}\n\n[part=label]:focus-visible::after {\n pointer-events: none;\n content: '';\n position: absolute;\n top: -1px;\n right: -1px;\n bottom: -1px;\n left: -1px;\n border-radius: 0.25rem;\n box-shadow: 0 0 0 3px var(--pg-focus-color, rgb(79, 143, 249, 0.5));\n}\n\n[part=label]:focus-visible:not(:hover)::after {\n background: var(--pg-focus-background-color, rgb(79, 143, 249, 0.1));\n}\n\n\n[part=label].more::after {\n position: absolute;\n translate: -0.5rem 0;\n right: 0;\n content: var(--pg-menu-item-check, url(${y}));\n width: 1.5rem;\n height: 1.5rem;\n}\n\n[part=label].more:active::after,\n[part=label].more:hover::after {\n content: var(--pg-menu-item-hover-check, url(${w}));\n}\n\n[part=label].more:disabled::after {\n content: var(--pg-menu-item-disabled-check, url(${x}));\n}\n`,""]);var k=new CSSStyleSheet;k.replaceSync(g.toString());const E=k},1244:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,s,o=[(0,a.uA)({selector:"x-pg-input-check-basic",template:'<div class="example"> <pg-input-check part="input" value="true"></pg-input-check> <pg-input-check disabled="disabled"></pg-input-check> <pg-input-check value="true" disabled="disabled"></pg-input-check> <div> <code>onchange: <span part="value"></span></code> </div> </div>'})],l=[],c=HTMLElement,d=[],u=[],p=[],h=[];(class extends c{static{t=this}static{const f="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],s=[(0,a.eS)()],i(null,null,n,{kind:"field",name:"$input",static:!1,private:!1,access:{has:e=>"$input"in e,get:e=>e.$input,set:(e,t)=>{e.$input=t}},metadata:f},d,u),i(null,null,s,{kind:"field",name:"$value",static:!1,private:!1,access:{has:e=>"$value"in e,get:e=>e.$value,set:(e,t)=>{e.$value=t}},metadata:f},p,h),i(null,e={value:t},o,{kind:"class",name:t.name,metadata:f},null,l),t=e.value,f&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:f}),r(t,l)}$input=r(this,d,void 0);$value=(r(this,u),r(this,p,void 0));connectedCallback(){this.$input.addEventListener("change",this.handleChange.bind(this))}handleChange(e){var t=e.target.value;this.$value.innerText=t}constructor(){super(...arguments),r(this,h)}})})()},1393:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,":host {\n display: inline-flex;\n flex-direction: row;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},1401:(e,t,n)=>{"use strict";var a=n(3822);var i=n(8887),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o,l,c,d,u,p,h,f,g,m,v,b,y,w,x,k=[(0,a.uA)({selector:"x-pg-tooltip-basic",template:'<pg-tooltip part="tooltip1"></pg-tooltip> <pg-tooltip part="tooltip2"></pg-tooltip> <div class="example"> <div class="tooltip-grid"> <button part="tooltipSource1"></button> <button part="tooltipSource2"></button> <button part="tooltipTop"></button> <button part="tooltipTopStart"></button> <button part="tooltipTopEnd"></button> <button part="tooltipRight"></button> <button part="tooltipRightStart"></button> <button part="tooltipRightEnd"></button> <button part="tooltipBottom"></button> <button part="tooltipBottomStart"></button> <button part="tooltipBottomEnd"></button> <button part="tooltipLeft"></button> <button part="tooltipLeftStart"></button> <button part="tooltipLeftEnd"></button> </div> </div>',style:i.A})],E=[],C=HTMLElement,$=[],A=[],S=[],F=[],L=[],O=[],T=[],D=[],j=[],I=[],P=[],M=[],B=[],z=[],H=[],R=[],N=[],V=[],_=[],K=[],Y=[],q=[],U=[],G=[],Q=[],W=[],Z=[],J=[],X=[],ee=[],te=[],ne=[];(class extends C{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(C[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],o=[(0,a.eS)()],l=[(0,a.eS)()],c=[(0,a.eS)()],d=[(0,a.eS)()],u=[(0,a.eS)()],p=[(0,a.eS)()],h=[(0,a.eS)()],f=[(0,a.eS)()],g=[(0,a.eS)()],m=[(0,a.eS)()],v=[(0,a.eS)()],b=[(0,a.eS)()],y=[(0,a.eS)()],w=[(0,a.eS)()],x=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"$tooltip1",static:!1,private:!1,access:{has:e=>"$tooltip1"in e,get:e=>e.$tooltip1,set:(e,t)=>{e.$tooltip1=t}},metadata:i},$,A),r(null,null,o,{kind:"field",name:"$tooltip2",static:!1,private:!1,access:{has:e=>"$tooltip2"in e,get:e=>e.$tooltip2,set:(e,t)=>{e.$tooltip2=t}},metadata:i},S,F),r(null,null,l,{kind:"field",name:"$tooltipSource1",static:!1,private:!1,access:{has:e=>"$tooltipSource1"in e,get:e=>e.$tooltipSource1,set:(e,t)=>{e.$tooltipSource1=t}},metadata:i},L,O),r(null,null,c,{kind:"field",name:"$tooltipSource2",static:!1,private:!1,access:{has:e=>"$tooltipSource2"in e,get:e=>e.$tooltipSource2,set:(e,t)=>{e.$tooltipSource2=t}},metadata:i},T,D),r(null,null,d,{kind:"field",name:"$tooltipTop",static:!1,private:!1,access:{has:e=>"$tooltipTop"in e,get:e=>e.$tooltipTop,set:(e,t)=>{e.$tooltipTop=t}},metadata:i},j,I),r(null,null,u,{kind:"field",name:"$tooltipTopStart",static:!1,private:!1,access:{has:e=>"$tooltipTopStart"in e,get:e=>e.$tooltipTopStart,set:(e,t)=>{e.$tooltipTopStart=t}},metadata:i},P,M),r(null,null,p,{kind:"field",name:"$tooltipTopEnd",static:!1,private:!1,access:{has:e=>"$tooltipTopEnd"in e,get:e=>e.$tooltipTopEnd,set:(e,t)=>{e.$tooltipTopEnd=t}},metadata:i},B,z),r(null,null,h,{kind:"field",name:"$tooltipRight",static:!1,private:!1,access:{has:e=>"$tooltipRight"in e,get:e=>e.$tooltipRight,set:(e,t)=>{e.$tooltipRight=t}},metadata:i},H,R),r(null,null,f,{kind:"field",name:"$tooltipRightStart",static:!1,private:!1,access:{has:e=>"$tooltipRightStart"in e,get:e=>e.$tooltipRightStart,set:(e,t)=>{e.$tooltipRightStart=t}},metadata:i},N,V),r(null,null,g,{kind:"field",name:"$tooltipRightEnd",static:!1,private:!1,access:{has:e=>"$tooltipRightEnd"in e,get:e=>e.$tooltipRightEnd,set:(e,t)=>{e.$tooltipRightEnd=t}},metadata:i},_,K),r(null,null,m,{kind:"field",name:"$tooltipBottom",static:!1,private:!1,access:{has:e=>"$tooltipBottom"in e,get:e=>e.$tooltipBottom,set:(e,t)=>{e.$tooltipBottom=t}},metadata:i},Y,q),r(null,null,v,{kind:"field",name:"$tooltipBottomStart",static:!1,private:!1,access:{has:e=>"$tooltipBottomStart"in e,get:e=>e.$tooltipBottomStart,set:(e,t)=>{e.$tooltipBottomStart=t}},metadata:i},U,G),r(null,null,b,{kind:"field",name:"$tooltipBottomEnd",static:!1,private:!1,access:{has:e=>"$tooltipBottomEnd"in e,get:e=>e.$tooltipBottomEnd,set:(e,t)=>{e.$tooltipBottomEnd=t}},metadata:i},Q,W),r(null,null,y,{kind:"field",name:"$tooltipLeft",static:!1,private:!1,access:{has:e=>"$tooltipLeft"in e,get:e=>e.$tooltipLeft,set:(e,t)=>{e.$tooltipLeft=t}},metadata:i},Z,J),r(null,null,w,{kind:"field",name:"$tooltipLeftStart",static:!1,private:!1,access:{has:e=>"$tooltipLeftStart"in e,get:e=>e.$tooltipLeftStart,set:(e,t)=>{e.$tooltipLeftStart=t}},metadata:i},X,ee),r(null,null,x,{kind:"field",name:"$tooltipLeftEnd",static:!1,private:!1,access:{has:e=>"$tooltipLeftEnd"in e,get:e=>e.$tooltipLeftEnd,set:(e,t)=>{e.$tooltipLeftEnd=t}},metadata:i},te,ne),r(null,e={value:t},k,{kind:"class",name:t.name,metadata:i},null,E),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,E)}$tooltip1=s(this,$,void 0);$tooltip2=(s(this,A),s(this,S,void 0));$tooltipSource1=(s(this,F),s(this,L,void 0));$tooltipSource2=(s(this,O),s(this,T,void 0));$tooltipTop=(s(this,D),s(this,j,void 0));$tooltipTopStart=(s(this,I),s(this,P,void 0));$tooltipTopEnd=(s(this,M),s(this,B,void 0));$tooltipRight=(s(this,z),s(this,H,void 0));$tooltipRightStart=(s(this,R),s(this,N,void 0));$tooltipRightEnd=(s(this,V),s(this,_,void 0));$tooltipBottom=(s(this,K),s(this,Y,void 0));$tooltipBottomStart=(s(this,q),s(this,U,void 0));$tooltipBottomEnd=(s(this,G),s(this,Q,void 0));$tooltipLeft=(s(this,W),s(this,Z,void 0));$tooltipLeftStart=(s(this,J),s(this,X,void 0));$tooltipLeftEnd=(s(this,ee),s(this,te,void 0));connectedCallback(){const e=e=>{this.$tooltip1.position=e,this.$tooltip2.position=e,this.$tooltip1.visible=!0,this.$tooltip1.rect=this.$tooltipSource1.getBoundingClientRect(),this.$tooltip1.text="Hello World!",this.$tooltip2.visible=!0,this.$tooltip2.rect=this.$tooltipSource2.getBoundingClientRect(),this.$tooltip2.text="-"};this.$tooltipTop.addEventListener("click",(()=>{e("top")})),this.$tooltipTopStart.addEventListener("click",(()=>{e("top-start")})),this.$tooltipTopEnd.addEventListener("click",(()=>{e("top-end")})),this.$tooltipRight.addEventListener("click",(()=>{e("right")})),this.$tooltipRightStart.addEventListener("click",(()=>{e("right-start")})),this.$tooltipRightEnd.addEventListener("click",(()=>{e("right-end")})),this.$tooltipBottom.addEventListener("click",(()=>{e("bottom")})),this.$tooltipBottomStart.addEventListener("click",(()=>{e("bottom-start")})),this.$tooltipBottomEnd.addEventListener("click",(()=>{e("bottom-end")})),this.$tooltipLeft.addEventListener("click",(()=>{e("left")})),this.$tooltipLeftStart.addEventListener("click",(()=>{e("left-start")})),this.$tooltipLeftEnd.addEventListener("click",(()=>{e("left-end")}))}constructor(){super(...arguments),s(this,ne)}})})()},1457:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,'\n[part="button"] {\n position: relative;\n display: flex;\n line-height: calc(2.5rem - 0.5px);\n border-top: 1px solid transparent;\n border-right: 1px solid transparent;\n border-bottom: 0;\n border-left: 1px solid transparent;\n border-radius: 0.25rem 0.25rem 0 0;\n padding: 0 0.75rem;\n text-decoration: none;\n color: var(--pg-tab-border, #453C4F);\n align-items: center;\n align-content: center;\n box-sizing: border-box;\n outline: none;\n background: transparent;\n}\n\n[part="button"].selected {\n border-color: var(--pg-tab-border, #453C4F);\n font-weight: bold;\n background: #fff;\n cursor: default;\n height: calc(2.5rem + 0.5px);\n}\n\n[part="button"]:not(.selected):hover {\n border-color: var(--pg-tab-border, #453C4F);\n}\n\n[part="button"].selected:focus-visible {\n color: #197BE0;\n border-color: rgb(79, 143, 249);\n}\n\n[part="button"]:not(.selected):focus-visible {\n background: var(--pg-focus-color, rgb(79, 143, 249, 0.15));\n border-color: rgb(79, 143, 249);\n color: #197BE0;\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},1516:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(3822),i=n(7715);var r=n(1697),s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const l=(()=>{let e,t,n,l,c,d,u,p,h=[(0,a.uA)({selector:"pg-overlay-menu",template:'<div part="overlay"> <pg-menu part="menu"></pg-menu> </div>',style:r.A})],f=[],g=i.A,m=[],v=[],b=[],y=[],w=[],x=[],k=[],E=[],C=[],$=[],A=[],S=[];(class extends g{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(g[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],l=[(0,a.eS)()],c=[(0,a.kv)()],d=[(0,a.kv)()],u=[(0,a.kv)()],p=[(0,a.kv)()],s(null,null,n,{kind:"field",name:"$overlay",static:!1,private:!1,access:{has:e=>"$overlay"in e,get:e=>e.$overlay,set:(e,t)=>{e.$overlay=t}},metadata:i},m,v),s(null,null,l,{kind:"field",name:"$menu",static:!1,private:!1,access:{has:e=>"$menu"in e,get:e=>e.$menu,set:(e,t)=>{e.$menu=t}},metadata:i},b,y),s(null,null,c,{kind:"field",name:"source",static:!1,private:!1,access:{has:e=>"source"in e,get:e=>e.source,set:(e,t)=>{e.source=t}},metadata:i},w,x),s(null,null,d,{kind:"field",name:"default",static:!1,private:!1,access:{has:e=>"default"in e,get:e=>e.default,set:(e,t)=>{e.default=t}},metadata:i},k,E),s(null,null,u,{kind:"field",name:"items",static:!1,private:!1,access:{has:e=>"items"in e,get:e=>e.items,set:(e,t)=>{e.items=t}},metadata:i},C,$),s(null,null,p,{kind:"field",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:i},A,S),s(null,e={value:t},h,{kind:"class",name:t.name,metadata:i},null,f),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,f)}$overlay=o(this,m,void 0);$menu=(o(this,v),o(this,b,void 0));source=(o(this,y),o(this,w,null));default=(o(this,x),o(this,k,null));items=(o(this,E),o(this,C,[]));value=(o(this,$),o(this,A,null));render(e){}connectedCallback(){this.$menu.items=this.items,this.$menu.addEventListener("select",this.#H.bind(this)),this.$overlay.popover="auto",null!==this.source&&this.$overlay.showPopover({source:this.source}),this.$overlay.addEventListener("toggle",this.#R.bind(this));this.source?.getBoundingClientRect();const e=null===this.value||"object"!=typeof this.value?this.value:this.value.value,t=null===this.value?0:this.items.findIndex((t=>t.value===e));this.$menu.focus(t)}#R(e){"closed"===e.newState&&(this.close(),this.source?.focus())}disconnectedCallback(){}#H(e){e.detail.item.index=e.detail.index,this.close(e.detail.item),this.source?.focus()}constructor(){super(...arguments),o(this,S)}});return t})()},1544:e=>{"use strict";e.exports="data:image/svg+xml; utf8, <svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27><path d=%27M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z%27 fill=%27rgb%2869, 60, 79%29%27 /></svg>"},1557:(e,t,n)=>{"use strict";var a=n(3822);var i=n(9971),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n=[(0,a.uA)({selector:"x-pg-app-basic",template:'<div class="example"> <pg-app> <pg-icon slot="icon" path="M13 3H16V4H21V14H18L20 23H18L16.7998 17H13V21H11V17H7.2002L6 23H4L6 14H3V4H8V3H11V1H13V3ZM7.59961 16H11V14H8L7.59961 16ZM13 16H16.4004L16 14H13V16ZM5 12H19V6H5V12Z"></pg-icon> <div slot="top">Top Bar</div> <div slot="side"> Sidebar </div> <div slot="main"> Content Area </div> <div slot="home"> Home is the initial page containing helpful info. </div> </pg-app> </div>',style:i.A})],o=[],l=HTMLElement;(class extends l{static{t=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(l[Symbol.metadata]??null):void 0;r(null,e={value:t},n,{kind:"class",name:t.name,metadata:a},null,o),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),s(t,o)}})})()},1601:e=>{"use strict";e.exports=function(e){return e[1]}},1651:(e,t,n)=>{"use strict";var a=n(3822);var i=n(5395),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o,l,c,d,u,p,h=[(0,a.uA)({selector:"pg-button-link",style:i.A,template:'<a part="button"> <slot></slot> </a>'})],f=[],g=HTMLElement,m=[],v=[],b=[],y=[],w=[],x=[],k=[],E=[],C=[],$=[],A=[],S=[],F=[],L=[];(class extends g{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(g[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],o=[(0,a.kv)()],l=[(0,a.kv)()],c=[(0,a.kv)()],d=[(0,a.kv)()],u=[(0,a.kv)()],p=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"href",static:!1,private:!1,access:{has:e=>"href"in e,get:e=>e.href,set:(e,t)=>{e.href=t}},metadata:i},m,v),r(null,null,o,{kind:"field",name:"active",static:!1,private:!1,access:{has:e=>"active"in e,get:e=>e.active,set:(e,t)=>{e.active=t}},metadata:i},b,y),r(null,null,l,{kind:"field",name:"block",static:!1,private:!1,access:{has:e=>"block"in e,get:e=>e.block,set:(e,t)=>{e.block=t}},metadata:i},w,x),r(null,null,c,{kind:"field",name:"start",static:!1,private:!1,access:{has:e=>"start"in e,get:e=>e.start,set:(e,t)=>{e.start=t}},metadata:i},k,E),r(null,null,d,{kind:"field",name:"center",static:!1,private:!1,access:{has:e=>"center"in e,get:e=>e.center,set:(e,t)=>{e.center=t}},metadata:i},C,$),r(null,null,u,{kind:"field",name:"end",static:!1,private:!1,access:{has:e=>"end"in e,get:e=>e.end,set:(e,t)=>{e.end=t}},metadata:i},A,S),r(null,null,p,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:i},F,L),r(null,e={value:t},h,{kind:"class",name:t.name,metadata:i},null,f),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,f)}href=s(this,m,"");active=(s(this,v),s(this,b,!1));block=(s(this,y),s(this,w,!1));start=(s(this,x),s(this,k,!1));center=(s(this,E),s(this,C,!1));end=(s(this,$),s(this,A,!1));$button=(s(this,S),s(this,F,void 0));connectedCallback(){this.$button.addEventListener("click",(e=>this.dispatchEvent(new CustomEvent("click"))))}render(e){e.href&&(this.$button.href=this.href);const t=[!0,"true",""];e.active&&this.$button.classList.toggle("active",t.includes(this.active)),e.start&&this.$button.classList.toggle("start",t.includes(this.start)),e.end&&this.$button.classList.toggle("end",t.includes(this.end)),e.center&&this.$button.classList.toggle("center",t.includes(this.center)),e.block&&this.$button.classList.toggle("block",t.includes(this.block))}constructor(){super(...arguments),s(this,L)}})})()},1689:(e,t,n)=>{"use strict";var a=n(3822);var i=n(6593),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o,l,c,d,u=[(0,a.uA)({selector:"pg-input-range",style:i.A,template:'<input part="input" type="range"/>'})],p=[],h=HTMLElement,f=[],g=[],m=[],v=[],b=[],y=[],w=[],x=[],k=[],E=[];(class extends h{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],o=[(0,a.kv)()],l=[(0,a.kv)()],c=[(0,a.kv)()],d=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"min",static:!1,private:!1,access:{has:e=>"min"in e,get:e=>e.min,set:(e,t)=>{e.min=t}},metadata:i},f,g),r(null,null,o,{kind:"field",name:"max",static:!1,private:!1,access:{has:e=>"max"in e,get:e=>e.max,set:(e,t)=>{e.max=t}},metadata:i},m,v),r(null,null,l,{kind:"field",name:"step",static:!1,private:!1,access:{has:e=>"step"in e,get:e=>e.step,set:(e,t)=>{e.step=t}},metadata:i},b,y),r(null,null,c,{kind:"field",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:i},w,x),r(null,null,d,{kind:"field",name:"$input",static:!1,private:!1,access:{has:e=>"$input"in e,get:e=>e.$input,set:(e,t)=>{e.$input=t}},metadata:i},k,E),r(null,e={value:t},u,{kind:"class",name:t.name,metadata:i},null,p),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,p)}min=s(this,f,"0");max=(s(this,g),s(this,m,"100"));step=(s(this,v),s(this,b,"1"));name=(s(this,y),s(this,w,""));$input=(s(this,x),s(this,k,void 0));render(){this.$input.min=this.min,this.$input.max=this.max,this.$input.step=this.step}connectedCallback(){this.$input.addEventListener("change",this.#j.bind(this)),this.$input.addEventListener("input",this.#N.bind(this))}#j(e){e.stopPropagation();const{value:t}=e.target;this.dispatchEvent(new CustomEvent("change",{detail:{value:t,name:this.name}}))}#N(e){e.stopPropagation();const{value:t}=e.target;this.dispatchEvent(new CustomEvent("input",{detail:{value:t,name:this.name}}))}constructor(){super(...arguments),s(this,E)}})})()},1697:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: contents;\n}\n\n[part="overlay"] {\n margin: 0;\n padding: 0;\n border: 0;\n background: transparent;\n --pg-menu-box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.25);\n top: calc(anchor(bottom) - 0.25rem);\n left: anchor(left);\n min-width: calc(anchor-size(width) + calc(2 * var(--pg-menu-padding, 0.25rem)));\n translate: var(--pg-overlay-menu-_x, 0) var(--pg-overlay-menu-_y, 0);\n overflow: visible;\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},1718:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,s,o=[(0,a.uA)({selector:"x-pg-input-hex-rgb-basic",template:'<div class="example"> <pg-input-hex-rgb part="input" value="#000000"></pg-input-hex-rgb> <code>Selected: <span part="value"></span></code> </div>'})],l=[],c=HTMLElement,d=[],u=[],p=[],h=[];(class extends c{static{t=this}static{const f="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],s=[(0,a.eS)()],i(null,null,n,{kind:"field",name:"$input",static:!1,private:!1,access:{has:e=>"$input"in e,get:e=>e.$input,set:(e,t)=>{e.$input=t}},metadata:f},d,u),i(null,null,s,{kind:"field",name:"$value",static:!1,private:!1,access:{has:e=>"$value"in e,get:e=>e.$value,set:(e,t)=>{e.$value=t}},metadata:f},p,h),i(null,e={value:t},o,{kind:"class",name:t.name,metadata:f},null,l),t=e.value,f&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:f}),r(t,l)}$input=r(this,d,void 0);$value=(r(this,u),r(this,p,void 0));connectedCallback(){this.$input.addEventListener("change",this.handleChange.bind(this))}handleChange(e){var{value:t}=e.target;this.$value.innerText=`${t}`}constructor(){super(...arguments),r(this,h)}})})()},1771:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,'[part="debug"] {\n background: #555;\n padding: 1rem;\n display: flex;\n}\n\n[part="debug"] canvas {\n border: 1px solid #FFF;\n}\n\n[part="value1"] {\n word-wrap: break-word;\n}\n\n.props {\n display: flex;\n flex-direction: row;\n margin-bottom: 0.5rem;\n}\n\nlabel {\n display: flex;\n flex-direction: column;\n}\n\nh3 {\n margin: 0.25rem 0;\n font-size: 1.125rem;\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},1785:(e,t,n)=>{"use strict";var a=n(3822);var i=n(4175),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o,l,c,d=[(0,a.uA)({selector:"pg-input-check",style:i.A,template:'<button part="button"> <svg part="svg" viewBox="0 0 24 24"> <path part="path" fill="currentColor" d="M19 19L5 19V5H15V3H5C3.89 3 3 3.89 3 5V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V11H19"/> <path part="check" fill="currentColor" d="M7.91 10.08L6.5 11.5L11 16L21 6L19.59 4.58L11 13.17L7.91 10.08Z"/> </svg> </button>'})],u=[],p=HTMLElement,h=[],f=[],g=[],m=[],v=[],b=[],y=[],w=[];(class extends p{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],o=[(0,a.kv)()],l=[(0,a.eS)()],c=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:i},h,f),r(null,null,o,{kind:"field",name:"disabled",static:!1,private:!1,access:{has:e=>"disabled"in e,get:e=>e.disabled,set:(e,t)=>{e.disabled=t}},metadata:i},g,m),r(null,null,l,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:i},v,b),r(null,null,c,{kind:"field",name:"$path",static:!1,private:!1,access:{has:e=>"$path"in e,get:e=>e.$path,set:(e,t)=>{e.$path=t}},metadata:i},y,w),r(null,e={value:t},d,{kind:"class",name:t.name,metadata:i},null,u),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,u)}value=s(this,h,!1);disabled=(s(this,f),s(this,g,!1));$button=(s(this,m),s(this,v,void 0));$path=(s(this,b),s(this,y,void 0));connectedCallback(){this.$button.addEventListener("click",this.handleClick.bind(this))}handleClick(){const e=[!0,"true"].includes(this.value);this.value=!e,this.dispatchEvent(new CustomEvent("change"))}render(e){if(e.value){const e=[!0,"true"].includes(this.value);this.$path.setAttribute("d",e?"M19 19L5 19V5H15V3H5C3.89 3 3 3.89 3 5V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V11H19":"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z"),this.$button.classList.toggle("blank",!e),this.$button.classList.toggle("checked",e)}e.disabled&&(this.$button.disabled=["",!0,"true"].includes(this.disabled))}constructor(){super(...arguments),s(this,w)}})})()},1833:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,s,o,l=[(0,a.uA)({selector:"x-pg-input-text-basic",template:'<div class="example"> <pg-input-text part="input" value="Hello World!"></pg-input-text> <div> <code>onchange: <span part="value1"></span></code> </div> <div> <code>oninput: <span part="value2"></span></code> </div> </div>'})],c=[],d=HTMLElement,u=[],p=[],h=[],f=[],g=[],m=[];(class extends d{static{t=this}static{const v="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],s=[(0,a.eS)()],o=[(0,a.eS)()],i(null,null,n,{kind:"field",name:"$input",static:!1,private:!1,access:{has:e=>"$input"in e,get:e=>e.$input,set:(e,t)=>{e.$input=t}},metadata:v},u,p),i(null,null,s,{kind:"field",name:"$value1",static:!1,private:!1,access:{has:e=>"$value1"in e,get:e=>e.$value1,set:(e,t)=>{e.$value1=t}},metadata:v},h,f),i(null,null,o,{kind:"field",name:"$value2",static:!1,private:!1,access:{has:e=>"$value2"in e,get:e=>e.$value2,set:(e,t)=>{e.$value2=t}},metadata:v},g,m),i(null,e={value:t},l,{kind:"class",name:t.name,metadata:v},null,c),t=e.value,v&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:v}),r(t,c)}$input=r(this,u,void 0);$value1=(r(this,p),r(this,h,void 0));$value2=(r(this,f),r(this,g,void 0));connectedCallback(){this.$input.addEventListener("change",this.#j.bind(this)),this.$input.addEventListener("input",this.#N.bind(this))}#j(e){const{value:t}=e.detail;this.$value1.textContent=t}#N(e){const{value:t}=e.detail;this.$value2.textContent=t}constructor(){super(...arguments),r(this,m)}})})()},1995:(e,t,n)=>{"use strict";var a=n(3822);var i=n(8277),r=n(9557),s=(n(4945),function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0}),o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,l,c=[(0,a.uA)({selector:"pg-input-text-icon",style:i.A,template:'<div part="grid"> <parent/> <pg-icon part="icon"></pg-icon> </div>'})],d=[],u=r.A,p=[],h=[],f=[],g=[];(class extends u{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],l=[(0,a.eS)()],s(null,null,n,{kind:"field",name:"path",static:!1,private:!1,access:{has:e=>"path"in e,get:e=>e.path,set:(e,t)=>{e.path=t}},metadata:i},p,h),s(null,null,l,{kind:"field",name:"$icon",static:!1,private:!1,access:{has:e=>"$icon"in e,get:e=>e.$icon,set:(e,t)=>{e.$icon=t}},metadata:i},f,g),s(null,e={value:t},c,{kind:"class",name:t.name,metadata:i},null,d),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,d)}path=o(this,p,"M3,3V21H21V3");$icon=(o(this,h),o(this,f,void 0));render(e){e.path&&(this.$icon.path=this.path)}constructor(){super(...arguments),o(this,g)}})})()},2133:(e,t,n)=>{"use strict";var a=n(3822);var i=n(2967),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const o="ArrowUp",l="ArrowRight",c="ArrowDown",d="ArrowLeft";(()=>{let e,t,n,u,p,h,f,g,m,v,b,y=[(0,a.uA)({selector:"pg-grid",style:i.A,template:'<div part="none"> <slot></slot> </div> <pg-scroll part="scroll"> <div part="grid"></div> </pg-scroll>'})],w=[],x=HTMLElement,k=[],E=[],C=[],$=[],A=[],S=[],F=[],L=[],O=[],T=[],D=[],j=[],I=[],P=[],M=[],B=[],z=[],H=[];(class extends x{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(x[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],u=[(0,a.kv)()],p=[(0,a.kv)()],h=[(0,a.kv)()],f=[(0,a.kv)()],g=[(0,a.kv)()],m=[(0,a.eS)()],v=[(0,a.eS)()],b=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"icons",static:!1,private:!1,access:{has:e=>"icons"in e,get:e=>e.icons,set:(e,t)=>{e.icons=t}},metadata:i},k,E),r(null,null,u,{kind:"field",name:"size",static:!1,private:!1,access:{has:e=>"size"in e,get:e=>e.size,set:(e,t)=>{e.size=t}},metadata:i},C,$),r(null,null,p,{kind:"field",name:"padding",static:!1,private:!1,access:{has:e=>"padding"in e,get:e=>e.padding,set:(e,t)=>{e.padding=t}},metadata:i},A,S),r(null,null,h,{kind:"field",name:"gap",static:!1,private:!1,access:{has:e=>"gap"in e,get:e=>e.gap,set:(e,t)=>{e.gap=t}},metadata:i},F,L),r(null,null,f,{kind:"field",name:"width",static:!1,private:!1,access:{has:e=>"width"in e,get:e=>e.width,set:(e,t)=>{e.width=t}},metadata:i},O,T),r(null,null,g,{kind:"field",name:"height",static:!1,private:!1,access:{has:e=>"height"in e,get:e=>e.height,set:(e,t)=>{e.height=t}},metadata:i},D,j),r(null,null,m,{kind:"field",name:"$none",static:!1,private:!1,access:{has:e=>"$none"in e,get:e=>e.$none,set:(e,t)=>{e.$none=t}},metadata:i},I,P),r(null,null,v,{kind:"field",name:"$scroll",static:!1,private:!1,access:{has:e=>"$scroll"in e,get:e=>e.$scroll,set:(e,t)=>{e.$scroll=t}},metadata:i},M,B),r(null,null,b,{kind:"field",name:"$grid",static:!1,private:!1,access:{has:e=>"$grid"in e,get:e=>e.$grid,set:(e,t)=>{e.$grid=t}},metadata:i},z,H),r(null,e={value:t},y,{kind:"class",name:t.name,metadata:i},null,w),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,w)}icons=s(this,k,[]);size=(s(this,E),s(this,C,24));padding=(s(this,$),s(this,A,8));gap=(s(this,S),s(this,F,4));width=(s(this,L),s(this,O,"auto"));height=(s(this,T),s(this,D,"auto"));$none=(s(this,j),s(this,I,void 0));$scroll=(s(this,P),s(this,M,void 0));$grid=(s(this,B),s(this,z,void 0));currentCount=(s(this,H),0);currentSize=0;currentPadding=0;currentGap=0;rowHeight=0;items=[];svg="http://www.w3.org/2000/svg";columns;debounceRender=((e,t)=>{let n;return(...a)=>new Promise((i=>{n&&clearTimeout(n),n=setTimeout((()=>i(e(...a))),t)}))})((()=>this.render({})),300);color="svg";resizeObserver=new ResizeObserver((()=>{this.debounceRender()}));connectedCallback(){this.resizeObserver.observe(this.$grid),this.addEventListener("mousemove",this.handleTooltip.bind(this)),this.addEventListener("mouseleave",(e=>{this.index=-2,this.handleTooltip(e)})),this.$scroll.addEventListener("calculate",(e=>{const{offsetY:t,height:n,viewWidth:a,viewHeight:i}=e.detail;this.calculate(t,n,a,i)}))}getMetaFromMouse(e){const{width:t,height:n,gap:a,extra:i}=this.getIconMetrics();var r=e.target.getBoundingClientRect();const s=e.clientX-r.left,o=e.clientY-r.top;console.log(s,o);const l=this.getColumnFromX(s,t,a,i),c=this.getRowFromY(o,n,a,i),d=-1!==l&&-1!==c?l+c*this.columns:-1,u=t+a+(l-1)*t+l*(a+i),p=c*n+(c+1)*a;return{gridX:u,gridY:p,x:u+r.left,y:p+r.top,width:t,height:n,column:l,row:c,gap:a,extra:i,index:d,icon:this.icons[d]}}getColumnFromX(e,t,n,a){if((e=Math.round(e))<n)return-1;if(e<=t+n)return 0;const i=Math.floor((e-t-n)/(t+n+a))+1;return e-i*(t+n+a)<n+a?-1:i}getRowFromY(e,t,n,a){if(e<n)return-1;if(e<=t+n)return 0;const i=Math.floor((e-t-n)/(t+n))+1;return e-i*(t+n)<n?-1:i}index=0;hoverLast=0;handleTooltip(e){const t=this.getMetaFromMouse(e),{column:n,index:a}=t;this.hoverLast>=0&&this.items[this.hoverLast][0].classList.toggle("hover",!1);var i=a-this.currentRow*this.columns;i>=0&&(this.items[i][0].classList.toggle("hover",!0),this.hoverLast=i),this.index!==a&&(-1===a||-2===this.index?(t.index=this.index,this.hideTooltip(this.icons[this.index],t),this.index=-1):this.icons[a]&&(n>this.columns-1?(t.index=this.index,this.hideTooltip(this.icons[this.index],t),this.index=-1):(this.showTooltip(this.icons[a],t),this.index=a)))}updateHover(){this.items[this.index][0].classList.toggle("hover",!1)}syncVirtual(e){for(let t=this.currentCount;t<e;t++){this.currentCount=t+1;const e=document.createElement("button");e.dataset.index=`${t}`,e.addEventListener("click",(()=>{const e=t+this.columns*this.currentRow;this.handleClick(this.icons[e])})),e.addEventListener("keydown",(e=>{const n=t+this.columns*this.currentRow;this.moveFocus(e,n)})),e.addEventListener("contextmenu",(e=>{var n=this.$grid.getBoundingClientRect();const a=Math.floor(e.clientX-n.left),i=Math.floor(e.clientY-n.top);this.showContextMenu(t,a,i),e.preventDefault()}));const n=document.createElementNS(this.svg,"svg");n.setAttribute("viewBox","0 0 24 24");const a=document.createElementNS(this.svg,"path");n.appendChild(a),e.appendChild(n),this.$grid.appendChild(e),this.items.push([e,n,a])}for(let t=this.currentCount;t>e;t--){const e=this.items.pop();this.$grid.removeChild(e[0]),this.currentCount--}const{size:t,padding:n,gap:a,width:i,height:r,rowHeight:s,scrollWidth:o,extra:l}=this.getIconMetrics();let c=a,d=a;this.items.forEach((([e,s],o)=>{e.style.padding=`${n}px`,e.style.width=`${i}px`,e.style.height=`${r}px`,e.style.transform=`translate(${c}px, ${d}px)`,s.style.width=`${t}px`,s.style.height=`${t}px`,c+=i+a+l,o%this.columns==this.columns-1&&(d+=r+a,c=a)}))}currentRow=0;timeouts=[];cacheHeight=0;cacheViewWidth=0;calculate(e,t,n,a){const i=this.rowHeight,r=this.icons.length,s=Math.ceil(a/i)+1,o=Math.floor(e/i);this.$grid.style.transform=`translateY(${-1*e%i}px)`,this.cacheHeight===t&&this.cacheViewWidth===n||(this.syncVirtual(s*this.columns),this.cacheHeight=t,this.cacheViewWidth=n),this.currentRow!==o&&(this.items.forEach((([e,t,n],a)=>{const i=a+o*this.columns;i<r?(n.setAttribute("d",this.icons[i].data),e.style.display="block"):e.style.display="none"})),this.currentRow=o)}getIconMetrics(){const e=parseInt(this.size,10),t=parseInt(this.padding,10),n=parseInt(this.gap,10),{width:a}=this.$scroll.getBoundingClientRect(),i=e+2*t,r=i+n;return{size:e,padding:t,gap:n,width:i,height:i,rowHeight:r,extra:(a-n-r*this.columns)/(this.columns-1),scrollWidth:a}}calculateColumns(e,t){const n=e-this.currentGap,a=Math.floor(n/t);return a>0?a:1}render(e){const{size:t,padding:n,gap:a,rowHeight:i,scrollWidth:r}=this.getIconMetrics();this.currentSize===t&&this.currentPadding===n&&this.currentGap===a||(this.currentSize=t,this.currentPadding=n,this.currentGap=a,this.rowHeight=i);const s=this.calculateColumns(r,i);this.columns!==s&&(this.columns=s);const o=this.icons.length;if(o){const e=Math.ceil(o/this.columns);this.currentRow=-1,console.log("---",a+e*i),console.log("init",this.$scroll.height),this.$scroll.setAttribute("height",(a+e*i).toString())}else this.$scroll.setAttribute("height","0");this.$none.classList.toggle("show",0===o)}moveFocus(e,t){let n;switch(e.key){case d:n=t-1,n>=0&&(this.items[n][0].focus(),e.preventDefault());break;case o:n=t-this.columns,n>=0&&(this.items[n][0].focus(),e.preventDefault());break;case l:n=t+1,n<this.icons.length&&(this.items[n][0].focus(),e.preventDefault());break;case c:n=t+this.columns,n<this.icons.length?(this.items[n][0].focus(),e.preventDefault()):n!==this.icons.length-1&&(this.items[this.icons.length-1][0].focus(),e.preventDefault())}}handleClick(e){this.dispatchEvent(new CustomEvent("select",{detail:e}))}canOpenTooltip=!0;preventClose=!1;currentIndex=0;showContextMenu(e,t,n){this.dispatchEvent(new CustomEvent("openmenu"))}hideContextMenu(){this.dispatchEvent(new CustomEvent("closemenu")),this.canOpenTooltip=!0}showTooltip(e,t){this.canOpenTooltip&&this.dispatchEvent(new CustomEvent("entericon",{detail:t}))}hideTooltip(e,t){this.dispatchEvent(new CustomEvent("leaveicon",{detail:t}))}getPositionFromIndex(e){return{x:e%this.columns,y:Math.floor(e/this.columns)}}})})()},2246:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,s,o,l=[(0,a.uA)({selector:"x-pg-button-toggle-persist",template:'<div class="example"> <p>click to toggle and persist state in LocalStorage</p> <pg-button-toggle part="button"> <pg-icon slot="inactive" path="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"></pg-icon> <pg-icon slot="active" path="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"></pg-icon> </pg-button-toggle> <div> <code>button onclick: <code part="value"></code></code> </div> </div>'})],c=[],d=HTMLElement,u=[],p=[],h=[],f=[],g=[],m=[];(class extends d{static{t=this}static{const v="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],s=[(0,a.eS)()],o=[(0,a.Yr)("example")],i(null,null,n,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:v},u,p),i(null,null,s,{kind:"field",name:"$value",static:!1,private:!1,access:{has:e=>"$value"in e,get:e=>e.$value,set:(e,t)=>{e.$value=t}},metadata:v},h,f),i(null,null,o,{kind:"field",name:"#store",static:!1,private:!0,access:{has:e=>#V in e,get:e=>e.#V,set:(e,t)=>{e.#V=t}},metadata:v},g,m),i(null,e={value:t},l,{kind:"class",name:t.name,metadata:v},null,c),t=e.value,v&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:v}),r(t,c)}$button=r(this,u,void 0);$value=(r(this,p),r(this,h,void 0));#V=(r(this,f),r(this,g,new Map([["toggle",!1]])));connectedCallback(){this.$button.addEventListener("click",this.#e.bind(this)),this.#V.get("toggle")&&(this.$button.active=!0,this.$value.textContent="true")}#e(e){const{active:t}=e.detail;this.$value.textContent=`${t}`,this.#V.set("toggle",t)}constructor(){super(...arguments),r(this,m)}})})()},2248:(e,t,n)=>{"use strict";var a=n(3822);var i=n(3841),r=n(8928),s=(n(9915),n(9638),function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0}),o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,l,c,d,u,p,h,f=[(0,a.uA)({selector:"pg-card-user",style:i.A,template:'<pg-card> <div part="loading"> Loading... </div> <div part="user"> <pg-avatar part="avatar"></pg-avatar> <div part="name"></div> <div part="iconCount"> <div part="iconCountValue"></div> <div part="iconCountLabel">Icons</div> </div> <a part="github"> <svg viewBox="0 0 24 24"> <path fill="currentColor" d="M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z"/> </svg> </a> </div> </pg-card>'})],g=[],m=HTMLElement,v=[],b=[],y=[],w=[],x=[],k=[],E=[],C=[],$=[],A=[],S=[],F=[],L=[],O=[];(class extends m{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],l=[(0,a.eS)()],c=[(0,a.eS)()],d=[(0,a.eS)()],u=[(0,a.eS)()],p=[(0,a.eS)()],h=[(0,a.eS)()],s(null,null,n,{kind:"field",name:"user",static:!1,private:!1,access:{has:e=>"user"in e,get:e=>e.user,set:(e,t)=>{e.user=t}},metadata:i},v,b),s(null,null,l,{kind:"field",name:"$loading",static:!1,private:!1,access:{has:e=>"$loading"in e,get:e=>e.$loading,set:(e,t)=>{e.$loading=t}},metadata:i},y,w),s(null,null,c,{kind:"field",name:"$user",static:!1,private:!1,access:{has:e=>"$user"in e,get:e=>e.$user,set:(e,t)=>{e.$user=t}},metadata:i},x,k),s(null,null,d,{kind:"field",name:"$name",static:!1,private:!1,access:{has:e=>"$name"in e,get:e=>e.$name,set:(e,t)=>{e.$name=t}},metadata:i},E,C),s(null,null,u,{kind:"field",name:"$github",static:!1,private:!1,access:{has:e=>"$github"in e,get:e=>e.$github,set:(e,t)=>{e.$github=t}},metadata:i},$,A),s(null,null,p,{kind:"field",name:"$iconCountValue",static:!1,private:!1,access:{has:e=>"$iconCountValue"in e,get:e=>e.$iconCountValue,set:(e,t)=>{e.$iconCountValue=t}},metadata:i},S,F),s(null,null,h,{kind:"field",name:"$avatar",static:!1,private:!1,access:{has:e=>"$avatar"in e,get:e=>e.$avatar,set:(e,t)=>{e.$avatar=t}},metadata:i},L,O),s(null,e={value:t},f,{kind:"class",name:t.name,metadata:i},null,g),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,g)}user=o(this,v,null);$loading=(o(this,b),o(this,y,void 0));$user=(o(this,w),o(this,x,void 0));$name=(o(this,k),o(this,E,void 0));$github=(o(this,C),o(this,$,void 0));$iconCountValue=(o(this,A),o(this,S,void 0));$avatar=(o(this,F),o(this,L,void 0));connectedCallback(){(0,r.f)(this.$github,(()=>`View ${this.user?.github} on GitHub`))}render(e){e.user&&this.user?(this.$avatar.user=this.user,this.$name.innerText=`${this.user.name}`,this.$iconCountValue.innerText=`${this.user.iconCount}`,this.$github.href=`https://github.com/${this.user.github}`,this.$github.style.setProperty("display",this.user.github?null:"none"),this.$user.style.setProperty("display",null),this.$loading.style.setProperty("display","none")):(this.$user.style.setProperty("display","none"),this.$loading.style.setProperty("display",null))}constructor(){super(...arguments),o(this,O)}})})()},2281:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n=[(0,a.uA)({selector:"x-pg-header-basic",template:'<div class="example"> <pg-header logo="M2,2H8V4H16V2H22V8H20V16H22V22H16V20H8V22H2V16H4V8H2V2M16,8V6H8V8H6V16H8V18H16V16H18V8H16M4,4V6H6V4H4M18,4V6H20V4H18M4,18V20H6V18H4M18,18V20H20V18H18Z" name="Material Design Icons"> <pg-search slot="search"></pg-search> <pg-nav slot="nav"></pg-nav> </pg-header></div>'})],s=[],o=HTMLElement;(class extends o{static{t=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;i(null,e={value:t},n,{kind:"class",name:t.name,metadata:a},null,s),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),r(t,s)}})})()},2397:(e,t,n)=>{"use strict";var a=n(3822),i=n(9406);var r=n(6833),s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,l,c,d=[(0,a.uA)({selector:"pg-list-tag",style:r.A,template:'<div part="items"></div>'})],u=[],p=HTMLElement,h=[],f=[],g=[],m=[],v=[],b=[];(class extends p{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],l=[(0,a.kv)()],c=[(0,a.eS)()],s(null,null,n,{kind:"field",name:"items",static:!1,private:!1,access:{has:e=>"items"in e,get:e=>e.items,set:(e,t)=>{e.items=t}},metadata:i},h,f),s(null,null,l,{kind:"field",name:"edit",static:!1,private:!1,access:{has:e=>"edit"in e,get:e=>e.edit,set:(e,t)=>{e.edit=t}},metadata:i},g,m),s(null,null,c,{kind:"field",name:"$items",static:!1,private:!1,access:{has:e=>"$items"in e,get:e=>e.$items,set:(e,t)=>{e.$items=t}},metadata:i},v,b),s(null,e={value:t},d,{kind:"class",name:t.name,metadata:i},null,u),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,u)}items=o(this,h,[]);edit=(o(this,f),o(this,g,!1));$items=(o(this,m),o(this,v,void 0));render(e){e.items&&(0,i.p)(this.$items,this.items,"id",(e=>{const t=(0,a.rH)('<button part="name"> </button>',{name:{innerText:e.name}}),n=t.querySelector('[part="name"]');return n?.addEventListener("click",(t=>{console.log(e)})),t}),((e,t)=>{})),e.edit}constructor(){super(...arguments),o(this,b)}})})()},2410:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n=[(0,a.uA)({selector:"x-pg-card-basic",template:'<div class="example"> <pg-card> <p>Content</p> </pg-card> </div>'})],s=[],o=HTMLElement;(class extends o{static{t=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;i(null,e={value:t},n,{kind:"class",name:t.name,metadata:a},null,s),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),r(t,s)}})})()},2424:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,s,o,l,c,d,u,p,h,f,g,m,v,b,y,w,x=[(0,a.uA)({selector:"x-pg-grid-basic",template:'<pg-tooltip part="tooltip"></pg-tooltip> <p> <button part="button0">Render 0</button> <button part="button1">Render 1</button> <button part="button10">Render 10</button> <button part="button50">Render 50</button> <button part="button250">Render 250</button> <button part="buttonAll">Render 5000+</button> </p> <p> <label> Size (<span part="sizeText">24</span>): <input part="size" type="range" min="24" max="96" step="4" value="24"/> </label> <label> Padding (<span part="paddingText">8</span>): <input part="padding" type="range" min="0" max="24" step="2" value="8"/> </label> <label> Gap (<span part="gapText">4</span>): <input part="gap" type="range" min="0" max="16" step="2" value="4"/> </label> </p> <div class="example"> <pg-database part="database"></pg-database> <pg-grid part="grid"> <p>No Icons Found! default slot content</p> </pg-grid> </div>'})],k=[],E=HTMLElement,C=[],$=[],A=[],S=[],F=[],L=[],O=[],T=[],D=[],j=[],I=[],P=[],M=[],B=[],z=[],H=[],R=[],N=[],V=[],_=[],K=[],Y=[],q=[],U=[],G=[],Q=[],W=[],Z=[],J=[],X=[],ee=[],te=[];(class extends E{static{t=this}static{const ne="function"==typeof Symbol&&Symbol.metadata?Object.create(E[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],s=[(0,a.eS)()],o=[(0,a.eS)()],l=[(0,a.eS)()],c=[(0,a.eS)()],d=[(0,a.eS)()],u=[(0,a.eS)()],p=[(0,a.eS)()],h=[(0,a.eS)()],f=[(0,a.eS)()],g=[(0,a.eS)()],m=[(0,a.eS)()],v=[(0,a.eS)()],b=[(0,a.eS)()],y=[(0,a.eS)()],w=[(0,a.eS)()],i(null,null,n,{kind:"field",name:"fontId",static:!1,private:!1,access:{has:e=>"fontId"in e,get:e=>e.fontId,set:(e,t)=>{e.fontId=t}},metadata:ne},C,$),i(null,null,s,{kind:"field",name:"$button0",static:!1,private:!1,access:{has:e=>"$button0"in e,get:e=>e.$button0,set:(e,t)=>{e.$button0=t}},metadata:ne},A,S),i(null,null,o,{kind:"field",name:"$button1",static:!1,private:!1,access:{has:e=>"$button1"in e,get:e=>e.$button1,set:(e,t)=>{e.$button1=t}},metadata:ne},F,L),i(null,null,l,{kind:"field",name:"$button10",static:!1,private:!1,access:{has:e=>"$button10"in e,get:e=>e.$button10,set:(e,t)=>{e.$button10=t}},metadata:ne},O,T),i(null,null,c,{kind:"field",name:"$button50",static:!1,private:!1,access:{has:e=>"$button50"in e,get:e=>e.$button50,set:(e,t)=>{e.$button50=t}},metadata:ne},D,j),i(null,null,d,{kind:"field",name:"$button250",static:!1,private:!1,access:{has:e=>"$button250"in e,get:e=>e.$button250,set:(e,t)=>{e.$button250=t}},metadata:ne},I,P),i(null,null,u,{kind:"field",name:"$buttonAll",static:!1,private:!1,access:{has:e=>"$buttonAll"in e,get:e=>e.$buttonAll,set:(e,t)=>{e.$buttonAll=t}},metadata:ne},M,B),i(null,null,p,{kind:"field",name:"$sizeText",static:!1,private:!1,access:{has:e=>"$sizeText"in e,get:e=>e.$sizeText,set:(e,t)=>{e.$sizeText=t}},metadata:ne},z,H),i(null,null,h,{kind:"field",name:"$paddingText",static:!1,private:!1,access:{has:e=>"$paddingText"in e,get:e=>e.$paddingText,set:(e,t)=>{e.$paddingText=t}},metadata:ne},R,N),i(null,null,f,{kind:"field",name:"$gapText",static:!1,private:!1,access:{has:e=>"$gapText"in e,get:e=>e.$gapText,set:(e,t)=>{e.$gapText=t}},metadata:ne},V,_),i(null,null,g,{kind:"field",name:"$size",static:!1,private:!1,access:{has:e=>"$size"in e,get:e=>e.$size,set:(e,t)=>{e.$size=t}},metadata:ne},K,Y),i(null,null,m,{kind:"field",name:"$padding",static:!1,private:!1,access:{has:e=>"$padding"in e,get:e=>e.$padding,set:(e,t)=>{e.$padding=t}},metadata:ne},q,U),i(null,null,v,{kind:"field",name:"$gap",static:!1,private:!1,access:{has:e=>"$gap"in e,get:e=>e.$gap,set:(e,t)=>{e.$gap=t}},metadata:ne},G,Q),i(null,null,b,{kind:"field",name:"$database",static:!1,private:!1,access:{has:e=>"$database"in e,get:e=>e.$database,set:(e,t)=>{e.$database=t}},metadata:ne},W,Z),i(null,null,y,{kind:"field",name:"$grid",static:!1,private:!1,access:{has:e=>"$grid"in e,get:e=>e.$grid,set:(e,t)=>{e.$grid=t}},metadata:ne},J,X),i(null,null,w,{kind:"field",name:"$tooltip",static:!1,private:!1,access:{has:e=>"$tooltip"in e,get:e=>e.$tooltip,set:(e,t)=>{e.$tooltip=t}},metadata:ne},ee,te),i(null,e={value:t},x,{kind:"class",name:t.name,metadata:ne},null,k),t=e.value,ne&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:ne}),r(t,k)}fontId=r(this,C,"D051337E-BC7E-11E5-A4E9-842B2B6CFE1B");$button0=(r(this,$),r(this,A,void 0));$button1=(r(this,S),r(this,F,void 0));$button10=(r(this,L),r(this,O,void 0));$button50=(r(this,T),r(this,D,void 0));$button250=(r(this,j),r(this,I,void 0));$buttonAll=(r(this,P),r(this,M,void 0));$sizeText=(r(this,B),r(this,z,void 0));$paddingText=(r(this,H),r(this,R,void 0));$gapText=(r(this,N),r(this,V,void 0));$size=(r(this,_),r(this,K,void 0));$padding=(r(this,Y),r(this,q,void 0));$gap=(r(this,U),r(this,G,void 0));$database=(r(this,Q),r(this,W,void 0));$grid=(r(this,Z),r(this,J,void 0));$tooltip=(r(this,X),r(this,ee,void 0));icons=(r(this,te),[]);connectedCallback(){this.$button0.addEventListener("click",(()=>{this.setIcons(0)})),this.$button1.addEventListener("click",(()=>{this.setIcons(1)})),this.$button10.addEventListener("click",(()=>{this.setIcons(10)})),this.$button50.addEventListener("click",(()=>{this.setIcons(50)})),this.$button250.addEventListener("click",(()=>{this.setIcons(250)})),this.$buttonAll.addEventListener("click",(()=>{this.setIcons(-1)})),this.$size.addEventListener("input",this.handleSize.bind(this)),this.$padding.addEventListener("input",this.handlePadding.bind(this)),this.$gap.addEventListener("input",this.handleGap.bind(this)),this.$database.addEventListener("sync",this.handleSync.bind(this)),this.$database.font=this.fontId,this.addEventListener("tooltip",this.handleTooltip.bind(this))}handleTooltip(e){const{visible:t,rect:n,text:a,position:i}=e.detail;this.$tooltip.visible=t,this.$tooltip.rect=n,this.$tooltip.text=a,this.$tooltip.position=i,e.stopPropagation()}setIcons(e){-1===e&&(this.$grid.icons=this.icons),this.$grid.icons.push(...this.icons.slice(0,e))}async handleSync(e){const{db:t}=e.detail,n=await t.getCount(this.fontId);console.log("Total Icons",n);const a=await t.getIcons(this.fontId);console.log("Icon Objects:",a.length),this.icons=a,this.setIcons(10)}handleSize(e){this.$grid.size=e.target.value,this.$sizeText.innerText=e.target.value}handlePadding(e){this.$grid.padding=e.target.value,this.$paddingText.innerText=e.target.value}handleGap(e){this.$grid.gap=e.target.value,this.$gapText.innerText=e.target.value}})})()},2505:(e,t,n)=>{"use strict";var a=n(3822);var i=n(2937),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o,l=[(0,a.uA)({selector:"pg-tab",style:i.A,template:'<div part="tab"> <slot></slot> </div>'})],c=[],d=HTMLElement,u=[],p=[],h=[],f=[];(class extends d{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],o=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"label",static:!1,private:!1,access:{has:e=>"label"in e,get:e=>e.label,set:(e,t)=>{e.label=t}},metadata:i},u,p),r(null,null,o,{kind:"field",name:"$tab",static:!1,private:!1,access:{has:e=>"$tab"in e,get:e=>e.$tab,set:(e,t)=>{e.$tab=t}},metadata:i},h,f),r(null,e={value:t},l,{kind:"class",name:t.name,metadata:i},null,c),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,c)}label=s(this,u,"");$tab=(s(this,p),s(this,h,void 0));connectedCallback(){}show(){this.$tab.classList.add("active")}hide(){this.$tab.classList.remove("active")}render(e){e.label&&this.dispatchEvent(new CustomEvent("tab",{detail:{label:this.label},bubbles:!0}))}constructor(){super(...arguments),s(this,f)}})})()},2510:(e,t,n)=>{"use strict";var a=n(3822);const i=[{name:"Red",camel:"red",colors:[{name:"50",hex:"FFEBEE"},{name:"100",hex:"FFCDD2"},{name:"200",hex:"EF9A9A"},{name:"300",hex:"E57373"},{name:"400",hex:"EF5350"},{name:"500",hex:"F44336"},{name:"600",hex:"E53935"},{name:"700",hex:"D32F2F"},{name:"800",hex:"C62828"},{name:"900",hex:"B71C1C"},{name:"A100",hex:"FF8A80"},{name:"A200",hex:"FF5252"},{name:"A400",hex:"FF1744"},{name:"A700",hex:"D50000"}]},{name:"Pink",camel:"pink",colors:[{name:"50",hex:"FCE4EC"},{name:"100",hex:"F8BBD0"},{name:"200",hex:"F48FB1"},{name:"300",hex:"F06292"},{name:"400",hex:"EC407A"},{name:"500",hex:"E91E63"},{name:"600",hex:"D81B60"},{name:"700",hex:"C2185B"},{name:"800",hex:"AD1457"},{name:"900",hex:"880E4F"},{name:"A100",hex:"FF80AB"},{name:"A200",hex:"FF4081"},{name:"A400",hex:"F50057"},{name:"A700",hex:"C51162"}]},{name:"Purple",camel:"purple",colors:[{name:"50",hex:"F3E5F5"},{name:"100",hex:"E1BEE7"},{name:"200",hex:"CE93D8"},{name:"300",hex:"BA68C8"},{name:"400",hex:"AB47BC"},{name:"500",hex:"9C27B0"},{name:"600",hex:"8E24AA"},{name:"700",hex:"7B1FA2"},{name:"800",hex:"6A1B9A"},{name:"900",hex:"4A148C"},{name:"A100",hex:"EA80FC"},{name:"A200",hex:"E040FB"},{name:"A400",hex:"D500F9"},{name:"A700",hex:"AA00FF"}]},{name:"Deep Purple",camel:"deepPurple",colors:[{name:"50",hex:"EDE7F6"},{name:"100",hex:"D1C4E9"},{name:"200",hex:"B39DDB"},{name:"300",hex:"9575CD"},{name:"400",hex:"7E57C2"},{name:"500",hex:"673AB7"},{name:"600",hex:"5E35B1"},{name:"700",hex:"512DA8"},{name:"800",hex:"4527A0"},{name:"900",hex:"311B92"},{name:"A100",hex:"B388FF"},{name:"A200",hex:"7C4DFF"},{name:"A400",hex:"651FFF"},{name:"A700",hex:"6200EA"}]},{name:"Indigo",camel:"indigo",colors:[{name:"50",hex:"E8EAF6"},{name:"100",hex:"C5CAE9"},{name:"200",hex:"9FA8DA"},{name:"300",hex:"7986CB"},{name:"400",hex:"5C6BC0"},{name:"500",hex:"3F51B5"},{name:"600",hex:"3949AB"},{name:"700",hex:"303F9F"},{name:"800",hex:"283593"},{name:"900",hex:"1A237E"},{name:"A100",hex:"8C9EFF"},{name:"A200",hex:"536DFE"},{name:"A400",hex:"3D5AFE"},{name:"A700",hex:"304FFE"}]},{name:"Blue",camel:"blue",colors:[{name:"50",hex:"E3F2FD"},{name:"100",hex:"BBDEFB"},{name:"200",hex:"90CAF9"},{name:"300",hex:"64B5F6"},{name:"400",hex:"42A5F5"},{name:"500",hex:"2196F3"},{name:"600",hex:"1E88E5"},{name:"700",hex:"1976D2"},{name:"800",hex:"1565C0"},{name:"900",hex:"0D47A1"},{name:"A100",hex:"82B1FF"},{name:"A200",hex:"448AFF"},{name:"A400",hex:"2979FF"},{name:"A700",hex:"2962FF"}]},{name:"Light Blue",camel:"lightBlue",colors:[{name:"50",hex:"E1F5FE"},{name:"100",hex:"B3E5FC"},{name:"200",hex:"81D4FA"},{name:"300",hex:"4FC3F7"},{name:"400",hex:"29B6F6"},{name:"500",hex:"03A9F4"},{name:"600",hex:"039BE5"},{name:"700",hex:"0288D1"},{name:"800",hex:"0277BD"},{name:"900",hex:"01579B"},{name:"A100",hex:"80D8FF"},{name:"A200",hex:"40C4FF"},{name:"A400",hex:"00B0FF"},{name:"A700",hex:"0091EA"}]},{name:"Cyan",camel:"cyan",colors:[{name:"50",hex:"E0F7FA"},{name:"100",hex:"B2EBF2"},{name:"200",hex:"80DEEA"},{name:"300",hex:"4DD0E1"},{name:"400",hex:"26C6DA"},{name:"500",hex:"00BCD4"},{name:"600",hex:"00ACC1"},{name:"700",hex:"0097A7"},{name:"800",hex:"00838F"},{name:"900",hex:"006064"},{name:"A100",hex:"84FFFF"},{name:"A200",hex:"18FFFF"},{name:"A400",hex:"00E5FF"},{name:"A700",hex:"00B8D4"}]},{name:"Teal",camel:"teal",colors:[{name:"50",hex:"E0F2F1"},{name:"100",hex:"B2DFDB"},{name:"200",hex:"80CBC4"},{name:"300",hex:"4DB6AC"},{name:"400",hex:"26A69A"},{name:"500",hex:"009688"},{name:"600",hex:"00897B"},{name:"700",hex:"00796B"},{name:"800",hex:"00695C"},{name:"900",hex:"004D40"},{name:"A100",hex:"A7FFEB"},{name:"A200",hex:"64FFDA"},{name:"A400",hex:"1DE9B6"},{name:"A700",hex:"00BFA5"}]},{name:"Green",camel:"green",colors:[{name:"50",hex:"E8F5E9"},{name:"100",hex:"C8E6C9"},{name:"200",hex:"A5D6A7"},{name:"300",hex:"81C784"},{name:"400",hex:"66BB6A"},{name:"500",hex:"4CAF50"},{name:"600",hex:"43A047"},{name:"700",hex:"388E3C"},{name:"800",hex:"2E7D32"},{name:"900",hex:"1B5E20"},{name:"A100",hex:"B9F6CA"},{name:"A200",hex:"69F0AE"},{name:"A400",hex:"00E676"},{name:"A700",hex:"00C853"}]},{name:"Light Green",camel:"lightGreen",colors:[{name:"50",hex:"F1F8E9"},{name:"100",hex:"DCEDC8"},{name:"200",hex:"C5E1A5"},{name:"300",hex:"AED581"},{name:"400",hex:"9CCC65"},{name:"500",hex:"8BC34A"},{name:"600",hex:"7CB342"},{name:"700",hex:"689F38"},{name:"800",hex:"558B2F"},{name:"900",hex:"33691E"},{name:"A100",hex:"CCFF90"},{name:"A200",hex:"B2FF59"},{name:"A400",hex:"76FF03"},{name:"A700",hex:"64DD17"}]},{name:"Lime",camel:"lime",colors:[{name:"50",hex:"F9FBE7"},{name:"100",hex:"F0F4C3"},{name:"200",hex:"E6EE9C"},{name:"300",hex:"DCE775"},{name:"400",hex:"D4E157"},{name:"500",hex:"CDDC39"},{name:"600",hex:"C0CA33"},{name:"700",hex:"AFB42B"},{name:"800",hex:"9E9D24"},{name:"900",hex:"827717"},{name:"A100",hex:"F4FF81"},{name:"A200",hex:"EEFF41"},{name:"A400",hex:"C6FF00"},{name:"A700",hex:"AEEA00"}]},{name:"Yellow",camel:"yellow",colors:[{name:"50",hex:"FFFDE7"},{name:"100",hex:"FFF9C4"},{name:"200",hex:"FFF59D"},{name:"300",hex:"FFF176"},{name:"400",hex:"FFEE58"},{name:"500",hex:"FFEB3B"},{name:"600",hex:"FDD835"},{name:"700",hex:"FBC02D"},{name:"800",hex:"F9A825"},{name:"900",hex:"F57F17"},{name:"A100",hex:"FFFF8D"},{name:"A200",hex:"FFFF00"},{name:"A400",hex:"FFEA00"},{name:"A700",hex:"FFD600"}]},{name:"Amber",camel:"amber",colors:[{name:"50",hex:"FFF8E1"},{name:"100",hex:"FFECB3"},{name:"200",hex:"FFE082"},{name:"300",hex:"FFD54F"},{name:"400",hex:"FFCA28"},{name:"500",hex:"FFC107"},{name:"600",hex:"FFB300"},{name:"700",hex:"FFA000"},{name:"800",hex:"FF8F00"},{name:"900",hex:"FF6F00"},{name:"A100",hex:"FFE57F"},{name:"A200",hex:"FFD740"},{name:"A400",hex:"FFC400"},{name:"A700",hex:"FFAB00"}]},{name:"Orange",camel:"orange",colors:[{name:"50",hex:"FFF3E0"},{name:"100",hex:"FFE0B2"},{name:"200",hex:"FFCC80"},{name:"300",hex:"FFB74D"},{name:"400",hex:"FFA726"},{name:"500",hex:"FF9800"},{name:"600",hex:"FB8C00"},{name:"700",hex:"F57C00"},{name:"800",hex:"EF6C00"},{name:"900",hex:"E65100"},{name:"A100",hex:"FFD180"},{name:"A200",hex:"FFAB40"},{name:"A400",hex:"FF9100"},{name:"A700",hex:"FF6D00"}]},{name:"Deep Orange",camel:"deepOrange",colors:[{name:"50",hex:"FBE9E7"},{name:"100",hex:"FFCCBC"},{name:"200",hex:"FFAB91"},{name:"300",hex:"FF8A65"},{name:"400",hex:"FF7043"},{name:"500",hex:"FF5722"},{name:"600",hex:"F4511E"},{name:"700",hex:"E64A19"},{name:"800",hex:"D84315"},{name:"900",hex:"BF360C"},{name:"A100",hex:"FF9E80"},{name:"A200",hex:"FF6E40"},{name:"A400",hex:"FF3D00"},{name:"A700",hex:"DD2C00"}]},{name:"Brown",camel:"brown",colors:[{name:"50",hex:"EFEBE9"},{name:"100",hex:"D7CCC8"},{name:"200",hex:"BCAAA4"},{name:"300",hex:"A1887F"},{name:"400",hex:"8D6E63"},{name:"500",hex:"795548"},{name:"600",hex:"6D4C41"},{name:"700",hex:"5D4037"},{name:"800",hex:"4E342E"},{name:"900",hex:"3E2723"}]},{name:"Grey",camel:"grey",colors:[{name:"50",hex:"FAFAFA"},{name:"100",hex:"F5F5F5"},{name:"200",hex:"EEEEEE"},{name:"300",hex:"E0E0E0"},{name:"400",hex:"BDBDBD"},{name:"500",hex:"9E9E9E"},{name:"600",hex:"757575"},{name:"700",hex:"616161"},{name:"800",hex:"424242"},{name:"900",hex:"212121"}]},{name:"Blue Grey",camel:"blueGrey",colors:[{name:"50",hex:"ECEFF1"},{name:"100",hex:"CFD8DC"},{name:"200",hex:"B0BEC5"},{name:"300",hex:"90A4AE"},{name:"400",hex:"78909C"},{name:"500",hex:"607D8B"},{name:"600",hex:"546E7A"},{name:"700",hex:"455A64"},{name:"800",hex:"37474F"},{name:"900",hex:"263238"}]},{name:"Misc",camel:"",colors:[{name:"white",hex:"FFFFFF",x:19,y:0},{name:"black",hex:"000000",x:19,y:1}]}];var r=n(7289),s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,l,c=[(0,a.uA)({selector:"pg-color",style:r.A,template:'<div part="grid"></div>'})],d=[],u=HTMLElement,p=[],h=[],f=[],g=[];(class extends u{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],l=[(0,a.eS)()],s(null,null,n,{kind:"field",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:i},p,h),s(null,null,l,{kind:"field",name:"$grid",static:!1,private:!1,access:{has:e=>"$grid"in e,get:e=>e.$grid,set:(e,t)=>{e.$grid=t}},metadata:i},f,g),s(null,e={value:t},c,{kind:"class",name:t.name,metadata:i},null,d),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,d)}value=o(this,p,"#000000");$grid=(o(this,h),o(this,f,void 0));buttons=(o(this,g),[]);isMouseDown=!1;index=-1;connectedCallback(){i.forEach(((e,t)=>{e.colors.forEach(((n,a)=>{const i=document.createElement("button");i.style.background=`#${n.hex}`,"black"===n.name?i.style.gridArea="13 / 17 / 15 / 20":"white"===n.name?(i.style.gridArea="11 / 17 / 13 / 20",i.classList.add("white")):(i.style.gridRow=`${a+1}`,i.style.gridColumn=`${t+1}`);const r=this.buttons.push([i,`#${n.hex}`,e]);i.addEventListener("click",(()=>{this.handleSelect(r-1)})),i.addEventListener("mouseenter",(()=>{this.isMouseDown&&this.handleSelect(r-1)})),this.$grid.appendChild(i)}))}));const e=()=>{this.isMouseDown=!1,document.removeEventListener("mouseup",e)};this.$grid.addEventListener("mousedown",(t=>{this.isMouseDown=!0;const n=this.buttons.findIndex((([e])=>e===t.target));-1!==n&&this.handleSelect(n),document.addEventListener("mouseup",e)}))}handleSelect(e){const[t,n,a]=this.buttons[e],i=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}(n);if(this.dispatchEvent(new CustomEvent("select",{detail:{group:a,hex:n,rgb:i}})),-1!==this.index){const[e]=this.buttons[this.index];e.classList.toggle("active",!1)}t.classList.toggle("active",!0),this.index=e}render(){if(-1!==this.index){const[e]=this.buttons[this.index];e.classList.toggle("active",!1)}const e=this.buttons.findIndex((e=>e[1]===this.value));if(this.index=e,this.buttons[e]){const[t]=this.buttons[e];t.classList.toggle("active",!0)}}})})()},2514:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},2570:e=>{"use strict";e.exports="data:image/svg+xml; utf8, <svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27><path d=%27M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z%27 fill=%27white%27 /></svg>"},2689:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,"",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},2697:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,"[part~=popover] {\n background: #FFF;\n padding: 0.5rem;\n border-radius: 0.5rem;\n box-shadow: 0 1px 14px rgba(0, 0, 0, 0.2);\n border: 4px solid var(--pg-dropdown-border-color);\n}\n\n[part~=arrow],\n[part~=arrow]::before {\n position: absolute;\n width: 10px;\n height: 10px;\n}\n\n[part~=arrow]::before {\n content: '';\n transform: rotate(45deg);\n background: #FFF;\n}\n\n[part~=popover][data-popper-placement^='top'] > [part~=arrow] {\n bottom: -5px;\n}\n[part~=popover][data-popper-placement^='top'] > [part~=arrow]::before {\n border-bottom: 4px solid var(--pg-dropdown-border-color);\n border-right: 4px solid var(--pg-dropdown-border-color);\n border-bottom-right-radius: 0.25rem;\n}\n\n[part~=popover][data-popper-placement^='bottom'] > [part~=arrow] {\n top: -10px;\n}\n[part~=popover][data-popper-placement^='bottom'] > [part~=arrow]::before {\n border-top: 4px solid var(--pg-dropdown-border-color);\n border-left: 4px solid var(--pg-dropdown-border-color);\n border-top-left-radius: 0.25rem;\n}\n\n[part~=popover][data-popper-placement^='left'] > [part~=arrow] {\n right: -5px;\n}\n\n[part~=popover][data-popper-placement^='right'] > [part~=arrow] {\n left: -5px;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},2769:()=>{!function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism)},2890:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,s=[(0,a.uA)({selector:"x-pg-preview-basic",template:'<div class="example"> <pg-preview part="preview"></pg-preview> <div> <button>None</button> <button>Account</button> <button>24x24</button> <button>36x36</button> <button>Grid Size = 4</button> <button>Grid Size = 8</button> </div> </div>'})],o=[],l=HTMLElement,c=[],d=[];(class extends l{static{t=this}static{const u="function"==typeof Symbol&&Symbol.metadata?Object.create(l[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],i(null,null,n,{kind:"field",name:"$preview",static:!1,private:!1,access:{has:e=>"$preview"in e,get:e=>e.$preview,set:(e,t)=>{e.$preview=t}},metadata:u},c,d),i(null,e={value:t},s,{kind:"class",name:t.name,metadata:u},null,o),t=e.value,u&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:u}),r(t,o)}$preview=r(this,c,void 0);connectedCallback(){}handleClick(){}constructor(){super(...arguments),r(this,d)}})})()},2937:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: block;\n}\n\n[part="tab"] {\n display: none;\n}\n\n[part="tab"].active {\n display: block;\n border-top: 1px solid var(--pg-tab-border, #453C4F);\n margin-top: -1px;\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},2967:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,"* {\n font-family: var(--pg-font-family);\n}\n\n:host {\n display: block;\n}\n\n[part~=none] {\n display: none;\n}\n\n[part~=none].show {\n display: block;\n}\n\n[part~=grid] {\n position: relative;\n}\n\n[part~=grid] > button {\n border: 0;\n background: transparent;\n padding: 0.625rem;\n outline: none;\n width: 2.75rem;\n height: 2.75rem;\n position: absolute;\n left: 0;\n top: 0;\n border: 0;\n border-radius: 0.25rem;\n}\n\n[part~=grid] > button.hover {\n background: rgba(0, 0, 0, 0.1);\n}\n\n[part~=grid] > button:focus,\n[part~=grid] > button:active {\n background: rgba(0, 0, 0, 0.15);\n box-shadow: 0 0.0125rem 0.25rem rgba(0, 0, 0, 0.2) inset;\n}\n\n[part~=grid] > button > svg {\n fill: #453C4F;\n width: 1.5rem;\n height: 1.5rem;\n}\n\n[part~=grid] > button > svg {\n fill: #453C4F;\n}\n\n[part~=grid]::-webkit-scrollbar {\n width: 1em;\n}\n\n[part~=grid]::-webkit-scrollbar-track {\n box-shadow: inset 0 0 6px rgba(0,0,0,0.2);\n border-radius: 0.25rem;\n}\n\n[part~=grid]::-webkit-scrollbar-thumb {\n background-color: #453C4F;\n outline: 1px solid slategrey;\n border-radius: 0.25rem;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},3025:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: block;\n}\n\n[part="wrapper"] {\n display: grid;\n grid-template-rows: auto 0;\n grid-template-columns: 100%;\n}\n\n[part="select"] {\n display: grid;\n grid-template-columns: 3.5rem 1.75rem auto 2.75rem 1fr 1.5rem;\n grid-template-rows: 1.5rem 1.5rem;\n grid-row: 1;\n grid-column: 1;\n border: 1px solid var(--pg-input-select-border-color, #453C4F);\n border-radius: 0.25rem;\n padding: 0.5rem 0.5rem 0.5rem 0.75rem;\n width: 100%;\n font-size: 1rem;\n outline: 0;\n text-align: left;\n background: var(--pg-input-select-background, #fff);\n}\n\n[part="select"]:focus {\n box-shadow: 0 0 0 3px rgba(79, 143, 249, 0.5);\n}\n\n[part="select"]:disabled {\n border: 1px solid var(--pg-input-select-disabled-border-color, rgba(69, 60, 79, 0.6));\n color: var(--pg-input-select-disabled-color, rgba(69, 60, 79, 0.6));\n}\n\n[part="chevron"] {\n grid-row: 1 / span 2;\n grid-column: 6;\n pointer-events: none;\n width: 1.5rem;\n height: 1.5rem;\n align-self: center;\n}\n\n.githubIcon,\n[part="githubIcon"] {\n grid-row: 2;\n grid-column: 2;\n width: 1.5rem;\n height: 1.5rem;\n align-self: center;\n color: var(--pg-input-select-border-color, #453C4F);\n}\n\n.avatar,\n[part="selectedAvatar"] {\n grid-row: 1 / span 2;\n grid-column: 1;\n width: 3rem;\n height: 3rem;\n border-radius: 50%;\n border: 1px solid var(--pg-input-select-border-color, #453C4F);\n}\n\n.name,\n[part="selectedName"] {\n grid-row: 1;\n grid-column: 2 / span 4;\n align-self: center;\n}\n\n.github,\n[part="selectedGithub"] {\n grid-row: 2;\n grid-column: 3;\n align-self: center;\n}\n\n.countIcon,\n[part="countIcon"] {\n grid-row: 2;\n grid-column: 4;\n width: 1.5rem;\n height: 1.5rem;\n align-self: center;\n margin-left: 1rem;\n color: var(--pg-input-select-border-color, #453C4F);\n}\n\n.iconCount,\n[part="selectedCount"] {\n grid-row: 2;\n grid-column: 5;\n align-self: center;\n font-weight: bold;\n}\n\n[part="dropdown"].open {\n display: flex;\n}\n\n[part="dropdown"] {\n grid-row: 2;\n grid-column: 1;\n display: none;\n flex-direction: column;\n border: 1px solid var(--pg-input-select-border-color, #453C4F);\n border-radius: 0.25rem;\n background: #fff;\n z-index: 1;\n position: absolute;\n max-height: 16.5rem;\n overflow: auto;\n}\n\n[part="dropdown"] button {\n display: grid;\n grid-template-columns: 3.5rem 1.75rem auto 2.75rem 1fr;\n grid-template-rows: auto;\n border: 0;\n padding: 0.5rem 0.75rem;\n text-align: left;\n background: #fff;\n}\n\n[part="dropdown"] button:hover,\n[part="dropdown"] button:focus {\n color: #fff;\n background: #1E90FF;\n}\n\n[part="dropdown"] button:hover .githubIcon,\n[part="dropdown"] button:hover .countIcon,\n[part="dropdown"] button:focus .githubIcon,\n[part="dropdown"] button:focus .countIcon {\n color: #fff;\n}\n\n[part="loading"] {\n width: 3rem;\n height: 3rem;\n animation: spin 2s infinite linear;\n grid-row: 1 / span 2;;\n grid-column: 1;\n pointer-events: none;\n align-self: center;\n}\n\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n}\n\n[part="loadingText"] {\n grid-row: 1 / span 2;\n grid-column: 2 / span 3;\n align-self: center;\n}\n\n[part="noData"] {\n grid-row: 1 / span 2;\n grid-column: 1 / span 4;\n align-self: center;\n}\n\n[part="noSelection"] {\n grid-row: 1 / span 2;\n grid-column: 1 / span 4;\n align-self: center;\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},3147:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: flex;\n flex-direction: column;\n}\n\n[part="body"] {\n padding: var(--pg-card-padding, 0);\n border-radius: var(--pg-card-padding, 0.5rem);\n background: var(--pg-card-background, #fff);\n box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.3);\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},3157:()=>{Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}}))},3359:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: flex;\n flex-direction: column;\n}\n\n.blank {\n color: var(--pg-input-check-blank-color, #453C4F);\n}\n.blank [part="check"] {\n visibility: hidden;\n}\n\n.checked {\n color: var(--pg-input-check-checked-color, #453C4F);\n}\n\n[part="list"] {\n display: flex;\n flex-direction: column;\n list-style: none;\n margin: 0;\n padding: 0.25rem 0;\n}\n\n[part="list"] li {\n display: flex;\n flex-direction: column;\n}\n\n[part="list"] li:not(:last-child) {\n margin-bottom: 0.25rem;\n}\n\n[part="list"] button {\n display: flex;\n padding: 0;\n border: 0;\n outline: 0;\n border-radius: 0.25rem;\n align-items: center;\n background: transparent;\n}\n\n[part="svg"] {\n width: var(--pg-icon-check-size, 1.5rem);\n height: var(--pg-icon-check-size, 1.5rem);\n}\n\n[part="list"] button span {\n margin-left: 0.25rem;\n}\n\n[part="list"] button:not(:hover):active {\n box-shadow: 0 0 0 3px var(--pg-input-check-active-glow, rgb(79, 143, 249, 0.6));\n}\n[part="list"] button:not(:hover):focus:not(:focus-visible) {\n box-shadow: none;\n}\n[part="list"] button:not(:hover):focus-visible {\n box-shadow: 0 0 0 3px var(--pg-input-check-focus-glow, rgb(79, 143, 249, 0.5));\n}\n[part="list"] button:not(:disabled):hover [part="path"] {\n fill: #4f8ff9;\n}\n[part="list"] button:not(:disabled):hover span {\n color: #4f8ff9;\n}\n[part="list"] button:disabled {\n color: #AAA;\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},3364:(e,t,n)=>{"use strict";var a=n(3822);const i="M16,13V11H21V13H16M14.83,7.76L17.66,4.93L19.07,6.34L16.24,9.17L14.83,7.76M11,16H13V21H11V16M11,3H13V8H11V3M4.93,17.66L7.76,14.83L9.17,16.24L6.34,19.07L4.93,17.66M4.93,6.34L6.34,4.93L9.17,7.76L7.76,9.17L4.93,6.34M8,13H3V11H8V13M19.07,17.66L17.66,19.07L14.83,16.24L16.24,14.83L19.07,17.66Z",r={account:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z"},s=["# Header 1","","Paragraph text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text","","## Header 2","","Paragraph text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text","","### Header 3","","Paragraph text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text","","#### Header 4","","Paragraph text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text","","Test [`link code`](#) example.","",'<a href="" class="button">icon:account Button</a>',"","- List 1","- List 2"," - List 1 `code`"," - List 2","- List 3 `inline` code","","> Blockquote","","","> **Warning:** Blockquote","","","> **Note:** Blockquote","","","> **Alert:** Blockquote","","> **Attention:** Blockquote","","> **Success:** Blockquote","","> ",">","","```javascript","function foo() {"," // Code","}","```","```typescript","function foo() {"," // Really long item with overlap. test test test test test test test test test test test test test test test test test test","}","```","```markdown","# Header","","Does markdown in markdown work...","```","","```","Nothing","```","","```yaml","type: object","properties:"," id:"," type: string"," format: uuid"," name:"," type: string"," pattern: /$[a-z0-9-]+^/"," example: user"," complex:"," type: object"," properties:"," id:"," type: string"," format: uuid","```","","Tabs without Label","","tabs","tab Tab Title 1","","Anything...","","/tab","tab icon:foo Tab Title 2","","Another tabs `content`.","","/tab","/tabs","","","Tabs with Label","","tabs Label","tab Tab Title 1","","Anything...","","/tab","tab Tab Title 2","","Another tabs `content`.","","/tab","/tabs","","| Header 1 | Header 2 |","|----------------------|----------|","| Row 1... larger size | Row 1 |","| Row 2 | Row 2 |","| Row 3 | Row 3 |","| Row 4 | Row 4 |","","End of document, and `code` blocks also work."].join("\n");var o=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},l=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,c=[(0,a.uA)({selector:"x-pg-markdown-basic",template:'<div class="example"> <pg-markdown part="markdown"></pg-markdown> </div>'})],d=[],u=HTMLElement,p=[],h=[];(class extends u{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],o(null,null,n,{kind:"field",name:"$markdown",static:!1,private:!1,access:{has:e=>"$markdown"in e,get:e=>e.$markdown,set:(e,t)=>{e.$markdown=t}},metadata:i},p,h),o(null,e={value:t},c,{kind:"class",name:t.name,metadata:i},null,d),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),l(t,d)}$markdown=l(this,p,void 0);connectedCallback(){this.$markdown.replace.push({find:new RegExp("(\\\\mdi|mdi|icon):([a-z0-9-]+):?([#a-z0-9-]+)?","g"),replace:(e,t,n,a)=>{if("\\mdi"==t)return`mdi:${n}`;if("not"==n||"before"==n)return e;const r=a?` style="fill:${a}"`:"";return"mdi"===t?`<a href="icon/${n}"><svg class="icon" data-type="link" viewBox="0 0 24 24"><path data-icon="${n}" fill="currentColor" d="${i}"${r} /></svg></a>`:`<svg class="icon" data-type="icon" viewBox="0 0 24 24"><path data-icon="${n}" fill="currentColor" d="${i}"${r} /></svg>`}},{find:new RegExp("<blockquote>([\\s\\S]*?)<\\/blockquote>","g"),replace:e=>{const t=e.match(/<blockquote>\r?\n?<p><strong>([\w ]+):</);if(t){const n=t[1],a=t[1].trim().toLowerCase().replace(/[ _]/g,"-");e=(e=e.replace(new RegExp(`<strong>${n}:</strong> ?`),"")).replace(/^<blockquote/,`<blockquote class="${a}"`)}return e}}),this.$markdown.text=s,this.$markdown.modify((e=>{for(var t=e.querySelectorAll("[data-icon]"),n=0;n<t.length;n++){var a=t[n];a.setAttribute("d",r[a.dataset.icon]||"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z")}}))}constructor(){super(...arguments),l(this,h)}})})()},3380:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,s,o,l,c,d=[(0,a.uA)({selector:"x-pg-menu-item-basic",template:'<div class="example"> <pg-menu-item part="item"></pg-menu-item> </div> <div> <table style="border:1px solid #ddd;margin-block-start:0.5rem"> <thead> <tr> <th>Property</th> <th>Value</th> <th> </th> </tr> </thead> <tbody> <tr> <td><code>checked</code></td> <td part="checkedValue"></td> <td><input part="checkedToggle" type="checkbox"/></td> </tr> <tr> <td><code>disabled</code></td> <td part="disabledValue"></td> <td><input part="disabledToggle" type="checkbox"/></td> </tr> </tbody> </table> </div>'})],u=[],p=HTMLElement,h=[],f=[],g=[],m=[],v=[],b=[],y=[],w=[],x=[],k=[];(class extends p{static{t=this}static{const E="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],s=[(0,a.eS)()],o=[(0,a.eS)()],l=[(0,a.eS)()],c=[(0,a.eS)()],i(null,null,n,{kind:"field",name:"$item",static:!1,private:!1,access:{has:e=>"$item"in e,get:e=>e.$item,set:(e,t)=>{e.$item=t}},metadata:E},h,f),i(null,null,s,{kind:"field",name:"$checkedToggle",static:!1,private:!1,access:{has:e=>"$checkedToggle"in e,get:e=>e.$checkedToggle,set:(e,t)=>{e.$checkedToggle=t}},metadata:E},g,m),i(null,null,o,{kind:"field",name:"$disabledToggle",static:!1,private:!1,access:{has:e=>"$disabledToggle"in e,get:e=>e.$disabledToggle,set:(e,t)=>{e.$disabledToggle=t}},metadata:E},v,b),i(null,null,l,{kind:"field",name:"$checkedValue",static:!1,private:!1,access:{has:e=>"$checkedValue"in e,get:e=>e.$checkedValue,set:(e,t)=>{e.$checkedValue=t}},metadata:E},y,w),i(null,null,c,{kind:"field",name:"$disabledValue",static:!1,private:!1,access:{has:e=>"$disabledValue"in e,get:e=>e.$disabledValue,set:(e,t)=>{e.$disabledValue=t}},metadata:E},x,k),i(null,e={value:t},d,{kind:"class",name:t.name,metadata:E},null,u),t=e.value,E&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:E}),r(t,u)}$item=r(this,h,void 0);$checkedToggle=(r(this,f),r(this,g,void 0));$disabledToggle=(r(this,m),r(this,v,void 0));$checkedValue=(r(this,b),r(this,y,void 0));$disabledValue=(r(this,w),r(this,x,void 0));connectedCallback(){this.$item.label="Item 1",this.$item.checked=!1,this.$item.disabled=!1,this.$checkedValue.textContent=`${this.$item.checked}`,this.$disabledValue.textContent=`${this.$item.disabled}`,this.$item.addEventListener("select",(e=>{this.$checkedToggle.checked=e.target.checked,this.$checkedValue.textContent=`${this.$item.checked}`})),this.$checkedToggle.addEventListener("change",(e=>{this.$item.checked=e.target.checked,this.$checkedValue.textContent=`${this.$item.checked}`})),this.$disabledToggle.addEventListener("change",(e=>{this.$item.disabled=e.target.checked,this.$disabledValue.textContent=`${this.$item.disabled}`}))}constructor(){super(...arguments),r(this,k)}})})()},3382:(e,t,n)=>{"use strict";var a=n(3822);var i=n(9947);var r=n(3942),s=n(6208);class Modification{id;modificationId;packageId;user;icon;iconNameBefore;iconNameAfter;iconDescriptionBefore;iconDescriptionAfter;iconDataBefore;iconDataAfter;text;date;issue;isVisible;constructor(){}from(e){return this.id=e.id,this.modificationId=e.modificationId,this.packageId=e.packageId,this.user=(new s.K).from(e.user),this.icon=(new r.I).from(e.icon),this.iconNameBefore=e.iconNameBefore,this.iconNameAfter=e.iconNameAfter,this.iconDescriptionBefore=e.iconDescriptionBefore,this.iconDescriptionAfter=e.iconDescriptionAfter,this.iconDataBefore=e.iconDataBefore,this.iconDataAfter=e.iconDataAfter,this.text=e.text,this.date=e.date,this.issue=e.issue,this.isVisible=e.isVisible,this}}var o,l=n(9406);!function(e){e.IconAliasCreated="691c8829-b1e7-11e7-bf5c-94188269ec50",e.IconAliasDeleted="f1f70a76-b975-11e9-8ca0-94188269ec50",e.IconCreated="AFFE875E-01BC-4A34-9BE3-27625A155B28",e.IconDeleted="B1CE1713-A18A-4E9D-9E26-D0B4E44A1FAC",e.IconModified="1506F66B-CC2A-4575-A20A-DC138628977A",e.IconRenamed="F7B6D49B-A86F-49AC-AF92-6B9D0DF6188B",e.IconTagCreated="a185a9e8-c192-11e7-bf5c-94188269ec50",e.IconTagDeleted="ffe6b5f6-b975-11e9-8ca0-94188269ec50",e.IconDescriptionModified="3c638179-c4ca-11e8-9f27-94188269ec50",e.IconAuthorModified="254591d0-b28e-11e9-8ca0-94188269ec50",e.WebfontPublished="66B9FA99-1FAA-4D8F-B87F-B6F3CA444624",e.News="B4DEB3A8-A146-4086-9D7B-B67842A9CCB8",e.IconDeprecated="f92f310f-bfed-11e9-8ca0-94188269ec50",e.IconWorkInProgress="e262be80-bfed-11e9-8ca0-94188269ec50",e.IconLive="f92f2ba6-bfed-11e9-8ca0-94188269ec50",e.IconPublished="e262b92e-bfed-11e9-8ca0-94188269ec50",e.Date="date"}(o||(o={}));n(5659);var c=n(8928),d=n(373);var u=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},p=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const h={[o.News]:'<div part="news"> <pg-avatar part="avatar"></pg-avatar> <span part="label">News</span> <pg-markdown part="markdown"></pg-markdown> </div>',[o.IconCreated]:'<div part="iconCreated"> <pg-avatar part="avatar"></pg-avatar> <pg-icon part="icon"></pg-icon> <span part="content"> <span> Icon <code part="iconName"></code> <span class="created">created</span>. </span> </span> <a part="issue"></a> <button part="edit"> <pg-icon part="editIcon"></pg-icon> </button> </div>',[o.IconModified]:'<div part="iconModified"> <pg-avatar part="avatar"></pg-avatar> <pg-icon part="iconDataBefore"></pg-icon> <pg-icon part="iconDataAfter"></pg-icon> <span part="content"> <span> Icon <code part="iconName"></code> modified. </span> </span> <a part="issue"></a> <button part="edit"> <pg-icon part="editIcon"></pg-icon> </button> </div>',[o.IconRenamed]:'<div part="iconRenamed"> <pg-avatar part="avatar"></pg-avatar> <pg-icon part="icon"></pg-icon> <span part="content"> <span> Icon <code part="iconNameBefore"></code> renamed to <code part="iconNameAfter"></code>. </span> </span> <a part="issue"></a> <button part="edit"> <pg-icon part="editIcon"></pg-icon> </button> </div>',[o.IconDeleted]:'<div part="iconDeleted"> <pg-avatar part="avatar"></pg-avatar> <pg-icon part="icon"></pg-icon> <span part="content"> <span> Icon <code part="iconName"></code> <span class="deleted">deleted</span>. </span> </span> <a part="issue"></a> <button part="edit"> <pg-icon part="editIcon"></pg-icon> </button> </div>',[o.IconAliasCreated]:'<div part="iconAliasCreated"> <pg-avatar part="avatar"></pg-avatar> <pg-icon part="icon"></pg-icon> <span part="content"> <span> <span class="added">Added</span> alias <code part="text"></code> to <code part="iconName"></code>. </span> </span> <a part="issue"></a> <button part="edit"> <pg-icon part="editIcon"></pg-icon> </button> </div>',[o.IconAliasDeleted]:'<div part="iconAliasDeleted"> <pg-avatar part="avatar"></pg-avatar> <pg-icon part="icon"></pg-icon> <span part="content"> <span> <span class="removed">Removed</span> alias <code part="text"></code> from <code part="iconName"></code>. </span> </span> <a part="issue"></a> <button part="edit"> <pg-icon part="editIcon"></pg-icon> </button> </div>',[o.IconTagCreated]:'<div part="iconTagCreated"> <pg-avatar part="avatar"></pg-avatar> <pg-icon part="icon"></pg-icon> <span part="content"> <span> <span class="added">Added</span> tag <code part="text"></code> to <code part="iconName"></code>. </span> </span> <a part="issue"></a> <button part="edit"> <pg-icon part="editIcon"></pg-icon> </button> </div>',[o.IconTagDeleted]:'<div part="iconTagDeleted"> <pg-avatar part="avatar"></pg-avatar> <pg-icon part="icon"></pg-icon> <span part="content"> <span> <span class="removed">Removed</span> tag <code part="text"></code> from <code part="iconName"></code>. </span> </span> <a part="issue"></a> <button part="edit"> <pg-icon part="editIcon"></pg-icon> </button> </div>',[o.IconDescriptionModified]:'<div part="iconDescriptionModified"> <pg-avatar part="avatar"></pg-avatar> <pg-icon part="icon"></pg-icon> <pg-markdown part="iconDescriptionBefore"></pg-markdown> <pg-markdown part="iconDescriptionAfter"></pg-markdown> <a part="issue"></a> <button part="edit"> <pg-icon part="editIcon"></pg-icon> </button> </div>',[o.IconAuthorModified]:'<div part="iconAuthorModified"> <pg-avatar part="avatar"></pg-avatar> <pg-icon part="icon"></pg-icon> <span part="content"> <span> Author modified. </span> </span> <a part="issue"></a> <button part="edit"> <pg-icon part="editIcon"></pg-icon> </button> </div>',[o.IconDeprecated]:'<div part="iconDeprecated"> <pg-avatar part="avatar"></pg-avatar> <pg-icon part="icon"></pg-icon> <span part="content"> <span> Deprecated. Warning this icon will be removed in a future release. </span> </span> <a part="issue"></a> <button part="edit"> <pg-icon part="editIcon"></pg-icon> </button> </div>',[o.Date]:'<h2 part="text"></h2>'},f=["January","February","March","April","May","June","July","August","September","October","November","December"];function g(e){const t=new Date(e),n=f[t.getMonth()];return`${t.getFullYear()}-${n}-${t.getDate()}`}function m(e){const t=[];let n="";return e.forEach(((e,a)=>{const i=function(e){const t=new Date(e);return`${f[t.getMonth()]} ${t.getDate()}, ${t.getFullYear()}`}(e.date);n!==i&&(t.push((new Modification).from({id:`date-${g(e.date)}`,modificationId:o.Date,text:i,user:new s.K,icon:new r.I})),n=i),t.push(e)})),t}(()=>{let e,t,n,r,s,o,f=[(0,a.uA)({selector:"pg-modification",style:i.A,template:'<div part="items"></div>'})],g=[],v=HTMLElement,b=[],y=[],w=[],x=[],k=[],E=[],C=[],$=[];(class extends v{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(v[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],r=[(0,a.kv)()],s=[(0,a.kv)()],o=[(0,a.eS)()],u(null,null,n,{kind:"field",name:"modifications",static:!1,private:!1,access:{has:e=>"modifications"in e,get:e=>e.modifications,set:(e,t)=>{e.modifications=t}},metadata:i},b,y),u(null,null,r,{kind:"field",name:"edit",static:!1,private:!1,access:{has:e=>"edit"in e,get:e=>e.edit,set:(e,t)=>{e.edit=t}},metadata:i},w,x),u(null,null,s,{kind:"field",name:"github",static:!1,private:!1,access:{has:e=>"github"in e,get:e=>e.github,set:(e,t)=>{e.github=t}},metadata:i},k,E),u(null,null,o,{kind:"field",name:"$items",static:!1,private:!1,access:{has:e=>"$items"in e,get:e=>e.$items,set:(e,t)=>{e.$items=t}},metadata:i},C,$),u(null,e={value:t},f,{kind:"class",name:t.name,metadata:i},null,g),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),p(t,g)}modifications=p(this,b,[]);edit=(p(this,y),p(this,w,!1));github=(p(this,x),p(this,k,""));$items=(p(this,E),p(this,C,void 0));render(e){e.modifications&&this.modifications&&(0,l.p)(this.$items,m(this.modifications),"id",(e=>{if(e.modificationId in h){const t=(0,a.rH)(h[e.modificationId],{text:{innerText:e.text},markdown:{text:e.text},icon:{path:e.icon&&e.icon.data},iconName:{innerText:e.icon&&e.icon.name},iconNameBefore:{innerText:e.iconNameBefore},iconNameAfter:{innerText:e.iconNameAfter},iconDescriptionBefore:{text:e.iconDescriptionBefore},iconDescriptionAfter:{text:e.iconDescriptionAfter},iconDataBefore:{path:e.iconDataBefore},iconDataAfter:{path:e.iconDataAfter},avatar:{user:e.user},editIcon:{path:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z"},issue:{style:e.issue?"":"display:none",innerText:e.issue?`#${e.issue}`:"",href:`https://github.com/${this.github}/issues/${e.issue}`}}),n=t.querySelector('[part="issue"]');n&&(0,c.f)(n,(()=>"View on GitHub"),d.SK);const i=t.querySelector('[part="avatar"]');i&&(0,c.f)(i,(()=>e.user.name),d.fF);const r=t.querySelector('[part="edit"]');return r&&r.addEventListener("click",(()=>{this.dispatchEvent(new CustomEvent("edit",{detail:{modification:e}}))})),t}const t=document.createElement("div");return t.classList.add("invalid"),t.innerText=`Error: Unsupported modificationId with text: "${e.text}"`,t}),((e,t)=>{})),e.edit&&this.$items.classList.toggle("edit",this.edit)}addItem(e){const t=document.createElement("div");this.$items.appendChild(t)}constructor(){super(...arguments),p(this,$)}})})()},3410:(e,t,n)=>{"use strict";var a=n(3822),i=n(4723);var r=n(3543),s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,l,c=[(0,a.uA)({selector:"pg-tree",style:r.A,template:'<div part="items"></div>'})],d=[],u=HTMLElement,p=[],h=[],f=[],g=[];(class extends u{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],l=[(0,a.eS)()],s(null,null,n,{kind:"field",name:"items",static:!1,private:!1,access:{has:e=>"items"in e,get:e=>e.items,set:(e,t)=>{e.items=t}},metadata:i},p,h),s(null,null,l,{kind:"field",name:"$items",static:!1,private:!1,access:{has:e=>"$items"in e,get:e=>e.$items,set:(e,t)=>{e.$items=t}},metadata:i},f,g),s(null,e={value:t},c,{kind:"class",name:t.name,metadata:i},null,d),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,d)}items=o(this,p,[]);$items=(o(this,h),o(this,f,void 0));#_=(o(this,g),new Map);connectedCallback(){(0,a.jJ)({container:this.$items,items:this.items,type:e=>i.A}),this.$items.addEventListener("action",(e=>{e.stopPropagation(),this.dispatchEvent(new CustomEvent("action",{detail:{actionIndex:e.detail.actionIndex,item:this.#K(e.detail.indexes)}}))})),this.$items.addEventListener("move",(e=>{const{indexes:t,position:n}=e.detail;e.stopPropagation(),this.dispatchEvent(new CustomEvent("move",{detail:{item:this.#K(e.detail.indexes),position:n}}))})),this.$items.addEventListener("toggle",(e=>{const{indexes:t}=e.detail;let n=this.#Y(t);n.expanded=!n.expanded})),this.$items.addEventListener("select",(e=>{e.stopPropagation();const{indexes:t,type:n,ctrlKey:i,shiftKey:r}=e.detail,s=this.#Y(t),o=this.#_.size,l=(0,a.ah)(s);i||!o||this.#_.has(l)||(this.#_.forEach((e=>this.#Y(e).selected=!1)),this.#_.clear()),s.selected="rename"===n||!s.selected,s.selected?this.#_.set(l,t):this.#_.delete(l),this.dispatchEvent(new CustomEvent("select",{detail:{items:[...this.#_.values()].map((e=>this.#K(e)))}}))})),this.$items.addEventListener("keydown",(e=>{"Delete"===e.key&&(this.#_.forEach((e=>{this.#q(e)})),this.#_.clear())})),this.$items.addEventListener("itemdragstart",(e=>{const{indexes:t,callback:n,ctrlKey:i,shiftKey:r}=e.detail;console.log("drag valid",t);const s=this.#Y(t),o=(0,a.ah)(s);!i&&this.#_.size&&(this.#_.forEach((e=>this.#Y(e).selected=!1)),this.#_.clear()),s.selected=!0,this.#_.set(o,t);let l=0;this.#_.forEach((e=>{const t=this.#Y(e);l=this.#U(t,l)})),n(l),this.$items.classList.toggle("dragging",!0)})),this.$items.addEventListener("itemdragend",(e=>{this.$items.classList.toggle("dragging",!1)})),this.$items.addEventListener("itemdropenter",this.#G.bind(this))}#U(e,t){return t+=1,e.items&&e.items.length>0&&e.items.forEach((e=>{t=this.#U(e,t)})),t}#G(e){const{indexes:t,callback:n}=e.detail,a=this.#Q();console.log("valid???",t,a);const i=t.join(",");n(!a.some((e=>i.startsWith(e))),(t=>{e.dataTransfer.effectAllowed=t}))}#q(e){const t=e[e.length-1];e.slice(0,e.length-1).reduce(((e,t)=>e.items[t]),this).items.splice(t,1)}#Y(e){return e.reduce(((e,t)=>e.items[t]),this)}#K(e){return{indexes:e,remove:()=>{this.#q(e),this.#_.clear()},getData:()=>this.#Y(e),getParentData:()=>{const t=e.slice(0,e.length-1);return 0===t.length?this:this.#Y(t)},move:(t,n)=>{console.log(t,n);const a=t.indexes[t.indexes.length-1],i=t.indexes.slice(0,t.indexes.length-1),r=this.#Y(e);this.#q(e),"on"===n?(this.#Y(t.indexes).items.push(r),this.#Y(t.indexes).expanded=!0):0===i.length?this.items.splice("after"===n?a+1:a,0,r):this.#Y(i).items.splice("after"===n?a+1:a,0,r),this.#_.clear(),this.$items.classList.toggle("dragging",!1)}}}render(e){e.items&&console.log("yay",this.items.map((e=>e)))}unselect(e){}#Q(){const e=[];return this.#_.forEach((t=>{e.push(t.join(","))})),e}})})()},3466:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n=[(0,a.uA)({selector:"x-pg-menu-icon-basic",template:'<div class="example"> <pg-menu-icon></pg-menu-icon> </div>'})],s=[],o=HTMLElement;(class extends o{static{t=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;i(null,e={value:t},n,{kind:"class",name:t.name,metadata:a},null,s),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),r(t,s)}connectedCallback(){}})})()},3513:(e,t,n)=>{"use strict";var a=n(3822),i=n(7791);var r=n(8791),s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,l=[(0,a.uA)({selector:"pg-toasts",style:r.A,template:'<div part="container"></div>'})],c=[],d=HTMLElement,u=[],p=[];(class extends d{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],s(null,null,n,{kind:"field",name:"$container",static:!1,private:!1,access:{has:e=>"$container"in e,get:e=>e.$container,set:(e,t)=>{e.$container=t}},metadata:i},u,p),s(null,e={value:t},l,{kind:"class",name:t.name,metadata:i},null,c),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,c)}toasts=[];$container=o(this,u,void 0);connectedCallback(){(0,i.Nj)({add:e=>{this.toasts.push(e),this.render()},remove:e=>{const t=this.toasts.findIndex((t=>t.key===e));if(-1!==t){var[n]=this.toasts.splice(t,1);this.$container.querySelector(`[key="${n.key}"]`)?.remove()}}})}render(){this.toasts.forEach((e=>{const t=this.$container.querySelector(`[key="${e.key}"]`);if(t)t.message=e.message,t.loading=e.loading,t.type=e.type;else{const t=document.createElement("pg-toast");t.setAttribute("key",e.key),t.message=e.message,t.loading=e.loading,t.type=e.type,this.$container.appendChild(t)}}))}constructor(){super(...arguments),o(this,p)}})})()},3521:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,".backdrop {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.6);\n justify-content: center;\n align-items: center;\n}\n.dialog {\n background: #fff;\n border-radius: 0.5rem;\n box-shadow: 0 1px 1rem rgba(0, 0, 0, 0.5);\n overflow: hidden;\n min-width: 15rem;\n}\nheader {\n border-bottom: 1px solid #ccc;\n background: #f1f1f1;\n padding: 0.75rem 1rem;\n}\nheader h2 {\n font-size: 1.25rem;\n margin: 0;\n font-weight: normal;\n}\nmain {\n padding: 0.5rem 1rem;\n}\nfooter {\n display: flex;\n flex-direction: row;\n padding: 0.75rem 1rem;\n border-top: 1px solid #ccc;\n background: #f1f1f1;\n justify-content: flex-end;\n gap: 0.5rem;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},3532:(e,t,n)=>{"use strict";var a=n(3822);var i=n(3025),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};function o(e,t){const n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("viewBox","0 0 24 24");const a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttribute("d",e),a.setAttribute("fill","currentColor"),n.appendChild(a),n.classList.add(t),n}const l="ArrowUp",c="ArrowDown",d="Escape",u="Tab";(()=>{let e,t,n,p,h,f,g,m,v,b,y,w,x,k,E,C,$,A,S,F,L=[(0,a.uA)({selector:"pg-input-user-select",style:i.A,template:'<div part="wrapper"> <button part="select"> <img part="selectedAvatar"/> <span part="selectedName">First Last</span> <svg part="githubIcon" viewBox="0 0 24 24"><path fill="currentColor" d="M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z"/></svg> <span part="selectedGithub">GitHub</span> <svg part="countIcon" viewBox="0 0 24 24"><path fill="currentColor" d="M11,13.5V21.5H3V13.5H11M12,2L17.5,11H6.5L12,2M17.5,13C20,13 22,15 22,17.5C22,20 20,22 17.5,22C15,22 13,20 13,17.5C13,15 15,13 17.5,13Z"/></svg> <span part="selectedCount">9999</span> <svg part="loading" viewBox="0 0 24 24"><path fill="currentColor" d="M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"/></svg> <span part="loadingText">Loading...</span> <svg part="chevron" viewBox="0 0 24 24"><path fill="currentColor" d="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"/></svg> <span part="noData">Empty Users List</span> <span part="noSelection">Select a User</span> </button> <div part="dropdownContainer"> <div part="dropdown"></div> </div> </div>'})],O=[],T=HTMLElement,D=[],j=[],I=[],P=[],M=[],B=[],z=[],H=[],R=[],N=[],V=[],_=[],K=[],Y=[],q=[],U=[],G=[],Q=[],W=[],Z=[],J=[],X=[],ee=[],te=[],ne=[],ae=[],ie=[],re=[],se=[],oe=[],le=[],ce=[],de=[],ue=[],pe=[],he=[];(class extends T{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(T[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],p=[(0,a.kv)()],h=[(0,a.kv)()],f=[(0,a.kv)()],g=[(0,a.kv)()],m=[(0,a.kv)()],v=[(0,a.eS)()],b=[(0,a.eS)()],y=[(0,a.eS)()],w=[(0,a.eS)()],x=[(0,a.eS)()],k=[(0,a.eS)()],E=[(0,a.eS)()],C=[(0,a.eS)()],$=[(0,a.eS)()],A=[(0,a.eS)()],S=[(0,a.eS)()],F=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"options",static:!1,private:!1,access:{has:e=>"options"in e,get:e=>e.options,set:(e,t)=>{e.options=t}},metadata:i},D,j),r(null,null,p,{kind:"field",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:i},I,P),r(null,null,h,{kind:"field",name:"clear",static:!1,private:!1,access:{has:e=>"clear"in e,get:e=>e.clear,set:(e,t)=>{e.clear=t}},metadata:i},M,B),r(null,null,f,{kind:"field",name:"noDataText",static:!1,private:!1,access:{has:e=>"noDataText"in e,get:e=>e.noDataText,set:(e,t)=>{e.noDataText=t}},metadata:i},z,H),r(null,null,g,{kind:"field",name:"noSelectionText",static:!1,private:!1,access:{has:e=>"noSelectionText"in e,get:e=>e.noSelectionText,set:(e,t)=>{e.noSelectionText=t}},metadata:i},R,N),r(null,null,m,{kind:"field",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:i},V,_),r(null,null,v,{kind:"field",name:"$select",static:!1,private:!1,access:{has:e=>"$select"in e,get:e=>e.$select,set:(e,t)=>{e.$select=t}},metadata:i},K,Y),r(null,null,b,{kind:"field",name:"$selectedAvatar",static:!1,private:!1,access:{has:e=>"$selectedAvatar"in e,get:e=>e.$selectedAvatar,set:(e,t)=>{e.$selectedAvatar=t}},metadata:i},q,U),r(null,null,y,{kind:"field",name:"$selectedName",static:!1,private:!1,access:{has:e=>"$selectedName"in e,get:e=>e.$selectedName,set:(e,t)=>{e.$selectedName=t}},metadata:i},G,Q),r(null,null,w,{kind:"field",name:"$githubIcon",static:!1,private:!1,access:{has:e=>"$githubIcon"in e,get:e=>e.$githubIcon,set:(e,t)=>{e.$githubIcon=t}},metadata:i},W,Z),r(null,null,x,{kind:"field",name:"$selectedGithub",static:!1,private:!1,access:{has:e=>"$selectedGithub"in e,get:e=>e.$selectedGithub,set:(e,t)=>{e.$selectedGithub=t}},metadata:i},J,X),r(null,null,k,{kind:"field",name:"$countIcon",static:!1,private:!1,access:{has:e=>"$countIcon"in e,get:e=>e.$countIcon,set:(e,t)=>{e.$countIcon=t}},metadata:i},ee,te),r(null,null,E,{kind:"field",name:"$selectedCount",static:!1,private:!1,access:{has:e=>"$selectedCount"in e,get:e=>e.$selectedCount,set:(e,t)=>{e.$selectedCount=t}},metadata:i},ne,ae),r(null,null,C,{kind:"field",name:"$dropdown",static:!1,private:!1,access:{has:e=>"$dropdown"in e,get:e=>e.$dropdown,set:(e,t)=>{e.$dropdown=t}},metadata:i},ie,re),r(null,null,$,{kind:"field",name:"$loading",static:!1,private:!1,access:{has:e=>"$loading"in e,get:e=>e.$loading,set:(e,t)=>{e.$loading=t}},metadata:i},se,oe),r(null,null,A,{kind:"field",name:"$loadingText",static:!1,private:!1,access:{has:e=>"$loadingText"in e,get:e=>e.$loadingText,set:(e,t)=>{e.$loadingText=t}},metadata:i},le,ce),r(null,null,S,{kind:"field",name:"$noData",static:!1,private:!1,access:{has:e=>"$noData"in e,get:e=>e.$noData,set:(e,t)=>{e.$noData=t}},metadata:i},de,ue),r(null,null,F,{kind:"field",name:"$noSelection",static:!1,private:!1,access:{has:e=>"$noSelection"in e,get:e=>e.$noSelection,set:(e,t)=>{e.$noSelection=t}},metadata:i},pe,he),r(null,e={value:t},L,{kind:"class",name:t.name,metadata:i},null,O),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,O)}options=s(this,D,[]);value=(s(this,j),s(this,I,null));clear=(s(this,P),s(this,M,!1));noDataText=(s(this,B),s(this,z,"Empty Users List"));noSelectionText=(s(this,H),s(this,R,"Select a User"));name=(s(this,N),s(this,V,""));$select=(s(this,_),s(this,K,void 0));$selectedAvatar=(s(this,Y),s(this,q,void 0));$selectedName=(s(this,U),s(this,G,void 0));$githubIcon=(s(this,Q),s(this,W,void 0));$selectedGithub=(s(this,Z),s(this,J,void 0));$countIcon=(s(this,X),s(this,ee,void 0));$selectedCount=(s(this,te),s(this,ne,void 0));$dropdown=(s(this,ae),s(this,ie,void 0));$loading=(s(this,re),s(this,se,void 0));$loadingText=(s(this,oe),s(this,le,void 0));$noData=(s(this,ce),s(this,de,void 0));$noSelection=(s(this,ue),s(this,pe,void 0));connectedCallback(){this.$select.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeys.bind(this))}isOpen=(s(this,he),!1);handleCloseBind;optionsElements=[];close(){this.isOpen=!1,this.$dropdown.classList.remove("open"),document.removeEventListener("mousedown",this.handleCloseBind)}handleClose(e){const t=e.target;t.nodeName===this.nodeName&&t.isOpen||this.close()}handleClick(){this.isOpen=!this.isOpen,this.$dropdown.classList.toggle("open",this.isOpen),this.handleCloseBind=this.handleClose.bind(this),document.addEventListener("mousedown",this.handleCloseBind),this.focusSelected()}focusSelected(){const e=this.options?.findIndex((e=>e===this.value));e&&-1!==e?(this.optionsElements[e].focus(),this.index=e):this.optionsElements.length&&this.optionsElements[0].focus()}handleSelect(e){console.log("clicked");const{id:t}=e.currentTarget.dataset,n=this.options?.find((e=>e.id===t));this.value=n||null,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,name:this.name}})),this.close()}loadingMode(){this.$selectedAvatar.style.display="none",this.$selectedName.style.display="none",this.$githubIcon.style.display="none",this.$selectedGithub.style.display="none",this.$countIcon.style.display="none",this.$selectedCount.style.display="none",this.$noData.style.display="none",this.$noSelection.style.display="none",this.$loading.style.display="flex",this.$loadingText.style.display="initial",this.$select.disabled=!0}noDataMode(){this.$selectedAvatar.style.display="none",this.$selectedName.style.display="none",this.$githubIcon.style.display="none",this.$selectedGithub.style.display="none",this.$countIcon.style.display="none",this.$selectedCount.style.display="none",this.$noData.style.display="initial",this.$noSelection.style.display="none",this.$loading.style.display="none",this.$loadingText.style.display="none",this.$select.disabled=!0}noSelectionMode(){this.$selectedAvatar.style.display="none",this.$selectedName.style.display="none",this.$githubIcon.style.display="none",this.$selectedGithub.style.display="none",this.$countIcon.style.display="none",this.$selectedCount.style.display="none",this.$noData.style.display="none",this.$noSelection.style.display="initial",this.$loading.style.display="none",this.$loadingText.style.display="none",this.$select.disabled=!1}selectMode(){this.$selectedAvatar.style.display="initial",this.$selectedName.style.display="initial",this.$githubIcon.style.display="initial",this.$selectedGithub.style.display="initial",this.$countIcon.style.display="initial",this.$selectedCount.style.display="initial",this.$noData.style.display="none",this.$noSelection.style.display="none",this.$loading.style.display="none",this.$loadingText.style.display="none",this.$select.disabled=!1}render(e){e.options&&(null===this.options?this.loadingMode():0===this.options.length?this.noDataMode():(this.selectMode(),this.calculateMinWidth(),this.optionsElements=this.options.map((e=>{const t=document.createElement("button"),n=document.createElement("img");n.src=`${e.base64}`,n.classList.add("avatar"),t.appendChild(n);const a=document.createElement("span");a.innerText=`${e.name}`,a.classList.add("name"),t.appendChild(a);const i=document.createElement("span");i.innerText=`${e.github}`,i.classList.add("github"),t.appendChild(i);const r=document.createElement("span");return r.innerText=`${e.iconCount}`,r.classList.add("iconCount"),t.appendChild(r),t.dataset.id=`${e.id}`,t.appendChild(o("M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z","githubIcon")),t.appendChild(o("M11,13.5V21.5H3V13.5H11M12,2L17.5,11H6.5L12,2M17.5,13C20,13 22,15 22,17.5C22,20 20,22 17.5,22C15,22 13,20 13,17.5C13,15 15,13 17.5,13Z","countIcon")),t.addEventListener("click",this.handleSelect.bind(this)),this.$dropdown.appendChild(t),t})),null===this.value&&this.noSelectionMode())),e.value&&e.value&&this.value&&(this.$selectedAvatar.src=this.value.base64||"",this.$selectedCount.innerText=`${this.value.iconCount}`,this.$selectedName.innerText=`${this.value.name}`,this.$selectedGithub.innerText=`${this.value.github}`,this.selectMode()),e.noDataText&&(this.$noData.innerText=this.noDataText),e.noSelectionText&&(this.$noSelection.innerText=this.noSelectionText)}calculateMinWidth(){const{width:e}=this.$select.getBoundingClientRect();this.$dropdown.style.minWidth=e-2+"px"}index=-1;handleKeys(e){const t=this.optionsElements;let n=this.index;switch(e.key){case l:0===n?n=t.length-1:n>=0&&(n-=1);break;case c:n<t.length-1?n+=1:n===t.length-1&&(n=0);break;case u:case d:this.close()}n!=this.index&&(this.index=n,t[n].focus(),e.preventDefault())}})})()},3543:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,":host {\n display: contents;\n --pg-tree-selected-primary: #453C4F;\n --pg-tree-selected-secondary: var(--pg-tree-item-background-selected, rgb(69, 60, 79, 0.1));\n --pg-tree-selected-secondary-hover: var(--pg-tree-item-background-selected, rgb(69, 60, 79, 0.2));\n}\n/*\n--pg-tree-item-background-selected\n*/\n:host(:focus-within) {\n --pg-tree-selected-primary: rgb(79, 143, 249);\n --pg-tree-selected-secondary: rgba(79, 143, 249, 0.15);\n --pg-tree-selected-secondary-hover: rgba(79, 143, 249, 0.25);\n}\n\n[part=items] {\n display: flex;\n flex-direction: column;\n background: var(--pg-tree-background, transparent);\n padding: 0.25rem;\n gap: 0.25rem;\n --x: 0;\n --pg-_is-dragging: false;\n}\n\n[part=items].dragging {\n --pg-_is-dragging: true;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},3554:()=>{!function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],a=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,r=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:a,operator:i,punctuation:r};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},o=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];e.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:o,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:a,operator:i,punctuation:r}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism)},3569:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: block;\n font-family: var(--pg-font-family);\n}\n\n[part="input"] {\n border: 1px solid var(--pg-input-text-border-color, #453C4F);\n border-radius: 0.125rem;\n padding: calc(0.5rem - 1px) 0.75rem;\n font-family: var(--pg-font-family);\n font-size: 1rem;\n outline: none;\n width: calc(100% - 1.5rem - 2px);\n}\n\n[part="input"]:active {\n box-shadow: 0 0 0 3px var(--pg-input-text-active-glow, rgb(79, 143, 249, 0.6));\n}\n[part="input"]:focus {\n box-shadow: 0 0 0 3px var(--pg-input-text-focus-glow, rgb(79, 143, 249, 0.5));\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},3588:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,s=[(0,a.uA)({selector:"x-pg-search-basic",template:'<div class="example"> <pg-search part="search"></pg-search> </div>'})],o=[],l=HTMLElement,c=[],d=[];(class extends l{static{t=this}static{const u="function"==typeof Symbol&&Symbol.metadata?Object.create(l[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],i(null,null,n,{kind:"field",name:"$search",static:!1,private:!1,access:{has:e=>"$search"in e,get:e=>e.$search,set:(e,t)=>{e.$search=t}},metadata:u},c,d),i(null,e={value:t},s,{kind:"class",name:t.name,metadata:u},null,o),t=e.value,u&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:u}),r(t,o)}$search=r(this,c,void 0);connectedCallback(){this.$search.items.push({type:"Documentation",name:"Android",url:"/getting-started/android"},{type:"Documentation",name:"Angular",url:"/getting-started/angular"},{type:"Documentation",name:"AngularJS",url:"/getting-started/angularjs"},{type:"Documentation",name:"Bootstrap",url:"/getting-started/bootstrap"},{type:"Documentation",name:"How to Play Football",url:"/getting-started/football"},{type:"Documentation",name:"Foo Angular Foo Angular",url:"/getting-started/bootstraps"}),this.$search.icons.push()}constructor(){super(...arguments),r(this,d)}})})()},3606:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,s=[(0,a.uA)({selector:"x-pg-button-states",template:'<h4>Active</h4> <pg-button active part="active">Button</pg-button> <h4>Start</h4> <pg-button start>Button</pg-button> <h4>Center</h4> <pg-button center>Button</pg-button> <h4>End</h4> <pg-button end>Button</pg-button>'})],o=[],l=HTMLElement,c=[],d=[];(class extends l{static{t=this}static{const u="function"==typeof Symbol&&Symbol.metadata?Object.create(l[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],i(null,null,n,{kind:"field",name:"$active",static:!1,private:!1,access:{has:e=>"$active"in e,get:e=>e.$active,set:(e,t)=>{e.$active=t}},metadata:u},c,d),i(null,e={value:t},s,{kind:"class",name:t.name,metadata:u},null,o),t=e.value,u&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:u}),r(t,o)}$active=r(this,c,void 0);connectedCallback(){this.$active.addEventListener("click",this.handleActive.bind(this))}handleActive(){this.$active.active=!this.$active.active}constructor(){super(...arguments),r(this,d)}})})()},3681:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(3822);var i=n(3521),r=n(7715),s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const l=(()=>{let e,t,n,l,c,d,u,p,h,f=[(0,a.uA)({selector:"pg-modal-alert",template:'<div class="backdrop"> <div class="dialog" role="dialog" id="dialog1" aria-labelledby="dialog1_label" aria-modal="true"> <header part="header"> <h2 id="dialog1_label" class="dialog_label" part="headerText"> Add Delivery Address </h2> </header> <main> <p part="message"></p> </main> <footer> <pg-button part="no">No</pg-button> <pg-button part="yes">Yes</pg-button> </footer> </div> </div>',style:i.A})],g=[],m=r.A,v=[],b=[],y=[],w=[],x=[],k=[],E=[],C=[],$=[],A=[],S=[],F=[],L=[],O=[];(class extends m{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],l=[(0,a.kv)()],c=[(0,a.eS)()],d=[(0,a.eS)()],u=[(0,a.eS)()],p=[(0,a.eS)()],h=[(0,a.eS)()],s(null,null,n,{kind:"field",name:"header",static:!1,private:!1,access:{has:e=>"header"in e,get:e=>e.header,set:(e,t)=>{e.header=t}},metadata:i},v,b),s(null,null,l,{kind:"field",name:"message",static:!1,private:!1,access:{has:e=>"message"in e,get:e=>e.message,set:(e,t)=>{e.message=t}},metadata:i},y,w),s(null,null,c,{kind:"field",name:"$header",static:!1,private:!1,access:{has:e=>"$header"in e,get:e=>e.$header,set:(e,t)=>{e.$header=t}},metadata:i},x,k),s(null,null,d,{kind:"field",name:"$headerText",static:!1,private:!1,access:{has:e=>"$headerText"in e,get:e=>e.$headerText,set:(e,t)=>{e.$headerText=t}},metadata:i},E,C),s(null,null,u,{kind:"field",name:"$message",static:!1,private:!1,access:{has:e=>"$message"in e,get:e=>e.$message,set:(e,t)=>{e.$message=t}},metadata:i},$,A),s(null,null,p,{kind:"field",name:"$yes",static:!1,private:!1,access:{has:e=>"$yes"in e,get:e=>e.$yes,set:(e,t)=>{e.$yes=t}},metadata:i},S,F),s(null,null,h,{kind:"field",name:"$no",static:!1,private:!1,access:{has:e=>"$no"in e,get:e=>e.$no,set:(e,t)=>{e.$no=t}},metadata:i},L,O),s(null,e={value:t},f,{kind:"class",name:t.name,metadata:i},null,g),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,g)}header=o(this,v,"Are you sure?");message=(o(this,b),o(this,y,"Are you sure?"));$header=(o(this,w),o(this,x,void 0));$headerText=(o(this,k),o(this,E,void 0));$message=(o(this,C),o(this,$,void 0));$yes=(o(this,A),o(this,S,void 0));$no=(o(this,F),o(this,L,void 0));#W=o(this,O);connectedCallback(){this.$yes.addEventListener("click",this.#Z.bind(this)),this.$no.addEventListener("click",this.#J.bind(this)),this.#W??=this.#X.bind(this),document.addEventListener("keydown",this.#W)}disconnectedCallback(){document.removeEventListener("keydown",this.#W)}#X(e){"Escape"===e.key&&this.close(null)}#Z(){this.close(!0)}#J(){this.close(!1)}render(e){e.header&&(this.$headerText.innerText=this.header),e.message&&(this.$message.innerText=this.message)}});return t})()},3685:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,":host {\n display: inline-flex;\n}\n\nspan {\n align-self: center;\n display: flex;\n}\n\n[part=collapse] {\n display: none;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},3713:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: inline-flex;\n}\n\n[part="wrapper"] {\n display: flex;\n position: relative;\n outline: 0;\n}\n\n[part="wrapper"]:focus-visible::before {\n pointer-events: none;\n content: \'\';\n position: absolute;\n top: -1px;\n right: -1px;\n bottom: -1px;\n left: -1px;\n border-radius: 0.125rem;\n box-shadow: 0 0 0 3px var(--pg-focus-color, rgb(79, 143, 249, 0.5));\n}\n\ncanvas {\n touch-action: none;\n user-select: none;\n outline: 0;\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},3822:(e,t,n)=>{"use strict";n.d(t,{uA:()=>y,Yr:()=>$,eS:()=>C,kv:()=>E,jJ:()=>O,ah:()=>m,rH:()=>A,_w:()=>F,pO:()=>S});const a=Symbol("addObserver"),i=Symbol("removeObserver"),r=Symbol("getObservers"),s=Symbol("isProxy"),o=Symbol("getTarget"),l=["fill","pop","push","reverse","shift","sort","splice","unshift"],c=new Map;function d(e){return new Proxy(e,{get(t,n){if("symbol"==typeof n){switch(n){case s:return!0;case o:return t;case r:return c.has(e);case a:return(t,n)=>{c.has(e)?c.get(e).has(t)?c.get(e).get(t).push(n):c.get(e).set(t,[n]):c.set(e,new Map([[t,[n]]]))};case i:return t=>{c.has(e)&&(c.get(e).delete(t),0===c.get(e).size&&c.delete(e))};case Symbol.toPrimitive:case Symbol.toStringTag:return Reflect.get(t,n)}throw new Error("Unsupported symbol")}if(n in t){if(!Number.isNaN(Number(n)))return"object"==typeof t[n]?d(t[n]):t[n];if("copyWithin"===n)throw new Error("Unsupported array method copyWithin");if(l.includes(n))return c.has(t)?function(){const e=Array.prototype[n].apply(t,arguments);return c.get(t).forEach(((e,a)=>{e.forEach((e=>{e(t,n,arguments)}))})),e}:Reflect.get(t,n);if(t[n]instanceof Array)return d(t[n])}return Reflect.get(t,n)},set(e,t,n){if("symbol"==typeof t)throw new Error("Setting symbols not allowed.");if(Array.isArray(e))return Reflect.set(e,t,n);if(c.has(e)){c.get(e).forEach(((e,a)=>{e.forEach((e=>{e(t,n)}))}))}return Reflect.set(e,t,n)}})}window.observers=c;const u={fill:"fill",pop:"pop",push:"push",reverse:"reverse",shift:"shift",sort:"sort",splice:"splice",unshift:"unshift"};class PropError extends Error{constructor(e,t){super(e),this.name="PropError",Error.captureStackTrace&&Error.captureStackTrace(this,t)}}Symbol("index");const p=Symbol("init"),h=Symbol("template"),f=Symbol("style"),g=Symbol("parent");function m(e){return e[s]&&e[o]}function v(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function b(e){return e.replace(/-([a-z])/g,(e=>e[1].toUpperCase()))}function y(e={}){return function(t,n){if("class"!==n.kind)throw new Error("@Component() can only decorate a class");var a,i;Reflect.defineProperty(t,"name",{value:e.selector,writable:!1,configurable:!1}),!t.prototype[g]||t.prototype[g][t.prototype[g].length-1]instanceof Object.getPrototypeOf(t)?t.prototype instanceof HTMLElement&&(t.prototype[g]=[t.prototype],t.prototype[f]=e.style?[e.style]:[],t.prototype[h]=e.template||""):(t.prototype[g].push(t.prototype),t.prototype[f].push(e.style),t.prototype[h]=(a=t.prototype[h],(i=e.template||null)&&i.match(/<parent\/>/)?i.replace(/<parent\/>/,a):`${a}${i||""}`));const r=t.prototype.connectedCallback||(()=>{}),s=t.prototype.disconnectedCallback||(()=>{});t.prototype.connectedCallback=function(){if(this[p]||void 0!==e.template||void 0!==e.style)if(this[p]){if(this[p]&&e.style);else if(this[p]&&e.selector&&!e.template)throw new Error("You need to pass a template for an extended element.")}else{if(!1===e.useShadow)throw new Error("unsupported");{const e=document.createElement("template");e.innerHTML=t.prototype[h]||"";const n=document.importNode(e.content,!0),a=this.attachShadow({mode:"open"});a.adoptedStyleSheets=t.prototype[f].map((e=>{if(e instanceof CSSStyleSheet)return e;var t=new CSSStyleSheet;return t.replaceSync(e.toString()),t})),a.appendChild(n)}}else!1===e.useShadow||this.attachShadow({mode:"open"});const n=new Set;for(const e of this.shadowRoot.querySelectorAll("*"))-1!==e.localName.indexOf("-")&&n.add(e.localName);const a=Array.from(n.values()).map((e=>customElements.get(e)?Promise.resolve():customElements.whenDefined(e))),i=()=>{this[g].map((e=>{e.render&&e.render.call(this,t.observedAttributes?t.observedAttributes.reduce(((e,t)=>(e[b(t)]=!0,e)),{}):{})}))};0===a.length?(this[p]=!0,r.call(this),i()):Promise.all(a).then((()=>{this[p]=!0,r.call(this);for(const e of this.shadowRoot.querySelectorAll("slot"))e.dispatchEvent(new CustomEvent("slotchange"));i()}))},t.prototype.disconnectedCallback=function(){s.call(this)},t.prototype.attributeChangedCallback=function(e,t,n){this[b(e)]=n},n.addInitializer((function(){if(e.selector){if(window.customElements.get(e.selector))throw new Error(`@Component() ${n.name} duplicate selector '${e.selector}'`);window.customElements.define(e.selector,t)}}))}}Symbol("transmute");function w(e){return!!e&&e.constructor===Array}function x(e,t){e[p]&&e[g].map((n=>{n.render&&n.render.call(e,{[t]:!0})}))}function k(e){return null===e?"null":w(e)?"array":typeof e}function E(e){return function(t,n){const a=n.name,i=Symbol(a),o=Symbol(`${a}:type`),l=Symbol(`${a}:meta`);return n.addInitializer((function(){Reflect.defineProperty(this,a,{get:()=>"object"===this[o]||"array"===this[o]?this[i][s]?this[i]:d(this[i]):this[i],set:t=>{const n=k(e?e(t):t);if("index"!==a&&this[o]!==n&&"null"!==this[o]&&"null"!==n)throw new Error(`@Prop() ${a} with type '${this[o]}' cannot be set to ${n}.`);if("array"===this[o]){if(!w(t))throw new PropError(`Array "${a}" (Prop) initialized already. Reassignments must be array type.`,Object.getOwnPropertyDescriptor(this,a)?.set);if(this[i]===t)throw new Error("Setting an array to itself is not allowed.");const e=d(this[i]);if(e[r]){const n=t[s]?m(t):t;e.splice(0,this[i].length,...n)}else this[i]=t}else this[i]=e?e(t):t,x(this,a)}})})),function(t){if(void 0===t&&"index"!==a)throw new Error(`@Prop() ${a} must have an initial value defined.`);if(void 0!==t&&"index"===a)throw new Error("@Prop() index must not have an initial value defined.");if(!0===t)throw new Error(`@Prop() ${a} boolean must initialize to false.`);if(!n.private){const{constructor:e}=this;e.observedAttributes??=[],e.symbols||(e.symbols={});const{symbols:t}=e,n=v(a);t[a]||(e.observedAttributes.push(n),t[a]=i)}return this[o]=k(t),"array"===this[o]?(this[i]=t,new Proxy(t,{get:(e,t)=>t===L?this[l]:(console.log("errr???"),Reflect.get(this[i],t)),set:(e,t,n)=>{if(t===L)return this[l]=n,!0;const r=Reflect.set(e,t,n);return"length"===t&&this[i].length===n||x(this,a),this[i]=n,r}})):(this[i]=e?e(this.getAttribute(a)??t):this.getAttribute(a)??t,this[i])}}}function C(){return function(e,t){const n=t.name,a=n.replace(/^\$/,"");t.addInitializer((function(){let e=null;Reflect.defineProperty(this,n,{get(){return e??(e=this.shadowRoot?.querySelector(`[part~=${a}]`))}})}))}}function $(e){return function(t,n){n.name;return function(t){if(!(t instanceof Map))throw new Error("@Local(key) property must be type Map");return new Proxy(t,{get(n,a){switch(a){case"get":return n=>{if(!t.has(n))throw new Error(`@Local(key) missing key ${n}`);const a=`${e}:${n}`;return null===window.localStorage.getItem(a)?t.get(n):JSON.parse(window.localStorage.getItem(a)??"null")};case"set":return(n,a)=>{if(!t.has(n))throw new Error(`@Local(key) missing key ${n}`);const i=`${e}:${n}`;null===a||JSON.stringify(a)===JSON.stringify(t.get(n))?window.localStorage.removeItem(i):window.localStorage.setItem(i,JSON.stringify(a))};default:throw new Error(`@Local(key) supported method ${a}`)}}})}}}function A(e,t){const n=document.createElement("template");n.innerHTML=e;const a=document.importNode(n.content,!0);for(const[e,n]of Object.entries(t)){const t=a.querySelector(`[part~="${e}"]`);if(t)for(const[e,a]of Object.entries(n))if(a instanceof Function){null===a()?t.removeAttribute(e):t.setAttribute(e,a())}else t[e]=a}return a}function S(e){return parseInt(`${e}`,10)}function F(e){return""===e||!0===e||null!==e&&!1!==e&&(e||!0)}Symbol("hasProxy");const L=Symbol("meta");function O({container:e,items:t,type:n,create:i,connect:r,disconnect:s,update:o}){function l(e,r){const s=n(e),o=document.createElement(v(s.name),s),l=s.observedAttributes??[],c=function(e,t){const n=new Set(e);return t.filter((e=>n.has(e)))}(Object.keys(e),l);return l.includes("index")&&(o.index=r),-1!==c.indexOf("index")&&c.splice(c.indexOf("index"),1),c.forEach((t=>{o[t]=e[t]})),i&&i(o,d(e)),t[r][a](o,((e,t)=>{o[e]=t})),o}t.forEach(((t,n)=>{const a=l(t,n);e.appendChild(a),r&&r(a,d(t))})),t[a](e,((n,a,i)=>{switch(a){case u.fill:const[n,a,o]=i;for(let i=a||0;i<(o||t.length);i++)Object.keys(n).forEach((t=>{e.children[i][t]=n[t]}));break;case u.pop:const c=e.children.length;c>0&&e.children[c-1].remove();break;case u.push:const p=e.children.length;[...i].forEach(((t,n)=>{const a=l(t,p+n);e.appendChild(a),r&&r(a,d(t))}));break;case u.reverse:for(var s=1;s<e.children.length;s++)e.insertBefore(e.children[s],e.children[0]);break;case u.shift:e.children.length&&e.children[0].remove();for(let t=0;t<e.children.length;t++)e.children[t].index=t;break;case u.sort:throw new Error("ToDo... write sort.");case u.splice:const[h,f,...g]=i;if(f>0)for(let t=h;t<f+h;t++)e.children[t].remove();let m=g.length||0;if(m>0){const t=g.map(((e,t)=>l(e,h+t)));0===h?e.prepend(...t):e.children[h-1].after(...t);for(let t=h-f+m;t<e.children.length;t++)e.children[t].index=t;t.forEach((e=>{r&&r(e,g[s])}))}else for(let t=h;t<e.children.length;t++)e.children[t].index=t;break;case u.unshift:const v=e.children.length&&e.children[0],b=[...i].length;[...i].forEach(((t,n)=>{v?v.before(l(t,n)):e.appendChild(l(t,n))}));for(let t=b;t<e.children.length;t++)e.children[t].index=t}}))}},3841:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: flex;\n flex-direction: column;\n font-family: var(--pg-font-family);\n}\n\n[part="user"] {\n display: grid;\n grid-template-rows: 1fr 1fr;\n grid-template-columns: 4rem 2rem 1.5rem 1fr auto;\n padding: 0.5rem;\n}\n\n[part="avatar"] {\n grid-column: 1;\n grid-row: 1 / span 2;\n align-self: center;\n}\n\n[part="name"] {\n grid-column: 2 / span 3;\n grid-row: 1;\n white-space: nowrap;\n}\n\n[part="iconCount"] {\n display: flex;\n flex-direction: column;\n text-align: center;\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) inset;\n border-radius: 0.25rem;\n background: rgba(0, 0, 0, 0.05);\n grid-column: 5;\n grid-row: 1 / span 2;\n padding: 0 0.5rem;\n align-items: stretch;\n justify-content: center;\n color: #444;\n margin-left: 0.5rem;\n}\n\n[part="iconCountValue"] {\n font-weight: bold;\n}\n\n[part="github"] svg {\n width: 1.5rem;\n height: 1.5rem;\n}\n\n[part="github"] {\n grid-row: 2;\n grid-column: 2;\n color: #333;\n}\n\n[part="github"]:hover {\n color: #4f8ff9;\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},3942:(e,t,n)=>{"use strict";n.d(t,{I:()=>Icon});var a=n(6235),i=n(6208),r=n(6447);class Style{id;name;count=null;from(e){return this.id=e.id,this.name=e.name,this.count=e.count,this}}class FontIcon{id;codepoint;font;version;from(e){return this.id=e.id,this.codepoint=e.codepoint,this.font=e.font,this.version=e.version,this}to(){return{id:this.id,codepoint:this.codepoint,font:this.font,version:this.version}}}class Icon{id=null;packageId=null;baseIconId=null;name=null;description=null;data=null;user=null;version=null;aliases=[];tags=[];styles=[];published=!0;deprecated=!1;codepoint=null;fontIcons=[];fontIcon=null;constructor(e,t){this.name=e||null,this.data=t||null}from(e){return this.id=e.id,this.packageId=e.packageId,this.baseIconId=e.baseIconId,this.name=e.name,this.description=e.description,this.data=e.data,e.version&&(this.version=e.version),e.fontIcon&&(this.fontIcon=e.fontIcon),e.user&&(this.user=(new i.K).from(e.user)),e.aliases&&(this.aliases=e.aliases.map((e=>(new a.x).from(e)))),e.tags&&(this.tags=e.tags.map((e=>(new r.v).from(e)))),e.styles&&(this.styles=e.styles.map((e=>(new Style).from(e)))),"boolean"==typeof e.published&&(this.published=e.published),"boolean"==typeof e.deprecated&&(this.deprecated=e.deprecated),e.codepoint&&(this.codepoint=e.codepoint),e.fontIcons&&(this.fontIcons=e.fontIcons.map((e=>(new FontIcon).from(e)))),this}to(){const{id:e,name:t,description:n,data:a,version:i,fontIcon:r,packageId:s,baseIconId:o,aliases:l,tags:c}=this;return{id:e,name:t,description:n,data:a,version:i,fontIcon:r,packageId:s,baseIconId:o,aliases:l.map((e=>e.to())),tags:c.map((e=>e.to()))}}}},4071:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,"[part~=popover] {\n background: #FFF;\n padding: 0.5rem;\n border-radius: 0.5rem;\n box-shadow: 0 1px 14px rgba(0, 0, 0, 0.2);\n border: 4px solid #4F8FF9;\n}\n\n[part~=search] {\n border: 2px solid #453C4F;\n border-radius: 0.125rem;\n padding: 0.25rem 0.5rem;\n font-size: 1rem;\n width: 27.25rem;\n margin-bottom: 0.25rem;\n outline: none;\n}\n\n[part~=arrow],\n[part~=arrow]::before {\n position: absolute;\n width: 10px;\n height: 10px;\n}\n\n[part~=arrow]::before {\n content: '';\n transform: rotate(45deg);\n background: #FFF;\n}\n\n[part~=popover][data-popper-placement^='top'] > [part~=arrow] {\n bottom: -5px;\n}\n[part~=popover][data-popper-placement^='top'] > [part~=arrow]::before {\n border-bottom: 4px solid #4F8FF9;\n border-right: 4px solid #4F8FF9;\n border-bottom-right-radius: 0.25rem;\n}\n\n[part~=popover][data-popper-placement^='bottom'] > [part~=arrow] {\n top: -10px;\n}\n[part~=popover][data-popper-placement^='bottom'] > [part~=arrow]::before {\n border-top: 4px solid #4F8FF9;\n border-left: 4px solid #4F8FF9;\n border-top-left-radius: 0.25rem;\n}\n\n[part~=popover][data-popper-placement^='left'] > [part~=arrow] {\n right: -5px;\n}\n\n[part~=popover][data-popper-placement^='right'] > [part~=arrow] {\n left: -5px;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},4169:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n=[(0,a.uA)({selector:"x-pg-button-group-basic",template:'<div class="example example-flex"> <pg-button-group> <pg-button><pg-icon path="M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"></pg-icon></pg-button> <pg-button> <pg-icon path="M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"></pg-icon> With Icon </pg-button> <pg-button active> active </pg-button> </pg-button-group> </div>'})],s=[],o=HTMLElement;(class extends o{static{t=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;i(null,e={value:t},n,{kind:"class",name:t.name,metadata:a},null,s),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),r(t,s)}})})()},4175:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: inline-flex;\n}\n\n.blank {\n color: var(--pg-input-check-blank-color, #453C4F);\n}\n.blank [part="check"] {\n visibility: hidden;\n}\n\n.checked {\n color: var(--pg-input-check-checked-color, #453C4F);\n}\n\n[part="button"] {\n display: flex;\n padding: 0;\n border: 0;\n outline: 0;\n border-radius: 0.25rem;\n background: transparent;\n}\n\n[part="svg"] {\n width: var(--pg-icon-check-size, 1.5rem);\n height: var(--pg-icon-check-size, 1.5rem);\n}\n\n[part="button"]:not(:hover):active {\n box-shadow: 0 0 0 3px var(--pg-input-check-active-glow, rgb(79, 143, 249, 0.6));\n}\n[part="button"]:not(:hover):focus:not(:focus-visible) {\n box-shadow: none;\n}\n[part="button"]:not(:hover):focus {\n box-shadow: 0 0 0 3px var(--pg-input-check-focus-glow, rgb(79, 143, 249, 0.5));\n}\n[part="button"]:not(:disabled):hover [part="path"] {\n fill: #4f8ff9;\n}\n\n[part="button"]:disabled {\n color: #AAA;\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},4191:(e,t,n)=>{"use strict";var a=n(3822),i=n(5538);var r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const o="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z";(()=>{let e,t,n,l,c=[(0,a.uA)({selector:"x-pg-button-menu-basic",template:'<div class="example"> <pg-button-menu part="menu"></pg-button-menu> <div> <code>value: <code part="value"></code></code> </div> </div>'})],d=[],u=HTMLElement,p=[],h=[],f=[],g=[];(class extends u{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],l=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"$menu",static:!1,private:!1,access:{has:e=>"$menu"in e,get:e=>e.$menu,set:(e,t)=>{e.$menu=t}},metadata:i},p,h),r(null,null,l,{kind:"field",name:"$value",static:!1,private:!1,access:{has:e=>"$value"in e,get:e=>e.$value,set:(e,t)=>{e.$value=t}},metadata:i},f,g),r(null,e={value:t},c,{kind:"class",name:t.name,metadata:i},null,d),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,d)}$menu=s(this,p,void 0);$value=(s(this,h),s(this,f,void 0));connectedCallback(){this.$menu.label="Options",this.$menu.items=[{value:"item1",label:"Item 1",icon:o,type:i.A,items:[{value:"subitem1",label:"Sub Item 1",icon:o,type:i.A}]},{value:"item2",label:"Item 2"}],this.$menu.value=this.$menu.items[0],this.$menu.addEventListener("change",this.handleChange.bind(this))}handleChange(e){const{active:t}=e.detail;this.$value.textContent=`${t}`}constructor(){super(...arguments),s(this,g)}})})()},4282:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,"p {\n margin: 0.5rem 0;\n}\n\n[part=area] {\n display: flex;\n width: 20rem;\n height: 6rem;\n border: 1px dashed rgb(79, 143, 249);\n border-radius: 1rem;\n align-items: center;\n justify-content: center;\n cursor: default;\n background: var(--pg-focus-background-color, rgba(79, 143, 249, 0.1));\n color: rgba(79, 143, 249, 0.75);\n text-shadow: 0 0 4px #fff;\n box-sizing: border-box;\n outline: 0;\n}\n\n[part=area]:focus {\n border-width: 2px;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},4292:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n=[(0,a.uA)({selector:"x-pg-tabs-basic",template:'<div class="example"> <pg-tabs> <pg-tab label="Tab 1"> Content 1 </pg-tab> <pg-tab label="Tab 2"> Content 2 </pg-tab> <pg-tab label="Tab 3"> Content 3 </pg-tab> </pg-tabs> </div>'})],s=[],o=HTMLElement;(class extends o{static{t=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;i(null,e={value:t},n,{kind:"class",name:t.name,metadata:a},null,s),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),r(t,s)}})})()},4312:()=>{Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};a["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:a},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},4337:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const s="M13,9V3.5L18.5,9M6,2C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6Z";(()=>{let e,t,n,o,l,c,d,u,p,h=[(0,a.uA)({selector:"x-pg-menu-item-icon-basic",template:'<div class="example"> <pg-menu-item-icon part="item"></pg-menu-item-icon> </div> <div> <table style="border:1px solid #ddd;margin-block-start:0.5rem"> <thead> <tr> <th>Property</th> <th>Value</th> <th> </th> </tr> </thead> <tbody> <tr> <td><code>icon</code></td> <td part="iconValue"></td> <td> <button part="iconFile">File</button> <button part="iconFolder">Folder</button> </td> </tr> <tr> <td><code>checked</code></td> <td part="checkedValue"></td> <td><input part="checkedToggle" type="checkbox"/></td> </tr> <tr> <td><code>disabled</code></td> <td part="disabledValue"></td> <td><input part="disabledToggle" type="checkbox"/></td> </tr> </tbody> </table> </div>'})],f=[],g=HTMLElement,m=[],v=[],b=[],y=[],w=[],x=[],k=[],E=[],C=[],$=[],A=[],S=[],F=[],L=[];(class extends g{static{t=this}static{const s="function"==typeof Symbol&&Symbol.metadata?Object.create(g[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],o=[(0,a.eS)()],l=[(0,a.eS)()],c=[(0,a.eS)()],d=[(0,a.eS)()],u=[(0,a.eS)()],p=[(0,a.eS)()],i(null,null,n,{kind:"field",name:"$item",static:!1,private:!1,access:{has:e=>"$item"in e,get:e=>e.$item,set:(e,t)=>{e.$item=t}},metadata:s},m,v),i(null,null,o,{kind:"field",name:"$checkedToggle",static:!1,private:!1,access:{has:e=>"$checkedToggle"in e,get:e=>e.$checkedToggle,set:(e,t)=>{e.$checkedToggle=t}},metadata:s},b,y),i(null,null,l,{kind:"field",name:"$disabledToggle",static:!1,private:!1,access:{has:e=>"$disabledToggle"in e,get:e=>e.$disabledToggle,set:(e,t)=>{e.$disabledToggle=t}},metadata:s},w,x),i(null,null,c,{kind:"field",name:"$iconFile",static:!1,private:!1,access:{has:e=>"$iconFile"in e,get:e=>e.$iconFile,set:(e,t)=>{e.$iconFile=t}},metadata:s},k,E),i(null,null,d,{kind:"field",name:"$iconFolder",static:!1,private:!1,access:{has:e=>"$iconFolder"in e,get:e=>e.$iconFolder,set:(e,t)=>{e.$iconFolder=t}},metadata:s},C,$),i(null,null,u,{kind:"field",name:"$checkedValue",static:!1,private:!1,access:{has:e=>"$checkedValue"in e,get:e=>e.$checkedValue,set:(e,t)=>{e.$checkedValue=t}},metadata:s},A,S),i(null,null,p,{kind:"field",name:"$disabledValue",static:!1,private:!1,access:{has:e=>"$disabledValue"in e,get:e=>e.$disabledValue,set:(e,t)=>{e.$disabledValue=t}},metadata:s},F,L),i(null,e={value:t},h,{kind:"class",name:t.name,metadata:s},null,f),t=e.value,s&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s}),r(t,f)}$item=r(this,m,void 0);$checkedToggle=(r(this,v),r(this,b,void 0));$disabledToggle=(r(this,y),r(this,w,void 0));$iconFile=(r(this,x),r(this,k,void 0));$iconFolder=(r(this,E),r(this,C,void 0));$checkedValue=(r(this,$),r(this,A,void 0));$disabledValue=(r(this,S),r(this,F,void 0));connectedCallback(){this.$item.icon=s,this.$item.label="Item 1",this.$item.checked=!1,this.$item.disabled=!1,this.$checkedValue.textContent=`${this.$item.checked}`,this.$disabledValue.textContent=`${this.$item.disabled}`,this.$item.addEventListener("select",(e=>{this.$checkedToggle.checked=e.target.checked,this.$checkedValue.textContent=`${this.$item.checked}`})),this.$iconFile.addEventListener("click",(()=>{this.$item.icon=s})),this.$iconFolder.addEventListener("click",(()=>{this.$item.icon="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z"})),this.$checkedToggle.addEventListener("change",(e=>{this.$item.checked=e.target.checked,this.$checkedValue.textContent=`${this.$item.checked}`})),this.$disabledToggle.addEventListener("change",(e=>{this.$item.disabled=e.target.checked,this.$disabledValue.textContent=`${this.$item.disabled}`}))}constructor(){super(...arguments),r(this,L)}})})()},4345:(e,t,n)=>{"use strict";var a=n(3822);var i=n(7326),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o,l=[(0,a.uA)({selector:"pg-input-file-local",style:i.A,template:'<label part="label"> <input type="file" part="file"/> <svg part="icon" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z"/></svg> <span part="text">Upload a File...</span> </label>'})],c=[],d=HTMLElement,u=[],p=[],h=[],f=[];(class extends d{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],o=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"acceptsFileType",static:!1,private:!1,access:{has:e=>"acceptsFileType"in e,get:e=>e.acceptsFileType,set:(e,t)=>{e.acceptsFileType=t}},metadata:i},u,p),r(null,null,o,{kind:"field",name:"$file",static:!1,private:!1,access:{has:e=>"$file"in e,get:e=>e.$file,set:(e,t)=>{e.$file=t}},metadata:i},h,f),r(null,e={value:t},l,{kind:"class",name:t.name,metadata:i},null,c),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,c)}acceptsFileType=s(this,u,"");$file=(s(this,p),s(this,h,void 0));connectedCallback(){this.$file.addEventListener("change",(()=>{if(null!==this.$file.files&&0!==this.$file.files.length){var e=this.$file.files[0];if(this.acceptsFileType){var t=this.acceptsFileType.split(",").join("|"),n=new RegExp(`(${t})$`,"i");if(null===e.name.match(n))return void alert(`${this.acceptsFileType} file only`)}var a=new FileReader;a.addEventListener("loadstart",(function(){})),a.addEventListener("load",(t=>{var n=t.target.result;this.dispatchEvent(new CustomEvent("change",{detail:{value:n,name:e.name}}))})),a.addEventListener("error",(function(){alert("Error : Failed to read file")})),a.addEventListener("progress",(function(e){if(1==e.lengthComputable)Math.floor(e.loaded/e.total*100)})),a.readAsText(e)}else alert("Error : No file selected")}))}render(e){}constructor(){super(...arguments),s(this,f)}})})()},4417:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},4513:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: contents;\n}\n\n[part="button"] {\n display: flex;\n background: transparent;\n border: 0;\n padding: 0.125rem;\n margin: -0.125rem;\n border-radius: 0.125rem;\n}\n\n[part="button"]:hover {\n box-shadow: 0 0 0.125rem rgba(0, 0, 0, 0.25);\n background-color: rgba(255, 255, 255, 0.5);\n border-radius: 0.125rem;\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},4537:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,"[part~=button] {\n position: fixed;\n top: 1rem;\n right: 1rem;\n display: flex;\n background: #737E9E;\n box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);\n border-radius: 0.25rem;\n border: 1px solid #737E9E;\n padding: 0.5rem 0.5rem 0.5rem 0.75rem;\n color: #FFF;\n align-items: center;\n outline: 0;\n transition: border-color 0.1s ease-in;\n margin-bottom: 0.5rem;\n max-width: 18rem;\n font-size: 1rem;\n align-items: center;\n}\n\n[part~=loading] {\n height: 1.5rem;\n margin: -0.25rem 0.5rem -0.25rem -0.25rem;\n}\n\n[part~=button]:hover {\n border: 1px solid rgba(255, 255, 255, 0.75);\n}\n\n[part~=close] {\n height: 1rem;\n}\n\n[part~=closeIcon] {\n width: 1rem;\n height: 1rem;\n}\n\n[part~=loadingIcon] {\n animation: spin 2s infinite linear;\n width: 1.5rem;\n height: 1.5rem;\n}\n\n@keyframes progress {\n from {\n width: 0;\n }\n to {\n width: 20rem;\n }\n}\n\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n}\n\n[part~=closeIcon] {\n margin-left: 0.5rem;\n color: rgba(255, 255, 255, 0.5);\n transition: color 0.1s ease-in;\n}\n\n[part~=button]:hover [part~=closeIcon] {\n color: #fff;\n}\n\n.hide {\n display: none;\n}\n\n/* Error */\n\n[part~=button].error {\n color: #721c24;\n background-color: #f8d7da;\n border-color: #f5c6cb;\n}\n\n[part~=button].error [part~=closeIcon] {\n color: rgba(114, 28, 36, 0.6);\n}\n\n[part~=button].error:hover {\n border-color: #721c24;\n}\n\n[part~=button].error:hover [part~=closeIcon] {\n color: #721c24;\n}\n\n/* Warning */\n\n[part~=button].warning {\n color: #856404;\n background-color: #fff3cd;\n border-color: #ffeeba;\n}\n\n[part~=button].warning [part~=closeIcon] {\n color: rgba(133, 101, 4, 0.6);\n}\n\n[part~=button].warning:hover {\n border-color: #856404;\n}\n\n[part~=button].warning:hover [part~=closeIcon] {\n color: #856404;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},4604:()=>{Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),Prism.languages.scss.atrule.inside.rest=Prism.languages.scss},4723:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(3822),i=n(8496);var r=n(5273),s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const l=(()=>{let e,t,n,l,c,d,u,p,h,f,g,m,v,b,y,w,x,k,E,C,$,A=[(0,a.uA)({selector:"pg-tree-item",style:r.A,template:'<div part="item" draggable="true"> <div part="selected"></div> <button part="toggle"></button> <button part="iconButton"> <pg-icon part="icon"></pg-icon> </button> <input part="input" type="text" class="hide"/> <button part="labelButton"> <span part="label"></span> </button> <div part="actions"></div> <div part="dropabove"></div> <div part="dropon"></div> <div part="dropbelow"></div> </div> <div part="items"></div>'})],S=[],F=HTMLElement,L=[],O=[],T=[],D=[],j=[],I=[],P=[],M=[],B=[],z=[],H=[],R=[],N=[],V=[],_=[],K=[],Y=[],q=[],U=[],G=[],Q=[],W=[],Z=[],J=[],X=[],ee=[],te=[],ne=[],ae=[],ie=[],re=[],se=[],oe=[],le=[],ce=[],de=[],ue=[],pe=[];var he=class extends F{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(F[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],l=[(0,a.kv)()],c=[(0,a.kv)()],d=[(0,a.kv)()],u=[(0,a.kv)()],p=[(0,a.kv)()],h=[(0,a.kv)()],f=[(0,a.eS)()],g=[(0,a.eS)()],m=[(0,a.eS)()],v=[(0,a.eS)()],b=[(0,a.eS)()],y=[(0,a.eS)()],w=[(0,a.eS)()],x=[(0,a.eS)()],k=[(0,a.eS)()],E=[(0,a.eS)()],C=[(0,a.eS)()],$=[(0,a.eS)()],s(null,null,n,{kind:"field",name:"index",static:!1,private:!1,access:{has:e=>"index"in e,get:e=>e.index,set:(e,t)=>{e.index=t}},metadata:i},L,O),s(null,null,l,{kind:"field",name:"label",static:!1,private:!1,access:{has:e=>"label"in e,get:e=>e.label,set:(e,t)=>{e.label=t}},metadata:i},T,D),s(null,null,c,{kind:"field",name:"selected",static:!1,private:!1,access:{has:e=>"selected"in e,get:e=>e.selected,set:(e,t)=>{e.selected=t}},metadata:i},j,I),s(null,null,d,{kind:"field",name:"expanded",static:!1,private:!1,access:{has:e=>"expanded"in e,get:e=>e.expanded,set:(e,t)=>{e.expanded=t}},metadata:i},P,M),s(null,null,u,{kind:"field",name:"icon",static:!1,private:!1,access:{has:e=>"icon"in e,get:e=>e.icon,set:(e,t)=>{e.icon=t}},metadata:i},B,z),s(null,null,p,{kind:"field",name:"actions",static:!1,private:!1,access:{has:e=>"actions"in e,get:e=>e.actions,set:(e,t)=>{e.actions=t}},metadata:i},H,R),s(null,null,h,{kind:"field",name:"items",static:!1,private:!1,access:{has:e=>"items"in e,get:e=>e.items,set:(e,t)=>{e.items=t}},metadata:i},N,V),s(null,null,f,{kind:"field",name:"$toggle",static:!1,private:!1,access:{has:e=>"$toggle"in e,get:e=>e.$toggle,set:(e,t)=>{e.$toggle=t}},metadata:i},_,K),s(null,null,g,{kind:"field",name:"$item",static:!1,private:!1,access:{has:e=>"$item"in e,get:e=>e.$item,set:(e,t)=>{e.$item=t}},metadata:i},Y,q),s(null,null,m,{kind:"field",name:"$input",static:!1,private:!1,access:{has:e=>"$input"in e,get:e=>e.$input,set:(e,t)=>{e.$input=t}},metadata:i},U,G),s(null,null,v,{kind:"field",name:"$iconButton",static:!1,private:!1,access:{has:e=>"$iconButton"in e,get:e=>e.$iconButton,set:(e,t)=>{e.$iconButton=t}},metadata:i},Q,W),s(null,null,b,{kind:"field",name:"$icon",static:!1,private:!1,access:{has:e=>"$icon"in e,get:e=>e.$icon,set:(e,t)=>{e.$icon=t}},metadata:i},Z,J),s(null,null,y,{kind:"field",name:"$label",static:!1,private:!1,access:{has:e=>"$label"in e,get:e=>e.$label,set:(e,t)=>{e.$label=t}},metadata:i},X,ee),s(null,null,w,{kind:"field",name:"$labelButton",static:!1,private:!1,access:{has:e=>"$labelButton"in e,get:e=>e.$labelButton,set:(e,t)=>{e.$labelButton=t}},metadata:i},te,ne),s(null,null,x,{kind:"field",name:"$actions",static:!1,private:!1,access:{has:e=>"$actions"in e,get:e=>e.$actions,set:(e,t)=>{e.$actions=t}},metadata:i},ae,ie),s(null,null,k,{kind:"field",name:"$items",static:!1,private:!1,access:{has:e=>"$items"in e,get:e=>e.$items,set:(e,t)=>{e.$items=t}},metadata:i},re,se),s(null,null,E,{kind:"field",name:"$dropabove",static:!1,private:!1,access:{has:e=>"$dropabove"in e,get:e=>e.$dropabove,set:(e,t)=>{e.$dropabove=t}},metadata:i},oe,le),s(null,null,C,{kind:"field",name:"$dropon",static:!1,private:!1,access:{has:e=>"$dropon"in e,get:e=>e.$dropon,set:(e,t)=>{e.$dropon=t}},metadata:i},ce,de),s(null,null,$,{kind:"field",name:"$dropbelow",static:!1,private:!1,access:{has:e=>"$dropbelow"in e,get:e=>e.$dropbelow,set:(e,t)=>{e.$dropbelow=t}},metadata:i},ue,pe),s(null,e={value:t},A,{kind:"class",name:t.name,metadata:i},null,S),he=t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,S)}index=o(this,L,void 0);label=(o(this,O),o(this,T,""));selected=(o(this,D),o(this,j,!1));expanded=(o(this,I),o(this,P,!1));icon=(o(this,M),o(this,B,{path:"M0 0h24v24H0V0zm2 2v20h20V2H2z"}));actions=(o(this,z),o(this,H,[]));items=(o(this,R),o(this,N,[]));$toggle=(o(this,V),o(this,_,void 0));$item=(o(this,K),o(this,Y,void 0));$input=(o(this,q),o(this,U,void 0));$iconButton=(o(this,G),o(this,Q,void 0));$icon=(o(this,W),o(this,Z,void 0));$label=(o(this,J),o(this,X,void 0));$labelButton=(o(this,ee),o(this,te,void 0));$actions=(o(this,ne),o(this,ae,void 0));$items=(o(this,ie),o(this,re,void 0));$dropabove=(o(this,se),o(this,oe,void 0));$dropon=(o(this,le),o(this,ce,void 0));$dropbelow=(o(this,de),o(this,ue,void 0));connectedCallback(){this.$toggle.addEventListener("click",this.#ee.bind(this)),this.$item.addEventListener("action",this.#te.bind(this)),this.$item.addEventListener("pointerenter",this.#ne.bind(this)),this.$item.addEventListener("pointerleave",this.#ae.bind(this)),this.$item.addEventListener("dragstart",this.#ie.bind(this)),this.$item.addEventListener("dragend",this.#re.bind(this)),this.$labelButton.addEventListener("dblclick",this.#se.bind(this)),this.$labelButton.addEventListener("click",this.#e.bind(this)),this.$labelButton.addEventListener("keydown",this.#oe.bind(this)),this.$iconButton.addEventListener("dblclick",this.#le.bind(this)),this.$iconButton.addEventListener("click",this.#ce.bind(this)),this.$iconButton.addEventListener("keydown",this.#de.bind(this)),this.$item.addEventListener("contextmenu",this.#ue.bind(this)),this.$input.addEventListener("blur",this.#pe.bind(this)),this.$input.addEventListener("keydown",this.#he.bind(this)),this.$items.addEventListener("action",this.#fe.bind(this)),this.$items.addEventListener("move",this.#ge.bind(this)),this.$items.addEventListener("toggle",this.#me.bind(this)),this.$items.addEventListener("select",this.#H.bind(this)),this.$items.addEventListener("rename",this.#ve.bind(this)),this.$items.addEventListener("up",this.#be.bind(this)),this.$items.addEventListener("down",this.#ye.bind(this)),this.$items.addEventListener("itemdragstart",this.#we.bind(this)),this.$items.addEventListener("itemdragend",this.#xe.bind(this)),this.$items.addEventListener("itemdropenter",this.#ke.bind(this)),this.$dropabove.addEventListener("dragenter",this.#Ee.bind(this)),this.$dropabove.addEventListener("dragleave",this.#Ce.bind(this)),this.$dropabove.addEventListener("dragover",this.#$e.bind(this)),this.$dropabove.addEventListener("drop",this.#Ae.bind(this)),this.$dropon.addEventListener("dragenter",this.#Se.bind(this)),this.$dropon.addEventListener("dragleave",this.#Fe.bind(this)),this.$dropon.addEventListener("dragover",this.#$e.bind(this)),this.$dropon.addEventListener("drop",this.#Le.bind(this)),this.$dropbelow.addEventListener("dragenter",this.#Oe.bind(this)),this.$dropbelow.addEventListener("dragleave",this.#Te.bind(this)),this.$dropbelow.addEventListener("dragover",this.#$e.bind(this)),this.$dropbelow.addEventListener("drop",this.#De.bind(this)),(0,a.jJ)({container:this.$actions,items:this.actions,type:e=>i.A}),this.expanded&&this.#je()}disconnectedCallback(){console.log("disconnect",this.index)}#Ie=(o(this,pe),!0);#je(){this.#Ie&&((0,a.jJ)({container:this.$items,items:this.items,type:e=>he}),this.#Ie=!1)}render(e){e.label&&(this.$label.textContent=this.label),e.icon&&this.icon&&(this.$icon.path=this.icon.path),e.selected&&this.$item.classList.toggle("selected",this.selected),e.items&&this.$item.classList.toggle("items",0!==this.items.length),e.expanded&&(this.expanded&&this.#je(),this.$item.classList.toggle("expanded",this.expanded),this.$items.classList.toggle("expanded",this.expanded))}#ee(){this.dispatchEvent(new CustomEvent("toggle",{bubbles:!0,composed:!0,detail:{indexes:[this.index]}}))}#le(e){const{ctrlKey:t,shiftKey:n}=e;t||n||this.dispatchEvent(new CustomEvent("select",{bubbles:!0,composed:!0,detail:{type:"icondoubleclick",indexes:[this.index]}}))}#ce(){this.dispatchEvent(new CustomEvent("select",{bubbles:!0,composed:!0,detail:{type:"icon",indexes:[this.index]}}))}#e(e){if(this.#Pe)return void(this.#Pe=!1);const{ctrlKey:t,shiftKey:n}=e;this.dispatchEvent(new CustomEvent("select",{bubbles:!0,composed:!0,detail:{type:"label",indexes:[this.index],ctrlKey:t,shiftKey:n}}))}#oe(e){"Enter"===e.key&&(this.#Me(),e.preventDefault())}#ne(){this.dispatchEvent(new CustomEvent("enter",{bubbles:!0,composed:!0,detail:{indexes:[this.index]}}))}#ae(){this.dispatchEvent(new CustomEvent("leave",{bubbles:!0,composed:!0,detail:{indexes:[this.index]}}))}#te(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("action",{bubbles:!0,composed:!0,detail:{indexes:[this.index],actionIndex:e.detail.index}}))}#fe(e){e.detail.indexes.unshift(this.index)}#ge(e){e.detail.indexes.unshift(this.index)}#me(e){e.detail.indexes.unshift(this.index)}#ve(e){e.detail.indexes.unshift(this.index)}#be(e){e.detail.indexes.unshift(this.index)}#ye(e){e.detail.indexes.unshift(this.index)}#H(e){e.detail.indexes.unshift(this.index)}#ke(e){e.detail.indexes.unshift(this.index)}#ue(e){e.preventDefault()}#Me(){this.$labelButton.classList.add("hide"),this.$actions.classList.add("hide"),this.$input.classList.remove("hide"),this.$input.value=this.label,this.$input.select(),this.#Pe=!0,this.dispatchEvent(new CustomEvent("select",{bubbles:!0,composed:!0,detail:{type:"rename",indexes:[this.index]}}))}#Pe=!1;#se(e){const{ctrlKey:t,shiftKey:n}=e;t||n||(this.#Me(),e.preventDefault())}#pe(){this.$labelButton.classList.remove("hide"),this.$actions.classList.remove("hide"),this.$input.classList.add("hide"),this.$labelButton.click(),this.dispatchEvent(new CustomEvent("rename",{bubbles:!0,composed:!0,detail:{indexes:[this.index],label:this.$input.value}}))}#de(e){switch(e.key){case"ArrowUp":this.dispatchEvent(new CustomEvent("up",{bubbles:!0,composed:!0,detail:{indexes:[this.index]}})),e.preventDefault();break;case"ArrowDown":this.dispatchEvent(new CustomEvent("down",{bubbles:!0,composed:!0,detail:{indexes:[this.index]}})),e.preventDefault()}}#he(e){switch(e.key){case"Enter":this.#pe();break;case"Escape":this.$labelButton.classList.remove("hide"),this.$actions.classList.remove("hide"),this.$input.classList.add("hide"),this.$input.value=this.label,this.$labelButton.click();break;case"ArrowUp":this.dispatchEvent(new CustomEvent("up",{bubbles:!0,composed:!0,detail:{indexes:[this.index]}})),this.$labelButton.classList.remove("hide"),this.$actions.classList.remove("hide"),this.$input.classList.add("hide"),e.preventDefault();break;case"ArrowDown":this.dispatchEvent(new CustomEvent("down",{bubbles:!0,composed:!0,detail:{indexes:[this.index]}})),this.$labelButton.classList.remove("hide"),this.$actions.classList.remove("hide"),this.$input.classList.add("hide"),e.preventDefault()}}#Be;#ie(e){let t=0;this.dispatchEvent(new CustomEvent("itemdragstart",{bubbles:!0,composed:!0,detail:{ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,indexes:[this.index],callback:e=>{t=e}}})),this.$item.classList.toggle("dragging",!0),this.$items.classList.toggle("dragging",!0);const n=window.devicePixelRatio,a=document.createElement("canvas");document.body.append(a),a.width=100*n,a.height=40*n,a.style.width=a.width/n+"px";var i=a.getContext("2d");if(i){const e=`${t}`;i.font=`bold ${16*n}px Segoe UI`;const a=i.measureText(e);i.fillStyle="#453C4F",i.beginPath(),i.roundRect(20*n,0,(a.width+12)*n,28*n,8+2*n),i.fill(),i.fillStyle="#FFF",i.beginPath(),i.roundRect(22*n,2*n,(a.width+12-4)*n,24*n,8),i.fill(),i.fillStyle="#453C4F",i.fillText(e,30*n,20*n)}e.dataTransfer.setDragImage(a,0,0),this.#Be=a}#re(e){this.dispatchEvent(new CustomEvent("itemdragend",{bubbles:!0,composed:!0,detail:{indexes:[this.index]}})),this.$item.classList.toggle("dragging",!1),this.$items.classList.toggle("dragging",!1),this.#Be.remove()}#we(e){e.detail.indexes.unshift(this.index)}#xe(e){e.detail.indexes.unshift(this.index)}#Ee(e){this.dispatchEvent(new CustomEvent("itemdropenter",{bubbles:!0,composed:!0,detail:{indexes:[this.index],callback:t=>{t&&(e.dataTransfer.dropEffect="move")}}})),e.target.classList.toggle("drop",!0),e.dataTransfer.setData("text","test"),e.dataTransfer.effectAllowed="move"}#Ce(e){console.log("darg leave"),e.target.classList.toggle("drop",!1)}#ze;#Se(e){this.dispatchEvent(new CustomEvent("itemdropenter",{bubbles:!0,composed:!0,detail:{indexes:[this.index],callback:t=>{t&&(e.dataTransfer.dropEffect="move")}}})),e.target.classList.toggle("drop",!0),this.#ze=setTimeout((()=>{this.#ee()}),1500)}#Fe(e){clearTimeout(this.#ze),console.log("darg leave"),e.target.classList.toggle("drop",!1)}#Oe(e){this.dispatchEvent(new CustomEvent("itemdropenter",{bubbles:!0,composed:!0,detail:{indexes:[this.index],callback:t=>{t&&(e.dataTransfer.dropEffect="move")}}})),e.target.classList.toggle("drop",!0)}#Te(e){console.log("darg leave"),e.target.classList.toggle("drop",!1)}#$e(e){e.preventDefault(),e.dataTransfer.dropEffect="move"}#Ae(e){e.target.classList.toggle("drop",!1),this.dispatchEvent(new CustomEvent("move",{bubbles:!0,composed:!0,detail:{indexes:[this.index],position:"before"}}))}#Le(e){e.target.classList.toggle("drop",!1),this.dispatchEvent(new CustomEvent("move",{bubbles:!0,composed:!0,detail:{indexes:[this.index],position:"on"}}))}#De(e){e.target.classList.toggle("drop",!1),this.dispatchEvent(new CustomEvent("move",{bubbles:!0,composed:!0,detail:{indexes:[this.index],position:"after"}}))}};return he=t})()},4725:(e,t,n)=>{"use strict";var a=n(3822);var i=n(7497),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o=[(0,a.uA)({selector:"pg-annoy",style:i.A,template:'<div> <button part="close"> <svg viewBox="0 0 24 24"> <path fill="currentColor" d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"/> </svg> </button> <slot></slot> </div>'})],l=[],c=HTMLElement,d=[],u=[];(class extends c{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"$close",static:!1,private:!1,access:{has:e=>"$close"in e,get:e=>e.$close,set:(e,t)=>{e.$close=t}},metadata:i},d,u),r(null,e={value:t},o,{kind:"class",name:t.name,metadata:i},null,l),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,l)}$close=s(this,d,void 0);list=(s(this,u),[]);connectedCallback(){}})})()},4797:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,s,o,l=[(0,a.uA)({selector:"x-pg-input-range-basic",template:'<div class="example"> <pg-input-range part="input" value="50"></pg-input-range> <div> <code>onchange: <span part="value1"></span></code> </div> <div> <code>oninput: <span part="value2"></span></code> </div> </div>'})],c=[],d=HTMLElement,u=[],p=[],h=[],f=[],g=[],m=[];(class extends d{static{t=this}static{const v="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],s=[(0,a.eS)()],o=[(0,a.eS)()],i(null,null,n,{kind:"field",name:"$input",static:!1,private:!1,access:{has:e=>"$input"in e,get:e=>e.$input,set:(e,t)=>{e.$input=t}},metadata:v},u,p),i(null,null,s,{kind:"field",name:"$value1",static:!1,private:!1,access:{has:e=>"$value1"in e,get:e=>e.$value1,set:(e,t)=>{e.$value1=t}},metadata:v},h,f),i(null,null,o,{kind:"field",name:"$value2",static:!1,private:!1,access:{has:e=>"$value2"in e,get:e=>e.$value2,set:(e,t)=>{e.$value2=t}},metadata:v},g,m),i(null,e={value:t},l,{kind:"class",name:t.name,metadata:v},null,c),t=e.value,v&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:v}),r(t,c)}$input=r(this,u,void 0);$value1=(r(this,p),r(this,h,void 0));$value2=(r(this,f),r(this,g,void 0));connectedCallback(){this.$input.addEventListener("change",this.#j.bind(this)),this.$input.addEventListener("input",this.#N.bind(this))}#j(e){const{value:t}=e.detail;this.$value1.innerText=t}#N(e){const{value:t}=e.detail;this.$value2.innerText=t}constructor(){super(...arguments),r(this,m)}})})()},4801:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,":host {\n display: contents;\n}\n\n[part=grid] {\n display: grid;\n grid-template-columns: auto 0.5rem 1fr;\n grid-template-rows: auto 1fr;\n height: 100%;\n}\n\n[part=header] {\n display: flex;\n grid-column: 1 / 4;\n grid-row: 1;\n border-bottom: 2px solid #453C4F;\n}\n\n[part=header] > button {\n display: flex;\n border: 0;\n padding: 0.5rem;\n background-color: transparent;\n border-right: 1px solid rgba(69, 60, 79, 0.5);\n outline: none;\n}\n\n[part=header] > button:hover {\n background-color: rgba(69, 60, 79, 0.10);\n}\n\n[part=header] > button:focus-visible {\n position: relative;\n}\n\n[part=header] > button:focus-visible::before {\n pointer-events: none;\n content: '';\n position: absolute;\n top: 3px;\n right: 3px;\n bottom: 3px;\n left: 3px;\n box-shadow: 0 0 0 3px var(--pg-focus-color, rgba(79, 143, 249, 0.5));\n}\n\n[part=header] > button.selected {\n --pg-icon-color: rgb(79, 143, 249);\n}\n\n[part=header] > button.selected:hover {\n background-color: #fff;\n}\n\n[part=side] {\n display: flex;\n grid-column: 1;\n grid-row: 2;\n min-width: 10rem;\n max-width: 20rem;\n}\n\nslot[name=main] {\n display: flex;\n grid-column: 3;\n grid-row: 2;\n}\n\n[part=resize] {\n display: flex;\n grid-column: 2;\n grid-row: 2;\n border: 0;\n padding: 0;\n cursor: ew-resize;\n border-left: 1px solid #453C4F;\n border-right: 1px solid #453C4F;\n background-color: transparent;\n}\n\n[part=resize].dragging {\n background-color: var(--pg-focus-color, rgb(79, 143, 249, 0.5))\n}\n\n[part=home] {\n display: flex;\n grid-column: 1 / 4;\n grid-row: 2;\n background-color: #fff;\n position: relative;\n}\n\n[part=home]::before {\n content: ' ';\n position: absolute;\n top: -2px;\n width: 2.5rem;\n height: 2px;\n background-color: #fff;\n}\n\n[part=home].selected {\n background-color: #fff;\n}\n\n.hide {\n display: none;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},4857:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,":host {\n pointer-events: none;\n}\n\n[part~=tooltip] {\n position: relative;\n}\n\n[part~=tooltipText] {\n position: absolute;\n background: #737E9E;\n border-radius: 0.25rem;\n color: #FFF;\n padding: 0.15rem 0.5rem 0.3rem 0.5rem;\n white-space: nowrap;\n left: 0;\n top: 0;\n}\n\n[part~=tooltipArrow] {\n left: 16px;\n top: -7px;\n}\n\n[part~=tooltipArrow],\n[part~=tooltipArrow]::before {\n position: absolute;\n width: 10px;\n height: 10px;\n}\n\n[part~=tooltipArrow]::before {\n content: '';\n transform: rotate(45deg);\n background: #737E9E;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},4945:(e,t,n)=>{"use strict";var a=n(3822);var i=n(8441),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o,l,c=[(0,a.uA)({selector:"pg-icon",style:i.A,template:'<svg part="svg" viewBox="0 0 24 24"> <path part="path" fill="currentColor" d="M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"/> </svg>'})],d=[],u=HTMLElement,p=[],h=[],f=[],g=[],m=[],v=[];(class extends u{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],o=[(0,a.eS)()],l=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"path",static:!1,private:!1,access:{has:e=>"path"in e,get:e=>e.path,set:(e,t)=>{e.path=t}},metadata:i},p,h),r(null,null,o,{kind:"field",name:"$svg",static:!1,private:!1,access:{has:e=>"$svg"in e,get:e=>e.$svg,set:(e,t)=>{e.$svg=t}},metadata:i},f,g),r(null,null,l,{kind:"field",name:"$path",static:!1,private:!1,access:{has:e=>"$path"in e,get:e=>e.$path,set:(e,t)=>{e.$path=t}},metadata:i},m,v),r(null,e={value:t},c,{kind:"class",name:t.name,metadata:i},null,d),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,d)}path=s(this,p,"M0 0h24v24H0V0zm2 2v20h20V2H2z");$svg=(s(this,h),s(this,f,void 0));$path=(s(this,g),s(this,m,void 0));render(e){if(e.path){const e=getComputedStyle(this).getPropertyValue("--pg-icon-viewbox");if(this.$svg.setAttribute("viewBox",e||"0 0 24 24"),!this.path)throw new Error("invalid path set on pg-icon");this.$path.setAttribute("d",this.path)}}constructor(){super(...arguments),s(this,v)}})})()},4953:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(3822),i=n(7715);var r=n(1217),s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const l=[],c=[];const d=(()=>{let e,t,n,d,u,p,h,f,g,m,v=[(0,a.uA)({selector:"pg-overlay-sub-menu",template:'<div part="overlay"> <pg-menu part="menu"></pg-menu> </div>',style:r.A})],b=[],y=i.A,w=[],x=[],k=[],E=[],C=[],$=[],A=[],S=[],F=[],L=[],O=[],T=[],D=[],j=[],I=[],P=[];(class extends y{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(y[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],d=[(0,a.eS)()],u=[(0,a.kv)()],p=[(0,a.kv)()],h=[(0,a.kv)()],f=[(0,a.kv)()],g=[(0,a.kv)()],m=[(0,a.kv)()],s(null,null,n,{kind:"field",name:"$overlay",static:!1,private:!1,access:{has:e=>"$overlay"in e,get:e=>e.$overlay,set:(e,t)=>{e.$overlay=t}},metadata:i},w,x),s(null,null,d,{kind:"field",name:"$menu",static:!1,private:!1,access:{has:e=>"$menu"in e,get:e=>e.$menu,set:(e,t)=>{e.$menu=t}},metadata:i},k,E),s(null,null,u,{kind:"field",name:"source",static:!1,private:!1,access:{has:e=>"source"in e,get:e=>e.source,set:(e,t)=>{e.source=t}},metadata:i},C,$),s(null,null,p,{kind:"field",name:"x",static:!1,private:!1,access:{has:e=>"x"in e,get:e=>e.x,set:(e,t)=>{e.x=t}},metadata:i},A,S),s(null,null,h,{kind:"field",name:"y",static:!1,private:!1,access:{has:e=>"y"in e,get:e=>e.y,set:(e,t)=>{e.y=t}},metadata:i},F,L),s(null,null,f,{kind:"field",name:"default",static:!1,private:!1,access:{has:e=>"default"in e,get:e=>e.default,set:(e,t)=>{e.default=t}},metadata:i},O,T),s(null,null,g,{kind:"field",name:"items",static:!1,private:!1,access:{has:e=>"items"in e,get:e=>e.items,set:(e,t)=>{e.items=t}},metadata:i},D,j),s(null,null,m,{kind:"field",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:i},I,P),s(null,e={value:t},v,{kind:"class",name:t.name,metadata:i},null,b),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,b)}$overlay=o(this,w,void 0);$menu=(o(this,x),o(this,k,void 0));source=(o(this,E),o(this,C,null));x=(o(this,$),o(this,A,0));y=(o(this,S),o(this,F,0));default=(o(this,L),o(this,O,null));items=(o(this,T),o(this,D,[]));value=(o(this,j),o(this,I,null));render(e){e.items&&(this.$menu.items=this.items)}connectedCallback(){l.pop()?.close(),l.push(this),c.push(this),this.$menu.addEventListener("select",this.#H.bind(this)),this.$menu.addEventListener("close",this.#He.bind(this)),this.$overlay.popover="auto",null!==this.source&&this.$overlay.showPopover({source:this.source}),this.$overlay.addEventListener("toggle",this.#R.bind(this));this.source?.getBoundingClientRect();this.$overlay.style.setProperty("--pg-overlay-menu-_x","0px"),this.$overlay.style.setProperty("--pg-overlay-menu-_y","0px"),this.$menu.focus(0),this.#ye=this.#Re.bind(this),document.addEventListener("pointerdown",this.#ye)}#Ne=(o(this,P),!1);#ye;#Re(e){this.#Ne=e.composedPath().includes(this.source)}#R(e){"closed"===e.newState&&0===c.length&&this.#Ne&&(console.log(e),this.source?.focus())}disconnectedCallback(){c.pop(),document.removeEventListener("pointerdown",this.#ye)}#He(e){const{depth:t}=e.detail;console.log("close",t),1===t?this.close(null):this.close()}#H(e){e.detail.item.index=e.detail.index,this.close(e.detail.item),this.source?.focus()}});return t})()},5017:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: flex;\n position: relative;\n width: var(--pg-avatar-width, 3rem);\n height: var(--pg-avatar-height, 3rem);\n}\n\n[part="wrap"] {\n border: 1px solid var(--pg-icon-border-color, #453C4F);\n border-radius: 50%;\n overflow: hidden;\n}\n\n[part="img"] {\n width: calc(var(--pg-avatar-width, 3rem) - 2px);\n height: calc(var(--pg-avatar-height, 3rem) - 2px);\n}\n\n[part="sponsored"] {\n display: flex;\n position: absolute;\n bottom: -0.25rem;\n right: -0.5rem;\n border: 1px solid var(--pg-icon-border-color, #453C4F);\n background-color: #fff;\n border-radius: 50%;\n color: #ea4aaa;\n width: 1.5rem;\n height: 1.5rem;\n align-content: center;\n align-items: center;\n justify-items: center;\n justify-content: center;\n}\n[part="sponsored"]:hover {\n box-shadow: 0 0 0 0.125rem #fff;\n color: #fff;\n background-color: #ea4aaa;\n border-color: #ea4aaa;\n}\n[part="sponsored"] svg {\n width: 1rem;\n height: 1rem;\n margin-top: 1px; /* meh */\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},5070:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,":host {\n align-self: center;\n}\nsvg {\n width: 1.5rem;\n height: 1.5rem;\n}\nbutton {\n border: 0;\n background: transparent;\n}\nbutton > svg {\n fill: #fff;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},5084:e=>{"use strict";e.exports="data:image/svg+xml; utf8, <svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27><path d=%27M 11,17L 13,17L 19,11L 17,9L 12,14L 7,9L 5,11%27 fill=%27rgb%2869 60 79%29%27 /></svg>"},5183:(e,t,n)=>{"use strict";var a=n(3822),i=n(743);var r=n(6553),s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,l,c=[(0,a.uA)({selector:"pg-menu",style:r.A,template:'<div part="items"></div>'})],d=[],u=HTMLElement,p=[],h=[],f=[],g=[];(class extends u{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],l=[(0,a.eS)()],s(null,null,n,{kind:"field",name:"items",static:!1,private:!1,access:{has:e=>"items"in e,get:e=>e.items,set:(e,t)=>{e.items=t}},metadata:i},p,h),s(null,null,l,{kind:"field",name:"$items",static:!1,private:!1,access:{has:e=>"$items"in e,get:e=>e.$items,set:(e,t)=>{e.$items=t}},metadata:i},f,g),s(null,e={value:t},c,{kind:"class",name:t.name,metadata:i},null,d),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,d)}items=o(this,p,[]);$items=(o(this,h),o(this,f,void 0));connectedCallback(){(0,a.jJ)({container:this.$items,items:this.items,type:e=>e.type??i.A,create:(e,t)=>{e.addEventListener("close",(e=>{const{depth:t}=e.detail;this.dispatchEvent(new CustomEvent("close",{detail:{depth:t}}))})),e.addEventListener("select",(e=>{const{index:n}=e.detail;this.dispatchEvent(new CustomEvent("select",{detail:{indexes:[n],item:t}}))})),e.addEventListener("up",(e=>{const{index:t}=e.detail;this.#Ve(t-1,-1,t)})),e.addEventListener("down",(e=>{const{index:t}=e.detail;this.#Ve(t+1,1,t)}))}}),this.$items.addEventListener("hasCheck",(e=>{e.stopPropagation(),this.$items.classList.toggle("check",!0)}))}#Ve(e,t,n){if(e===n)return;if(-1===e)return this.#Ve(this.items.length-1,t,n);if(e>=this.items.length)return this.#Ve(0,t,n);const a=this.$items.children[e];if(!1===a.focusable||this.items[e].disabled)return this.#Ve(e+t,t,n);a?.focus()}focus(e){if(-1===e)this.#Ve(0,1,this.items.length-1);else{const t=this.$items.children[e];t?.focus()}}getItemOffset(e,t){const n=getComputedStyle(this.$items);let a=parseInt(n.getPropertyValue("padding-top"),10);const i=this.items.length;if(e>i||t>i)throw new Error("startIndex or endIndex not within range of items");for(let n=e;n<t;n++){a+=this.$items.children[n].getHeight()}return a}getItemHeight(e){if(e>this.items.length)throw new Error("index outside range of items");return this.$items.children[e].getHeight()}constructor(){super(...arguments),o(this,g)}})})()},5223:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: block;\n font-family: var(--pg-font-family);\n}\n\n[part="tabset"] {\n display: flex;\n flex-direction: row;\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n[part="tab"] {\n margin-right: 0.25rem;\n}\n',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},5273:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r),o=n(4417),l=n.n(o),c=new URL(n(6630),n.b),d=new URL(n(6122),n.b),u=new URL(n(6432),n.b),p=new URL(n(5084),n.b),h=s()(i()),f=l()(c),g=l()(d),m=l()(u),v=l()(p);h.push([e.id,`:host {\n display: contents;\n --y: calc(var(--x) + 1);\n}\n\n.hide {\n display: none !important;\n}\n\n[part=iconButton] {\n display: flex;\n background: transparent;\n border: 0;\n color: var(--pg-tree-item-color, #453C4F);\n padding: 0;\n --pg-icon-color: var(--pg-tree-item-color, #453C4F);\n align-items: center;\n font-family: var(--pg-font-family);\n font-size: var(--pg-tree-item-font-size, 1rem);\n}\n[part=labelButton] {\n display: flex;\n background: transparent;\n border: 0;\n color: var(--pg-tree-item-color, #453C4F);\n --pg-icon-color: var(--pg-tree-item-color, #453C4F);\n flex: 1;\n align-items: center;\n font-family: var(--pg-font-family);\n font-size: var(--pg-tree-item-font-size, 1rem);\n margin: -0.25rem -0.25rem -0.25rem -0.25rem;\n padding: 0 0.75rem 0 0.25rem;\n}\n\n[part=input] {\n display: flex;\n font-family: var(--pg-font-family);\n font-size: var(--pg-tree-item-font-size, 1rem);\n border-radius: 0.125rem;\n flex: 1;\n outline: 0;\n padding: 0 0.25rem;\n margin: -0.125rem -0.625rem -0.125rem -0.25rem;\n border-width: var(--pg-tree-item-border-width, 0);\n border-style: solid;\n border-color: var(--pg-tree-item-border-color, #453C4F);\n}\n\n[part=item] {\n display: grid;\n background: var(--pg-tree-item-background, transparent);\n border-radius: 0.25rem;\n padding: 0.25rem;\n gap: 0 0.5rem;\n user-select: none;\n padding-left: calc((var(--x) * 0.5rem) + 0.25rem);\n transition: background-color 0.1s ease-out;\n}\n\n[part=item] {\n grid-template-columns: min-content min-content auto min-content;\n grid-template-rows: auto;\n}\n[part=item] [part=selected] {\n grid-row: 1;\n grid-column: 1;\n}\n[part=item] [part=toggle] {\n grid-row: 1;\n grid-column: 1;\n}\n[part=item] [part=iconButton] {\n grid-row: 1;\n grid-column: 2;\n}\n[part=item] [part=labelButton] {\n grid-row: 1;\n grid-column: 3;\n}\n[part=item] [part=actions] {\n grid-row: 1;\n grid-column: 4;\n}\n[part=item] [part=dropabove] {\n grid-row: 1;\n grid-column: 1 / 5;\n align-self: flex-start;\n transform: translateY(-0.875rem);\n height: 1rem;\n margin: 0 -0.25rem 0 -0.25rem;\n z-index: 1;\n}\n[part=item] [part=dropon] {\n grid-row: 1;\n grid-column: 1 / 5;\n margin: 0.125rem -0.25rem;\n z-index: 1;\n}\n[part=item]:not(.items) [part=dropon] {\n display: none;\n}\n[part=item].items.expanded [part=dropbelow] {\n display: none;\n}\n[part=item] [part=dropbelow] {\n grid-row: 1;\n grid-column: 1 / 5;\n align-self: flex-end;\n transform: translateY(0.875rem);\n height: 1rem;\n margin: 0 -0.25rem 0 -0.25rem;\n z-index: 1;\n}\n\n[part=item]:not(.selected):not(.dragging):hover {\n background: var(--pg-tree-selected-secondary, rgb(69, 60, 79, 0.1));\n}\n[part=item].selected:not(.dragging):hover {\n background: var(--pg-tree-selected-secondary-hover, rgb(69, 60, 79, 0.1));\n}\n[part=item].selected,\n[part=item].items.selected {\n background-color: var(--pg-tree-selected-secondary);\n}\n[part=item].items.selected:not(.expanded):not(.dragging) [part=toggle] {\n border-radius: 0.125rem;\n background-color: var(--pg-tree-selected-primary);\n background-image: url(${f}) !important;\n}\n\n[part=item].items.selected.expanded:not(.dragging) [part=toggle] {\n border-radius: 0.125rem;\n background-color: var(--pg-tree-selected-primary);\n background-image: url(${g}) !important;\n}\n\n[part=item].items [part=selected] {\n display: none;\n}\n\n[part=item]:not(.items) [part=selected] {\n visibility: hidden;\n display: flex;\n width: 1rem;\n margin-left: -0.125rem;\n margin-right: -0.375rem;\n margin-top: -0.125rem;\n margin-bottom: -0.125rem;\n border-radius: 0.125rem;\n background: var(--pg-tree-selected-primary);\n}\n\n[part=item]:not(.dragging):not(.items).selected [part=selected] {\n visibility: visible;\n}\n\n[part=actions] {\n display: flex;\n gap: 0.25rem;\n --pg-icon-color: var(--pg-tree-item-color, #453C4F);\n}\n\n[part=items] {\n display: none;\n flex-direction: column;\n --x: calc(var(--y) + 1);\n gap: 0.25rem;\n}\n[part=items].expanded {\n display: flex;\n}\n\n[part=toggle] {\n display: none;\n margin-left: -0.125rem;\n margin-right: -0.375rem;\n margin-top: -0.125rem;\n margin-bottom: -0.125rem;\n padding: 0 0 0 1rem;\n width: 1rem;\n border: 0;\n background-repeat: no-repeat;\n background-position: center;\n background-color: transparent;\n}\n\n[part=toggle]:hover {\n box-shadow: 0 0 0.125rem rgba(0, 0, 0, 0.25);\n background-color: rgba(255, 255, 255, 0.5);\n border-radius: 0.125rem;\n}\n\n[part=item].items:not(.expanded) [part=toggle] {\n display: flex;\n background-image: url(${m});\n}\n\n[part=item].items.expanded [part=toggle] {\n display: flex;\n background-image: url(${v});\n}\n\n[part=dropabove].drop::before,\n[part=dropbelow].drop::before {\n content: ' ';\n height: 0.25rem;\n background-color: rgb(79, 143, 249);\n border-radius: 0.125rem;\n display: flex;\n margin-top: 0.375rem;\n}\n\n[part=dropon].drop {\n margin: -0.25rem !important;\n border: 4px solid rgb(79, 143, 249);\n border-radius: 0.25rem;\n}\n\n[part=item].dragging::after {\n content: ' ';\n display: flex;\n grid-column: 1 / 5;\n grid-row: 1;\n border-radius: 0.25rem;\n background: rgba(255, 255, 255, 0.5);\n user-select: none;\n margin: -0.25rem;\n border: 2px dashed rgb(79, 143, 249);\n}\n[part=items].dragging {\n --pg-_is-index-dragging: true;\n}\n[part=item].dragging [part=dropabove],\n[part=item].dragging [part=dropon],\n[part=item].dragging [part=dropbelow] {\n display: none;\n}\n\n@container style(--pg-_is-dragging: false) {\n [part=dropabove],\n [part=dropon],\n [part=dropbelow] {\n display: none;\n }\n}\n\n@container style(--pg-_is-index-dragging: true) {\n [part=item]::after {\n content: ' ';\n display: flex;\n grid-column: 1 / 5;\n grid-row: 1;\n border-radius: 0.25rem;\n background: rgba(255, 255, 255, 0.5);\n user-select: none;\n margin: -0.25rem;\n }\n [part=dropabove],\n [part=dropon],\n [part=dropbelow] {\n display: none;\n }\n}\n`,""]);var b=new CSSStyleSheet;b.replaceSync(h.toString());const y=b},5284:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n=[(0,a.uA)({selector:"x-pg-button-basic",template:'<div class="example"> <div class="example-flex"> <pg-button>Example Button</pg-button> <pg-button><pg-icon path="M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"></pg-icon></pg-button> <pg-button> <pg-icon path="M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"></pg-icon> With Icon </pg-button> </div> <pg-button block>Block Button</pg-button> </div>'})],s=[],o=HTMLElement;(class extends o{static{t=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;i(null,e={value:t},n,{kind:"class",name:t.name,metadata:a},null,s),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),r(t,s)}})})()},5355:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,"p {\n margin: 0.5rem 0;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},5395:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: flex;\n}\n\n[part="button"] {\n display: inline-flex;\n align-items: center;\n align-content: center;\n font-family: var(--pg-font-family);\n font-size: 1rem;\n line-height: 1.5rem;\n text-decoration: none;\n}\n\n[part="button"] {\n border: 1px solid var(--pg-button-border-color, #453C4F);\n background-color: var(--pg-button-background-color, #fff);\n color: var(--pg-button-color, #453C4F);\n padding: var(--pg-button-padding, 0.25rem 0.5rem);\n border-radius: 0.25rem;\n outline: none;\n --pg-icon-color: var(--pg-button-color, #453C4F);\n}\n\n[part="button"]:hover {\n border: 1px solid var(--pg-button-hover-border-color, #453C4F);\n background-color: var(--pg-button-hover-background-color, #453C4F);\n color: var(--pg-hover-button-color, #fff);\n --pg-icon-color: var(--pg-button-hover-color, #fff);\n}\n\n[part="button"]:active {\n box-shadow: 0 1px 0.25rem rgba(0, 0, 0, 0.5) inset;\n position: relative;\n}\n\n[part="button"]:focus {\n position: relative;\n}\n\n[part="button"]:active::before {\n content: \'\';\n position: absolute;\n top: -1px;\n right: -1px;\n bottom: -1px;\n left: -1px;\n border-radius: 0.25rem;\n box-shadow: 0 0 0 3px var(--pg-focus-color, rgb(79, 143, 249, 0.6));\n}\n[part="button"]:focus::before {\n pointer-events: none;\n content: \'\';\n position: absolute;\n top: -1px;\n right: -1px;\n bottom: -1px;\n left: -1px;\n border-radius: 0.25rem;\n box-shadow: 0 0 0 3px var(--pg-focus-color, rgb(79, 143, 249, 0.5));\n}\n\n[part="button"].start {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n margin-right: -1px;\n}\n\n[part="button"].center {\n border-radius: 0;\n margin-right: -1px;\n}\n\n[part="button"].end {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n[part="button"].active,\n[part="button"].active:hover {\n box-shadow: 0 1px 0.25rem rgba(0, 0, 0, 0.5) inset;\n background-color: rgba(69, 60, 79, 0.1);\n color: var(--pg-button-color, #453C4F);\n}\n\n[part="button"].block {\n flex: 1;\n}\n\n::slotted(*) {\n align-self: center;\n}\n',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},5455:(e,t,n)=>{"use strict";var a=n(3822);var i=n(1393),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};function o(e){return"PG-BUTTON"===e.tagName||"PG-BUTTON-LINK"===e.tagName}(()=>{let e,t,n,l=[(0,a.uA)({selector:"pg-button-group",style:i.A,template:'<slot part="slot"></slot>'})],c=[],d=HTMLElement,u=[],p=[];(class extends d{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"$slot",static:!1,private:!1,access:{has:e=>"$slot"in e,get:e=>e.$slot,set:(e,t)=>{e.$slot=t}},metadata:i},u,p),r(null,e={value:t},l,{kind:"class",name:t.name,metadata:i},null,c),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,c)}$slot=s(this,u,void 0);connectedCallback(){this.$slot.addEventListener("slotchange",this.handleSlotChange.bind(this))}handleSlotChange(e){const t=this.$slot.assignedElements();if(0!==t.length){const e=t[0];o(e)&&(e.start=!0);const n=t[t.length-1];o(n)&&(n.end=!0);for(let e=0;e<t.length;e++){const n=t[e];o(n)&&(n.center=!n.start&&!n.end)}}}render(e){}constructor(){super(...arguments),s(this,p)}})})()},5461:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(3822),i=n(7715);var r=n(97),s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const l=(()=>{let e,t,n,l,c,d,u,p,h=[(0,a.uA)({selector:"pg-overlay-select-menu",template:'<div part="overlay"> <pg-menu part="menu"></pg-menu> </div>',style:r.A})],f=[],g=i.A,m=[],v=[],b=[],y=[],w=[],x=[],k=[],E=[],C=[],$=[],A=[],S=[];(class extends g{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(g[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],l=[(0,a.eS)()],c=[(0,a.kv)()],d=[(0,a.kv)()],u=[(0,a.kv)()],p=[(0,a.kv)()],s(null,null,n,{kind:"field",name:"$overlay",static:!1,private:!1,access:{has:e=>"$overlay"in e,get:e=>e.$overlay,set:(e,t)=>{e.$overlay=t}},metadata:i},m,v),s(null,null,l,{kind:"field",name:"$menu",static:!1,private:!1,access:{has:e=>"$menu"in e,get:e=>e.$menu,set:(e,t)=>{e.$menu=t}},metadata:i},b,y),s(null,null,c,{kind:"field",name:"source",static:!1,private:!1,access:{has:e=>"source"in e,get:e=>e.source,set:(e,t)=>{e.source=t}},metadata:i},w,x),s(null,null,d,{kind:"field",name:"default",static:!1,private:!1,access:{has:e=>"default"in e,get:e=>e.default,set:(e,t)=>{e.default=t}},metadata:i},k,E),s(null,null,u,{kind:"field",name:"items",static:!1,private:!1,access:{has:e=>"items"in e,get:e=>e.items,set:(e,t)=>{e.items=t}},metadata:i},C,$),s(null,null,p,{kind:"field",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:i},A,S),s(null,e={value:t},h,{kind:"class",name:t.name,metadata:i},null,f),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,f)}$overlay=o(this,m,void 0);$menu=(o(this,v),o(this,b,void 0));source=(o(this,y),o(this,w,null));default=(o(this,x),o(this,k,null));items=(o(this,E),o(this,C,[]));value=(o(this,$),o(this,A,null));render(e){e.items&&null!==this.value&&(this.items.forEach((e=>e.checked=!1)),this.items.find((e=>e.value===this.value.value)).checked=!0)}connectedCallback(){this.$menu.items=this.items,this.$menu.addEventListener("select",this.#H.bind(this)),this.$overlay.popover="auto",null!==this.source&&this.$overlay.showPopover({source:this.source}),this.$overlay.addEventListener("toggle",this.#R.bind(this));const e=this.source?.getBoundingClientRect();let t=0;const n=null===this.value||"object"!=typeof this.value?this.value:this.value.value,a=null===this.value?-1:this.items.findIndex((e=>e.value===n));if(-1!==a){const n=this.$menu.getItemHeight(a);t-=this.$menu.getItemOffset(0,a),e?.height!==n&&e?.height&&(t+=(e.height-n)/2)}else if(this.items.length>0){this.default&&(this.default.checked=!0,this.$menu.items.unshift(this.default));const n=this.$menu.getItemHeight(0);t-=this.$menu.getItemOffset(0,0),e?.height!==n&&e?.height&&(t+=(e.height-n)/2)}this.$overlay.style.setProperty("--pg-overlay-menu-_x","0px"),this.$overlay.style.setProperty("--pg-overlay-menu-_y",`${t}px`),this.$menu.focus(a)}#R(e){"closed"===e.newState&&(this.close(),this.source?.focus())}disconnectedCallback(){}#H(e){e.detail.item.index=e.detail.index,this.close(e.detail.item),this.source?.focus()}constructor(){super(...arguments),o(this,S)}});return t})()},5465:(e,t,n)=>{"use strict";var a=n(3822);const i=[{id:"3e7a0e1b-b355-11e7-bf5c-94188269ec50",modificationId:"B4DEB3A8-A146-4086-9D7B-B67842A9CCB8",packageId:"38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",iconNameBefore:null,iconNameAfter:null,iconDescriptionBefore:null,iconDescriptionAfter:null,iconDataBefore:null,iconDataAfter:null,text:"Release `v1.0.42` with awesome updates.\n\n- Updates\n - `markdown` Supported",date:"2020-10-20T16:07:15Z",user:{id:"c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",name:"Austin Andrews",github:"templarian"},icon:null,version:{major:1,minor:0,patch:42},issue:null},{id:"87fb6a41-b354-11e7-bf5c-94188269ec50",modificationId:"691c8829-b1e7-11e7-bf5c-94188269ec50",packageId:"38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",iconNameBefore:null,iconNameAfter:null,iconDescriptionBefore:null,iconDescriptionAfter:null,iconDataBefore:null,iconDataAfter:null,text:"alias-created",date:"2017-10-17T16:02:09Z",user:{id:"c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",name:"Austin Andrews",github:"templarian"},icon:{id:"AB147073-9D20-4DA1-A108-3856FC1764C1",name:"icon-name",data:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",user:{id:"79c44334-2d86-11e5-8ac4-842b2b6cfe1b",name:"First Last",github:"GitHubUser"}},issue:42},{id:"820b8714-b354-11e7-bf5c-94188269ec50",modificationId:"f1f70a76-b975-11e9-8ca0-94188269ec50",packageId:"38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",iconNameBefore:null,iconNameAfter:null,iconDescriptionBefore:null,iconDescriptionAfter:null,iconDataBefore:null,iconDataAfter:null,text:"alias-deleted",date:"2017-10-17T16:01:59Z",user:{id:"c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",name:"Austin Andrews",github:"templarian"},icon:{id:"AB147073-9D20-4DA1-A108-3856FC1764C1",name:"icon-name",data:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",user:{id:"79c44334-2d86-11e5-8ac4-842b2b6cfe1b",name:"First Last",github:"GitHubUser"}},issue:42},{id:"51b1b2cc-b354-11e7-bf5c-94188269ec50",modificationId:"AFFE875E-01BC-4A34-9BE3-27625A155B28",packageId:"38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",iconNameBefore:null,iconNameAfter:null,iconDescriptionBefore:null,iconDescriptionAfter:null,iconDataAfter:null,iconDataBefore:null,text:null,date:"2017-10-17T16:00:38Z",user:{id:"c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",name:"Austin Andrews",github:"templarian"},icon:{id:"AB147073-9D20-4DA1-A108-3856FC1764C1",name:"icon-name",data:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",user:{id:"79c44334-2d86-11e5-8ac4-842b2b6cfe1b",name:"First Last",github:"GitHubUser"}},issue:42},{id:"46e38abf-b353-11e7-bf5c-94188269ec50",modificationId:"B1CE1713-A18A-4E9D-9E26-D0B4E44A1FAC",packageId:"38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",iconNameBefore:null,iconNameAfter:null,iconDescriptionBefore:null,iconDescriptionAfter:null,iconDataBefore:null,iconDataAfter:null,text:null,date:"2017-10-17T15:53:11Z",user:{id:"c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",name:"Austin Andrews",github:"templarian"},icon:{id:"AB147073-9D20-4DA1-A108-3856FC1764C1",name:"icon-name",data:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",user:{id:"79c44334-2d86-11e5-8ac4-842b2b6cfe1b",name:"First Last",github:"GitHubUser"}},issue:42},{id:"19445be2-b353-11e7-bf5c-94188269ec50",modificationId:"1506F66B-CC2A-4575-A20A-DC138628977A",packageId:"38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",iconNameBefore:null,iconNameAfter:null,iconDescriptionBefore:null,iconDescriptionAfter:null,iconDataBefore:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",iconDataAfter:"M10 4A4 4 0 0 1 14 8A4 4 0 0 1 10 12A4 4 0 0 1 6 8A4 4 0 0 1 10 4M10 14C14.42 14 18 15.79 18 18V20H2V18C2 15.79 5.58 14 10 14M20 12V7H22V13H20M20 17V15H22V17H20Z",text:null,date:"2017-10-17T15:51:54Z",user:{id:"c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",name:"Austin Andrews",github:"templarian"},icon:{id:"AB147073-9D20-4DA1-A108-3856FC1764C1",name:"icon-name",data:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",user:{id:"79c44334-2d86-11e5-8ac4-842b2b6cfe1b",name:"First Last",github:"GitHubUser"}},issue:42},{id:"f6100c55-b352-11e7-bf5c-94188269ec50",modificationId:"F7B6D49B-A86F-49AC-AF92-6B9D0DF6188B",packageId:"38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",iconNameBefore:"old-name",iconNameAfter:"new-name",iconDescriptionBefore:null,iconDescriptionAfter:null,iconDataBefore:null,iconDataAfter:null,text:null,date:"2017-10-17T15:50:55Z",user:{id:"c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",name:"Austin Andrews",github:"templarian"},icon:{id:"AB147073-9D20-4DA1-A108-3856FC1764C1",name:"icon-name",data:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",user:{id:"79c44334-2d86-11e5-8ac4-842b2b6cfe1b",name:"First Last",github:"GitHubUser"}},issue:42},{id:"ecb3dfda-b352-11e7-bf5c-94188269ec50",modificationId:"a185a9e8-c192-11e7-bf5c-94188269ec50",packageId:"38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",iconNameBefore:null,iconNameAfter:null,iconDescriptionBefore:null,iconDescriptionAfter:null,iconDataBefore:null,iconDataAfter:null,text:"tag-created",date:"2017-10-16T15:50:39Z",user:{id:"c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",name:"Austin Andrews",github:"templarian"},icon:{id:"AB147073-9D20-4DA1-A108-3856FC1764C1",name:"icon-name",data:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",user:{id:"79c44334-2d86-11e5-8ac4-842b2b6cfe1b",name:"First Last",github:"GitHubUser"}},issue:42},{id:"c6d9381b-b352-11e7-bf5c-94188269ec50",modificationId:"ffe6b5f6-b975-11e9-8ca0-94188269ec50",packageId:"38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",iconNameBefore:null,iconNameAfter:null,iconDescriptionBefore:null,iconDescriptionAfter:null,iconDataBefore:null,iconDataAfter:null,text:"tag-deleted",date:"2017-10-16T15:49:36Z",user:{id:"c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",name:"Austin Andrews",github:"templarian"},icon:{id:"AB147073-9D20-4DA1-A108-3856FC1764C1",name:"icon-name",data:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",user:{id:"79c44334-2d86-11e5-8ac4-842b2b6cfe1b",name:"First Last",github:"GitHubUser"}},issue:42},{id:"c2acb992-b352-11e7-bf5c-94188269ec50",modificationId:"3c638179-c4ca-11e8-9f27-94188269ec50",packageId:"38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",iconNameBefore:null,iconNameAfter:null,iconDescriptionBefore:"Old Description",iconDescriptionAfter:"New Description",iconDataBefore:null,iconDataAfter:null,text:null,date:"2017-10-16T15:49:29Z",user:{id:"c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",name:"Austin Andrews",github:"templarian"},icon:{id:"AB147073-9D20-4DA1-A108-3856FC1764C1",name:"icon-name",data:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",user:{id:"79c44334-2d86-11e5-8ac4-842b2b6cfe1b",name:"First Last",github:"GitHubUser"}},issue:42},{id:"c2acb992-b352-11e7-bf5c-94188269ec50",modificationId:"254591d0-b28e-11e9-8ca0-94188269ec50",packageId:"38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",iconNameBefore:null,iconNameAfter:null,iconDescriptionBefore:null,iconDescriptionAfter:null,iconDataBefore:null,iconDataAfter:null,text:"c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",date:"2017-10-16T15:49:29Z",user:{id:"c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",name:"Austin Andrews",github:"templarian"},icon:{id:"AB147073-9D20-4DA1-A108-3856FC1764C1",name:"icon-name",data:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",user:{id:"79c44334-2d86-11e5-8ac4-842b2b6cfe1b",name:"First Last",github:"GitHubUser"}},issue:42},{id:"c2acb992-b352-11e7-bf5c-94188269ec50",modificationId:"f92f310f-bfed-11e9-8ca0-94188269ec50",packageId:"38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",iconNameBefore:null,iconNameAfter:null,iconDescriptionBefore:null,iconDescriptionAfter:null,iconDataBefore:null,iconDataAfter:null,text:null,date:"2017-10-16T15:49:29Z",user:{id:"c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",name:"Austin Andrews",github:"templarian"},icon:{id:"AB147073-9D20-4DA1-A108-3856FC1764C1",name:"icon-name",data:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",user:{id:"79c44334-2d86-11e5-8ac4-842b2b6cfe1b",name:"First Last",github:"GitHubUser"}},issue:42},{id:"c2acb992-b352-11e7-bf5c-94188269ec50",modificationId:"brokenf-bfed-11e9-8ca0-94188269ec50",packageId:"38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",iconNameBefore:null,iconNameAfter:null,iconDescriptionBefore:null,iconDescriptionAfter:null,iconDataBefore:null,iconDataAfter:null,text:"invalid type, this modification id is supposed to break!",date:"2017-10-16T15:49:29Z",user:{id:"c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",name:"Austin Andrews",github:"templarian"},icon:{id:"AB147073-9D20-4DA1-A108-3856FC1764C1",name:"icon-name",data:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",user:{id:"79c44334-2d86-11e5-8ac4-842b2b6cfe1b",name:"First Last",github:"GitHubUser"}},issue:42}];var r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o,l,c,d=[(0,a.uA)({selector:"x-pg-modification-basic",template:'<div class="example"> <div> <button part="clear">Clear List</button> <button part="single">Single Item</button> <button part="editToggle">Toggle Edit Mode</button> </div> <pg-modification part="modification"> </pg-modification></div>'})],u=[],p=HTMLElement,h=[],f=[],g=[],m=[],v=[],b=[],y=[],w=[];(class extends p{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],o=[(0,a.eS)()],l=[(0,a.eS)()],c=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"$modification",static:!1,private:!1,access:{has:e=>"$modification"in e,get:e=>e.$modification,set:(e,t)=>{e.$modification=t}},metadata:i},h,f),r(null,null,o,{kind:"field",name:"$clear",static:!1,private:!1,access:{has:e=>"$clear"in e,get:e=>e.$clear,set:(e,t)=>{e.$clear=t}},metadata:i},g,m),r(null,null,l,{kind:"field",name:"$single",static:!1,private:!1,access:{has:e=>"$single"in e,get:e=>e.$single,set:(e,t)=>{e.$single=t}},metadata:i},v,b),r(null,null,c,{kind:"field",name:"$editToggle",static:!1,private:!1,access:{has:e=>"$editToggle"in e,get:e=>e.$editToggle,set:(e,t)=>{e.$editToggle=t}},metadata:i},y,w),r(null,e={value:t},d,{kind:"class",name:t.name,metadata:i},null,u),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,u)}$modification=s(this,h,void 0);$clear=(s(this,f),s(this,g,void 0));$single=(s(this,m),s(this,v,void 0));$editToggle=(s(this,b),s(this,y,void 0));connectedCallback(){this.$modification.modifications=i,this.$modification.addEventListener("edit",(e=>{console.log(e.detail)})),this.$editToggle.addEventListener("click",(()=>{this.$modification.edit=!this.$modification.edit})),this.$clear.addEventListener("click",(()=>{this.$modification.modifications=[]}));var e=0;this.$single.addEventListener("click",(()=>{e++;const t=this.$modification.modifications;this.$modification.modifications=[...t,{id:"3e7a0e1b-b355-11e7-bf5c-94188269ec50"+e,modificationId:"B4DEB3A8-A146-4086-9D7B-B67842A9CCB8",packageId:"38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",iconNameBefore:null,iconNameAfter:null,iconDescriptionBefore:null,iconDescriptionAfter:null,iconDataBefore:null,iconDataAfter:null,text:"Example `"+e+'"',date:"2020-10-20T16:07:15Z",user:{id:"c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",name:"Austin Andrews",github:"templarian"},icon:null,version:{major:1,minor:0,patch:42},issue:null}]}))}constructor(){super(...arguments),s(this,w)}})})()},5538:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(3822),i=n(4953);var r=n(993),s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const l=(()=>{let e,t,n,l,c,d,u,p,h,f,g,m=[(0,a.uA)({selector:"pg-menu-item-icon",style:r.A,template:'<button part="button"> <pg-icon part="icon"></pg-icon> <span part="label"></span> </button>'})],v=[],b=HTMLElement,y=[],w=[],x=[],k=[],E=[],C=[],$=[],A=[],S=[],F=[],L=[],O=[],T=[],D=[],j=[],I=[],P=[],M=[];(class extends b{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(b[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],l=[(0,a.kv)()],c=[(0,a.kv)()],d=[(0,a.kv)()],u=[(0,a.kv)()],p=[(0,a.kv)()],h=[(0,a.eS)()],f=[(0,a.eS)()],g=[(0,a.eS)()],s(null,null,n,{kind:"field",name:"index",static:!1,private:!1,access:{has:e=>"index"in e,get:e=>e.index,set:(e,t)=>{e.index=t}},metadata:i},y,w),s(null,null,l,{kind:"field",name:"icon",static:!1,private:!1,access:{has:e=>"icon"in e,get:e=>e.icon,set:(e,t)=>{e.icon=t}},metadata:i},x,k),s(null,null,c,{kind:"field",name:"label",static:!1,private:!1,access:{has:e=>"label"in e,get:e=>e.label,set:(e,t)=>{e.label=t}},metadata:i},E,C),s(null,null,d,{kind:"field",name:"checked",static:!1,private:!1,access:{has:e=>"checked"in e,get:e=>e.checked,set:(e,t)=>{e.checked=t}},metadata:i},$,A),s(null,null,u,{kind:"field",name:"disabled",static:!1,private:!1,access:{has:e=>"disabled"in e,get:e=>e.disabled,set:(e,t)=>{e.disabled=t}},metadata:i},S,F),s(null,null,p,{kind:"field",name:"items",static:!1,private:!1,access:{has:e=>"items"in e,get:e=>e.items,set:(e,t)=>{e.items=t}},metadata:i},L,O),s(null,null,h,{kind:"field",name:"$icon",static:!1,private:!1,access:{has:e=>"$icon"in e,get:e=>e.$icon,set:(e,t)=>{e.$icon=t}},metadata:i},T,D),s(null,null,f,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:i},j,I),s(null,null,g,{kind:"field",name:"$label",static:!1,private:!1,access:{has:e=>"$label"in e,get:e=>e.$label,set:(e,t)=>{e.$label=t}},metadata:i},P,M),s(null,e={value:t},m,{kind:"class",name:t.name,metadata:i},null,v),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})}static delegatesFocus=!0;index=o(this,y,void 0);icon=(o(this,w),o(this,x,"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z"));label=(o(this,k),o(this,E,""));checked=(o(this,C),o(this,$,!1));disabled=(o(this,A),o(this,S,!1));items=(o(this,F),o(this,L,[]));$icon=(o(this,O),o(this,T,void 0));$button=(o(this,D),o(this,j,void 0));$label=(o(this,I),o(this,P,void 0));render(e){e.icon&&(this.$icon.path=this.icon),e.label&&(this.$label.textContent=this.label),e.disabled&&(this.$button.disabled=this.disabled),e.checked&&this.$button.classList.toggle("checked",this.checked),e.items&&this.$button.classList.toggle("more",this.items.length>0),e.checked&&!0===this.checked&&this.dispatchEvent(new CustomEvent("hasCheck",{bubbles:!0}))}connectedCallback(){this.$button.addEventListener("click",(async()=>{if(this.items.length>0){const e=await i.A.open({source:this.$button,x:0,y:0,value:this.items[0],items:this.items});null===e?this.focus():e?this.dispatchEvent(new CustomEvent("select",{detail:{item:e}})):this.dispatchEvent(new CustomEvent("close",{detail:{depth:-1}}))}else this.dispatchEvent(new CustomEvent("select",{detail:{index:this.index,item:this.items[this.index]}}))})),this.$button.addEventListener("keydown",(async e=>{switch(e.key){case"ArrowDown":this.dispatchEvent(new CustomEvent("down",{detail:{index:this.index}})),e.preventDefault();break;case"ArrowUp":this.dispatchEvent(new CustomEvent("up",{detail:{index:this.index}})),e.preventDefault();break;case"ArrowLeft":this.dispatchEvent(new CustomEvent("close",{detail:{depth:1}})),e.preventDefault();break;case"ArrowRight":if(this.items.length>0){const e=await i.A.open({source:this.$button,x:0,y:0,value:this.items[0],items:this.items});null===e?this.focus():e?this.dispatchEvent(new CustomEvent("select",{detail:{item:e}})):this.dispatchEvent(new CustomEvent("close",{detail:{depth:-1}}))}e.preventDefault();break;case"Escape":this.dispatchEvent(new CustomEvent("close",{detail:{depth:-1}})),e.preventDefault()}}))}focus(){this.$button.focus()}getHeight(){return this.$label.getBoundingClientRect().height}constructor(){super(...arguments),o(this,M)}static{o(t,v)}});return t})()},5545:()=>{!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return a})),r=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+r+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+r+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+r+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,a=t.length;n<a;n++){var i=t[n];if("code"===i.type){var r=i.content[1],s=i.content[3];if(r&&s&&"code-language"===r.type&&"code-block"===s.type&&"string"==typeof r.content){var o=r.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),l="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase());s.alias?"string"==typeof s.alias?s.alias=[s.alias,l]:s.alias.push(l):s.alias=[l]}}else e(i.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",a=0,i=t.classes.length;a<i;a++){var r=t.classes[a],c=/language-(.+)/.exec(r);if(c){n=c[1];break}}var d,u=e.languages[n];if(u)t.content=e.highlight((d=t.content,d.replace(s,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n);var a=o[t];return a||e}))),u,n);else if(n&&"none"!==n&&e.plugins.autoloader){var p="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=p,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(p);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var s=RegExp(e.languages.markup.tag.pattern.source,"gi"),o={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism)},5555:(e,t,n)=>{"use strict";var a=n(3822);var i=n(5070),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o,l=[(0,a.uA)({selector:"pg-nav",style:i.A,template:'<nav part="nav"> <a href="/"> <span part="name"></span> </a> <a href="/icons"> Icons </a> <a href="/icons"> Docs </a> <button part="menu"> <svg viewBox="0 0 24 24"> <path d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z"/> </svg> </button> </nav>'})],c=[],d=HTMLElement,u=[],p=[],h=[],f=[];(class extends d{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],o=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"nav",static:!1,private:!1,access:{has:e=>"nav"in e,get:e=>e.nav,set:(e,t)=>{e.nav=t}},metadata:i},u,p),r(null,null,o,{kind:"field",name:"$path",static:!1,private:!1,access:{has:e=>"$path"in e,get:e=>e.$path,set:(e,t)=>{e.$path=t}},metadata:i},h,f),r(null,e={value:t},l,{kind:"class",name:t.name,metadata:i},null,c),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,c)}nav=s(this,u,"M0 0h24v24H0V0zm2 2v20h20V2H2z");$path=(s(this,p),s(this,h,void 0));render(){}constructor(){super(...arguments),s(this,f)}})})()},5567:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,":host {\n display: block;\n align-self: center;\n font-family: var(--pg-font-family);\n}\n\ndiv {\n display: grid;\n grid-template-columns: 1fr 0;\n grid-template-rows: 1fr 0;\n}\ninput {\n grid-row: 1;\n grid-column: 1;\n border-radius: 0.25rem;\n border: 0;\n padding: 0.25rem 0.5rem;\n font-size: 1rem;\n outline: none;\n width: calc(100% - 1rem);\n border: .0625rem solid var(--pg-search-border-color);\n}\ninput:active {\n box-shadow: 0 0 0 3px var(--pg-search-active-glow, rgba(79, 143, 249, 0.6));\n}\ninput:focus {\n box-shadow: 0 0 0 3px var(--pg-focus-color, rgba(79, 143, 249, 0.5));\n}\n.active input + svg path {\n fill: #453C4F;\n}\nsvg {\n grid-row: 1;\n grid-column: 2;\n width: 1.5rem;\n height: 1.5rem;\n justify-self: right;\n margin-right: 0.25rem;\n pointer-events: none;\n align-self: center;\n}\nsvg > path {\n transition: fill 0.3s ease-in-out;\n}\n[part=menu] {\n display: none;\n background: #FFF;\n grid-row: 2;\n grid-column: 1 / span 2;\n z-index: 1;\n}\nul {\n list-style: none;\n display: flex;\n flex-direction: column;\n padding: 0;\n margin: 0;\n border-radius: 0.25rem;\n box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.4);\n}\nul > li {\n color: #222;\n}\nul > li > a {\n display: flex;\n padding: 0.25rem 0.5rem;\n background: #FFF;\n border-left: 1px solid #DDD;\n border-right: 1px solid #DDD;\n}\nul > li > a:hover,\nul > li > a:active,\nul > li > a:focus {\n background: #DAF4FB;\n}\nul > li.item:first-child > a {\n border-top: 1px solid #DDD;\n border-bottom: 1px solid #DDD;\n border-radius: 0.25rem 0.25rem 0 0;\n}\nul > li.item:not(:first-child) > a {\n border-bottom: 1px solid #DDD;\n}\nul > li.item:last-child > a {\n border-radius: 0 0 0.25rem 0.25rem;\n}\nul > li > a {\n text-decoration: none;\n color: #222;\n}\nul > li > a strong {\n color: #453C4F;\n}\n.section {\n color: #FFF;\n padding: 0.25rem 0.5rem;\n font-weight: bold;\n background: #453C4F;\n border-radius: 0.25rem 0.25rem 0 0;\n cursor: default;\n}\n.section + li a {\n border-radius: 0;\n}\n\nli + .section {\n border-radius: 0;\n}\n\n.type {\n background-color: #453C4F;\n border-radius: 0.25rem;\n font-size: 0.75rem;\n color: #fff;\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n margin: 0.125rem 0 0.125rem 0.25rem;\n align-self: end;\n}\n\n.icon {\n background-color: #453C4F;\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.icon.first > a {\n border-top-left-radius: 0.25rem;\n border-top-right-radius: 0.25rem;\n}\n.icon.last {\n padding-bottom: 0.25rem;\n border-bottom-left-radius: 0.25rem;\n border-bottom-right-radius: 0.25rem;\n}\n.icon.last > a {\n border-radius: 0 0 0.25rem 0.25rem;\n}\n.icon svg {\n color: #453C4F;\n margin-right: 0.345rem;\n margin-left: -0.25rem;\n}\n\n.all {\n background-color: #453C4F;\n padding: 0 0.25rem 0.25rem 0.25rem;\n border-radius: 0 0 0.25rem 0.25rem;\n}\n\n.all a {\n border-radius: 0.25rem;\n}\n\n[part~=empty] {\n background: #453C4F;\n border-radius: 0.25rem;\n padding: 0.25rem;\n box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.4);\n}\n[part~=empty] strong {\n color: #fff;\n padding: 0 0.25rem;\n}\n[part~=empty] a {\n display: block;\n background: #fff;\n color: #453C4F;\n text-decoration: none;\n padding: 0.25rem 0.5rem;\n border-radius: 0.25rem;\n margin-top: 0.25rem;\n}\n[part~=empty] a:hover,\n[part~=empty] a:active,\n[part~=empty] a:focus {\n background: #DAF4FB;\n}\n[part~=empty] a svg {\n vertical-align: middle;\n width: 1.5rem;\n height: 1.5rem;\n float: right;\n margin: -0.125rem -0.25rem 0 0;\n}\n\n.hide {\n display: none;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},5578:(e,t,n)=>{"use strict";var a=n(3822);function i(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function r(e){const t=e.toUpperCase();return 7===t.length?t:4===t.length?`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`:"#000000"}function s(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function o(e,t,n){return"#"+s(e)+s(t)+s(n)}var l=n(8457),c=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},d=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,s,u,p,h,f=[(0,a.uA)({selector:"pg-input-hex-rgb",style:l.A,template:'<div> <input part="hex" type="text"/> <label part="labelRed">R</label> <input part="red" type="number" step="1" min="0" max="255"/> <label part="labelGreen">G</label> <input part="green" type="number" step="1" min="0" max="255"/> <label part="labelBlue">B</label> <input part="blue" type="number" step="1" min="0" max="255"/> </div>'})],g=[],m=HTMLElement,v=[],b=[],y=[],w=[],x=[],k=[],E=[],C=[],$=[],A=[];(class extends m{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],s=[(0,a.eS)()],u=[(0,a.eS)()],p=[(0,a.eS)()],h=[(0,a.eS)()],c(null,null,n,{kind:"field",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:i},v,b),c(null,null,s,{kind:"field",name:"$hex",static:!1,private:!1,access:{has:e=>"$hex"in e,get:e=>e.$hex,set:(e,t)=>{e.$hex=t}},metadata:i},y,w),c(null,null,u,{kind:"field",name:"$red",static:!1,private:!1,access:{has:e=>"$red"in e,get:e=>e.$red,set:(e,t)=>{e.$red=t}},metadata:i},x,k),c(null,null,p,{kind:"field",name:"$green",static:!1,private:!1,access:{has:e=>"$green"in e,get:e=>e.$green,set:(e,t)=>{e.$green=t}},metadata:i},E,C),c(null,null,h,{kind:"field",name:"$blue",static:!1,private:!1,access:{has:e=>"$blue"in e,get:e=>e.$blue,set:(e,t)=>{e.$blue=t}},metadata:i},$,A),c(null,e={value:t},f,{kind:"class",name:t.name,metadata:i},null,g),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),d(t,g)}value=d(this,v,"#000000");$hex=(d(this,b),d(this,y,void 0));$red=(d(this,w),d(this,x,void 0));$green=(d(this,k),d(this,E,void 0));$blue=(d(this,C),d(this,$,void 0));connectedCallback(){this.$hex.value=this.value,this.updateRgb(),this.$hex.addEventListener("input",this.updateRgbDispatch.bind(this)),this.$red.addEventListener("input",this.updateHexDispatch.bind(this)),this.$green.addEventListener("input",this.updateHexDispatch.bind(this)),this.$blue.addEventListener("input",this.updateHexDispatch.bind(this))}updateRgb(){const e=i(r(this.$hex.value));null!==e&&(this.$red.value=e.r.toString(),this.$green.value=e.g.toString(),this.$blue.value=e.b.toString())}updateRgbDispatch(){this.updateRgb(),this.dispatchSelect()}updateHexDispatch(){this.$hex.value=o(parseInt(this.$red.value||"0",10),parseInt(this.$green.value||"0",10),parseInt(this.$blue.value||"0",10)),this.dispatchSelect()}dispatchSelect(){const e=r(this.$hex.value),t=o(parseInt(this.$red.value||"0",10),parseInt(this.$green.value||"0"),parseInt(this.$blue.value||"0"));this.value=e,this.dispatchEvent(new CustomEvent("change",{detail:{hex:e,rgb:t}}))}render(){const e=r(this.value),t=i(e);this.$hex.value=e,this.$red.value=`${t?t.r:0}`,this.$green.value=`${t?t.g:0}`,this.$blue.value=`${t?t.b:0}`}constructor(){super(...arguments),d(this,A)}})})()},5659:(e,t,n)=>{"use strict";var a=n(3822);var i=n(4857),r=n(373),s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const l={[r.Rj]:(e,t,n)=>({arrowTop:t-5,arrowLeft:n.width>e?Math.floor(e/2)-5:Math.floor(n.width/2)-5,left:n.left,top:n.top-t-10}),[r.wv]:(e,t,n)=>({arrowTop:t-5,arrowLeft:Math.floor(e/2)-5,left:n.left-Math.floor((e-n.width)/2),top:n.top-t-10}),[r.a$]:(e,t,n)=>({arrowTop:t-5,arrowLeft:n.width>e?e-Math.floor(e/2)-5:e-Math.floor(n.width/2)-5,left:n.left-e+n.width,top:n.top-t-10}),[r.C1]:(e,t,n)=>({arrowTop:Math.floor(t/2)-5,arrowLeft:-5,left:n.left+n.width+10,top:n.top}),[r.NS]:(e,t,n)=>({arrowTop:Math.floor(t/2)-5,arrowLeft:-5,left:n.left+n.width+10,top:n.top+Math.floor(n.height/2)-Math.floor(t/2)}),[r.fk]:(e,t,n)=>({arrowTop:Math.floor(t/2)-5,arrowLeft:-5,left:n.left+n.width+10,top:n.top+n.height-t}),[r.fF]:(e,t,n)=>({arrowTop:-5,arrowLeft:n.width>e?Math.floor(e/2)-5:Math.floor(n.width/2)-5,left:n.left,top:n.top+n.height+t-20}),[r._N]:(e,t,n)=>({arrowTop:-5,arrowLeft:Math.floor(e/2)-5,left:n.left-Math.floor((e-n.width)/2),top:n.top+n.height+t-20}),[r.SK]:(e,t,n)=>({arrowTop:-5,arrowLeft:n.width>e?e-Math.floor(e/2)-5:e-Math.floor(n.width/2)-5,left:n.left-e+n.width,top:n.top+n.height+t-20}),[r.TC]:(e,t,n)=>({arrowTop:Math.floor(t/2)-5,arrowLeft:e-5,left:n.left-e-10,top:n.top}),[r.M3]:(e,t,n)=>({arrowTop:Math.floor(t/2)-5,arrowLeft:e-5,left:n.left-e-10,top:n.top+Math.floor(n.height/2)-Math.floor(t/2)}),[r.SV]:(e,t,n)=>({arrowTop:Math.floor(t/2)-5,arrowLeft:e-5,left:n.left-e-10,top:n.top+n.height-t})};(()=>{let e,t,n,c,d,u,p,h,f,g=[(0,a.uA)({selector:"pg-tooltip",style:i.A,template:'<div part="tooltip"> <span part="tooltipText"></span> <div part="tooltipArrow"></div> </div>'})],m=[],v=HTMLElement,b=[],y=[],w=[],x=[],k=[],E=[],C=[],$=[],A=[],S=[],F=[],L=[],O=[],T=[];(class extends v{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(v[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],c=[(0,a.kv)()],d=[(0,a.kv)()],u=[(0,a.kv)()],p=[(0,a.eS)()],h=[(0,a.eS)()],f=[(0,a.eS)()],s(null,null,n,{kind:"field",name:"visible",static:!1,private:!1,access:{has:e=>"visible"in e,get:e=>e.visible,set:(e,t)=>{e.visible=t}},metadata:i},b,y),s(null,null,c,{kind:"field",name:"rect",static:!1,private:!1,access:{has:e=>"rect"in e,get:e=>e.rect,set:(e,t)=>{e.rect=t}},metadata:i},w,x),s(null,null,d,{kind:"field",name:"text",static:!1,private:!1,access:{has:e=>"text"in e,get:e=>e.text,set:(e,t)=>{e.text=t}},metadata:i},k,E),s(null,null,u,{kind:"field",name:"position",static:!1,private:!1,access:{has:e=>"position"in e,get:e=>e.position,set:(e,t)=>{e.position=t}},metadata:i},C,$),s(null,null,p,{kind:"field",name:"$tooltip",static:!1,private:!1,access:{has:e=>"$tooltip"in e,get:e=>e.$tooltip,set:(e,t)=>{e.$tooltip=t}},metadata:i},A,S),s(null,null,h,{kind:"field",name:"$tooltipText",static:!1,private:!1,access:{has:e=>"$tooltipText"in e,get:e=>e.$tooltipText,set:(e,t)=>{e.$tooltipText=t}},metadata:i},F,L),s(null,null,f,{kind:"field",name:"$tooltipArrow",static:!1,private:!1,access:{has:e=>"$tooltipArrow"in e,get:e=>e.$tooltipArrow,set:(e,t)=>{e.$tooltipArrow=t}},metadata:i},O,T),s(null,e={value:t},g,{kind:"class",name:t.name,metadata:i},null,m),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,m)}visible=o(this,b,!1);rect=(o(this,y),o(this,w,null));text=(o(this,x),o(this,k,""));position=(o(this,E),o(this,C,r._N));$tooltip=(o(this,$),o(this,A,void 0));$tooltipText=(o(this,S),o(this,F,void 0));$tooltipArrow=(o(this,L),o(this,O,void 0));render(e){this.$tooltipText.textContent=this.text,this.style.position="absolute",e.visible&&(this.style.display=this.visible?"block":"none");const{width:t,height:n}=this.$tooltipText.getBoundingClientRect();let a=this.position;if(a in l||(a=r._N),this.rect){const{arrowLeft:e,arrowTop:i,left:r,top:s}=l[a](t,n,this.rect);this.style.left=`${r+window.scrollX}px`,this.style.top=`${s+window.scrollY}px`,this.$tooltipArrow.style.left=`${e}px`,this.$tooltipArrow.style.top=`${i}px`}}constructor(){super(...arguments),o(this,T)}})})()},5662:e=>{"use strict";e.exports="data:image/svg+xml; utf8, <svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27><path d=%27M 17.5,10.2501L 10.5,17.25L 6.5,13.25L 7.9,11.8L 10.5,14.4L 16.0857,8.8L 17.5,10.25Z%27 fill=%27rgb%2869, 60, 79%29%27 /></svg>"},5723:()=>{Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},5852:(e,t,n)=>{"use strict";var a=n(3822);var i=n(5223);var r=n(1457),s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const l=(()=>{let e,t,n,i,l,c,d,u=[(0,a.uA)({selector:"pg-partial-tab",template:'<li part="tab"> <button part="button"></button> </li>',style:r.A})],p=[],h=HTMLElement,f=[],g=[],m=[],v=[],b=[],y=[],w=[],x=[],k=[],E=[];(class extends h{static{t=this}static{const r="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],i=[(0,a.kv)()],l=[(0,a.kv)()],c=[(0,a.eS)()],d=[(0,a.eS)()],s(null,null,n,{kind:"field",name:"index",static:!1,private:!1,access:{has:e=>"index"in e,get:e=>e.index,set:(e,t)=>{e.index=t}},metadata:r},f,g),s(null,null,i,{kind:"field",name:"label",static:!1,private:!1,access:{has:e=>"label"in e,get:e=>e.label,set:(e,t)=>{e.label=t}},metadata:r},m,v),s(null,null,l,{kind:"field",name:"selected",static:!1,private:!1,access:{has:e=>"selected"in e,get:e=>e.selected,set:(e,t)=>{e.selected=t}},metadata:r},b,y),s(null,null,c,{kind:"field",name:"$tab",static:!1,private:!1,access:{has:e=>"$tab"in e,get:e=>e.$tab,set:(e,t)=>{e.$tab=t}},metadata:r},w,x),s(null,null,d,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:r},k,E),s(null,e={value:t},u,{kind:"class",name:t.name,metadata:r},null,p),t=e.value,r&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r}),o(t,p)}index=o(this,f,void 0);label=(o(this,g),o(this,m,""));selected=(o(this,v),o(this,b,!1));$tab=(o(this,y),o(this,w,void 0));$button=(o(this,x),o(this,k,void 0));connectedCallback(){this.$button.addEventListener("click",this.#e.bind(this)),this.$button.addEventListener("keydown",this.#X.bind(this))}render(e){e.label&&(this.$button.textContent=this.label),e.selected&&this.$button.classList.toggle("selected",this.selected)}#e(){const e=new CustomEvent("select",{detail:{index:this.index}});this.dispatchEvent(e)}#X(e){switch(e.key){case"ArrowLeft":const t=new CustomEvent("arrowleft",{detail:{index:this.index}});this.dispatchEvent(t),e.preventDefault();break;case"ArrowRight":const n=new CustomEvent("arrowright",{detail:{index:this.index}});this.dispatchEvent(n),e.preventDefault()}}focus(){this.$button.focus()}constructor(){super(...arguments),o(this,E)}});return t})();var c=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},d=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,r,s,o=[(0,a.uA)({selector:"pg-tabs",style:i.A,template:'<ul part="tabset"></ul> <div part="tabs"> <slot part="slot"></slot> </div>'})],u=[],p=HTMLElement,h=[],f=[],g=[],m=[],v=[],b=[];(class extends p{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],r=[(0,a.eS)()],s=[(0,a.kv)()],c(null,null,n,{kind:"field",name:"$tabset",static:!1,private:!1,access:{has:e=>"$tabset"in e,get:e=>e.$tabset,set:(e,t)=>{e.$tabset=t}},metadata:i},h,f),c(null,null,r,{kind:"field",name:"$slot",static:!1,private:!1,access:{has:e=>"$slot"in e,get:e=>e.$slot,set:(e,t)=>{e.$slot=t}},metadata:i},g,m),c(null,null,s,{kind:"field",name:"tabs",static:!1,private:!1,access:{has:e=>"tabs"in e,get:e=>e.tabs,set:(e,t)=>{e.tabs=t}},metadata:i},v,b),c(null,e={value:t},o,{kind:"class",name:t.name,metadata:i},null,u),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),d(t,u)}$tabset=d(this,h,void 0);$slot=(d(this,f),d(this,g,void 0));tabs=(d(this,m),d(this,v,[]));#_e=(d(this,b),0);#Ke=0;connectedCallback(){this.addEventListener("tab",this.#Ye.bind(this)),this.$slot.addEventListener("slotchange",this.handleSlotChange.bind(this)),(0,a.jJ)({container:this.$tabset,items:this.tabs,type:e=>l,connect:(e,t)=>{e.addEventListener("select",(t=>{const n=Array.from(this.$tabset.children),{index:a}=t.detail,i=this.$slot.assignedElements();i[this.#_e].hide(),n[this.#_e].selected=!1,i[a].show(),e.selected=!0,this.#_e=a})),e.addEventListener("arrowleft",(e=>{const t=Array.from(this.$tabset.children),{index:n}=e.detail;this.tabs.length>1&&(this.#Ke=0===n?this.tabs.length-1:n-1,t[this.#Ke].focus())})),e.addEventListener("arrowright",(e=>{const t=Array.from(this.$tabset.children),{index:n}=e.detail;this.tabs.length>1&&(n===this.tabs.length-1?this.#Ke=0:this.#Ke++,t[this.#Ke].focus())}))}})}#Ye(e){const{detail:t}=e;this.tabs.push(t),e.stopPropagation()}handleSlotChange(e){const t=Array.from(this.$tabset.children),n=this.$slot.assignedElements();0!==n.length&&(n[0].show(),t[0].selected=!0)}})})()},5903:()=>{!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function r(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return a})).replace(/<SPREAD>/g,(function(){return i})),RegExp(e,t)}i=r(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=r(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:r(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:r(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""},o=function(t){for(var n=[],a=0;a<t.length;a++){var i=t[a],r=!1;if("string"!=typeof i&&("tag"===i.type&&i.content[0]&&"tag"===i.content[0].type?"</"===i.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===s(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:s(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:r=!0),(r||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var l=s(i);a<t.length-1&&("string"==typeof t[a+1]||"plain-text"===t[a+1].type)&&(l+=s(t[a+1]),t.splice(a+1,1)),a>0&&("string"==typeof t[a-1]||"plain-text"===t[a-1].type)&&(l=s(t[a-1])+l,t.splice(a-1,1),a--),t[a]=new e.Token("plain-text",l,null,l)}i.content&&"string"!=typeof i.content&&o(i.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||o(e.tokens)}))}(Prism)},5958:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,s,o=[(0,a.uA)({selector:"x-pg-input-select-basic",template:'<div class="example"> <pg-input-select part="input"></pg-input-select> <div> <code>onchange: <span part="value"></span></code> </div> </div>'})],l=[],c=HTMLElement,d=[],u=[],p=[],h=[];(class extends c{static{t=this}static{const f="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],s=[(0,a.eS)()],i(null,null,n,{kind:"field",name:"$input",static:!1,private:!1,access:{has:e=>"$input"in e,get:e=>e.$input,set:(e,t)=>{e.$input=t}},metadata:f},d,u),i(null,null,s,{kind:"field",name:"$value",static:!1,private:!1,access:{has:e=>"$value"in e,get:e=>e.$value,set:(e,t)=>{e.$value=t}},metadata:f},p,h),i(null,e={value:t},o,{kind:"class",name:t.name,metadata:f},null,l),t=e.value,f&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:f}),r(t,l)}$input=r(this,d,void 0);$value=(r(this,u),r(this,p,void 0));connectedCallback(){this.$input.options.push({label:"Option 1",value:"option1"},{label:"Option 2",value:"option2"},{label:"Option 3",value:"option3"},{label:"Option 4",value:"option4"}),this.$input.default={label:"None",value:"",disabled:!0},this.$input.addEventListener("change",this.#j.bind(this))}#j(e){const{value:t}=e.detail;this.$input.value=t,this.$value.innerText=`${t}`}constructor(){super(...arguments),r(this,h)}})})()},6005:(e,t,n)=>{"use strict";var a=n(3822),i=n(743),r=n(8970),s=n(1516);var o=n(7299),l=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},c=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,d,u,p=[(0,a.uA)({selector:"x-pg-overlay-menu-basic",template:'<div class="example"> <button part="button">Create Menu Overlay</button> <p>Result: <code part="result"></code></p><p></p> <p>input: <code part="input"></code></p><p></p> </div>',style:o.A})],h=[],f=HTMLElement,g=[],m=[],v=[],b=[],y=[],w=[];(class extends f{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(f[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],d=[(0,a.eS)()],u=[(0,a.eS)()],l(null,null,n,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:i},g,m),l(null,null,d,{kind:"field",name:"$result",static:!1,private:!1,access:{has:e=>"$result"in e,get:e=>e.$result,set:(e,t)=>{e.$result=t}},metadata:i},v,b),l(null,null,u,{kind:"field",name:"$input",static:!1,private:!1,access:{has:e=>"$input"in e,get:e=>e.$input,set:(e,t)=>{e.$input=t}},metadata:i},y,w),l(null,e={value:t},p,{kind:"class",name:t.name,metadata:i},null,h),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),c(t,h)}$button=c(this,g,void 0);$result=(c(this,m),c(this,v,void 0));$input=(c(this,b),c(this,y,void 0));connectedCallback(){this.$button.addEventListener("click",this.#e.bind(this))}#qe=(c(this,w),null);#Ue=!1;async#e(){if(this.#Ue)return;const e=[{label:"Item 1",value:"item1",type:i.A},{label:"Item 2",value:"item2",type:i.A},{type:r.A},{label:"Item 3",value:"item3",type:i.A}];this.#Ue=!0;const t=await s.A.open({source:this.$button,value:this.#qe,items:e,oninput:e=>{this.$input.textContent=e}});void 0!==t&&(this.#qe=t),this.$result.textContent=t,this.#Ue=!1}})})()},6030:(e,t,n)=>{"use strict";var a=n(3822);var i=n(196),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n=[(0,a.uA)({selector:"x-pg-overlay-basic",template:'<div class="example"> <p>Extend <code>PgOverlay</code> to create overlays. View the readme for details.</p> </div>',style:i.A})],o=[],l=HTMLElement;(class extends l{static{t=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(l[Symbol.metadata]??null):void 0;r(null,e={value:t},n,{kind:"class",name:t.name,metadata:a},null,o),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),s(t,o)}})})()},6079:(e,t,n)=>{"use strict";var a=n(3822),i=n(6447);const r=[(new i.v).from({id:"uuid1",name:"test 1",url:"test-1",count:42}),(new i.v).from({id:"uuid2",name:"test 2",url:"test-2",count:12}),(new i.v).from({id:"uuid3",name:"test 3",url:"test-3",count:0})];var s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,l,c,d,u,p=[(0,a.uA)({selector:"x-pg-list-tag-basic",template:'<button part="buttonClear"> Clear Tags </button> <button part="buttonAdd"> Add Tag </button> <button part="buttonRemove"> Remove Tag </button> <button part="buttonEdit"> Toggle Edit </button> <div class="example"> <pg-list-tag part="tags"></pg-list-tag> </div>'})],h=[],f=HTMLElement,g=[],m=[],v=[],b=[],y=[],w=[],x=[],k=[],E=[],C=[];(class extends f{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(f[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],l=[(0,a.eS)()],c=[(0,a.eS)()],d=[(0,a.eS)()],u=[(0,a.eS)()],s(null,null,n,{kind:"field",name:"$tags",static:!1,private:!1,access:{has:e=>"$tags"in e,get:e=>e.$tags,set:(e,t)=>{e.$tags=t}},metadata:i},g,m),s(null,null,l,{kind:"field",name:"$buttonClear",static:!1,private:!1,access:{has:e=>"$buttonClear"in e,get:e=>e.$buttonClear,set:(e,t)=>{e.$buttonClear=t}},metadata:i},v,b),s(null,null,c,{kind:"field",name:"$buttonAdd",static:!1,private:!1,access:{has:e=>"$buttonAdd"in e,get:e=>e.$buttonAdd,set:(e,t)=>{e.$buttonAdd=t}},metadata:i},y,w),s(null,null,d,{kind:"field",name:"$buttonRemove",static:!1,private:!1,access:{has:e=>"$buttonRemove"in e,get:e=>e.$buttonRemove,set:(e,t)=>{e.$buttonRemove=t}},metadata:i},x,k),s(null,null,u,{kind:"field",name:"$buttonEdit",static:!1,private:!1,access:{has:e=>"$buttonEdit"in e,get:e=>e.$buttonEdit,set:(e,t)=>{e.$buttonEdit=t}},metadata:i},E,C),s(null,e={value:t},p,{kind:"class",name:t.name,metadata:i},null,h),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,h)}$tags=o(this,g,void 0);$buttonClear=(o(this,m),o(this,v,void 0));$buttonAdd=(o(this,b),o(this,y,void 0));$buttonRemove=(o(this,w),o(this,x,void 0));$buttonEdit=(o(this,k),o(this,E,void 0));connectedCallback(){this.$buttonClear.addEventListener("click",this.handleClear.bind(this)),this.$buttonAdd.addEventListener("click",this.handleAdd.bind(this)),this.$buttonRemove.addEventListener("click",this.handleRemove.bind(this)),this.$buttonEdit.addEventListener("click",this.handleEdit.bind(this)),this.$tags.items.push(...r)}handleClear(){this.$tags.items.splice(0,this.$tags.items.length)}uuid=(o(this,C),4);handleAdd(){this.$tags.items.push((new i.v).from({id:"uuid"+this.uuid++,count:42,name:"Foo Bar",url:"foo-bar"}))}handleRemove(){this.$tags.items=this.$tags.items.slice(0,this.$tags.items.length-1)}handleEdit(){this.$tags.edit=!this.$tags.edit}})})()},6119:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: contents;\n}\n\n[part="button"] {\n display: flex;\n align-items: center;\n align-content: center;\n font-family: var(--pg-font-family);\n font-size: var(--pg-button-font-size, 1rem);\n line-height: var(--pg-button-line-height, 1.5rem);\n border: 1px solid var(--pg-button-border-color, #453C4F);\n background-color: var(--pg-button-background-color, #FFFFFF);\n color: var(--pg-button-color, #453C4F);\n padding: var(--pg-button-padding, 0.25rem 0.5rem);\n border-radius: var(--pg-button-border-radius, 0.25rem);\n outline: none;\n --pg-icon-color: var(--pg-button-color, #453C4F);\n}\n\n[part="button"]:hover {\n border: 1px solid var(--pg-button-hover-border-color, #453C4F);\n background-color: var(--pg-button-hover-background-color, #453C4F);\n color: var(--pg-button-hover-color, #FFFFFF);\n --pg-icon-color: var(--pg-button-hover-color, #FFFFFF);\n}\n\n[part="button"]:active {\n box-shadow: 0 1px 0.25rem rgba(0, 0, 0, 0.5) inset;\n position: relative;\n}\n\n[part="button"]:focus {\n position: relative;\n}\n\n[part="button"]:active::before {\n content: \'\';\n position: absolute;\n top: -1px;\n right: -1px;\n bottom: -1px;\n left: -1px;\n border-radius: var(--pg-button-border-radius, 0.25rem);\n box-shadow: 0 0 0 3px var(--pg-focus-color, rgb(79, 143, 249, 0.6));\n}\n[part="button"]:focus::before {\n pointer-events: none;\n content: \'\';\n position: absolute;\n top: -1px;\n right: -1px;\n bottom: -1px;\n left: -1px;\n border-radius: var(--pg-button-border-radius, 0.25rem);\n box-shadow: 0 0 0 3px var(--pg-focus-color, rgb(79, 143, 249, 0.5));\n}\n\n[part="button"].start {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n margin-right: -1px;\n}\n\n[part="button"].center {\n border-radius: 0;\n margin-right: -1px;\n}\n\n[part="button"].end {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n[part="button"].active {\n box-shadow: 0 1px 0.25rem rgba(0, 0, 0, 0.5) inset;\n background-color: rgba(69, 60, 79, 0.1);\n color: var(--pg-button-color, #453C4F);\n}\n[part="button"].active:hover {\n box-shadow: 0 1px 0.25rem rgba(0, 0, 0, 0.5) inset;\n background-color: var(--pg-button-color, #453C4F);\n color: var(--pg-button-hover-color, #fff);\n}\n\n[part="button"].block {\n flex: 1;\n}\n\n::slotted {\n align-self: center;\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},6122:e=>{"use strict";e.exports="data:image/svg+xml; utf8, <svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27><path d=%27M 11,17L 13,17L 19,11L 17,9L 12,14L 7,9L 5,11%27 fill=%27white%27 /></svg>"},6208:(e,t,n)=>{"use strict";n.d(t,{K:()=>User});class User{id=null;github=null;name=null;base64=null;iconCount=null;description=null;website=null;sponsored=!1;sponsorship="";core=!1;from(e){return this.id=e.id,this.github=e.github,this.name=e.name,"string"==typeof e.base64&&(e.base64.match(/^data/)?this.base64=e.base64:this.base64=`data:image/png;base64,${e.base64}`),this.iconCount=e.iconCount,this.description=e.description,this.website=e.website,this.sponsored=e.sponsored,this.sponsorship=`https://github.com/users/${e.github}/sponsorship`,this.core=e.core,this}}},6209:e=>{"use strict";e.exports="data:image/svg+xml; utf8, <svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27><path d=%27M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z%27 fill=%27rgb%2869, 60, 79, 0.5%29%27 /></svg>"},6222:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(3822),i=n(7715);var r=n(9891),s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const l=[],c=[];const d=(()=>{let e,t,n,d,u,p,h,f,g,m,v=[(0,a.uA)({selector:"pg-overlay-context-menu",template:'<div part="overlay"> <pg-menu part="menu"></pg-menu> </div>',style:r.A})],b=[],y=i.A,w=[],x=[],k=[],E=[],C=[],$=[],A=[],S=[],F=[],L=[],O=[],T=[],D=[],j=[],I=[],P=[];(class extends y{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(y[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],d=[(0,a.eS)()],u=[(0,a.kv)()],p=[(0,a.kv)()],h=[(0,a.kv)()],f=[(0,a.kv)()],g=[(0,a.kv)()],m=[(0,a.kv)()],s(null,null,n,{kind:"field",name:"$overlay",static:!1,private:!1,access:{has:e=>"$overlay"in e,get:e=>e.$overlay,set:(e,t)=>{e.$overlay=t}},metadata:i},w,x),s(null,null,d,{kind:"field",name:"$menu",static:!1,private:!1,access:{has:e=>"$menu"in e,get:e=>e.$menu,set:(e,t)=>{e.$menu=t}},metadata:i},k,E),s(null,null,u,{kind:"field",name:"source",static:!1,private:!1,access:{has:e=>"source"in e,get:e=>e.source,set:(e,t)=>{e.source=t}},metadata:i},C,$),s(null,null,p,{kind:"field",name:"x",static:!1,private:!1,access:{has:e=>"x"in e,get:e=>e.x,set:(e,t)=>{e.x=t}},metadata:i},A,S),s(null,null,h,{kind:"field",name:"y",static:!1,private:!1,access:{has:e=>"y"in e,get:e=>e.y,set:(e,t)=>{e.y=t}},metadata:i},F,L),s(null,null,f,{kind:"field",name:"default",static:!1,private:!1,access:{has:e=>"default"in e,get:e=>e.default,set:(e,t)=>{e.default=t}},metadata:i},O,T),s(null,null,g,{kind:"field",name:"items",static:!1,private:!1,access:{has:e=>"items"in e,get:e=>e.items,set:(e,t)=>{e.items=t}},metadata:i},D,j),s(null,null,m,{kind:"field",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:i},I,P),s(null,e={value:t},v,{kind:"class",name:t.name,metadata:i},null,b),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,b)}$overlay=o(this,w,void 0);$menu=(o(this,x),o(this,k,void 0));source=(o(this,E),o(this,C,null));x=(o(this,$),o(this,A,0));y=(o(this,S),o(this,F,0));default=(o(this,L),o(this,O,null));items=(o(this,T),o(this,D,[]));value=(o(this,j),o(this,I,null));render(e){e.items&&(this.$menu.items=this.items)}connectedCallback(){l.pop()?.close(),l.push(this),c.push(this),this.$menu.addEventListener("select",this.#H.bind(this)),this.$menu.addEventListener("close",this.#He.bind(this)),this.$overlay.popover="auto",null!==this.source&&this.$overlay.showPopover({source:this.source}),this.$overlay.addEventListener("toggle",this.#R.bind(this));const e=this.source?.getBoundingClientRect(),t=this.x-(e?.left||0),n=this.y-(e?.top||0);this.$overlay.style.setProperty("--pg-overlay-menu-_x",`${t}px`),this.$overlay.style.setProperty("--pg-overlay-menu-_y",`${n}px`),this.$menu.focus(0),this.#ye=this.#Re.bind(this),document.addEventListener("pointerdown",this.#ye)}#Ne=(o(this,P),!1);#ye;#Re(e){this.#Ne=e.composedPath().includes(this.source)}#R(e){"closed"===e.newState&&(this.close(),0===c.length&&this.#Ne&&(console.log(e),this.source?.focus()))}disconnectedCallback(){c.pop(),document.removeEventListener("pointerdown",this.#ye)}#He(e){this.close(),this.source?.focus()}#H(e){e.detail.item.index=e.detail.index,this.close(e.detail.item),this.source?.focus()}});return t})()},6235:(e,t,n)=>{"use strict";n.d(t,{x:()=>Alias});class Alias{id;name;match=!1;constructor(e,t){void 0!==e&&(this.id=e),void 0!==t&&(this.name=t)}from(e){return void 0!==e.id&&(this.id=e.id),void 0!==e.name&&(this.name=e.name),this}to(){return{name:this.name}}}},6303:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n=[(0,a.uA)({selector:"x-pg-nav-basic",template:'<div class="example"> <pg-nav logo="M2,2H8V4H16V2H22V8H20V16H22V22H16V20H8V22H2V16H4V8H2V2M16,8V6H8V8H6V16H8V18H16V16H18V8H16M4,4V6H6V4H4M18,4V6H20V4H18M4,18V20H6V18H4M18,18V20H20V18H18Z" name="Material Design Icons"></pg-nav> </div>'})],s=[],o=HTMLElement;(class extends o{static{t=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;i(null,e={value:t},n,{kind:"class",name:t.name,metadata:a},null,s),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),r(t,s)}})})()},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",a=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,a,i,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(a)for(var o=0;o<this.length;o++){var l=this[o][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);a&&s[d[0]]||(void 0!==r&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=r),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),i&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=i):d[4]="".concat(i)),t.push(d))}},t}},6383:e=>{"use strict";e.exports="data:image/svg+xml; utf8, <svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27><path d=%27M 17.5,10.2501L 10.5,17.25L 6.5,13.25L 7.9,11.8L 10.5,14.4L 16.0857,8.8L 17.5,10.25Z%27 fill=%27rgb%2869, 60, 79, 0.5%29%27 /></svg>"},6421:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(3822),i=n(7589);var r=n(4537),s=n(7715),o=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},l=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const c=(()=>{let e,t,n,c,d,u,p,h,f,g,m,v=[(0,a.uA)({selector:"pg-toast",style:r.A,template:'<button part="button"> <span part="loading"> <svg part="loadingIcon" viewBox="0 0 24 24"> <path fill="currentColor" d="M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"/> </svg> </span> <span part="message"></span> <span part="close"> <svg part="closeIcon" viewBox="0 0 24 24"> <path fill="currentColor" d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"/> </svg> </span> </button>'})],b=[],y=s.A,w=[],x=[],k=[],E=[],C=[],$=[],A=[],S=[],F=[],L=[],O=[],T=[],D=[],j=[],I=[],P=[],M=[],B=[];(class extends y{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(y[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],c=[(0,a.kv)()],d=[(0,a.kv)()],u=[(0,a.kv)()],p=[(0,a.eS)()],h=[(0,a.eS)()],f=[(0,a.eS)()],g=[(0,a.eS)()],m=[(0,a.eS)()],o(null,null,n,{kind:"field",name:"loading",static:!1,private:!1,access:{has:e=>"loading"in e,get:e=>e.loading,set:(e,t)=>{e.loading=t}},metadata:i},w,x),o(null,null,c,{kind:"field",name:"message",static:!1,private:!1,access:{has:e=>"message"in e,get:e=>e.message,set:(e,t)=>{e.message=t}},metadata:i},k,E),o(null,null,d,{kind:"field",name:"type",static:!1,private:!1,access:{has:e=>"type"in e,get:e=>e.type,set:(e,t)=>{e.type=t}},metadata:i},C,$),o(null,null,u,{kind:"field",name:"key",static:!1,private:!1,access:{has:e=>"key"in e,get:e=>e.key,set:(e,t)=>{e.key=t}},metadata:i},A,S),o(null,null,p,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:i},F,L),o(null,null,h,{kind:"field",name:"$loadingIcon",static:!1,private:!1,access:{has:e=>"$loadingIcon"in e,get:e=>e.$loadingIcon,set:(e,t)=>{e.$loadingIcon=t}},metadata:i},O,T),o(null,null,f,{kind:"field",name:"$closeIcon",static:!1,private:!1,access:{has:e=>"$closeIcon"in e,get:e=>e.$closeIcon,set:(e,t)=>{e.$closeIcon=t}},metadata:i},D,j),o(null,null,g,{kind:"field",name:"$message",static:!1,private:!1,access:{has:e=>"$message"in e,get:e=>e.$message,set:(e,t)=>{e.$message=t}},metadata:i},I,P),o(null,null,m,{kind:"field",name:"$loading",static:!1,private:!1,access:{has:e=>"$loading"in e,get:e=>e.$loading,set:(e,t)=>{e.$loading=t}},metadata:i},M,B),o(null,e={value:t},v,{kind:"class",name:t.name,metadata:i},null,b),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),l(t,b)}loading=l(this,w,!1);message=(l(this,x),l(this,k,""));type=(l(this,E),l(this,C,"default"));key=(l(this,$),l(this,A,(0,i.u)()));$button=(l(this,S),l(this,F,void 0));$loadingIcon=(l(this,L),l(this,O,void 0));$closeIcon=(l(this,T),l(this,D,void 0));$message=(l(this,j),l(this,I,void 0));$loading=(l(this,P),l(this,M,void 0));static open(e={}){super.open(e);const t=(0,i.u)();return Promise.resolve((function(e){const n=t;void 0===e&&this.toasts.find((e=>e.key===n)).remove()}))}toasts=(l(this,B),[]);connectedCallback(){this.$button.addEventListener("click",(()=>{this.remove()}))}render(){this.$message.textContent=this.message,this.$loading.classList.toggle("hide",!this.loading),this.$button.classList.toggle("error","error"===this.type),this.$button.classList.toggle("warning","warning"===this.type)}});return t})()},6432:e=>{"use strict";e.exports="data:image/svg+xml; utf8, <svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27><path d=%27M 17,13L 17,11L 11,5L 9,7L 14,12L 9,17L 11,19%27 fill=%27rgb%2869 60 79%29%27 /></svg>"},6447:(e,t,n)=>{"use strict";n.d(t,{v:()=>Tag});class Tag{id;name;url;count;from(e){return void 0!==e.id&&(this.id=e.id),void 0!==e.name&&(this.name=e.name),void 0!==e.url&&(this.url=e.url),void 0!==e.count&&(this.count=e.count),this}to(){return{name:this.name,url:this.url,count:this.count}}}},6485:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,s,o,l,c=[(0,a.uA)({selector:"x-pg-database-basic",template:'<div class="example"> <pg-database part="database"></pg-database> <div> Total Icons: <code part="count"></code> </div> <div> Icon Objects: <code part="total"></code> </div> </div>'})],d=[],u=HTMLElement,p=[],h=[],f=[],g=[],m=[],v=[],b=[],y=[];(class extends u{static{t=this}static{const w="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],s=[(0,a.eS)()],o=[(0,a.eS)()],l=[(0,a.eS)()],i(null,null,n,{kind:"field",name:"fontId",static:!1,private:!1,access:{has:e=>"fontId"in e,get:e=>e.fontId,set:(e,t)=>{e.fontId=t}},metadata:w},p,h),i(null,null,s,{kind:"field",name:"$database",static:!1,private:!1,access:{has:e=>"$database"in e,get:e=>e.$database,set:(e,t)=>{e.$database=t}},metadata:w},f,g),i(null,null,o,{kind:"field",name:"$count",static:!1,private:!1,access:{has:e=>"$count"in e,get:e=>e.$count,set:(e,t)=>{e.$count=t}},metadata:w},m,v),i(null,null,l,{kind:"field",name:"$total",static:!1,private:!1,access:{has:e=>"$total"in e,get:e=>e.$total,set:(e,t)=>{e.$total=t}},metadata:w},b,y),i(null,e={value:t},c,{kind:"class",name:t.name,metadata:w},null,d),t=e.value,w&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:w}),r(t,d)}fontId=r(this,p,"D051337E-BC7E-11E5-A4E9-842B2B6CFE1B");$database=(r(this,h),r(this,f,void 0));$count=(r(this,g),r(this,m,void 0));$total=(r(this,v),r(this,b,void 0));icons=(r(this,y),[]);connectedCallback(){this.$database.addEventListener("sync",this.handleSync.bind(this)),this.$database.font=this.fontId}async handleSync(e){const{db:t}=e.detail,n=await t.getCount(this.fontId);this.$count.innerText=n;const a=await t.getIcons(this.fontId);this.$total.innerText=a.length,this.icons=a}})})()},6553:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,":host {\n display: contents;\n}\n\n[part=items] {\n display: flex;\n flex-direction: column;\n padding: var(--pg-menu-padding, 0.25rem);\n border-width: var(--pg-menu-border-width, 1px);\n border-color: var(--pg-menu-border-color, #453C4F);\n border-style: solid;\n border-radius: 0.5rem;\n background-color: var(--pg-menu-background-color, #FFFFFF);\n box-shadow: var(--pg-menu-box-shadow, none);\n}\n\n[part=items].check {\n --pg-menu-_has-check: true;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},6593:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,"",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},6630:e=>{"use strict";e.exports="data:image/svg+xml; utf8, <svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27><path d=%27M 17,13L 17,11L 11,5L 9,7L 14,12L 9,17L 11,19%27 fill=%27white%27 /></svg>"},6833:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: inline-flex;\n color: var(--pg-icon-color, #453C4F);\n}\n\n[part="svg"] {\n width: var(--pg-icon-width, 1.5rem);\n height: var(--pg-icon-height, 1.5rem);\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},6861:(e,t,n)=>{"use strict";var a=n(3822);var i=n(3359),r=n(9406),s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,l,c,d=[(0,a.uA)({selector:"pg-input-check-list",style:i.A,template:'<ul part="list"></ul>'})],u=[],p=HTMLElement,h=[],f=[],g=[],m=[],v=[],b=[];(class extends p{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],l=[(0,a.kv)()],c=[(0,a.eS)()],s(null,null,n,{kind:"field",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:i},h,f),s(null,null,l,{kind:"field",name:"options",static:!1,private:!1,access:{has:e=>"options"in e,get:e=>e.options,set:(e,t)=>{e.options=t}},metadata:i},g,m),s(null,null,c,{kind:"field",name:"$list",static:!1,private:!1,access:{has:e=>"$list"in e,get:e=>e.$list,set:(e,t)=>{e.$list=t}},metadata:i},v,b),s(null,e={value:t},d,{kind:"class",name:t.name,metadata:i},null,u),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,u)}value=o(this,h,[]);options=(o(this,f),o(this,g,[]));$list=(o(this,m),o(this,v,void 0));connectedCallback(){}handleClick(e){const t=this.value.includes(e.value),n=(0,r.A)(this.$list,e,"value"),a=n.querySelector("button");a?.classList.toggle("blank",t),a?.classList.toggle("checked",!t),n.querySelector('[part="path"]')?.setAttribute("d",t?"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z":"M19 19L5 19V5H15V3H5C3.89 3 3 3.89 3 5V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V11H19"),t?this.value.splice(this.value.findIndex((t=>t===e.value)),1):this.value.push(e.value),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value}}))}render(e){e.options,e.value}constructor(){super(...arguments),o(this,b)}})})()},6976:()=>{!function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[a,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:a.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":a,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)},7022:()=>{!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],r=a.variable[1].inside,s=0;s<i.length;s++)r[i[s]]=e.languages.bash[i[s]];e.languages.shell=e.languages.bash}(Prism)},7033:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n=[(0,a.uA)({selector:"x-pg-dropdown-basic",template:'<div class="example"> <pg-dropdown> <button>Click Me</button> <div slot="popover"> Render anything inside... </div> </pg-dropdown> <pg-dropdown> <a href="/">Click Me</a> <div slot="popover"> Render anything inside... </div> </pg-dropdown> </div>'})],s=[],o=HTMLElement;(class extends o{static{t=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;i(null,e={value:t},n,{kind:"class",name:t.name,metadata:a},null,s),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),r(t,s)}})})()},7091:(e,t,n)=>{"use strict";var a=n(3822);var i=n(2697),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};window.process={env:{}};(()=>{let e,t,n,o,l,c=[(0,a.uA)({selector:"pg-dropdown",style:i.A,template:'<slot part="main"></slot> <div part="popover"> <div part="arrow"></div> <slot name="popover"></slot> </div>'})],d=[],u=HTMLElement,p=[],h=[],f=[],g=[],m=[],v=[];(class extends u{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],o=[(0,a.eS)()],l=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"$main",static:!1,private:!1,access:{has:e=>"$main"in e,get:e=>e.$main,set:(e,t)=>{e.$main=t}},metadata:i},p,h),r(null,null,o,{kind:"field",name:"$popover",static:!1,private:!1,access:{has:e=>"$popover"in e,get:e=>e.$popover,set:(e,t)=>{e.$popover=t}},metadata:i},f,g),r(null,null,l,{kind:"field",name:"$arrow",static:!1,private:!1,access:{has:e=>"$arrow"in e,get:e=>e.$arrow,set:(e,t)=>{e.$arrow=t}},metadata:i},m,v),r(null,e={value:t},c,{kind:"class",name:t.name,metadata:i},null,d),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,d)}$main=s(this,p,void 0);$popover=(s(this,h),s(this,f,void 0));$arrow=(s(this,g),s(this,m,void 0));isVisible=(s(this,v),!1);connectedCallback(){this.$main.addEventListener("slotchange",(e=>{for(var t=this.$main.assignedElements(),n=0;n<t.length;n++){var a=t[n];this.wireUpPopover(a)}}))}wireUpPopover(e){this.$popover.style.visibility="hidden",e.addEventListener("click",(e=>{this.$popover.style.visibility=this.isVisible?"hidden":"visible",this.isVisible=!this.isVisible,e.preventDefault()}))}render(){}})})()},7254:(e,t,n)=>{"use strict";n.d(t,{LV:()=>r});const a=window.location.href.match(/localhost/),i=window.location.href.match(/templarian\.github\.io/);const r={get:async function(e,t={}){const{params:n={}}=t,r=Object.keys(n),s=`?${r.map((e=>{const t=n[e];return t instanceof Array?`${e}=${t.join(",")}`:`${e}=${t}`})).join("&")}`;if(a||i){const t=r.map((e=>{const t=n[e];return t instanceof Array?(t.forEach(((e,n)=>{e.match(/\w{8}-\w{4}-\w{4}-\w{4}-\w{12}/)&&(t[n]=e.substr(0,3))})),`${e}/${t.join("-")}`):`${e}/${t}`})).join("/");t&&(e+=`/_/${t}`),i&&(e=e.replace(/^\//,""))}const o=await fetch(a||i?`${e}/mock.get.json`:`${e}${"?"===s?"":s}`);try{return o.json()}catch(e){}if(!o.ok)throw new Error(o.statusText);return Promise.reject()},asset:async function(e,t={}){const{params:n={}}=t,a=`?${Object.keys(n).map((e=>`${e}=${n[e]}`)).join("&")}`,i=await fetch(`${e}${"?"===a?"":a}`);try{return i.text()}catch(e){}if(!i.ok)throw new Error(i.statusText);return Promise.reject()}}},7289:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,"button {\n border: 0;\n padding: 0;\n outline: 0;\n}\n\nbutton.active {\n border: 2px solid #fff;\n box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.5);\n order: 1;\n}\n\nbutton.white.active {\n box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.5) inset;\n}\n\n[part~=grid] {\n display: grid;\n grid-template-columns: repeat(19, 1rem);\n grid-template-rows: repeat(14, 1rem);\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},7299:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,"p {\n margin: 0.5rem 0;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},7319:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,a,i,r){if(n.language===a){var s=n.tokenStack=[];n.code=n.code.replace(i,(function(e){if("function"==typeof r&&!r(e))return e;for(var i,o=s.length;-1!==n.code.indexOf(i=t(a,o));)++o;return s[o]=e,i})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,a){if(n.language===a&&n.tokenStack){n.grammar=e.languages[a];var i=0,r=Object.keys(n.tokenStack);!function s(o){for(var l=0;l<o.length&&!(i>=r.length);l++){var c=o[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var d=r[i],u=n.tokenStack[d],p="string"==typeof c?c:c.content,h=t(a,d),f=p.indexOf(h);if(f>-1){++i;var g=p.substring(0,f),m=new e.Token(a,e.tokenize(u,n.grammar),"language-"+a,u),v=p.substring(f+h.length),b=[];g&&b.push.apply(b,s([g])),b.push(m),v&&b.push.apply(b,s([v])),"string"==typeof c?o.splice.apply(o,[l,1].concat(b)):c.content=b}}else c.content&&s(c.content)}return o}(n.tokens)}}}})}(Prism)},7326:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: block;\n}\n\n[part="label"] {\n display: grid;\n grid-template-columns: 1.5rem auto;\n grid-template-rows: auto;\n font-family: var(--pg-font-family);\n font-size: 1rem;\n line-height: 1.5rem;\n border: 1px solid var(--pg-button-border-color, #453C4F);\n background-color: var(--pg-button-background-color, #fff);\n color: var(--pg-button-color, #453C4F);\n padding: var(--pg-button-padding, 0.25rem 0.5rem);\n border-radius: 0.25rem;\n outline: none;\n --pg-icon-color: var(--pg-button-color, #453C4F);\n}\n\n[part="label"]:hover {\n border: 1px solid var(--pg-button-hover-border-color, #453C4F);\n background-color: var(--pg-button-hover-background-color, #453C4F);\n color: var(--pg-button-hover-color, #fff);\n --pg-icon-color: var(--pg-button-hover-color, #fff);\n}\n\n[part="label"]:active {\n box-shadow: 0 1px 0.25rem rgba(0, 0, 0, 0.5) inset;\n position: relative;\n}\n\n[part="label"]:focus {\n position: relative;\n}\n\n[part="label"]:active::before {\n content: \'\';\n position: absolute;\n top: -1px;\n right: -1px;\n bottom: -1px;\n left: -1px;\n border-radius: 0.25rem;\n box-shadow: 0 0 0 3px var(--pg-focus-color, rgb(79, 143, 249, 0.6));\n}\n\n[part="label"]:focus::before {\n pointer-events: none;\n content: \'\';\n position: absolute;\n top: -1px;\n right: -1px;\n bottom: -1px;\n left: -1px;\n border-radius: 0.25rem;\n box-shadow: 0 0 0 3px var(--pg-focus-color, rgb(79, 143, 249, 0.5));\n}\n\n[part="file"] {\n width: 100%;\n border: 0;\n outline: 0;\n height: 1.5rem;\n grid-row: 1;\n grid-column: 1 / span 2;\n visibility: hidden;\n}\n\n[part="icon"] {\n grid-row: 1;\n grid-column: 1;\n transform: translate(-0.25rem, 0.075rem);\n pointer-events: none;\n}\n\n[part="text"] {\n grid-row: 1;\n grid-column: 2;\n pointer-events: none;\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},7489:e=>{"use strict";e.exports="data:image/png;base64,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"},7497:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,":host {\n display: block;\n position: var(--pg-annoy-position, fixed);\n font-family: var(--pg-font-family);\n width: var(--pg-annoy-width, 12rem);\n height: var(--pg-annoy-height, auto);\n max-height: var(--pg-annoy-max-height, auto);\n font-size: 1rem;\n transition: 0.1s margin-bottom ease-in;\n}\n:host(.footer) {\n margin-bottom: 4rem;\n}\n\ndiv {\n position: relative;\n display: grid;\n margin-right: 0.75rem;\n padding: 0.5rem;\n border: 1px solid #FFFFFF;\n border-radius: 0.25rem;\n background: #FFFFFF;\n box-shadow: 0 1px 2rem rgba(0, 0, 0, 0.3);\n}\n\n[part=close] {\n position: absolute;\n right: -0.75rem;\n top: -0.75rem;\n width: 1.5rem;\n height: 1.5rem;\n border: 1px solid #fff;\n border-radius: 50%;\n background: #fff;\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0 1px 0.25rem rgba(0, 0, 0, 0.4);\n padding: 0;\n color: rgba(69, 60, 79, 0.8);\n outline: none;\n}\n\n[part=close]:hover {\n color: #453C4F;\n border-color: rgba(69, 60, 79, 0.6);\n}\n\n[part=close]:active {\n box-shadow: 0 1px 0.25rem rgba(0, 0, 0, 0.2);\n border-color: rgba(69, 60, 79, 0.9);\n}\n\n[part=close]:focus::before {\n pointer-events: none;\n content: '';\n position: absolute;\n top: -1px;\n right: -1px;\n bottom: -1px;\n left: -1px;\n border-radius: 50%;\n box-shadow: 0 0 0 3px var(--pg-focus-color, rgb(79, 143, 249, 0.6));\n}\n\n[part=close] svg {\n width: 1rem;\n height: 1rem;\n}\n",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},7541:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,s,o=[(0,a.uA)({selector:"x-pg-input-file-local-basic",template:'<div class="example"> <pg-input-file-local part="input" accepts-file-type="svg"></pg-input-file-local> <code>onchange: <span part="value"></span></code> </div>'})],l=[],c=HTMLElement,d=[],u=[],p=[],h=[];(class extends c{static{t=this}static{const f="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],s=[(0,a.eS)()],i(null,null,n,{kind:"field",name:"$input",static:!1,private:!1,access:{has:e=>"$input"in e,get:e=>e.$input,set:(e,t)=>{e.$input=t}},metadata:f},d,u),i(null,null,s,{kind:"field",name:"$value",static:!1,private:!1,access:{has:e=>"$value"in e,get:e=>e.$value,set:(e,t)=>{e.$value=t}},metadata:f},p,h),i(null,e={value:t},o,{kind:"class",name:t.name,metadata:f},null,l),t=e.value,f&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:f}),r(t,l)}$input=r(this,d,void 0);$value=(r(this,u),r(this,p,void 0));connectedCallback(){this.$input.addEventListener("change",this.handleChange.bind(this))}handleChange(e){const{name:t,value:n}=e.detail;this.$value.innerText=`${t} - ${n}`}constructor(){super(...arguments),r(this,h)}})})()},7589:(e,t,n)=>{"use strict";function a(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}n.d(t,{u:()=>a})},7713:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,":host {\n display: block;\n}\n\ndiv {\n transform: translateY(0);\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},7715:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(3822),i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const s=new Set,o=new Map;const l=(()=>{let e,t,n=[(0,a.uA)()],l=[],c=HTMLElement;(class extends c{static{t=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;i(null,e={value:t},n,{kind:"class",name:t.name,metadata:a},null,l),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),r(t,l)}static open(e={}){var t=document.createElement(this.name);return Object.assign(t,e),document.body.appendChild(t),s.add(t),new Promise((e=>{o.set(t,e)}))}close(e){this.remove(),s.delete(this);const t=o.get(this);t&&t(e),o.delete(this)}});return t})()},7764:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};function s(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}(()=>{let e,t,n,o,l,c,d,u=[(0,a.uA)({selector:"x-pg-toasts-basic",template:'<div> <div class="example"> <pg-toasts></pg-toasts> </div> <button part="toastInfo">Info</button> <button part="toastWarning">Warning</button> <button part="toastError">Error</button> <button part="toastLoading">Loading</button> <button part="toastRemove">Remove Loading</button> <p>Note: This just triggers the show to make styling easier.</p> </div>'})],p=[],h=HTMLElement,f=[],g=[],m=[],v=[],b=[],y=[],w=[],x=[],k=[],E=[];(class extends h{static{t=this}static{const s="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],o=[(0,a.eS)()],l=[(0,a.eS)()],c=[(0,a.eS)()],d=[(0,a.eS)()],i(null,null,n,{kind:"field",name:"$toastInfo",static:!1,private:!1,access:{has:e=>"$toastInfo"in e,get:e=>e.$toastInfo,set:(e,t)=>{e.$toastInfo=t}},metadata:s},f,g),i(null,null,o,{kind:"field",name:"$toastWarning",static:!1,private:!1,access:{has:e=>"$toastWarning"in e,get:e=>e.$toastWarning,set:(e,t)=>{e.$toastWarning=t}},metadata:s},m,v),i(null,null,l,{kind:"field",name:"$toastError",static:!1,private:!1,access:{has:e=>"$toastError"in e,get:e=>e.$toastError,set:(e,t)=>{e.$toastError=t}},metadata:s},b,y),i(null,null,c,{kind:"field",name:"$toastLoading",static:!1,private:!1,access:{has:e=>"$toastLoading"in e,get:e=>e.$toastLoading,set:(e,t)=>{e.$toastLoading=t}},metadata:s},w,x),i(null,null,d,{kind:"field",name:"$toastRemove",static:!1,private:!1,access:{has:e=>"$toastRemove"in e,get:e=>e.$toastRemove,set:(e,t)=>{e.$toastRemove=t}},metadata:s},k,E),i(null,e={value:t},u,{kind:"class",name:t.name,metadata:s},null,p),t=e.value,s&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s}),r(t,p)}$toastInfo=r(this,f,void 0);$toastWarning=(r(this,g),r(this,m,void 0));$toastError=(r(this,v),r(this,b,void 0));$toastLoading=(r(this,y),r(this,w,void 0));$toastRemove=(r(this,x),r(this,k,void 0));connectedCallback(){this.$toastInfo.addEventListener("click",this.handleInfo.bind(this)),this.$toastWarning.addEventListener("click",this.handleWarning.bind(this)),this.$toastError.addEventListener("click",this.handleError.bind(this)),this.$toastLoading.addEventListener("click",this.handleLoading.bind(this)),this.$toastRemove.addEventListener("click",this.handleRemove.bind(this))}handleInfo(){document.body.dispatchEvent(new CustomEvent("pgtoastadd",{detail:{type:"info",message:"Hello World! With really long content that wraps rows.",key:s()}}))}handleWarning(){document.body.dispatchEvent(new CustomEvent("pgtoastadd",{detail:{type:"warning",message:"Hello World! Warning",key:s()}}))}handleError(){document.body.dispatchEvent(new CustomEvent("pgtoastadd",{detail:{type:"error",message:"Hello World! Error",key:s()}}))}handleLoading(){this.key=s(),document.body.dispatchEvent(new CustomEvent("pgtoastadd",{detail:{type:"info",message:"Loading...",loading:!0,key:this.key}}))}key=(r(this,E),"");handleRemove(){this.key&&(document.body.dispatchEvent(new CustomEvent("pgtoastremove",{detail:{key:this.key}})),this.key="")}})})()},7781:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: inline-flex;\n color: var(--pg-icon-color, #222);\n}\n\n[part=svg] {\n position: relative;\n width: 1.5rem;\n height: 1.5rem;\n z-index: 1;\n}\n\n[part="grid"] {\n position: relative;\n background-image:\n repeating-linear-gradient(rgba(83, 137, 164, 0.5) 0 2px, transparent 2px 100%),\n repeating-linear-gradient(90deg, rgba(83, 137, 164, 0.5) 0 2px, transparent 2px 100%);\n background-size: var(--pg-preview-size, 4px) var(--pg-preview-size, 4px);\n background-position: calc(var(--pg-preview-size, 4px) - 1px) calc(var(--pg-preview-size, 4px) - 1px);\n}\n\n[part="grid"]::after {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n content: \' \';\n background-image:\n repeating-linear-gradient(#5389a4 0 2px, transparent 2px 100%),\n repeating-linear-gradient(90deg, #5389a4 0 2px, transparent 2px 100%);\n background-size: calc(var(--pg-preview-size, 4px) * 4) calc(var(--pg-preview-size, 4px) * 4);\n background-position: calc(var(--pg-preview-size, 4px) * 4 - 1px) calc(var(--pg-preview-size, 4px) * 4 - 1px);\n}\n',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},7791:(e,t,n)=>{"use strict";n.d(t,{Nj:()=>s,Zt:()=>l});var a=n(7589);const i="pgtoastadd",r="pgtoastremove";function s({add:e,remove:t}){document.body.addEventListener(i,(t=>{e(t.detail)})),document.body.addEventListener(r,(e=>{t(e.detail.key)}))}function o(e){e.key=e.key||(0,a.u)();const t=new CustomEvent(i,{detail:e});return document.body.dispatchEvent(t),setTimeout((()=>{!function(e){const t=new CustomEvent(r,{detail:{key:e}});document.body.dispatchEvent(t)}(e.key)}),1e3*e.seconds),e.key}function l(e,t=3){return o({type:"info",message:e,seconds:t})}},7915:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,"\n[part~=contextMenu] {\n position: relative;\n background: #737E9E;\n border-radius: 0.25rem;\n width: 12rem;\n display: flex;\n flex-direction: column;\n padding: 0.25rem 0;\n box-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);\n}\n\n[part~=contextMenu] > div.section {\n color: #FFF;\n font-size: 0.875rem;\n padding: 0.25rem 0.5rem;\n cursor: default;\n font-weight: bold;\n}\n\n[part~=contextMenu] > div.section:not(:first-child) {\n border-top: 1px solid rgba(255, 255, 255, 0.3);\n margin-top: 0.5rem;\n}\n\n[part~=contextMenu] > div.group {\n margin: 0 0.5rem;\n border: 1px solid rgba(255, 255, 255, 0.2);\n border-radius: 0.25rem;\n display: flex;\n flex-direction: row;\n overflow: hidden;\n}\n[part~=contextMenu] > div.row > div.group {\n border: 1px solid rgba(255, 255, 255, 0.2);\n border-radius: 0.25rem;\n display: flex;\n flex-direction: row;\n flex: 1;\n overflow: hidden;\n}\n\n[part~=contextMenu] > div.row > div.group:first-child {\n margin-left: 0.5rem;\n margin-right: 0.25rem;\n}\n\n[part~=contextMenu] > div.row > div.group:last-child {\n margin-right: 0.5rem;\n}\n\n[part~=contextMenu] > div.group > button,\n[part~=contextMenu] > div.row > div.group > button {\n display: flex;\n flex: 1;\n padding: 0.25rem;\n justify-content: center;\n border: 0;\n margin: 0;\n background: transparent;\n color: #FFF;\n font-size: 1rem;\n line-height: 1.25rem;\n align-items: center;\n outline: none;\n}\n\n[part~=contextMenu] > button,\n[part~=contextMenu] > a {\n display: flex;\n border: 0;\n margin: 0;\n padding: 0.125rem 0.5rem;\n background: transparent;\n text-align: left;\n color: #FFF;\n font-size: 1rem;\n text-decoration: none;\n cursor: default;\n outline: none;\n}\n\n[part~=contextMenu] > div.group > button.active,\n[part~=contextMenu] > div.row > div.group > button.active {\n box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3) inset;\n background: rgba(0, 0, 0, 0.1);\n}\n\n[part~=contextMenu] > div.group > button.active:hover,\n[part~=contextMenu] > div.row > div.group > button.active:hover {\n background: rgba(0, 0, 0, 0.2);\n}\n\n[part~=contextMenu] > div.group > button:not(:first-child),\n[part~=contextMenu] > div.row > div.group > button:not(:first-child) {\n border-left: 1px solid rgba(255, 255, 255, 0.1);\n}\n\n[part~=contextMenu] > div.row > div.group > button > svg,\n[part~=contextMenu] > div.group > button > svg,\n[part~=contextMenu] > div.row > button > svg,\n[part~=contextMenu] > button > svg {\n width: 1.5rem;\n height: 1.5rem;\n align-self: center;\n}\n\n[part~=contextMenu] > div.row > div.group > button:hover,\n[part~=contextMenu] > div.group > button:hover,\n[part~=contextMenu] > button:hover,\n[part~=contextMenu] > a:hover {\n background: rgba(255, 255, 255, 0.2);\n}\n\n[part~=contextMenu] > div.row > div.group > button:active,\n[part~=contextMenu] > div.group > button:active {\n box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3) inset;\n background: rgba(0, 0, 0, 0.2);\n}\n[part~=contextMenu] > button:active,\n[part~=contextMenu] > a:active {\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;\n background: rgba(0, 0, 0, 0.2);\n}\n\n.row {\n display: flex;\n}\n\n.divider {\n border-top: 1px solid rgba(255, 255, 255, 0.3);\n margin-top: 0.5rem;\n height: 0.4375rem;\n}\n\n.black {\n display: inline-flex;\n border-radius: 50%;\n width: 1rem;\n height: 1rem;\n background: #000;\n}\n\n.white {\n display: inline-flex;\n border-radius: 50%;\n width: 1rem;\n height: 1rem;\n background: #FFF;\n}\n\n.download svg {\n margin-bottom: -0.125rem;\n margin-left: 0.25rem;\n}\n\n[part~=color] {\n visibility: hidden;\n position: absolute;\n padding: 0.25rem;\n background: #737E9E;\n border-radius: 0.25rem;\n box-shadow: 0 1px 16px rgba(0, 0, 0, 0.6);\n}\n\n[part~=colorHexRgb] {\n margin-bottom: 0.25rem;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},8111:(e,t,n)=>{"use strict";var a=n(3822);n(309);var i=n(111),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const o=[!0,"true",""];(()=>{let e,t,n,l,c,d,u=[(0,a.uA)({selector:"pg-button-toggle",style:i.A,template:'<pg-button part="button"> <slot part="expand" name="active"></slot> <slot part="collapse" name="inactive"></slot> </pg-button>'})],p=[],h=HTMLElement,f=[],g=[],m=[],v=[],b=[],y=[],w=[],x=[];(class extends h{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],l=[(0,a.eS)()],c=[(0,a.eS)()],d=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"active",static:!1,private:!1,access:{has:e=>"active"in e,get:e=>e.active,set:(e,t)=>{e.active=t}},metadata:i},f,g),r(null,null,l,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:i},m,v),r(null,null,c,{kind:"field",name:"$expand",static:!1,private:!1,access:{has:e=>"$expand"in e,get:e=>e.$expand,set:(e,t)=>{e.$expand=t}},metadata:i},b,y),r(null,null,d,{kind:"field",name:"$collapse",static:!1,private:!1,access:{has:e=>"$collapse"in e,get:e=>e.$collapse,set:(e,t)=>{e.$collapse=t}},metadata:i},w,x),r(null,e={value:t},u,{kind:"class",name:t.name,metadata:i},null,p),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,p)}active=s(this,f,!1);$button=(s(this,g),s(this,m,void 0));$expand=(s(this,v),s(this,b,void 0));$collapse=(s(this,y),s(this,w,void 0));connectedCallback(){this.$button.addEventListener("click",(e=>{e.stopPropagation(),this.active=!o.includes(this.active),this.dispatchEvent(new CustomEvent("click",{detail:{active:this.active}}))}))}render(e){e.active&&(this.$button.active=o.includes(this.active),this.$expand.style.display=this.$button.active?"initial":"none",this.$collapse.style.display=this.$button.active?"none":"initial")}constructor(){super(...arguments),s(this,x)}})})()},8261:(e,t,n)=>{"use strict";var a=n(3822),i=n(1516);n(309);var r=n(3685),s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const l="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z";(()=>{let e,t,n,c,d,u,p,h,f,g=[(0,a.uA)({selector:"pg-button-menu",style:r.A,template:'<pg-button part="button"> <span part="label"></span> <pg-icon part="icon" path="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"></pg-icon> </pg-button>'})],m=[],v=HTMLElement,b=[],y=[],w=[],x=[],k=[],E=[],C=[],$=[],A=[],S=[],F=[],L=[],O=[],T=[];(class extends v{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(v[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],c=[(0,a.kv)()],d=[(0,a.kv)()],u=[(0,a.kv)()],p=[(0,a.eS)()],h=[(0,a.eS)()],f=[(0,a.eS)()],s(null,null,n,{kind:"field",name:"items",static:!1,private:!1,access:{has:e=>"items"in e,get:e=>e.items,set:(e,t)=>{e.items=t}},metadata:i},b,y),s(null,null,c,{kind:"field",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:i},w,x),s(null,null,d,{kind:"field",name:"label",static:!1,private:!1,access:{has:e=>"label"in e,get:e=>e.label,set:(e,t)=>{e.label=t}},metadata:i},k,E),s(null,null,u,{kind:"field",name:"default",static:!1,private:!1,access:{has:e=>"default"in e,get:e=>e.default,set:(e,t)=>{e.default=t}},metadata:i},C,$),s(null,null,p,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:i},A,S),s(null,null,h,{kind:"field",name:"$icon",static:!1,private:!1,access:{has:e=>"$icon"in e,get:e=>e.$icon,set:(e,t)=>{e.$icon=t}},metadata:i},F,L),s(null,null,f,{kind:"field",name:"$label",static:!1,private:!1,access:{has:e=>"$label"in e,get:e=>e.$label,set:(e,t)=>{e.$label=t}},metadata:i},O,T),s(null,e={value:t},g,{kind:"class",name:t.name,metadata:i},null,m),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,m)}items=o(this,b,[]);value=(o(this,y),o(this,w,null));label=(o(this,x),o(this,k,""));default=(o(this,E),o(this,C,null));$button=(o(this,$),o(this,A,void 0));$icon=(o(this,S),o(this,F,void 0));$label=(o(this,L),o(this,O,void 0));connectedCallback(){this.$button.addEventListener("click",this.#e.bind(this))}render(e){e.label&&(this.$label.textContent=this.label)}#Ue=(o(this,T),!1);async#e(){if(this.#Ue=!this.#Ue,this.$icon.path=this.#Ue?"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z":l,!this.#Ue)return;const e=await i.A.open({source:this,default:this.default??this.items[0],value:this.items.find((e=>e.value===this.value))??null,items:this.items});this.$icon.path=l,void 0!==e&&this.dispatchEvent(new CustomEvent("change",{detail:{value:e.value}})),this.#Ue=!1}})})()},8277:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: block;\n}\n\n[part="grid"] {\n display: grid;\n grid-template-columns: auto 1.5rem;\n}\n\n[part="icon"] {\n grid-row: 1;\n grid-column: 2;\n pointer-events: none;\n transform: translate(calc(-0.35rem + 1px), calc(0.25rem + 1px));\n}\n\n[part="input"] {\n grid-row: 1;\n grid-column: 1 / span 2;\n}\n\n[part="input"]:focus + [part="icon"] {\n --pg-icon-color: #4f8ff9;\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},8290:(e,t,n)=>{"use strict";var a=n(3822);var i=n(7781),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o,l,c,d,u,p,h=[(0,a.uA)({selector:"pg-preview",style:i.A,template:'<div part="grid"> <svg part="svg" viewBox="0 0 24 24"> <path part="path" fill="currentColor" d="M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"/> </svg> </div>'})],f=[],g=HTMLElement,m=[],v=[],b=[],y=[],w=[],x=[],k=[],E=[],C=[],$=[],A=[],S=[],F=[],L=[];(class extends g{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(g[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],o=[(0,a.kv)()],l=[(0,a.kv)()],c=[(0,a.kv)()],d=[(0,a.eS)()],u=[(0,a.eS)()],p=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"path",static:!1,private:!1,access:{has:e=>"path"in e,get:e=>e.path,set:(e,t)=>{e.path=t}},metadata:i},m,v),r(null,null,o,{kind:"field",name:"width",static:!1,private:!1,access:{has:e=>"width"in e,get:e=>e.width,set:(e,t)=>{e.width=t}},metadata:i},b,y),r(null,null,l,{kind:"field",name:"height",static:!1,private:!1,access:{has:e=>"height"in e,get:e=>e.height,set:(e,t)=>{e.height=t}},metadata:i},w,x),r(null,null,c,{kind:"field",name:"size",static:!1,private:!1,access:{has:e=>"size"in e,get:e=>e.size,set:(e,t)=>{e.size=t}},metadata:i},k,E),r(null,null,d,{kind:"field",name:"$svg",static:!1,private:!1,access:{has:e=>"$svg"in e,get:e=>e.$svg,set:(e,t)=>{e.$svg=t}},metadata:i},C,$),r(null,null,u,{kind:"field",name:"$path",static:!1,private:!1,access:{has:e=>"$path"in e,get:e=>e.$path,set:(e,t)=>{e.$path=t}},metadata:i},A,S),r(null,null,p,{kind:"field",name:"$grid",static:!1,private:!1,access:{has:e=>"$grid"in e,get:e=>e.$grid,set:(e,t)=>{e.$grid=t}},metadata:i},F,L),r(null,e={value:t},h,{kind:"class",name:t.name,metadata:i},null,f),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,f)}path=s(this,m,"M0 0h24v24H0V0zm2 2v20h20V2H2z");width=(s(this,v),s(this,b,24));height=(s(this,y),s(this,w,24));size=(s(this,x),s(this,k,8));$svg=(s(this,E),s(this,C,void 0));$path=(s(this,$),s(this,A,void 0));$grid=(s(this,S),s(this,F,void 0));render(e){if(e.path&&this.$path.setAttribute("d",this.path),e.size){const e=parseInt(`${this.width}`,10),t=parseInt(`${this.height}`,10),n=parseInt(`${this.size}`,10);this.$svg.style.width=e*n+"px",this.$svg.style.height=t*n+"px",this.$grid.style.width=e*n+"px",this.$grid.style.height=t*n+"px",this.$grid.style.setProperty("--pg-preview-size",`${n}px`)}}constructor(){super(...arguments),s(this,L)}})})()},8441:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: inline-flex;\n color: var(--pg-icon-color, #453C4F);\n}\n\n[part="svg"] {\n width: var(--pg-icon-width, 1.5rem);\n height: var(--pg-icon-height, 1.5rem);\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},8457:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: block;\n}\n\n:host > div {\n display: grid;\n grid-template-rows: auto 1rem 2rem 1rem 2rem 1rem 2rem;\n grid-template-rows: 1fr;\n}\n\n[part~="hex"] {\n grid-row: 1;\n grid-column: 1;\n}\n\n[part~="labelRed"] {\n grid-row: 1;\n grid-column: 2;\n background: red;\n}\n\n[part~="red"] {\n grid-row: 1;\n grid-column: 3;\n}\n\n[part~="labelGreen"] {\n grid-row: 1;\n grid-column: 4;\n background: green;\n color: white;\n}\n\n[part~="green"] {\n grid-row: 1;\n grid-column: 5;\n}\n\n[part~="labelBlue"] {\n grid-row: 1;\n grid-column: 6;\n background: blue;\n color: white;\n}\n\n[part~="blue"] {\n grid-row: 1;\n grid-column: 7;\n}\n\n[part~="labelRed"],\n[part~="labelGreen"],\n[part~="labelBlue"] {\n display: flex;\n margin-left: 0.25rem;\n align-items: center;\n justify-content: center;\n border-radius: 0.25rem 0 0 0.25rem;\n color: white;\n min-width: 1rem;\n}\n\n[part~="hex"] {\n border-radius: 0.25rem;\n min-width: 4rem;\n}\n\n[part~="hex"],\n[part~="red"],\n[part~="green"],\n[part~="blue"] {\n outline: none;\n font-size: 1rem;\n padding: 0.25rem 0.5rem;\n border: 0;\n width: calc(100% - 1rem);\n}\n\n[part~="red"],\n[part~="green"],\n[part~="blue"] {\n border-radius: 0 0.25rem 0.25rem 0;\n -moz-appearance: textfield;\n width: calc(100% - 1rem);\n min-width: 2rem;\n}\n\n[part~="red"]::-webkit-inner-spin-button,\n[part~="red"]::-webkit-outer-spin-button,\n[part~="green"]::-webkit-inner-spin-button,\n[part~="green"]::-webkit-outer-spin-button,\n[part~="blue"]::-webkit-inner-spin-button,\n[part~="blue"]::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},8496:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(3822);var i=n(4513),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const o=(()=>{let e,t,n,o,l,c,d=[(0,a.uA)({selector:"pg-tree-button-icon",style:i.A,template:'<button part="button"> <pg-icon part="icon"></pg-icon> </button>'})],u=[],p=HTMLElement,h=[],f=[],g=[],m=[],v=[],b=[],y=[],w=[];(class extends p{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],o=[(0,a.kv)()],l=[(0,a.eS)()],c=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"index",static:!1,private:!1,access:{has:e=>"index"in e,get:e=>e.index,set:(e,t)=>{e.index=t}},metadata:i},h,f),r(null,null,o,{kind:"field",name:"icon",static:!1,private:!1,access:{has:e=>"icon"in e,get:e=>e.icon,set:(e,t)=>{e.icon=t}},metadata:i},g,m),r(null,null,l,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:i},v,b),r(null,null,c,{kind:"field",name:"$icon",static:!1,private:!1,access:{has:e=>"$icon"in e,get:e=>e.$icon,set:(e,t)=>{e.$icon=t}},metadata:i},y,w),r(null,e={value:t},d,{kind:"class",name:t.name,metadata:i},null,u),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,u)}index=s(this,h,void 0);icon=(s(this,f),s(this,g,"M0 0h24v24H0V0zm2 2v20h20V2H2z"));$button=(s(this,m),s(this,v,void 0));$icon=(s(this,b),s(this,y,void 0));connectedCallback(){this.$button.addEventListener("click",this.#e.bind(this))}#e(e){this.dispatchEvent(new CustomEvent("action",{bubbles:!0,composed:!0,detail:{index:this.index}}))}render(e){e.icon&&(this.$icon.path=this.icon)}constructor(){super(...arguments),s(this,w)}});return t})()},8502:(e,t,n)=>{"use strict";var a,i=n(3822);function r(e){return(a=a||document.createElement("textarea")).innerHTML="&"+e+";",a.value}var s=Object.prototype.hasOwnProperty;function o(e,t){return!!e&&s.call(e,t)}function l(e){return[].slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e}var c=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function d(e){return e.indexOf("\\")<0?e:e.replace(c,"$1")}function u(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(!!(65535&~e&&65534!=(65535&e))&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function p(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var h=/&([a-z#][a-z0-9]{1,31});/gi,f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function g(e,t){var n=0,a=r(t);return t!==a?a:35===t.charCodeAt(0)&&f.test(t)&&u(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?p(n):e}function m(e){return e.indexOf("&")<0?e:e.replace(h,g)}var v=/[&<>"]/,b=/[&<>"]/g,y={"&":"&","<":"<",">":">",'"':"""};function w(e){return y[e]}function x(e){return v.test(e)?e.replace(b,w):e}var k={};function E(e,t){return++t>=e.length-2?t:"paragraph_open"===e[t].type&&e[t].tight&&"inline"===e[t+1].type&&0===e[t+1].content.length&&"paragraph_close"===e[t+2].type&&e[t+2].tight?E(e,t+2):t}k.blockquote_open=function(){return"<blockquote>\n"},k.blockquote_close=function(e,t){return"</blockquote>"+C(e,t)},k.code=function(e,t){return e[t].block?"<pre><code>"+x(e[t].content)+"</code></pre>"+C(e,t):"<code>"+x(e[t].content)+"</code>"},k.fence=function(e,t,n,a,i){var r,s,l=e[t],c="",u=n.langPrefix;if(l.params){if(s=(r=l.params.split(/\s+/g)).join(" "),o(i.rules.fence_custom,r[0]))return i.rules.fence_custom[r[0]](e,t,n,a,i);c=' class="'+u+x(m(d(s)))+'"'}return"<pre><code"+c+">"+(n.highlight&&n.highlight.apply(n.highlight,[l.content].concat(r))||x(l.content))+"</code></pre>"+C(e,t)},k.fence_custom={},k.heading_open=function(e,t){return"<h"+e[t].hLevel+">"},k.heading_close=function(e,t){return"</h"+e[t].hLevel+">\n"},k.hr=function(e,t,n){return(n.xhtmlOut?"<hr />":"<hr>")+C(e,t)},k.bullet_list_open=function(){return"<ul>\n"},k.bullet_list_close=function(e,t){return"</ul>"+C(e,t)},k.list_item_open=function(){return"<li>"},k.list_item_close=function(){return"</li>\n"},k.ordered_list_open=function(e,t){var n=e[t];return"<ol"+(n.order>1?' start="'+n.order+'"':"")+">\n"},k.ordered_list_close=function(e,t){return"</ol>"+C(e,t)},k.paragraph_open=function(e,t){return e[t].tight?"":"<p>"},k.paragraph_close=function(e,t){var n=!(e[t].tight&&t&&"inline"===e[t-1].type&&!e[t-1].content);return(e[t].tight?"":"</p>")+(n?C(e,t):"")},k.link_open=function(e,t,n){var a=e[t].title?' title="'+x(m(e[t].title))+'"':"",i=n.linkTarget?' target="'+n.linkTarget+'"':"";return'<a href="'+x(e[t].href)+'"'+a+i+">"},k.link_close=function(){return"</a>"},k.image=function(e,t,n){var a=' src="'+x(e[t].src)+'"',i=e[t].title?' title="'+x(m(e[t].title))+'"':"";return"<img"+a+(' alt="'+(e[t].alt?x(m(d(e[t].alt))):"")+'"')+i+(n.xhtmlOut?" /":"")+">"},k.table_open=function(){return"<table>\n"},k.table_close=function(){return"</table>\n"},k.thead_open=function(){return"<thead>\n"},k.thead_close=function(){return"</thead>\n"},k.tbody_open=function(){return"<tbody>\n"},k.tbody_close=function(){return"</tbody>\n"},k.tr_open=function(){return"<tr>"},k.tr_close=function(){return"</tr>\n"},k.th_open=function(e,t){var n=e[t];return"<th"+(n.align?' style="text-align:'+n.align+'"':"")+">"},k.th_close=function(){return"</th>"},k.td_open=function(e,t){var n=e[t];return"<td"+(n.align?' style="text-align:'+n.align+'"':"")+">"},k.td_close=function(){return"</td>"},k.strong_open=function(){return"<strong>"},k.strong_close=function(){return"</strong>"},k.em_open=function(){return"<em>"},k.em_close=function(){return"</em>"},k.del_open=function(){return"<del>"},k.del_close=function(){return"</del>"},k.ins_open=function(){return"<ins>"},k.ins_close=function(){return"</ins>"},k.mark_open=function(){return"<mark>"},k.mark_close=function(){return"</mark>"},k.sub=function(e,t){return"<sub>"+x(e[t].content)+"</sub>"},k.sup=function(e,t){return"<sup>"+x(e[t].content)+"</sup>"},k.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},k.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},k.text=function(e,t){return x(e[t].content)},k.htmlblock=function(e,t){return e[t].content},k.htmltag=function(e,t){return e[t].content},k.abbr_open=function(e,t){return'<abbr title="'+x(m(e[t].title))+'">'},k.abbr_close=function(){return"</abbr>"},k.footnote_ref=function(e,t){var n=Number(e[t].id+1).toString(),a="fnref"+n;return e[t].subId>0&&(a+=":"+e[t].subId),'<sup class="footnote-ref"><a href="#fn'+n+'" id="'+a+'">['+n+"]</a></sup>"},k.footnote_block_open=function(e,t,n){return(n.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'},k.footnote_block_close=function(){return"</ol>\n</section>\n"},k.footnote_open=function(e,t){return'<li id="fn'+Number(e[t].id+1).toString()+'" class="footnote-item">'},k.footnote_close=function(){return"</li>\n"},k.footnote_anchor=function(e,t){var n="fnref"+Number(e[t].id+1).toString();return e[t].subId>0&&(n+=":"+e[t].subId),' <a href="#'+n+'" class="footnote-backref">↩</a>'},k.dl_open=function(){return"<dl>\n"},k.dt_open=function(){return"<dt>"},k.dd_open=function(){return"<dd>"},k.dl_close=function(){return"</dl>\n"},k.dt_close=function(){return"</dt>\n"},k.dd_close=function(){return"</dd>\n"};var C=k.getBreak=function(e,t){return(t=E(e,t))<e.length&&"list_item_close"===e[t].type?"":"\n"};function $(){this.rules=l({},k),this.getBreak=k.getBreak}function A(){this.__rules__=[],this.__cache__=null}function S(e,t,n,a,i){this.src=e,this.env=a,this.options=n,this.parser=t,this.tokens=i,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}function F(e,t){var n,a,i,r=-1,s=e.posMax,o=e.pos,l=e.isInLabel;if(e.isInLabel)return-1;if(e.labelUnmatchedScopes)return e.labelUnmatchedScopes--,-1;for(e.pos=t+1,e.isInLabel=!0,n=1;e.pos<s;){if(91===(i=e.src.charCodeAt(e.pos)))n++;else if(93===i&&0===--n){a=!0;break}e.parser.skipToken(e)}return a?(r=e.pos,e.labelUnmatchedScopes=0):e.labelUnmatchedScopes=n-1,e.pos=o,e.isInLabel=l,r}function L(e,t,n,a){var i,r,s,o,l,c;if(42!==e.charCodeAt(0))return-1;if(91!==e.charCodeAt(1))return-1;if(-1===e.indexOf("]:"))return-1;if((r=F(i=new S(e,t,n,a,[]),1))<0||58!==e.charCodeAt(r+1))return-1;for(o=i.posMax,s=r+2;s<o&&10!==i.src.charCodeAt(s);s++);return l=e.slice(2,r),0===(c=e.slice(r+2,s).trim()).length?-1:(a.abbreviations||(a.abbreviations={}),void 0===a.abbreviations[":"+l]&&(a.abbreviations[":"+l]=c),s)}function O(e){var t=m(e);try{t=decodeURI(t)}catch(e){}return encodeURI(t)}function T(e,t){var n,a,i,r=t,s=e.posMax;if(60===e.src.charCodeAt(t)){for(t++;t<s;){if(10===(n=e.src.charCodeAt(t)))return!1;if(62===n)return i=O(d(e.src.slice(r+1,t))),!!e.parser.validateLink(i)&&(e.pos=t+1,e.linkContent=i,!0);92===n&&t+1<s?t+=2:t++}return!1}for(a=0;t<s&&32!==(n=e.src.charCodeAt(t))&&!(n<32||127===n);)if(92===n&&t+1<s)t+=2;else{if(40===n&&++a>1)break;if(41===n&&--a<0)break;t++}return r!==t&&(i=d(e.src.slice(r,t)),!!e.parser.validateLink(i)&&(e.linkContent=i,e.pos=t,!0))}function D(e,t){var n,a=t,i=e.posMax,r=e.src.charCodeAt(t);if(34!==r&&39!==r&&40!==r)return!1;for(t++,40===r&&(r=41);t<i;){if((n=e.src.charCodeAt(t))===r)return e.pos=t+1,e.linkContent=d(e.src.slice(a+1,t)),!0;92===n&&t+1<i?t+=2:t++}return!1}function j(e){return e.trim().replace(/\s+/g," ").toUpperCase()}function I(e,t,n,a){var i,r,s,o,l,c,d,u,p;if(91!==e.charCodeAt(0))return-1;if(-1===e.indexOf("]:"))return-1;if((r=F(i=new S(e,t,n,a,[]),0))<0||58!==e.charCodeAt(r+1))return-1;for(o=i.posMax,s=r+2;s<o&&(32===(l=i.src.charCodeAt(s))||10===l);s++);if(!T(i,s))return-1;for(d=i.linkContent,c=s=i.pos,s+=1;s<o&&(32===(l=i.src.charCodeAt(s))||10===l);s++);for(s<o&&c!==s&&D(i,s)?(u=i.linkContent,s=i.pos):(u="",s=c);s<o&&32===i.src.charCodeAt(s);)s++;return s<o&&10!==i.src.charCodeAt(s)?-1:(p=j(e.slice(1,r)),void 0===a.references[p]&&(a.references[p]={title:u,href:d}),s)}$.prototype.renderInline=function(e,t,n){for(var a=this.rules,i=e.length,r=0,s="";i--;)s+=a[e[r].type](e,r++,t,n,this);return s},$.prototype.render=function(e,t,n){for(var a=this.rules,i=e.length,r=-1,s="";++r<i;)"inline"===e[r].type?s+=this.renderInline(e[r].children,t,n):s+=a[e[r].type](e,r,t,n,this);return s},A.prototype.__find__=function(e){for(var t=this.__rules__.length,n=-1;t--;)if(this.__rules__[++n].name===e)return n;return-1},A.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},A.prototype.at=function(e,t,n){var a=this.__find__(e),i=n||{};if(-1===a)throw new Error("Parser rule not found: "+e);this.__rules__[a].fn=t,this.__rules__[a].alt=i.alt||[],this.__cache__=null},A.prototype.before=function(e,t,n,a){var i=this.__find__(e),r=a||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null},A.prototype.after=function(e,t,n,a){var i=this.__find__(e),r=a||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null},A.prototype.push=function(e,t,n){var a=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:a.alt||[]}),this.__cache__=null},A.prototype.enable=function(e,t){e=Array.isArray(e)?e:[e],t&&this.__rules__.forEach((function(e){e.enabled=!1})),e.forEach((function(e){var t=this.__find__(e);if(t<0)throw new Error("Rules manager: invalid rule name "+e);this.__rules__[t].enabled=!0}),this),this.__cache__=null},A.prototype.disable=function(e){(e=Array.isArray(e)?e:[e]).forEach((function(e){var t=this.__find__(e);if(t<0)throw new Error("Rules manager: invalid rule name "+e);this.__rules__[t].enabled=!1}),this),this.__cache__=null},A.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},S.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""},S.prototype.push=function(e){this.pending&&this.pushPending(),this.tokens.push(e),this.pendingLevel=this.level},S.prototype.cacheSet=function(e,t){for(var n=this.cache.length;n<=e;n++)this.cache.push(0);this.cache[e]=t},S.prototype.cacheGet=function(e){return e<this.cache.length?this.cache[e]:0};var P=" \n()[]'\".,!?-";function M(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}var B=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,z=/\((c|tm|r|p)\)/gi,H={c:"©",r:"®",p:"§",tm:"™"};function R(e){return e.indexOf("(")<0?e:e.replace(z,(function(e,t){return H[t.toLowerCase()]}))}var N=/['"]/,V=/['"]/g,_=/[-\s()\[\]]/;function K(e,t){return!(t<0||t>=e.length)&&!_.test(e[t])}function Y(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}var q=[["block",function(e){e.inlineMode?e.tokens.push({type:"inline",content:e.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):e.block.parse(e.src,e.options,e.env,e.tokens)}],["abbr",function(e){var t,n,a,i,r=e.tokens;if(!e.inlineMode)for(t=1,n=r.length-1;t<n;t++)if("paragraph_open"===r[t-1].type&&"inline"===r[t].type&&"paragraph_close"===r[t+1].type){for(a=r[t].content;a.length&&!((i=L(a,e.inline,e.options,e.env))<0);)a=a.slice(i).trim();r[t].content=a,a.length||(r[t-1].tight=!0,r[t+1].tight=!0)}}],["references",function(e){var t,n,a,i,r=e.tokens;if(e.env.references=e.env.references||{},!e.inlineMode)for(t=1,n=r.length-1;t<n;t++)if("inline"===r[t].type&&"paragraph_open"===r[t-1].type&&"paragraph_close"===r[t+1].type){for(a=r[t].content;a.length&&!((i=I(a,e.inline,e.options,e.env))<0);)a=a.slice(i).trim();r[t].content=a,a.length||(r[t-1].tight=!0,r[t+1].tight=!0)}}],["inline",function(e){var t,n,a,i=e.tokens;for(n=0,a=i.length;n<a;n++)"inline"===(t=i[n]).type&&e.inline.parse(t.content,e.options,e.env,t.children)}],["footnote_tail",function(e){var t,n,a,i,r,s,o,l,c,d=0,u=!1,p={};if(e.env.footnotes&&(e.tokens=e.tokens.filter((function(e){return"footnote_reference_open"===e.type?(u=!0,l=[],c=e.label,!1):"footnote_reference_close"===e.type?(u=!1,p[":"+c]=l,!1):(u&&l.push(e),!u)})),e.env.footnotes.list)){for(s=e.env.footnotes.list,e.tokens.push({type:"footnote_block_open",level:d++}),t=0,n=s.length;t<n;t++){for(e.tokens.push({type:"footnote_open",id:t,level:d++}),s[t].tokens?((o=[]).push({type:"paragraph_open",tight:!1,level:d++}),o.push({type:"inline",content:"",level:d,children:s[t].tokens}),o.push({type:"paragraph_close",tight:!1,level:--d})):s[t].label&&(o=p[":"+s[t].label]),e.tokens=e.tokens.concat(o),r="paragraph_close"===e.tokens[e.tokens.length-1].type?e.tokens.pop():null,i=s[t].count>0?s[t].count:1,a=0;a<i;a++)e.tokens.push({type:"footnote_anchor",id:t,subId:a,level:d});r&&e.tokens.push(r),e.tokens.push({type:"footnote_close",level:--d})}e.tokens.push({type:"footnote_block_close",level:--d})}}],["abbr2",function(e){var t,n,a,i,r,s,o,l,c,d,u,p,h=e.tokens;if(e.env.abbreviations)for(e.env.abbrRegExp||(p="(^|["+P.split("").map(M).join("")+"])("+Object.keys(e.env.abbreviations).map((function(e){return e.substr(1)})).sort((function(e,t){return t.length-e.length})).map(M).join("|")+")($|["+P.split("").map(M).join("")+"])",e.env.abbrRegExp=new RegExp(p,"g")),d=e.env.abbrRegExp,n=0,a=h.length;n<a;n++)if("inline"===h[n].type)for(t=(i=h[n].children).length-1;t>=0;t--)if("text"===(r=i[t]).type){for(l=0,s=r.content,d.lastIndex=0,c=r.level,o=[];u=d.exec(s);)d.lastIndex>l&&o.push({type:"text",content:s.slice(l,u.index+u[1].length),level:c}),o.push({type:"abbr_open",title:e.env.abbreviations[":"+u[2]],level:c++}),o.push({type:"text",content:u[2],level:c}),o.push({type:"abbr_close",level:--c}),l=d.lastIndex-u[3].length;o.length&&(l<s.length&&o.push({type:"text",content:s.slice(l),level:c}),h[n].children=i=[].concat(i.slice(0,t),o,i.slice(t+1)))}}],["replacements",function(e){var t,n,a,i,r;if(e.options.typographer)for(r=e.tokens.length-1;r>=0;r--)if("inline"===e.tokens[r].type)for(t=(i=e.tokens[r].children).length-1;t>=0;t--)"text"===(n=i[t]).type&&(a=R(a=n.content),B.test(a)&&(a=a.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),n.content=a)}],["smartquotes",function(e){var t,n,a,i,r,s,o,l,c,d,u,p,h,f,g,m,v;if(e.options.typographer)for(v=[],g=e.tokens.length-1;g>=0;g--)if("inline"===e.tokens[g].type)for(m=e.tokens[g].children,v.length=0,t=0;t<m.length;t++)if("text"===(n=m[t]).type&&!N.test(n.text)){for(o=m[t].level,h=v.length-1;h>=0&&!(v[h].level<=o);h--);v.length=h+1,r=0,s=(a=n.content).length;e:for(;r<s&&(V.lastIndex=r,i=V.exec(a));)if(l=!K(a,i.index-1),r=i.index+1,f="'"===i[0],(c=!K(a,r))||l){if(u=!c,p=!l)for(h=v.length-1;h>=0&&(d=v[h],!(v[h].level<o));h--)if(d.single===f&&v[h].level===o){d=v[h],f?(m[d.token].content=Y(m[d.token].content,d.pos,e.options.quotes[2]),n.content=Y(n.content,i.index,e.options.quotes[3])):(m[d.token].content=Y(m[d.token].content,d.pos,e.options.quotes[0]),n.content=Y(n.content,i.index,e.options.quotes[1])),v.length=h;continue e}u?v.push({token:t,pos:i.index,single:f,level:o}):p&&f&&(n.content=Y(n.content,i.index,"’"))}else f&&(n.content=Y(n.content,i.index,"’"))}}]];function U(){this.options={},this.ruler=new A;for(var e=0;e<q.length;e++)this.ruler.push(q[e][0],q[e][1])}function G(e,t,n,a,i){var r,s,o,l,c,d,u;for(this.src=e,this.parser=t,this.options=n,this.env=a,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",d=0,u=!1,o=l=d=0,c=(s=this.src).length;l<c;l++){if(r=s.charCodeAt(l),!u){if(32===r){d++;continue}u=!0}10!==r&&l!==c-1||(10!==r&&l++,this.bMarks.push(o),this.eMarks.push(l),this.tShift.push(d),u=!1,d=0,o=l+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}function Q(e,t){var n,a,i;return(a=e.bMarks[t]+e.tShift[t])>=(i=e.eMarks[t])||42!==(n=e.src.charCodeAt(a++))&&45!==n&&43!==n||a<i&&32!==e.src.charCodeAt(a)?-1:a}function W(e,t){var n,a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(a+1>=i)return-1;if((n=e.src.charCodeAt(a++))<48||n>57)return-1;for(;;){if(a>=i)return-1;if(!((n=e.src.charCodeAt(a++))>=48&&n<=57)){if(41===n||46===n)break;return-1}}return a<i&&32!==e.src.charCodeAt(a)?-1:a}U.prototype.process=function(e){var t,n,a;for(t=0,n=(a=this.ruler.getRules("")).length;t<n;t++)a[t](e)},G.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},G.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},G.prototype.skipSpaces=function(e){for(var t=this.src.length;e<t&&32===this.src.charCodeAt(e);e++);return e},G.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},G.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},G.prototype.getLines=function(e,t,n,a){var i,r,s,o,l,c=e;if(e>=t)return"";if(c+1===t)return r=this.bMarks[c]+Math.min(this.tShift[c],n),s=a?this.eMarks[c]+1:this.eMarks[c],this.src.slice(r,s);for(o=new Array(t-e),i=0;c<t;c++,i++)(l=this.tShift[c])>n&&(l=n),l<0&&(l=0),r=this.bMarks[c]+l,s=c+1<t||a?this.eMarks[c]+1:this.eMarks[c],o[i]=this.src.slice(r,s);return o.join("")};var Z={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach((function(e){Z[e]=!0}));var J=/^<([a-zA-Z]{1,15})[\s\/>]/,X=/^<\/([a-zA-Z]{1,15})[\s>]/;function ee(e,t){var n=e.bMarks[t]+e.blkIndent,a=e.eMarks[t];return e.src.substr(n,a-n)}function te(e,t){var n,a,i=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return i>=r||126!==(a=e.src.charCodeAt(i++))&&58!==a||i===(n=e.skipSpaces(i))||n>=r?-1:n}var ne=[["code",function(e,t,n){var a,i;if(e.tShift[t]-e.blkIndent<4)return!1;for(i=a=t+1;a<n;)if(e.isEmpty(a))a++;else{if(!(e.tShift[a]-e.blkIndent>=4))break;i=++a}return e.line=a,e.tokens.push({type:"code",content:e.getLines(t,i,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}],["fences",function(e,t,n,a){var i,r,s,o,l,c=!1,d=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(d+3>u)return!1;if(126!==(i=e.src.charCodeAt(d))&&96!==i)return!1;if(l=d,(r=(d=e.skipChars(d,i))-l)<3)return!1;if((s=e.src.slice(d,u).trim()).indexOf("`")>=0)return!1;if(a)return!0;for(o=t;!(++o>=n)&&!((d=l=e.bMarks[o]+e.tShift[o])<(u=e.eMarks[o])&&e.tShift[o]<e.blkIndent);)if(e.src.charCodeAt(d)===i&&!(e.tShift[o]-e.blkIndent>=4||(d=e.skipChars(d,i))-l<r||(d=e.skipSpaces(d))<u)){c=!0;break}return r=e.tShift[t],e.line=o+(c?1:0),e.tokens.push({type:"fence",params:s,content:e.getLines(t+1,o,r,!0),lines:[t,e.line],level:e.level}),!0},["paragraph","blockquote","list"]],["blockquote",function(e,t,n,a){var i,r,s,o,l,c,d,u,p,h,f,g=e.bMarks[t]+e.tShift[t],m=e.eMarks[t];if(g>m)return!1;if(62!==e.src.charCodeAt(g++))return!1;if(e.level>=e.options.maxNesting)return!1;if(a)return!0;for(32===e.src.charCodeAt(g)&&g++,l=e.blkIndent,e.blkIndent=0,o=[e.bMarks[t]],e.bMarks[t]=g,r=(g=g<m?e.skipSpaces(g):g)>=m,s=[e.tShift[t]],e.tShift[t]=g-e.bMarks[t],u=e.parser.ruler.getRules("blockquote"),i=t+1;i<n&&!((g=e.bMarks[i]+e.tShift[i])>=(m=e.eMarks[i]));i++)if(62!==e.src.charCodeAt(g++)){if(r)break;for(f=!1,p=0,h=u.length;p<h;p++)if(u[p](e,i,n,!0)){f=!0;break}if(f)break;o.push(e.bMarks[i]),s.push(e.tShift[i]),e.tShift[i]=-1337}else 32===e.src.charCodeAt(g)&&g++,o.push(e.bMarks[i]),e.bMarks[i]=g,r=(g=g<m?e.skipSpaces(g):g)>=m,s.push(e.tShift[i]),e.tShift[i]=g-e.bMarks[i];for(c=e.parentType,e.parentType="blockquote",e.tokens.push({type:"blockquote_open",lines:d=[t,0],level:e.level++}),e.parser.tokenize(e,t,i),e.tokens.push({type:"blockquote_close",level:--e.level}),e.parentType=c,d[1]=e.line,p=0;p<s.length;p++)e.bMarks[p+t]=o[p],e.tShift[p+t]=s[p];return e.blkIndent=l,!0},["paragraph","blockquote","list"]],["hr",function(e,t,n,a){var i,r,s,o=e.bMarks[t],l=e.eMarks[t];if((o+=e.tShift[t])>l)return!1;if(42!==(i=e.src.charCodeAt(o++))&&45!==i&&95!==i)return!1;for(r=1;o<l;){if((s=e.src.charCodeAt(o++))!==i&&32!==s)return!1;s===i&&r++}return!(r<3)&&(a||(e.line=t+1,e.tokens.push({type:"hr",lines:[t,e.line],level:e.level})),!0)},["paragraph","blockquote","list"]],["list",function(e,t,n,a){var i,r,s,o,l,c,d,u,p,h,f,g,m,v,b,y,w,x,k,E,C,$=!0;if((u=W(e,t))>=0)g=!0;else{if(!((u=Q(e,t))>=0))return!1;g=!1}if(e.level>=e.options.maxNesting)return!1;if(f=e.src.charCodeAt(u-1),a)return!0;for(v=e.tokens.length,g?(d=e.bMarks[t]+e.tShift[t],h=Number(e.src.substr(d,u-d-1)),e.tokens.push({type:"ordered_list_open",order:h,lines:y=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:y=[t,0],level:e.level++}),i=t,b=!1,x=e.parser.ruler.getRules("list");!(!(i<n)||((p=(m=e.skipSpaces(u))>=e.eMarks[i]?1:m-u)>4&&(p=1),p<1&&(p=1),r=u-e.bMarks[i]+p,e.tokens.push({type:"list_item_open",lines:w=[t,0],level:e.level++}),o=e.blkIndent,l=e.tight,s=e.tShift[t],c=e.parentType,e.tShift[t]=m-e.bMarks[t],e.blkIndent=r,e.tight=!0,e.parentType="list",e.parser.tokenize(e,t,n,!0),e.tight&&!b||($=!1),b=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=o,e.tShift[t]=s,e.tight=l,e.parentType=c,e.tokens.push({type:"list_item_close",level:--e.level}),i=t=e.line,w[1]=i,m=e.bMarks[t],i>=n)||e.isEmpty(i)||e.tShift[i]<e.blkIndent);){for(C=!1,k=0,E=x.length;k<E;k++)if(x[k](e,i,n,!0)){C=!0;break}if(C)break;if(g){if((u=W(e,i))<0)break}else if((u=Q(e,i))<0)break;if(f!==e.src.charCodeAt(u-1))break}return e.tokens.push({type:g?"ordered_list_close":"bullet_list_close",level:--e.level}),y[1]=i,e.line=i,$&&function(e,t){var n,a,i=e.level+2;for(n=t+2,a=e.tokens.length-2;n<a;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].tight=!0,e.tokens[n].tight=!0,n+=2)}(e,v),!0},["paragraph","blockquote"]],["footnote",function(e,t,n,a){var i,r,s,o,l,c=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(c+4>d)return!1;if(91!==e.src.charCodeAt(c))return!1;if(94!==e.src.charCodeAt(c+1))return!1;if(e.level>=e.options.maxNesting)return!1;for(o=c+2;o<d;o++){if(32===e.src.charCodeAt(o))return!1;if(93===e.src.charCodeAt(o))break}return o!==c+2&&(!(o+1>=d||58!==e.src.charCodeAt(++o))&&(a||(o++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),l=e.src.slice(c+2,o-2),e.env.footnotes.refs[":"+l]=-1,e.tokens.push({type:"footnote_reference_open",label:l,level:e.level++}),i=e.bMarks[t],r=e.tShift[t],s=e.parentType,e.tShift[t]=e.skipSpaces(o)-o,e.bMarks[t]=o,e.blkIndent+=4,e.parentType="footnote",e.tShift[t]<e.blkIndent&&(e.tShift[t]+=e.blkIndent,e.bMarks[t]-=e.blkIndent),e.parser.tokenize(e,t,n,!0),e.parentType=s,e.blkIndent-=4,e.tShift[t]=r,e.bMarks[t]=i,e.tokens.push({type:"footnote_reference_close",level:--e.level})),!0))},["paragraph"]],["heading",function(e,t,n,a){var i,r,s,o=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(o>=l)return!1;if(35!==(i=e.src.charCodeAt(o))||o>=l)return!1;for(r=1,i=e.src.charCodeAt(++o);35===i&&o<l&&r<=6;)r++,i=e.src.charCodeAt(++o);return!(r>6||o<l&&32!==i)&&(a||(l=e.skipCharsBack(l,32,o),(s=e.skipCharsBack(l,35,o))>o&&32===e.src.charCodeAt(s-1)&&(l=s),e.line=t+1,e.tokens.push({type:"heading_open",hLevel:r,lines:[t,e.line],level:e.level}),o<l&&e.tokens.push({type:"inline",content:e.src.slice(o,l).trim(),level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"heading_close",hLevel:r,level:e.level})),!0)},["paragraph","blockquote"]],["lheading",function(e,t,n){var a,i,r,s=t+1;return!(s>=n)&&(!(e.tShift[s]<e.blkIndent)&&(!(e.tShift[s]-e.blkIndent>3)&&(!((i=e.bMarks[s]+e.tShift[s])>=(r=e.eMarks[s]))&&((45===(a=e.src.charCodeAt(i))||61===a)&&(i=e.skipChars(i,a),!((i=e.skipSpaces(i))<r)&&(i=e.bMarks[t]+e.tShift[t],e.line=s+1,e.tokens.push({type:"heading_open",hLevel:61===a?1:2,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:e.src.slice(i,e.eMarks[t]).trim(),level:e.level+1,lines:[t,e.line-1],children:[]}),e.tokens.push({type:"heading_close",hLevel:61===a?1:2,level:e.level}),!0))))))}],["htmlblock",function(e,t,n,a){var i,r,s,o=e.bMarks[t],l=e.eMarks[t],c=e.tShift[t];if(o+=c,!e.options.html)return!1;if(c>3||o+2>=l)return!1;if(60!==e.src.charCodeAt(o))return!1;if(33===(i=e.src.charCodeAt(o+1))||63===i){if(a)return!0}else{if(47!==i&&!function(e){var t=32|e;return t>=97&&t<=122}(i))return!1;if(47===i){if(!(r=e.src.slice(o,l).match(X)))return!1}else if(!(r=e.src.slice(o,l).match(J)))return!1;if(!0!==Z[r[1].toLowerCase()])return!1;if(a)return!0}for(s=t+1;s<e.lineMax&&!e.isEmpty(s);)s++;return e.line=s,e.tokens.push({type:"htmlblock",level:e.level,lines:[t,e.line],content:e.getLines(t,s,0,!0)}),!0},["paragraph","blockquote"]],["table",function(e,t,n,a){var i,r,s,o,l,c,d,u,p,h,f;if(t+2>n)return!1;if(l=t+1,e.tShift[l]<e.blkIndent)return!1;if((s=e.bMarks[l]+e.tShift[l])>=e.eMarks[l])return!1;if(124!==(i=e.src.charCodeAt(s))&&45!==i&&58!==i)return!1;if(r=ee(e,t+1),!/^[-:| ]+$/.test(r))return!1;if((c=r.split("|"))<=2)return!1;for(u=[],o=0;o<c.length;o++){if(!(p=c[o].trim())){if(0===o||o===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(p))return!1;58===p.charCodeAt(p.length-1)?u.push(58===p.charCodeAt(0)?"center":"right"):58===p.charCodeAt(0)?u.push("left"):u.push("")}if(-1===(r=ee(e,t).trim()).indexOf("|"))return!1;if(c=r.replace(/^\||\|$/g,"").split("|"),u.length!==c.length)return!1;if(a)return!0;for(e.tokens.push({type:"table_open",lines:h=[t,0],level:e.level++}),e.tokens.push({type:"thead_open",lines:[t,t+1],level:e.level++}),e.tokens.push({type:"tr_open",lines:[t,t+1],level:e.level++}),o=0;o<c.length;o++)e.tokens.push({type:"th_open",align:u[o],lines:[t,t+1],level:e.level++}),e.tokens.push({type:"inline",content:c[o].trim(),lines:[t,t+1],level:e.level,children:[]}),e.tokens.push({type:"th_close",level:--e.level});for(e.tokens.push({type:"tr_close",level:--e.level}),e.tokens.push({type:"thead_close",level:--e.level}),e.tokens.push({type:"tbody_open",lines:f=[t+2,0],level:e.level++}),l=t+2;l<n&&!(e.tShift[l]<e.blkIndent)&&-1!==(r=ee(e,l).trim()).indexOf("|");l++){for(c=r.replace(/^\||\|$/g,"").split("|"),e.tokens.push({type:"tr_open",level:e.level++}),o=0;o<c.length;o++)e.tokens.push({type:"td_open",align:u[o],level:e.level++}),d=c[o].substring(124===c[o].charCodeAt(0)?1:0,124===c[o].charCodeAt(c[o].length-1)?c[o].length-1:c[o].length).trim(),e.tokens.push({type:"inline",content:d,level:e.level,children:[]}),e.tokens.push({type:"td_close",level:--e.level});e.tokens.push({type:"tr_close",level:--e.level})}return e.tokens.push({type:"tbody_close",level:--e.level}),e.tokens.push({type:"table_close",level:--e.level}),h[1]=f[1]=l,e.line=l,!0},["paragraph"]],["deflist",function(e,t,n,a){var i,r,s,o,l,c,d,u,p,h,f,g,m,v;if(a)return!(e.ddIndent<0)&&te(e,t)>=0;if(d=t+1,e.isEmpty(d)&&++d>n)return!1;if(e.tShift[d]<e.blkIndent)return!1;if((i=te(e,d))<0)return!1;if(e.level>=e.options.maxNesting)return!1;c=e.tokens.length,e.tokens.push({type:"dl_open",lines:l=[t,0],level:e.level++}),s=t,r=d;e:for(;;){for(v=!0,m=!1,e.tokens.push({type:"dt_open",lines:[s,s],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(s,s+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[s,s],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:o=[d,0],level:e.level++}),g=e.tight,p=e.ddIndent,u=e.blkIndent,f=e.tShift[r],h=e.parentType,e.blkIndent=e.ddIndent=e.tShift[r]+2,e.tShift[r]=i-e.bMarks[r],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,r,n,!0),e.tight&&!m||(v=!1),m=e.line-r>1&&e.isEmpty(e.line-1),e.tShift[r]=f,e.tight=g,e.parentType=h,e.blkIndent=u,e.ddIndent=p,e.tokens.push({type:"dd_close",level:--e.level}),o[1]=d=e.line,d>=n)break e;if(e.tShift[d]<e.blkIndent)break e;if((i=te(e,d))<0)break;r=d}if(d>=n)break;if(s=d,e.isEmpty(s))break;if(e.tShift[s]<e.blkIndent)break;if((r=s+1)>=n)break;if(e.isEmpty(r)&&r++,r>=n)break;if(e.tShift[r]<e.blkIndent)break;if((i=te(e,r))<0)break}return e.tokens.push({type:"dl_close",level:--e.level}),l[1]=d,e.line=d,v&&function(e,t){var n,a,i=e.level+2;for(n=t+2,a=e.tokens.length-2;n<a;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].tight=!0,e.tokens[n].tight=!0,n+=2)}(e,c),!0},["paragraph"]],["paragraph",function(e,t){var n,a,i,r,s,o,l=t+1;if(l<(n=e.lineMax)&&!e.isEmpty(l))for(o=e.parser.ruler.getRules("paragraph");l<n&&!e.isEmpty(l);l++)if(!(e.tShift[l]-e.blkIndent>3)){for(i=!1,r=0,s=o.length;r<s;r++)if(o[r](e,l,n,!0)){i=!0;break}if(i)break}return a=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,a.length&&(e.tokens.push({type:"paragraph_open",tight:!1,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:a,level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"paragraph_close",tight:!1,level:e.level})),!0}]];function ae(){this.ruler=new A;for(var e=0;e<ne.length;e++)this.ruler.push(ne[e][0],ne[e][1],{alt:(ne[e][2]||[]).slice()})}ae.prototype.tokenize=function(e,t,n){for(var a,i=this.ruler.getRules(""),r=i.length,s=t,o=!1;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n))&&!(e.tShift[s]<e.blkIndent);){for(a=0;a<r&&!i[a](e,s,n,!1);a++);if(e.tight=!o,e.isEmpty(e.line-1)&&(o=!0),(s=e.line)<n&&e.isEmpty(s)){if(o=!0,++s<n&&"list"===e.parentType&&e.isEmpty(s))break;e.line=s}}};var ie=/[\n\t]/g,re=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,se=/\u00a0/g;function oe(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}ae.prototype.parse=function(e,t,n,a){var i,r=0,s=0;if(!e)return[];(e=(e=e.replace(se," ")).replace(re,"\n")).indexOf("\t")>=0&&(e=e.replace(ie,(function(t,n){var a;return 10===e.charCodeAt(n)?(r=n+1,s=0,t):(a=" ".slice((n-r-s)%4),s=n-r+1,a)}))),i=new G(e,this,t,n,a),this.tokenize(i,i.line,i.lineMax)};for(var le=[],ce=0;ce<256;ce++)le.push(0);function de(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function ue(e,t){var n,a,i,r=t,s=!0,o=!0,l=e.posMax,c=e.src.charCodeAt(t);for(n=t>0?e.src.charCodeAt(t-1):-1;r<l&&e.src.charCodeAt(r)===c;)r++;return r>=l&&(s=!1),(i=r-t)>=4?s=o=!1:(32!==(a=r<l?e.src.charCodeAt(r):-1)&&10!==a||(s=!1),32!==n&&10!==n||(o=!1),95===c&&(de(n)&&(s=!1),de(a)&&(o=!1))),{can_open:s,can_close:o,delims:i}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){le[e.charCodeAt(0)]=1}));var pe=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;var he=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;var fe=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],ge=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,me=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function ve(e,t){return e=e.source,t=t||"",function n(a,i){return a?(i=i.source||i,e=e.replace(a,i),n):new RegExp(e,t)}}var be=ve(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",/[^"'=<>`\x00-\x20]+/)("single_quoted",/'[^']*'/)("double_quoted",/"[^"]*"/)(),ye=ve(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",/[a-zA-Z_:][a-zA-Z0-9:._-]*/)("attr_value",be)(),we=ve(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",ye)(),xe=ve(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",we)("close_tag",/<\/[A-Za-z][A-Za-z0-9]*\s*>/)("comment",/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/)("processing",/<[?].*?[?]>/)("declaration",/<![A-Z]+\s+[^>]*>/)("cdata",/<!\[CDATA\[[\s\S]*?\]\]>/)();var ke=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,Ee=/^&([a-z][a-z0-9]{1,31});/i;var Ce=[["text",function(e,t){for(var n=e.pos;n<e.posMax&&!oe(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["newline",function(e,t){var n,a,i=e.pos;if(10!==e.src.charCodeAt(i))return!1;if(n=e.pending.length-1,a=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(var r=n-2;r>=0;r--)if(32!==e.pending.charCodeAt(r)){e.pending=e.pending.substring(0,r+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(i++;i<a&&32===e.src.charCodeAt(i);)i++;return e.pos=i,!0}],["escape",function(e,t){var n,a=e.pos,i=e.posMax;if(92!==e.src.charCodeAt(a))return!1;if(++a<i){if((n=e.src.charCodeAt(a))<256&&0!==le[n])return t||(e.pending+=e.src[a]),e.pos+=2,!0;if(10===n){for(t||e.push({type:"hardbreak",level:e.level}),a++;a<i&&32===e.src.charCodeAt(a);)a++;return e.pos=a,!0}}return t||(e.pending+="\\"),e.pos++,!0}],["backticks",function(e,t){var n,a,i,r,s,o=e.pos;if(96!==e.src.charCodeAt(o))return!1;for(n=o,o++,a=e.posMax;o<a&&96===e.src.charCodeAt(o);)o++;for(i=e.src.slice(n,o),r=s=o;-1!==(r=e.src.indexOf("`",s));){for(s=r+1;s<a&&96===e.src.charCodeAt(s);)s++;if(s-r===i.length)return t||e.push({type:"code",content:e.src.slice(o,r).replace(/[ \n]+/g," ").trim(),block:!1,level:e.level}),e.pos=s,!0}return t||(e.pending+=i),e.pos+=i.length,!0}],["del",function(e,t){var n,a,i,r,s,o=e.posMax,l=e.pos;if(126!==e.src.charCodeAt(l))return!1;if(t)return!1;if(l+4>=o)return!1;if(126!==e.src.charCodeAt(l+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(r=l>0?e.src.charCodeAt(l-1):-1,s=e.src.charCodeAt(l+2),126===r)return!1;if(126===s)return!1;if(32===s||10===s)return!1;for(a=l+2;a<o&&126===e.src.charCodeAt(a);)a++;if(a>l+3)return e.pos+=a-l,t||(e.pending+=e.src.slice(l,a)),!0;for(e.pos=l+2,i=1;e.pos+1<o;){if(126===e.src.charCodeAt(e.pos)&&126===e.src.charCodeAt(e.pos+1)&&(r=e.src.charCodeAt(e.pos-1),126!==(s=e.pos+2<o?e.src.charCodeAt(e.pos+2):-1)&&126!==r&&(32!==r&&10!==r?i--:32!==s&&10!==s&&i++,i<=0))){n=!0;break}e.parser.skipToken(e)}return n?(e.posMax=e.pos,e.pos=l+2,t||(e.push({type:"del_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"del_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=o,!0):(e.pos=l,!1)}],["ins",function(e,t){var n,a,i,r,s,o=e.posMax,l=e.pos;if(43!==e.src.charCodeAt(l))return!1;if(t)return!1;if(l+4>=o)return!1;if(43!==e.src.charCodeAt(l+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(r=l>0?e.src.charCodeAt(l-1):-1,s=e.src.charCodeAt(l+2),43===r)return!1;if(43===s)return!1;if(32===s||10===s)return!1;for(a=l+2;a<o&&43===e.src.charCodeAt(a);)a++;if(a!==l+2)return e.pos+=a-l,t||(e.pending+=e.src.slice(l,a)),!0;for(e.pos=l+2,i=1;e.pos+1<o;){if(43===e.src.charCodeAt(e.pos)&&43===e.src.charCodeAt(e.pos+1)&&(r=e.src.charCodeAt(e.pos-1),43!==(s=e.pos+2<o?e.src.charCodeAt(e.pos+2):-1)&&43!==r&&(32!==r&&10!==r?i--:32!==s&&10!==s&&i++,i<=0))){n=!0;break}e.parser.skipToken(e)}return n?(e.posMax=e.pos,e.pos=l+2,t||(e.push({type:"ins_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"ins_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=o,!0):(e.pos=l,!1)}],["mark",function(e,t){var n,a,i,r,s,o=e.posMax,l=e.pos;if(61!==e.src.charCodeAt(l))return!1;if(t)return!1;if(l+4>=o)return!1;if(61!==e.src.charCodeAt(l+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(r=l>0?e.src.charCodeAt(l-1):-1,s=e.src.charCodeAt(l+2),61===r)return!1;if(61===s)return!1;if(32===s||10===s)return!1;for(a=l+2;a<o&&61===e.src.charCodeAt(a);)a++;if(a!==l+2)return e.pos+=a-l,t||(e.pending+=e.src.slice(l,a)),!0;for(e.pos=l+2,i=1;e.pos+1<o;){if(61===e.src.charCodeAt(e.pos)&&61===e.src.charCodeAt(e.pos+1)&&(r=e.src.charCodeAt(e.pos-1),61!==(s=e.pos+2<o?e.src.charCodeAt(e.pos+2):-1)&&61!==r&&(32!==r&&10!==r?i--:32!==s&&10!==s&&i++,i<=0))){n=!0;break}e.parser.skipToken(e)}return n?(e.posMax=e.pos,e.pos=l+2,t||(e.push({type:"mark_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"mark_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=o,!0):(e.pos=l,!1)}],["emphasis",function(e,t){var n,a,i,r,s,o,l,c=e.posMax,d=e.pos,u=e.src.charCodeAt(d);if(95!==u&&42!==u)return!1;if(t)return!1;if(n=(l=ue(e,d)).delims,!l.can_open)return e.pos+=n,t||(e.pending+=e.src.slice(d,e.pos)),!0;if(e.level>=e.options.maxNesting)return!1;for(e.pos=d+n,o=[n];e.pos<c;)if(e.src.charCodeAt(e.pos)!==u)e.parser.skipToken(e);else{if(a=(l=ue(e,e.pos)).delims,l.can_close){for(r=o.pop(),s=a;r!==s;){if(s<r){o.push(r-s);break}if(s-=r,0===o.length)break;e.pos+=r,r=o.pop()}if(0===o.length){n=r,i=!0;break}e.pos+=a;continue}l.can_open&&o.push(a),e.pos+=a}return i?(e.posMax=e.pos,e.pos=d+n,t||(2!==n&&3!==n||e.push({type:"strong_open",level:e.level++}),1!==n&&3!==n||e.push({type:"em_open",level:e.level++}),e.parser.tokenize(e),1!==n&&3!==n||e.push({type:"em_close",level:--e.level}),2!==n&&3!==n||e.push({type:"strong_close",level:--e.level})),e.pos=e.posMax+n,e.posMax=c,!0):(e.pos=d,!1)}],["sub",function(e,t){var n,a,i=e.posMax,r=e.pos;if(126!==e.src.charCodeAt(r))return!1;if(t)return!1;if(r+2>=i)return!1;if(e.level>=e.options.maxNesting)return!1;for(e.pos=r+1;e.pos<i;){if(126===e.src.charCodeAt(e.pos)){n=!0;break}e.parser.skipToken(e)}return n&&r+1!==e.pos?(a=e.src.slice(r+1,e.pos)).match(/(^|[^\\])(\\\\)*\s/)?(e.pos=r,!1):(e.posMax=e.pos,e.pos=r+1,t||e.push({type:"sub",level:e.level,content:a.replace(pe,"$1")}),e.pos=e.posMax+1,e.posMax=i,!0):(e.pos=r,!1)}],["sup",function(e,t){var n,a,i=e.posMax,r=e.pos;if(94!==e.src.charCodeAt(r))return!1;if(t)return!1;if(r+2>=i)return!1;if(e.level>=e.options.maxNesting)return!1;for(e.pos=r+1;e.pos<i;){if(94===e.src.charCodeAt(e.pos)){n=!0;break}e.parser.skipToken(e)}return n&&r+1!==e.pos?(a=e.src.slice(r+1,e.pos)).match(/(^|[^\\])(\\\\)*\s/)?(e.pos=r,!1):(e.posMax=e.pos,e.pos=r+1,t||e.push({type:"sup",level:e.level,content:a.replace(he,"$1")}),e.pos=e.posMax+1,e.posMax=i,!0):(e.pos=r,!1)}],["links",function(e,t){var n,a,i,r,s,o,l,c,d=!1,u=e.pos,p=e.posMax,h=e.pos,f=e.src.charCodeAt(h);if(33===f&&(d=!0,f=e.src.charCodeAt(++h)),91!==f)return!1;if(e.level>=e.options.maxNesting)return!1;if(n=h+1,(a=F(e,h))<0)return!1;if((o=a+1)<p&&40===e.src.charCodeAt(o)){for(o++;o<p&&(32===(c=e.src.charCodeAt(o))||10===c);o++);if(o>=p)return!1;for(h=o,T(e,o)?(r=e.linkContent,o=e.pos):r="",h=o;o<p&&(32===(c=e.src.charCodeAt(o))||10===c);o++);if(o<p&&h!==o&&D(e,o))for(s=e.linkContent,o=e.pos;o<p&&(32===(c=e.src.charCodeAt(o))||10===c);o++);else s="";if(o>=p||41!==e.src.charCodeAt(o))return e.pos=u,!1;o++}else{if(e.linkLevel>0)return!1;for(;o<p&&(32===(c=e.src.charCodeAt(o))||10===c);o++);if(o<p&&91===e.src.charCodeAt(o)&&(h=o+1,(o=F(e,o))>=0?i=e.src.slice(h,o++):o=h-1),i||(void 0===i&&(o=a+1),i=e.src.slice(n,a)),!(l=e.env.references[j(i)]))return e.pos=u,!1;r=l.href,s=l.title}return t||(e.pos=n,e.posMax=a,d?e.push({type:"image",src:r,title:s,alt:e.src.substr(n,a-n),level:e.level}):(e.push({type:"link_open",href:r,title:s,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=o,e.posMax=p,!0}],["footnote_inline",function(e,t){var n,a,i,r,s=e.posMax,o=e.pos;return!(o+2>=s)&&(94===e.src.charCodeAt(o)&&(91===e.src.charCodeAt(o+1)&&(!(e.level>=e.options.maxNesting)&&(n=o+2,!((a=F(e,o+1))<0)&&(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),i=e.env.footnotes.list.length,e.pos=n,e.posMax=a,e.push({type:"footnote_ref",id:i,level:e.level}),e.linkLevel++,r=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[i]={tokens:e.tokens.splice(r)},e.linkLevel--),e.pos=a+1,e.posMax=s,!0)))))}],["footnote_ref",function(e,t){var n,a,i,r,s=e.posMax,o=e.pos;if(o+3>s)return!1;if(!e.env.footnotes||!e.env.footnotes.refs)return!1;if(91!==e.src.charCodeAt(o))return!1;if(94!==e.src.charCodeAt(o+1))return!1;if(e.level>=e.options.maxNesting)return!1;for(a=o+2;a<s;a++){if(32===e.src.charCodeAt(a))return!1;if(10===e.src.charCodeAt(a))return!1;if(93===e.src.charCodeAt(a))break}return a!==o+2&&(!(a>=s)&&(a++,n=e.src.slice(o+2,a-1),void 0!==e.env.footnotes.refs[":"+n]&&(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+n]<0?(i=e.env.footnotes.list.length,e.env.footnotes.list[i]={label:n,count:0},e.env.footnotes.refs[":"+n]=i):i=e.env.footnotes.refs[":"+n],r=e.env.footnotes.list[i].count,e.env.footnotes.list[i].count++,e.push({type:"footnote_ref",id:i,subId:r,level:e.level})),e.pos=a,e.posMax=s,!0)))}],["autolink",function(e,t){var n,a,i,r,s,o=e.pos;return 60===e.src.charCodeAt(o)&&(!((n=e.src.slice(o)).indexOf(">")<0)&&((a=n.match(me))?!(fe.indexOf(a[1].toLowerCase())<0)&&(s=O(r=a[0].slice(1,-1)),!!e.parser.validateLink(r)&&(t||(e.push({type:"link_open",href:s,level:e.level}),e.push({type:"text",content:r,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=a[0].length,!0)):!!(i=n.match(ge))&&(s=O("mailto:"+(r=i[0].slice(1,-1))),!!e.parser.validateLink(s)&&(t||(e.push({type:"link_open",href:s,level:e.level}),e.push({type:"text",content:r,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=i[0].length,!0))))}],["htmltag",function(e,t){var n,a,i,r=e.pos;return!!e.options.html&&(i=e.posMax,!(60!==e.src.charCodeAt(r)||r+2>=i)&&(!(33!==(n=e.src.charCodeAt(r+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(a=e.src.slice(r).match(xe))&&(t||e.push({type:"htmltag",content:e.src.slice(r,r+a[0].length),level:e.level}),e.pos+=a[0].length,!0))))}],["entity",function(e,t){var n,a,i=e.pos,s=e.posMax;if(38!==e.src.charCodeAt(i))return!1;if(i+1<s)if(35===e.src.charCodeAt(i+1)){if(a=e.src.slice(i).match(ke))return t||(n="x"===a[1][0].toLowerCase()?parseInt(a[1].slice(1),16):parseInt(a[1],10),e.pending+=u(n)?p(n):p(65533)),e.pos+=a[0].length,!0}else if(a=e.src.slice(i).match(Ee)){var o=r(a[1]);if(a[1]!==o)return t||(e.pending+=o),e.pos+=a[0].length,!0}return t||(e.pending+="&"),e.pos++,!0}]];function $e(){this.ruler=new A;for(var e=0;e<Ce.length;e++)this.ruler.push(Ce[e][0],Ce[e][1]);this.validateLink=Ae}function Ae(e){var t=e.trim().toLowerCase();return-1===(t=m(t)).indexOf(":")||-1===["vbscript","javascript","file","data"].indexOf(t.split(":")[0])}$e.prototype.skipToken=function(e){var t,n,a=this.ruler.getRules(""),i=a.length,r=e.pos;if((n=e.cacheGet(r))>0)e.pos=n;else{for(t=0;t<i;t++)if(a[t](e,!0))return void e.cacheSet(r,e.pos);e.pos++,e.cacheSet(r,e.pos)}},$e.prototype.tokenize=function(e){for(var t,n,a=this.ruler.getRules(""),i=a.length,r=e.posMax;e.pos<r;){for(n=0;n<i&&!(t=a[n](e,!1));n++);if(t){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},$e.prototype.parse=function(e,t,n,a){var i=new S(e,this,t,n,a);this.tokenize(i)};var Se={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},full:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}}};function Fe(e,t,n){this.src=t,this.env=n,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function Le(e,t){"string"!=typeof e&&(t=e,e="default"),t&&null!=t.linkify&&console.warn("linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n"),this.inline=new $e,this.block=new ae,this.core=new U,this.renderer=new $,this.ruler=new A,this.options={},this.configure(Se[e]),this.set(t||{})}function Oe(e){return null==e}Le.prototype.set=function(e){l(this.options,e)},Le.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach((function(n){e.components[n].rules&&t[n].ruler.enable(e.components[n].rules,!0)}))},Le.prototype.use=function(e,t){return e(this,t),this},Le.prototype.parse=function(e,t){var n=new Fe(this,e,t);return this.core.process(n),n.tokens},Le.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Le.prototype.parseInline=function(e,t){var n=new Fe(this,e,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Le.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var Te={isNothing:Oe,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:Oe(e)?[]:[e]},repeat:function(e,t){var n,a="";for(n=0;n<t;n+=1)a+=e;return a},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var n,a,i,r;if(t)for(n=0,a=(r=Object.keys(t)).length;n<a;n+=1)e[i=r[n]]=t[i];return e}};function De(e,t){var n="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),a+" "+n):a}function je(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=De(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}je.prototype=Object.create(Error.prototype),je.prototype.constructor=je,je.prototype.toString=function(e){return this.name+": "+De(this,e)};var Ie=je;function Pe(e,t,n,a,i){var r="",s="",o=Math.floor(i/2)-1;return a-t>o&&(t=a-o+(r=" ... ").length),n-a>o&&(n=a+o-(s=" ...").length),{str:r+e.slice(t,n).replace(/\t/g,"→")+s,pos:a-t+r.length}}function Me(e,t){return Te.repeat(" ",t-e.length)+e}var Be=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n,a=/\r?\n|\r|\0/g,i=[0],r=[],s=-1;n=a.exec(e.buffer);)r.push(n.index),i.push(n.index+n[0].length),e.position<=n.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var o,l,c="",d=Math.min(e.line+t.linesAfter,r.length).toString().length,u=t.maxLength-(t.indent+d+3);for(o=1;o<=t.linesBefore&&!(s-o<0);o++)l=Pe(e.buffer,i[s-o],r[s-o],e.position-(i[s]-i[s-o]),u),c=Te.repeat(" ",t.indent)+Me((e.line-o+1).toString(),d)+" | "+l.str+"\n"+c;for(l=Pe(e.buffer,i[s],r[s],e.position,u),c+=Te.repeat(" ",t.indent)+Me((e.line+1).toString(),d)+" | "+l.str+"\n",c+=Te.repeat("-",t.indent+d+3+l.pos)+"^\n",o=1;o<=t.linesAfter&&!(s+o>=r.length);o++)l=Pe(e.buffer,i[s+o],r[s+o],e.position-(i[s]-i[s+o]),u),c+=Te.repeat(" ",t.indent)+Me((e.line+o+1).toString(),d)+" | "+l.str+"\n";return c.replace(/\n$/,"")},ze=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],He=["scalar","sequence","mapping"];var Re=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===ze.indexOf(t))throw new Ie('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(t.styleAliases||null),-1===He.indexOf(this.kind))throw new Ie('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function Ne(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,a){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=a)})),n[t]=e})),n}function Ve(e){return this.extend(e)}Ve.prototype.extend=function(e){var t=[],n=[];if(e instanceof Re)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new Ie("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof Re))throw new Ie("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new Ie("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new Ie("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof Re))throw new Ie("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var a=Object.create(Ve.prototype);return a.implicit=(this.implicit||[]).concat(t),a.explicit=(this.explicit||[]).concat(n),a.compiledImplicit=Ne(a,"implicit"),a.compiledExplicit=Ne(a,"explicit"),a.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function a(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(a);return n}(a.compiledImplicit,a.compiledExplicit),a};var _e=Ve,Ke=new Re("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),Ye=new Re("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),qe=new Re("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),Ue=new _e({explicit:[Ke,Ye,qe]});var Ge=new Re("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});var Qe=new Re("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function We(e){return 48<=e&&e<=55}function Ze(e){return 48<=e&&e<=57}var Je=new Re("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,a=e.length,i=0,r=!1;if(!a)return!1;if("-"!==(t=e[i])&&"+"!==t||(t=e[++i]),"0"===t){if(i+1===a)return!0;if("b"===(t=e[++i])){for(i++;i<a;i++)if("_"!==(t=e[i])){if("0"!==t&&"1"!==t)return!1;r=!0}return r&&"_"!==t}if("x"===t){for(i++;i<a;i++)if("_"!==(t=e[i])){if(!(48<=(n=e.charCodeAt(i))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;r=!0}return r&&"_"!==t}if("o"===t){for(i++;i<a;i++)if("_"!==(t=e[i])){if(!We(e.charCodeAt(i)))return!1;r=!0}return r&&"_"!==t}}if("_"===t)return!1;for(;i<a;i++)if("_"!==(t=e[i])){if(!Ze(e.charCodeAt(i)))return!1;r=!0}return!(!r||"_"===t)},construct:function(e){var t,n=e,a=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(a=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return a*parseInt(n.slice(2),2);if("x"===n[1])return a*parseInt(n.slice(2),16);if("o"===n[1])return a*parseInt(n.slice(2),8)}return a*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!Te.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Xe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var et=/^[-+]?[0-9]+e/;var tt=new Re("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!Xe.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||Te.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Te.isNegativeZero(e))return"-0.0";return n=e.toString(10),et.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),nt=Ue.extend({implicit:[Ge,Qe,Je,tt]}),at=nt,it=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),rt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var st=new Re("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==it.exec(e)||null!==rt.exec(e))},construct:function(e){var t,n,a,i,r,s,o,l,c=0,d=null;if(null===(t=it.exec(e))&&(t=rt.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],a=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,a,i));if(r=+t[4],s=+t[5],o=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(d=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(d=-d)),l=new Date(Date.UTC(n,a,i,r,s,o,c)),d&&l.setTime(l.getTime()-d),l},instanceOf:Date,represent:function(e){return e.toISOString()}});var ot=new Re("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var ct=new Re("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,a=0,i=e.length,r=lt;for(n=0;n<i;n++)if(!((t=r.indexOf(e.charAt(n)))>64)){if(t<0)return!1;a+=6}return a%8==0},construct:function(e){var t,n,a=e.replace(/[\r\n=]/g,""),i=a.length,r=lt,s=0,o=[];for(t=0;t<i;t++)t%4==0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(255&s)),s=s<<6|r.indexOf(a.charAt(t));return 0===(n=i%4*6)?(o.push(s>>16&255),o.push(s>>8&255),o.push(255&s)):18===n?(o.push(s>>10&255),o.push(s>>2&255)):12===n&&o.push(s>>4&255),new Uint8Array(o)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,a="",i=0,r=e.length,s=lt;for(t=0;t<r;t++)t%3==0&&t&&(a+=s[i>>18&63],a+=s[i>>12&63],a+=s[i>>6&63],a+=s[63&i]),i=(i<<8)+e[t];return 0===(n=r%3)?(a+=s[i>>18&63],a+=s[i>>12&63],a+=s[i>>6&63],a+=s[63&i]):2===n?(a+=s[i>>10&63],a+=s[i>>4&63],a+=s[i<<2&63],a+=s[64]):1===n&&(a+=s[i>>2&63],a+=s[i<<4&63],a+=s[64],a+=s[64]),a}}),dt=Object.prototype.hasOwnProperty,ut=Object.prototype.toString;var pt=new Re("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,a,i,r,s=[],o=e;for(t=0,n=o.length;t<n;t+=1){if(a=o[t],r=!1,"[object Object]"!==ut.call(a))return!1;for(i in a)if(dt.call(a,i)){if(r)return!1;r=!0}if(!r)return!1;if(-1!==s.indexOf(i))return!1;s.push(i)}return!0},construct:function(e){return null!==e?e:[]}}),ht=Object.prototype.toString;var ft=new Re("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,a,i,r,s=e;for(r=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(a=s[t],"[object Object]"!==ht.call(a))return!1;if(1!==(i=Object.keys(a)).length)return!1;r[t]=[i[0],a[i[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,a,i,r,s=e;for(r=new Array(s.length),t=0,n=s.length;t<n;t+=1)a=s[t],i=Object.keys(a),r[t]=[i[0],a[i[0]]];return r}}),gt=Object.prototype.hasOwnProperty;var mt=new Re("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(gt.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),vt=at.extend({implicit:[st,ot],explicit:[ct,pt,ft,mt]}),bt=Object.prototype.hasOwnProperty,yt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,wt=/[\x85\u2028\u2029]/,xt=/[,\[\]\{\}]/,Et=/^(?:!|!!|![a-z\-]+!)$/i,Ct=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function $t(e){return Object.prototype.toString.call(e)}function At(e){return 10===e||13===e}function St(e){return 9===e||32===e}function Ft(e){return 9===e||32===e||10===e||13===e}function Lt(e){return 44===e||91===e||93===e||123===e||125===e}function Ot(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Tt(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function Dt(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var jt=new Array(256),It=new Array(256),Pt=0;Pt<256;Pt++)jt[Pt]=Tt(Pt)?1:0,It[Pt]=Tt(Pt);function Mt(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||vt,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Bt(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=Be(n),new Ie(t,n)}function zt(e,t){throw Bt(e,t)}function Ht(e,t){e.onWarning&&e.onWarning.call(null,Bt(e,t))}var Nt={YAML:function(e,t,n){var a,i,r;null!==e.version&&zt(e,"duplication of %YAML directive"),1!==n.length&&zt(e,"YAML directive accepts exactly one argument"),null===(a=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&zt(e,"ill-formed argument of the YAML directive"),i=parseInt(a[1],10),r=parseInt(a[2],10),1!==i&&zt(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=r<2,1!==r&&2!==r&&Ht(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var a,i;2!==n.length&&zt(e,"TAG directive accepts exactly two arguments"),a=n[0],i=n[1],Et.test(a)||zt(e,"ill-formed tag handle (first argument) of the TAG directive"),bt.call(e.tagMap,a)&&zt(e,'there is a previously declared suffix for "'+a+'" tag handle'),Ct.test(i)||zt(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(t){zt(e,"tag prefix is malformed: "+i)}e.tagMap[a]=i}};function Vt(e,t,n,a){var i,r,s,o;if(t<n){if(o=e.input.slice(t,n),a)for(i=0,r=o.length;i<r;i+=1)9===(s=o.charCodeAt(i))||32<=s&&s<=1114111||zt(e,"expected valid JSON character");else yt.test(o)&&zt(e,"the stream contains non-printable characters");e.result+=o}}function _t(e,t,n,a){var i,r,s,o;for(Te.isObject(n)||zt(e,"cannot merge mappings; the provided source object is unacceptable"),s=0,o=(i=Object.keys(n)).length;s<o;s+=1)r=i[s],bt.call(t,r)||(t[r]=n[r],a[r]=!0)}function Kt(e,t,n,a,i,r,s,o,l){var c,d;if(Array.isArray(i))for(c=0,d=(i=Array.prototype.slice.call(i)).length;c<d;c+=1)Array.isArray(i[c])&&zt(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===$t(i[c])&&(i[c]="[object Object]");if("object"==typeof i&&"[object Object]"===$t(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===a)if(Array.isArray(r))for(c=0,d=r.length;c<d;c+=1)_t(e,t,r[c],n);else _t(e,t,r,n);else e.json||bt.call(n,i)||!bt.call(t,i)||(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,zt(e,"duplicated mapping key")),"__proto__"===i?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[i]=r,delete n[i];return t}function qt(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):zt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ut(e,t,n){for(var a=0,i=e.input.charCodeAt(e.position);0!==i;){for(;St(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!At(i))break;for(qt(e),i=e.input.charCodeAt(e.position),a++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==n&&0!==a&&e.lineIndent<n&&Ht(e,"deficient indentation"),a}function Gt(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!Ft(t)))}function Wt(e,t){1===t?e.result+=" ":t>1&&(e.result+=Te.repeat("\n",t-1))}function Zt(e,t){var n,a,i=e.tag,r=e.anchor,s=[],o=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),a=e.input.charCodeAt(e.position);0!==a&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,zt(e,"tab characters must not be used in indentation")),45===a)&&Ft(e.input.charCodeAt(e.position+1));)if(o=!0,e.position++,Ut(e,!0,-1)&&e.lineIndent<=t)s.push(null),a=e.input.charCodeAt(e.position);else if(n=e.line,en(e,t,3,!1,!0),s.push(e.result),Ut(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==a)zt(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!o&&(e.tag=i,e.anchor=r,e.kind="sequence",e.result=s,!0)}function Jt(e){var t,n,a,i,r=!1,s=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&zt(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(r=!0,i=e.input.charCodeAt(++e.position)):33===i?(s=!0,n="!!",i=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(a=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):zt(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!Ft(i);)33===i&&(s?zt(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),Et.test(n)||zt(e,"named tag handle cannot contain such characters"),s=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),xt.test(a)&&zt(e,"tag suffix cannot contain flow indicator characters")}a&&!Ct.test(a)&&zt(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch(t){zt(e,"tag name is malformed: "+a)}return r?e.tag=a:bt.call(e.tagMap,n)?e.tag=e.tagMap[n]+a:"!"===n?e.tag="!"+a:"!!"===n?e.tag="tag:yaml.org,2002:"+a:zt(e,'undeclared tag handle "'+n+'"'),!0}function Xt(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&zt(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Ft(n)&&!Lt(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&zt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function en(e,t,n,a,i){var r,s,o,l,c,d,u,p,h,f=1,g=!1,m=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,r=s=o=4===n||3===n,a&&Ut(e,!0,-1)&&(g=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),1===f)for(;Jt(e)||Xt(e);)Ut(e,!0,-1)?(g=!0,o=r,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):o=!1;if(o&&(o=g||i),1!==f&&4!==n||(p=1===n||2===n?t:t+1,h=e.position-e.lineStart,1===f?o&&(Zt(e,h)||function(e,t,n){var a,i,r,s,o,l,c,d=e.tag,u=e.anchor,p={},h=Object.create(null),f=null,g=null,m=null,v=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=p),c=e.input.charCodeAt(e.position);0!==c;){if(v||-1===e.firstTabInLine||(e.position=e.firstTabInLine,zt(e,"tab characters must not be used in indentation")),a=e.input.charCodeAt(e.position+1),r=e.line,63!==c&&58!==c||!Ft(a)){if(s=e.line,o=e.lineStart,l=e.position,!en(e,n,2,!1,!0))break;if(e.line===r){for(c=e.input.charCodeAt(e.position);St(c);)c=e.input.charCodeAt(++e.position);if(58===c)Ft(c=e.input.charCodeAt(++e.position))||zt(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(Kt(e,p,h,f,g,null,s,o,l),f=g=m=null),b=!0,v=!1,i=!1,f=e.tag,g=e.result;else{if(!b)return e.tag=d,e.anchor=u,!0;zt(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=d,e.anchor=u,!0;zt(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(v&&(Kt(e,p,h,f,g,null,s,o,l),f=g=m=null),b=!0,v=!0,i=!0):v?(v=!1,i=!0):zt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=a;if((e.line===r||e.lineIndent>t)&&(v&&(s=e.line,o=e.lineStart,l=e.position),en(e,t,4,!0,i)&&(v?g=e.result:m=e.result),v||(Kt(e,p,h,f,g,m,s,o,l),f=g=m=null),Ut(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===r||e.lineIndent>t)&&0!==c)zt(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&Kt(e,p,h,f,g,null,s,o,l),b&&(e.tag=d,e.anchor=u,e.kind="mapping",e.result=p),b}(e,h,p))||function(e,t){var n,a,i,r,s,o,l,c,d,u,p,h,f=!0,g=e.tag,m=e.anchor,v=Object.create(null);if(91===(h=e.input.charCodeAt(e.position)))s=93,c=!1,r=[];else{if(123!==h)return!1;s=125,c=!0,r={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=r),h=e.input.charCodeAt(++e.position);0!==h;){if(Ut(e,!0,t),(h=e.input.charCodeAt(e.position))===s)return e.position++,e.tag=g,e.anchor=m,e.kind=c?"mapping":"sequence",e.result=r,!0;f?44===h&&zt(e,"expected the node content, but found ','"):zt(e,"missed comma between flow collection entries"),p=null,o=l=!1,63===h&&Ft(e.input.charCodeAt(e.position+1))&&(o=l=!0,e.position++,Ut(e,!0,t)),n=e.line,a=e.lineStart,i=e.position,en(e,t,1,!1,!0),u=e.tag,d=e.result,Ut(e,!0,t),h=e.input.charCodeAt(e.position),!l&&e.line!==n||58!==h||(o=!0,h=e.input.charCodeAt(++e.position),Ut(e,!0,t),en(e,t,1,!1,!0),p=e.result),c?Kt(e,r,v,u,d,p,n,a,i):o?r.push(Kt(e,null,v,u,d,p,n,a,i)):r.push(d),Ut(e,!0,t),44===(h=e.input.charCodeAt(e.position))?(f=!0,h=e.input.charCodeAt(++e.position)):f=!1}zt(e,"unexpected end of the stream within a flow collection")}(e,p)?m=!0:(s&&function(e,t){var n,a,i,r,s,o=1,l=!1,c=!1,d=t,u=0,p=!1;if(124===(r=e.input.charCodeAt(e.position)))a=!1;else{if(62!==r)return!1;a=!0}for(e.kind="scalar",e.result="";0!==r;)if(43===(r=e.input.charCodeAt(++e.position))||45===r)1===o?o=43===r?3:2:zt(e,"repeat of a chomping mode identifier");else{if(!((i=48<=(s=r)&&s<=57?s-48:-1)>=0))break;0===i?zt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?zt(e,"repeat of an indentation width identifier"):(d=t+i-1,c=!0)}if(St(r)){do{r=e.input.charCodeAt(++e.position)}while(St(r));if(35===r)do{r=e.input.charCodeAt(++e.position)}while(!At(r)&&0!==r)}for(;0!==r;){for(qt(e),e.lineIndent=0,r=e.input.charCodeAt(e.position);(!c||e.lineIndent<d)&&32===r;)e.lineIndent++,r=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>d&&(d=e.lineIndent),At(r))u++;else{if(e.lineIndent<d){3===o?e.result+=Te.repeat("\n",l?1+u:u):1===o&&l&&(e.result+="\n");break}for(a?St(r)?(p=!0,e.result+=Te.repeat("\n",l?1+u:u)):p?(p=!1,e.result+=Te.repeat("\n",u+1)):0===u?l&&(e.result+=" "):e.result+=Te.repeat("\n",u):e.result+=Te.repeat("\n",l?1+u:u),l=!0,c=!0,u=0,n=e.position;!At(r)&&0!==r;)r=e.input.charCodeAt(++e.position);Vt(e,n,e.position,!1)}}return!0}(e,p)||function(e,t){var n,a,i;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,a=i=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(Vt(e,a,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;a=e.position,e.position++,i=e.position}else At(n)?(Vt(e,a,i,!0),Wt(e,Ut(e,!1,t)),a=i=e.position):e.position===e.lineStart&&Gt(e)?zt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);zt(e,"unexpected end of the stream within a single quoted scalar")}(e,p)||function(e,t){var n,a,i,r,s,o,l;if(34!==(o=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;0!==(o=e.input.charCodeAt(e.position));){if(34===o)return Vt(e,n,e.position,!0),e.position++,!0;if(92===o){if(Vt(e,n,e.position,!0),At(o=e.input.charCodeAt(++e.position)))Ut(e,!1,t);else if(o<256&&jt[o])e.result+=It[o],e.position++;else if((s=120===(l=o)?2:117===l?4:85===l?8:0)>0){for(i=s,r=0;i>0;i--)(s=Ot(o=e.input.charCodeAt(++e.position)))>=0?r=(r<<4)+s:zt(e,"expected hexadecimal character");e.result+=Dt(r),e.position++}else zt(e,"unknown escape sequence");n=a=e.position}else At(o)?(Vt(e,n,a,!0),Wt(e,Ut(e,!1,t)),n=a=e.position):e.position===e.lineStart&&Gt(e)?zt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,a=e.position)}zt(e,"unexpected end of the stream within a double quoted scalar")}(e,p)?m=!0:!function(e){var t,n,a;if(42!==(a=e.input.charCodeAt(e.position)))return!1;for(a=e.input.charCodeAt(++e.position),t=e.position;0!==a&&!Ft(a)&&!Lt(a);)a=e.input.charCodeAt(++e.position);return e.position===t&&zt(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),bt.call(e.anchorMap,n)||zt(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Ut(e,!0,-1),!0}(e)?function(e,t,n){var a,i,r,s,o,l,c,d,u=e.kind,p=e.result;if(Ft(d=e.input.charCodeAt(e.position))||Lt(d)||35===d||38===d||42===d||33===d||124===d||62===d||39===d||34===d||37===d||64===d||96===d)return!1;if((63===d||45===d)&&(Ft(a=e.input.charCodeAt(e.position+1))||n&&Lt(a)))return!1;for(e.kind="scalar",e.result="",i=r=e.position,s=!1;0!==d;){if(58===d){if(Ft(a=e.input.charCodeAt(e.position+1))||n&&Lt(a))break}else if(35===d){if(Ft(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&Gt(e)||n&&Lt(d))break;if(At(d)){if(o=e.line,l=e.lineStart,c=e.lineIndent,Ut(e,!1,-1),e.lineIndent>=t){s=!0,d=e.input.charCodeAt(e.position);continue}e.position=r,e.line=o,e.lineStart=l,e.lineIndent=c;break}}s&&(Vt(e,i,r,!1),Wt(e,e.line-o),i=r=e.position,s=!1),St(d)||(r=e.position+1),d=e.input.charCodeAt(++e.position)}return Vt(e,i,r,!1),!!e.result||(e.kind=u,e.result=p,!1)}(e,p,1===n)&&(m=!0,null===e.tag&&(e.tag="?")):(m=!0,null===e.tag&&null===e.anchor||zt(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(m=o&&Zt(e,h))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&zt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,c=e.implicitTypes.length;l<c;l+=1)if((u=e.implicitTypes[l]).resolve(e.result)){e.result=u.construct(e.result),e.tag=u.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(bt.call(e.typeMap[e.kind||"fallback"],e.tag))u=e.typeMap[e.kind||"fallback"][e.tag];else for(u=null,l=0,c=(d=e.typeMap.multi[e.kind||"fallback"]).length;l<c;l+=1)if(e.tag.slice(0,d[l].tag.length)===d[l].tag){u=d[l];break}u||zt(e,"unknown tag !<"+e.tag+">"),null!==e.result&&u.kind!==e.kind&&zt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+u.kind+'", not "'+e.kind+'"'),u.resolve(e.result,e.tag)?(e.result=u.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):zt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||m}function tn(e){var t,n,a,i,r=e.position,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(i=e.input.charCodeAt(e.position))&&(Ut(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(s=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!Ft(i);)i=e.input.charCodeAt(++e.position);for(a=[],(n=e.input.slice(t,e.position)).length<1&&zt(e,"directive name must not be less than one character in length");0!==i;){for(;St(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!At(i));break}if(At(i))break;for(t=e.position;0!==i&&!Ft(i);)i=e.input.charCodeAt(++e.position);a.push(e.input.slice(t,e.position))}0!==i&&qt(e),bt.call(Nt,n)?Nt[n](e,n,a):Ht(e,'unknown document directive "'+n+'"')}Ut(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,Ut(e,!0,-1)):s&&zt(e,"directives end mark is expected"),en(e,e.lineIndent-1,4,!1,!0),Ut(e,!0,-1),e.checkLineBreaks&&wt.test(e.input.slice(r,e.position))&&Ht(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Gt(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,Ut(e,!0,-1)):e.position<e.length-1&&zt(e,"end of the stream or a document separator is expected")}function nn(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new Mt(e,t),a=e.indexOf("\0");for(-1!==a&&(n.position=a,zt(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)tn(n);return n.documents}var an={loadAll:function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var a=nn(e,n);if("function"!=typeof t)return a;for(var i=0,r=a.length;i<r;i+=1)t(a[i])},load:function(e,t){var n=nn(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new Ie("expected a single document in the stream, but found more")}}};Object.prototype.toString,Object.prototype.hasOwnProperty;function rn(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var sn=an.load;rn("safeLoad","load"),rn("safeLoadAll","loadAll"),rn("safeDump","dump");var on=n(7254);n(8848),n(7319),n(1113),n(3157),n(5723),n(2514),n(5903),n(2769),n(6976),n(4312),n(9587),n(9562),n(4604),n(83),n(3554),n(7022),n(5545);var ln=n(945),cn=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},dn=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const un=["css","sass","scss","groovy","typescript","javascript","jsx","tsx","java","html","xml","php","bash","json","yaml","markdown"];function pn(e){const t=e.target,n=t.parentNode.querySelector("ul");"yaml-hide"===n.className?(n.className="",t.innerText="-"):(n.className="yaml-hide",t.innerText="+")}function hn(e,t){const n=e.target;n.parentNode.querySelectorAll("button").forEach((e=>e.className="")),n.className="active";const a=n.parentNode.nextElementSibling,i=n.parentNode.parentNode.nextElementSibling;switch(t){case"json":a.className="yaml-preview yaml-show",i.className="language-yaml yaml-hide";break;case"yaml":a.className="yaml-preview yaml-hide",i.className="language-yaml yaml-show"}}(()=>{let e,t,n,a,r,s,o=[(0,i.uA)({selector:"pg-markdown",style:ln.A,template:'<div part="content"></div>'})],l=[],c=HTMLElement,d=[],u=[],p=[],h=[],f=[],g=[],m=[],v=[];(class extends c{static{t=this}static{const b="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;n=[(0,i.kv)()],a=[(0,i.kv)()],r=[(0,i.kv)()],s=[(0,i.eS)()],cn(null,null,n,{kind:"field",name:"file",static:!1,private:!1,access:{has:e=>"file"in e,get:e=>e.file,set:(e,t)=>{e.file=t}},metadata:b},d,u),cn(null,null,a,{kind:"field",name:"text",static:!1,private:!1,access:{has:e=>"text"in e,get:e=>e.text,set:(e,t)=>{e.text=t}},metadata:b},p,h),cn(null,null,r,{kind:"field",name:"replace",static:!1,private:!1,access:{has:e=>"replace"in e,get:e=>e.replace,set:(e,t)=>{e.replace=t}},metadata:b},f,g),cn(null,null,s,{kind:"field",name:"$content",static:!1,private:!1,access:{has:e=>"$content"in e,get:e=>e.$content,set:(e,t)=>{e.$content=t}},metadata:b},m,v),cn(null,e={value:t},o,{kind:"class",name:t.name,metadata:b},null,l),t=e.value,b&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:b}),dn(t,l)}file=dn(this,d,"");text=(dn(this,u),dn(this,p,""));replace=(dn(this,h),dn(this,f,[]));$content=(dn(this,g),dn(this,m,void 0));modifiers=(dn(this,v),[e=>{const t=e.querySelectorAll('code[class*="language-"]');for(let e=0;e<t.length;e++){const n=t[e],a=n.parentNode;a.classList.add(n.classList.value);const i=n.classList.value.replace("language-","");un.includes(i)?n.innerHTML=Prism.highlight(n.innerText,Prism.languages[i],i):""!==i&&"text"!==i&&console.error(`Markdown contains a codeblock with "${i}" which is not loaded.`),a.addEventListener("scroll",(()=>{0===a.scrollLeft?a.style.removeProperty("--pg-markdown-language-display"):a.style.setProperty("--pg-markdown-language-display","none")}))}},e=>{const t=e.querySelectorAll('[data-id="yamlToggle"]');for(let e=0;e<t.length;e++)t[e].addEventListener("click",(e=>{pn(e)}));const n=e.querySelectorAll('[data-id="yamlTabJson"]');for(let e=0;e<n.length;e++)n[e].addEventListener("click",(e=>{hn(e,"json")})),n[e].click();const a=e.querySelectorAll('[data-id="yamlTabYaml"]');for(let e=0;e<a.length;e++)a[e].addEventListener("click",(e=>{hn(e,"yaml")}))},e=>{const t=e.querySelectorAll(".tabs");for(let e=0;e<t.length;e++){const n=t[e],a=[],i=[],r=n.querySelectorAll(".tab-title a"),s=n.querySelectorAll(".tab-content");for(let e=0;e<r.length;e++)a.push(r[e]),i.push(s[e]);a.forEach(((e,t)=>{e.addEventListener("click",(e=>{a.forEach(((e,n)=>{e.parentNode.classList.toggle("active",t===n)})),i.forEach(((e,n)=>{e.classList.toggle("tab-hide",t!==n)})),e.preventDefault()}))}))}}]);modify(e){this.modifiers.push(e)}async render(e){if(e.file&&this.file&&(this.text=await on.LV.asset(this.file)),e.text){const e=new Le({html:!0}),t=await this.loadContent(this.text);let n=e.render(t);this.replace.forEach((e=>{n=n.replace(e.find,e.replace)})),this.$content.innerHTML=n,this.modifiers.forEach((e=>e(this.$content))),this.replace.forEach((e=>{e.render&&e.render(this.$content)})),this.dispatchEvent(new CustomEvent("load",{detail:{$content:this.$content}}))}}async loadFile(e){let t=await on.LV.asset(e);return this.loadContent(t)}async loadContent(e){return e=await this.processImports(e),e=(e=await this.processImports(e)).replace(/\r/g,""),e=await this.processRefs(e),e=await this.processRefs(e),e=(e=await this.processRefs(e)).replace(/```yaml\r?\n([\s\S]*?)\r?\n```/g,((e,t)=>this.processYaml(e,t))),e=this.tabs(e)}tabs(e){var t="";return e.replace(/tabs ?([^\n]+)?\n([\s\S]+?)\n\/tabs/g,((e,n,a)=>{var i=0;t=n?`<li class="tab-label">${n}</li>`:"";var r=a.replace(/tab ([^\n]+)\n([\s\S]+?)\n\/tab/g,((e,n,a)=>{n=n.replace(/^(icon:\w[\w-]*)? ? (.+?) ?(icon:\w.*)?$/,((e,t,n,a)=>`${t||""}<span>${n||""}</span>${a||""}`)),t+=[0===i?'<li class="tab-title active">':'<li class="tab-title">','<a href="#" role="tab" aria-selected="true">',n,"</a>","</li>"].join("\n");const r=[0===i?'<div class="tab-content">':'<div class="tab-content tab-hide">',`\n${a.trim()}\n`,"</div>"].join("\n");return i++,r}));return['<div class="tabs">','<ul class="tabset">',t,"</ul>",r,"</div>"].join("\n")}))}async processImports(e){let t=[];e.replace(/import:(.*)/g,((e,n)=>(t.push(n),e)));let n=await Promise.all(t.map((async(e,t)=>await on.LV.asset(e))));return t.forEach(((t,a)=>{e=e.replace(`import:${t}`,n[a])})),e}async processRefs(e){let t=[],n=0;e=e.replace(/([ ]*)\$ref: '#([^']+)'/g,((e,a,i)=>(n++,t.push({unique:n,spaces:a,file:i}),console.log(`${e}-${n}`),`${e}-${n}`)));let a=await Promise.all(t.map((async e=>await on.LV.asset(`/content/${e.file}.yaml`))));return t.forEach(((t,n)=>{const i=a[n].split(/\r?\n/).map(((e,n)=>`${0===n?"":t.spaces}${e}`)).join("\n");e=e.replace(`$ref: '#${t.file}'-${t.unique}`,i)})),e}processYaml(e,t){let n="";try{const n=sn(t);if(n.type){const t=[];return t.push('<div class="yaml">'),t.push('<div class="yaml-toolbar">'),t.push('<button data-id="yamlTabJson" class="yaml-click">JSON Preview</button>'),t.push('<button data-id="yamlTabYaml" class="">YAML</button>'),t.push("</div>"),t.push('<div class="yaml-preview">'),t.push("<ul>"),this.processYamlRecursive(t,n),t.push("</ul>"),t.push("</div>"),t.push("</div>"),t.push("\r\n\r\n"),t.push(e),t.join("")}}catch(e){n=['<div class="alert alert-danger">',"<strong>YAML Error:</strong><br/>",e.message,"</div>",""].join("")+"\r\n\r\n"}return`${n}${e}`}processYamlRecursive(e,t,n=""){if(t.$ref)e.push('<li><code class="yaml-prop">'),e.push(`<code class="yaml-key">${n}</code>: <code class="yaml-error">$ref: '${t.$ref}'</code> `),e.push('<code class="yaml-example">Too many nested levels</code>'),e.push("</code></li>");else if(t.type)switch(t.type){case"object":const a=""===n?"":`<code class="yaml-key">${n}</code>: `;e.push(`<li><button data-id="yamlToggle">+</button><code>${a}{</code><ul class="d-none">`);for(let n of Object.keys(t.properties))this.processYamlRecursive(e,t.properties[n],n);e.push('</ul><code class="yaml-end">}</code></li>');break;case"array":const i=""===n?"":`<code class="yaml-key">${n}</code>: `;e.push(`<li><button data-id="yamlToggle">+</button><code>${i}[</code><ul class="d-none">`),this.processYamlRecursive(e,t.items),e.push('</ul><code class="yaml-end">]</code></li>');break;case"string":case"integer":case"number":case"boolean":e.push('<li><code class="yaml-prop">'),e.push(`<code class="yaml-key">${n}</code>`),t.auth&&e.push(` <svg width="24" height="24" viewBox="0 0 24 24" class="yaml-auth" title="${t.auth} Access Required"><path d="M12,17C13.1,17 14,16.1 14,15C14,13.89 13.1,13 12,13C10.9,13 10,13.9 10,15C10,16.1 10.9,17 12,17M18,8C19.1,8 20,8.9 20,10V20C20,21.1 19.1,22 18,22H6C4.9,22 4,21.1 4,20V10C4,8.89 4.9,8 6,8H7V6C7,3.24 9.24,1 12,1C14.76,1 17,3.24 17,6V8H18M12,3C10.34,3 9,4.34 9,6V8H15V6C15,4.34 13.66,3 12,3Z" /></svg>`),e.push(": "),e.push(`<code class="yaml-type">${t.type}</code>`),t.example&&e.push(` <code class="yaml-example">${t.example}</code>`),e.push("</code></li>");break;default:e.push(`<li><code class="yaml-prop"><code class="yaml-key">${n}</code>: <code class="yaml-error">Error: Invalid type "${t.type}".</code></code></li>`)}else e.push(`<li><code class="yaml-prop"><code class="yaml-key">${n}</code>: <code class="yaml-error">Error: No type found.</code></code></li>`)}})})()},8519:(e,t,n)=>{"use strict";var a=n(3822),i=n(8970);var r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o,l=[(0,a.uA)({selector:"x-pg-menu-basic",template:'<div class="example"> <pg-menu part="menu"></pg-menu> <div> Result: <code part="result"></code> </div> </div>'})],c=[],d=HTMLElement,u=[],p=[],h=[],f=[];(class extends d{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],o=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"$menu",static:!1,private:!1,access:{has:e=>"$menu"in e,get:e=>e.$menu,set:(e,t)=>{e.$menu=t}},metadata:i},u,p),r(null,null,o,{kind:"field",name:"$result",static:!1,private:!1,access:{has:e=>"$result"in e,get:e=>e.$result,set:(e,t)=>{e.$result=t}},metadata:i},h,f),r(null,e={value:t},l,{kind:"class",name:t.name,metadata:i},null,c),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,c)}$menu=s(this,u,void 0);$result=(s(this,p),s(this,h,void 0));connectedCallback(){this.$menu.items=[{label:"Item 1",value:"item1"},{label:"Item 2",value:"item2"},{type:i.A},{label:"Item 3",value:"item3"}],this.$menu.addEventListener("select",this.#H.bind(this))}previousItem=(s(this,f),null);#H(e){const{item:t}=e.detail;null!==this.previousItem&&(this.previousItem.checked=!1),t.checked=!0,this.previousItem=t,this.$result.textContent=JSON.stringify(e.detail)}})})()},8564:(e,t,n)=>{"use strict";var a=n(3822);const i=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const r="object"==typeof global&&global&&global.Object===Object&&global;var s="object"==typeof self&&self&&self.Object===Object&&self;const o=r||s||Function("return this")();const l=function(){return o.Date.now()};var c=/\s/;const d=function(e){for(var t=e.length;t--&&c.test(e.charAt(t)););return t};var u=/^\s+/;const p=function(e){return e?e.slice(0,d(e)+1).replace(u,""):e};const h=o.Symbol;var f=Object.prototype,g=f.hasOwnProperty,m=f.toString,v=h?h.toStringTag:void 0;const b=function(e){var t=g.call(e,v),n=e[v];try{e[v]=void 0;var a=!0}catch(e){}var i=m.call(e);return a&&(t?e[v]=n:delete e[v]),i};var y=Object.prototype.toString;const w=function(e){return y.call(e)};var x=h?h.toStringTag:void 0;const k=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":x&&x in Object(e)?b(e):w(e)};const E=function(e){return null!=e&&"object"==typeof e};const C=function(e){return"symbol"==typeof e||E(e)&&"[object Symbol]"==k(e)};var $=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,S=/^0o[0-7]+$/i,F=parseInt;const L=function(e){if("number"==typeof e)return e;if(C(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=p(e);var n=A.test(e);return n||S.test(e)?F(e.slice(2),n?2:8):$.test(e)?NaN:+e};var O=Math.max,T=Math.min;const D=function(e,t,n){var a,r,s,o,c,d,u=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=a,i=r;return a=r=void 0,u=t,o=e.apply(i,n)}function m(e){var n=e-d;return void 0===d||n>=t||n<0||h&&e-u>=s}function v(){var e=l();if(m(e))return b(e);c=setTimeout(v,function(e){var n=t-(e-d);return h?T(n,s-(e-u)):n}(e))}function b(e){return c=void 0,f&&a?g(e):(a=r=void 0,o)}function y(){var e=l(),n=m(e);if(a=arguments,r=this,d=e,n){if(void 0===c)return function(e){return u=e,c=setTimeout(v,t),p?g(e):o}(d);if(h)return clearTimeout(c),c=setTimeout(v,t),g(d)}return void 0===c&&(c=setTimeout(v,t)),o}return t=L(t)||0,i(n)&&(p=!!n.leading,s=(h="maxWait"in n)?O(L(n.maxWait)||0,t):s,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==c&&clearTimeout(c),u=0,a=d=r=c=void 0},y.flush=function(){return void 0===c?o:b(l())},y};const j=function(e,t,n){var a=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(a="leading"in n?!!n.leading:a,r="trailing"in n?!!n.trailing:r),D(e,t,{leading:a,maxWait:t,trailing:r})};var I=n(7713),P=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},M=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,i,r=[(0,a.uA)({selector:"pg-scroll",style:I.A,template:'<div part="scroll"> <slot></slot> </div>'})],s=[],o=HTMLElement,l=[],c=[],d=[],u=[];(class extends o{static{t=this}static{const p="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],i=[(0,a.eS)()],P(null,null,n,{kind:"field",name:"height",static:!1,private:!1,access:{has:e=>"height"in e,get:e=>e.height,set:(e,t)=>{e.height=t}},metadata:p},l,c),P(null,null,i,{kind:"field",name:"$scroll",static:!1,private:!1,access:{has:e=>"$scroll"in e,get:e=>e.$scroll,set:(e,t)=>{e.$scroll=t}},metadata:p},d,u),P(null,e={value:t},r,{kind:"class",name:t.name,metadata:p},null,s),t=e.value,p&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:p}),M(t,s)}height=M(this,l,0);$scroll=(M(this,c),M(this,d,void 0));scrollElement=M(this,u);currentHeight=-1;columns=10;size=44;visible=!1;y=-1;width=0;resizeObserver=new ResizeObserver(j((e=>{const{width:t}=e[0].contentRect;this.columns=Math.floor(t/(this.size+20)),this.y=-1,this.width=t,this.calculateScroll()}),100));connectedCallback(){this.resizeObserver.observe(this.$scroll)}getInnerHeight(){let e=this.parentElement;for(;e;){if("auto"===e.style.overflow)return e.getBoundingClientRect().height;e=e.parentElement}return window.innerHeight}get isWindow(){return this.scrollElement===window}getView(){const e=this.getInnerHeight(),t=this.getBoundingClientRect(),{y:n,height:a}=this.isWindow?{y:t.top,height:t.height}:{y:t.top-this.scrollElement.getBoundingClientRect().top,height:t.height},i=n<0?-1*n:0,r=a-i-e<0?a-e<0?0:a-e:i,s=a<e?a:n+a-e>0?e:n+a-e;return{visible:n<e&&a+n>0||!this.isWindow,y:r,height:s<0?e:s,atEnd:s<0}}calculateScroll(){const{visible:e,y:t,height:n}=this.getView();e&&(this.$scroll.style.transform=`translateY(${t}px)`,this.$scroll.style.height=`${n}px`),this.visible!==e&&(this.visible=e,this.visible?this.enterView():this.leaveView()),this.visible&&this.y!==t&&(this.dispatchEvent(new CustomEvent("calculate",{detail:{offsetY:t,viewWidth:this.width,viewHeight:n,height:this.height}})),this.y=t)}enterView(){this.dispatchEvent(new CustomEvent("enter"))}leaveView(){this.dispatchEvent(new CustomEvent("leave"))}getParentElement(){let e=this.parentElement;for(;e;){if("auto"===e.style.overflow)return e;e=e.parentElement}return window}updateHeight(){this.scrollElement=this.getParentElement(),this.scrollElement.addEventListener("scroll",j((()=>{this.calculateScroll()}),100)),this.style.height=`${this.currentHeight}px`,this.y=-1,this.calculateScroll()}render(e){console.log("changes",e);const t=parseInt(`${this.height}`,10);console.log("set",this.height),this.currentHeight!==t&&(this.currentHeight=t,this.updateHeight())}})})()},8689:(e,t,n)=>{"use strict";var a=n(3822);var i=n(9537),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o,l,c,d=[(0,a.uA)({selector:"pg-header",style:i.A,template:'<header> <a href="/"> <slot name="logo"> <svg viewBox="0 0 24 24"> <path part="path" fill="currentColor" d=""></path> </svg> </slot> <span part="name"></span> </a> <div> <slot name="nav"></slot> <slot name="search"></slot> <slot name="menu"></slot> </div> </header>'})],u=[],p=HTMLElement,h=[],f=[],g=[],m=[],v=[],b=[],y=[],w=[];(class extends p{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],o=[(0,a.kv)()],l=[(0,a.eS)()],c=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"logo",static:!1,private:!1,access:{has:e=>"logo"in e,get:e=>e.logo,set:(e,t)=>{e.logo=t}},metadata:i},h,f),r(null,null,o,{kind:"field",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:i},g,m),r(null,null,l,{kind:"field",name:"$path",static:!1,private:!1,access:{has:e=>"$path"in e,get:e=>e.$path,set:(e,t)=>{e.$path=t}},metadata:i},v,b),r(null,null,c,{kind:"field",name:"$name",static:!1,private:!1,access:{has:e=>"$name"in e,get:e=>e.$name,set:(e,t)=>{e.$name=t}},metadata:i},y,w),r(null,e={value:t},d,{kind:"class",name:t.name,metadata:i},null,u),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,u)}logo=s(this,h,"M0 0h24v24H0V0zm2 2v20h20V2H2z");name=(s(this,f),s(this,g,"Default"));$path=(s(this,m),s(this,v,void 0));$name=(s(this,b),s(this,y,void 0));render(e){e.logo&&this.$path.setAttribute("d",this.logo),e.name&&(this.$name.innerText=this.name)}constructor(){super(...arguments),s(this,w)}})})()},8784:(e,t,n)=>{"use strict";var a=n(3822),i=n(5538),r=n(8970),s=n(6222);var o=n(4282),l=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},c=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const d="M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z";(()=>{let e,t,n,u,p,h=[(0,a.uA)({selector:"x-pg-overlay-context-menu-basic",template:'<div class="example"> <div part="area" tabindex="0"> Right Click or Context Menu Key </div> <p>Result: <code part="result"></code></p><p></p> <p>input: <code part="input"></code></p><p></p> </div>',style:o.A})],f=[],g=HTMLElement,m=[],v=[],b=[],y=[],w=[],x=[];(class extends g{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(g[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],u=[(0,a.eS)()],p=[(0,a.eS)()],l(null,null,n,{kind:"field",name:"$area",static:!1,private:!1,access:{has:e=>"$area"in e,get:e=>e.$area,set:(e,t)=>{e.$area=t}},metadata:i},m,v),l(null,null,u,{kind:"field",name:"$result",static:!1,private:!1,access:{has:e=>"$result"in e,get:e=>e.$result,set:(e,t)=>{e.$result=t}},metadata:i},b,y),l(null,null,p,{kind:"field",name:"$input",static:!1,private:!1,access:{has:e=>"$input"in e,get:e=>e.$input,set:(e,t)=>{e.$input=t}},metadata:i},w,x),l(null,e={value:t},h,{kind:"class",name:t.name,metadata:i},null,f),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),c(t,f)}$area=c(this,m,void 0);$result=(c(this,v),c(this,b,void 0));$input=(c(this,y),c(this,w,void 0));connectedCallback(){this.$area.addEventListener("contextmenu",this.#ue.bind(this))}#qe=(c(this,x),null);async#ue(e){console.log("context"),e.preventDefault();const t=[{label:"Add File",value:"item1",icon:"M13,9V3.5L18.5,9M6,2C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6Z",type:i.A},{label:"Add Folder",value:"item2",icon:"M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",type:i.A},{type:r.A},{label:"Text Alignment",value:"item3",icon:d,type:i.A,items:[{label:"Left",value:"left",icon:d,type:i.A,checked:!0},{label:"Center",value:"center",icon:"M3,3H21V5H3V3M7,7H17V9H7V7M3,11H21V13H3V11M7,15H17V17H7V15M3,19H21V21H3V19Z",type:i.A,checked:!1},{label:"Right",value:"right",icon:"M3,3H21V5H3V3M9,7H21V9H9V7M3,11H21V13H3V11M9,15H21V17H9V15M3,19H21V21H3V19Z",type:i.A,checked:!1}]}],n=await s.A.open({source:this.$area,x:e.clientX,y:e.clientY,value:this.#qe,items:t});void 0!==n&&(this.#qe=n),this.$result.textContent=JSON.stringify(n)}})})()},8791:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,"[part~=container] {\n display: inline-flex;\n flex-direction: column;\n align-items: flex-end;\n position: fixed;\n top: 1rem;\n right: 1rem;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},8848:(e,t,n)=>{var a=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,a={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof r?new r(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var a,r;switch(n=n||{},i.util.type(t)){case"Object":if(r=i.util.objId(t),n[r])return n[r];for(var s in a={},n[r]=a,t)t.hasOwnProperty(s)&&(a[s]=e(t[s],n));return a;case"Array":return r=i.util.objId(t),n[r]?n[r]:(a=[],n[r]=a,t.forEach((function(t,i){a[i]=e(t,n)})),a);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(a){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(a.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var a="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(a))return!1;e=e.parentElement}return!!n}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var r=(a=a||i.languages)[e],s={};for(var o in r)if(r.hasOwnProperty(o)){if(o==t)for(var l in n)n.hasOwnProperty(l)&&(s[l]=n[l]);n.hasOwnProperty(o)||(s[o]=r[o])}var c=a[e];return a[e]=s,i.languages.DFS(i.languages,(function(t,n){n===c&&t!=e&&(this[t]=s)})),s},DFS:function e(t,n,a,r){r=r||{};var s=i.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],a||o);var l=t[o],c=i.util.type(l);"Object"!==c||r[s(l)]?"Array"!==c||r[s(l)]||(r[s(l)]=!0,e(l,n,o,r)):(r[s(l)]=!0,e(l,n,null,r))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var a={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",a),a.elements=Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)),i.hooks.run("before-all-elements-highlight",a);for(var r,s=0;r=a.elements[s++];)i.highlightElement(r,!0===t,a.callback)},highlightElement:function(t,n,a){var r=i.util.getLanguage(t),s=i.languages[r];i.util.setLanguage(t,r);var o=t.parentElement;o&&"pre"===o.nodeName.toLowerCase()&&i.util.setLanguage(o,r);var l={element:t,language:r,grammar:s,code:t.textContent};function c(e){l.highlightedCode=e,i.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,i.hooks.run("after-highlight",l),i.hooks.run("complete",l),a&&a.call(l.element)}if(i.hooks.run("before-sanity-check",l),(o=l.element.parentElement)&&"pre"===o.nodeName.toLowerCase()&&!o.hasAttribute("tabindex")&&o.setAttribute("tabindex","0"),!l.code)return i.hooks.run("complete",l),void(a&&a.call(l.element));if(i.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var d=new Worker(i.filename);d.onmessage=function(e){c(e.data)},d.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(i.highlight(l.code,l.grammar,l.language));else c(i.util.encode(l.code))},highlight:function(e,t,n){var a={code:e,grammar:t,language:n};if(i.hooks.run("before-tokenize",a),!a.grammar)throw new Error('The language "'+a.language+'" has no grammar.');return a.tokens=i.tokenize(a.code,a.grammar),i.hooks.run("after-tokenize",a),r.stringify(i.util.encode(a.tokens),a.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var a in n)t[a]=n[a];delete t.rest}var i=new l;return c(i,i.head,e),o(e,i,t,i.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var a,r=0;a=n[r++];)a(t)}},Token:r};function r(e,t,n,a){this.type=e,this.content=t,this.alias=n,this.length=0|(a||"").length}function s(e,t,n,a){e.lastIndex=t;var i=e.exec(n);if(i&&a&&i[1]){var r=i[1].length;i.index+=r,i[0]=i[0].slice(r)}return i}function o(e,t,n,a,l,u){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var h=n[p];h=Array.isArray(h)?h:[h];for(var f=0;f<h.length;++f){if(u&&u.cause==p+","+f)return;var g=h[f],m=g.inside,v=!!g.lookbehind,b=!!g.greedy,y=g.alias;if(b&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,k=a.next,E=l;k!==t.tail&&!(u&&E>=u.reach);E+=k.value.length,k=k.next){var C=k.value;if(t.length>e.length)return;if(!(C instanceof r)){var $,A=1;if(b){if(!($=s(x,E,e,v))||$.index>=e.length)break;var S=$.index,F=$.index+$[0].length,L=E;for(L+=k.value.length;S>=L;)L+=(k=k.next).value.length;if(E=L-=k.value.length,k.value instanceof r)continue;for(var O=k;O!==t.tail&&(L<F||"string"==typeof O.value);O=O.next)A++,L+=O.value.length;A--,C=e.slice(E,L),$.index-=E}else if(!($=s(x,0,C,v)))continue;S=$.index;var T=$[0],D=C.slice(0,S),j=C.slice(S+T.length),I=E+C.length;u&&I>u.reach&&(u.reach=I);var P=k.prev;if(D&&(P=c(t,P,D),E+=D.length),d(t,P,A),k=c(t,P,new r(p,m?i.tokenize(T,m):T,y,T)),j&&c(t,k,j),A>1){var M={cause:p+","+f,reach:I};o(e,t,n,k.prev,E,M),u&&M.reach>u.reach&&(u.reach=M.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var a=t.next,i={value:n,prev:t,next:a};return t.next=i,a.prev=i,e.length++,i}function d(e,t,n){for(var a=t.next,i=0;i<n&&a!==e.tail;i++)a=a.next;t.next=a,a.prev=t,e.length-=i}if(e.Prism=i,r.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var r={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},s=t.alias;s&&(Array.isArray(s)?Array.prototype.push.apply(r.classes,s):r.classes.push(s)),i.hooks.run("wrap",r);var o="";for(var l in r.attributes)o+=" "+l+'="'+(r.attributes[l]||"").replace(/"/g,""")+'"';return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+o+">"+r.content+"</"+r.tag+">"},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),a=n.language,r=n.code,s=n.immediateClose;e.postMessage(i.highlight(r,i.languages[a],a)),s&&e.close()}),!1),i):i;var u=i.util.currentScript();function p(){i.manual||i.highlightAll()}if(u&&(i.filename=u.src,u.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var h=document.readyState;"loading"===h||"interactive"===h&&u&&u.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=a),void 0!==n.g&&(n.g.Prism=a),a.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},a.languages.markup.tag.inside["attr-value"].inside.entity=a.languages.markup.entity,a.languages.markup.doctype.inside["internal-subset"].inside=a.languages.markup,a.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(a.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:a.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};i["language-"+t]={pattern:/[\s\S]+/,inside:a.languages[t]};var r={};r[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},a.languages.insertBefore("markup","cdata",r)}}),Object.defineProperty(a.languages.markup.tag,"addAttribute",{value:function(e,t){a.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:a.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.xml=a.languages.extend("markup",{}),a.languages.ssml=a.languages.xml,a.languages.atom=a.languages.xml,a.languages.rss=a.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(a),a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},a.languages.javascript=a.languages.extend("clike",{"class-name":[a.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),a.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,a.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:a.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:a.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:a.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:a.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),a.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),a.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),a.languages.markup&&(a.languages.markup.tag.addInlined("script","javascript"),a.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),a.languages.js=a.languages.javascript,function(){if(void 0!==a&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",i="loaded",r="pre[data-src]:not(["+t+'="'+i+'"]):not(['+t+'="'+n+'"])';a.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),a.hooks.add("before-sanity-check",(function(s){var o=s.element;if(o.matches(r)){s.code="",o.setAttribute(t,n);var l=o.appendChild(document.createElement("CODE"));l.textContent="Loading…";var c=o.getAttribute("data-src"),d=s.language;if("none"===d){var u=(/\.(\w+)$/.exec(c)||[,"none"])[1];d=e[u]||u}a.util.setLanguage(l,d),a.util.setLanguage(o,d);var p=a.plugins.autoloader;p&&p.loadLanguages(d),function(e,t,n){var a=new XMLHttpRequest;a.open("GET",e,!0),a.onreadystatechange=function(){4==a.readyState&&(a.status<400&&a.responseText?t(a.responseText):a.status>=400?n("✖ Error "+a.status+" while fetching file: "+a.statusText):n("✖ Error: File does not exist or is empty"))},a.send(null)}(c,(function(e){o.setAttribute(t,i);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),a=t[2],i=t[3];return a?i?[n,Number(i)]:[n,void 0]:[n,n]}}(o.getAttribute("data-range"));if(n){var r=e.split(/\r\n?|\n/g),s=n[0],c=null==n[1]?r.length:n[1];s<0&&(s+=r.length),s=Math.max(0,Math.min(s-1,r.length)),c<0&&(c+=r.length),c=Math.max(0,Math.min(c,r.length)),e=r.slice(s,c).join("\n"),o.hasAttribute("data-start")||o.setAttribute("data-start",String(s+1))}l.textContent=e,a.highlightElement(l)}),(function(e){o.setAttribute(t,"failed"),l.textContent=e}))}})),a.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(r),i=0;t=n[i++];)a.highlightElement(t)}};var s=!1;a.fileHighlight=function(){s||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),s=!0),a.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},8887:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,'.tooltip-grid {\n height: 300px;\n display: grid;\n grid-template-rows: 4rem 4rem 1fr 4rem 4rem;\n grid-template-columns: 4rem 4rem 1fr 4rem 4rem;\n}\n.tooltip-grid button {\n width: 3rem;\n height: 3rem;\n align-self: center;\n justify-self: center;\n}\n[part="tooltipSource1"] {\n grid-column: 3;\n grid-row: 3;\n}\n[part="tooltipSource2"] {\n grid-column: 3;\n grid-row: 3;\n}\n[part="tooltipSource1"] {\n margin-right: 10rem;\n}\n[part="tooltipSource2"] {\n margin-left: 10rem;\n}\n[part="tooltipTopStart"] { grid-column: 2; grid-row: 1; }\n[part="tooltipTop"] { grid-column: 3; grid-row: 1; }\n[part="tooltipTopEnd"] { grid-column: 4; grid-row: 1; }\n[part="tooltipRightStart"] { grid-column: 5; grid-row: 2; }\n[part="tooltipRight"] { grid-column: 5; grid-row: 3; }\n[part="tooltipRightEnd"] { grid-column: 5; grid-row: 4; }\n[part="tooltipBottomStart"] { grid-column: 2; grid-row: 5; }\n[part="tooltipBottom"] { grid-column: 3; grid-row: 5; }\n[part="tooltipBottomEnd"] { grid-column: 4; grid-row: 5; }\n[part="tooltipLeftStart"] { grid-column: 1; grid-row: 2; }\n[part="tooltipLeft"] { grid-column: 1; grid-row: 3; }\n[part="tooltipLeftEnd"] { grid-column: 1; grid-row: 4; }',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},8928:(e,t,n)=>{"use strict";n.d(t,{f:()=>i});var a=n(373);function i(e,t,n){e.addEventListener("mouseenter",(function(){e.dispatchEvent(new CustomEvent("tooltip",{detail:{visible:!0,rect:e.getBoundingClientRect(),text:t(),position:n??a._N},bubbles:!0,composed:!0}))})),e.addEventListener("mouseleave",(function(){e.dispatchEvent(new CustomEvent("tooltip",{detail:{visible:!1},bubbles:!0,composed:!0}))}))}},8970:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(3822);var i=n(9109),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const o=(()=>{let e,t,n,o,l=[(0,a.uA)({selector:"pg-menu-divider",style:i.A,template:'<div part="divider"></div>'})],c=[],d=HTMLElement,u=[],p=[],h=[],f=[];(class extends d{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],o=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"focusable",static:!1,private:!1,access:{has:e=>"focusable"in e,get:e=>e.focusable,set:(e,t)=>{e.focusable=t}},metadata:i},u,p),r(null,null,o,{kind:"field",name:"$divider",static:!1,private:!1,access:{has:e=>"$divider"in e,get:e=>e.$divider,set:(e,t)=>{e.$divider=t}},metadata:i},h,f),r(null,e={value:t},l,{kind:"class",name:t.name,metadata:i},null,c),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,c)}focusable=s(this,u,!1);$divider=(s(this,p),s(this,h,void 0));getHeight(){const e=window.getComputedStyle(this.$divider),t=parseFloat(e.marginTop),n=parseFloat(e.marginBottom);return this.$divider.getBoundingClientRect().height+t+n}constructor(){super(...arguments),s(this,f)}});return t})()},8977:(e,t,n)=>{"use strict";var a=n(3822);var i=n(9135),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n=[(0,a.uA)({selector:"x-pg-annoy-basic",template:'<div class="example"> <pg-annoy> This is a very annoying corner message. </pg-annoy> </div>',style:i.A})],o=[],l=HTMLElement;(class extends l{static{t=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(l[Symbol.metadata]??null):void 0;r(null,e={value:t},n,{kind:"class",name:t.name,metadata:a},null,o),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),s(t,o)}})})()},9109:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,":host {\n display: contents;\n}\n\n[part=divider] {\n margin-top: 0.25rem;\n border-top: 1px solid var(--pg-menu-divider-color, rgba(69, 60, 79, 0.5));\n margin-bottom: 0.25rem;\n}\n",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},9135:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,":host {\n --pg-annoy-position: static;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},9248:(e,t,n)=>{"use strict";var a=n(3822);const i="data:image/png;base64,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";var r=n(6208);var s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,l,c,d=[(0,a.uA)({selector:"x-pg-avatar-basic",template:'<pg-tooltip part="tooltip"></pg-tooltip> <div class="example example-flex"> <pg-avatar></pg-avatar> <pg-avatar part="avatar1"></pg-avatar> <pg-avatar part="avatar2"></pg-avatar> </div>'})],u=[],p=HTMLElement,h=[],f=[],g=[],m=[],v=[],b=[];(class extends p{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],l=[(0,a.eS)()],c=[(0,a.eS)()],s(null,null,n,{kind:"field",name:"$tooltip",static:!1,private:!1,access:{has:e=>"$tooltip"in e,get:e=>e.$tooltip,set:(e,t)=>{e.$tooltip=t}},metadata:i},h,f),s(null,null,l,{kind:"field",name:"$avatar1",static:!1,private:!1,access:{has:e=>"$avatar1"in e,get:e=>e.$avatar1,set:(e,t)=>{e.$avatar1=t}},metadata:i},g,m),s(null,null,c,{kind:"field",name:"$avatar2",static:!1,private:!1,access:{has:e=>"$avatar2"in e,get:e=>e.$avatar2,set:(e,t)=>{e.$avatar2=t}},metadata:i},v,b),s(null,e={value:t},d,{kind:"class",name:t.name,metadata:i},null,u),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,u)}$tooltip=o(this,h,void 0);$avatar1=(o(this,f),o(this,g,void 0));$avatar2=(o(this,m),o(this,v,void 0));connectedCallback(){this.$avatar1.user=(new r.K).from({base64:i}),this.$avatar2.user=(new r.K).from({base64:i,sponsored:!0,github:"Templarian",name:"Austin Andrews"}),this.addEventListener("tooltip",this.handleTooltip.bind(this))}handleTooltip(e){const{visible:t,rect:n,text:a,position:i}=e.detail;this.$tooltip.visible=t,t&&(this.$tooltip.rect=n,this.$tooltip.text=a,this.$tooltip.position=i),e.stopPropagation()}constructor(){super(...arguments),o(this,b)}})})()},9258:(e,t,n)=>{"use strict";var a=n(3822),i=n(5461);var r=n(529),s=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},o=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,l,c,d,u,p,h=[(0,a.uA)({selector:"pg-input-select",style:r.A,template:'<button part="button"> <span part="label"></span> <svg part="chevron" viewBox="0 0 24 24"><path d="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"/></svg> </button>'})],f=[],g=HTMLElement,m=[],v=[],b=[],y=[],w=[],x=[],k=[],E=[],C=[],$=[],A=[],S=[];(class extends g{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(g[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],l=[(0,a.kv)()],c=[(0,a.kv)()],d=[(0,a.kv)()],u=[(0,a.eS)()],p=[(0,a.eS)()],s(null,null,n,{kind:"field",name:"options",static:!1,private:!1,access:{has:e=>"options"in e,get:e=>e.options,set:(e,t)=>{e.options=t}},metadata:i},m,v),s(null,null,l,{kind:"field",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:i},b,y),s(null,null,c,{kind:"field",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:i},w,x),s(null,null,d,{kind:"field",name:"default",static:!1,private:!1,access:{has:e=>"default"in e,get:e=>e.default,set:(e,t)=>{e.default=t}},metadata:i},k,E),s(null,null,u,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:i},C,$),s(null,null,p,{kind:"field",name:"$label",static:!1,private:!1,access:{has:e=>"$label"in e,get:e=>e.$label,set:(e,t)=>{e.$label=t}},metadata:i},A,S),s(null,e={value:t},h,{kind:"class",name:t.name,metadata:i},null,f),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),o(t,f)}options=o(this,m,[]);value=(o(this,v),o(this,b,""));name=(o(this,y),o(this,w,""));default=(o(this,x),o(this,k,null));$button=(o(this,E),o(this,C,void 0));$label=(o(this,$),o(this,A,void 0));connectedCallback(){this.$button.addEventListener("click",this.#e.bind(this))}render(e){(e.value||e.default)&&(this.$label.textContent=this.value?this.value:this.default?this.default.label:" ")}#Ue=(o(this,S),!1);async#e(){if(this.#Ue)return;this.#Ue=!0;const e=await i.A.open({source:this.$button,default:this.default,value:this.options.find((e=>e.value===this.value))??null,items:this.options});void 0!==e&&(this.dispatchEvent(new CustomEvent("change",{detail:{value:e.value}})),this.$label.textContent=e.label),this.#Ue=!1}})})()},9352:(e,t,n)=>{"use strict";var a=n(3822);var i=n(2689);const r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,s=Object.keys,o=Array.isArray;function l(e,t){return"object"!=typeof t||s(t).forEach((function(n){e[n]=t[n]})),e}"undefined"==typeof Promise||r.Promise||(r.Promise=Promise);const c=Object.getPrototypeOf,d={}.hasOwnProperty;function u(e,t){return d.call(e,t)}function p(e,t){"function"==typeof t&&(t=t(c(e))),("undefined"==typeof Reflect?s:Reflect.ownKeys)(t).forEach((n=>{f(e,n,t[n])}))}const h=Object.defineProperty;function f(e,t,n,a){h(e,t,l(n&&u(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},a))}function g(e){return{from:function(t){return e.prototype=Object.create(t.prototype),f(e.prototype,"constructor",e),{extend:p.bind(null,e.prototype)}}}}const m=Object.getOwnPropertyDescriptor;function v(e,t){let n;return m(e,t)||(n=c(e))&&v(n,t)}const b=[].slice;function y(e,t,n){return b.call(e,t,n)}function w(e,t){return t(e)}function x(e){if(!e)throw new Error("Assertion Failed")}function k(e){r.setImmediate?setImmediate(e):setTimeout(e,0)}function E(e,t){return e.reduce(((e,n,a)=>{var i=t(n,a);return i&&(e[i[0]]=i[1]),e}),{})}function C(e,t){if(u(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],a=0,i=t.length;a<i;++a){var r=C(e,t[a]);n.push(r)}return n}var s=t.indexOf(".");if(-1!==s){var o=e[t.substr(0,s)];return void 0===o?void 0:C(o,t.substr(s+1))}}function $(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){x("string"!=typeof n&&"length"in n);for(var a=0,i=t.length;a<i;++a)$(e,t[a],n[a])}else{var r=t.indexOf(".");if(-1!==r){var s=t.substr(0,r),l=t.substr(r+1);if(""===l)void 0===n?o(e)&&!isNaN(parseInt(s))?e.splice(s,1):delete e[s]:e[s]=n;else{var c=e[s];c||(c=e[s]={}),$(c,l,n)}}else void 0===n?o(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function A(e){var t={};for(var n in e)u(e,n)&&(t[n]=e[n]);return t}const S=[].concat;function F(e){return S.apply([],e)}const L="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(F([8,16,32,64].map((e=>["Int","Uint","Float"].map((t=>t+e+"Array")))))).filter((e=>r[e])),O=L.map((e=>r[e]));E(L,(e=>[e,!0]));let T=null;function D(e){T="undefined"!=typeof WeakMap&&new WeakMap;const t=j(e);return T=null,t}function j(e){if(!e||"object"!=typeof e)return e;let t=T&&T.get(e);if(t)return t;if(o(e)){t=[],T&&T.set(e,t);for(var n=0,a=e.length;n<a;++n)t.push(j(e[n]))}else if(O.indexOf(e.constructor)>=0)t=e;else{const n=c(e);for(var i in t=n===Object.prototype?{}:Object.create(n),T&&T.set(e,t),e)u(e,i)&&(t[i]=j(e[i]))}return t}const{toString:I}={};function P(e){return I.call(e).slice(8,-1)}const M="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",B="symbol"==typeof M?function(e){var t;return null!=e&&(t=e[M])&&t.apply(e)}:function(){return null},z={};function H(e){var t,n,a,i;if(1===arguments.length){if(o(e))return e.slice();if(this===z&&"string"==typeof e)return[e];if(i=B(e)){for(n=[];!(a=i.next()).done;)n.push(a.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}const R="undefined"!=typeof Symbol?e=>"AsyncFunction"===e[Symbol.toStringTag]:()=>!1;var N="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function V(e,t){N=e,_=t}var _=()=>!0;const K=!new Error("").stack;function Y(){if(K)try{throw Y.arguments,new Error}catch(e){return e}return new Error}function q(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(_).map((e=>"\n"+e)).join("")):""}var U=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],G=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(U),Q={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function W(e,t){this._e=Y(),this.name=e,this.message=t}function Z(e,t){return e+". Errors: "+Object.keys(t).map((e=>t[e].toString())).filter(((e,t,n)=>n.indexOf(e)===t)).join("\n")}function J(e,t,n,a){this._e=Y(),this.failures=t,this.failedKeys=a,this.successCount=n,this.message=Z(e,t)}function X(e,t){this._e=Y(),this.name="BulkError",this.failures=Object.keys(t).map((e=>t[e])),this.failuresByPos=t,this.message=Z(e,t)}g(W).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+q(this._e,2))}},toString:function(){return this.name+": "+this.message}}),g(J).from(W),g(X).from(W);var ee=G.reduce(((e,t)=>(e[t]=t+"Error",e)),{});const te=W;var ne=G.reduce(((e,t)=>{var n=t+"Error";function a(e,a){this._e=Y(),this.name=n,e?"string"==typeof e?(this.message=`${e}${a?"\n "+a:""}`,this.inner=a||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=Q[t]||n,this.inner=null)}return g(a).from(te),e[t]=a,e}),{});ne.Syntax=SyntaxError,ne.Type=TypeError,ne.Range=RangeError;var ae=U.reduce(((e,t)=>(e[t+"Error"]=ne[t],e)),{}),ie=G.reduce(((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=ne[t]),e)),{});function re(){}function se(e){return e}function oe(e,t){return null==e||e===se?t:function(n){return t(e(n))}}function le(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function ce(e,t){return e===re?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var a=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var r=t.apply(this,arguments);return a&&(this.onsuccess=this.onsuccess?le(a,this.onsuccess):a),i&&(this.onerror=this.onerror?le(i,this.onerror):i),void 0!==r?r:n}}function de(e,t){return e===re?t:function(){e.apply(this,arguments);var n=this.onsuccess,a=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?le(n,this.onsuccess):n),a&&(this.onerror=this.onerror?le(a,this.onerror):a)}}function ue(e,t){return e===re?t:function(n){var a=e.apply(this,arguments);l(n,a);var i=this.onsuccess,r=this.onerror;this.onsuccess=null,this.onerror=null;var s=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?le(i,this.onsuccess):i),r&&(this.onerror=this.onerror?le(r,this.onerror):r),void 0===a?void 0===s?void 0:s:l(a,s)}}function pe(e,t){return e===re?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function he(e,t){return e===re?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var a=this,i=arguments.length,r=new Array(i);i--;)r[i]=arguments[i];return n.then((function(){return t.apply(a,r)}))}return t.apply(this,arguments)}}ie.ModifyError=J,ie.DexieError=W,ie.BulkError=X;var fe={};const[ge,me,ve]="undefined"==typeof Promise?[]:(()=>{let e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,c(e),e];const t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,c(t),e]})(),be=me&&me.then,ye=ge&&ge.constructor,we=!!ve;var xe=!1,ke=ve?()=>{ve.then(Ye)}:r.setImmediate?setImmediate.bind(null,Ye):r.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver((()=>{Ye(),e=null})).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(Ye,0)},Ee=function(e,t){De.push([e,t]),$e&&(ke(),$e=!1)},Ce=!0,$e=!0,Ae=[],Se=[],Fe=null,Le=se,Oe={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:gt,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((e=>{try{gt(e[0],e[1])}catch(e){}}))}},Te=Oe,De=[],je=0,Ie=[];function Pe(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=re,this._lib=!1;var t=this._PSD=Te;if(N&&(this._stackHolder=Y(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==fe)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&He(this,this._value))}this._state=null,this._value=null,++t.ref,ze(this,e)}const Me={get:function(){var e=Te,t=tt;function n(n,a){var i=!e.global&&(e!==Te||t!==tt);const r=i&&!rt();var s=new Pe(((t,s)=>{Ne(this,new Be(ht(n,e,i,r),ht(a,e,i,r),t,s,e))}));return N&&Ke(s,this),s}return n.prototype=fe,n},set:function(e){f(this,"then",e&&e.prototype===fe?Me:{get:function(){return e},set:Me.set})}};function Be(e,t,n,a,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=a,this.psd=i}function ze(e,t){try{t((t=>{if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&qe();t&&"function"==typeof t.then?ze(e,((e,n)=>{t instanceof Pe?t._then(e,n):t.then(e,n)})):(e._state=!0,e._value=t,Re(e)),n&&Ue()}}),He.bind(null,e))}catch(t){He(e,t)}}function He(e,t){if(Se.push(t),null===e._state){var n=e._lib&&qe();t=Le(t),e._state=!1,e._value=t,N&&null!==t&&"object"==typeof t&&!t._promise&&function(e){try{e.apply(null,void 0)}catch(e){}}((()=>{var n=v(t,"stack");t._promise=e,f(t,"stack",{get:()=>xe?n&&(n.get?n.get.apply(t):n.value):e.stack})})),function(e){Ae.some((t=>t._value===e._value))||Ae.push(e)}(e),Re(e),n&&Ue()}}function Re(e){var t=e._listeners;e._listeners=[];for(var n=0,a=t.length;n<a;++n)Ne(e,t[n]);var i=e._PSD;--i.ref||i.finalize(),0===je&&(++je,Ee((()=>{0==--je&&Ge()}),[]))}function Ne(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++je,Ee(Ve,[n,e,t])}else e._listeners.push(t)}function Ve(e,t,n){try{Fe=t;var a,i=t._value;t._state?a=e(i):(Se.length&&(Se=[]),a=e(i),-1===Se.indexOf(i)&&function(e){for(var t=Ae.length;t;)if(Ae[--t]._value===e._value)return void Ae.splice(t,1)}(t)),n.resolve(a)}catch(e){n.reject(e)}finally{Fe=null,0==--je&&Ge(),--n.psd.ref||n.psd.finalize()}}function _e(e,t,n){if(t.length===n)return t;var a="";if(!1===e._state){var i,r,s=e._value;null!=s?(i=s.name||"Error",r=s.message||s,a=q(s,0)):(i=s,r=""),t.push(i+(r?": "+r:"")+a)}return N&&((a=q(e._stackHolder,2))&&-1===t.indexOf(a)&&t.push(a),e._prev&&_e(e._prev,t,n)),t}function Ke(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function Ye(){qe()&&Ue()}function qe(){var e=Ce;return Ce=!1,$e=!1,e}function Ue(){var e,t,n;do{for(;De.length>0;)for(e=De,De=[],n=e.length,t=0;t<n;++t){var a=e[t];a[0].apply(null,a[1])}}while(De.length>0);Ce=!0,$e=!0}function Ge(){var e=Ae;Ae=[],e.forEach((e=>{e._PSD.onunhandled.call(null,e._value,e)}));for(var t=Ie.slice(0),n=t.length;n;)t[--n]()}function Qe(e){return new Pe(fe,!1,e)}function We(e,t){var n=Te;return function(){var a=qe(),i=Te;try{return ct(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{ct(i,!1),a&&Ue()}}}p(Pe.prototype,{then:Me,_then:function(e,t){Ne(this,new Be(null,null,e,t,Te))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,(e=>e instanceof t?n(e):Qe(e))):this.then(null,(e=>e&&e.name===t?n(e):Qe(e)))},finally:function(e){return this.then((t=>(e(),t)),(t=>(e(),Qe(t))))},stack:{get:function(){if(this._stack)return this._stack;try{xe=!0;var e=_e(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{xe=!1}}},timeout:function(e,t){return e<1/0?new Pe(((n,a)=>{var i=setTimeout((()=>a(new ne.Timeout(t))),e);this.then(n,a).finally(clearTimeout.bind(null,i))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&f(Pe.prototype,Symbol.toStringTag,"Dexie.Promise"),Oe.env=dt(),p(Pe,{all:function(){var e=H.apply(null,arguments).map(st);return new Pe((function(t,n){0===e.length&&t([]);var a=e.length;e.forEach(((i,r)=>Pe.resolve(i).then((n=>{e[r]=n,--a||t(e)}),n)))}))},resolve:e=>{if(e instanceof Pe)return e;if(e&&"function"==typeof e.then)return new Pe(((t,n)=>{e.then(t,n)}));var t=new Pe(fe,!0,e);return Ke(t,Fe),t},reject:Qe,race:function(){var e=H.apply(null,arguments).map(st);return new Pe(((t,n)=>{e.map((e=>Pe.resolve(e).then(t,n)))}))},PSD:{get:()=>Te,set:e=>Te=e},totalEchoes:{get:()=>tt},newPSD:at,usePSD:ut,scheduler:{get:()=>Ee,set:e=>{Ee=e}},rejectionMapper:{get:()=>Le,set:e=>{Le=e}},follow:(e,t)=>new Pe(((n,a)=>at(((t,n)=>{var a=Te;a.unhandleds=[],a.onunhandled=n,a.finalize=le((function(){!function(e){Ie.push((function t(){e(),Ie.splice(Ie.indexOf(t),1)})),++je,Ee((()=>{0==--je&&Ge()}),[])}((()=>{0===this.unhandleds.length?t():n(this.unhandleds[0])}))}),a.finalize),e()}),t,n,a)))}),ye&&(ye.allSettled&&f(Pe,"allSettled",(function(){const e=H.apply(null,arguments).map(st);return new Pe((t=>{0===e.length&&t([]);let n=e.length;const a=new Array(n);e.forEach(((e,i)=>Pe.resolve(e).then((e=>a[i]={status:"fulfilled",value:e}),(e=>a[i]={status:"rejected",reason:e})).then((()=>--n||t(a)))))}))})),ye.any&&"undefined"!=typeof AggregateError&&f(Pe,"any",(function(){const e=H.apply(null,arguments).map(st);return new Pe(((t,n)=>{0===e.length&&n(new AggregateError([]));let a=e.length;const i=new Array(a);e.forEach(((e,r)=>Pe.resolve(e).then((e=>t(e)),(e=>{i[r]=e,--a||n(new AggregateError(i))}))))}))})));const Ze={awaits:0,echoes:0,id:0};var Je=0,Xe=[],et=0,tt=0,nt=0;function at(e,t,n,a){var i=Te,r=Object.create(i);r.parent=i,r.ref=0,r.global=!1,r.id=++nt;var s=Oe.env;r.env=we?{Promise:Pe,PromiseProp:{value:Pe,configurable:!0,writable:!0},all:Pe.all,race:Pe.race,allSettled:Pe.allSettled,any:Pe.any,resolve:Pe.resolve,reject:Pe.reject,nthen:ft(s.nthen,r),gthen:ft(s.gthen,r)}:{},t&&l(r,t),++i.ref,r.finalize=function(){--this.parent.ref||this.parent.finalize()};var o=ut(r,e,n,a);return 0===r.ref&&r.finalize(),o}function it(){return Ze.id||(Ze.id=++Je),++Ze.awaits,Ze.echoes+=100,Ze.id}function rt(){return!!Ze.awaits&&(0==--Ze.awaits&&(Ze.id=0),Ze.echoes=100*Ze.awaits,!0)}function st(e){return Ze.echoes&&e&&e.constructor===ye?(it(),e.then((e=>(rt(),e)),(e=>(rt(),mt(e))))):e}function ot(e){++tt,Ze.echoes&&0!=--Ze.echoes||(Ze.echoes=Ze.id=0),Xe.push(Te),ct(e,!0)}function lt(){var e=Xe[Xe.length-1];Xe.pop(),ct(e,!1)}function ct(e,t){var n=Te;if((t?!Ze.echoes||et++&&e===Te:!et||--et&&e===Te)||pt(t?ot.bind(null,e):lt),e!==Te&&(Te=e,n===Oe&&(Oe.env=dt()),we)){var a=Oe.env.Promise,i=e.env;me.then=i.nthen,a.prototype.then=i.gthen,(n.global||e.global)&&(Object.defineProperty(r,"Promise",i.PromiseProp),a.all=i.all,a.race=i.race,a.resolve=i.resolve,a.reject=i.reject,i.allSettled&&(a.allSettled=i.allSettled),i.any&&(a.any=i.any))}}function dt(){var e=r.Promise;return we?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(r,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:me.then,gthen:e.prototype.then}:{}}function ut(e,t,n,a,i){var r=Te;try{return ct(e,!0),t(n,a,i)}finally{ct(r,!1)}}function pt(e){be.call(ge,e)}function ht(e,t,n,a){return"function"!=typeof e?e:function(){var i=Te;n&&it(),ct(t,!0);try{return e.apply(this,arguments)}finally{ct(i,!1),a&&pt(rt)}}}function ft(e,t){return function(n,a){return e.call(this,ht(n,t),ht(a,t))}}function gt(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var a,i={promise:t,reason:e};if(r.document&&document.createEvent?((a=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),l(a,i)):r.CustomEvent&&l(a=new CustomEvent("unhandledrejection",{detail:i}),i),a&&r.dispatchEvent&&(dispatchEvent(a),!r.PromiseRejectionEvent&&r.onunhandledrejection))try{r.onunhandledrejection(a)}catch(e){}N&&a&&!a.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch(e){}}-1===(""+be).indexOf("[native code]")&&(it=rt=re);var mt=Pe.reject;function vt(e,t,n,a){if(e.idbdb&&(e._state.openComplete||Te.letThrough||e._vip)){var i=e._createTransaction(t,n,e._dbSchema);try{i.create(),e._state.PR1398_maxLoop=3}catch(i){return i.name===ee.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>vt(e,t,n,a)))):mt(i)}return i._promise(t,((e,t)=>at((()=>(Te.trans=i,a(e,t,i)))))).then((e=>i._completion.then((()=>e))))}if(e._state.openComplete)return mt(new ne.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return mt(new ne.DatabaseClosed);e.open().catch(re)}return e._state.dbReadyPromise.then((()=>vt(e,t,n,a)))}const bt=String.fromCharCode(65535),yt="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",wt=[],xt="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),Et=xt,Ct=xt,$t=e=>!/(dexie\.js|dexie\.min\.js)/.test(e);function At(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}const St={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Ft(e){return"string"!=typeof e||/\./.test(e)?e=>e:t=>(void 0===t[e]&&e in t&&delete(t=D(t))[e],t)}class kt{_trans(e,t,n){const a=this._tx||Te.trans,i=this.name;function r(e,n,a){if(!a.schema[i])throw new ne.NotFound("Table "+i+" not part of transaction");return t(a.idbtrans,a)}const s=qe();try{return a&&a.db===this.db?a===Te.trans?a._promise(e,r,n):at((()=>a._promise(e,r,n)),{trans:a,transless:Te.transless||Te}):vt(this.db,e,[this.name],r)}finally{s&&Ue()}}get(e,t){return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",(t=>this.core.get({trans:t,key:e}).then((e=>this.hook.reading.fire(e))))).then(t)}where(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(o(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);const t=s(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);const n=this.schema.indexes.concat(this.schema.primKey).filter((e=>e.compound&&t.every((t=>e.keyPath.indexOf(t)>=0))&&e.keyPath.every((e=>t.indexOf(e)>=0))))[0];if(n&&this.db._maxKey!==bt)return this.where(n.name).equals(n.keyPath.map((t=>e[t])));!n&&N&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${t.join("+")}]`);const{idxByName:a}=this.schema,i=this.db._deps.indexedDB;function r(e,t){try{return 0===i.cmp(e,t)}catch(e){return!1}}const[l,c]=t.reduce((([t,n],i)=>{const s=a[i],l=e[i];return[t||s,t||!s?At(n,s&&s.multi?e=>{const t=C(e,i);return o(t)&&t.some((e=>r(l,e)))}:e=>r(l,C(e,i))):n]}),[null,null]);return l?this.where(l.name).equals(e[l.keyPath]).filter(c):n?this.filter(c):this.where(t).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,o(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;const t=t=>{if(!t)return t;const n=Object.create(e.prototype);for(var a in t)if(u(t,a))try{n[a]=t[a]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e}defineClass(){return this.mapToClass((function(e){l(this,e)}))}add(e,t){const{auto:n,keyPath:a}=this.schema.primKey;let i=e;return a&&n&&(i=Ft(a)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[i]}))).then((e=>e.numFailures?Pe.reject(e.failures[0]):e.lastResult)).then((t=>{if(a)try{$(e,a,t)}catch(e){}return t}))}update(e,t){if("object"!=typeof e||o(e))return this.where(":id").equals(e).modify(t);{const n=C(e,this.schema.primKey.keyPath);if(void 0===n)return mt(new ne.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?s(t).forEach((n=>{$(e,n,t[n])})):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)}}put(e,t){const{auto:n,keyPath:a}=this.schema.primKey;let i=e;return a&&n&&(i=Ft(a)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"put",values:[i],keys:null!=t?[t]:null}))).then((e=>e.numFailures?Pe.reject(e.failures[0]):e.lastResult)).then((t=>{if(a)try{$(e,a,t)}catch(e){}return t}))}delete(e){return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:[e]}))).then((e=>e.numFailures?Pe.reject(e.failures[0]):void 0))}clear(){return this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"deleteRange",range:St}))).then((e=>e.numFailures?Pe.reject(e.failures[0]):void 0))}bulkGet(e){return this._trans("readonly",(t=>this.core.getMany({keys:e,trans:t}).then((e=>e.map((e=>this.hook.reading.fire(e)))))))}bulkAdd(e,t,n){const a=Array.isArray(t)?t:void 0,i=(n=n||(a?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:r}=this.schema.primKey;if(r&&a)throw new ne.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(a&&a.length!==e.length)throw new ne.InvalidArgument("Arguments objects and keys must have the same length");const s=e.length;let o=r&&n?e.map(Ft(r)):e;return this.core.mutate({trans:t,type:"add",keys:a,values:o,wantResults:i}).then((({numFailures:e,results:t,lastResult:n,failures:a})=>{if(0===e)return i?t:n;throw new X(`${this.name}.bulkAdd(): ${e} of ${s} operations failed`,a)}))}))}bulkPut(e,t,n){const a=Array.isArray(t)?t:void 0,i=(n=n||(a?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:r}=this.schema.primKey;if(r&&a)throw new ne.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(a&&a.length!==e.length)throw new ne.InvalidArgument("Arguments objects and keys must have the same length");const s=e.length;let o=r&&n?e.map(Ft(r)):e;return this.core.mutate({trans:t,type:"put",keys:a,values:o,wantResults:i}).then((({numFailures:e,results:t,lastResult:n,failures:a})=>{if(0===e)return i?t:n;throw new X(`${this.name}.bulkPut(): ${e} of ${s} operations failed`,a)}))}))}bulkDelete(e){const t=e.length;return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:e}))).then((({numFailures:e,lastResult:n,failures:a})=>{if(0===e)return n;throw new X(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,a)}))}}function Lt(e){var t={},n=function(n,a){if(a){for(var i=arguments.length,r=new Array(i-1);--i;)r[i-1]=arguments[i];return t[n].subscribe.apply(null,r),e}if("string"==typeof n)return t[n]};n.addEventType=r;for(var a=1,i=arguments.length;a<i;++a)r(arguments[a]);return n;function r(e,a,i){if("object"==typeof e)return l(e);a||(a=pe),i||(i=re);var r={subscribers:[],fire:i,subscribe:function(e){-1===r.subscribers.indexOf(e)&&(r.subscribers.push(e),r.fire=a(r.fire,e))},unsubscribe:function(e){r.subscribers=r.subscribers.filter((function(t){return t!==e})),r.fire=r.subscribers.reduce(a,i)}};return t[e]=n[e]=r,r}function l(e){s(e).forEach((function(t){var n=e[t];if(o(n))r(t,e[t][0],e[t][1]);else{if("asap"!==n)throw new ne.InvalidArgument("Invalid event config");var a=r(t,se,(function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];a.subscribers.forEach((function(e){k((function(){e.apply(null,t)}))}))}))}}))}}function Ot(e,t){return g(t).from({prototype:e}),t}function Tt(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Dt(e,t){e.filter=At(e.filter,t)}function jt(e,t,n){var a=e.replayFilter;e.replayFilter=a?()=>At(a(),t()):t,e.justLimit=n&&!a}function It(e,t){if(e.isPrimKey)return t.primaryKey;const n=t.getIndexByKeyPath(e.index);if(!n)throw new ne.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function Pt(e,t,n){const a=It(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:a,range:e.range}})}function Mt(e,t,n,a){const i=e.replayFilter?At(e.filter,e.replayFilter()):e.filter;if(e.or){const r={},s=(e,n,a)=>{if(!i||i(n,a,(e=>n.stop(e)),(e=>n.fail(e)))){var s=n.primaryKey,o=""+s;"[object ArrayBuffer]"===o&&(o=""+new Uint8Array(s)),u(r,o)||(r[o]=!0,t(e,n,a))}};return Promise.all([e.or._iterate(s,n),Bt(Pt(e,a,n),e.algorithm,s,!e.keysOnly&&e.valueMapper)])}return Bt(Pt(e,a,n),At(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function Bt(e,t,n,a){var i=We(a?(e,t,i)=>n(a(e),t,i):n);return e.then((e=>{if(e)return e.start((()=>{var n=()=>e.continue();t&&!t(e,(e=>n=e),(t=>{e.stop(t),n=re}),(t=>{e.fail(t),n=re}))||i(e.value,e,(e=>n=e)),n()}))}))}function zt(e,t){try{const n=Ht(e),a=Ht(t);if(n!==a)return"Array"===n?1:"Array"===a?-1:"binary"===n?1:"binary"===a?-1:"string"===n?1:"string"===a?-1:"Date"===n?1:"Date"!==a?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(e,t){const n=e.length,a=t.length,i=n<a?n:a;for(let n=0;n<i;++n)if(e[n]!==t[n])return e[n]<t[n]?-1:1;return n===a?0:n<a?-1:1}(Nt(e),Nt(t));case"Array":return function(e,t){const n=e.length,a=t.length,i=n<a?n:a;for(let n=0;n<i;++n){const a=zt(e[n],t[n]);if(0!==a)return a}return n===a?0:n<a?-1:1}(e,t)}}catch(e){}return NaN}function Ht(e){const t=typeof e;if("object"!==t)return t;if(ArrayBuffer.isView(e))return"binary";const n=P(e);return"ArrayBuffer"===n?"binary":n}function Nt(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class Rt{_read(e,t){var n=this._ctx;return n.error?n.table._trans(null,mt.bind(null,n.error)):n.table._trans("readonly",e).then(t)}_write(e){var t=this._ctx;return t.error?t.table._trans(null,mt.bind(null,t.error)):t.table._trans("readwrite",e,"locked")}_addAlgorithm(e){var t=this._ctx;t.algorithm=At(t.algorithm,e)}_iterate(e,t){return Mt(this._ctx,e,t,this._ctx.table.core)}clone(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&l(n,e),t._ctx=n,t}raw(){return this._ctx.valueMapper=null,this}each(e){var t=this._ctx;return this._read((n=>Mt(t,e,n,t.table.core)))}count(e){return this._read((e=>{const t=this._ctx,n=t.table.core;if(Tt(t,!0))return n.count({trans:e,query:{index:It(t,n.schema),range:t.range}}).then((e=>Math.min(e,t.limit)));var a=0;return Mt(t,(()=>(++a,!1)),e,n).then((()=>a))})).then(e)}sortBy(e,t){const n=e.split(".").reverse(),a=n[0],i=n.length-1;function r(e,t){return t?r(e[n[t]],t-1):e[a]}var s="next"===this._ctx.dir?1:-1;function o(e,t){var n=r(e,i),a=r(t,i);return n<a?-s:n>a?s:0}return this.toArray((function(e){return e.sort(o)})).then(t)}toArray(e){return this._read((e=>{var t=this._ctx;if("next"===t.dir&&Tt(t,!0)&&t.limit>0){const{valueMapper:n}=t,a=It(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:a,range:t.range}}).then((({result:e})=>n?e.map(n):e))}{const n=[];return Mt(t,(e=>n.push(e)),e,t.table.core).then((()=>n))}}),e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,Tt(t)?jt(t,(()=>{var t=e;return(e,n)=>0===t||(1===t?(--t,!1):(n((()=>{e.advance(t),t=0})),!1))})):jt(t,(()=>{var t=e;return()=>--t<0}))),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),jt(this._ctx,(()=>{var t=e;return function(e,n,a){return--t<=0&&n(a),t>=0}}),!0),this}until(e,t){return Dt(this._ctx,(function(n,a,i){return!e(n.value)||(a(i),t)})),this}first(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)}last(e){return this.reverse().first(e)}filter(e){var t,n;return Dt(this._ctx,(function(t){return e(t.value)})),t=this._ctx,n=e,t.isMatch=At(t.isMatch,n),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.key,n)}))}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.primaryKey,n)}))}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.key)})).then((function(){return n})).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&Tt(t,!0)&&t.limit>0)return this._read((e=>{var n=It(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})})).then((({result:e})=>e)).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.primaryKey)})).then((function(){return n})).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys((function(e){return e[0]})).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return Dt(this._ctx,(function(e){var t=e.primaryKey.toString(),a=u(n,t);return n[t]=!0,!a})),this}modify(e){var t=this._ctx;return this._write((n=>{var a;if("function"==typeof e)a=e;else{var i=s(e),r=i.length;a=function(t){for(var n=!1,a=0;a<r;++a){var s=i[a],o=e[s];C(t,s)!==o&&($(t,s,o),n=!0)}return n}}const o=t.table.core,{outbound:l,extractKey:c}=o.schema.primaryKey,d=this.db._options.modifyChunkSize||200,u=[];let p=0;const h=[],f=(e,t)=>{const{failures:n,numFailures:a}=t;p+=e-a;for(let e of s(n))u.push(n[e])};return this.clone().primaryKeys().then((i=>{const r=s=>{const u=Math.min(d,i.length-s);return o.getMany({trans:n,keys:i.slice(s,s+u),cache:"immutable"}).then((p=>{const h=[],g=[],m=l?[]:null,v=[];for(let e=0;e<u;++e){const t=p[e],n={value:D(t),primKey:i[s+e]};!1!==a.call(n,n.value,n)&&(null==n.value?v.push(i[s+e]):l||0===zt(c(t),c(n.value))?(g.push(n.value),l&&m.push(i[s+e])):(v.push(i[s+e]),h.push(n.value)))}const b=Tt(t)&&t.limit===1/0&&("function"!=typeof e||e===Vt)&&{index:t.index,range:t.range};return Promise.resolve(h.length>0&&o.mutate({trans:n,type:"add",values:h}).then((e=>{for(let t in e.failures)v.splice(parseInt(t),1);f(h.length,e)}))).then((()=>(g.length>0||b&&"object"==typeof e)&&o.mutate({trans:n,type:"put",keys:m,values:g,criteria:b,changeSpec:"function"!=typeof e&&e}).then((e=>f(g.length,e))))).then((()=>(v.length>0||b&&e===Vt)&&o.mutate({trans:n,type:"delete",keys:v,criteria:b}).then((e=>f(v.length,e))))).then((()=>i.length>s+u&&r(s+d)))}))};return r(0).then((()=>{if(u.length>0)throw new J("Error modifying one or more objects",u,p,h);return i.length}))}))}))}delete(){var e=this._ctx,t=e.range;return Tt(e)&&(e.isPrimKey&&!Ct||3===t.type)?this._write((n=>{const{primaryKey:a}=e.table.core.schema,i=t;return e.table.core.count({trans:n,query:{index:a,range:i}}).then((t=>e.table.core.mutate({trans:n,type:"deleteRange",range:i}).then((({failures:e,lastResult:n,results:a,numFailures:i})=>{if(i)throw new J("Could not delete some values",Object.keys(e).map((t=>e[t])),t-i);return t-i}))))})):this.modify(Vt)}}const Vt=(e,t)=>t.value=null;function _t(e,t){return e<t?-1:e===t?0:1}function Kt(e,t){return e>t?-1:e===t?0:1}function qt(e,t,n){var a=e instanceof Yt?new e.Collection(e):e;return a._ctx.error=n?new n(t):new TypeError(t),a}function Ut(e){return new e.Collection(e,(()=>Jt(""))).limit(0)}function Gt(e,t,n,a,i,r){for(var s=Math.min(e.length,a.length),o=-1,l=0;l<s;++l){var c=t[l];if(c!==a[l])return i(e[l],n[l])<0?e.substr(0,l)+n[l]+n.substr(l+1):i(e[l],a[l])<0?e.substr(0,l)+a[l]+n.substr(l+1):o>=0?e.substr(0,o)+t[o]+n.substr(o+1):null;i(e[l],c)<0&&(o=l)}return s<a.length&&"next"===r?e+n.substr(e.length):s<e.length&&"prev"===r?e.substr(0,n.length):o<0?null:e.substr(0,o)+a[o]+n.substr(o+1)}function Wt(e,t,n,a){var i,r,s,o,l,c,d,u=n.length;if(!n.every((e=>"string"==typeof e)))return qt(e,"String expected.");function p(e){i=function(e){return"next"===e?e=>e.toUpperCase():e=>e.toLowerCase()}(e),r=function(e){return"next"===e?e=>e.toLowerCase():e=>e.toUpperCase()}(e),s="next"===e?_t:Kt;var t=n.map((function(e){return{lower:r(e),upper:i(e)}})).sort((function(e,t){return s(e.lower,t.lower)}));o=t.map((function(e){return e.upper})),l=t.map((function(e){return e.lower})),c=e,d="next"===e?"":a}p("next");var h=new e.Collection(e,(()=>Zt(o[0],l[u-1]+a)));h._ondirectionchange=function(e){p(e)};var f=0;return h._addAlgorithm((function(e,n,a){var i=e.key;if("string"!=typeof i)return!1;var p=r(i);if(t(p,l,f))return!0;for(var h=null,g=f;g<u;++g){var m=Gt(i,p,o[g],l[g],s,c);null===m&&null===h?f=g+1:(null===h||s(h,m)>0)&&(h=m)}return n(null!==h?function(){e.continue(h+d)}:a),!1})),h}function Zt(e,t,n,a){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:a}}function Jt(e){return{type:1,lower:e,upper:e}}class Yt{get Collection(){return this._ctx.table.db.Collection}between(e,t,n,a){n=!1!==n,a=!0===a;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||a)&&(!n||!a)?Ut(this):new this.Collection(this,(()=>Zt(e,t,!n,!a)))}catch(e){return qt(this,yt)}}equals(e){return null==e?qt(this,yt):new this.Collection(this,(()=>Jt(e)))}above(e){return null==e?qt(this,yt):new this.Collection(this,(()=>Zt(e,void 0,!0)))}aboveOrEqual(e){return null==e?qt(this,yt):new this.Collection(this,(()=>Zt(e,void 0,!1)))}below(e){return null==e?qt(this,yt):new this.Collection(this,(()=>Zt(void 0,e,!1,!0)))}belowOrEqual(e){return null==e?qt(this,yt):new this.Collection(this,(()=>Zt(void 0,e)))}startsWith(e){return"string"!=typeof e?qt(this,"String expected."):this.between(e,e+bt,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):Wt(this,((e,t)=>0===e.indexOf(t[0])),[e],bt)}equalsIgnoreCase(e){return Wt(this,((e,t)=>e===t[0]),[e],"")}anyOfIgnoreCase(){var e=H.apply(z,arguments);return 0===e.length?Ut(this):Wt(this,((e,t)=>-1!==t.indexOf(e)),e,"")}startsWithAnyOfIgnoreCase(){var e=H.apply(z,arguments);return 0===e.length?Ut(this):Wt(this,((e,t)=>t.some((t=>0===e.indexOf(t)))),e,bt)}anyOf(){const e=H.apply(z,arguments);let t=this._cmp;try{e.sort(t)}catch(e){return qt(this,yt)}if(0===e.length)return Ut(this);const n=new this.Collection(this,(()=>Zt(e[0],e[e.length-1])));n._ondirectionchange=n=>{t="next"===n?this._ascending:this._descending,e.sort(t)};let a=0;return n._addAlgorithm(((n,i,r)=>{const s=n.key;for(;t(s,e[a])>0;)if(++a,a===e.length)return i(r),!1;return 0===t(s,e[a])||(i((()=>{n.continue(e[a])})),!1)})),n}notEqual(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const e=H.apply(z,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return qt(this,yt)}const t=e.reduce(((e,t)=>e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]]),null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){const n=this._cmp,a=this._ascending,i=this._descending,r=this._min,s=this._max;if(0===e.length)return Ut(this);if(!e.every((e=>void 0!==e[0]&&void 0!==e[1]&&a(e[0],e[1])<=0)))return qt(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ne.InvalidArgument);const o=!t||!1!==t.includeLowers,l=t&&!0===t.includeUppers;let c,d=a;function u(e,t){return d(e[0],t[0])}try{c=e.reduce((function(e,t){let a=0,i=e.length;for(;a<i;++a){const i=e[a];if(n(t[0],i[1])<0&&n(t[1],i[0])>0){i[0]=r(i[0],t[0]),i[1]=s(i[1],t[1]);break}}return a===i&&e.push(t),e}),[]),c.sort(u)}catch(e){return qt(this,yt)}let p=0;const h=l?e=>a(e,c[p][1])>0:e=>a(e,c[p][1])>=0,f=o?e=>i(e,c[p][0])>0:e=>i(e,c[p][0])>=0;let g=h;const m=new this.Collection(this,(()=>Zt(c[0][0],c[c.length-1][1],!o,!l)));return m._ondirectionchange=e=>{"next"===e?(g=h,d=a):(g=f,d=i),c.sort(u)},m._addAlgorithm(((e,t,n)=>{for(var i=e.key;g(i);)if(++p,p===c.length)return t(n),!1;return!!function(e){return!h(e)&&!f(e)}(i)||(0===this._cmp(i,c[p][1])||0===this._cmp(i,c[p][0])||t((()=>{d===a?e.continue(c[p][0]):e.continue(c[p][1])})),!1)})),m}startsWithAnyOf(){const e=H.apply(z,arguments);return e.every((e=>"string"==typeof e))?0===e.length?Ut(this):this.inAnyRange(e.map((e=>[e,e+bt]))):qt(this,"startsWithAnyOf() only works with strings")}}function Xt(e){return We((function(t){return en(t),e(t.target.error),!1}))}function en(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}const tn=Lt(null,"storagemutated");class Qt{_lock(){return x(!Te.global),++this._reculock,1!==this._reculock||Te.global||(Te.lockOwnerFor=this),this}_unlock(){if(x(!Te.global),0==--this._reculock)for(Te.global||(Te.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{ut(e[1],e[0])}catch(e){}}return this}_locked(){return this._reculock&&Te.lockOwnerFor!==this}create(e){if(!this.mode)return this;const t=this.db.idbdb,n=this.db._state.dbOpenError;if(x(!this.idbtrans),!e&&!t)switch(n&&n.name){case"DatabaseClosedError":throw new ne.DatabaseClosed(n);case"MissingAPIError":throw new ne.MissingAPI(n.message,n);default:throw new ne.OpenFailed(n)}if(!this.active)throw new ne.TransactionInactive;return x(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):t.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=We((t=>{en(t),this._reject(e.error)})),e.onabort=We((t=>{en(t),this.active&&this._reject(new ne.Abort(e.error)),this.active=!1,this.on("abort").fire(t)})),e.oncomplete=We((()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&tn.storagemutated.fire(e.mutatedParts)})),this}_promise(e,t,n){if("readwrite"===e&&"readwrite"!==this.mode)return mt(new ne.ReadOnly("Transaction is readonly"));if(!this.active)return mt(new ne.TransactionInactive);if(this._locked())return new Pe(((a,i)=>{this._blockedFuncs.push([()=>{this._promise(e,t,n).then(a,i)},Te])}));if(n)return at((()=>{var e=new Pe(((e,n)=>{this._lock();const a=t(e,n,this);a&&a.then&&a.then(e,n)}));return e.finally((()=>this._unlock())),e._lib=!0,e}));var a=new Pe(((e,n)=>{var a=t(e,n,this);a&&a.then&&a.then(e,n)}));return a._lib=!0,a}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();const n=Pe.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then((()=>n));else{t._waitingFor=n,t._waitingQueue=[];var a=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(a.get(-1/0).onsuccess=e)}()}var i=t._waitingFor;return new Pe(((e,a)=>{n.then((n=>t._waitingQueue.push(We(e.bind(null,n)))),(e=>t._waitingQueue.push(We(a.bind(null,e))))).finally((()=>{t._waitingFor===i&&(t._waitingFor=null)}))}))}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ne.Abort))}table(e){const t=this._memoizedTables||(this._memoizedTables={});if(u(t,e))return t[e];const n=this.schema[e];if(!n)throw new ne.NotFound("Table "+e+" not part of transaction");const a=new this.db.Table(e,n,this);return a.core=this.db.core.table(e),t[e]=a,a}}function nn(e,t,n,a,i,r,s){return{name:e,keyPath:t,unique:n,multi:a,auto:i,compound:r,src:(n&&!s?"&":"")+(a?"*":"")+(i?"++":"")+an(t)}}function an(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function rn(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:E(n,(e=>[e.name,e]))}}let sn=e=>{try{return e.only([[]]),sn=()=>[[]],[[]]}catch(e){return sn=()=>bt,bt}};function on(e){return null==e?()=>{}:"string"==typeof e?function(e){return 1===e.split(".").length?t=>t[e]:t=>C(t,e)}(e):t=>C(t,e)}function ln(e){return[].slice.call(e)}let cn=0;function dn(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function un(e,t,n){function a(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:n,upper:a,lowerOpen:i,upperOpen:r}=e;return void 0===n?void 0===a?null:t.upperBound(a,!!r):void 0===a?t.lowerBound(n,!!i):t.bound(n,a,!!i,!!r)}const{schema:i,hasGetAll:r}=function(e,t){const n=ln(e.objectStoreNames);return{schema:{name:e.name,tables:n.map((e=>t.objectStore(e))).map((e=>{const{keyPath:t,autoIncrement:n}=e,a=o(t),i=null==t,r={},s={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:i,compound:a,keyPath:t,autoIncrement:n,unique:!0,extractKey:on(t)},indexes:ln(e.indexNames).map((t=>e.index(t))).map((e=>{const{name:t,unique:n,multiEntry:a,keyPath:i}=e,s={name:t,compound:o(i),keyPath:i,unique:n,multiEntry:a,extractKey:on(i)};return r[dn(i)]=s,s})),getIndexByKeyPath:e=>r[dn(e)]};return r[":id"]=s.primaryKey,null!=t&&(r[dn(t)]=s.primaryKey),s}))},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),s=i.tables.map((e=>function(e){const t=e.name;return{name:t,schema:e,mutate:function({trans:e,type:n,keys:i,values:r,range:s}){return new Promise(((o,l)=>{o=We(o);const c=e.objectStore(t),d=null==c.keyPath,u="put"===n||"add"===n;if(!u&&"delete"!==n&&"deleteRange"!==n)throw new Error("Invalid operation type: "+n);const{length:p}=i||r||{length:1};if(i&&r&&i.length!==r.length)throw new Error("Given keys array must have same length as given values array.");if(0===p)return o({numFailures:0,failures:{},results:[],lastResult:void 0});let h;const f=[],g=[];let m=0;const v=e=>{++m,en(e)};if("deleteRange"===n){if(4===s.type)return o({numFailures:m,failures:g,results:[],lastResult:void 0});3===s.type?f.push(h=c.clear()):f.push(h=c.delete(a(s)))}else{const[e,t]=u?d?[r,i]:[r,null]:[i,null];if(u)for(let a=0;a<p;++a)f.push(h=t&&void 0!==t[a]?c[n](e[a],t[a]):c[n](e[a])),h.onerror=v;else for(let t=0;t<p;++t)f.push(h=c[n](e[t])),h.onerror=v}const b=e=>{const t=e.target.result;f.forEach(((e,t)=>null!=e.error&&(g[t]=e.error))),o({numFailures:m,failures:g,results:"delete"===n?i:f.map((e=>e.result)),lastResult:t})};h.onerror=e=>{v(e),b(e)},h.onsuccess=b}))},getMany:({trans:e,keys:n})=>new Promise(((a,i)=>{a=We(a);const r=e.objectStore(t),s=n.length,o=new Array(s);let l,c=0,d=0;const u=e=>{const t=e.target;o[t._pos]=t.result,++d===c&&a(o)},p=Xt(i);for(let e=0;e<s;++e)null!=n[e]&&(l=r.get(n[e]),l._pos=e,l.onsuccess=u,l.onerror=p,++c);0===c&&a(o)})),get:({trans:e,key:n})=>new Promise(((a,i)=>{a=We(a);const r=e.objectStore(t).get(n);r.onsuccess=e=>a(e.target.result),r.onerror=Xt(i)})),query:function(e){return n=>new Promise(((i,r)=>{i=We(i);const{trans:s,values:o,limit:l,query:c}=n,d=l===1/0?void 0:l,{index:u,range:p}=c,h=s.objectStore(t),f=u.isPrimaryKey?h:h.index(u.name),g=a(p);if(0===l)return i({result:[]});if(e){const e=o?f.getAll(g,d):f.getAllKeys(g,d);e.onsuccess=e=>i({result:e.target.result}),e.onerror=Xt(r)}else{let e=0;const t=o||!("openKeyCursor"in f)?f.openCursor(g):f.openKeyCursor(g),n=[];t.onsuccess=a=>{const r=t.result;return r?(n.push(o?r.value:r.primaryKey),++e===l?i({result:n}):void r.continue()):i({result:n})},t.onerror=Xt(r)}}))}(r),openCursor:function({trans:e,values:n,query:i,reverse:r,unique:s}){return new Promise(((o,l)=>{o=We(o);const{index:c,range:d}=i,u=e.objectStore(t),p=c.isPrimaryKey?u:u.index(c.name),h=r?s?"prevunique":"prev":s?"nextunique":"next",f=n||!("openKeyCursor"in p)?p.openCursor(a(d),h):p.openKeyCursor(a(d),h);f.onerror=Xt(l),f.onsuccess=We((t=>{const n=f.result;if(!n)return void o(null);n.___id=++cn,n.done=!1;const a=n.continue.bind(n);let i=n.continuePrimaryKey;i&&(i=i.bind(n));const r=n.advance.bind(n),s=()=>{throw new Error("Cursor not stopped")};n.trans=e,n.stop=n.continue=n.continuePrimaryKey=n.advance=()=>{throw new Error("Cursor not started")},n.fail=We(l),n.next=function(){let e=1;return this.start((()=>e--?this.continue():this.stop())).then((()=>this))},n.start=e=>{const t=new Promise(((e,t)=>{e=We(e),f.onerror=Xt(t),n.fail=t,n.stop=t=>{n.stop=n.continue=n.continuePrimaryKey=n.advance=s,e(t)}})),o=()=>{if(f.result)try{e()}catch(e){n.fail(e)}else n.done=!0,n.start=()=>{throw new Error("Cursor behind last entry")},n.stop()};return f.onsuccess=We((e=>{f.onsuccess=o,o()})),n.continue=a,n.continuePrimaryKey=i,n.advance=r,o(),t},o(n)}),l)}))},count({query:e,trans:n}){const{index:i,range:r}=e;return new Promise(((e,s)=>{const o=n.objectStore(t),l=i.isPrimaryKey?o:o.index(i.name),c=a(r),d=c?l.count(c):l.count();d.onsuccess=We((t=>e(t.target.result))),d.onerror=Xt(s)}))}}}(e))),l={};return s.forEach((e=>l[e.name]=e)),{stack:"dbcore",transaction:e.transaction.bind(e),table(e){if(!l[e])throw new Error(`Table '${e}' not found`);return l[e]},MIN_KEY:-1/0,MAX_KEY:sn(t),schema:i}}function pn({_novip:e},t){const n=t.db,a=function(e,t,{IDBKeyRange:n,indexedDB:a},i){const r=function(e,t){return t.reduce(((e,{create:t})=>({...e,...t(e)})),e)}(un(t,n,i),e.dbcore);return{dbcore:r}}(e._middlewares,n,e._deps,t);e.core=a.dbcore,e.tables.forEach((t=>{const n=t.name;e.core.schema.tables.some((e=>e.name===n))&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))}))}function hn({_novip:e},t,n,a){n.forEach((n=>{const i=a[n];t.forEach((t=>{const a=v(t,n);(!a||"value"in a&&void 0===a.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?f(t,n,{get(){return this.table(n)},set(e){h(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,i))}))}))}function fn({_novip:e},t){t.forEach((t=>{for(let n in t)t[n]instanceof e.Table&&delete t[n]}))}function gn(e,t){return e._cfg.version-t._cfg.version}function mn(e,t,n,a){const i=e._dbSchema,r=e._createTransaction("readwrite",e._storeNames,i);r.create(n),r._completion.catch(a);const o=r._reject.bind(r),l=Te.transless||Te;at((()=>{Te.trans=r,Te.transless=l,0===t?(s(i).forEach((e=>{yn(n,e,i[e].primKey,i[e].indexes)})),pn(e,n),Pe.follow((()=>e.on.populate.fire(r))).catch(o)):function({_novip:e},t,n,a){const i=[],r=e._versions;let o=e._dbSchema=xn(e,e.idbdb,a),l=!1;return r.filter((e=>e._cfg.version>=t)).forEach((r=>{i.push((()=>{const i=o,c=r._cfg.dbschema;kn(e,i,a),kn(e,c,a),o=e._dbSchema=c;const d=bn(i,c);d.add.forEach((e=>{yn(a,e[0],e[1].primKey,e[1].indexes)})),d.change.forEach((e=>{if(e.recreate)throw new ne.Upgrade("Not yet support for changing primary key");{const t=a.objectStore(e.name);e.add.forEach((e=>wn(t,e))),e.change.forEach((e=>{t.deleteIndex(e.name),wn(t,e)})),e.del.forEach((e=>t.deleteIndex(e)))}}));const u=r._cfg.contentUpgrade;if(u&&r._cfg.version>t){pn(e,a),n._memoizedTables={},l=!0;let t=A(c);d.del.forEach((e=>{t[e]=i[e]})),fn(e,[e.Transaction.prototype]),hn(e,[e.Transaction.prototype],s(t),t),n.schema=t;const r=R(u);let o;r&&it();const p=Pe.follow((()=>{if(o=u(n),o&&r){var e=rt.bind(null,null);o.then(e,e)}}));return o&&"function"==typeof o.then?Pe.resolve(o):p.then((()=>o))}})),i.push((t=>{l&&Et||function(e,t){[].slice.call(t.db.objectStoreNames).forEach((n=>null==e[n]&&t.db.deleteObjectStore(n)))}(r._cfg.dbschema,t),fn(e,[e.Transaction.prototype]),hn(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema}))})),function e(){return i.length?Pe.resolve(i.shift()(n.idbtrans)).then(e):Pe.resolve()}().then((()=>{var e,t;t=a,s(e=o).forEach((n=>{t.db.objectStoreNames.contains(n)||yn(t,n,e[n].primKey,e[n].indexes)}))}))}(e,t,r,n).catch(o)}))}function bn(e,t){const n={del:[],add:[],change:[]};let a;for(a in e)t[a]||n.del.push(a);for(a in t){const i=e[a],r=t[a];if(i){const e={name:a,def:r,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(r.primKey.keyPath||"")||i.primKey.auto!==r.primKey.auto&&!xt)e.recreate=!0,n.change.push(e);else{const t=i.idxByName,a=r.idxByName;let s;for(s in t)a[s]||e.del.push(s);for(s in a){const n=t[s],i=a[s];n?n.src!==i.src&&e.change.push(i):e.add.push(i)}(e.del.length>0||e.add.length>0||e.change.length>0)&&n.change.push(e)}}else n.add.push([a,r])}return n}function yn(e,t,n,a){const i=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return a.forEach((e=>wn(i,e))),i}function wn(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function xn(e,t,n){const a={};return y(t.objectStoreNames,0).forEach((e=>{const t=n.objectStore(e);let i=t.keyPath;const r=nn(an(i),i||"",!1,!1,!!t.autoIncrement,i&&"string"!=typeof i,!0),s=[];for(let e=0;e<t.indexNames.length;++e){const n=t.index(t.indexNames[e]);i=n.keyPath;var o=nn(n.name,i,!!n.unique,!!n.multiEntry,!1,i&&"string"!=typeof i,!1);s.push(o)}a[e]=rn(e,r,s)})),a}function kn({_novip:e},t,n){const a=n.db.objectStoreNames;for(let i=0;i<a.length;++i){const r=a[i],s=n.objectStore(r);e._hasGetAll="getAll"in s;for(let e=0;e<s.indexNames.length;++e){const n=s.indexNames[e],a=s.index(n).keyPath,i="string"==typeof a?a:"["+y(a).join("+")+"]";if(t[r]){const e=t[r].idxByName[i];e&&(e.name=n,delete t[r].idxByName[i],t[r].idxByName[n]=e)}}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&r.WorkerGlobalScope&&r instanceof r.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class vn{_parseStoresSpec(e,t){s(e).forEach((n=>{if(null!==e[n]){var a=e[n].split(",").map(((e,t)=>{const n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),a=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return nn(n,a||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),o(a),0===t)})),i=a.shift();if(i.multi)throw new ne.Schema("Primary key cannot be multi-valued");a.forEach((e=>{if(e.auto)throw new ne.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new ne.Schema("Index must have a name and cannot be an empty string")})),t[n]=rn(n,i,a)}}))}stores(e){const t=this.db;this._cfg.storesSource=this._cfg.storesSource?l(this._cfg.storesSource,e):e;const n=t._versions,a={};let i={};return n.forEach((e=>{l(a,e._cfg.storesSource),i=e._cfg.dbschema={},e._parseStoresSpec(a,i)})),t._dbSchema=i,fn(t,[t._allTables,t,t.Transaction.prototype]),hn(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],s(i),i),t._storeNames=s(i),this}upgrade(e){return this._cfg.contentUpgrade=he(this._cfg.contentUpgrade||re,e),this}}function En(e,t){let n=e._dbNamesDB;return n||(n=e._dbNamesDB=new $n("__dbnames",{addons:[],indexedDB:e,IDBKeyRange:t}),n.version(1).stores({dbnames:"name"})),n.table("dbnames")}function Cn(e){return e&&"function"==typeof e.databases}function An(e){return at((function(){return Te.letThrough=!0,e()}))}function Sn(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(t){var n=function(){return indexedDB.databases().finally(t)};e=setInterval(n,100),n()})).finally((function(){return clearInterval(e)})):Promise.resolve()}function Fn(e){var t=t=>e.next(t),n=i(t),a=i((t=>e.throw(t)));function i(e){return t=>{var i=e(t),r=i.value;return i.done?r:r&&"function"==typeof r.then?r.then(n,a):o(r)?Promise.all(r).then(n,a):n(r)}}return i(t)()}function On(e,t,n){var a=arguments.length;if(a<2)throw new ne.InvalidArgument("Too few arguments");for(var i=new Array(a-1);--a;)i[a-1]=arguments[a];return n=i.pop(),[e,F(i),n]}function Tn(e,t,n,a,i){return Pe.resolve().then((()=>{const r=Te.transless||Te,s=e._createTransaction(t,n,e._dbSchema,a),o={trans:s,transless:r};if(a)s.idbtrans=a.idbtrans;else try{s.create(),e._state.PR1398_maxLoop=3}catch(a){return a.name===ee.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>Tn(e,t,n,null,i)))):mt(a)}const l=R(i);let c;l&&it();const d=Pe.follow((()=>{if(c=i.call(s,s),c)if(l){var e=rt.bind(null,null);c.then(e,e)}else"function"==typeof c.next&&"function"==typeof c.throw&&(c=Fn(c))}),o);return(c&&"function"==typeof c.then?Pe.resolve(c).then((e=>s.active?e:mt(new ne.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn")))):d.then((()=>c))).then((e=>(a&&s._resolve(),s._completion.then((()=>e))))).catch((e=>(s._reject(e),mt(e))))}))}function Dn(e,t,n){const a=o(e)?e.slice():[e];for(let e=0;e<n;++e)a.push(t);return a}const jn={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){const n=e.table(t),{schema:a}=n,i={},r=[];function s(e,t,n){const a=dn(e),o=i[a]=i[a]||[],l=null==e?0:"string"==typeof e?1:e.length,c=t>0,d={...n,isVirtual:c,keyTail:t,keyLength:l,extractKey:on(e),unique:!c&&n.unique};return o.push(d),d.isPrimaryKey||r.push(d),l>1&&s(2===l?e[0]:e.slice(0,l-1),t+1,n),o.sort(((e,t)=>e.keyTail-t.keyTail)),d}const o=s(a.primaryKey.keyPath,0,a.primaryKey);i[":id"]=[o];for(const e of a.indexes)s(e.keyPath,0,e);function l(t){const n=t.query.index;return n.isVirtual?{...t,query:{index:n,range:(a=t.query.range,i=n.keyTail,{type:1===a.type?2:a.type,lower:Dn(a.lower,a.lowerOpen?e.MAX_KEY:e.MIN_KEY,i),lowerOpen:!0,upper:Dn(a.upper,a.upperOpen?e.MIN_KEY:e.MAX_KEY,i),upperOpen:!0})}}:t;var a,i}const c={...n,schema:{...a,primaryKey:o,indexes:r,getIndexByKeyPath:function(e){const t=i[dn(e)];return t&&t[0]}},count:e=>n.count(l(e)),query:e=>n.query(l(e)),openCursor(t){const{keyTail:a,isVirtual:i,keyLength:r}=t.query.index;return i?n.openCursor(l(t)).then((n=>n&&function(n){const i=Object.create(n,{continue:{value:function(i){null!=i?n.continue(Dn(i,t.reverse?e.MAX_KEY:e.MIN_KEY,a)):t.unique?n.continue(n.key.slice(0,r).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,a)):n.continue()}},continuePrimaryKey:{value(t,i){n.continuePrimaryKey(Dn(t,e.MAX_KEY,a),i)}},primaryKey:{get:()=>n.primaryKey},key:{get(){const e=n.key;return 1===r?e[0]:e.slice(0,r)}},value:{get:()=>n.value}});return i}(n))):n.openCursor(t)}};return c}}}};function In(e,t,n,a){return n=n||{},a=a||"",s(e).forEach((i=>{if(u(t,i)){var r=e[i],s=t[i];if("object"==typeof r&&"object"==typeof s&&r&&s){const e=P(r);e!==P(s)?n[a+i]=t[i]:"Object"===e?In(r,s,n,a+i+"."):r!==s&&(n[a+i]=t[i])}else r!==s&&(n[a+i]=t[i])}else n[a+i]=void 0})),s(t).forEach((i=>{u(e,i)||(n[a+i]=t[i])})),n}const Pn={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){const n=e.table(t),{primaryKey:a}=n.schema,i={...n,mutate(e){const i=Te.trans,{deleting:r,creating:s,updating:o}=i.table(t).hook;switch(e.type){case"add":if(s.fire===re)break;return i._promise("readwrite",(()=>l(e)),!0);case"put":if(s.fire===re&&o.fire===re)break;return i._promise("readwrite",(()=>l(e)),!0);case"delete":if(r.fire===re)break;return i._promise("readwrite",(()=>l(e)),!0);case"deleteRange":if(r.fire===re)break;return i._promise("readwrite",(()=>function(e){return c(e.trans,e.range,1e4)}(e)),!0)}return n.mutate(e);function l(e){const t=Te.trans,i=e.keys||function(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}(a,e);if(!i)throw new Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?{...e,keys:i}:{...e}).type&&(e.values=[...e.values]),e.keys&&(e.keys=[...e.keys]),function(e,t,n){return"add"===t.type?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}(n,e,i).then((l=>{const c=i.map(((n,i)=>{const c=l[i],d={onerror:null,onsuccess:null};if("delete"===e.type)r.fire.call(d,n,c,t);else if("add"===e.type||void 0===c){const r=s.fire.call(d,n,e.values[i],t);null==n&&null!=r&&(n=r,e.keys[i]=n,a.outbound||$(e.values[i],a.keyPath,n))}else{const a=In(c,e.values[i]),r=o.fire.call(d,a,n,c,t);if(r){const t=e.values[i];Object.keys(r).forEach((e=>{u(t,e)?t[e]=r[e]:$(t,e,r[e])}))}}return d}));return n.mutate(e).then((({failures:t,results:n,numFailures:a,lastResult:r})=>{for(let a=0;a<i.length;++a){const r=n?n[a]:i[a],s=c[a];null==r?s.onerror&&s.onerror(t[a]):s.onsuccess&&s.onsuccess("put"===e.type&&l[a]?e.values[a]:r)}return{failures:t,results:n,numFailures:a,lastResult:r}})).catch((e=>(c.forEach((t=>t.onerror&&t.onerror(e))),Promise.reject(e))))}))}function c(e,t,i){return n.query({trans:e,values:!1,query:{index:a,range:t},limit:i}).then((({result:n})=>l({type:"delete",keys:n,trans:e}).then((a=>a.numFailures>0?Promise.reject(a.failures[0]):n.length<i?{failures:[],numFailures:0,lastResult:void 0}:c(e,{...t,lower:n[n.length-1],lowerOpen:!0},i)))))}}};return i}})};function Mn(e,t,n){try{if(!t)return null;if(t.keys.length<e.length)return null;const a=[];for(let i=0,r=0;i<t.keys.length&&r<e.length;++i)0===zt(t.keys[i],e[r])&&(a.push(n?D(t.values[i]):t.values[i]),++r);return a.length===e.length?a:null}catch(e){return null}}const Bn={stack:"dbcore",level:-1,create:e=>({table:t=>{const n=e.table(t);return{...n,getMany:e=>{if(!e.cache)return n.getMany(e);const t=Mn(e.keys,e.trans._cache,"clone"===e.cache);return t?Pe.resolve(t):n.getMany(e).then((t=>(e.trans._cache={keys:e.keys,values:"clone"===e.cache?D(t):t},t)))},mutate:e=>("add"!==e.type&&(e.trans._cache=null),n.mutate(e))}}})};function zn(e){return!("from"in e)}const Hn=function(e,t){if(!this){const t=new Hn;return e&&"d"in e&&l(t,e),t}l(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function Rn(e,t,n){const a=zt(t,n);if(isNaN(a))return;if(a>0)throw RangeError();if(zn(e))return l(e,{from:t,to:n,d:1});const i=e.l,r=e.r;if(zt(n,e.from)<0)return i?Rn(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},_n(e);if(zt(t,e.to)>0)return r?Rn(r,t,n):e.r={from:t,to:n,d:1,l:null,r:null},_n(e);zt(t,e.from)<0&&(e.from=t,e.l=null,e.d=r?r.d+1:1),zt(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);const s=!e.r;i&&!e.l&&Nn(e,i),r&&s&&Nn(e,r)}function Nn(e,t){zn(t)||function e(t,{from:n,to:a,l:i,r}){Rn(t,n,a),i&&e(t,i),r&&e(t,r)}(e,t)}function Vn(e){let t=zn(e)?null:{s:0,n:e};return{next(e){const n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&zt(e,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||zt(e,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function _n(e){var t,n;const a=((null===(t=e.r)||void 0===t?void 0:t.d)||0)-((null===(n=e.l)||void 0===n?void 0:n.d)||0),i=a>1?"r":a<-1?"l":"";if(i){const t="r"===i?"l":"r",n={...e},a=e[i];e.from=a.from,e.to=a.to,e[i]=a[i],n[i]=a[t],e[t]=n,n.d=Kn(n)}e.d=Kn(e)}function Kn({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}p(Hn.prototype,{add(e){return Nn(this,e),this},addKey(e){return Rn(this,e,e),this},addKeys(e){return e.forEach((e=>Rn(this,e,e))),this},[M](){return Vn(this)}});const Yn={stack:"dbcore",level:0,create:e=>{const t=e.schema.name,n=new Hn(e.MIN_KEY,e.MAX_KEY);return{...e,table:a=>{const i=e.table(a),{schema:r}=i,{primaryKey:l}=r,{extractKey:c,outbound:d}=l,u={...i,mutate:e=>{const s=e.trans,l=s.mutatedParts||(s.mutatedParts={}),c=e=>{const n=`idb://${t}/${a}/${e}`;return l[n]||(l[n]=new Hn)},d=c(""),u=c(":dels"),{type:p}=e;let[h,f]="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[];const g=e.trans._cache;return i.mutate(e).then((e=>{if(o(h)){"delete"!==p&&(h=e.results),d.addKeys(h);const t=Mn(h,g);t||"add"===p||u.addKeys(h),(t||f)&&function(e,t,n,a){t.indexes.forEach((function(t){const i=e(t.name||"");function r(e){return null!=e?t.extractKey(e):null}const s=e=>t.multiEntry&&o(e)?e.forEach((e=>i.addKey(e))):i.addKey(e);(n||a).forEach(((e,t)=>{const i=n&&r(n[t]),o=a&&r(a[t]);0!==zt(i,o)&&(null!=i&&s(i),null!=o&&s(o))}))}))}(c,r,t,f)}else if(h){const e={from:h.lower,to:h.upper};u.add(e),d.add(e)}else d.add(n),u.add(n),r.indexes.forEach((e=>c(e.name).add(n)));return e}))}},p=({query:{index:t,range:n}})=>{var a,i;return[t,new Hn(null!==(a=n.lower)&&void 0!==a?a:e.MIN_KEY,null!==(i=n.upper)&&void 0!==i?i:e.MAX_KEY)]},h={get:e=>[l,new Hn(e.key)],getMany:e=>[l,(new Hn).addKeys(e.keys)],count:p,query:p,openCursor:p};return s(h).forEach((e=>{u[e]=function(r){const{subscr:s}=Te;if(s){const o=e=>{const n=`idb://${t}/${a}/${e}`;return s[n]||(s[n]=new Hn)},l=o(""),u=o(":dels"),[p,f]=h[e](r);if(o(p.name||"").add(f),!p.isPrimaryKey){if("count"!==e){const t="query"===e&&d&&r.values&&i.query({...r,values:!1});return i[e].apply(this,arguments).then((n=>{if("query"===e){if(d&&r.values)return t.then((({result:e})=>(l.addKeys(e),n)));const e=r.values?n.result.map(c):n.result;r.values?l.addKeys(e):u.addKeys(e)}else if("openCursor"===e){const e=n,t=r.values;return e&&Object.create(e,{key:{get:()=>(u.addKey(e.primaryKey),e.key)},primaryKey:{get(){const t=e.primaryKey;return u.addKey(t),t}},value:{get:()=>(t&&l.addKey(e.primaryKey),e.value)}})}return n}))}u.add(n)}}return i[e].apply(this,arguments)}})),u}}}};class $n{constructor(e,t){this._middlewares={},this.verno=0;const n=$n.dependencies;this._options=t={addons:$n.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange,...t},this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};const{addons:a}=t;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const i={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:re,dbReadyPromise:null,cancelOpen:re,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var r;i.dbReadyPromise=new Pe((e=>{i.dbReadyResolve=e})),i.openCanceller=new Pe(((e,t)=>{i.cancelOpen=t})),this._state=i,this.name=e,this.on=Lt(this,"populate","blocked","versionchange","close",{ready:[he,re]}),this.on.ready.subscribe=w(this.on.ready.subscribe,(e=>(t,n)=>{$n.vip((()=>{const a=this._state;if(a.openComplete)a.dbOpenError||Pe.resolve().then(t),n&&e(t);else if(a.onReadyBeingFired)a.onReadyBeingFired.push(t),n&&e(t);else{e(t);const a=this;n||e((function e(){a.on.ready.unsubscribe(t),a.on.ready.unsubscribe(e)}))}}))})),this.Collection=(r=this,Ot(Rt.prototype,(function(e,t){this.db=r;let n=St,a=null;if(t)try{n=t()}catch(e){a=e}const i=e._ctx,s=i.table,o=s.hook.reading.fire;this._ctx={table:s,index:i.index,isPrimKey:!i.index||s.schema.primKey.keyPath&&i.index===s.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:a,or:i.or,valueMapper:o!==se?o:null}}))),this.Table=function(e){return Ot(kt.prototype,(function(t,n,a){this.db=e,this._tx=a,this.name=t,this.schema=n,this.hook=e._allTables[t]?e._allTables[t].hook:Lt(null,{creating:[ce,re],reading:[oe,se],updating:[ue,re],deleting:[de,re]})}))}(this),this.Transaction=function(e){return Ot(Qt.prototype,(function(t,n,a,i,r){this.db=e,this.mode=t,this.storeNames=n,this.schema=a,this.chromeTransactionDurability=i,this.idbtrans=null,this.on=Lt(this,"complete","error","abort"),this.parent=r||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Pe(((e,t)=>{this._resolve=e,this._reject=t})),this._completion.then((()=>{this.active=!1,this.on.complete.fire()}),(e=>{var t=this.active;return this.active=!1,this.on.error.fire(e),this.parent?this.parent._reject(e):t&&this.idbtrans&&this.idbtrans.abort(),mt(e)}))}))}(this),this.Version=function(e){return Ot(vn.prototype,(function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=function(e){return Ot(Yt.prototype,(function(t,n,a){this.db=e,this._ctx={table:t,index:":id"===n?null:n,or:a};const i=e._deps.indexedDB;if(!i)throw new ne.MissingAPI;this._cmp=this._ascending=i.cmp.bind(i),this._descending=(e,t)=>i.cmp(t,e),this._max=(e,t)=>i.cmp(e,t)>0?e:t,this._min=(e,t)=>i.cmp(e,t)<0?e:t,this._IDBKeyRange=e._deps.IDBKeyRange}))}(this),this.on("versionchange",(e=>{e.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()})),this.on("blocked",(e=>{!e.newVersion||e.newVersion<e.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${e.oldVersion/10}`)})),this._maxKey=sn(t.IDBKeyRange),this._createTransaction=(e,t,n,a)=>new this.Transaction(e,t,n,this._options.chromeTransactionDurability,a),this._fireOnBlocked=e=>{this.on("blocked").fire(e),wt.filter((e=>e.name===this.name&&e!==this&&!e._state.vcFired)).map((t=>t.on("versionchange").fire(e)))},this.use(jn),this.use(Pn),this.use(Yn),this.use(Bn),this.vip=Object.create(this,{_vip:{value:!0}}),a.forEach((e=>e(this)))}version(e){if(isNaN(e)||e<.1)throw new ne.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new ne.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);const t=this._versions;var n=t.filter((t=>t._cfg.version===e))[0];return n||(n=new this.Version(e),t.push(n),t.sort(gn),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(e){return this.idbdb&&(this._state.openComplete||Te.letThrough||this._vip)?e():new Pe(((e,t)=>{if(this._state.openComplete)return t(new ne.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void t(new ne.DatabaseClosed);this.open().catch(re)}this._state.dbReadyPromise.then(e,t)})).then(e)}use({stack:e,create:t,level:n,name:a}){a&&this.unuse({stack:e,name:a});const i=this._middlewares[e]||(this._middlewares[e]=[]);return i.push({stack:e,create:t,level:null==n?10:n,name:a}),i.sort(((e,t)=>e.level-t.level)),this}unuse({stack:e,name:t,create:n}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter((e=>n?e.create!==n:!!t&&e.name!==t))),this}open(){return function(e){const t=e._state,{indexedDB:n}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then((()=>t.dbOpenError?mt(t.dbOpenError):e));N&&(t.openCanceller._stackHolder=Y()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;const a=t.openCanceller;function i(){if(t.openCanceller!==a)throw new ne.DatabaseClosed("db.open() was cancelled")}let r=t.dbReadyResolve,o=null,l=!1;return Pe.race([a,("undefined"==typeof navigator?Pe.resolve():Sn()).then((()=>new Pe(((a,r)=>{if(i(),!n)throw new ne.MissingAPI;const c=e.name,d=t.autoSchema?n.open(c):n.open(c,Math.round(10*e.verno));if(!d)throw new ne.MissingAPI;d.onerror=Xt(r),d.onblocked=We(e._fireOnBlocked),d.onupgradeneeded=We((a=>{if(o=d.transaction,t.autoSchema&&!e._options.allowEmptyDB){d.onerror=en,o.abort(),d.result.close();const e=n.deleteDatabase(c);e.onsuccess=e.onerror=We((()=>{r(new ne.NoSuchDatabase(`Database ${c} doesnt exist`))}))}else{o.onerror=Xt(r);var i=a.oldVersion>Math.pow(2,62)?0:a.oldVersion;l=i<1,e._novip.idbdb=d.result,mn(e,i/10,o,r)}}),r),d.onsuccess=We((()=>{o=null;const n=e._novip.idbdb=d.result,i=y(n.objectStoreNames);if(i.length>0)try{const a=n.transaction(1===(r=i).length?r[0]:r,"readonly");t.autoSchema?function({_novip:e},t,n){e.verno=t.version/10;const a=e._dbSchema=xn(0,t,n);e._storeNames=y(t.objectStoreNames,0),hn(e,[e._allTables],s(a),a)}(e,n,a):(kn(e,e._dbSchema,a),function(e,t){const n=bn(xn(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some((e=>e.add.length||e.change.length)))}(e,a)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),pn(e,a)}catch(e){}var r;wt.push(e),n.onversionchange=We((n=>{t.vcFired=!0,e.on("versionchange").fire(n)})),n.onclose=We((t=>{e.on("close").fire(t)})),l&&function({indexedDB:e,IDBKeyRange:t},n){!Cn(e)&&"__dbnames"!==n&&En(e,t).put({name:n}).catch(re)}(e._deps,c),a()}),r)}))))]).then((()=>(i(),t.onReadyBeingFired=[],Pe.resolve(An((()=>e.on.ready.fire(e.vip)))).then((function n(){if(t.onReadyBeingFired.length>0){let a=t.onReadyBeingFired.reduce(he,re);return t.onReadyBeingFired=[],Pe.resolve(An((()=>a(e.vip)))).then(n)}}))))).finally((()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1})).then((()=>e)).catch((n=>{t.dbOpenError=n;try{o&&o.abort()}catch(e){}return a===t.openCanceller&&e._close(),mt(n)})).finally((()=>{t.openComplete=!0,r()}))}(this)}_close(){const e=this._state,t=wt.indexOf(this);if(t>=0&&wt.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new Pe((t=>{e.dbReadyResolve=t})),e.openCanceller=new Pe(((t,n)=>{e.cancelOpen=n}))}close(){this._close();const e=this._state;this._options.autoOpen=!1,e.dbOpenError=new ne.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){const e=arguments.length>0,t=this._state;return new Pe(((n,a)=>{const i=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=We((()=>{!function({indexedDB:e,IDBKeyRange:t},n){!Cn(e)&&"__dbnames"!==n&&En(e,t).delete(n).catch(re)}(this._deps,this.name),n()})),e.onerror=Xt(a),e.onblocked=this._fireOnBlocked};if(e)throw new ne.InvalidArgument("Arguments not allowed in db.delete()");t.isBeingOpened?t.dbReadyPromise.then(i):i()}))}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){const e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return s(this._allTables).map((e=>this._allTables[e]))}transaction(){const e=On.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,n){let a=Te.trans;a&&a.db===this&&-1===e.indexOf("!")||(a=null);const i=-1!==e.indexOf("?");let r,s;e=e.replace("!","").replace("?","");try{if(s=t.map((e=>{var t=e instanceof this.Table?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t})),"r"==e||"readonly"===e)r="readonly";else{if("rw"!=e&&"readwrite"!=e)throw new ne.InvalidArgument("Invalid transaction mode: "+e);r="readwrite"}if(a){if("readonly"===a.mode&&"readwrite"===r){if(!i)throw new ne.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");a=null}a&&s.forEach((e=>{if(a&&-1===a.storeNames.indexOf(e)){if(!i)throw new ne.SubTransaction("Table "+e+" not included in parent transaction.");a=null}})),i&&a&&!a.active&&(a=null)}}catch(e){return a?a._promise(null,((t,n)=>{n(e)})):mt(e)}const o=Tn.bind(null,this,r,s,a,n);return a?a._promise(r,o,"lock"):Te.trans?ut(Te.transless,(()=>this._whenReady(o))):this._whenReady(o)}table(e){if(!u(this._allTables,e))throw new ne.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}const qn="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class Ln{constructor(e){this._subscribe=e}subscribe(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})}[qn](){return this}}function Un(e,t){return s(t).forEach((n=>{Nn(e[n]||(e[n]=new Hn),t[n])})),e}let Gn;try{Gn={indexedDB:r.indexedDB||r.mozIndexedDB||r.webkitIndexedDB||r.msIndexedDB,IDBKeyRange:r.IDBKeyRange||r.webkitIDBKeyRange}}catch(r){Gn={indexedDB:null,IDBKeyRange:null}}const Qn=$n;function Wn(e){let t=Zn;try{Zn=!0,tn.storagemutated.fire(e)}finally{Zn=t}}p(Qn,{...ie,delete:e=>new Qn(e,{addons:[]}).delete(),exists:e=>new Qn(e,{addons:[]}).open().then((e=>(e.close(),!0))).catch("NoSuchDatabaseError",(()=>!1)),getDatabaseNames(e){try{return function({indexedDB:e,IDBKeyRange:t}){return Cn(e)?Promise.resolve(e.databases()).then((e=>e.map((e=>e.name)).filter((e=>"__dbnames"!==e)))):En(e,t).toCollection().primaryKeys()}(Qn.dependencies).then(e)}catch(e){return mt(new ne.MissingAPI)}},defineClass:()=>function(e){l(this,e)},ignoreTransaction:e=>Te.trans?ut(Te.transless,e):e(),vip:An,async:function(e){return function(){try{var t=Fn(e.apply(this,arguments));return t&&"function"==typeof t.then?t:Pe.resolve(t)}catch(e){return mt(e)}}},spawn:function(e,t,n){try{var a=Fn(e.apply(n,t||[]));return a&&"function"==typeof a.then?a:Pe.resolve(a)}catch(e){return mt(e)}},currentTransaction:{get:()=>Te.trans||null},waitFor:function(e,t){const n=Pe.resolve("function"==typeof e?Qn.ignoreTransaction(e):e).timeout(t||6e4);return Te.trans?Te.trans.waitFor(n):n},Promise:Pe,debug:{get:()=>N,set:e=>{V(e,"dexie"===e?()=>!0:$t)}},derive:g,extend:l,props:p,override:w,Events:Lt,on:tn,liveQuery:function(e){return new Ln((t=>{const n=R(e);let a=!1,i={},r={};const o={get closed(){return a},unsubscribe:()=>{a=!0,tn.storagemutated.unsubscribe(u)}};t.start&&t.start(o);let l=!1,c=!1;function d(){return s(r).some((e=>i[e]&&function(e,t){const n=Vn(t);let a=n.next();if(a.done)return!1;let i=a.value;const r=Vn(e);let s=r.next(i.from),o=s.value;for(;!a.done&&!s.done;){if(zt(o.from,i.to)<=0&&zt(o.to,i.from)>=0)return!0;zt(i.from,o.from)<0?i=(a=n.next(o.from)).value:o=(s=r.next(i.from)).value}return!1}(i[e],r[e])))}const u=e=>{Un(i,e),d()&&p()},p=()=>{if(l||a)return;i={};const s={},h=function(t){n&&it();const a=()=>at(e,{subscr:t,trans:null}),i=Te.trans?ut(Te.transless,a):a();return n&&i.then(rt,rt),i}(s);c||(tn("storagemutated",u),c=!0),l=!0,Promise.resolve(h).then((e=>{l=!1,a||(d()?p():(i={},r=s,t.next&&t.next(e)))}),(e=>{l=!1,t.error&&t.error(e),o.unsubscribe()}))};return p(),o}))},extendObservabilitySet:Un,getByKeyPath:C,setByKeyPath:$,delByKeyPath:function(e,t){"string"==typeof t?$(e,t,void 0):"length"in t&&[].map.call(t,(function(t){$(e,t,void 0)}))},shallowClone:A,deepClone:D,getObjectDiff:In,cmp:zt,asap:k,minKey:-1/0,addons:[],connections:wt,errnames:ee,dependencies:Gn,semVer:"3.2.1",version:"3.2.1".split(".").map((e=>parseInt(e))).reduce(((e,t,n)=>e+t/Math.pow(10,2*n)))}),Qn.maxKey=sn(Qn.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(tn("storagemutated",(e=>{if(!Zn){let t;xt?(t=document.createEvent("CustomEvent"),t.initCustomEvent("x-storagemutated-1",!0,!0,e)):t=new CustomEvent("x-storagemutated-1",{detail:e}),Zn=!0,dispatchEvent(t),Zn=!1}})),addEventListener("x-storagemutated-1",(({detail:e})=>{Zn||Wn(e)})));let Zn=!1;if("undefined"!=typeof BroadcastChannel){const e=new BroadcastChannel("x-storagemutated-1");tn("storagemutated",(t=>{Zn||e.postMessage(t)})),e.onmessage=e=>{e.data&&Wn(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){tn("storagemutated",(e=>{try{Zn||("undefined"!=typeof localStorage&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach((t=>t.postMessage({type:"x-storagemutated-1",changedParts:e}))))}catch(e){}})),addEventListener("storage",(e=>{if("x-storagemutated-1"===e.key){const t=JSON.parse(e.newValue);t&&Wn(t.changedParts)}}));const e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",(function({data:e}){e&&"x-storagemutated-1"===e.type&&Wn(e.changedParts)}))}Pe.rejectionMapper=function(e,t){if(!e||e instanceof W||e instanceof TypeError||e instanceof SyntaxError||!e.name||!ae[e.name])return e;var n=new ae[e.name](t||e.message,e);return"stack"in e&&f(n,"stack",{get:function(){return this.inner.stack}}),n},V(N,$t);class Database extends $n{hashes;icons;constructor(){super("IconCache"),this.version(1).stores({hashes:"&id, hash",icons:"&id, idFull, fontId, name, data, aliases, tags, codepoint"}),this.hashes=this.table("hashes"),this.icons=this.table("icons")}}var Jn=n(7254),Xn=n(3942);class FontVersion{id;major;minor;patch;iconCount;description;date;released;from(e){return this.id=e.id,this.major=e.major,this.minor=e.minor,this.patch=e.patch,this.iconCount=e.iconCount,this.description=e.description,this.date=new Date(e.date),this.released=e.released,this}}class Font{id;name;description;prefix;fontName;fileName;fontFamily;fontWeight;price;versions=[];iconCount;from(e){return this.id=e.id,this.name=e.name,this.description=e.description,this.prefix=e.prefix,this.fontName=e.fontName,this.fontFamily=e.fontFamily,this.fontWeight=e.fontWeight,this.price=e.price,this.iconCount=e.iconCount,e.versions&&(this.versions=e.versions.map((e=>(new FontVersion).from(e)))),this}}var ea=n(6235),ta=n(6447);var na=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},aa=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const ia=new class DatabaseService{db=new Database;async getHashesFromServer(e){return await Jn.LV.get(`/api/font/${e.id}/hash`)}async getIconsFromServer(e,t){if(0===t.length)return[];return(await Jn.LV.get(`/api/font/${e.id}`,{params:{ids:t.join(",")}})).map((e=>(new Xn.I).from(e)))}async getIconsByPage(e,t,n){return(await Jn.LV.get(`/api/font/${e.id}`,{params:{page:t.toString(),size:n.toString()}})).map((e=>(new Xn.I).from(e)))}async asyncThrottledMap(e,t,n){let a=new Set;const i=[];for(let s of t){a.size>=e&&await Promise.race(a);const t=r(n(s));i.push(t)}return Promise.all(i);async function r(e){a.add(e);const t=await e;return a.delete(e),t}}async exists(e){return await this.getCount(e)>0}async resync(e){let t=!1;const n=(new Font).from({id:e}),a=await this.getHashesFromServer(n),i=Object.keys(a),r=await this.db.hashes.toArray(),s={};r.forEach((e=>{s[e.id]=e.hash}));const o=Object.keys(s),l=[];i.forEach((e=>{e in s&&s[e]===a[e]||l.push(e)}));const c=[];if(o.forEach((e=>{e in a||c.push(e)})),await this.db.icons.bulkDelete(c),(l.length>0||c.length>0)&&(t=!0),l.length<500){let e,t,a=[],i=100;for(e=0,t=l.length;e<t;e+=i)a.push(l.slice(e,e+i));const r=a.map((e=>this.getIconsFromServer(n,e)));(await Promise.all(r)).forEach((e=>{this.db.icons.bulkPut(e.map((e=>({id:e.fontIcon.id,idFull:e.id,fontId:n.id,name:e.name,data:e.data,version:e.version,codepoint:e.codepoint,aliases:e.aliases,tags:e.tags}))))}))}else if(0!==l.length){let e=500,t=Math.ceil(i.length/e),a=[];for(let i=1;i<=t;i++)a.push(this.getIconsByPage(n,i,e));await this.asyncThrottledMap(2,a,(e=>e.then((e=>{this.db.icons.bulkPut(e.map((e=>({id:e.fontIcon.id,idFull:e.id,fontId:n.id,name:e.name,data:e.data,version:e.version,codepoint:e.codepoint,aliases:JSON.stringify(e.aliases.map((e=>({name:e.name})))),tags:JSON.stringify(e.tags.map((e=>({name:e.name,url:e.url}))))}))))}))))}return t&&(await this.db.hashes.bulkPut(i.map((e=>({id:e,hash:a[e]})))),await this.db.hashes.bulkDelete(c)),t}synced=!1;async sync(e){if(!this.synced){const t=await this.resync(e);return this.synced=!0,t}return!1}convert(e){const t=new Xn.I;t.id=e.idFull,t.name=e.name,t.data=e.data,t.version=e.version,t.codepoint=e.codepoint;const n=e.aliases instanceof Array?e.aliases:JSON.parse(e.aliases);t.aliases=n.map((e=>(new ea.x).from(e)));const a=e.tags instanceof Array?e.tags:JSON.parse(e.tags);return t.tags=a.map((e=>(new ta.v).from(e))),t}async getIconByName(e){const t=await this.db.icons.where("name").equals(e).first();return t?this.convert(t):null}async getIcons(e,t){let n;if(t){const a=t.toLowerCase().replace(/[^a-z0-9-]/g,""),i=new RegExp(`${a}`);n=await this.db.icons.where("fontId").equals(e).filter((e=>null!==e.name.match(i))).sortBy("name")}else n=await this.db.icons.where("fontId").equals(e).sortBy("name");return n.map((e=>this.convert(e)))}async getCount(e){return await this.db.icons.where("fontId").equals(e).count()}async delete(){await this.db.delete()}};(()=>{let e,t,n,r=[(0,a.uA)({selector:"pg-database",style:i.A,template:""})],s=[],o=HTMLElement,l=[],c=[];(class extends o{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],na(null,null,n,{kind:"field",name:"font",static:!1,private:!1,access:{has:e=>"font"in e,get:e=>e.font,set:(e,t)=>{e.font=t}},metadata:i},l,c),na(null,e={value:t},r,{kind:"class",name:t.name,metadata:i},null,s),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),aa(t,s)}font=aa(this,l,"");async render(){if(""!==this.font){let e=!0;await ia.exists(this.font)&&this.dispatchEvent(new CustomEvent("sync",{detail:{db:ia,delay:e}}));await ia.sync(this.font)&&(e=!1,this.dispatchEvent(new CustomEvent("sync",{detail:{db:ia,delay:e}})))}}constructor(){super(...arguments),aa(this,c)}})})()},9367:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,"[part=scrollList] {\n display: flex;\n flex-direction: column;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},9406:(e,t,n)=>{"use strict";function a(e,t,n,a,i){const r=Array.from(e.children),s=r.map((e=>e.dataset.key)),o=t.map((e=>e[n]));t.forEach((t=>{if(!s.includes(t[n])){const i=a(t);return i instanceof DocumentFragment?i.children[0].dataset.key=t[n]:i.dataset.key=t[n],void e.appendChild(i)}{const e=r.find((e=>e.dataset.key===s[n]));if(t[n]===s[n])return void i(t,e)}})),r.forEach((e=>{o.includes(e.dataset.key)||e.remove()}))}function i(e,t,n){return Array.from(e.children).find((e=>e.dataset.key===t[n]))}n.d(t,{A:()=>i,p:()=>a})},9496:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,s,o,l,c=[(0,a.uA)({selector:"x-pg-icon-basic",template:'<div class="example"> <pg-icon part="icon1"></pg-icon> </div> <button part="buttonClear"> Clear Icon </button> <button part="buttonAccount"> Set icon to Account </button> <button part="buttonSquare"> Set icon to Square </button> <div class="example" style="--pg-icon-viewbox:0 0 22 22"> <pg-icon part="icon2" path="M9 3H13V4H14V5H15V9H14V10H13V11H9V10H8V9H7V5H8V4H9V3M10 8V9H12V8H13V6H12V5H10V6H9V8H10M7 12H15V13H17V14H18V15H19V19H3V15H4V14H5V13H7V12M6 16H5V17H17V16H16V15H14V14H8V15H6V16Z"></pg-icon> </div>'})],d=[],u=HTMLElement,p=[],h=[],f=[],g=[],m=[],v=[],b=[],y=[];(class extends u{static{t=this}static{const w="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],s=[(0,a.eS)()],o=[(0,a.eS)()],l=[(0,a.eS)()],i(null,null,n,{kind:"field",name:"$icon1",static:!1,private:!1,access:{has:e=>"$icon1"in e,get:e=>e.$icon1,set:(e,t)=>{e.$icon1=t}},metadata:w},p,h),i(null,null,s,{kind:"field",name:"$buttonClear",static:!1,private:!1,access:{has:e=>"$buttonClear"in e,get:e=>e.$buttonClear,set:(e,t)=>{e.$buttonClear=t}},metadata:w},f,g),i(null,null,o,{kind:"field",name:"$buttonAccount",static:!1,private:!1,access:{has:e=>"$buttonAccount"in e,get:e=>e.$buttonAccount,set:(e,t)=>{e.$buttonAccount=t}},metadata:w},m,v),i(null,null,l,{kind:"field",name:"$buttonSquare",static:!1,private:!1,access:{has:e=>"$buttonSquare"in e,get:e=>e.$buttonSquare,set:(e,t)=>{e.$buttonSquare=t}},metadata:w},b,y),i(null,e={value:t},c,{kind:"class",name:t.name,metadata:w},null,d),t=e.value,w&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:w}),r(t,d)}$icon1=r(this,p,void 0);$buttonClear=(r(this,h),r(this,f,void 0));$buttonAccount=(r(this,g),r(this,m,void 0));$buttonSquare=(r(this,v),r(this,b,void 0));connectedCallback(){this.$buttonClear.addEventListener("click",this.handleClear.bind(this)),this.$buttonAccount.addEventListener("click",this.handleAccount.bind(this)),this.$buttonSquare.addEventListener("click",this.handleSquare.bind(this))}handleClear(){this.$icon1.path="M0 0h24v24H0V0zm2 2v20h20V2H2z"}handleAccount(){this.$icon1.path="M12,4C14.21,4 16,5.79 16,8C16,10.21 14.21,12 12,12C9.79,12 8,10.21 8,8C8,5.79 9.79,4 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z"}handleSquare(){this.$icon1.path="M2,2H8V4H16V2H22V8H20V16H22V22H16V20H8V22H2V16H4V8H2V2M16,8V6H8V8H6V16H8V18H16V16H18V8H16M4,4V6H6V4H4M18,4V6H20V4H18M4,18V20H6V18H4M18,18V20H20V18H18Z"}constructor(){super(...arguments),r(this,y)}})})()},9537:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,":host {\n display: block;\n}\nheader {\n display: grid;\n grid-template-columns: auto 1fr;\n grid-template-rows: 1fr;\n grid-row: 1;\n grid-column: 1 / span 2;\n background: var(--pg-header-background, #fff);\n color: var(--pg-header-color, #453C4F);\n font-family: var(--pg-font-family);\n height: 3rem;\n}\nheader > a {\n grid-column: 1;\n display: inline-flex;\n color: var(--pg-header-color, #453C4F);\n text-decoration: none;\n align-items: center;\n}\nheader > a svg,\nheader > a slot::slotted(svg) {\n display: inline-flex;\n width: 1.75rem;\n height: 1.75rem;\n margin: 0 0.75rem 0 1rem;\n}\nheader > a > span {\n display: inline-flex;\n color: var(--pg-header-color, #453C4F);\n font-size: 1.5rem;\n margin: 0;\n font-weight: normal;\n padding-bottom: 1px;\n}\nheader > div {\n display: flex;\n grid-column: 2;\n justify-self: right;\n margin-right: 1rem;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},9557:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(3822);var i=n(3569),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const o=(()=>{let e,t,n,o,l,c,d=[(0,a.uA)({selector:"pg-input-text",style:i.A,template:'<input part="input" type="text"/>'})],u=[],p=HTMLElement,h=[],f=[],g=[],m=[],v=[],b=[],y=[],w=[];(class extends p{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],o=[(0,a.kv)()],l=[(0,a.kv)()],c=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"name",static:!1,private:!1,access:{has:e=>"name"in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:i},h,f),r(null,null,o,{kind:"field",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:i},g,m),r(null,null,l,{kind:"field",name:"placeholder",static:!1,private:!1,access:{has:e=>"placeholder"in e,get:e=>e.placeholder,set:(e,t)=>{e.placeholder=t}},metadata:i},v,b),r(null,null,c,{kind:"field",name:"$input",static:!1,private:!1,access:{has:e=>"$input"in e,get:e=>e.$input,set:(e,t)=>{e.$input=t}},metadata:i},y,w),r(null,e={value:t},d,{kind:"class",name:t.name,metadata:i},null,u),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,u)}name=s(this,h,"");value=(s(this,f),s(this,g,""));placeholder=(s(this,m),s(this,v,""));$input=(s(this,b),s(this,y,void 0));connectedCallback(){this.$input.addEventListener("input",this.handleInput.bind(this)),this.$input.addEventListener("change",this.handleChange.bind(this))}skipValue=(s(this,w),!1);render(e){e.value&&!this.skipValue&&(this.$input.value=this.value),e.placeholder&&(this.$input.placeholder=this.placeholder),this.skipValue=!1}handleInput(e){e.stopPropagation(),this.skipValue=!0,this.value=e.target.value,this.dispatchEvent(new CustomEvent("input",{detail:{value:e.target.value,name:e.name}}))}handleChange(e){this.dispatchEvent(new CustomEvent("change",{detail:{value:e.target.value,name:e.name}}))}});return t})()},9562:()=>{!function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(Prism)},9587:()=>{!function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism)},9638:(e,t,n)=>{"use strict";var a=n(3822);const i=`<div part="wrap"> <img part="img" src="${new URL(n(7489),n.b)}"/> </div> <a part="sponsored" href=""> <svg viewBox="0 0 24 24"> <path fill="currentColor" d="M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z"/> </svg> </a>`;var r=n(5017),s=n(6208),o=n(8928),l=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},c=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,d,u,p=[(0,a.uA)({selector:"pg-avatar",style:r.A,template:i})],h=[],f=HTMLElement,g=[],m=[],v=[],b=[],y=[],w=[];(class extends f{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(f[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],d=[(0,a.eS)()],u=[(0,a.eS)()],l(null,null,n,{kind:"field",name:"user",static:!1,private:!1,access:{has:e=>"user"in e,get:e=>e.user,set:(e,t)=>{e.user=t}},metadata:i},g,m),l(null,null,d,{kind:"field",name:"$img",static:!1,private:!1,access:{has:e=>"$img"in e,get:e=>e.$img,set:(e,t)=>{e.$img=t}},metadata:i},v,b),l(null,null,u,{kind:"field",name:"$sponsored",static:!1,private:!1,access:{has:e=>"$sponsored"in e,get:e=>e.$sponsored,set:(e,t)=>{e.$sponsored=t}},metadata:i},y,w),l(null,e={value:t},p,{kind:"class",name:t.name,metadata:i},null,h),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),c(t,h)}user=c(this,g,new s.K);$img=(c(this,m),c(this,v,void 0));$sponsored=(c(this,b),c(this,y,void 0));connectedCallback(){(0,o.f)(this.$sponsored,(()=>`Sponsor ${this.user.name} on GitHub`))}render(e){e.user&&(this.$img.src=this.user.base64||"data:image/png;base64,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",this.$sponsored.style.display=this.user.sponsored?"flex":"none",this.user.sponsored&&(this.$sponsored.href=`https://github.com/sponsors/${this.user.github}`))}constructor(){super(...arguments),c(this,w)}})})()},9661:(e,t,n)=>{"use strict";var a=n(3822),i=n(743),r=n(8970),s=n(5461);var o=n(5355),l=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},c=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,d,u,p=[(0,a.uA)({selector:"x-pg-overlay-select-menu-basic",template:'<div class="example"> <button part="button">Create Menu Overlay</button> <p>Result: <code part="result"></code></p><p></p> <p>input: <code part="input"></code></p><p></p> </div>',style:o.A})],h=[],f=HTMLElement,g=[],m=[],v=[],b=[],y=[],w=[];(class extends f{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(f[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],d=[(0,a.eS)()],u=[(0,a.eS)()],l(null,null,n,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:i},g,m),l(null,null,d,{kind:"field",name:"$result",static:!1,private:!1,access:{has:e=>"$result"in e,get:e=>e.$result,set:(e,t)=>{e.$result=t}},metadata:i},v,b),l(null,null,u,{kind:"field",name:"$input",static:!1,private:!1,access:{has:e=>"$input"in e,get:e=>e.$input,set:(e,t)=>{e.$input=t}},metadata:i},y,w),l(null,e={value:t},p,{kind:"class",name:t.name,metadata:i},null,h),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),c(t,h)}$button=c(this,g,void 0);$result=(c(this,m),c(this,v,void 0));$input=(c(this,b),c(this,y,void 0));connectedCallback(){this.$button.addEventListener("click",this.#e.bind(this))}#qe=(c(this,w),null);#Ue=!1;async#e(){if(this.#Ue)return;const e=[{label:"Item 1",value:"item1",type:i.A},{label:"Item 2",value:"item2",type:i.A},{type:r.A},{label:"Item 3",value:"item3",type:i.A}];this.#Ue=!0;const t=await s.A.open({source:this.$button,value:this.#qe,items:e,oninput:e=>{this.$input.textContent=e}});void 0!==t&&(this.#qe=t),this.$result.textContent=t,this.#Ue=!1}})})()},9664:(e,t,n)=>{"use strict";var a=n(3822);var i=n(8496),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const o="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z",l="M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z";function c(e,t=!0,n=[]){return{icon:{path:"M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z"},label:e,expanded:t,actions:[{type:i.A,icon:o,enabled:!0},{type:i.A,label:"Delete",icon:l,enabled:!1}],items:n}}function d(e){return{icon:{path:"M13,9V3.5L18.5,9M6,2C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6Z"},label:e,actions:[{type:i.A,icon:o,enabled:!0},{type:i.A,label:"Delete",icon:l,enabled:!1}]}}(()=>{let e,t,n,i,u,p,h,f=[(0,a.uA)({selector:"x-pg-tree-basic",template:'<div style="background:#f1f1f1;padding:.25rem"> <div style="background:#fff;max-width:20rem"> <pg-tree part="tree"></pg-tree> </div> </div> <h2>Tools</h2> <button part="addItem">Add Item</button> <button part="addFolder">Add Folder</button> <button part="removeItem">Remove Item</button> <button part="updateItem">Update Selected Label Item</button> '})],g=[],m=HTMLElement,v=[],b=[],y=[],w=[],x=[],k=[],E=[],C=[],$=[],A=[];(class extends m{static{t=this}static{const o="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],i=[(0,a.eS)()],u=[(0,a.eS)()],p=[(0,a.eS)()],h=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"$tree",static:!1,private:!1,access:{has:e=>"$tree"in e,get:e=>e.$tree,set:(e,t)=>{e.$tree=t}},metadata:o},v,b),r(null,null,i,{kind:"field",name:"$addItem",static:!1,private:!1,access:{has:e=>"$addItem"in e,get:e=>e.$addItem,set:(e,t)=>{e.$addItem=t}},metadata:o},y,w),r(null,null,u,{kind:"field",name:"$addFolder",static:!1,private:!1,access:{has:e=>"$addFolder"in e,get:e=>e.$addFolder,set:(e,t)=>{e.$addFolder=t}},metadata:o},x,k),r(null,null,p,{kind:"field",name:"$removeItem",static:!1,private:!1,access:{has:e=>"$removeItem"in e,get:e=>e.$removeItem,set:(e,t)=>{e.$removeItem=t}},metadata:o},E,C),r(null,null,h,{kind:"field",name:"$updateItem",static:!1,private:!1,access:{has:e=>"$updateItem"in e,get:e=>e.$updateItem,set:(e,t)=>{e.$updateItem=t}},metadata:o},$,A),r(null,e={value:t},f,{kind:"class",name:t.name,metadata:o},null,g),t=e.value,o&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:o}),s(t,g)}$tree=s(this,v,void 0);$addItem=(s(this,b),s(this,y,void 0));$addFolder=(s(this,w),s(this,x,void 0));$removeItem=(s(this,k),s(this,E,void 0));$updateItem=(s(this,C),s(this,$,void 0));#Ge=(s(this,A),[]);connectedCallback(){this.$tree.addEventListener("action",(e=>{const t=e.detail.item,{actionIndex:n}=e.detail,a=t.getData().actions[n],{enabled:i}=a;0===n&&i?(a.icon="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z",a.enabled=!1):0!==n||i||(a.icon=o,a.enabled=!0),1===n&&i?(a.icon=l,a.enabled=!1):1!==n||i||(a.icon="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",a.enabled=!0)})),this.$tree.addEventListener("move",(e=>{this.#Ge.forEach((t=>{t.move(e.detail.item,e.detail.position)}))})),this.$tree.addEventListener("rename",(e=>{const{indexes:t,label:n}=e.detail;this.#Y(t).label=n})),this.$tree.addEventListener("menu",(e=>{})),this.$tree.addEventListener("select",(e=>{this.#Ge=e.detail.items})),this.$tree.items=[c("Folder 1",!0,[d("Item 1")]),d("Item 2")];let e=3;this.$addItem.addEventListener("click",(()=>{this.#Ge.forEach((t=>{t.getData().items?t.getData().items.push(d(`Item ${e}`)):t.getParentData().items.push(d(`Item ${e}`)),e++}))}));let t=2;this.$addFolder.addEventListener("click",(()=>{this.#Ge.forEach((e=>{e.getData().items?e.getData().items.push(c(`Folder ${t}`)):e.getParentData().items.push(c(`Folder ${t}`)),t++}))})),this.$removeItem.addEventListener("click",(()=>{0===this.#Ge.length&&alert("Select items first!"),this.#Ge.forEach((e=>{e.remove()}))}));let n=0;this.$updateItem.addEventListener("click",(()=>{this.#Ge.forEach((e=>{e.getData().label="Updated "+n++}))}))}#Y(e){return e.reduce(((e,t)=>e.items[t]),this.$tree)}})})()},9700:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,s,o=[(0,a.uA)({selector:"x-pg-input-check-list-basic",template:'<div class="example"> <pg-input-check-list part="input"></pg-input-check-list> <code>Value: <span part="value"></span></code> </div>'})],l=[],c=HTMLElement,d=[],u=[],p=[],h=[];(class extends c{static{t=this}static{const f="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],s=[(0,a.eS)()],i(null,null,n,{kind:"field",name:"$input",static:!1,private:!1,access:{has:e=>"$input"in e,get:e=>e.$input,set:(e,t)=>{e.$input=t}},metadata:f},d,u),i(null,null,s,{kind:"field",name:"$value",static:!1,private:!1,access:{has:e=>"$value"in e,get:e=>e.$value,set:(e,t)=>{e.$value=t}},metadata:f},p,h),i(null,e={value:t},o,{kind:"class",name:t.name,metadata:f},null,l),t=e.value,f&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:f}),r(t,l)}$input=r(this,d,void 0);$value=(r(this,u),r(this,p,void 0));connectedCallback(){this.$input.value.push("uuid1","uuid3"),this.$input.options.push({value:"uuid1",label:"Item 1"},{value:"uuid2",label:"Item 2"},{value:"uuid3",label:"Item 3",disabled:!0},{value:"uuid4",label:"Item 4"}),this.$value.textContent=this.$input.value.join(","),this.$input.addEventListener("change",this.handleChange.bind(this))}handleChange(e){const{value:t}=e.detail;this.$value.textContent=t.join(",")}constructor(){super(...arguments),r(this,h)}})})()},9708:e=>{"use strict";e.exports="data:image/svg+xml; utf8, <svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27><path d=%27M 17.5,10.2501L 10.5,17.25L 6.5,13.25L 7.9,11.8L 10.5,14.4L 16.0857,8.8L 17.5,10.25Z%27 fill=%27white%27 /></svg>"},9786:(e,t,n)=>{"use strict";var a=n(3822);var i=n(1771),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o,l,c,d,u,p,h,f,g,m,v,b,y,w,x,k,E,C,$,A,S,F,L,O,T=[(0,a.uA)({selector:"x-pg-input-pixel-editor-basic",style:i.A,template:'<div class="example"> <div class="props"> <label> Width <input part="width" type="range" min="4" max="22"> </label> <label> Height <input part="height" type="range" min="4" max="22"> </label> <label> Size <input part="size" type="range" step="2" min="4" max="16"> </label> <label> <input part="transparent" type="checkbox"> Transparent </label> </div> <pg-input-pixel-editor part="input" width="10" height="10" size="10" style="box-shadow:0 0 .5rem rgba(0,0,0,.2)"></pg-input-pixel-editor> <div> <code>onchange: <span part="value1"></span></code> </div> <div> <code>oninput: <span part="value2"></span></code> </div> <div> <h3>Canvas Tools</h3> <button part="reset">Reset</button> <button part="clear">Clear</button> <button part="invert">Invert</button> | <button part="save">Save</button> <button part="open">Open</button> </div> <div> <h3>Drawing Tools</h3> <button part="modePixel">Pixel</button> <button part="modeLine">Line</button> <button part="modeRectangle">Rectangle</button> <button part="modeRectangleOutline">Rectangle Outline</button> <button part="modeEllipse">Ellipse</button> <button part="modeEllipseOutline">Ellipse Outline</button> </div> <div> <h3>Color Tools</h3> <button part="addColor">Add Color</button> <pre part="colors"></pre> </div> <div> <h3>Layer Tools</h3> <button part="addLayer">Add Layer</button> <pre part="layers"></pre> </div> <div> <h3>Example Tools</h3> <input part="file" type="file"/> <button part="saveSvg">Save SVG</button> <button part="savePng">Save Image</button> </div> <div part="debug"></div> <pre part="output" contenteditable></pre> </div>'})],D=[],j=HTMLElement,I=[],P=[],M=[],B=[],z=[],H=[],R=[],N=[],V=[],_=[],K=[],Y=[],q=[],U=[],G=[],Q=[],W=[],Z=[],J=[],X=[],ee=[],te=[],ne=[],ae=[],ie=[],re=[],se=[],oe=[],le=[],ce=[],de=[],ue=[],pe=[],he=[],fe=[],ge=[],me=[],ve=[],be=[],ye=[],we=[],xe=[],ke=[],Ee=[],Ce=[],$e=[],Ae=[],Se=[],Fe=[],Le=[];(class extends j{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(j[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],o=[(0,a.eS)()],l=[(0,a.eS)()],c=[(0,a.eS)()],d=[(0,a.eS)()],u=[(0,a.eS)()],p=[(0,a.eS)()],h=[(0,a.eS)()],f=[(0,a.eS)()],g=[(0,a.eS)()],m=[(0,a.eS)()],v=[(0,a.eS)()],b=[(0,a.eS)()],y=[(0,a.eS)()],w=[(0,a.eS)()],x=[(0,a.eS)()],k=[(0,a.eS)()],E=[(0,a.eS)()],C=[(0,a.eS)()],$=[(0,a.eS)()],A=[(0,a.eS)()],S=[(0,a.eS)()],F=[(0,a.eS)()],L=[(0,a.eS)()],O=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"$input",static:!1,private:!1,access:{has:e=>"$input"in e,get:e=>e.$input,set:(e,t)=>{e.$input=t}},metadata:i},I,P),r(null,null,o,{kind:"field",name:"$value1",static:!1,private:!1,access:{has:e=>"$value1"in e,get:e=>e.$value1,set:(e,t)=>{e.$value1=t}},metadata:i},M,B),r(null,null,l,{kind:"field",name:"$value2",static:!1,private:!1,access:{has:e=>"$value2"in e,get:e=>e.$value2,set:(e,t)=>{e.$value2=t}},metadata:i},z,H),r(null,null,c,{kind:"field",name:"$debug",static:!1,private:!1,access:{has:e=>"$debug"in e,get:e=>e.$debug,set:(e,t)=>{e.$debug=t}},metadata:i},R,N),r(null,null,d,{kind:"field",name:"$width",static:!1,private:!1,access:{has:e=>"$width"in e,get:e=>e.$width,set:(e,t)=>{e.$width=t}},metadata:i},V,_),r(null,null,u,{kind:"field",name:"$height",static:!1,private:!1,access:{has:e=>"$height"in e,get:e=>e.$height,set:(e,t)=>{e.$height=t}},metadata:i},K,Y),r(null,null,p,{kind:"field",name:"$size",static:!1,private:!1,access:{has:e=>"$size"in e,get:e=>e.$size,set:(e,t)=>{e.$size=t}},metadata:i},q,U),r(null,null,h,{kind:"field",name:"$transparent",static:!1,private:!1,access:{has:e=>"$transparent"in e,get:e=>e.$transparent,set:(e,t)=>{e.$transparent=t}},metadata:i},G,Q),r(null,null,f,{kind:"field",name:"$reset",static:!1,private:!1,access:{has:e=>"$reset"in e,get:e=>e.$reset,set:(e,t)=>{e.$reset=t}},metadata:i},W,Z),r(null,null,g,{kind:"field",name:"$clear",static:!1,private:!1,access:{has:e=>"$clear"in e,get:e=>e.$clear,set:(e,t)=>{e.$clear=t}},metadata:i},J,X),r(null,null,m,{kind:"field",name:"$invert",static:!1,private:!1,access:{has:e=>"$invert"in e,get:e=>e.$invert,set:(e,t)=>{e.$invert=t}},metadata:i},ee,te),r(null,null,v,{kind:"field",name:"$modePixel",static:!1,private:!1,access:{has:e=>"$modePixel"in e,get:e=>e.$modePixel,set:(e,t)=>{e.$modePixel=t}},metadata:i},ne,ae),r(null,null,b,{kind:"field",name:"$modeLine",static:!1,private:!1,access:{has:e=>"$modeLine"in e,get:e=>e.$modeLine,set:(e,t)=>{e.$modeLine=t}},metadata:i},ie,re),r(null,null,y,{kind:"field",name:"$modeRectangle",static:!1,private:!1,access:{has:e=>"$modeRectangle"in e,get:e=>e.$modeRectangle,set:(e,t)=>{e.$modeRectangle=t}},metadata:i},se,oe),r(null,null,w,{kind:"field",name:"$modeRectangleOutline",static:!1,private:!1,access:{has:e=>"$modeRectangleOutline"in e,get:e=>e.$modeRectangleOutline,set:(e,t)=>{e.$modeRectangleOutline=t}},metadata:i},le,ce),r(null,null,x,{kind:"field",name:"$modeEllipse",static:!1,private:!1,access:{has:e=>"$modeEllipse"in e,get:e=>e.$modeEllipse,set:(e,t)=>{e.$modeEllipse=t}},metadata:i},de,ue),r(null,null,k,{kind:"field",name:"$modeEllipseOutline",static:!1,private:!1,access:{has:e=>"$modeEllipseOutline"in e,get:e=>e.$modeEllipseOutline,set:(e,t)=>{e.$modeEllipseOutline=t}},metadata:i},pe,he),r(null,null,E,{kind:"field",name:"$save",static:!1,private:!1,access:{has:e=>"$save"in e,get:e=>e.$save,set:(e,t)=>{e.$save=t}},metadata:i},fe,ge),r(null,null,C,{kind:"field",name:"$open",static:!1,private:!1,access:{has:e=>"$open"in e,get:e=>e.$open,set:(e,t)=>{e.$open=t}},metadata:i},me,ve),r(null,null,$,{kind:"field",name:"$output",static:!1,private:!1,access:{has:e=>"$output"in e,get:e=>e.$output,set:(e,t)=>{e.$output=t}},metadata:i},be,ye),r(null,null,A,{kind:"field",name:"$file",static:!1,private:!1,access:{has:e=>"$file"in e,get:e=>e.$file,set:(e,t)=>{e.$file=t}},metadata:i},we,xe),r(null,null,S,{kind:"field",name:"$saveSvg",static:!1,private:!1,access:{has:e=>"$saveSvg"in e,get:e=>e.$saveSvg,set:(e,t)=>{e.$saveSvg=t}},metadata:i},ke,Ee),r(null,null,F,{kind:"field",name:"$savePng",static:!1,private:!1,access:{has:e=>"$savePng"in e,get:e=>e.$savePng,set:(e,t)=>{e.$savePng=t}},metadata:i},Ce,$e),r(null,null,L,{kind:"field",name:"$colors",static:!1,private:!1,access:{has:e=>"$colors"in e,get:e=>e.$colors,set:(e,t)=>{e.$colors=t}},metadata:i},Ae,Se),r(null,null,O,{kind:"field",name:"$layers",static:!1,private:!1,access:{has:e=>"$layers"in e,get:e=>e.$layers,set:(e,t)=>{e.$layers=t}},metadata:i},Fe,Le),r(null,e={value:t},T,{kind:"class",name:t.name,metadata:i},null,D),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,D)}$input=s(this,I,void 0);$value1=(s(this,P),s(this,M,void 0));$value2=(s(this,B),s(this,z,void 0));$debug=(s(this,H),s(this,R,void 0));$width=(s(this,N),s(this,V,void 0));$height=(s(this,_),s(this,K,void 0));$size=(s(this,Y),s(this,q,void 0));$transparent=(s(this,U),s(this,G,void 0));$reset=(s(this,Q),s(this,W,void 0));$clear=(s(this,Z),s(this,J,void 0));$invert=(s(this,X),s(this,ee,void 0));$modePixel=(s(this,te),s(this,ne,void 0));$modeLine=(s(this,ae),s(this,ie,void 0));$modeRectangle=(s(this,re),s(this,se,void 0));$modeRectangleOutline=(s(this,oe),s(this,le,void 0));$modeEllipse=(s(this,ce),s(this,de,void 0));$modeEllipseOutline=(s(this,ue),s(this,pe,void 0));$save=(s(this,he),s(this,fe,void 0));$open=(s(this,ge),s(this,me,void 0));$output=(s(this,ve),s(this,be,void 0));$file=(s(this,ye),s(this,we,void 0));$saveSvg=(s(this,xe),s(this,ke,void 0));$savePng=(s(this,Ee),s(this,Ce,void 0));$colors=(s(this,$e),s(this,Ae,void 0));$layers=(s(this,Se),s(this,Fe,void 0));connectedCallback(){this.$width.value="10",this.$height.value="10",this.$size.value="10",this.$input.addEventListener("change",this.handleChange.bind(this)),this.$width.addEventListener("input",this.handleWidthChange.bind(this)),this.$height.addEventListener("input",this.handleHeightChange.bind(this)),this.$size.addEventListener("input",this.handleSizeChange.bind(this)),this.$transparent.addEventListener("input",this.handleTransparentChange.bind(this)),this.$input.addEventListener("input",this.handleInput.bind(this)),this.$input.addEventListener("debug",this.handleDebug.bind(this)),this.$modePixel.addEventListener("click",(()=>{this.$input.inputModePixel()})),this.$modeLine.addEventListener("click",(()=>{this.$input.inputModeLine()})),this.$modeRectangle.addEventListener("click",(()=>{this.$input.inputModeRectangle()})),this.$modeRectangleOutline.addEventListener("click",(()=>{this.$input.inputModeRectangleOutline()})),this.$modeEllipse.addEventListener("click",(()=>{this.$input.inputModeEllipse()})),this.$modeEllipseOutline.addEventListener("click",(()=>{this.$input.inputModeEllipseOutline()})),this.$reset.addEventListener("click",(()=>{this.$input.reset()})),this.$clear.addEventListener("click",(()=>{this.$input.clear()})),this.$invert.addEventListener("click",(()=>{this.$input.invert()})),this.$save.addEventListener("click",(async()=>{const e=await this.$input.save();this.$output.textContent=JSON.stringify(e,null,4)})),this.$open.addEventListener("click",(()=>{const e=JSON.parse(this.$output.textContent||"");this.$input.open(e)})),this.$file.addEventListener("change",this.handleFile.bind(this)),this.$saveSvg.addEventListener("click",(async()=>{try{const e=await window.showSaveFilePicker({suggestedName:"Canvas",types:[{description:"SVG Document",accept:{"image/svg+xml":[".svg"]}}]}),t=await e.createWritable();await t.write(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${this.$width.value} ${this.$height.value}">`),await t.write('<path d="test" />'),await t.write("</svg>"),await t.close()}catch(e){}})),this.$savePng.addEventListener("click",(async()=>{try{const e=await window.showSaveFilePicker({suggestedName:"CanvasName",types:[{description:"SVG Document",accept:{"image/svg+xml":[".svg"]}}]}),t=await e.createWritable();await t.write("something"),await t.write,await t.close()}catch(e){}}))}handleFile(e){const{files:t}=e.currentTarget;if(1!==t.length)throw new Error("select only 1 file");if("image/svg+xml"!==t[0].type)throw new Error("Unsupported format.");{const e=new FileReader;e.onload=()=>{const t=e.result,n=t.match(/viewBox="\d+ \d+ (\d+) (\d+)"/),a=parseInt(n[1],10),i=parseInt(n[2],10),r=t.match(/d="([^"]+)"/)[1];console.log(r,n[1],n[2]),this.$input.applyTemplate(function(e,t,n){const a=Array(n).fill(0).map((()=>Array(t).fill(0))),i=[],r=e.match(/M[^Z]*Z/g)||[];for(const e of r){let t,n,a,r;const s=e.match(/[MHVZ][\d, ]*/g)||[];for(const e of s){const s=e[0],o=e.slice(1);let l;switch(s){case"M":{const[e,i]=o.split(/,| /).map((e=>parseInt(e,10)));a=e,r=i,t=e,n=i;break}case"H":a=parseInt(o,10);break;case"V":l=parseInt(o,10),i.push({x:a,y:[r,l].sort(((e,t)=>e-t))}),r=l;break;case"Z":t===a&&i.push({x:a,y:[r,n].sort(((e,t)=>e-t))})}}}for(let e=0;e<n;++e){let n=!1;for(let r=0;r<t;++r){for(const t of i)if(t.x===r&&e>=t.y[0]&&e<t.y[1]){n=!n;break}n&&(a[e][r]=1)}}return a}(r,a,i))},e.onerror=()=>{throw new Error("Error reading the file. Please try again.")},e.readAsText(t[0])}}handleChange(e){const{value:t}=e.detail;this.$value1.textContent=t.join("--")}handleInput(e){const{value:t}=e.detail;this.$value2.textContent=t}handleDebug(e){const{x:t,y:n,width:a,height:i,context:r,baseLayer:s,editLayer:o,noEditLayer:l,previewLayer:c}=e.detail;this.$debug.appendChild(s),this.$debug.appendChild(o),this.$debug.appendChild(l),this.$debug.appendChild(c)}handleWidthChange(e){this.$input.width=e.target.value,this.$debug.innerHTML=""}handleHeightChange(e){this.$input.height=e.target.value,this.$debug.innerHTML=""}handleSizeChange(e){this.$input.size=e.target.value,this.$debug.innerHTML=""}handleTransparentChange(e){this.$input.transparent=e.target.checked}constructor(){super(...arguments),s(this,Le)}})})()},9826:(e,t,n)=>{"use strict";var a=n(3822),i=n(8970);var r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,o=[(0,a.uA)({selector:"x-pg-menu-divider-basic",template:'<div class="example"> <pg-menu part="menu"></pg-menu> </div>'})],l=[],c=HTMLElement,d=[],u=[];(class extends c{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],r(null,null,n,{kind:"field",name:"$menu",static:!1,private:!1,access:{has:e=>"$menu"in e,get:e=>e.$menu,set:(e,t)=>{e.$menu=t}},metadata:i},d,u),r(null,e={value:t},o,{kind:"class",name:t.name,metadata:i},null,l),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),s(t,l)}$menu=s(this,d,void 0);connectedCallback(){this.$menu.items=[{label:"Item 1",value:"item1"},{type:i.A},{label:"Item 2",value:"item2"}]}constructor(){super(...arguments),s(this,u)}})})()},9878:(e,t,n)=>{"use strict";var a=n(3822);var i=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},r=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n,s,o=[(0,a.uA)({selector:"x-pg-color-basic",template:'<div class="example"> <pg-color part="color1" value="#000"></pg-color> <code>Selected: <span part="colorSelected"></span></code> </div>'})],l=[],c=HTMLElement,d=[],u=[],p=[],h=[];(class extends c{static{t=this}static{const f="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;n=[(0,a.eS)()],s=[(0,a.eS)()],i(null,null,n,{kind:"field",name:"$color1",static:!1,private:!1,access:{has:e=>"$color1"in e,get:e=>e.$color1,set:(e,t)=>{e.$color1=t}},metadata:f},d,u),i(null,null,s,{kind:"field",name:"$colorSelected",static:!1,private:!1,access:{has:e=>"$colorSelected"in e,get:e=>e.$colorSelected,set:(e,t)=>{e.$colorSelected=t}},metadata:f},p,h),i(null,e={value:t},o,{kind:"class",name:t.name,metadata:f},null,l),t=e.value,f&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:f}),r(t,l)}$color1=r(this,d,void 0);$colorSelected=(r(this,u),r(this,p,void 0));connectedCallback(){this.$color1.addEventListener("select",(e=>{const{rgb:t,hex:n}=e.detail;this.$colorSelected.innerText=`${n} or rgb(${t.r}, ${t.g}, ${t.b})`}))}constructor(){super(...arguments),r(this,h)}})})()},9891:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: contents;\n}\n\n[part="overlay"] {\n margin: 0;\n padding: 0;\n border: 0;\n background: transparent;\n overflow: visible;\n --pg-menu-box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.25);\n top: anchor(top);\n left: anchor(left);\n min-width: 10rem;\n margin: var(--pg-overlay-menu-_y, 0) 0 0 var(--pg-overlay-menu-_x, 0);\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},9915:(e,t,n)=>{"use strict";var a=n(3822);var i=n(3147),r=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},s=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};(()=>{let e,t,n=[(0,a.uA)({selector:"pg-card",style:i.A,template:'<div part="body"> <slot></slot> </div>'})],o=[],l=HTMLElement;(class extends l{static{t=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(l[Symbol.metadata]??null):void 0;r(null,e={value:t},n,{kind:"class",name:t.name,metadata:a},null,o),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),s(t,o)}})})()},9947:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,':host {\n display: flex;\n flex-direction: column;\n color: #453C4F;\n}\n\n.invalid {\n color: #721c24;\n background-color: #f8d7da;\n border-color: #f5c6cb;\n}\n\nh2 {\n font-weight: normal;\n font-size: 1.25rem;\n margin: 0.5rem 0 0.5rem 0;\n}\n\n/* Individual Templates */\n\n[part="news"] {\n display: grid;\n grid-template-columns: 3.5rem 1fr;\n grid-template-rows: 3.25rem auto;\n padding: 0.25rem;\n}\n[part="news"] [part="avatar"] {\n grid-column: 1;\n}\n[part="news"] [part="label"] {\n grid-column: 1;\n grid-row: 2;\n text-align: center;\n padding-right: 0.5rem;\n}\n[part="news"] [part="markdown"] {\n grid-column: 2;\n grid-row: 1 / span 2;\n border: 1px solid #DDD;\n padding: 0 1rem;\n background: #fff;\n border-radius: 0.25rem;\n}\n\n[part="iconCreated"],\n[part="iconRenamed"],\n[part="iconDeleted"],\n[part="iconAliasCreated"],\n[part="iconAliasDeleted"],\n[part="iconTagCreated"],\n[part="iconTagDeleted"],\n[part="iconAuthorModified"],\n[part="iconDeprecated"] {\n display: grid;\n grid-template-columns: 3.5rem 3.5rem 1fr auto auto;\n padding: 0.25rem;\n}\n[part="iconCreated"] [part="avatar"],\n[part="iconModified"] [part="avatar"],\n[part="iconRenamed"] [part="avatar"],\n[part="iconDeleted"] [part="avatar"],\n[part="iconAliasCreated"] [part="avatar"],\n[part="iconAliasDeleted"] [part="avatar"],\n[part="iconTagCreated"] [part="avatar"],\n[part="iconTagDeleted"] [part="avatar"],\n[part="iconAuthorModified"] [part="avatar"],\n[part="iconDeprecated"] [part="avatar"] {\n grid-column: 1;\n}\n[part="iconCreated"] [part="icon"],\n[part="iconModified"] [part="iconDataBefore"],\n[part="iconModified"] [part="iconDataAfter"],\n[part="iconRenamed"] [part="icon"],\n[part="iconDeleted"] [part="icon"],\n[part="iconAliasCreated"] [part="icon"],\n[part="iconAliasDeleted"] [part="icon"],\n[part="iconTagCreated"] [part="icon"],\n[part="iconTagDeleted"] [part="icon"],\n[part="iconAuthorModified"] [part="icon"],\n[part="iconDeprecated"] [part="icon"] {\n grid-column: 2;\n --pg-icon-width: 3rem;\n --pg-icon-height: 3rem;\n width: 3rem;\n border: 1px solid #ddd;\n background: #fff;\n border-radius: 0.25rem;\n align-self: flex-start;\n}\n[part="iconCreated"] [part="content"],\n[part="iconModified"] [part="content"],\n[part="iconRenamed"] [part="content"],\n[part="iconDeleted"] [part="content"],\n[part="iconAliasCreated"] [part="content"],\n[part="iconAliasDeleted"] [part="content"],\n[part="iconTagCreated"] [part="content"],\n[part="iconTagDeleted"] [part="content"],\n[part="iconAuthorModified"] [part="content"],\n[part="iconDeprecated"] [part="content"] {\n grid-column: 3;\n align-content: center;\n display: flex;\n align-items: center;\n}\n[part="iconCreated"] [part="content"] code,\n[part="iconModified"] [part="content"] code,\n[part="iconRenamed"] [part="content"] code,\n[part="iconDeleted"] [part="content"] code,\n[part="iconAliasCreated"] [part="content"] code,\n[part="iconAliasDeleted"] [part="content"] code,\n[part="iconTagCreated"] [part="content"] code,\n[part="iconTagDeleted"] [part="content"] code,\n[part="iconAuthorModified"] [part="content"] code,\n[part="iconDeprecated"] [part="content"] code {\n display: inline-block;\n background: rgba(0, 0, 0, 0.05);\n padding: 0.125rem 0.25rem;\n border-radius: 0.125rem;\n text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);\n border: 1px solid rgba(69, 60, 79, 0.2);\n line-height: 1.125rem;\n}\n[part="iconCreated"] [part="issue"],\n[part="iconModified"] [part="issue"],\n[part="iconRenamed"] [part="issue"],\n[part="iconDeleted"] [part="issue"],\n[part="iconAliasCreated"] [part="issue"],\n[part="iconAliasDeleted"] [part="issue"],\n[part="iconTagCreated"] [part="issue"],\n[part="iconTagDeleted"] [part="issue"],\n[part="iconDescriptionModified"] [part="issue"],\n[part="iconAuthorModified"] [part="issue"],\n[part="iconDeprecated"] [part="issue"] {\n grid-column: 4;\n display: flex;\n align-self: center;\n text-decoration: none;\n padding: 0.25rem 0.5rem;\n border: 1px solid #453C4F;\n color: #453C4F;\n border-radius: 0.25rem;\n}\n[part="iconCreated"] [part="issue"]:hover,\n[part="iconModified"] [part="issue"]:hover,\n[part="iconRenamed"] [part="issue"]:hover,\n[part="iconDeleted"] [part="issue"]:hover,\n[part="iconAliasCreated"] [part="issue"]:hover,\n[part="iconAliasDeleted"] [part="issue"]:hover,\n[part="iconTagCreated"] [part="issue"]:hover,\n[part="iconTagDeleted"] [part="issue"]:hover,\n[part="iconDescriptionModified"] [part="issue"]:hover,\n[part="iconAuthorModified"] [part="issue"]:hover,\n[part="iconDeprecated"] [part="issue"]:hover {\n background: #453C4F;\n color: #fff;\n}\n.edit [part="iconCreated"] [part="edit"],\n.edit [part="iconModified"] [part="edit"],\n.edit [part="iconRenamed"] [part="edit"],\n.edit [part="iconDeleted"] [part="edit"],\n.edit [part="iconAliasCreated"] [part="edit"],\n.edit [part="iconAliasDeleted"] [part="edit"],\n.edit [part="iconTagCreated"] [part="edit"],\n.edit [part="iconTagDeleted"] [part="edit"],\n.edit [part="iconDescriptionModified"] [part="edit"],\n.edit [part="iconAuthorModified"] [part="edit"],\n.edit [part="iconDeprecated"] [part="edit"] {\n display: flex;\n}\n[part="iconCreated"] [part="edit"],\n[part="iconModified"] [part="edit"],\n[part="iconRenamed"] [part="edit"],\n[part="iconDeleted"] [part="edit"],\n[part="iconAliasCreated"] [part="edit"],\n[part="iconAliasDeleted"] [part="edit"],\n[part="iconTagCreated"] [part="edit"],\n[part="iconTagDeleted"] [part="edit"],\n[part="iconDescriptionModified"] [part="edit"],\n[part="iconAuthorModified"] [part="edit"],\n[part="iconDeprecated"] [part="edit"] {\n display: none;\n grid-column: 5;\n align-self: center;\n padding: 0.25rem;\n border: 0;\n border-radius: 0.25rem;\n margin-left: 0.5rem;\n cursor: pointer;\n}\n[part="iconCreated"] [part="edit"]:hover,\n[part="iconModified"] [part="edit"]:hover,\n[part="iconRenamed"] [part="edit"]:hover,\n[part="iconDeleted"] [part="edit"]:hover,\n[part="iconAliasCreated"] [part="edit"]:hover,\n[part="iconAliasDeleted"] [part="edit"]:hover,\n[part="iconTagCreated"] [part="edit"]:hover,\n[part="iconTagDeleted"] [part="edit"]:hover,\n[part="iconDescriptionModified"] [part="edit"]:hover,\n[part="iconAuthorModified"] [part="edit"]:hover,\n[part="iconDeprecated"] [part="edit"]:hover {\n background: #453C4F;\n --pg-icon-color: #fff;\n}\n\n/* Individiual Tweaks */\n[part="iconCreated"] [part="icon"] {\n background: #d1e7dd;\n border-color: #badbcc;\n}\n\n[part="iconRenamed"] [part="icon"] {\n background-color: #fff3cd;\n border-color: #ffecb5;\n}\n\n[part="iconDeleted"] [part="icon"] {\n background: #f5c6cb;\n border-color: #d06e78;\n}\n\n[part="iconModified"] {\n display: grid;\n grid-template-columns: 3.5rem 3.5rem 3.5rem 1fr auto auto;\n padding: 0.25rem;\n}\n[part="iconModified"] [part="iconDataBefore"] {\n opacity: 0.4;\n}\n[part="iconModified"] [part="iconDataAfter"] {\n grid-column: 3;\n}\n[part="iconModified"] [part="content"] {\n grid-column: 4;\n}\n[part="iconModified"] [part="issue"] {\n grid-column: 5;\n}\n[part="iconModified"] [part="edit"] {\n grid-column: 6;\n}\n\n[part="iconAliasCreated"] [part="icon"],\n[part="iconAliasDeleted"] [part="icon"] {\n background-color: #DDC6E7;\n border-color: 1px solid #DBBDE5;\n}\n\n[part="iconTagCreated"] [part="icon"],\n[part="iconTagDeleted"] [part="icon"] {\n background-color: #cff4fc;\n border-color: #b6effb;\n}\n\n[part="iconDescriptionModified"] {\n display: grid;\n grid-template-columns: 3.5rem 3.5rem 1fr 0.5rem 1fr auto;\n grid-template-rows: auto auto;\n padding: 0.25rem;\n}\n[part="iconDescriptionModified"] [part="avatar"] {\n grid-column: 1;\n grid-row: 1 / span 2;\n}\n[part="iconDescriptionModified"] [part="icon"] {\n grid-column: 2;\n grid-row: 1 / span 2;\n --pg-icon-width: 3rem;\n --pg-icon-height: 3rem;\n width: 3rem;\n border: 1px solid #ddd;\n background: #fff;\n border-radius: 0.25rem;\n align-self: flex-start;\n}\n[part="iconDescriptionModified"] [part="iconDescriptionBefore"] {\n grid-column: 3;\n grid-row: 1 / span 2;\n border: 1px solid #DDD;\n padding: 0 1rem;\n background: #fff;\n border-radius: 0.25rem;\n}\n[part="iconDescriptionModified"] [part="iconDescriptionAfter"] {\n grid-column: 5;\n grid-row: 1 / span 2;\n border: 1px solid #DDD;\n padding: 0 1rem;\n background: #fff;\n border-radius: 0.25rem;\n}\n[part="iconDescriptionModified"] [part="issue"] {\n grid-column: 6;\n grid-row: 1;\n margin-left: 0.5rem;\n}\n[part="iconDescriptionModified"] [part="edit"] {\n grid-column: 6;\n grid-row: 2;\n justify-content: center;\n margin-top: 0.25rem;\n}\n\n.added,\n.created {\n border-bottom: 3px solid #badbcc;\n}\n\n.removed,\n.deleted {\n border-bottom: 3px solid #f5c6cb;\n}',""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},9971:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(1601),i=n.n(a),r=n(6314),s=n.n(r)()(i());s.push([e.id,":host {\n\n}\n\n.example {\n border: 0.25rem solid #111;\n height: 10rem;\n}",""]);var o=new CSSStyleSheet;o.replaceSync(s.toString());const l=o},9987:(e,t,n)=>{"use strict";var a=n(3822);function*i(e,t,n){(!n||n>e.length)&&(n=e.length);let a=0,i=0;for(;a<n&&i<e.length;)t(e[i])&&(yield e[i],a++),i++}function r(e){return function(e){for(var t=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],n=0;n<t.length;n++)e=e.replace(t[n].letters,t[n].base);return e}(e.trim().toLowerCase()).replace(/(\w) (\w)/g,"$1-$2")}var s=n(5567),o=function(e,t,n,a,i,r){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,l=a.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?a.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,a.name):{}),p=!1,h=n.length-1;h>=0;h--){var f={};for(var g in a)f[g]="access"===g?{}:a[g];for(var g in a.access)f.access[g]=a.access[g];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(e||null))};var m=(0,n[h])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===l?i.unshift(o):u[c]=o)}d&&Object.defineProperty(d,a.name,u),p=!0},l=function(e,t,n){for(var a=arguments.length>2,i=0;i<t.length;i++)n=a?t[i].call(e,n):t[i].call(e);return a?n:void 0};const c="ArrowUp",d="ArrowDown";(()=>{let e,t,n,u,p,h,f,g,m,v,b,y=[(0,a.uA)({selector:"pg-search",style:s.A,template:'<div part="grid"> <input part="input" type="text"/> <svg viewBox="0 0 24 24"><path d="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"/></svg> <div part="menu"> <ul part="list"></ul> <section part="empty"> <strong>No Results</strong> <a part="reqIcon" href="https://github.com/Templarian/MaterialDesign/issues/new?labels=Icon+Request&template=1_icon_request.md&title=" target="_blank"> Request an Icon <svg viewBox="0 0 24 24"><path fill="currentColor" d="M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z"/></svg> </a> <a part="reqDoc" href="https://github.com/Templarian/MaterialDesign/issues/new?labels=Documentation&template=6_doc_guide_request.md&title=" target="_blank"> Request Documentation <svg viewBox="0 0 24 24"><path fill="currentColor" d="M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z"/></svg> </a> </section> </div> </div>'})],w=[],x=HTMLElement,k=[],E=[],C=[],$=[],A=[],S=[],F=[],L=[],O=[],T=[],D=[],j=[],I=[],P=[],M=[],B=[],z=[],H=[];(class extends x{static{t=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(x[Symbol.metadata]??null):void 0;n=[(0,a.kv)()],u=[(0,a.kv)()],p=[(0,a.eS)()],h=[(0,a.eS)()],f=[(0,a.eS)()],g=[(0,a.eS)()],m=[(0,a.eS)()],v=[(0,a.eS)()],b=[(0,a.eS)()],o(null,null,n,{kind:"field",name:"items",static:!1,private:!1,access:{has:e=>"items"in e,get:e=>e.items,set:(e,t)=>{e.items=t}},metadata:i},k,E),o(null,null,u,{kind:"field",name:"icons",static:!1,private:!1,access:{has:e=>"icons"in e,get:e=>e.icons,set:(e,t)=>{e.icons=t}},metadata:i},C,$),o(null,null,p,{kind:"field",name:"$grid",static:!1,private:!1,access:{has:e=>"$grid"in e,get:e=>e.$grid,set:(e,t)=>{e.$grid=t}},metadata:i},A,S),o(null,null,h,{kind:"field",name:"$menu",static:!1,private:!1,access:{has:e=>"$menu"in e,get:e=>e.$menu,set:(e,t)=>{e.$menu=t}},metadata:i},F,L),o(null,null,f,{kind:"field",name:"$input",static:!1,private:!1,access:{has:e=>"$input"in e,get:e=>e.$input,set:(e,t)=>{e.$input=t}},metadata:i},O,T),o(null,null,g,{kind:"field",name:"$list",static:!1,private:!1,access:{has:e=>"$list"in e,get:e=>e.$list,set:(e,t)=>{e.$list=t}},metadata:i},D,j),o(null,null,m,{kind:"field",name:"$empty",static:!1,private:!1,access:{has:e=>"$empty"in e,get:e=>e.$empty,set:(e,t)=>{e.$empty=t}},metadata:i},I,P),o(null,null,v,{kind:"field",name:"$reqIcon",static:!1,private:!1,access:{has:e=>"$reqIcon"in e,get:e=>e.$reqIcon,set:(e,t)=>{e.$reqIcon=t}},metadata:i},M,B),o(null,null,b,{kind:"field",name:"$reqDoc",static:!1,private:!1,access:{has:e=>"$reqDoc"in e,get:e=>e.$reqDoc,set:(e,t)=>{e.$reqDoc=t}},metadata:i},z,H),o(null,e={value:t},y,{kind:"class",name:t.name,metadata:i},null,w),t=e.value,i&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i}),l(t,w)}items=l(this,k,[]);icons=(l(this,E),l(this,C,[]));$grid=(l(this,$),l(this,A,void 0));$menu=(l(this,S),l(this,F,void 0));$input=(l(this,L),l(this,O,void 0));$list=(l(this,T),l(this,D,void 0));$empty=(l(this,j),l(this,I,void 0));$reqIcon=(l(this,P),l(this,M,void 0));$reqDoc=(l(this,B),l(this,z,void 0));isOpen=(l(this,H),!1);isOver=!1;term="";keyIndex=-1;anchors=[];connectedCallback(){this.$input.addEventListener("input",this.handleInput.bind(this)),this.$input.addEventListener("focus",this.handleFocus.bind(this)),this.$input.addEventListener("blur",this.handleBlur.bind(this)),this.addEventListener("keydown",this.keydown.bind(this)),this.$list.addEventListener("mouseenter",this.handleListEnter.bind(this)),this.$list.addEventListener("mouseleave",this.handleListLeave.bind(this))}handleInput(e){const t=e.target,{value:n}=t;this.term=n,this.updateList()}handleFocus(){this.keyIndex=-1,this.updateList(),this.isOpen=!0,this.$menu.style.display="block",this.$grid.classList.add("active")}handleBlur(){this.isOver||(this.isOpen=!1,this.$menu.style.display="none",this.$grid.classList.remove("active"),this.keyIndex-=1)}keydown(e){switch(e.key){case d:this.keyIndex+=1,this.setActive(),e.preventDefault(),e.stopPropagation();break;case c:this.keyIndex-=1,this.setActive(),e.preventDefault(),e.stopPropagation()}}setActive(){-2===this.keyIndex&&(this.keyIndex=this.anchors.length-1),this.keyIndex===this.anchors.length&&(this.keyIndex=-1),-1===this.keyIndex?(this.$input.focus(),this.isOver=!1):(this.isOver=!0,this.anchors[this.keyIndex].focus())}handleListEnter(){this.isOver=!0}handleListLeave(){this.isOver=!1}highlight(e){var t=e;const n=document.createElement("span"),a=r(this.term);if(""===this.term)return n.innerText=e,n;for(;t;){var i=t.toLowerCase().indexOf(a);if(-1===i){const e=document.createElement("span");e.innerText=t.substr(0,t.length),n.appendChild(e),t=""}else{if(i>0){const e=document.createElement("span");e.innerText=t.substr(0,i),n.appendChild(e)}const e=document.createElement("strong");e.innerText=t.substr(i,a.length),n.appendChild(e),t=t.substr(i+a.length,t.length)}}return n}clearList(){for(;this.$list.firstChild;)this.$list.removeChild(this.$list.firstChild);this.anchors=[]}updateList(){this.clearList();let e=!1;const t=new RegExp(this.term,"i"),n=Array.from(i(this.items,(e=>e.name.match(t)),5));if(n.forEach(((t,a)=>{var i=document.createElement("li");i.classList.add("item"),i.classList.toggle("first",0===a),i.classList.toggle("last",a===n.length-1);var r=document.createElement("a");r.href=t.url;var s=this.highlight(t.name);r.appendChild(s);var o=document.createElement("span");o.innerText=t.type,o.classList.add("type"),r.appendChild(o),i.appendChild(r),this.$list.appendChild(i),this.anchors.push(r),e=!0})),""!==this.term){const t=function(e,t,n=5){t=r(t);const a=i(e,(e=>0===e.name?.toLowerCase().indexOf(t)),n),s=Array.from(a);let o=s.map((e=>e.id));if(s.length<n){var l=i(e,(e=>!o.includes(e.id)&&-1!==e.name?.toLowerCase().indexOf(t)),n-s.length);Array.from(l).forEach((e=>s.push(e)))}if(o=s.map((e=>e.id)),s.length<n){var c=i(e,(e=>{if(o.includes(e.id))return!1;for(var n=0,a=e.aliases.length;n<a;n++){if(null==e.aliases[n].name)return console.error(`Invalid alias in ${e.name}`),!1;if(-1!==e.aliases[n].name.indexOf(t))return e.aliases[n].match=!0,!0}return!1}),n-s.length);Array.from(c).forEach((e=>s.push(e)))}return function(e,t){for(var n=0,a=e.length;n<a;n++)if(e[n].name?.toLowerCase()===t)return e.unshift(e.splice(n,1)[0]),e;return e}(s,t)}(this.icons,this.term,5);if(t.length)(a=document.createElement("li")).innerText="Icons",a.classList.add("section"),this.$list.appendChild(a);if(t.forEach(((e,n)=>{var a=document.createElement("li");a.classList.add("icon"),a.classList.toggle("first",0===n),a.classList.toggle("last",n===t.length-1);var i=document.createElement("a");i.href=`/icon/${e.name}`;var r=e.aliases.reduce(((e,t)=>(t.match&&e.push(t.name||""),e)),[]),s="";r.length&&(s=` (${r.join(", ")})`);const o=this.highlight(`${e.name}${s}`),l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttribute("viewBox","0 0 24 24"),l.setAttribute("fill","currentColor");const c=document.createElementNS("http://www.w3.org/2000/svg","path");c.setAttribute("d",e.data),l.appendChild(c),i.appendChild(l),i.appendChild(o),a.appendChild(i),this.anchors.push(i),this.$list.appendChild(a)})),5===t.length){var a;(a=document.createElement("li")).classList.add("all");var s=document.createElement("a");s.href=`/icons?search=${this.term}`,s.appendChild(document.createTextNode('All results for "'));var o=document.createElement("strong");o.innerText=this.term,s.appendChild(o),s.appendChild(document.createTextNode('"')),a.appendChild(s),this.anchors.push(s),this.$list.appendChild(a)}t.length>0&&(e=!0)}e||(this.anchors.push(this.$reqIcon),this.anchors.push(this.$reqDoc)),this.$empty.classList.toggle("hide",e)}})})()}},t={};function n(a){var i=t[a];if(void 0!==i)return i.exports;var r=t[a]={id:a,exports:{}};return e[a](r,r.exports,n),r.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.b="undefined"!=typeof document&&document.baseURI||self.location.href,n(4725),n(8977),n(1017),n(1557),n(9638),n(9248),n(309),n(5284),n(3606),n(5455),n(4169),n(1651),n(1056),n(8261),n(4191),n(8111),n(944),n(2246),n(9915),n(2410),n(2248),n(136),n(2510),n(9878),n(9352),n(6485),n(7091),n(7033),n(2133),n(2424),n(8689),n(2281),n(4945),n(9496),n(1785),n(1244),n(6861),n(9700),n(4345),n(7541),n(5578),n(1718),n(1081),n(9786),n(1689),n(4797),n(9258),n(5958),n(9557),n(1833),n(1995),n(3532),n(300),n(2397),n(6079),n(8502),n(3364),n(5183),n(8519),n(8970),n(9826),n(361),n(3466),n(743),n(3380),n(5538),n(4337),n(3681),n(1193),n(3382),n(5465),n(5555),n(6303),n(7715),n(6030),n(6222),n(8784),n(1516),n(6005),n(5461),n(9661),n(4953),n(233),n(8290),n(2890),n(8564),n(305),n(9987),n(3588),n(2505),n(5852),n(4292),n(6421),n(1169),n(3513),n(7764),n(5659),n(1401),n(3410),n(9664),n(8496);n(4723)})();
|