timepiece/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_dom.js.map

1 line
47 KiB
Plaintext

{"version":3,"sources":[" [synthetic:es6/util/arrayiterator] "," [synthetic:es6/util/makeiterator] ","ts_src/platform/custom-event.ts","ts_src/platform/event-listener-options.ts","ts_src/platform/baseuri.ts","ts_src/platform/get-attribute-names.ts","ts_src/platform/matches.ts","ts_src/platform/parent-node/append.ts","ts_src/platform/parent-node/prepend.ts","ts_src/platform/parent-node/replace-children.ts","ts_src/platform/child-node/after.ts","ts_src/platform/child-node/before.ts","ts_src/platform/child-node/remove.ts","ts_src/platform/child-node/replace-with.ts","ts_src/platform/svg-element-class-list.ts","ts_src/platform/toggle-attribute.ts"],"names":["$jscomp.arrayIteratorImpl","e","document","createEvent","initEvent","preventDefault","defaultPrevented","origPreventDefault","Event","prototype","Event.prototype.preventDefault","cancelable","call","Object","defineProperty","get","configurable","isIE","test","navigator","userAgent","window","origEvent","inType","params","bubbles","i","CustomEvent","initCustomEvent","detail","MouseEvent","origMouseEvent","initMouseEvent","view","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","j","_a","supportsEventOptions","listener","callCount","supported","onceSupported","eventOptions","capture","once","d","createElement","addEventListener","fullySupported","dispatchEvent","removeEventListener","nativeEventTarget","EventTarget","Node","parseEventOptions","optionsOrCapture","origAddEventListener","origRemoveEventListener","captureListenerMap","WeakMap","listenerMap","getListenerMap","target","type","elMap","typeMap","undefined","set","Map","listeners","nativeEventTarget.prototype.addEventListener","options","map","has","cachedListener","delete","handleEvent","nativeEventTarget.prototype.removeEventListener","native_baseURI","getOwnPropertyDescriptor","base","ownerDocument","querySelector","href","location","enumerable","_b","Element_prototype","Element","attributesDescriptor","getAttributes","attributes","Array","hasOwnProperty","getAttributeNames","Element_prototype.getAttributeNames","attr","name","matches","webkitMatchesSelector","msMatchesSelector","nativeAppendChild","appendChild","installAppend","constructor","writable","value","append","args","$jscomp.makeIterator","arg","createTextNode","Document","DocumentFragment","nativeInsertBefore","insertBefore","nativeGetFirstChild","firstChild","installPrepend","prepend","newNode","nativeRemoveChild","removeChild","installReplaceChildren","replaceChildren","child","_c","_d","nativeGetParentNode","parentNode","nativeGetNextSibling","nextSibling","installAfter","after","CharacterData","installBefore","before","installRemove","remove","installReplaceWith","replaceWith","HTMLElement_prototype","HTMLElement","SVGElement_prototype","nativeHasAttribute","hasAttribute","nativeSetAttribute","setAttribute","nativeRemoveAttribute","removeAttribute","toggleAttribute","Element_prototype.toggleAttribute","force"],"mappings":"A;;;;;;;;;;;;;;;;;;;aA2B4B,QAAA,GAAQ,CAAC,CAAD,CAAQ,CAC1C,IAAI,EAAQ,CACZ,OAAO,SAAQ,EAAG,CAChB,MAAI,EAAJ,CAAY,CAAZ,CAAkB,MAAlB,CACS,CACL,KAAM,CAAA,CADD,CAEL,MAAO,CAAA,CAAM,CAAA,EAAN,CAFF,CADT,CAMS,CAAC,KAAM,CAAA,CAAP,CAPO,CAFwB,CCGrB,QAAA,EAAQ,CAAC,CAAD,CAAW,CAExC,IAAI,EAAoC,WAApC,EAAmB,MAAO,OAA1B,EAAmD,MAAnD,CAA0D,QAA1D,EACmB,CAAD,CAAW,MAAX,CAAkB,QAAlB,CACtB,OAAO,EAAA,CAAmB,CAAA,CAAiB,IAAjB,CAAsB,CAAtB,CAAnB,CDc6B,CAAC,KAAMA,EAAA,CCbM,CDaN,CAAP,CClBI,CCdxC,IAAMC,EAAIC,QAAA,CAASC,WAAT,CAAqB,OAArB,CACVF,EAAA,CAAEG,SAAF,CAAY,KAAZ,CAAmB,CAAA,CAAnB,CAAyB,CAAA,CAAzB,CACAH,EAAA,CAAEI,cAAF,EAIF;GAAI,CAHKJ,CAGL,CAHOK,gBAGX,CAA8B,CAC5B,IAAMC,GAAqBC,KAArBD,CAA2BE,SAA3BF,CAAqCF,cAC3CG,MAAA,CAAMC,SAAN,CAAgBJ,cAAhB,CAAiCK,QAAA,EAAA,CAC1B,IAAL,CAAUC,UAAV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D,OAArB0D,CAA6BlJ,SAA7BkJ,CAAuCC,YAF7C,CAGMC,GAAwB5D,OAAxB4D,CAAgCpJ,SAAhCoJ,CAA0CC,eAE3C9D,GAAA,CAAkBM,cAAlB,CAAiC,iBAAjC,CAAL,GACEN,EADF,CACoB+D,eADpB,CACsCC,QAAwB,CAE1DtD,CAF0D,CAG1DuD,CAH0D,CAG3C,CAEf,GAActF,IAAAA,EAAd,GAAIsF,CAAJ,CAAyB,CACvB,GAAIR,EAAA,CAAmB7I,IAAnB,CAAwB,IAAxB,CAA8B8F,CAA9B,CAAJ,CAEE,MADAmD,GAAA,CAAsBjJ,IAAtB,CAA2B,IAA3B,CAAiC8F,CAAjC,CACO,CAAA,CAAA,CAEPiD,GAAA,CAAmB/I,IAAnB,CAAwB,IAAxB,CAA8B8F,CAA9B,CAAoC,EAApC,CACA,OAAO,CAAA,CANc,CASzB,GAAIuD,CAAJ,CAIE,MAHKR,GAAA,CAAmB7I,IAAnB,CAAwB,IAAxB,CAA8B8F,CAA9B,CAGE,EAFLiD,EAAA,CAAmB/I,IAAnB,CAAwB,IAAxB,CAA8B8F,CAA9B,CAAoC,EAApC,CAEK,CAAA,CAAA,CAGTmD,GAAA,CAAsBjJ,IAAtB,CAA2B,IAA3B,CAAiC8F,CAAjC,CACA,OAAO,CAAA,CAnBQ,CAJnB,C","file":"webcomponents-pf_dom.js","sourcesContent":[null,null,"/**\n * @license\n * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt The complete set of authors may be found\n * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may\n * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by\n * Google as part of the polymer project is also subject to an additional IP\n * rights grant found at http://polymer.github.io/PATENTS.txt\n */\n\nexport {};\n\n// defaultPrevented is broken in IE.\n// https://connect.microsoft.com/IE/feedback/details/790389/event-defaultprevented-returns-false-after-preventdefault-was-called\nconst workingDefaultPrevented = (() => {\n const e = document.createEvent('Event');\n e.initEvent('foo', true, true);\n e.preventDefault();\n return e.defaultPrevented;\n})();\n\nif (!workingDefaultPrevented) {\n const origPreventDefault = Event.prototype.preventDefault;\n Event.prototype.preventDefault = function (this: Event) {\n if (!this.cancelable) {\n return;\n }\n\n origPreventDefault.call(this);\n\n Object.defineProperty(this, 'defaultPrevented', {\n get() {\n return true;\n },\n configurable: true,\n });\n };\n}\n\nconst isIE = /Trident/.test(navigator.userAgent);\n\n// Event constructor shim\nif (!window.Event || (isIE && typeof window.Event !== 'function')) {\n const origEvent = window.Event as typeof Event;\n window['Event'] = (((inType: string, params?: EventInit) => {\n params = params || {};\n const e = document.createEvent('Event');\n e.initEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable));\n return e;\n }) as unknown) as typeof Event;\n if (origEvent) {\n for (const i in origEvent) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (window['Event'] as any)[i] = (origEvent as any)[i];\n }\n window['Event'].prototype = origEvent.prototype;\n }\n}\n\n// CustomEvent constructor shim\nif (!window.CustomEvent || (isIE && typeof window.CustomEvent !== 'function')) {\n window['CustomEvent'] = ((<T>(\n inType: string,\n params?: CustomEventInit<T>\n ) => {\n params = params || {};\n const e: CustomEvent<T> = document.createEvent('CustomEvent');\n e.initCustomEvent(\n inType,\n Boolean(params.bubbles),\n Boolean(params.cancelable),\n params.detail!\n );\n return e;\n }) as unknown) as typeof CustomEvent;\n window['CustomEvent'].prototype = window.Event.prototype as CustomEvent;\n}\n\nif (!window.MouseEvent || (isIE && typeof window.MouseEvent !== 'function')) {\n const origMouseEvent = window.MouseEvent as typeof MouseEvent;\n window['MouseEvent'] = (((inType: string, params?: MouseEventInit) => {\n params = params || {};\n const e = document.createEvent('MouseEvent');\n e.initMouseEvent(\n inType,\n Boolean(params.bubbles),\n Boolean(params.cancelable),\n params.view || window,\n params.detail!,\n params.screenX!,\n params.screenY!,\n params.clientX!,\n params.clientY!,\n params.ctrlKey!,\n params.altKey!,\n params.shiftKey!,\n params.metaKey!,\n params.button!,\n params.relatedTarget!\n );\n return e;\n }) as unknown) as typeof MouseEvent;\n if (origMouseEvent) {\n for (const j in origMouseEvent) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (window.MouseEvent as any)[j] = (origMouseEvent as any)[j];\n }\n }\n window['MouseEvent'].prototype = origMouseEvent.prototype;\n}\n","/**\n * @license\n * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt The complete set of authors may be found\n * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may\n * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by\n * Google as part of the polymer project is also subject to an additional IP\n * rights grant found at http://polymer.github.io/PATENTS.txt\n */\n\nexport {};\n\n// Older browsers like IE do not support an object as the options parameter\n// to add/removeEventListener.\n// https://connect.microsoft.com/IE/feedback/details/790389/event-defaultprevented-returns-false-after-preventdefault-was-called\nconst supportsEventOptions = (() => {\n let supported = false;\n let onceSupported = false;\n const eventOptions = {\n get capture() {\n supported = true;\n return true;\n },\n\n get once() {\n onceSupported = true;\n return true;\n },\n };\n let callCount = 0;\n const listener = () => {\n callCount++;\n };\n const d = document.createElement('div');\n // NOTE: These will be unpatched at this point.\n d.addEventListener('click', listener, eventOptions);\n let fullySupported = supported && onceSupported;\n // Once + capture broken on Edge >= 17 < 79.\n if (fullySupported) {\n d.dispatchEvent(new Event('click'));\n d.dispatchEvent(new Event('click'));\n fullySupported = callCount == 1;\n }\n d.removeEventListener('click', listener, eventOptions);\n return fullySupported;\n})();\n\nconst nativeEventTarget = window.EventTarget ?? window.Node;\n\nif (\n !supportsEventOptions &&\n 'addEventListener' in nativeEventTarget.prototype\n) {\n const parseEventOptions = (\n optionsOrCapture?: boolean | AddEventListenerOptions\n ) => {\n let capture, once;\n if (\n optionsOrCapture &&\n (typeof optionsOrCapture === 'object' ||\n typeof optionsOrCapture === 'function')\n ) {\n capture = Boolean((optionsOrCapture as AddEventListenerOptions).capture);\n once = Boolean((optionsOrCapture as AddEventListenerOptions).once);\n } else {\n capture = Boolean(optionsOrCapture);\n once = false;\n }\n return {\n capture,\n once,\n };\n };\n\n const origAddEventListener = nativeEventTarget.prototype.addEventListener;\n const origRemoveEventListener =\n nativeEventTarget.prototype.removeEventListener;\n\n type ListenerMap = WeakMap<\n EventListenerOrEventListenerObject,\n EventListenerOrEventListenerObject | null\n >;\n type TypeMap = Map<string, ListenerMap>;\n type ElementListenerMap = WeakMap<EventTarget, TypeMap>;\n\n const captureListenerMap: ElementListenerMap = new WeakMap();\n const listenerMap: ElementListenerMap = new WeakMap();\n\n const getListenerMap = (\n target: EventTarget,\n type: string,\n capture: boolean\n ) => {\n const elMap = capture ? captureListenerMap : listenerMap;\n let typeMap = elMap.get(target);\n if (typeMap === undefined) {\n elMap.set(target, (typeMap = new Map()));\n }\n let listeners = typeMap.get(type);\n if (listeners === undefined) {\n typeMap.set(type, (listeners = new WeakMap()));\n }\n return listeners;\n };\n\n nativeEventTarget.prototype.addEventListener = function (\n type: string,\n listener: EventListenerOrEventListenerObject | null,\n options?: boolean | AddEventListenerOptions | undefined\n ) {\n if (listener == null) {\n return;\n }\n const {capture, once} = parseEventOptions(options);\n const map = getListenerMap(this, type, capture);\n if (!map.has(listener)) {\n const cachedListener = once\n ? (e: Event) => {\n map.delete(listener);\n origRemoveEventListener.call(this, type, cachedListener, capture);\n if (typeof listener === 'function') {\n return listener.call(this, e);\n }\n\n if (typeof listener?.handleEvent === 'function') {\n return listener.handleEvent(e);\n }\n }\n : null;\n map.set(listener, cachedListener);\n // Note, the cached listener is null if no wrapper is used to avoid\n // a strong ref to it;\n origAddEventListener.call(\n this,\n type,\n cachedListener ?? listener,\n capture\n );\n }\n };\n\n nativeEventTarget.prototype.removeEventListener = function (\n type: string,\n listener: EventListenerOrEventListenerObject | null,\n options?: boolean | AddEventListenerOptions | undefined\n ) {\n if (listener == null) {\n return;\n }\n const {capture} = parseEventOptions(options);\n const map = getListenerMap(this, type, capture);\n const cachedListener = map.get(listener);\n if (cachedListener !== undefined) {\n map.delete(listener);\n // Note, the cached listener is null if no wrapper was used so that a\n // strong ref to it is not kept.\n origRemoveEventListener.call(\n this,\n type,\n cachedListener ?? listener,\n capture\n );\n }\n };\n}\n","/**\n@license\nCopyright (c) 2018 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\n\nexport {};\n\n// Implement Node.baseURI for IE 11\n// adapted from\n// https://github.com/webcomponents/html-imports/blob/v1.2.0/src/html-imports.js\n\nconst native_baseURI = Object.getOwnPropertyDescriptor(\n Node.prototype,\n 'baseURI'\n);\nif (!native_baseURI) {\n Object.defineProperty(Node.prototype, 'baseURI', {\n get(this: Node): string {\n // this.ownerDocument is `null` for documents\n const doc = this.ownerDocument || (this as Document);\n const base = doc.querySelector('base[href]') as HTMLBaseElement;\n return (base && base.href) || window.location.href;\n },\n configurable: true,\n enumerable: true,\n });\n}\n","/**\n@license\nCopyright (c) 2020 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\n\nexport {};\n\nconst Element_prototype = Element.prototype;\n// In IE11, the `attributes` descriptor is on `Node.prototype`.\nconst attributesDescriptor =\n Object.getOwnPropertyDescriptor(Element_prototype, 'attributes') ??\n Object.getOwnPropertyDescriptor(Node.prototype, 'attributes');\n// In Safari 9, the `attributes` descriptor's getter is undefined. In Chrome 41,\n// the `attributes` descriptor is a data descriptor on each Element instance.\nconst getAttributes =\n attributesDescriptor?.get ??\n function (this: Element) {\n return this.attributes;\n };\nconst map = Array.prototype.map;\n\nif (!Element_prototype.hasOwnProperty('getAttributeNames')) {\n Element_prototype.getAttributeNames = function getAttributeNames(\n this: Element\n ): Array<string> {\n return map.call(\n getAttributes.call(this),\n (attr) => attr.name\n ) as Array<string>;\n };\n}\n","/**\n@license\nCopyright (c) 2020 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\n\nexport {};\n\nconst Element_prototype = Element.prototype;\n\nif (!Element_prototype.hasOwnProperty('matches')) {\n Element_prototype.matches =\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ((Element_prototype as any).webkitMatchesSelector as Element['matches']) ??\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ((Element_prototype as any).msMatchesSelector as Element['matches']);\n}\n","/**\n@license\nCopyright (c) 2020 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\n\nexport {};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype Constructor<T> = new (...args: Array<any>) => T;\n\nconst nativeAppendChild = Node.prototype.appendChild;\n\nconst installAppend = <T>(constructor: Constructor<T>) => {\n const prototype = constructor.prototype;\n if (prototype.hasOwnProperty('append')) {\n return;\n }\n\n Object.defineProperty(prototype, 'append', {\n configurable: true,\n enumerable: true,\n writable: true,\n value: function append(...args: Array<Node | string>) {\n for (const arg of args) {\n nativeAppendChild.call(\n this,\n typeof arg === 'string' ? document.createTextNode(arg) : arg\n );\n }\n },\n });\n};\n\ninstallAppend(Document);\ninstallAppend(DocumentFragment);\ninstallAppend(Element);\n","/**\n@license\nCopyright (c) 2020 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\n\nexport {};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype Constructor<T> = new (...args: Array<any>) => T;\n\nconst nativeInsertBefore = Node.prototype.insertBefore;\nconst nativeGetFirstChild =\n // In Chrome 41, `firstChild` is a data descriptor on every instance, not a\n // accessor descriptor on `Node.prototype`.\n Object.getOwnPropertyDescriptor(Node.prototype, 'firstChild')?.get ??\n // In Safari 9, the `firstChild` descriptor's `get` and `set` are undefined.\n function (this: Node) {\n return this.firstChild;\n };\n\nconst installPrepend = <T>(constructor: Constructor<T>) => {\n const prototype = constructor.prototype;\n if (prototype.hasOwnProperty('prepend')) {\n return;\n }\n\n Object.defineProperty(prototype, 'prepend', {\n configurable: true,\n enumerable: true,\n writable: true,\n value: function prepend(...args: Array<Node | string>) {\n const firstChild = nativeGetFirstChild.call(this);\n for (const arg of args) {\n const newNode =\n typeof arg === 'string' ? document.createTextNode(arg) : arg;\n nativeInsertBefore.call(this, newNode, firstChild);\n }\n },\n });\n};\n\ninstallPrepend(Document);\ninstallPrepend(DocumentFragment);\ninstallPrepend(Element);\n","/**\n@license\nCopyright (c) 2020 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\n\nexport {};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype Constructor<T> = new (...args: Array<any>) => T;\n\nconst nativeAppendChild = Node.prototype.appendChild;\nconst nativeRemoveChild = Node.prototype.removeChild;\nconst nativeGetFirstChild =\n // In Chrome 41, `firstChild` is a data descriptor on every instance, not a\n // accessor descriptor on `Node.prototype`.\n Object.getOwnPropertyDescriptor(Node.prototype, 'firstChild')?.get ??\n // In Safari 9, the `firstChild` descriptor's `get` and `set` are undefined.\n function (this: Node) {\n return this.firstChild;\n };\n\nconst installReplaceChildren = <T>(constructor: Constructor<T>) => {\n const prototype = constructor.prototype;\n if (prototype.hasOwnProperty('replaceChildren')) {\n return;\n }\n\n Object.defineProperty(prototype, 'replaceChildren', {\n configurable: true,\n enumerable: true,\n writable: true,\n value: function replaceChildren(...args: Array<Node | string>) {\n let child;\n while ((child = nativeGetFirstChild.call(this)) !== null) {\n nativeRemoveChild.call(this, child);\n }\n\n for (const arg of args) {\n nativeAppendChild.call(\n this,\n typeof arg === 'string' ? document.createTextNode(arg) : arg\n );\n }\n },\n });\n};\n\ninstallReplaceChildren(Document);\ninstallReplaceChildren(DocumentFragment);\ninstallReplaceChildren(Element);\n","/**\n@license\nCopyright (c) 2020 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\n\nexport {};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype Constructor<T> = new (...args: Array<any>) => T;\n\nconst nativeInsertBefore = Node.prototype.insertBefore;\nconst nativeGetParentNode =\n Object.getOwnPropertyDescriptor(Node.prototype, 'parentNode')?.get ??\n // In Safari 9, the `parentNode` descriptor's `get` and `set` are undefined.\n function (this: Node) {\n return this.parentNode;\n };\nconst nativeGetNextSibling =\n Object.getOwnPropertyDescriptor(Node.prototype, 'nextSibling')?.get ??\n // In Safari 9, the `nextSibling` descriptor's `get` and `set` are\n // undefined.\n function (this: Node) {\n return this.nextSibling;\n };\n\nconst installAfter = <T>(constructor: Constructor<T>) => {\n const prototype = constructor.prototype;\n if (prototype.hasOwnProperty('after')) {\n return;\n }\n\n Object.defineProperty(prototype, 'after', {\n configurable: true,\n enumerable: true,\n writable: true,\n value: function after(...args: Array<Node | string>) {\n const parentNode = nativeGetParentNode.call(this);\n if (parentNode === null) {\n return;\n }\n\n const nextSibling = nativeGetNextSibling.call(this);\n for (const arg of args) {\n nativeInsertBefore.call(\n parentNode,\n typeof arg === 'string' ? document.createTextNode(arg) : arg,\n nextSibling\n );\n }\n },\n });\n};\n\ninstallAfter(CharacterData);\ninstallAfter(Element);\n","/**\n@license\nCopyright (c) 2020 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\n\nexport {};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype Constructor<T> = new (...args: Array<any>) => T;\n\nconst nativeInsertBefore = Node.prototype.insertBefore;\nconst nativeGetParentNode =\n Object.getOwnPropertyDescriptor(Node.prototype, 'parentNode')?.get ??\n // In Safari 9, the `parentNode` descriptor's `get` and `set` are undefined.\n function (this: Node) {\n return this.parentNode;\n };\n\nconst installBefore = <T>(constructor: Constructor<T>) => {\n const prototype = constructor.prototype;\n if (prototype.hasOwnProperty('before')) {\n return;\n }\n\n Object.defineProperty(prototype, 'before', {\n configurable: true,\n enumerable: true,\n writable: true,\n value: function before(...args: Array<Node | string>) {\n const parentNode = nativeGetParentNode.call(this);\n if (parentNode === null) {\n return;\n }\n\n for (const arg of args) {\n nativeInsertBefore.call(\n parentNode,\n typeof arg === 'string' ? document.createTextNode(arg) : arg,\n this\n );\n }\n },\n });\n};\n\ninstallBefore(CharacterData);\ninstallBefore(Element);\n","/**\n@license\nCopyright (c) 2020 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\n\nexport {};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype Constructor<T> = new (...args: Array<any>) => T;\n\nconst nativeRemoveChild = Node.prototype.removeChild;\nconst nativeGetParentNode =\n Object.getOwnPropertyDescriptor(Node.prototype, 'parentNode')?.get ??\n // In Safari 9, the `parentNode` descriptor's `get` and `set` are undefined.\n function (this: Node) {\n return this.parentNode;\n };\n\nconst installRemove = <T>(constructor: Constructor<T>) => {\n const prototype = constructor.prototype;\n if (prototype.hasOwnProperty('remove')) {\n return;\n }\n\n Object.defineProperty(prototype, 'remove', {\n configurable: true,\n enumerable: true,\n writable: true,\n value: function remove() {\n const parentNode = nativeGetParentNode.call(this);\n if (parentNode) {\n nativeRemoveChild.call(parentNode, this);\n }\n },\n });\n};\n\ninstallRemove(CharacterData);\ninstallRemove(Element);\n","/**\n@license\nCopyright (c) 2020 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\n\nexport {};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype Constructor<T> = new (...args: Array<any>) => T;\n\nconst nativeInsertBefore = Node.prototype.insertBefore;\nconst nativeRemoveChild = Node.prototype.removeChild;\nconst nativeGetParentNode =\n Object.getOwnPropertyDescriptor(Node.prototype, 'parentNode')?.get ??\n // In Safari 9, the `parentNode` descriptor's `get` and `set` are undefined.\n function (this: Node) {\n return this.parentNode;\n };\n\nconst installReplaceWith = <T>(constructor: Constructor<T>) => {\n const prototype = constructor.prototype;\n if (prototype.hasOwnProperty('replaceWith')) {\n return;\n }\n\n Object.defineProperty(prototype, 'replaceWith', {\n configurable: true,\n enumerable: true,\n writable: true,\n value: function replaceWith(...args: Array<Node | string>) {\n const parentNode = nativeGetParentNode.call(this);\n if (parentNode === null) {\n return;\n }\n\n for (const arg of args) {\n nativeInsertBefore.call(\n parentNode,\n typeof arg === 'string' ? document.createTextNode(arg) : arg,\n this\n );\n }\n\n nativeRemoveChild.call(parentNode, this);\n },\n });\n};\n\ninstallReplaceWith(CharacterData);\ninstallReplaceWith(Element);\n","/**\n@license\nCopyright (c) 2020 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\n\nexport {};\n\nconst Element_prototype = window.Element.prototype;\nconst HTMLElement_prototype = window.HTMLElement.prototype;\nconst SVGElement_prototype = window['SVGElement'].prototype;\n\n// Thanks to @justinfagnani for finding this:\n//\n// In IE11, `classList` is only supported on `HTMLElement` instances: the\n// descriptor is an own property of `HTMLElement.prototype` and is an accessor\n// descriptor with `set` as `undefined` and no `get`. However, it seems to be\n// implemented generically enough such that copying it to something in the\n// prototype chain of `SVGElement` correctly adds support for `classList` (as\n// far as `DOMTokenList` implemented in IE11).\nif (\n HTMLElement_prototype.hasOwnProperty('classList') &&\n !Element_prototype.hasOwnProperty('classList') &&\n !SVGElement_prototype.hasOwnProperty('classList')\n) {\n Object.defineProperty(\n Element_prototype,\n 'classList',\n Object.getOwnPropertyDescriptor(HTMLElement_prototype, 'classList')!\n );\n}\n","/**\n@license\nCopyright (c) 2020 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\n\nexport {};\n\nconst Element_prototype = Element.prototype;\nconst nativeHasAttribute = Element.prototype.hasAttribute;\nconst nativeSetAttribute = Element.prototype.setAttribute;\nconst nativeRemoveAttribute = Element.prototype.removeAttribute;\n\nif (!Element_prototype.hasOwnProperty('toggleAttribute')) {\n Element_prototype.toggleAttribute = function toggleAttribute(\n this: Element,\n name: string,\n force?: boolean\n ): boolean {\n if (force === undefined) {\n if (nativeHasAttribute.call(this, name)) {\n nativeRemoveAttribute.call(this, name);\n return false;\n } else {\n nativeSetAttribute.call(this, name, '');\n return true;\n }\n }\n if (force) {\n if (!nativeHasAttribute.call(this, name)) {\n nativeSetAttribute.call(this, name, '');\n }\n return true;\n }\n // force is falsey\n nativeRemoveAttribute.call(this, name);\n return false;\n };\n}\n"]}