2 "undefined"==typeof WeakMap&&!function(){var a=Object.defineProperty,b=Date.now(
)%1e9,c=function(){this.name="__st"+(1e9*Math.random()>>>0)+(b++ +"__")};c.proto
type={set:function(b,c){var d=b[this.name];d&&d[0]===b?d[1]=c:a(b,this.name,{val
ue:[b,c],writable:!0})},get:function(a){var b;return(b=a[this.name])&&b[0]===a?b
[1]:void 0},"delete":function(a){this.set(a,void 0)}},window.WeakMap=c}(),"undef
ined"==typeof document||"classList"in document.createElement("a")||!function(a){
"use strict";if("HTMLElement"in a||"Element"in a){var b="classList",c="prototype
",d=(a.HTMLElement||a.Element)[c],e=Object,f=String[c].trim||function(){return t
his.replace(/^\s+|\s+$/g,"")},g=Array[c].indexOf||function(a){for(var b=0,c=this
.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1},h=function(a,b){thi
s.name=a,this.code=DOMException[a],this.message=b},i=function(a,b){if(""===b)thr
ow new h("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test
(b))throw new h("INVALID_CHARACTER_ERR","String contains an invalid character");
return g.call(a,b)},j=function(a){for(var b=f.call(a.className),c=b?b.split(/\s+
/):[],d=0,e=c.length;e>d;d++)this.push(c[d]);this._updateClassName=function(){a.
className=this.toString()}},k=j[c]=[],l=function(){return new j(this)};if(h[c]=E
rror[c],k.item=function(a){return this[a]||null},k.contains=function(a){return a
+="",-1!==i(this,a)},k.add=function(){var a,b=arguments,c=0,d=b.length,e=!1;do a
=b[c]+"",-1===i(this,a)&&(this.push(a),e=!0);while(++c<d);e&&this._updateClassNa
me()},k.remove=function(){var a,b=arguments,c=0,d=b.length,e=!1;do{a=b[c]+"";var
f=i(this,a);-1!==f&&(this.splice(f,1),e=!0)}while(++c<d);e&&this._updateClassNa
me()},k.toggle=function(a,b){a+="";var c=this.contains(a),d=c?b!==!0&&"remove":b
!==!1&&"add";return d&&this[d](a),!c},k.toString=function(){return this.join(" "
)},e.defineProperty){var m={get:l,enumerable:!0,configurable:!0};try{e.definePro
perty(d,b,m)}catch(n){-2146823252===n.number&&(m.enumerable=!1,e.defineProperty(
d,b,m))}}else e[c].__defineGetter__&&d.__defineGetter__(b,l)}}(self),"undefined"
==typeof WeakMap&&!function(){var a=Object.defineProperty,b=Date.now()%1e9,c=fun
ction(){this.name="__st"+(1e9*Math.random()>>>0)+(b++ +"__")};c.prototype={set:f
unction(b,c){var d=b[this.name];d&&d[0]===b?d[1]=c:a(b,this.name,{value:[b,c],wr
itable:!0})},get:function(a){var b;return(b=a[this.name])&&b[0]===a?b[1]:void 0}
,"delete":function(a){this.set(a,void 0)}},window.WeakMap=c}(),function(a){a=a||
{},a.external=a.external||{};var b={shadow:function(a){return a?a.shadowRoot||a.
webkitShadowRoot:void 0},canTarget:function(a){return a&&Boolean(a.elementFromPo
int)},targetingShadow:function(a){var b=this.shadow(a);return this.canTarget(b)?
b:void 0},olderShadow:function(a){var b=a.olderShadowRoot;if(!b){var c=a.querySe
lector("shadow");c&&(b=c.olderShadowRoot)}return b},allShadows:function(a){for(v
ar b=[],c=this.shadow(a);c;)b.push(c),c=this.olderShadow(c);return b},searchRoot
:function(a,b,c){if(a){var d,e,f=a.elementFromPoint(b,c);for(e=this.targetingSha
dow(f);e;){if(d=e.elementFromPoint(b,c)){var g=this.targetingShadow(d);return th
is.searchRoot(g,b,c)||d}e=this.olderShadow(e)}return f}},owner:function(a){for(v
ar b=a;b.parentNode;)b=b.parentNode;return b.nodeType!=Node.DOCUMENT_NODE&&b.nod
eType!=Node.DOCUMENT_FRAGMENT_NODE&&(b=document),b},findTarget:function(a){var b
=a.clientX,c=a.clientY,d=this.owner(a.target);return d.elementFromPoint(b,c)||(d
=document),this.searchRoot(d,b,c)}};a.targetFinding=b,a.findTarget=b.findTarget.
bind(b),window.PointerEventsPolyfill=a}(window.PointerEventsPolyfill),function()
{function a(a){return"body ^^ "+b(a)}function b(a){return'[touch-action="'+a+'"]
'}function c(a){return"{ -ms-touch-action: "+a+"; touch-action: "+a+"; touch-act
ion-delay: none; }"}var d=["none","auto","pan-x","pan-y",{rule:"pan-x pan-y",sel
ectors:["pan-x pan-y","pan-y pan-x"]}],e="";d.forEach(function(d){String(d)===d?
(e+=b(d)+c(d)+"\n",e+=a(d)+c(d)+"\n"):(e+=d.selectors.map(b)+c(d.rule)+"\n",e+=d
.selectors.map(a)+c(d.rule)+"\n")});var f=document.createElement("style");f.text
Content=e,document.head.appendChild(f)}(),function(a){function b(a,e){e=e||{};va
r f;if(e.buttons||d)f=e.buttons;else switch(e.which){case 1:f=1;break;case 2:f=4
;break;case 3:f=2;break;default:f=0}var i;if(c)i=new MouseEvent(a,e);else{i=docu
ment.createEvent("MouseEvent");for(var j,k={},l=0;l<g.length;l++)j=g[l],k[j]=e[j
]||h[l];i.initMouseEvent(a,k.bubbles,k.cancelable,k.view,k.detail,k.screenX,k.sc
reenY,k.clientX,k.clientY,k.ctrlKey,k.altKey,k.shiftKey,k.metaKey,k.button,k.rel
atedTarget)}i.__proto__=b.prototype,d||Object.defineProperty(i,"buttons",{get:fu
nction(){return f},enumerable:!0});var m=0;return m=e.pressure?e.pressure:f?.5:0
,Object.defineProperties(i,{pointerId:{value:e.pointerId||0,enumerable:!0},width
:{value:e.width||0,enumerable:!0},height:{value:e.height||0,enumerable:!0},press
ure:{value:m,enumerable:!0},tiltX:{value:e.tiltX||0,enumerable:!0},tiltY:{value:
e.tiltY||0,enumerable:!0},pointerType:{value:e.pointerType||"",enumerable:!0},hw
Timestamp:{value:e.hwTimestamp||0,enumerable:!0},isPrimary:{value:e.isPrimary||!
1,enumerable:!0}}),i}var c=!1,d=!1;try{var e=new MouseEvent("click",{buttons:1})
;c=!0,d=1===e.buttons}catch(f){}var g=["bubbles","cancelable","view","detail","s
creenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","b
utton","relatedTarget"],h=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null];b.prototy
pe=Object.create(MouseEvent.prototype),a.PointerEvent||(a.PointerEvent=b)}(windo
w),function(a){function b(){if(c){var a=new Map;return a.pointers=d,a}this.keys=
[],this.values=[]}var c=window.Map&&window.Map.prototype.forEach,d=function(){re
turn this.size};b.prototype={set:function(a,b){var c=this.keys.indexOf(a);c>-1?t
his.values[c]=b:(this.keys.push(a),this.values.push(b))},has:function(a){return
this.keys.indexOf(a)>-1},"delete":function(a){var b=this.keys.indexOf(a);b>-1&&(
this.keys.splice(b,1),this.values.splice(b,1))},get:function(a){var b=this.keys.
indexOf(a);return this.values[b]},clear:function(){this.keys.length=0,this.value
s.length=0},forEach:function(a,b){this.values.forEach(function(c,d){a.call(b,c,t
his.keys[d],this)},this)},pointers:function(){return this.keys.length}},a.Pointe
rMap=b}(window.PointerEventsPolyfill),function(a){var b=["bubbles","cancelable",
"view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shif
tKey","metaKey","button","relatedTarget","buttons","pointerId","width","height",
"pressure","tiltX","tiltY","pointerType","hwTimestamp","isPrimary","type","targe
t","currentTarget","which"],c=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,
0,0,0,0,"",0,!1,"",null,null,0],d="undefined"!=typeof SVGElementInstance,e={targ
ets:new WeakMap,handledEvents:new WeakMap,pointermap:new a.PointerMap,eventMap:{
},eventSources:{},eventSourceList:[],registerSource:function(a,b){var c=b,d=c.ev
ents;d&&(d.forEach(function(a){c[a]&&(this.eventMap[a]=c[a].bind(c))},this),this
.eventSources[a]=c,this.eventSourceList.push(c))},register:function(a){for(var b
,c=this.eventSourceList.length,d=0;c>d&&(b=this.eventSourceList[d]);d++)b.regist
er.call(b,a)},unregister:function(a){for(var b,c=this.eventSourceList.length,d=0
;c>d&&(b=this.eventSourceList[d]);d++)b.unregister.call(b,a)},contains:a.externa
l.contains||function(a,b){return a.contains(b)},down:function(a){a.bubbles=!0,th
is.fireEvent("pointerdown",a)},move:function(a){a.bubbles=!0,this.fireEvent("poi
ntermove",a)},up:function(a){a.bubbles=!0,this.fireEvent("pointerup",a)},enter:f
unction(a){a.bubbles=!1,this.fireEvent("pointerenter",a)},leave:function(a){a.bu
bbles=!1,this.fireEvent("pointerleave",a)},over:function(a){a.bubbles=!0,this.fi
reEvent("pointerover",a)},out:function(a){a.bubbles=!0,this.fireEvent("pointerou
t",a)},cancel:function(a){a.bubbles=!0,this.fireEvent("pointercancel",a)},leaveO
ut:function(a){this.out(a),this.contains(a.target,a.relatedTarget)||this.leave(a
)},enterOver:function(a){this.over(a),this.contains(a.target,a.relatedTarget)||t
his.enter(a)},eventHandler:function(a){if(!this.handledEvents.get(a)){var b=a.ty
pe,c=this.eventMap&&this.eventMap[b];c&&c(a),this.handledEvents.set(a,!0)}},list
en:function(a,b){b.forEach(function(b){this.addEvent(a,b)},this)},unlisten:funct
ion(a,b){b.forEach(function(b){this.removeEvent(a,b)},this)},addEvent:a.external
.addEvent||function(a,b){a.addEventListener(b,this.boundHandler)},removeEvent:a.
external.removeEvent||function(a,b){a.removeEventListener(b,this.boundHandler)},
makeEvent:function(a,b){this.captureInfo&&(b.relatedTarget=null);var c=new Point
erEvent(a,b);return b.preventDefault&&(c.preventDefault=b.preventDefault),this.t
argets.set(c,this.targets.get(b)||b.target),c},fireEvent:function(a,b){var c=thi
s.makeEvent(a,b);return this.dispatchEvent(c)},cloneEvent:function(a){for(var e,
f={},g=0;g<b.length;g++)e=b[g],f[e]=a[e]||c[g],!d||"target"!==e&&"relatedTarget"
!==e||f[e]instanceof SVGElementInstance&&(f[e]=f[e].correspondingUseElement);ret
urn a.preventDefault&&(f.preventDefault=function(){a.preventDefault()}),f},getTa
rget:function(a){return this.captureInfo&&this.captureInfo.id===a.pointerId?this
.captureInfo.target:this.targets.get(a)},setCapture:function(a,b){this.captureIn
fo&&this.releaseCapture(this.captureInfo.id),this.captureInfo={id:a,target:b};va
r c=new PointerEvent("gotpointercapture",{bubbles:!0});this.implicitRelease=this
.releaseCapture.bind(this,a),document.addEventListener("pointerup",this.implicit
Release),document.addEventListener("pointercancel",this.implicitRelease),this.ta
rgets.set(c,b),this.asyncDispatchEvent(c)},releaseCapture:function(a){if(this.ca
ptureInfo&&this.captureInfo.id===a){var b=new PointerEvent("lostpointercapture",
{bubbles:!0}),c=this.captureInfo.target;this.captureInfo=null,document.removeEve
ntListener("pointerup",this.implicitRelease),document.removeEventListener("point
ercancel",this.implicitRelease),this.targets.set(b,c),this.asyncDispatchEvent(b)
}},dispatchEvent:a.external.dispatchEvent||function(a){var b=this.getTarget(a);r
eturn b?b.dispatchEvent(a):void 0},asyncDispatchEvent:function(a){setTimeout(thi
s.dispatchEvent.bind(this,a),0)}};e.boundHandler=e.eventHandler.bind(e),a.dispat
cher=e,a.register=e.register.bind(e),a.unregister=e.unregister.bind(e)}(window.P
ointerEventsPolyfill),function(a){function b(a,b,c,d){this.addCallback=a.bind(d)
,this.removeCallback=b.bind(d),this.changedCallback=c.bind(d),g&&(this.observer=
new g(this.mutationWatcher.bind(this)))}var c=Array.prototype.forEach.call.bind(
Array.prototype.forEach),d=Array.prototype.map.call.bind(Array.prototype.map),e=
Array.prototype.slice.call.bind(Array.prototype.slice),f=Array.prototype.filter.
call.bind(Array.prototype.filter),g=window.MutationObserver||window.WebKitMutati
onObserver,h="[touch-action]",i={subtree:!0,childList:!0,attributes:!0,attribute
OldValue:!0,attributeFilter:["touch-action"]};b.prototype={watchSubtree:function
(b){a.targetFinding.canTarget(b)&&this.observer.observe(b,i)},enableOnSubtree:fu
nction(a){this.watchSubtree(a),a===document&&"complete"!==document.readyState?th
is.installOnLoad():this.installNewSubtree(a)},installNewSubtree:function(a){c(th
is.findElements(a),this.addElement,this)},findElements:function(a){return a.quer
ySelectorAll?a.querySelectorAll(h):[]},removeElement:function(a){this.removeCall
back(a)},addElement:function(a){this.addCallback(a)},elementChanged:function(a,b
){this.changedCallback(a,b)},concatLists:function(a,b){return a.concat(e(b))},in
stallOnLoad:function(){document.addEventListener("DOMContentLoaded",this.install
NewSubtree.bind(this,document))},isElement:function(a){return a.nodeType===Node.
ELEMENT_NODE},flattenMutationTree:function(a){var b=d(a,this.findElements,this);
return b.push(f(a,this.isElement)),b.reduce(this.concatLists,[])},mutationWatche
r:function(a){a.forEach(this.mutationHandler,this)},mutationHandler:function(a){
if("childList"===a.type){var b=this.flattenMutationTree(a.addedNodes);b.forEach(
this.addElement,this);var c=this.flattenMutationTree(a.removedNodes);c.forEach(t
his.removeElement,this)}else"attributes"===a.type&&this.elementChanged(a.target,
a.oldValue)}},g||(b.prototype.watchSubtree=function(){console.warn("PointerEvent
sPolyfill: MutationObservers not found, touch-action will not be dynamically det
ected")}),a.Installer=b}(window.PointerEventsPolyfill),function(a){var b=a.dispa
tcher,c=b.pointermap,d=25,e={POINTER_ID:1,POINTER_TYPE:"mouse",events:["mousedow
n","mousemove","mouseup","mouseover","mouseout"],register:function(a){b.listen(a
,this.events)},unregister:function(a){b.unlisten(a,this.events)},lastTouches:[],
isEventSimulatedFromTouch:function(a){for(var b,c=this.lastTouches,e=a.clientX,f
=a.clientY,g=0,h=c.length;h>g&&(b=c[g]);g++){var i=Math.abs(e-b.x),j=Math.abs(f-
b.y);if(d>=i&&d>=j)return!0}},prepareEvent:function(a){var c=b.cloneEvent(a),d=c
.preventDefault;return c.preventDefault=function(){a.preventDefault(),d()},c.poi
nterId=this.POINTER_ID,c.isPrimary=!0,c.pointerType=this.POINTER_TYPE,c},mousedo
wn:function(a){if(!this.isEventSimulatedFromTouch(a)){var d=c.has(this.POINTER_I
D);d&&this.cancel(a);var e=this.prepareEvent(a);c.set(this.POINTER_ID,a),b.down(
e)}},mousemove:function(a){if(!this.isEventSimulatedFromTouch(a)){var c=this.pre
pareEvent(a);b.move(c)}},mouseup:function(a){if(!this.isEventSimulatedFromTouch(
a)){var d=c.get(this.POINTER_ID);if(d&&d.button===a.button){var e=this.prepareEv
ent(a);b.up(e),this.cleanupMouse()}}},mouseover:function(a){if(!this.isEventSimu
latedFromTouch(a)){var c=this.prepareEvent(a);b.enterOver(c)}},mouseout:function
(a){if(!this.isEventSimulatedFromTouch(a)){var c=this.prepareEvent(a);b.leaveOut
(c)}},cancel:function(a){var c=this.prepareEvent(a);b.cancel(c),this.cleanupMous
e()},cleanupMouse:function(){c["delete"](this.POINTER_ID)}};a.mouseEvents=e}(win
dow.PointerEventsPolyfill),function(a){var b,c=a.dispatcher,d=a.findTarget,e=a.t
argetFinding.allShadows.bind(a.targetFinding),f=c.pointermap,g=Array.prototype.m
ap.call.bind(Array.prototype.map),h=2500,i=200,j="touch-action",k=!1,l={scrollTy
pe:new WeakMap,events:["touchstart","touchmove","touchend","touchcancel"],regist
er:function(a){k?c.listen(a,this.events):b.enableOnSubtree(a)},unregister:functi
on(a){k&&c.unlisten(a,this.events)},elementAdded:function(a){var b=a.getAttribut
e(j),d=this.touchActionToScrollType(b);d&&(this.scrollType.set(a,d),c.listen(a,t
his.events),e(a).forEach(function(a){this.scrollType.set(a,d),c.listen(a,this.ev
ents)},this))},elementRemoved:function(a){this.scrollType["delete"](a),c.unliste
n(a,this.events),e(a).forEach(function(a){this.scrollType["delete"](a),c.unliste
n(a,this.events)},this)},elementChanged:function(a,b){var c=a.getAttribute(j),d=
this.touchActionToScrollType(c),f=this.touchActionToScrollType(b);d&&f?(this.scr
ollType.set(a,d),e(a).forEach(function(a){this.scrollType.set(a,d)},this)):f?thi
s.elementRemoved(a):d&&this.elementAdded(a)},scrollTypes:{EMITTER:"none",XSCROLL
ER:"pan-x",YSCROLLER:"pan-y",SCROLLER:/^(?:pan-x pan-y)|(?:pan-y pan-x)|auto$/},
touchActionToScrollType:function(a){var b=a,c=this.scrollTypes;return"none"===b?
"none":b===c.XSCROLLER?"X":b===c.YSCROLLER?"Y":c.SCROLLER.exec(b)?"XY":void 0},P
OINTER_TYPE:"touch",firstTouch:null,isPrimaryTouch:function(a){return this.first
Touch===a.identifier},setPrimaryTouch:function(a){(0===f.pointers()||1===f.point
ers()&&f.has(1))&&(this.firstTouch=a.identifier,this.firstXY={X:a.clientX,Y:a.cl
ientY},this.scrolling=!1,this.cancelResetClickCount())},removePrimaryPointer:fun
ction(a){a.isPrimary&&(this.firstTouch=null,this.firstXY=null,this.resetClickCou
nt())},clickCount:0,resetId:null,resetClickCount:function(){var a=function(){thi
s.clickCount=0,this.resetId=null}.bind(this);this.resetId=setTimeout(a,i)},cance
lResetClickCount:function(){this.resetId&&clearTimeout(this.resetId)},touchToPoi
nter:function(a){var b=c.cloneEvent(a);return b.pointerId=a.identifier+2,b.targe
t=d(b),b.bubbles=!0,b.cancelable=!0,b.detail=this.clickCount,b.button=0,b.button
s=1,b.width=a.webkitRadiusX||a.radiusX||0,b.height=a.webkitRadiusY||a.radiusY||0
,b.pressure=a.webkitForce||a.force||.5,b.isPrimary=this.isPrimaryTouch(a),b.poin
terType=this.POINTER_TYPE,b},processTouches:function(a,b){var c=a.changedTouches
,d=g(c,this.touchToPointer,this);d.forEach(function(b){b.preventDefault=function
(){this.scrolling=!1,this.firstXY=null,a.preventDefault()}},this),d.forEach(b,th
is)},shouldScroll:function(a){if(this.firstXY){var b,c=this.scrollType.get(a.cur
rentTarget);if("none"===c)b=!1;else if("XY"===c)b=!0;else{var d=a.changedTouches
[0],e=c,f="Y"===c?"X":"Y",g=Math.abs(d["client"+e]-this.firstXY[e]),h=Math.abs(d
["client"+f]-this.firstXY[f]);b=g>=h}return this.firstXY=null,b}},findTouch:func
tion(a,b){for(var c,d=0,e=a.length;e>d&&(c=a[d]);d++)if(c.identifier===b)return!
0},vacuumTouches:function(a){var b=a.touches;if(f.pointers()>=b.length){var c=[]
;f.forEach(function(a,d){if(1!==d&&!this.findTouch(b,d-2)){var e=a.out;c.push(th
is.touchToPointer(e))}},this),c.forEach(this.cancelOut,this)}},touchstart:functi
on(a){this.vacuumTouches(a),this.setPrimaryTouch(a.changedTouches[0]),this.dedup
SynthMouse(a),this.scrolling||(this.clickCount++,this.processTouches(a,this.over
Down))},overDown:function(a){f.set(a.pointerId,{target:a.target,out:a,outTarget:
a.target}),c.over(a),c.enter(a),c.down(a)},touchmove:function(a){this.scrolling|
|(this.shouldScroll(a)?(this.scrolling=!0,this.touchcancel(a)):(a.preventDefault
(),this.processTouches(a,this.moveOverOut)))},moveOverOut:function(a){var b=a,d=
f.get(b.pointerId);if(d){var e=d.out,g=d.outTarget;c.move(b),e&&g!==b.target&&(e
.relatedTarget=b.target,b.relatedTarget=g,e.target=g,b.target?(c.leaveOut(e),c.e
nterOver(b)):(b.target=g,b.relatedTarget=null,this.cancelOut(b))),d.out=b,d.outT
arget=b.target}},touchend:function(a){this.dedupSynthMouse(a),this.processTouche
s(a,this.upOut)},upOut:function(a){this.scrolling||(c.up(a),c.out(a),c.leave(a))
,this.cleanUpPointer(a)},touchcancel:function(a){this.processTouches(a,this.canc
elOut)},cancelOut:function(a){c.cancel(a),c.out(a),c.leave(a),this.cleanUpPointe
r(a)},cleanUpPointer:function(a){f["delete"](a.pointerId),this.removePrimaryPoin
ter(a)},dedupSynthMouse:function(b){var c=a.mouseEvents.lastTouches,d=b.changedT
ouches[0];if(this.isPrimaryTouch(d)){var e={x:d.clientX,y:d.clientY};c.push(e);v
ar f=function(a,b){var c=a.indexOf(b);c>-1&&a.splice(c,1)}.bind(null,c,e);setTim
eout(f,h)}}};k||(b=new a.Installer(l.elementAdded,l.elementRemoved,l.elementChan
ged,l)),a.touchEvents=l}(window.PointerEventsPolyfill),function(a){var b=a.dispa
tcher,c=b.pointermap,d=window.MSPointerEvent&&"number"==typeof window.MSPointerE
vent.MSPOINTER_TYPE_MOUSE,e={events:["MSPointerDown","MSPointerMove","MSPointerU
p","MSPointerOut","MSPointerOver","MSPointerCancel","MSGotPointerCapture","MSLos
tPointerCapture"],register:function(a){b.listen(a,this.events)},unregister:funct
ion(a){b.unlisten(a,this.events)},POINTER_TYPES:["","unavailable","touch","pen",
"mouse"],prepareEvent:function(a){var c=a;return d&&(c=b.cloneEvent(a),c.pointer
Type=this.POINTER_TYPES[a.pointerType]),c},cleanup:function(a){c["delete"](a)},M
SPointerDown:function(a){c.set(a.pointerId,a);var d=this.prepareEvent(a);b.down(
d)},MSPointerMove:function(a){var c=this.prepareEvent(a);b.move(c)},MSPointerUp:
function(a){var c=this.prepareEvent(a);b.up(c),this.cleanup(a.pointerId)},MSPoin
terOut:function(a){var c=this.prepareEvent(a);b.leaveOut(c)},MSPointerOver:funct
ion(a){var c=this.prepareEvent(a);b.enterOver(c)},MSPointerCancel:function(a){va
r c=this.prepareEvent(a);b.cancel(c),this.cleanup(a.pointerId)},MSLostPointerCap
ture:function(a){var c=b.makeEvent("lostpointercapture",a);b.dispatchEvent(c)},M
SGotPointerCapture:function(a){var c=b.makeEvent("gotpointercapture",a);b.dispat
chEvent(c)}};a.msEvents=e}(window.PointerEventsPolyfill),function(a){var b=a.dis
patcher;if(void 0===window.navigator.pointerEnabled){if(Object.defineProperty(wi
ndow.navigator,"pointerEnabled",{value:!0,enumerable:!0}),window.navigator.msPoi
nterEnabled){var c=window.navigator.msMaxTouchPoints;Object.defineProperty(windo
w.navigator,"maxTouchPoints",{value:c,enumerable:!0}),b.registerSource("ms",a.ms
Events)}else b.registerSource("mouse",a.mouseEvents),void 0!==window.ontouchstar
t&&b.registerSource("touch",a.touchEvents);b.register(document)}}(window.Pointer
EventsPolyfill),function(a){function b(a){if(!e.pointermap.has(a))throw new Erro
r("InvalidPointerId")}var c,d,e=a.dispatcher,f=window.navigator;f.msPointerEnabl
ed?(c=function(a){b(a),this.msSetPointerCapture(a)},d=function(a){b(a),this.msRe
leasePointerCapture(a)}):(c=function(a){b(a),e.setCapture(a,this)},d=function(a)
{b(a),e.releaseCapture(a,this)}),window.Element&&!Element.prototype.setPointerCa
pture&&Object.defineProperties(Element.prototype,{setPointerCapture:{value:c},re
leasePointerCapture:{value:d}})}(window.PointerEventsPolyfill),function(a){funct
ion b(a){u.push(a),t||(t=!0,q(d))}function c(a){return window.ShadowDOMPolyfill&
&window.ShadowDOMPolyfill.wrapIfNeeded(a)||a}function d(){t=!1;var a=u;u=[],a.so
rt(function(a,b){return a.uid_-b.uid_});var b=!1;a.forEach(function(a){var c=a.t
akeRecords();e(a),c.length&&(a.callback_(c,a),b=!0)}),b&&d()}function e(a){a.nod
es_.forEach(function(b){var c=p.get(b);c&&c.forEach(function(b){b.observer===a&&
b.removeTransientObservers()})})}function f(a,b){for(var c=a;c;c=c.parentNode){v
ar d=p.get(c);if(d)for(var e=0;e<d.length;e++){var f=d[e],g=f.options;if(c===a||
g.subtree){var h=b(g);h&&f.enqueue(h)}}}}function g(a){this.callback_=a,this.nod
es_=[],this.records_=[],this.uid_=++v}function h(a,b){this.type=a,this.target=b,
this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibli
ng=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}
function i(a){var b=new h(a.type,a.target);return b.addedNodes=a.addedNodes.slic
e(),b.removedNodes=a.removedNodes.slice(),b.previousSibling=a.previousSibling,b.
nextSibling=a.nextSibling,b.attributeName=a.attributeName,b.attributeNamespace=a
.attributeNamespace,b.oldValue=a.oldValue,b}function j(a,b){return w=new h(a,b)}
function k(a){return x?x:(x=i(w),x.oldValue=a,x)}function l(){w=x=void 0}functio
n m(a){return a===x||a===w}function n(a,b){return a===b?a:x&&m(a)?x:null}functio
n o(a,b,c){this.observer=a,this.target=b,this.options=c,this.transientObservedNo
des=[]}var p=new WeakMap,q=window.msSetImmediate;if(!q){var r=[],s=String(Math.r
andom());window.addEventListener("message",function(a){if(a.data===s){var b=r;r=
[],b.forEach(function(a){a()})}}),q=function(a){r.push(a),window.postMessage(s,"
*")}}var t=!1,u=[],v=0;g.prototype={observe:function(a,b){if(a=c(a),!b.childList
&&!b.attributes&&!b.characterData||b.attributeOldValue&&!b.attributes||b.attribu
teFilter&&b.attributeFilter.length&&!b.attributes||b.characterDataOldValue&&!b.c
haracterData)throw new SyntaxError;var d=p.get(a);d||p.set(a,d=[]);for(var e,f=0
;f<d.length;f++)if(d[f].observer===this){e=d[f],e.removeListeners(),e.options=b;
break}e||(e=new o(this,a,b),d.push(e),this.nodes_.push(a)),e.addListeners()},dis
connect:function(){this.nodes_.forEach(function(a){for(var b=p.get(a),c=0;c<b.le
ngth;c++){var d=b[c];if(d.observer===this){d.removeListeners(),b.splice(c,1);bre
ak}}},this),this.records_=[]},takeRecords:function(){var a=this.records_;return
this.records_=[],a}};var w,x;o.prototype={enqueue:function(a){var c=this.observe
r.records_,d=c.length;if(c.length>0){var e=c[d-1],f=n(e,a);if(f)return void(c[d-
1]=f)}else b(this.observer);c[d]=a},addListeners:function(){this.addListeners_(t
his.target)},addListeners_:function(a){var b=this.options;b.attributes&&a.addEve
ntListener("DOMAttrModified",this,!0),b.characterData&&a.addEventListener("DOMCh
aracterDataModified",this,!0),b.childList&&a.addEventListener("DOMNodeInserted",
this,!0),(b.childList||b.subtree)&&a.addEventListener("DOMNodeRemoved",this,!0)}
,removeListeners:function(){this.removeListeners_(this.target)},removeListeners_
:function(a){var b=this.options;b.attributes&&a.removeEventListener("DOMAttrModi
fied",this,!0),b.characterData&&a.removeEventListener("DOMCharacterDataModified"
,this,!0),b.childList&&a.removeEventListener("DOMNodeInserted",this,!0),(b.child
List||b.subtree)&&a.removeEventListener("DOMNodeRemoved",this,!0)},addTransientO
bserver:function(a){if(a!==this.target){this.addListeners_(a),this.transientObse
rvedNodes.push(a);var b=p.get(a);b||p.set(a,b=[]),b.push(this)}},removeTransient
Observers:function(){var a=this.transientObservedNodes;this.transientObservedNod
es=[],a.forEach(function(a){this.removeListeners_(a);for(var b=p.get(a),c=0;c<b.
length;c++)if(b[c]===this){b.splice(c,1);break}},this)},handleEvent:function(a){
switch(a.stopImmediatePropagation(),a.type){case"DOMAttrModified":var b=a.attrNa
me,c=a.relatedNode.namespaceURI,d=a.target,e=new j("attributes",d);e.attributeNa
me=b,e.attributeNamespace=c;var g=a.attrChange===MutationEvent.ADDITION?null:a.p
revValue;f(d,function(a){return!a.attributes||a.attributeFilter&&a.attributeFilt
er.length&&-1===a.attributeFilter.indexOf(b)&&-1===a.attributeFilter.indexOf(c)?
void 0:a.attributeOldValue?k(g):e});break;case"DOMCharacterDataModified":var d=a
.target,e=j("characterData",d),g=a.prevValue;f(d,function(a){return a.characterD
ata?a.characterDataOldValue?k(g):e:void 0});break;case"DOMNodeRemoved":this.addT
ransientObserver(a.target);case"DOMNodeInserted":var h,i,d=a.relatedNode,m=a.tar
get;"DOMNodeInserted"===a.type?(h=[m],i=[]):(h=[],i=[m]);var n=m.previousSibling
,o=m.nextSibling,e=j("childList",d);e.addedNodes=h,e.removedNodes=i,e.previousSi
bling=n,e.nextSibling=o,f(d,function(a){return a.childList?e:void 0})}l()}},a.Js
MutationObserver=g,a.MutationObserver||(a.MutationObserver=g)}(this),window.Cust
omElements=window.CustomElements||{flags:{}},function(a){function b(a,c,d){var e
=a.firstElementChild;if(!e)for(e=a.firstChild;e&&e.nodeType!==Node.ELEMENT_NODE;
)e=e.nextSibling;for(;e;)c(e,d)!==!0&&b(e,c,d),e=e.nextElementSibling;return nul
l}function c(a,b){for(var c=a.shadowRoot;c;)d(c,b),c=c.olderShadowRoot}function
d(a,d){b(a,function(a){return d(a)?!0:void c(a,d)}),c(a,d)}function e(a){return
h(a)?(i(a),!0):void l(a)}function f(a){d(a,function(a){return e(a)?!0:void 0})}f
unction g(a){return e(a)||f(a)}function h(b){if(!b.__upgraded__&&b.nodeType===No
de.ELEMENT_NODE){var c=b.getAttribute("is")||b.localName,d=a.registry[c];if(d)re
turn A.dom&&console.group("upgrade:",b.localName),a.upgrade(b),A.dom&&console.gr
oupEnd(),!0}}function i(a){l(a),r(a)&&d(a,function(a){l(a)})}function j(a){if(E.
push(a),!D){D=!0;var b=window.Platform&&window.Platform.endOfMicrotask||setTimeo
ut;b(k)}}function k(){D=!1;for(var a,b=E,c=0,d=b.length;d>c&&(a=b[c]);c++)a();E=
[]}function l(a){C?j(function(){m(a)}):m(a)}function m(a){(a.attachedCallback||a
.detachedCallback||a.__upgraded__&&A.dom)&&(A.dom&&console.group("inserted:",a.l
ocalName),r(a)&&(a.__inserted=(a.__inserted||0)+1,a.__inserted<1&&(a.__inserted=
1),a.__inserted>1?A.dom&&console.warn("inserted:",a.localName,"insert/remove cou
nt:",a.__inserted):a.attachedCallback&&(A.dom&&console.log("inserted:",a.localNa
me),a.attachedCallback())),A.dom&&console.groupEnd())}function n(a){o(a),d(a,fun
ction(a){o(a)})}function o(a){C?j(function(){p(a)}):p(a)}function p(a){(a.attach
edCallback||a.detachedCallback||a.__upgraded__&&A.dom)&&(A.dom&&console.group("r
emoved:",a.localName),r(a)||(a.__inserted=(a.__inserted||0)-1,a.__inserted>0&&(a
.__inserted=0),a.__inserted<0?A.dom&&console.warn("removed:",a.localName,"insert
/remove count:",a.__inserted):a.detachedCallback&&a.detachedCallback()),A.dom&&c
onsole.groupEnd())}function q(a){return window.ShadowDOMPolyfill?ShadowDOMPolyfi
ll.wrapIfNeeded(a):a}function r(a){for(var b=a,c=q(document);b;){if(b==c)return!
0;b=b.parentNode||b.host}}function s(a){if(a.shadowRoot&&!a.shadowRoot.__watched
){A.dom&&console.log("watching shadow-root for: ",a.localName);for(var b=a.shado
wRoot;b;)t(b),b=b.olderShadowRoot}}function t(a){a.__watched||(w(a),a.__watched=
!0)}function u(a){if(A.dom){var b=a[0];if(b&&"childList"===b.type&&b.addedNodes&
&b.addedNodes){for(var c=b.addedNodes[0];c&&c!==document&&!c.host;)c=c.parentNod
e;var d=c&&(c.URL||c._URL||c.host&&c.host.localName)||"";d=d.split("/?").shift()
.split("/").pop()}console.group("mutations (%d) [%s]",a.length,d||"")}a.forEach(
function(a){"childList"===a.type&&(G(a.addedNodes,function(a){a.localName&&g(a)}
),G(a.removedNodes,function(a){a.localName&&n(a)}))}),A.dom&&console.groupEnd()}
function v(){u(F.takeRecords()),k()}function w(a){F.observe(a,{childList:!0,subt
ree:!0})}function x(a){w(a)}function y(a){A.dom&&console.group("upgradeDocument:
",a.baseURI.split("/").pop()),g(a),A.dom&&console.groupEnd()}function z(a){a=q(
a);for(var b,c=a.querySelectorAll("link[rel="+B+"]"),d=0,e=c.length;e>d&&(b=c[d]
);d++)b.import&&b.import.__parsed&&z(b.import);y(a)}var A=window.logFlags||{},B=
window.HTMLImports?HTMLImports.IMPORT_LINK_TYPE:"none",C=!window.MutationObserve
r||window.MutationObserver===window.JsMutationObserver;a.hasPolyfillMutations=C;
var D=!1,E=[],F=new MutationObserver(u),G=Array.prototype.forEach.call.bind(Arra
y.prototype.forEach);a.IMPORT_LINK_TYPE=B,a.watchShadow=s,a.upgradeDocumentTree=
z,a.upgradeAll=g,a.upgradeSubtree=f,a.insertedNode=i,a.observeDocument=x,a.upgra
deDocument=y,a.takeRecords=v}(window.CustomElements),function(a){function b(b,g)
{var h=g||{};if(!b)throw new Error("document.registerElement: first argument `na
me` must not be empty");if(b.indexOf("-")<0)throw new Error("document.registerEl
ement: first argument ('name') must contain a dash ('-'). Argument provided was
'"+String(b)+"'.");if(c(b))throw new Error("Failed to execute 'registerElement'
on 'Document': Registration failed for type '"+String(b)+"'. The type name is in
valid.");if(n(b))throw new Error("DuplicateDefinitionError: a type with name '"+
String(b)+"' is already registered");if(!h.prototype)throw new Error("Options mi
ssing required prototype property");return h.__name=b.toLowerCase(),h.lifecycle=
h.lifecycle||{},h.ancestry=d(h.extends),e(h),f(h),l(h.prototype),o(h.__name,h),h
.ctor=p(h),h.ctor.prototype=h.prototype,h.prototype.constructor=h.ctor,a.ready&&
a.upgradeDocumentTree(document),h.ctor}function c(a){for(var b=0;b<y.length;b++)
if(a===y[b])return!0}function d(a){var b=n(a);return b?d(b.extends).concat([b]):
[]}function e(a){for(var b,c=a.extends,d=0;b=a.ancestry[d];d++)c=b.is&&b.tag;a.t
ag=c||a.__name,c&&(a.is=a.__name)}function f(a){if(!Object.__proto__){var b=HTML
Element.prototype;if(a.is){var c=document.createElement(a.tag);b=Object.getProto
typeOf(c)}for(var d,e=a.prototype;e&&e!==b;){var d=Object.getPrototypeOf(e);e.__
proto__=d,e=d}}a.native=b}function g(a){return h(B(a.tag),a)}function h(b,c){ret
urn c.is&&b.setAttribute("is",c.is),b.removeAttribute("unresolved"),i(b,c),b.__u
pgraded__=!0,k(b),a.insertedNode(b),a.upgradeSubtree(b),b}function i(a,b){Object
.__proto__?a.__proto__=b.prototype:(j(a,b.prototype,b.native),a.__proto__=b.prot
otype)}function j(a,b,c){for(var d={},e=b;e!==c&&e!==HTMLElement.prototype;){for
(var f,g=Object.getOwnPropertyNames(e),h=0;f=g[h];h++)d[f]||(Object.defineProper
ty(a,f,Object.getOwnPropertyDescriptor(e,f)),d[f]=1);e=Object.getPrototypeOf(e)}
}function k(a){a.createdCallback&&a.createdCallback()}function l(a){if(!a.setAtt
ribute._polyfilled){var b=a.setAttribute;a.setAttribute=function(a,c){m.call(thi
s,a,c,b)};var c=a.removeAttribute;a.removeAttribute=function(a){m.call(this,a,nu
ll,c)},a.setAttribute._polyfilled=!0}}function m(a,b,c){var d=this.getAttribute(
a);c.apply(this,arguments);var e=this.getAttribute(a);this.attributeChangedCallb
ack&&e!==d&&this.attributeChangedCallback(a,d,e)}function n(a){return a?z[a.toLo
werCase()]:void 0}function o(a,b){z[a]=b}function p(a){return function(){return
g(a)}}function q(a,b,c){return a===A?r(b,c):C(a,b)}function r(a,b){var c=n(b||a)
;if(c){if(a==c.tag&&b==c.is)return new c.ctor;if(!b&&!c.is)return new c.ctor}if(
b){var d=r(a);return d.setAttribute("is",b),d}var d=B(a);return a.indexOf("-")>=
0&&i(d,HTMLElement),d}function s(a){if(!a.__upgraded__&&a.nodeType===Node.ELEMEN
T_NODE){var b=a.getAttribute("is"),c=n(b||a.localName);if(c){if(b&&c.tag==a.loca
lName)return h(a,c); | |
3 if(!b&&!c.extends)return h(a,c)}}}function t(b){var c=D.call(this,b);return a.up
gradeAll(c),c}a||(a=window.CustomElements={flags:{}});var u=a.flags,v=Boolean(do
cument.registerElement),w=!u.register&&v&&!window.ShadowDOMPolyfill;if(w){var x=
function(){};a.registry={},a.upgradeElement=x,a.watchShadow=x,a.upgrade=x,a.upgr
adeAll=x,a.upgradeSubtree=x,a.observeDocument=x,a.upgradeDocument=x,a.upgradeDoc
umentTree=x,a.takeRecords=x,a.reservedTagList=[]}else{var y=["annotation-xml","c
olor-profile","font-face","font-face-src","font-face-uri","font-face-format","fo
nt-face-name","missing-glyph"],z={},A="http://www.w3.org/1999/xhtml",B=document.
createElement.bind(document),C=document.createElementNS.bind(document),D=Node.pr
ototype.cloneNode;document.registerElement=b,document.createElement=r,document.c
reateElementNS=q,Node.prototype.cloneNode=t,a.registry=z,a.upgrade=s}var E;E=Obj
ect.__proto__||w?function(a,b){return a instanceof b}:function(a,b){for(var c=a;
c;){if(c===b.prototype)return!0;c=c.__proto__}return!1},a.instanceof=E,a.reserve
dTagList=y,document.register=document.registerElement,a.hasNative=v,a.useNative=
w}(window.CustomElements),function(a){function b(a){return"link"===a.localName&&
a.getAttribute("rel")===c}var c=a.IMPORT_LINK_TYPE,d={selectors:["link[rel="+c+"
]"],map:{link:"parseLink"},parse:function(a){if(!a.__parsed){a.__parsed=!0;var b
=a.querySelectorAll(d.selectors);e(b,function(a){d[d.map[a.localName]](a)}),Cust
omElements.upgradeDocument(a),CustomElements.observeDocument(a)}},parseLink:func
tion(a){b(a)&&this.parseImport(a)},parseImport:function(a){a.import&&d.parse(a.i
mport)}},e=Array.prototype.forEach.call.bind(Array.prototype.forEach);a.parser=d
,a.IMPORT_LINK_TYPE=c}(window.CustomElements),function(a){function b(){CustomEle
ments.parser.parse(document),CustomElements.upgradeDocument(document);var a=wind
ow.Platform&&Platform.endOfMicrotask?Platform.endOfMicrotask:setTimeout;a(functi
on(){CustomElements.ready=!0,CustomElements.readyTime=Date.now(),window.HTMLImpo
rts&&(CustomElements.elapsed=CustomElements.readyTime-HTMLImports.readyTime),doc
ument.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0})),window.H
TMLImports&&(HTMLImports.__importsParsingHook=function(a){CustomElements.parser.
parse(a.import)})})}if("function"!=typeof window.CustomEvent&&(window.CustomEven
t=function(a){var b=document.createEvent("HTMLEvents");return b.initEvent(a,!0,!
0),b}),"complete"===document.readyState||a.flags.eager)b();else if("interactive"
!==document.readyState||window.attachEvent||window.HTMLImports&&!window.HTMLImpo
rts.ready){var c=window.HTMLImports&&!HTMLImports.ready?"HTMLImportsLoaded":"DOM
ContentLoaded";window.addEventListener(c,b)}else b()}(window.CustomElements),win
dow.HTMLImports=window.HTMLImports||{flags:{}},function(a){var b=(a.path,a.xhr),
c=a.flags,d=function(a,b){this.cache={},this.onload=a,this.oncomplete=b,this.inf
light=0,this.pending={}};d.prototype={addNodes:function(a){this.inflight+=a.leng
th;for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)this.require(b);this.checkDone()},
addNode:function(a){this.inflight++,this.require(a),this.checkDone()},require:fu
nction(a){var b=a.src||a.href;a.__nodeUrl=b,this.dedupe(b,a)||this.fetch(b,a)},d
edupe:function(a,b){if(this.pending[a])return this.pending[a].push(b),!0;return
this.cache[a]?(this.onload(a,b,this.cache[a]),this.tail(),!0):(this.pending[a]=[
b],!1)},fetch:function(a,d){if(c.load&&console.log("fetch",a,d),a.match(/^data:/
)){var e=a.split(","),f=e[0],g=e[1];g=f.indexOf(";base64")>-1?atob(g):decodeURIC
omponent(g),setTimeout(function(){this.receive(a,d,null,g)}.bind(this),0)}else{v
ar h=function(b,c){this.receive(a,d,b,c)}.bind(this);b.load(a,h)}},receive:funct
ion(a,b,c,d){this.cache[a]=d;for(var e,f=this.pending[a],g=0,h=f.length;h>g&&(e=
f[g]);g++)this.onload(a,e,d),this.tail();this.pending[a]=null},tail:function(){-
-this.inflight,this.checkDone()},checkDone:function(){this.inflight||this.oncomp
lete()}},b=b||{async:!0,ok:function(a){return a.status>=200&&a.status<300||304==
=a.status||0===a.status},load:function(c,d,e){var f=new XMLHttpRequest;return(a.
flags.debug||a.flags.bust)&&(c+="?"+Math.random()),f.open("GET",c,b.async),f.add
EventListener("readystatechange",function(){4===f.readyState&&d.call(e,!b.ok(f)&
&f,f.response||f.responseText,c)}),f.send(),f},loadDocument:function(a,b,c){this
.load(a,b,c).responseType="document"}},a.xhr=b,a.Loader=d}(window.HTMLImports),f
unction(a){function b(a){return"link"===a.localName&&a.rel===g}function c(a){var
b,c=d(a);try{b=btoa(c)}catch(e){b=btoa(unescape(encodeURIComponent(c))),console
.warn("Script contained non-latin characters that were forced to latin. Some cha
racters may be wrong.",a)}return"data:text/javascript;base64,"+b}function d(a){r
eturn a.textContent+e(a)}function e(a){var b=a.__nodeUrl;if(!b){b=a.ownerDocumen
t.baseURI;var c="["+Math.floor(1e3*(Math.random()+1))+"]",d=a.textContent.match(
/Polymer\(['"]([^'"]*)/);c=d&&d[1]||c,b+="/"+c+".js"}return"\n//# sourceURL="+b+
"\n"}function f(a){var b=a.ownerDocument.createElement("style");return b.textCon
tent=a.textContent,n.resolveUrlsInStyle(b),b}var g="import",h=a.flags,i=/Trident
/.test(navigator.userAgent),j=window.ShadowDOMPolyfill?window.ShadowDOMPolyfill.
wrapIfNeeded(document):document,k={documentSelectors:"link[rel="+g+"]",importsSe
lectors:["link[rel="+g+"]","link[rel=stylesheet]","style","script:not([type])",'
script[type="text/javascript"]'].join(","),map:{link:"parseLink",script:"parseSc
ript",style:"parseStyle"},parseNext:function(){var a=this.nextToParse();a&&this.
parse(a)},parse:function(a){if(this.isParsed(a))return void(h.parse&&console.log
("[%s] is already parsed",a.localName));var b=this[this.map[a.localName]];b&&(th
is.markParsing(a),b.call(this,a))},markParsing:function(a){h.parse&&console.log(
"parsing",a),this.parsingElement=a},markParsingComplete:function(a){a.__importPa
rsed=!0,a.__importElement&&(a.__importElement.__importParsed=!0),this.parsingEle
ment=null,h.parse&&console.log("completed",a),this.parseNext()},parseImport:func
tion(a){if(a.import.__importParsed=!0,HTMLImports.__importsParsingHook&&HTMLImpo
rts.__importsParsingHook(a),a.dispatchEvent(a.__resource?new CustomEvent("load",
{bubbles:!1}):new CustomEvent("error",{bubbles:!1})),a.__pending)for(var b;a.__p
ending.length;)b=a.__pending.shift(),b&&b({target:a});this.markParsingComplete(a
)},parseLink:function(a){b(a)?this.parseImport(a):(a.href=a.href,this.parseGener
ic(a))},parseStyle:function(a){var b=a;a=f(a),a.__importElement=b,this.parseGene
ric(a)},parseGeneric:function(a){this.trackElement(a),document.head.appendChild(
a)},trackElement:function(a,b){var c=this,d=function(d){b&&b(d),c.markParsingCom
plete(a)};if(a.addEventListener("load",d),a.addEventListener("error",d),i&&"styl
e"===a.localName){var e=!1;if(-1==a.textContent.indexOf("@import"))e=!0;else if(
a.sheet){e=!0;for(var f,g=a.sheet.cssRules,h=g?g.length:0,j=0;h>j&&(f=g[j]);j++)
f.type===CSSRule.IMPORT_RULE&&(e=e&&Boolean(f.styleSheet))}e&&a.dispatchEvent(ne
w CustomEvent("load",{bubbles:!1}))}},parseScript:function(b){var d=document.cre
ateElement("script");d.__importElement=b,d.src=b.src?b.src:c(b),a.currentScript=
b,this.trackElement(d,function(){d.parentNode.removeChild(d),a.currentScript=nul
l}),document.head.appendChild(d)},nextToParse:function(){return!this.parsingElem
ent&&this.nextToParseInDoc(j)},nextToParseInDoc:function(a,c){for(var d,e=a.quer
ySelectorAll(this.parseSelectorsForNode(a)),f=0,g=e.length;g>f&&(d=e[f]);f++)if(
!this.isParsed(d))return this.hasResource(d)?b(d)?this.nextToParseInDoc(d.import
,d):d:void 0;return c},parseSelectorsForNode:function(a){var b=a.ownerDocument||
a;return b===j?this.documentSelectors:this.importsSelectors},isParsed:function(a
){return a.__importParsed},hasResource:function(a){return b(a)&&!a.import?!1:!0}
},l=/(url\()([^)]*)(\))/g,m=/(@import[\s]+(?!url\())([^;]*)(;)/g,n={resolveUrlsI
nStyle:function(a){var b=a.ownerDocument,c=b.createElement("a");return a.textCon
tent=this.resolveUrlsInCssText(a.textContent,c),a},resolveUrlsInCssText:function
(a,b){var c=this.replaceUrls(a,b,l);return c=this.replaceUrls(c,b,m)},replaceUrl
s:function(a,b,c){return a.replace(c,function(a,c,d,e){var f=d.replace(/["']/g,"
");return b.href=f,f=b.href,c+"'"+f+"'"+e})}};a.parser=k,a.path=n,a.isIE=i}(HTML
Imports),function(a){function b(a){return c(a,m)}function c(a,b){return"link"===
a.localName&&a.getAttribute("rel")===b}function d(a,b){var c=a;c instanceof Docu
ment||(c=document.implementation.createHTMLDocument(m)),c._URL=b;var d=c.createE
lement("base");d.setAttribute("href",b),c.baseURI||(c.baseURI=b);var e=c.createE
lement("meta");return e.setAttribute("charset","utf-8"),c.head.appendChild(e),c.
head.appendChild(d),a instanceof Document||(c.body.innerHTML=a),window.HTMLTempl
ateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(c),c}fu
nction e(a,b){b=b||n,g(function(){h(a,b)},b)}function f(a){return"complete"===a.
readyState||a.readyState===u}function g(a,b){if(f(b))a&&a();else{var c=function(
){("complete"===b.readyState||b.readyState===u)&&(b.removeEventListener(v,c),g(a
,b))};b.addEventListener(v,c)}}function h(a,b){function c(){f==g&&requestAnimati
onFrame(a)}function d(){f++,c()}var e=b.querySelectorAll("link[rel=import]"),f=0
,g=e.length;if(g)for(var h,j=0;g>j&&(h=e[j]);j++)i(h)?d.call(h):(h.addEventListe
ner("load",d),h.addEventListener("error",d));else c()}function i(a){return k?a.i
mport&&"loading"!==a.import.readyState:a.__importParsed}var j="import"in documen
t.createElement("link"),k=j,l=a.flags,m="import",n=window.ShadowDOMPolyfill?Shad
owDOMPolyfill.wrapIfNeeded(document):document;if(k)var o={};else var p=(a.xhr,a.
Loader),q=a.parser,o={documents:{},documentPreloadSelectors:"link[rel="+m+"]",im
portsPreloadSelectors:["link[rel="+m+"]"].join(","),loadNode:function(a){r.addNo
de(a)},loadSubtree:function(a){var b=this.marshalNodes(a);r.addNodes(b)},marshal
Nodes:function(a){return a.querySelectorAll(this.loadSelectorsForNode(a))},loadS
electorsForNode:function(a){var b=a.ownerDocument||a;return b===n?this.documentP
reloadSelectors:this.importsPreloadSelectors},loaded:function(a,c,e){if(l.load&&
console.log("loaded",a,c),c.__resource=e,b(c)){var f=this.documents[a];f||(f=d(e
,a),f.__importLink=c,this.bootDocument(f),this.documents[a]=f),c.import=f}q.pars
eNext()},bootDocument:function(a){this.loadSubtree(a),this.observe(a),q.parseNex
t()},loadedAll:function(){q.parseNext()}},r=new p(o.loaded.bind(o),o.loadedAll.b
ind(o));var s={get:function(){return HTMLImports.currentScript||document.current
Script},configurable:!0};if(Object.defineProperty(document,"_currentScript",s),O
bject.defineProperty(n,"_currentScript",s),!document.baseURI){var t={get:functio
n(){return window.location.href},configurable:!0};Object.defineProperty(document
,"baseURI",t),Object.defineProperty(n,"baseURI",t)}var u=HTMLImports.isIE?"compl
ete":"interactive",v="readystatechange";a.hasNative=j,a.useNative=k,a.importer=o
,a.whenImportsReady=e,a.IMPORT_LINK_TYPE=m,a.isImportLoaded=i,a.importLoader=r}(
window.HTMLImports),function(a){function b(a){for(var b,d=0,e=a.length;e>d&&(b=a
[d]);d++)"childList"===b.type&&b.addedNodes.length&&c(b.addedNodes)}function c(a
){for(var b,e=0,g=a.length;g>e&&(b=a[e]);e++)d(b)&&f.loadNode(b),b.children&&b.c
hildren.length&&c(b.children)}function d(a){return 1===a.nodeType&&g.call(a,f.lo
adSelectorsForNode(a))}function e(a){h.observe(a,{childList:!0,subtree:!0})}var
f=(a.IMPORT_LINK_TYPE,a.importer),g=HTMLElement.prototype.matches||HTMLElement.p
rototype.matchesSelector||HTMLElement.prototype.webkitMatchesSelector||HTMLEleme
nt.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesSelector,h=new M
utationObserver(b);a.observe=e,f.observe=e}(HTMLImports),function(){function a()
{HTMLImports.importer.bootDocument(b)}"function"!=typeof window.CustomEvent&&(wi
ndow.CustomEvent=function(a,b){var c=document.createEvent("HTMLEvents");return c
.initEvent(a,b.bubbles===!1?!1:!0,b.cancelable===!1?!1:!0,b.detail),c});var b=wi
ndow.ShadowDOMPolyfill?window.ShadowDOMPolyfill.wrapIfNeeded(document):document;
HTMLImports.whenImportsReady(function(){HTMLImports.ready=!0,HTMLImports.readyTi
me=(new Date).getTime(),b.dispatchEvent(new CustomEvent("HTMLImportsLoaded",{bub
bles:!0}))}),HTMLImports.useNative||("complete"===document.readyState||"interact
ive"===document.readyState&&!window.attachEvent?a():document.addEventListener("D
OMContentLoaded",a))}(); | |