OLD | NEW |
(Empty) | |
| 1 /** |
| 2 * @license |
| 3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. |
| 4 * This code may only be used under the BSD style license found at http://polyme
r.github.io/LICENSE.txt |
| 5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.
txt |
| 6 * The complete set of contributors may be found at http://polymer.github.io/CON
TRIBUTORS.txt |
| 7 * Code distributed by Google as part of the polymer project is also |
| 8 * subject to an additional IP rights grant found at http://polymer.github.io/PA
TENTS.txt |
| 9 */ |
| 10 // @version 0.5.1 |
| 11 window.PolymerGestures={},function(a){var b=!1,c=document.createElement("meta");
if(c.createShadowRoot){var d=c.createShadowRoot(),e=document.createElement("span
");d.appendChild(e),c.addEventListener("testpath",function(a){a.path&&(b=a.path[
0]===e),a.stopPropagation()});var f=new CustomEvent("testpath",{bubbles:!0});doc
ument.head.appendChild(c),e.dispatchEvent(f),c.parentNode.removeChild(c),d=e=nul
l}c=null;var g={shadow:function(a){return a?a.shadowRoot||a.webkitShadowRoot:voi
d 0},canTarget:function(a){return a&&Boolean(a.elementFromPoint)},targetingShado
w:function(a){var b=this.shadow(a);return this.canTarget(b)?b:void 0},olderShado
w:function(a){var b=a.olderShadowRoot;if(!b){var c=a.querySelector("shadow");c&&
(b=c.olderShadowRoot)}return b},allShadows:function(a){for(var b=[],c=this.shado
w(a);c;)b.push(c),c=this.olderShadow(c);return b},searchRoot:function(a,b,c){var
d,e;return a?(d=a.elementFromPoint(b,c),d?e=this.targetingShadow(d):a!==documen
t&&(e=this.olderShadow(a)),this.searchRoot(e,b,c)||d):void 0},owner:function(a){
if(!a)return document;for(var b=a;b.parentNode;)b=b.parentNode;return b.nodeType
!=Node.DOCUMENT_NODE&&b.nodeType!=Node.DOCUMENT_FRAGMENT_NODE&&(b=document),b},f
indTarget:function(a){if(b&&a.path&&a.path.length)return a.path[0];var c=a.clien
tX,d=a.clientY,e=this.owner(a.target);return e.elementFromPoint(c,d)||(e=documen
t),this.searchRoot(e,c,d)},findTouchAction:function(a){var c;if(b&&a.path&&a.pat
h.length){for(var d=a.path,e=0;e<d.length;e++)if(c=d[e],c.nodeType===Node.ELEMEN
T_NODE&&c.hasAttribute("touch-action"))return c.getAttribute("touch-action")}els
e for(c=a.target;c;){if(c.nodeType===Node.ELEMENT_NODE&&c.hasAttribute("touch-ac
tion"))return c.getAttribute("touch-action");c=c.parentNode||c.host}return"auto"
},LCA:function(a,b){if(a===b)return a;if(a&&!b)return a;if(b&&!a)return b;if(!b&
&!a)return document;if(a.contains&&a.contains(b))return a;if(b.contains&&b.conta
ins(a))return b;var c=this.depth(a),d=this.depth(b),e=c-d;for(e>=0?a=this.walk(a
,e):b=this.walk(b,-e);a&&b&&a!==b;)a=a.parentNode||a.host,b=b.parentNode||b.host
;return a},walk:function(a,b){for(var c=0;a&&b>c;c++)a=a.parentNode||a.host;retu
rn a},depth:function(a){for(var b=0;a;)b++,a=a.parentNode||a.host;return b},deep
Contains:function(a,b){var c=this.LCA(a,b);return c===a},insideNode:function(a,b
,c){var d=a.getBoundingClientRect();return d.left<=b&&b<=d.right&&d.top<=c&&c<=d
.bottom},path:function(a){var c;if(b&&a.path&&a.path.length)c=a.path;else{c=[];f
or(var d=this.findTarget(a);d;)c.push(d),d=d.parentNode||d.host}return c}};a.tar
getFinding=g,a.findTarget=g.findTarget.bind(g),a.deepContains=g.deepContains.bin
d(g),a.insideNode=g.insideNode}(window.PolymerGestures),function(){function a(a)
{return"html /deep/ "+b(a)}function b(a){return'[touch-action="'+a+'"]'}function
c(a){return"{ -ms-touch-action: "+a+"; touch-action: "+a+";}"}var d=["none","au
to","pan-x","pan-y",{rule:"pan-x pan-y",selectors:["pan-x pan-y","pan-y pan-x"]}
,"manipulation"],e="",f="string"==typeof document.head.style.touchAction,g=!wind
ow.ShadowDOMPolyfill&&document.head.createShadowRoot;if(f){d.forEach(function(d)
{String(d)===d?(e+=b(d)+c(d)+"\n",g&&(e+=a(d)+c(d)+"\n")):(e+=d.selectors.map(b)
+c(d.rule)+"\n",g&&(e+=d.selectors.map(a)+c(d.rule)+"\n"))});var h=document.crea
teElement("style");h.textContent=e,document.head.appendChild(h)}}(),function(a){
var b=["bubbles","cancelable","view","detail","screenX","screenY","clientX","cli
entY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pageX","
pageY"],c=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0],d=function(){return f
unction(){}},e={preventTap:d,makeBaseEvent:function(a,b){var c=document.createEv
ent("Event");return c.initEvent(a,b.bubbles||!1,b.cancelable||!1),c.preventTap=e
.preventTap(c),c},makeGestureEvent:function(a,b){b=b||Object.create(null);for(va
r c,d=this.makeBaseEvent(a,b),e=0,f=Object.keys(b);e<f.length;e++)c=f[e],d[c]=b[
c];return d},makePointerEvent:function(a,d){d=d||Object.create(null);for(var e,f
=this.makeBaseEvent(a,d),g=0;g<b.length;g++)e=b[g],f[e]=d[e]||c[g];f.buttons=d.b
uttons||0;var h=0;return h=d.pressure?d.pressure:f.buttons?.5:0,f.x=f.clientX,f.
y=f.clientY,f.pointerId=d.pointerId||0,f.width=d.width||0,f.height=d.height||0,f
.pressure=h,f.tiltX=d.tiltX||0,f.tiltY=d.tiltY||0,f.pointerType=d.pointerType||"
",f.hwTimestamp=d.hwTimestamp||0,f.isPrimary=d.isPrimary||!1,f._source=d._source
||"",f}};a.eventFactory=e}(window.PolymerGestures),function(a){function b(){if(c
){var a=new Map;return a.pointers=d,a}this.keys=[],this.values=[]}var c=window.M
ap&&window.Map.prototype.forEach,d=function(){return this.size};b.prototype={set
:function(a,b){var c=this.keys.indexOf(a);c>-1?this.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.value
s.splice(b,1))},get:function(a){var b=this.keys.indexOf(a);return this.values[b]
},clear:function(){this.keys.length=0,this.values.length=0},forEach:function(a,b
){this.values.forEach(function(c,d){a.call(b,c,this.keys[d],this)},this)},pointe
rs:function(){return this.keys.length}},a.PointerMap=b}(window.PolymerGestures),
function(a){var b,c=["bubbles","cancelable","view","detail","screenX","screenY",
"clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTar
get","buttons","pointerId","width","height","pressure","tiltX","tiltY","pointerT
ype","hwTimestamp","isPrimary","type","target","currentTarget","which","pageX","
pageY","timeStamp","preventTap","tapPrevented","_source"],d=[!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,0,0,0,function(){},
!1],e="undefined"!=typeof SVGElementInstance,f=a.eventFactory,g={IS_IOS:!1,point
ermap:new a.PointerMap,requiredGestures:new a.PointerMap,eventMap:Object.create(
null),eventSources:Object.create(null),eventSourceList:[],gestures:[],dependency
Map:{down:{listeners:0,index:-1},up:{listeners:0,index:-1}},gestureQueue:[],regi
sterSource:function(a,b){var c=b,d=c.events;d&&(d.forEach(function(a){c[a]&&(thi
s.eventMap[a]=c[a].bind(c))},this),this.eventSources[a]=c,this.eventSourceList.p
ush(c))},registerGesture:function(a,b){var c=Object.create(null);c.listeners=0,c
.index=this.gestures.length;for(var d,e=0;e<b.exposes.length;e++)d=b.exposes[e].
toLowerCase(),this.dependencyMap[d]=c;this.gestures.push(b)},register:function(a
,b){for(var c,d=this.eventSourceList.length,e=0;d>e&&(c=this.eventSourceList[e])
;e++)c.register.call(c,a,b)},unregister:function(a){for(var b,c=this.eventSource
List.length,d=0;c>d&&(b=this.eventSourceList[d]);d++)b.unregister.call(b,a)},dow
n:function(a){this.requiredGestures.set(a.pointerId,b),this.fireEvent("down",a)}
,move:function(a){a.type="move",this.fillGestureQueue(a)},up:function(a){this.fi
reEvent("up",a),this.requiredGestures["delete"](a.pointerId)},cancel:function(a)
{a.tapPrevented=!0,this.fireEvent("up",a),this.requiredGestures["delete"](a.poin
terId)},addGestureDependency:function(a,b){var c=a._pgEvents;if(c&&b)for(var d,e
,f,g=Object.keys(c),h=0;h<g.length;h++)f=g[h],c[f]>0&&(d=this.dependencyMap[f],e
=d?d.index:-1,b[e]=!0)},eventHandler:function(c){var d=c.type;if("touchstart"===
d||"mousedown"===d||"pointerdown"===d||"MSPointerDown"===d)if(c._handledByPG||(b
={}),this.IS_IOS){var e=c;if("touchstart"===d){var f=c.changedTouches[0];e={targ
et:c.target,clientX:f.clientX,clientY:f.clientY,path:c.path}}for(var g,h=c.path|
|a.targetFinding.path(e),i=0;i<h.length;i++)g=h[i],this.addGestureDependency(g,b
)}else this.addGestureDependency(c.currentTarget,b);if(!c._handledByPG){var j=th
is.eventMap&&this.eventMap[d];j&&j(c),c._handledByPG=!0}},listen:function(a,b){f
or(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)this.addEvent(a,c)},unlisten:function(
a,b){for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)this.removeEvent(a,c)},addEvent:
function(a,b){a.addEventListener(b,this.boundHandler)},removeEvent:function(a,b)
{a.removeEventListener(b,this.boundHandler)},makeEvent:function(a,b){var c=f.mak
ePointerEvent(a,b);return c.preventDefault=b.preventDefault,c.tapPrevented=b.tap
Prevented,c._target=c._target||b.target,c},fireEvent:function(a,b){var c=this.ma
keEvent(a,b);return this.dispatchEvent(c)},cloneEvent:function(a){for(var b,f=Ob
ject.create(null),g=0;g<c.length;g++)b=c[g],f[b]=a[b]||d[g],("target"===b||"rela
tedTarget"===b)&&e&&f[b]instanceof SVGElementInstance&&(f[b]=f[b].correspondingU
seElement);return f.preventDefault=function(){a.preventDefault()},f},dispatchEve
nt:function(a){var b=a._target;if(b){b.dispatchEvent(a);var c=this.cloneEvent(a)
;c.target=b,this.fillGestureQueue(c)}},gestureTrigger:function(){for(var a,b,c=0
;c<this.gestureQueue.length;c++)if(a=this.gestureQueue[c],b=a._requiredGestures)
for(var d,e,f=0;f<this.gestures.length;f++)b[f]&&(d=this.gestures[f],e=d[a.type]
,e&&e.call(d,a));this.gestureQueue.length=0},fillGestureQueue:function(a){this.g
estureQueue.length||requestAnimationFrame(this.boundGestureTrigger),a._requiredG
estures=this.requiredGestures.get(a.pointerId),this.gestureQueue.push(a)}};g.bou
ndHandler=g.eventHandler.bind(g),g.boundGestureTrigger=g.gestureTrigger.bind(g),
a.dispatcher=g,a.activateGesture=function(a,b){var c=b.toLowerCase(),d=g.depende
ncyMap[c];if(d){var e=g.gestures[d.index];if(a._pgListeners||(g.register(a),a._p
gListeners=0),e){var f,h=e.defaultActions&&e.defaultActions[c];switch(a.nodeType
){case Node.ELEMENT_NODE:f=a;break;case Node.DOCUMENT_FRAGMENT_NODE:f=a.host;bre
ak;default:f=null}h&&f&&!f.hasAttribute("touch-action")&&f.setAttribute("touch-a
ction",h)}a._pgEvents||(a._pgEvents={}),a._pgEvents[c]=(a._pgEvents[c]||0)+1,a._
pgListeners++}return Boolean(d)},a.addEventListener=function(b,c,d,e){d&&(a.acti
vateGesture(b,c),b.addEventListener(c,d,e))},a.deactivateGesture=function(a,b){v
ar c=b.toLowerCase(),d=g.dependencyMap[c];return d&&(a._pgListeners>0&&a._pgList
eners--,0===a._pgListeners&&g.unregister(a),a._pgEvents&&(a._pgEvents[c]>0?a._pg
Events[c]--:a._pgEvents[c]=0)),Boolean(d)},a.removeEventListener=function(b,c,d,
e){d&&(a.deactivateGesture(b,c),b.removeEventListener(c,d,e))}}(window.PolymerGe
stures),function(a){var b=a.dispatcher,c=b.pointermap,d=25,e=[0,1,4,2],f=0,g=/Li
nux.*Firefox\//i,h=function(){if(g.test(navigator.userAgent))return!1;try{return
1===new MouseEvent("test",{buttons:1}).buttons}catch(a){return!1}}(),i={POINTER
_ID:1,POINTER_TYPE:"mouse",events:["mousedown","mousemove","mouseup"],exposes:["
down","up","move"],register:function(a){b.listen(a,this.events)},unregister:func
tion(a){a!==document&&b.unlisten(a,this.events)},lastTouches:[],isEventSimulated
FromTouch: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);if(c.pointerId=this
.POINTER_ID,c.isPrimary=!0,c.pointerType=this.POINTER_TYPE,c._source="mouse",!h)
{var d=a.type,g=e[a.which]||0;"mousedown"===d?f|=g:"mouseup"===d&&(f&=~g),c.butt
ons=f}return c},mousedown:function(d){if(!this.isEventSimulatedFromTouch(d)){var
e=(c.has(this.POINTER_ID),this.prepareEvent(d));e.target=a.findTarget(d),c.set(
this.POINTER_ID,e.target),b.down(e)}},mousemove:function(a){if(!this.isEventSimu
latedFromTouch(a)){var d=c.get(this.POINTER_ID);if(d){var e=this.prepareEvent(a)
;e.target=d,0===(h?e.buttons:e.which)?(h||(f=e.buttons=0),b.cancel(e),this.clean
upMouse(e.buttons)):b.move(e)}}},mouseup:function(d){if(!this.isEventSimulatedFr
omTouch(d)){var e=this.prepareEvent(d);e.relatedTarget=a.findTarget(d),e.target=
c.get(this.POINTER_ID),b.up(e),this.cleanupMouse(e.buttons)}},cleanupMouse:funct
ion(a){0===a&&c["delete"](this.POINTER_ID)}};a.mouseEvents=i}(window.PolymerGest
ures),function(a){var b=a.dispatcher,c=(a.targetFinding.allShadows.bind(a.target
Finding),b.pointermap),d=(Array.prototype.map.call.bind(Array.prototype.map),250
0),e=25,f=200,g=20,h=!1,i={IS_IOS:!1,events:["touchstart","touchmove","touchend"
,"touchcancel"],exposes:["down","up","move"],register:function(a,c){(this.IS_IOS
?c:!c)&&b.listen(a,this.events)},unregister:function(a){this.IS_IOS||b.unlisten(
a,this.events)},scrollTypes:{EMITTER:"none",XSCROLLER:"pan-x",YSCROLLER:"pan-y"}
,touchActionToScrollType:function(a){var b=a,c=this.scrollTypes;return b===c.EMI
TTER?"none":b===c.XSCROLLER?"X":b===c.YSCROLLER?"Y":"XY"},POINTER_TYPE:"touch",f
irstTouch:null,isPrimaryTouch:function(a){return this.firstTouch===a.identifier}
,setPrimaryTouch:function(a){(0===c.pointers()||1===c.pointers()&&c.has(1))&&(th
is.firstTouch=a.identifier,this.firstXY={X:a.clientX,Y:a.clientY},this.firstTarg
et=a.target,this.scrolling=null,this.cancelResetClickCount())},removePrimaryPoin
ter:function(a){a.isPrimary&&(this.firstTouch=null,this.firstXY=null,this.resetC
lickCount())},clickCount:0,resetId:null,resetClickCount:function(){var a=functio
n(){this.clickCount=0,this.resetId=null}.bind(this);this.resetId=setTimeout(a,f)
},cancelResetClickCount:function(){this.resetId&&clearTimeout(this.resetId)},typ
eToButtons:function(a){var b=0;return("touchstart"===a||"touchmove"===a)&&(b=1),
b},findTarget:function(b,d){if("touchstart"===this.currentTouchEvent.type){if(th
is.isPrimaryTouch(b)){var e={clientX:b.clientX,clientY:b.clientY,path:this.curre
ntTouchEvent.path,target:this.currentTouchEvent.target};return a.findTarget(e)}r
eturn a.findTarget(b)}return c.get(d)},touchToPointer:function(a){var c=this.cur
rentTouchEvent,d=b.cloneEvent(a),e=d.pointerId=a.identifier+2;d.target=this.find
Target(a,e),d.bubbles=!0,d.cancelable=!0,d.detail=this.clickCount,d.buttons=this
.typeToButtons(c.type),d.width=a.webkitRadiusX||a.radiusX||0,d.height=a.webkitRa
diusY||a.radiusY||0,d.pressure=a.webkitForce||a.force||.5,d.isPrimary=this.isPri
maryTouch(a),d.pointerType=this.POINTER_TYPE,d._source="touch";var f=this;return
d.preventDefault=function(){f.scrolling=!1,f.firstXY=null,c.preventDefault()},d
},processTouches:function(a,b){var d=a.changedTouches;this.currentTouchEvent=a;f
or(var e,f,g=0;g<d.length;g++)e=d[g],f=this.touchToPointer(e),"touchstart"===a.t
ype&&c.set(f.pointerId,f.target),c.has(f.pointerId)&&b.call(this,f),("touchend"=
==a.type||a._cancel)&&this.cleanUpPointer(f)},shouldScroll:function(b){if(this.f
irstXY){var c,d=a.targetFinding.findTouchAction(b),e=this.touchActionToScrollTyp
e(d);if("none"===e)c=!1;else if("XY"===e)c=!0;else{var f=b.changedTouches[0],g=e
,h="Y"===e?"X":"Y",i=Math.abs(f["client"+g]-this.firstXY[g]),j=Math.abs(f["clien
t"+h]-this.firstXY[h]);c=i>=j}return c}},findTouch:function(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(c.pointers()>=b.length){var d=[];c.forEach(function(a,c){
if(1!==c&&!this.findTouch(b,c-2)){var e=a;d.push(e)}},this),d.forEach(function(a
){this.cancel(a),c["delete"](a.pointerId)},this)}},touchstart:function(a){this.v
acuumTouches(a),this.setPrimaryTouch(a.changedTouches[0]),this.dedupSynthMouse(a
),this.scrolling||(this.clickCount++,this.processTouches(a,this.down))},down:fun
ction(a){b.down(a)},touchmove:function(a){if(h)a.cancelable&&this.processTouches
(a,this.move);else if(this.scrolling){if(this.firstXY){var b=a.changedTouches[0]
,c=b.clientX-this.firstXY.X,d=b.clientY-this.firstXY.Y,e=Math.sqrt(c*c+d*d);e>=g
&&(this.touchcancel(a),this.scrolling=!0,this.firstXY=null)}}else null===this.sc
rolling&&this.shouldScroll(a)?this.scrolling=!0:(this.scrolling=!1,a.preventDefa
ult(),this.processTouches(a,this.move))},move:function(a){b.move(a)},touchend:fu
nction(a){this.dedupSynthMouse(a),this.processTouches(a,this.up)},up:function(c)
{c.relatedTarget=a.findTarget(c),b.up(c)},cancel:function(a){b.cancel(a)},touchc
ancel:function(a){a._cancel=!0,this.processTouches(a,this.cancel)},cleanUpPointe
r:function(a){c["delete"](a.pointerId),this.removePrimaryPointer(a)},dedupSynthM
ouse:function(b){var c=a.mouseEvents.lastTouches,e=b.changedTouches[0];if(this.i
sPrimaryTouch(e)){var f={x:e.clientX,y:e.clientY};c.push(f);var g=function(a,b){
var c=a.indexOf(b);c>-1&&a.splice(c,1)}.bind(null,c,f);setTimeout(g,d)}}},j=Even
t.prototype.stopImmediatePropagation||Event.prototype.stopPropagation;document.a
ddEventListener("click",function(b){var c=b.clientX,d=b.clientY,f=function(a){va
r b=Math.abs(c-a.x),f=Math.abs(d-a.y);return e>=b&&e>=f},g=a.mouseEvents.lastTou
ches.some(f),h=a.targetFinding.path(b);if(g){for(var k=0;k<h.length;k++)if(h[k]=
==i.firstTarget)return;b.preventDefault(),j.call(b)}},!0),a.touchEvents=i}(windo
w.PolymerGestures),function(a){var b=a.dispatcher,c=b.pointermap,d=window.MSPoin
terEvent&&"number"==typeof window.MSPointerEvent.MSPOINTER_TYPE_MOUSE,e={events:
["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel"],register:funct
ion(a){b.listen(a,this.events)},unregister:function(a){a!==document&&b.unlisten(
a,this.events)},POINTER_TYPES:["","unavailable","touch","pen","mouse"],prepareEv
ent:function(a){var c=a;return c=b.cloneEvent(a),d&&(c.pointerType=this.POINTER_
TYPES[a.pointerType]),c._source="ms",c},cleanup:function(a){c["delete"](a)},MSPo
interDown:function(d){var e=this.prepareEvent(d);e.target=a.findTarget(d),c.set(
d.pointerId,e.target),b.down(e)},MSPointerMove:function(a){var d=c.get(a.pointer
Id);if(d){var e=this.prepareEvent(a);e.target=d,b.move(e)}},MSPointerUp:function
(d){var e=this.prepareEvent(d);e.relatedTarget=a.findTarget(d),e.target=c.get(e.
pointerId),b.up(e),this.cleanup(d.pointerId)},MSPointerCancel:function(d){var e=
this.prepareEvent(d);e.relatedTarget=a.findTarget(d),e.target=c.get(e.pointerId)
,b.cancel(e),this.cleanup(d.pointerId)}};a.msEvents=e}(window.PolymerGestures),f
unction(a){var b=a.dispatcher,c=b.pointermap,d={events:["pointerdown","pointermo
ve","pointerup","pointercancel"],prepareEvent:function(a){var c=b.cloneEvent(a);
return c._source="pointer",c},register:function(a){b.listen(a,this.events)},unre
gister:function(a){a!==document&&b.unlisten(a,this.events)},cleanup:function(a){
c["delete"](a)},pointerdown:function(d){var e=this.prepareEvent(d);e.target=a.fi
ndTarget(d),c.set(e.pointerId,e.target),b.down(e)},pointermove:function(a){var d
=c.get(a.pointerId);if(d){var e=this.prepareEvent(a);e.target=d,b.move(e)}},poin
terup:function(d){var e=this.prepareEvent(d);e.relatedTarget=a.findTarget(d),e.t
arget=c.get(e.pointerId),b.up(e),this.cleanup(d.pointerId)},pointercancel:functi
on(d){var e=this.prepareEvent(d);e.relatedTarget=a.findTarget(d),e.target=c.get(
e.pointerId),b.cancel(e),this.cleanup(d.pointerId)}};a.pointerEvents=d}(window.P
olymerGestures),function(a){var b=a.dispatcher,c=window.navigator;window.Pointer
Event?b.registerSource("pointer",a.pointerEvents):c.msPointerEnabled?b.registerS
ource("ms",a.msEvents):(b.registerSource("mouse",a.mouseEvents),void 0!==window.
ontouchstart&&b.registerSource("touch",a.touchEvents));var d=navigator.userAgent
,e=d.match(/iPad|iPhone|iPod/)&&"ontouchstart"in window;b.IS_IOS=e,a.touchEvents
.IS_IOS=e,b.register(document,!0)}(window.PolymerGestures),function(a){var b=a.d
ispatcher,c=a.eventFactory,d=new a.PointerMap,e={events:["down","move","up"],exp
oses:["trackstart","track","trackx","tracky","trackend"],defaultActions:{track:"
none",trackx:"pan-y",tracky:"pan-x"},WIGGLE_THRESHOLD:4,clampDir:function(a){ret
urn a>0?1:-1},calcPositionDelta:function(a,b){var c=0,d=0;return a&&b&&(c=b.page
X-a.pageX,d=b.pageY-a.pageY),{x:c,y:d}},fireTrack:function(a,b,d){var e=d,f=this
.calcPositionDelta(e.downEvent,b),g=this.calcPositionDelta(e.lastMoveEvent,b);if
(g.x)e.xDirection=this.clampDir(g.x);else if("trackx"===a)return;if(g.y)e.yDirec
tion=this.clampDir(g.y);else if("tracky"===a)return;var h={bubbles:!0,cancelable
:!0,trackInfo:e.trackInfo,relatedTarget:b.relatedTarget,pointerType:b.pointerTyp
e,pointerId:b.pointerId,_source:"track"};"tracky"!==a&&(h.x=b.x,h.dx=f.x,h.ddx=g
.x,h.clientX=b.clientX,h.pageX=b.pageX,h.screenX=b.screenX,h.xDirection=e.xDirec
tion),"trackx"!==a&&(h.dy=f.y,h.ddy=g.y,h.y=b.y,h.clientY=b.clientY,h.pageY=b.pa
geY,h.screenY=b.screenY,h.yDirection=e.yDirection);var i=c.makeGestureEvent(a,h)
;e.downTarget.dispatchEvent(i)},down:function(a){if(a.isPrimary&&("mouse"===a.po
interType?1===a.buttons:!0)){var b={downEvent:a,downTarget:a.target,trackInfo:{}
,lastMoveEvent:null,xDirection:0,yDirection:0,tracking:!1};d.set(a.pointerId,b)}
},move:function(a){var b=d.get(a.pointerId);if(b){if(!b.tracking){var c=this.cal
cPositionDelta(b.downEvent,a),e=c.x*c.x+c.y*c.y;e>this.WIGGLE_THRESHOLD&&(b.trac
king=!0,b.lastMoveEvent=b.downEvent,this.fireTrack("trackstart",a,b))}b.tracking
&&(this.fireTrack("track",a,b),this.fireTrack("trackx",a,b),this.fireTrack("trac
ky",a,b)),b.lastMoveEvent=a}},up:function(a){var b=d.get(a.pointerId);b&&(b.trac
king&&this.fireTrack("trackend",a,b),d["delete"](a.pointerId))}};b.registerGestu
re("track",e)}(window.PolymerGestures),function(a){var b=a.dispatcher,c=a.eventF
actory,d={HOLD_DELAY:200,WIGGLE_THRESHOLD:16,events:["down","move","up"],exposes
:["hold","holdpulse","release"],heldPointer:null,holdJob:null,pulse:function(){v
ar a=Date.now()-this.heldPointer.timeStamp,b=this.held?"holdpulse":"hold";this.f
ireHold(b,a),this.held=!0},cancel:function(){clearInterval(this.holdJob),this.he
ld&&this.fireHold("release"),this.held=!1,this.heldPointer=null,this.target=null
,this.holdJob=null},down:function(a){a.isPrimary&&!this.heldPointer&&(this.heldP
ointer=a,this.target=a.target,this.holdJob=setInterval(this.pulse.bind(this),thi
s.HOLD_DELAY))},up:function(a){this.heldPointer&&this.heldPointer.pointerId===a.
pointerId&&this.cancel()},move:function(a){if(this.heldPointer&&this.heldPointer
.pointerId===a.pointerId){var b=a.clientX-this.heldPointer.clientX,c=a.clientY-t
his.heldPointer.clientY;b*b+c*c>this.WIGGLE_THRESHOLD&&this.cancel()}},fireHold:
function(a,b){var d={bubbles:!0,cancelable:!0,pointerType:this.heldPointer.point
erType,pointerId:this.heldPointer.pointerId,x:this.heldPointer.clientX,y:this.he
ldPointer.clientY,_source:"hold"};b&&(d.holdTime=b);var e=c.makeGestureEvent(a,d
);this.target.dispatchEvent(e)}};b.registerGesture("hold",d)}(window.PolymerGest
ures),function(a){var b=a.dispatcher,c=a.eventFactory,d=new a.PointerMap,e={even
ts:["down","up"],exposes:["tap"],down:function(a){a.isPrimary&&!a.tapPrevented&&
d.set(a.pointerId,{target:a.target,buttons:a.buttons,x:a.clientX,y:a.clientY})},
shouldTap:function(a,b){var c=!0;return"mouse"===a.pointerType&&(c=1^a.buttons&&
1&b.buttons),c&&!a.tapPrevented},up:function(b){var e=d.get(b.pointerId);if(e&&t
his.shouldTap(b,e)){var f=a.targetFinding.LCA(e.target,b.relatedTarget);if(f){va
r g=c.makeGestureEvent("tap",{bubbles:!0,cancelable:!0,x:b.clientX,y:b.clientY,d
etail:b.detail,pointerType:b.pointerType,pointerId:b.pointerId,altKey:b.altKey,c
trlKey:b.ctrlKey,metaKey:b.metaKey,shiftKey:b.shiftKey,_source:"tap"});f.dispatc
hEvent(g)}}d["delete"](b.pointerId)}};c.preventTap=function(a){return function()
{a.tapPrevented=!0,d["delete"](a.pointerId)}},b.registerGesture("tap",e)}(window
.PolymerGestures),function(a){var b=a.dispatcher,c=a.eventFactory,d=new a.Pointe
rMap,e=180/Math.PI,f={events:["down","up","move","cancel"],exposes:["pinchstart"
,"pinch","pinchend","rotate"],defaultActions:{pinch:"none",rotate:"none"},refere
nce:{},down:function(b){if(d.set(b.pointerId,b),2==d.pointers()){var c=this.calc
Chord(),e=this.calcAngle(c);this.reference={angle:e,diameter:c.diameter,target:a
.targetFinding.LCA(c.a.target,c.b.target)},this.firePinch("pinchstart",c.diamete
r,c)}},up:function(a){var b=d.get(a.pointerId),c=d.pointers();if(b){if(2===c){va
r e=this.calcChord();this.firePinch("pinchend",e.diameter,e)}d["delete"](a.point
erId)}},move:function(a){d.has(a.pointerId)&&(d.set(a.pointerId,a),d.pointers()>
1&&this.calcPinchRotate())},cancel:function(a){this.up(a)},firePinch:function(a,
b,d){var e=b/this.reference.diameter,f=c.makeGestureEvent(a,{bubbles:!0,cancelab
le:!0,scale:e,centerX:d.center.x,centerY:d.center.y,_source:"pinch"});this.refer
ence.target.dispatchEvent(f)},fireRotate:function(a,b){var d=Math.round((a-this.
reference.angle)%360),e=c.makeGestureEvent("rotate",{bubbles:!0,cancelable:!0,an
gle:d,centerX:b.center.x,centerY:b.center.y,_source:"pinch"});this.reference.tar
get.dispatchEvent(e)},calcPinchRotate:function(){var a=this.calcChord(),b=a.diam
eter,c=this.calcAngle(a);b!=this.reference.diameter&&this.firePinch("pinch",b,a)
,c!=this.reference.angle&&this.fireRotate(c,a)},calcChord:function(){var a=[];d.
forEach(function(b){a.push(b)});for(var b,c,e,f=0,g={a:a[0],b:a[1]},h=0;h<a.leng
th;h++)for(var i=a[h],j=h+1;j<a.length;j++){var k=a[j];b=Math.abs(i.clientX-k.cl
ientX),c=Math.abs(i.clientY-k.clientY),e=b+c,e>f&&(f=e,g={a:i,b:k})}return b=Mat
h.abs(g.a.clientX+g.b.clientX)/2,c=Math.abs(g.a.clientY+g.b.clientY)/2,g.center=
{x:b,y:c},g.diameter=f,g},calcAngle:function(a){var b=a.a.clientX-a.b.clientX,c=
a.a.clientY-a.b.clientY;return(360+Math.atan2(c,b)*e)%360}};b.registerGesture("p
inch",f)}(window.PolymerGestures),function(a){"use strict";function b(a,b){if(!a
)throw new Error("ASSERT: "+b)}function c(a){return a>=48&&57>=a}function d(a){r
eturn 32===a||9===a||11===a||12===a||160===a||a>=5760&&" ".index
Of(String.fromCharCode(a))>0}function e(a){return 10===a||13===a||8232===a||8233
===a}function f(a){return 36===a||95===a||a>=65&&90>=a||a>=97&&122>=a}function g
(a){return 36===a||95===a||a>=65&&90>=a||a>=97&&122>=a||a>=48&&57>=a}function h(
a){return"this"===a}function i(){for(;Y>X&&d(W.charCodeAt(X));)++X}function j(){
var a,b;for(a=X++;Y>X&&(b=W.charCodeAt(X),g(b));)++X;return W.slice(a,X)}functio
n k(){var a,b,c;return a=X,b=j(),c=1===b.length?S.Identifier:h(b)?S.Keyword:"nul
l"===b?S.NullLiteral:"true"===b||"false"===b?S.BooleanLiteral:S.Identifier,{type
:c,value:b,range:[a,X]}}function l(){var a,b,c=X,d=W.charCodeAt(X),e=W[X];switch
(d){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:ca
se 58:case 63:return++X,{type:S.Punctuator,value:String.fromCharCode(d),range:[c
,X]};default:if(a=W.charCodeAt(X+1),61===a)switch(d){case 37:case 38:case 42:cas
e 43:case 45:case 47:case 60:case 62:case 124:return X+=2,{type:S.Punctuator,val
ue:String.fromCharCode(d)+String.fromCharCode(a),range:[c,X]};case 33:case 61:re
turn X+=2,61===W.charCodeAt(X)&&++X,{type:S.Punctuator,value:W.slice(c,X),range:
[c,X]}}}return b=W[X+1],e===b&&"&|".indexOf(e)>=0?(X+=2,{type:S.Punctuator,value
:e+b,range:[c,X]}):"<>=!+-*%&|^/".indexOf(e)>=0?(++X,{type:S.Punctuator,value:e,
range:[c,X]}):void s({},V.UnexpectedToken,"ILLEGAL")}function m(){var a,d,e;if(e
=W[X],b(c(e.charCodeAt(0))||"."===e,"Numeric literal must start with a decimal d
igit or a decimal point"),d=X,a="","."!==e){for(a=W[X++],e=W[X],"0"===a&&e&&c(e.
charCodeAt(0))&&s({},V.UnexpectedToken,"ILLEGAL");c(W.charCodeAt(X));)a+=W[X++];
e=W[X]}if("."===e){for(a+=W[X++];c(W.charCodeAt(X));)a+=W[X++];e=W[X]}if("e"===e
||"E"===e)if(a+=W[X++],e=W[X],("+"===e||"-"===e)&&(a+=W[X++]),c(W.charCodeAt(X))
)for(;c(W.charCodeAt(X));)a+=W[X++];else s({},V.UnexpectedToken,"ILLEGAL");retur
n f(W.charCodeAt(X))&&s({},V.UnexpectedToken,"ILLEGAL"),{type:S.NumericLiteral,v
alue:parseFloat(a),range:[d,X]}}function n(){var a,c,d,f="",g=!1;for(a=W[X],b("'
"===a||'"'===a,"String literal must starts with a quote"),c=X,++X;Y>X;){if(d=W[X
++],d===a){a="";break}if("\\"===d)if(d=W[X++],d&&e(d.charCodeAt(0)))"\r"===d&&"\
n"===W[X]&&++X;else switch(d){case"n":f+="\n";break;case"r":f+="\r";break;case"t
":f+=" ";break;case"b":f+="\b";break;case"f":f+="\f";break;case"v":f+="";break
;default:f+=d}else{if(e(d.charCodeAt(0)))break;f+=d}}return""!==a&&s({},V.Unexpe
ctedToken,"ILLEGAL"),{type:S.StringLiteral,value:f,octal:g,range:[c,X]}}function
o(a){return a.type===S.Identifier||a.type===S.Keyword||a.type===S.BooleanLitera
l||a.type===S.NullLiteral}function p(){var a;return i(),X>=Y?{type:S.EOF,range:[
X,X]}:(a=W.charCodeAt(X),40===a||41===a||58===a?l():39===a||34===a?n():f(a)?k():
46===a?c(W.charCodeAt(X+1))?m():l():c(a)?m():l())}function q(){var a;return a=$,
X=a.range[1],$=p(),X=a.range[1],a}function r(){var a;a=X,$=p(),X=a}function s(a,
c){var d,e=Array.prototype.slice.call(arguments,2),f=c.replace(/%(\d)/g,function
(a,c){return b(c<e.length,"Message reference must be in range"),e[c]});throw d=n
ew Error(f),d.index=X,d.description=f,d}function t(a){s(a,V.UnexpectedToken,a.va
lue)}function u(a){var b=q();(b.type!==S.Punctuator||b.value!==a)&&t(b)}function
v(a){return $.type===S.Punctuator&&$.value===a}function w(a){return $.type===S.
Keyword&&$.value===a}function x(){var a=[];for(u("[");!v("]");)v(",")?(q(),a.pus
h(null)):(a.push(bb()),v("]")||u(","));return u("]"),Z.createArrayExpression(a)}
function y(){var a;return i(),a=q(),a.type===S.StringLiteral||a.type===S.Numeric
Literal?Z.createLiteral(a):Z.createIdentifier(a.value)}function z(){var a,b;retu
rn a=$,i(),(a.type===S.EOF||a.type===S.Punctuator)&&t(a),b=y(),u(":"),Z.createPr
operty("init",b,bb())}function A(){var a=[];for(u("{");!v("}");)a.push(z()),v("}
")||u(",");return u("}"),Z.createObjectExpression(a)}function B(){var a;return u
("("),a=bb(),u(")"),a}function C(){var a,b,c;return v("(")?B():(a=$.type,a===S.I
dentifier?c=Z.createIdentifier(q().value):a===S.StringLiteral||a===S.NumericLite
ral?c=Z.createLiteral(q()):a===S.Keyword?w("this")&&(q(),c=Z.createThisExpressio
n()):a===S.BooleanLiteral?(b=q(),b.value="true"===b.value,c=Z.createLiteral(b)):
a===S.NullLiteral?(b=q(),b.value=null,c=Z.createLiteral(b)):v("[")?c=x():v("{")&
&(c=A()),c?c:void t(q()))}function D(){var a=[];if(u("("),!v(")"))for(;Y>X&&(a.p
ush(bb()),!v(")"));)u(",");return u(")"),a}function E(){var a;return a=q(),o(a)|
|t(a),Z.createIdentifier(a.value)}function F(){return u("."),E()}function G(){va
r a;return u("["),a=bb(),u("]"),a}function H(){var a,b,c;for(a=C();;)if(v("["))c
=G(),a=Z.createMemberExpression("[",a,c);else if(v("."))c=F(),a=Z.createMemberEx
pression(".",a,c);else{if(!v("("))break;b=D(),a=Z.createCallExpression(a,b)}retu
rn a}function I(){var a,b;return $.type!==S.Punctuator&&$.type!==S.Keyword?b=ab(
):v("+")||v("-")||v("!")?(a=q(),b=I(),b=Z.createUnaryExpression(a.value,b)):w("d
elete")||w("void")||w("typeof")?s({},V.UnexpectedToken):b=ab(),b}function J(a){v
ar b=0;if(a.type!==S.Punctuator&&a.type!==S.Keyword)return 0;switch(a.value){cas
e"||":b=1;break;case"&&":b=2;break;case"==":case"!=":case"===":case"!==":b=6;bre
ak;case"<":case">":case"<=":case">=":case"instanceof":b=7;break;case"in":b=7;bre
ak;case"+":case"-":b=9;break;case"*":case"/":case"%":b=11}return b}function K(){
var a,b,c,d,e,f,g,h;if(g=I(),b=$,c=J(b),0===c)return g;for(b.prec=c,q(),e=I(),d=
[g,b,e];(c=J($))>0;){for(;d.length>2&&c<=d[d.length-2].prec;)e=d.pop(),f=d.pop()
.value,g=d.pop(),a=Z.createBinaryExpression(f,g,e),d.push(a);b=q(),b.prec=c,d.pu
sh(b),a=I(),d.push(a)}for(h=d.length-1,a=d[h];h>1;)a=Z.createBinaryExpression(d[
h-1].value,d[h-2],a),h-=2;return a}function L(){var a,b,c;return a=K(),v("?")&&(
q(),b=L(),u(":"),c=L(),a=Z.createConditionalExpression(a,b,c)),a}function M(){va
r a,b;return a=q(),a.type!==S.Identifier&&t(a),b=v("(")?D():[],Z.createFilter(a.
value,b)}function N(){for(;v("|");)q(),M()}function O(){i(),r();var a=bb();a&&("
,"===$.value||"in"==$.value&&a.type===U.Identifier?Q(a):(N(),"as"===$.value?P(a)
:Z.createTopLevel(a))),$.type!==S.EOF&&t($)}function P(a){q();var b=q().value;Z.
createAsExpression(a,b)}function Q(a){var b;","===$.value&&(q(),$.type!==S.Ident
ifier&&t($),b=q().value),q();var c=bb();N(),Z.createInExpression(a.name,b,c)}fun
ction R(a,b){return Z=b,W=a,X=0,Y=W.length,$=null,_={labelSet:{}},O()}var S,T,U,
V,W,X,Y,Z,$,_;S={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,Num
ericLiteral:6,Punctuator:7,StringLiteral:8},T={},T[S.BooleanLiteral]="Boolean",T
[S.EOF]="<end>",T[S.Identifier]="Identifier",T[S.Keyword]="Keyword",T[S.NullLite
ral]="Null",T[S.NumericLiteral]="Numeric",T[S.Punctuator]="Punctuator",T[S.Strin
gLiteral]="String",U={ArrayExpression:"ArrayExpression",BinaryExpression:"Binary
Expression",CallExpression:"CallExpression",ConditionalExpression:"ConditionalEx
pression",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStateme
nt",Identifier:"Identifier",Literal:"Literal",LabeledStatement:"LabeledStatement
",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",Obje
ctExpression:"ObjectExpression",Program:"Program",Property:"Property",ThisExpres
sion:"ThisExpression",UnaryExpression:"UnaryExpression"},V={UnexpectedToken:"Une
xpected token %0",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has
already been declared"}; |
| 12 var ab=H,bb=L;a.esprima={parse:R}}(this),function(a){"use strict";function b(a,b
,d,e){var f;try{if(f=c(a),f.scopeIdent&&(d.nodeType!==Node.ELEMENT_NODE||"TEMPLA
TE"!==d.tagName||"bind"!==b&&"repeat"!==b))throw Error("as and in can only be us
ed within <template bind/repeat>")}catch(g){return void console.error("Invalid e
xpression syntax: "+a,g)}return function(a,b,c){var d=f.getBinding(a,e,c);return
f.scopeIdent&&d&&(b.polymerExpressionScopeIdent_=f.scopeIdent,f.indexIdent&&(b.
polymerExpressionIndexIdent_=f.indexIdent)),d}}function c(a){var b=q[a];if(!b){v
ar c=new j;esprima.parse(a,c),b=new l(c),q[a]=b}return b}function d(a){this.valu
e=a,this.valueFn_=void 0}function e(a){this.name=a,this.path=Path.get(a)}functio
n f(a,b,c){this.computed="["==c,this.dynamicDeps="function"==typeof a||a.dynamic
Deps||this.computed&&!(b instanceof d),this.simplePath=!this.dynamicDeps&&(b ins
tanceof e||b instanceof d)&&(a instanceof f||a instanceof e),this.object=this.si
mplePath?a:i(a),this.property=!this.computed||this.simplePath?b:i(b)}function g(
a,b){this.name=a,this.args=[];for(var c=0;c<b.length;c++)this.args[c]=i(b[c])}fu
nction h(){throw Error("Not Implemented")}function i(a){return"function"==typeof
a?a:a.valueFn()}function j(){this.expression=null,this.filters=[],this.deps={},
this.currentPath=void 0,this.scopeIdent=void 0,this.indexIdent=void 0,this.dynam
icDeps=!1}function k(a){this.value_=a}function l(a){if(this.scopeIdent=a.scopeId
ent,this.indexIdent=a.indexIdent,!a.expression)throw Error("No expression found.
");this.expression=a.expression,i(this.expression),this.filters=a.filters,this.d
ynamicDeps=a.dynamicDeps}function m(a){return String(a).replace(/[A-Z]/g,functio
n(a){return"-"+a.toLowerCase()})}function n(a,b){for(;a[t]&&!Object.prototype.ha
sOwnProperty.call(a,b);)a=a[t];return a}function o(a){switch(a){case"":return!1;
case"false":case"null":case"true":return!0}return isNaN(Number(a))?!1:!0}functio
n p(){}var q=Object.create(null);d.prototype={valueFn:function(){if(!this.valueF
n_){var a=this.value;this.valueFn_=function(){return a}}return this.valueFn_}},e
.prototype={valueFn:function(){if(!this.valueFn_){var a=(this.name,this.path);th
is.valueFn_=function(b,c){return c&&c.addPath(b,a),a.getValueFrom(b)}}return thi
s.valueFn_},setValue:function(a,b){return 1==this.path.length&&(a=n(a,this.path[
0])),this.path.setValueFrom(a,b)}},f.prototype={get fullPath(){if(!this.fullPath
_){var a=this.object instanceof f?this.object.fullPath.slice():[this.object.name
];a.push(this.property instanceof e?this.property.name:this.property.value),this
.fullPath_=Path.get(a)}return this.fullPath_},valueFn:function(){if(!this.valueF
n_){var a=this.object;if(this.simplePath){var b=this.fullPath;this.valueFn_=func
tion(a,c){return c&&c.addPath(a,b),b.getValueFrom(a)}}else if(this.computed){var
c=this.property;this.valueFn_=function(b,d,e){var f=a(b,d,e),g=c(b,d,e);return
d&&d.addPath(f,[g]),f?f[g]:void 0}}else{var b=Path.get(this.property.name);this.
valueFn_=function(c,d,e){var f=a(c,d,e);return d&&d.addPath(f,b),b.getValueFrom(
f)}}}return this.valueFn_},setValue:function(a,b){if(this.simplePath)return this
.fullPath.setValueFrom(a,b),b;var c=this.object(a),d=this.property instanceof e?
this.property.name:this.property(a);return c[d]=b}},g.prototype={transform:funct
ion(a,b,c,d,e){var f=c[this.name],g=a;if(f)g=void 0;else if(f=g[this.name],!f)re
turn void console.error("Cannot find function or filter: "+this.name);if(d?f=f.t
oModel:"function"==typeof f.toDOM&&(f=f.toDOM),"function"!=typeof f)return void
console.error("Cannot find function or filter: "+this.name);for(var h=e||[],j=0;
j<this.args.length;j++)h.push(i(this.args[j])(a,b,c));return f.apply(g,h)}};var
r={"+":function(a){return+a},"-":function(a){return-a},"!":function(a){return!a}
},s={"+":function(a,b){return a+b},"-":function(a,b){return a-b},"*":function(a,
b){return a*b},"/":function(a,b){return a/b},"%":function(a,b){return a%b},"<":f
unction(a,b){return b>a},">":function(a,b){return a>b},"<=":function(a,b){return
b>=a},">=":function(a,b){return a>=b},"==":function(a,b){return a==b},"!=":func
tion(a,b){return a!=b},"===":function(a,b){return a===b},"!==":function(a,b){ret
urn a!==b},"&&":function(a,b){return a&&b},"||":function(a,b){return a||b}};j.pr
ototype={createUnaryExpression:function(a,b){if(!r[a])throw Error("Disallowed op
erator: "+a);return b=i(b),function(c,d,e){return r[a](b(c,d,e))}},createBinaryE
xpression:function(a,b,c){if(!s[a])throw Error("Disallowed operator: "+a);switch
(b=i(b),c=i(c),a){case"||":return this.dynamicDeps=!0,function(a,d,e){return b(a
,d,e)||c(a,d,e)};case"&&":return this.dynamicDeps=!0,function(a,d,e){return b(a,
d,e)&&c(a,d,e)}}return function(d,e,f){return s[a](b(d,e,f),c(d,e,f))}},createCo
nditionalExpression:function(a,b,c){return a=i(a),b=i(b),c=i(c),this.dynamicDeps
=!0,function(d,e,f){return a(d,e,f)?b(d,e,f):c(d,e,f)}},createIdentifier:functio
n(a){var b=new e(a);return b.type="Identifier",b},createMemberExpression:functio
n(a,b,c){var d=new f(b,c,a);return d.dynamicDeps&&(this.dynamicDeps=!0),d},creat
eCallExpression:function(a,b){if(!(a instanceof e))throw Error("Only identifier
function invocations are allowed");var c=new g(a.name,b);return function(a,b,d){
return c.transform(a,b,d,!1)}},createLiteral:function(a){return new d(a.value)},
createArrayExpression:function(a){for(var b=0;b<a.length;b++)a[b]=i(a[b]);return
function(b,c,d){for(var e=[],f=0;f<a.length;f++)e.push(a[f](b,c,d));return e}},
createProperty:function(a,b,c){return{key:b instanceof e?b.name:b.value,value:c}
},createObjectExpression:function(a){for(var b=0;b<a.length;b++)a[b].value=i(a[b
].value);return function(b,c,d){for(var e={},f=0;f<a.length;f++)e[a[f].key]=a[f]
.value(b,c,d);return e}},createFilter:function(a,b){this.filters.push(new g(a,b)
)},createAsExpression:function(a,b){this.expression=a,this.scopeIdent=b},createI
nExpression:function(a,b,c){this.expression=c,this.scopeIdent=a,this.indexIdent=
b},createTopLevel:function(a){this.expression=a},createThisExpression:h},k.proto
type={open:function(){return this.value_},discardChanges:function(){return this.
value_},deliver:function(){},close:function(){}},l.prototype={getBinding:functio
n(a,b,c){function d(){if(h)return h=!1,g;i.dynamicDeps&&f.startReset();var c=i.g
etValue(a,i.dynamicDeps?f:void 0,b);return i.dynamicDeps&&f.finishReset(),c}func
tion e(c){return i.setValue(a,c,b),c}if(c)return this.getValue(a,void 0,b);var f
=new CompoundObserver,g=this.getValue(a,f,b),h=!0,i=this;return new ObserverTran
sform(f,d,e,!0)},getValue:function(a,b,c){for(var d=i(this.expression)(a,b,c),e=
0;e<this.filters.length;e++)d=this.filters[e].transform(a,b,c,!1,[d]);return d},
setValue:function(a,b,c){for(var d=this.filters?this.filters.length:0;d-->0;)b=t
his.filters[d].transform(a,void 0,c,!0,[b]);return this.expression.setValue?this
.expression.setValue(a,b):void 0}};var t="@"+Math.random().toString(36).slice(2)
;p.prototype={styleObject:function(a){var b=[];for(var c in a)b.push(m(c)+": "+a
[c]);return b.join("; ")},tokenList:function(a){var b=[];for(var c in a)a[c]&&b.
push(c);return b.join(" ")},prepareInstancePositionChanged:function(a){var b=a.p
olymerExpressionIndexIdent_;if(b)return function(a,c){a.model[b]=c}},prepareBind
ing:function(a,c,d){var e=Path.get(a);{if(o(a)||!e.valid)return b(a,c,d,this);if
(1==e.length)return function(a,b,c){if(c)return e.getValueFrom(a);var d=n(a,e[0]
);return new PathObserver(d,e)}}},prepareInstanceModel:function(a){var b=a.polym
erExpressionScopeIdent_;if(b){var c=a.templateInstance?a.templateInstance.model:
a.model,d=a.polymerExpressionIndexIdent_;return function(a){return u(c,a,b,d)}}}
};var u="__proto__"in{}?function(a,b,c,d){var e={};return e[c]=b,e[d]=void 0,e[t
]=a,e.__proto__=a,e}:function(a,b,c,d){var e=Object.create(a);return Object.defi
neProperty(e,c,{value:b,configurable:!0,writable:!0}),Object.defineProperty(e,d,
{value:void 0,configurable:!0,writable:!0}),Object.defineProperty(e,t,{value:a,c
onfigurable:!0,writable:!0}),e};a.PolymerExpressions=p,p.getExpression=c}(this),
Polymer={version:"0.5.1"},"function"==typeof window.Polymer&&(Polymer={}),functi
on(a){function b(a,b){return b=b||[],b.map||(b=[b]),a.apply(this,b.map(d))}funct
ion c(a,c,d){var e;switch(arguments.length){case 0:return;case 1:e=null;break;ca
se 2:e=c.apply(this);break;default:e=b(d,c)}f[a]=e}function d(a){return f[a]}fun
ction e(a,c){HTMLImports.whenImportsReady(function(){b(c,a)})}var f={};a.marshal
=d,a.modularize=c,a.using=e}(window),window.WebComponents||(window.WebComponents
||(WebComponents={flush:function(){},flags:{log:{}}},Platform=WebComponents,Cust
omElements={useNative:!0,ready:!0,takeRecords:function(){},"instanceof":function
(a,b){return a instanceof b}},HTMLImports={useNative:!0},addEventListener("HTMLI
mportsLoaded",function(){document.dispatchEvent(new CustomEvent("WebComponentsRe
ady",{bubbles:!0}))}),ShadowDOMPolyfill=null,wrap=unwrap=function(a){return a}),
window.HTMLImports=window.HTMLImports||{flags:{}},function(a){function b(a,b){b=
b||o,d(function(){f(a,b)},b)}function c(a){return"complete"===a.readyState||a.re
adyState===r}function d(a,b){if(c(b))a&&a();else{var e=function(){("complete"===
b.readyState||b.readyState===r)&&(b.removeEventListener(s,e),d(a,b))};b.addEvent
Listener(s,e)}}function e(a){a.target.__loaded=!0}function f(a,b){function c(){h
==i&&a&&a()}function d(a){e(a),h++,c()}var f=b.querySelectorAll("link[rel=import
]"),h=0,i=f.length;if(i)for(var j,k=0;i>k&&(j=f[k]);k++)g(j)?d.call(j,{target:j}
):(j.addEventListener("load",d),j.addEventListener("error",d));else c()}function
g(a){return l?a.__loaded||a["import"]&&"loading"!==a["import"].readyState:a.__i
mportParsed}function h(a){for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)i(b)&&j(b)}
function i(a){return"link"===a.localName&&"import"===a.rel}function j(a){var b=a
["import"];b?e({target:a}):(a.addEventListener("load",e),a.addEventListener("err
or",e))}var k="import",l=Boolean(k in document.createElement("link")),m=Boolean(
window.ShadowDOMPolyfill),n=function(a){return m?ShadowDOMPolyfill.wrapIfNeeded(
a):a},o=n(document),p={get:function(){var a=HTMLImports.currentScript||document.
currentScript||("complete"!==document.readyState?document.scripts[document.scrip
ts.length-1]:null);return n(a)},configurable:!0};Object.defineProperty(document,
"_currentScript",p),Object.defineProperty(o,"_currentScript",p);var q=/Trident/.
test(navigator.userAgent),r=q?"complete":"interactive",s="readystatechange";l&&(
new MutationObserver(function(a){for(var b,c=0,d=a.length;d>c&&(b=a[c]);c++)b.ad
dedNodes&&h(b.addedNodes)}).observe(document.head,{childList:!0}),function(){if(
"loading"===document.readyState)for(var a,b=document.querySelectorAll("link[rel=
import]"),c=0,d=b.length;d>c&&(a=b[c]);c++)j(a)}()),b(function(){HTMLImports.rea
dy=!0,HTMLImports.readyTime=(new Date).getTime(),o.dispatchEvent(new CustomEvent
("HTMLImportsLoaded",{bubbles:!0}))}),a.IMPORT_LINK_TYPE=k,a.useNative=l,a.rootD
ocument=o,a.whenReady=b,a.isIE=q}(HTMLImports),function(){var a=document.createE
lement("style");a.textContent="body {transition: opacity ease-in 0.2s; } \nbody[
unresolved] {opacity: 0; display: block; overflow: hidden; } \n";var b=document.
querySelector("head");b.insertBefore(a,b.firstChild)}(Platform)),function(a){"us
e strict";function b(){function a(a){b=a}if("function"!=typeof Object.observe||"
function"!=typeof Array.observe)return!1;var b=[],c={},d=[];return Object.observ
e(c,a),Array.observe(d,a),c.id=1,c.id=2,delete c.id,d.push(1,2),d.length=0,Objec
t.deliverChangeRecords(a),5!==b.length?!1:"add"!=b[0].type||"update"!=b[1].type|
|"delete"!=b[2].type||"splice"!=b[3].type||"splice"!=b[4].type?!1:(Object.unobse
rve(c,a),Array.unobserve(d,a),!0)}function c(){if("undefined"!=typeof chrome&&ch
rome.app&&chrome.app.runtime)return!1;if("undefined"!=typeof navigator&&navigato
r.getDeviceStorage)return!1;try{var a=new Function("","return true;");return a()
}catch(b){return!1}}function d(a){return+a===a>>>0&&""!==a}function e(a){return+
a}function f(a){return a===Object(a)}function g(a,b){return a===b?0!==a||1/a===1
/b:R(a)&&R(b)?!0:a!==a&&b!==b}function h(a){if(void 0===a)return"eof";var b=a.ch
arCodeAt(0);switch(b){case 91:case 93:case 46:case 34:case 39:case 48:return a;c
ase 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:
case 8232:case 8233:return"ws"}return b>=97&&122>=b||b>=65&&90>=b?"ident":b>=49&
&57>=b?"number":"else"}function i(){}function j(a){function b(){if(!(m>=a.length
)){var b=a[m+1];return"inSingleQuote"==n&&"'"==b||"inDoubleQuote"==n&&'"'==b?(m+
+,d=b,o.append(),!0):void 0}}for(var c,d,e,f,g,j,k,l=[],m=-1,n="beforePath",o={p
ush:function(){void 0!==e&&(l.push(e),e=void 0)},append:function(){void 0===e?e=
d:e+=d}};n;)if(m++,c=a[m],"\\"!=c||!b(n)){if(f=h(c),k=W[n],g=k[f]||k["else"]||"e
rror","error"==g)return;if(n=g[0],j=o[g[1]]||i,d=void 0===g[2]?c:g[2],j(),"after
Path"===n)return l}}function k(a){return V.test(a)}function l(a,b){if(b!==X)thro
w Error("Use Path.get to retrieve path objects");for(var c=0;c<a.length;c++)this
.push(String(a[c]));Q&&this.length&&(this.getValueFrom=this.compiledGetValueFrom
Fn())}function m(a){if(a instanceof l)return a;if((null==a||0==a.length)&&(a="")
,"string"!=typeof a){if(d(a.length))return new l(a,X);a=String(a)}var b=Y[a];if(
b)return b;var c=j(a);if(!c)return Z;var b=new l(c,X);return Y[a]=b,b}function n
(a){return d(a)?"["+a+"]":'["'+a.replace(/"/g,'\\"')+'"]'}function o(b){for(var
c=0;_>c&&b.check_();)c++;return O&&(a.dirtyCheckCycleCount=c),c>0}function p(a){
for(var b in a)return!1;return!0}function q(a){return p(a.added)&&p(a.removed)&&
p(a.changed)}function r(a,b){var c={},d={},e={};for(var f in b){var g=a[f];(void
0===g||g!==b[f])&&(f in a?g!==b[f]&&(e[f]=g):d[f]=void 0)}for(var f in a)f in b
||(c[f]=a[f]);return Array.isArray(a)&&a.length!==b.length&&(e.length=a.length),
{added:c,removed:d,changed:e}}function s(){if(!ab.length)return!1;for(var a=0;a<
ab.length;a++)ab[a]();return ab.length=0,!0}function t(){function a(a){b&&b.stat
e_===fb&&!d&&b.check_(a)}var b,c,d=!1,e=!0;return{open:function(c){if(b)throw Er
ror("ObservedObject in use");e||Object.deliverChangeRecords(a),b=c,e=!1},observe
:function(b,d){c=b,d?Array.observe(c,a):Object.observe(c,a)},deliver:function(b)
{d=b,Object.deliverChangeRecords(a),d=!1},close:function(){b=void 0,Object.unobs
erve(c,a),cb.push(this)}}}function u(a,b,c){var d=cb.pop()||t();return d.open(a)
,d.observe(b,c),d}function v(){function a(b,f){b&&(b===d&&(e[f]=!0),h.indexOf(b)
<0&&(h.push(b),Object.observe(b,c)),a(Object.getPrototypeOf(b),f))}function b(a)
{for(var b=0;b<a.length;b++){var c=a[b];if(c.object!==d||e[c.name]||"setPrototyp
e"===c.type)return!1}return!0}function c(c){if(!b(c)){for(var d,e=0;e<g.length;e
++)d=g[e],d.state_==fb&&d.iterateObjects_(a);for(var e=0;e<g.length;e++)d=g[e],d
.state_==fb&&d.check_()}}var d,e,f=0,g=[],h=[],i={objects:h,get rootObject(){ret
urn d},set rootObject(a){d=a,e={}},open:function(b){g.push(b),f++,b.iterateObjec
ts_(a)},close:function(){if(f--,!(f>0)){for(var a=0;a<h.length;a++)Object.unobse
rve(h[a],c),x.unobservedCount++;g.length=0,h.length=0,d=void 0,e=void 0,db.push(
this),$===this&&($=null)}}};return i}function w(a,b){return $&&$.rootObject===b|
|($=db.pop()||v(),$.rootObject=b),$.open(a,b),$}function x(){this.state_=eb,this
.callback_=void 0,this.target_=void 0,this.directObserver_=void 0,this.value_=vo
id 0,this.id_=ib++}function y(a){x._allObserversCount++,kb&&jb.push(a)}function
z(){x._allObserversCount--}function A(a){x.call(this),this.value_=a,this.oldObje
ct_=void 0}function B(a){if(!Array.isArray(a))throw Error("Provided object is no
t an Array");A.call(this,a)}function C(a,b){x.call(this),this.object_=a,this.pat
h_=m(b),this.directObserver_=void 0}function D(a){x.call(this),this.reportChange
sOnOpen_=a,this.value_=[],this.directObserver_=void 0,this.observed_=[]}function
E(a){return a}function F(a,b,c,d){this.callback_=void 0,this.target_=void 0,thi
s.value_=void 0,this.observable_=a,this.getValueFn_=b||E,this.setValueFn_=c||E,t
his.dontPassThroughSet_=d}function G(a,b,c){for(var d={},e={},f=0;f<b.length;f++
){var g=b[f];nb[g.type]?(g.name in c||(c[g.name]=g.oldValue),"update"!=g.type&&(
"add"!=g.type?g.name in d?(delete d[g.name],delete c[g.name]):e[g.name]=!0:g.nam
e in e?delete e[g.name]:d[g.name]=!0)):(console.error("Unknown changeRecord type
: "+g.type),console.error(g))}for(var h in d)d[h]=a[h];for(var h in e)e[h]=void
0;var i={};for(var h in c)if(!(h in d||h in e)){var j=a[h];c[h]!==j&&(i[h]=j)}re
turn{added:d,removed:e,changed:i}}function H(a,b,c){return{index:a,removed:b,add
edCount:c}}function I(){}function J(a,b,c,d,e,f){return sb.calcSplices(a,b,c,d,e
,f)}function K(a,b,c,d){return c>b||a>d?-1:b==c||d==a?0:c>a?d>b?b-c:d-c:b>d?d-a:
b-a}function L(a,b,c,d){for(var e=H(b,c,d),f=!1,g=0,h=0;h<a.length;h++){var i=a[
h];if(i.index+=g,!f){var j=K(e.index,e.index+e.removed.length,i.index,i.index+i.
addedCount);if(j>=0){a.splice(h,1),h--,g-=i.addedCount-i.removed.length,e.addedC
ount+=i.addedCount-j;var k=e.removed.length+i.removed.length-j;if(e.addedCount||
k){var c=i.removed;if(e.index<i.index){var l=e.removed.slice(0,i.index-e.index);
Array.prototype.push.apply(l,c),c=l}if(e.index+e.removed.length>i.index+i.addedC
ount){var m=e.removed.slice(i.index+i.addedCount-e.index);Array.prototype.push.a
pply(c,m)}e.removed=c,i.index<e.index&&(e.index=i.index)}else f=!0}else if(e.ind
ex<i.index){f=!0,a.splice(h,0,e),h++;var n=e.addedCount-e.removed.length;i.index
+=n,g+=n}}}f||a.push(e)}function M(a,b){for(var c=[],f=0;f<b.length;f++){var g=b
[f];switch(g.type){case"splice":L(c,g.index,g.removed.slice(),g.addedCount);brea
k;case"add":case"update":case"delete":if(!d(g.name))continue;var h=e(g.name);if(
0>h)continue;L(c,h,[g.oldValue],1);break;default:console.error("Unexpected recor
d type: "+JSON.stringify(g))}}return c}function N(a,b){var c=[];return M(a,b).fo
rEach(function(b){return 1==b.addedCount&&1==b.removed.length?void(b.removed[0]!
==a[b.index]&&c.push(b)):void(c=c.concat(J(a,b.index,b.index+b.addedCount,b.remo
ved,0,b.removed.length)))}),c}var O=a.testingExposeCycleCount,P=b(),Q=c(),R=a.Nu
mber.isNaN||function(b){return"number"==typeof b&&a.isNaN(b)},S="__proto__"in{}?
function(a){return a}:function(a){var b=a.__proto__;if(!b)return a;var c=Object.
create(b);return Object.getOwnPropertyNames(a).forEach(function(b){Object.define
Property(c,b,Object.getOwnPropertyDescriptor(a,b))}),c},T="[$_a-zA-Z]",U="[$_a-z
A-Z0-9]",V=new RegExp("^"+T+"+"+U+"*$"),W={beforePath:{ws:["beforePath"],ident:[
"inIdent","append"],"[":["beforeElement"],eof:["afterPath"]},inPath:{ws:["inPath
"],".":["beforeIdent"],"[":["beforeElement"],eof:["afterPath"]},beforeIdent:{ws:
["beforeIdent"],ident:["inIdent","append"]},inIdent:{ident:["inIdent","append"],
0:["inIdent","append"],number:["inIdent","append"],ws:["inPath","push"],".":["be
foreIdent","push"],"[":["beforeElement","push"],eof:["afterPath","push"]},before
Element:{ws:["beforeElement"],0:["afterZero","append"],number:["inIndex","append
"],"'":["inSingleQuote","append",""],'"':["inDoubleQuote","append",""]},afterZer
o:{ws:["afterElement","push"],"]":["inPath","push"]},inIndex:{0:["inIndex","appe
nd"],number:["inIndex","append"],ws:["afterElement"],"]":["inPath","push"]},inSi
ngleQuote:{"'":["afterElement"],eof:["error"],"else":["inSingleQuote","append"]}
,inDoubleQuote:{'"':["afterElement"],eof:["error"],"else":["inDoubleQuote","appe
nd"]},afterElement:{ws:["afterElement"],"]":["inPath","push"]}},X={},Y={};l.get=
m,l.prototype=S({__proto__:[],valid:!0,toString:function(){for(var a="",b=0;b<th
is.length;b++){var c=this[b];a+=k(c)?b?"."+c:c:n(c)}return a},getValueFrom:funct
ion(a){for(var b=0;b<this.length;b++){if(null==a)return;a=a[this[b]]}return a},i
terateObjects:function(a,b){for(var c=0;c<this.length;c++){if(c&&(a=a[this[c-1]]
),!f(a))return;b(a,this[c])}},compiledGetValueFromFn:function(){var a="",b="obj"
;a+="if (obj != null";for(var c,d=0;d<this.length-1;d++)c=this[d],b+=k(c)?"."+c:
n(c),a+=" &&\n "+b+" != null";a+=")\n";var c=this[d];return b+=k(c)?"."+c:n(
c),a+=" return "+b+";\nelse\n return undefined;",new Function("obj",a)},setVal
ueFrom:function(a,b){if(!this.length)return!1;for(var c=0;c<this.length-1;c++){i
f(!f(a))return!1;a=a[this[c]]}return f(a)?(a[this[c]]=b,!0):!1}});var Z=new l(""
,X);Z.valid=!1,Z.getValueFrom=Z.setValueFrom=function(){};var $,_=1e3,ab=[],bb=P
?function(){return function(a){return Promise.resolve().then(a)}}():function(){r
eturn function(a){ab.push(a)}}(),cb=[],db=[],eb=0,fb=1,gb=2,hb=3,ib=1;x.prototyp
e={open:function(a,b){if(this.state_!=eb)throw Error("Observer has already been
opened.");return y(this),this.callback_=a,this.target_=b,this.connect_(),this.st
ate_=fb,this.value_},close:function(){this.state_==fb&&(z(this),this.disconnect_
(),this.value_=void 0,this.callback_=void 0,this.target_=void 0,this.state_=gb)}
,deliver:function(){this.state_==fb&&o(this)},report_:function(a){try{this.callb
ack_.apply(this.target_,a)}catch(b){x._errorThrownDuringCallback=!0,console.erro
r("Exception caught during observer callback: "+(b.stack||b))}},discardChanges:f
unction(){return this.check_(void 0,!0),this.value_}};var jb,kb=!P;x._allObserve
rsCount=0,kb&&(jb=[]);var lb=!1;a.Platform=a.Platform||{},a.Platform.performMicr
otaskCheckpoint=function(){if(!lb&&kb){lb=!0;var b,c,d=0;do{d++,c=jb,jb=[],b=!1;
for(var e=0;e<c.length;e++){var f=c[e];f.state_==fb&&(f.check_()&&(b=!0),jb.push
(f))}s()&&(b=!0)}while(_>d&&b);O&&(a.dirtyCheckCycleCount=d),lb=!1}},kb&&(a.Plat
form.clearObservers=function(){jb=[]}),A.prototype=S({__proto__:x.prototype,arra
yObserve:!1,connect_:function(){P?this.directObserver_=u(this,this.value_,this.a
rrayObserve):this.oldObject_=this.copyObject(this.value_)},copyObject:function(a
){var b=Array.isArray(a)?[]:{};for(var c in a)b[c]=a[c];return Array.isArray(a)&
&(b.length=a.length),b},check_:function(a){var b,c;if(P){if(!a)return!1;c={},b=G
(this.value_,a,c)}else c=this.oldObject_,b=r(this.value_,this.oldObject_);return
q(b)?!1:(P||(this.oldObject_=this.copyObject(this.value_)),this.report_([b.adde
d||{},b.removed||{},b.changed||{},function(a){return c[a]}]),!0)},disconnect_:fu
nction(){P?(this.directObserver_.close(),this.directObserver_=void 0):this.oldOb
ject_=void 0},deliver:function(){this.state_==fb&&(P?this.directObserver_.delive
r(!1):o(this))},discardChanges:function(){return this.directObserver_?this.direc
tObserver_.deliver(!0):this.oldObject_=this.copyObject(this.value_),this.value_}
}),B.prototype=S({__proto__:A.prototype,arrayObserve:!0,copyObject:function(a){r
eturn a.slice()},check_:function(a){var b;if(P){if(!a)return!1;b=N(this.value_,a
)}else b=J(this.value_,0,this.value_.length,this.oldObject_,0,this.oldObject_.le
ngth);return b&&b.length?(P||(this.oldObject_=this.copyObject(this.value_)),this
.report_([b]),!0):!1}}),B.applySplices=function(a,b,c){c.forEach(function(c){for
(var d=[c.index,c.removed.length],e=c.index;e<c.index+c.addedCount;)d.push(b[e])
,e++;Array.prototype.splice.apply(a,d)})},C.prototype=S({__proto__:x.prototype,g
et path(){return this.path_},connect_:function(){P&&(this.directObserver_=w(this
,this.object_)),this.check_(void 0,!0)},disconnect_:function(){this.value_=void
0,this.directObserver_&&(this.directObserver_.close(this),this.directObserver_=v
oid 0)},iterateObjects_:function(a){this.path_.iterateObjects(this.object_,a)},c
heck_:function(a,b){var c=this.value_;return this.value_=this.path_.getValueFrom
(this.object_),b||g(this.value_,c)?!1:(this.report_([this.value_,c,this]),!0)},s
etValue:function(a){this.path_&&this.path_.setValueFrom(this.object_,a)}});var m
b={};D.prototype=S({__proto__:x.prototype,connect_:function(){if(P){for(var a,b=
!1,c=0;c<this.observed_.length;c+=2)if(a=this.observed_[c],a!==mb){b=!0;break}b&
&(this.directObserver_=w(this,a))}this.check_(void 0,!this.reportChangesOnOpen_)
},disconnect_:function(){for(var a=0;a<this.observed_.length;a+=2)this.observed_
[a]===mb&&this.observed_[a+1].close();this.observed_.length=0,this.value_.length
=0,this.directObserver_&&(this.directObserver_.close(this),this.directObserver_=
void 0)},addPath:function(a,b){if(this.state_!=eb&&this.state_!=hb)throw Error("
Cannot add paths once started.");var b=m(b);if(this.observed_.push(a,b),this.rep
ortChangesOnOpen_){var c=this.observed_.length/2-1;this.value_[c]=b.getValueFrom
(a)}},addObserver:function(a){if(this.state_!=eb&&this.state_!=hb)throw Error("C
annot add observers once started.");if(this.observed_.push(mb,a),this.reportChan
gesOnOpen_){var b=this.observed_.length/2-1;this.value_[b]=a.open(this.deliver,t
his)}},startReset:function(){if(this.state_!=fb)throw Error("Can only reset whil
e open");this.state_=hb,this.disconnect_()},finishReset:function(){if(this.state
_!=hb)throw Error("Can only finishReset after startReset");return this.state_=fb
,this.connect_(),this.value_},iterateObjects_:function(a){for(var b,c=0;c<this.o
bserved_.length;c+=2)b=this.observed_[c],b!==mb&&this.observed_[c+1].iterateObje
cts(b,a)},check_:function(a,b){for(var c,d=0;d<this.observed_.length;d+=2){var e
,f=this.observed_[d],h=this.observed_[d+1];if(f===mb){var i=h;e=this.state_===eb
?i.open(this.deliver,this):i.discardChanges()}else e=h.getValueFrom(f);b?this.va
lue_[d/2]=e:g(e,this.value_[d/2])||(c=c||[],c[d/2]=this.value_[d/2],this.value_[
d/2]=e)}return c?(this.report_([this.value_,c,this.observed_]),!0):!1}}),F.proto
type={open:function(a,b){return this.callback_=a,this.target_=b,this.value_=this
.getValueFn_(this.observable_.open(this.observedCallback_,this)),this.value_},ob
servedCallback_:function(a){if(a=this.getValueFn_(a),!g(a,this.value_)){var b=th
is.value_;this.value_=a,this.callback_.call(this.target_,this.value_,b)}},discar
dChanges:function(){return this.value_=this.getValueFn_(this.observable_.discard
Changes()),this.value_},deliver:function(){return this.observable_.deliver()},se
tValue:function(a){return a=this.setValueFn_(a),!this.dontPassThroughSet_&&this.
observable_.setValue?this.observable_.setValue(a):void 0},close:function(){this.
observable_&&this.observable_.close(),this.callback_=void 0,this.target_=void 0,
this.observable_=void 0,this.value_=void 0,this.getValueFn_=void 0,this.setValue
Fn_=void 0}};var nb={add:!0,update:!0,"delete":!0},ob=0,pb=1,qb=2,rb=3;I.prototy
pe={calcEditDistances:function(a,b,c,d,e,f){for(var g=f-e+1,h=c-b+1,i=new Array(
g),j=0;g>j;j++)i[j]=new Array(h),i[j][0]=j;for(var k=0;h>k;k++)i[0][k]=k;for(var
j=1;g>j;j++)for(var k=1;h>k;k++)if(this.equals(a[b+k-1],d[e+j-1]))i[j][k]=i[j-1
][k-1];else{var l=i[j-1][k]+1,m=i[j][k-1]+1;i[j][k]=m>l?l:m}return i},spliceOper
ationsFromEditDistances:function(a){for(var b=a.length-1,c=a[0].length-1,d=a[b][
c],e=[];b>0||c>0;)if(0!=b)if(0!=c){var f,g=a[b-1][c-1],h=a[b-1][c],i=a[b][c-1];f
=i>h?g>h?h:g:g>i?i:g,f==g?(g==d?e.push(ob):(e.push(pb),d=g),b--,c--):f==h?(e.pus
h(rb),b--,d=h):(e.push(qb),c--,d=i)}else e.push(rb),b--;else e.push(qb),c--;retu
rn e.reverse(),e},calcSplices:function(a,b,c,d,e,f){var g=0,h=0,i=Math.min(c-b,f
-e);if(0==b&&0==e&&(g=this.sharedPrefix(a,d,i)),c==a.length&&f==d.length&&(h=thi
s.sharedSuffix(a,d,i-g)),b+=g,e+=g,c-=h,f-=h,c-b==0&&f-e==0)return[];if(b==c){fo
r(var j=H(b,[],0);f>e;)j.removed.push(d[e++]);return[j]}if(e==f)return[H(b,[],c-
b)];for(var k=this.spliceOperationsFromEditDistances(this.calcEditDistances(a,b,
c,d,e,f)),j=void 0,l=[],m=b,n=e,o=0;o<k.length;o++)switch(k[o]){case ob:j&&(l.pu
sh(j),j=void 0),m++,n++;break;case pb:j||(j=H(m,[],0)),j.addedCount++,m++,j.remo
ved.push(d[n]),n++;break;case qb:j||(j=H(m,[],0)),j.addedCount++,m++;break;case
rb:j||(j=H(m,[],0)),j.removed.push(d[n]),n++}return j&&l.push(j),l},sharedPrefix
:function(a,b,c){for(var d=0;c>d;d++)if(!this.equals(a[d],b[d]))return d;return
c},sharedSuffix:function(a,b,c){for(var d=a.length,e=b.length,f=0;c>f&&this.equa
ls(a[--d],b[--e]);)f++;return f},calculateSplices:function(a,b){return this.calc
Splices(a,0,a.length,b,0,b.length)},equals:function(a,b){return a===b}};var sb=n
ew I,tb=a;"undefined"!=typeof exports&&("undefined"!=typeof module&&module.expor
ts&&(tb=exports=module.exports),tb=exports),tb.Observer=x,tb.Observer.runEOM_=bb
,tb.Observer.observerSentinel_=mb,tb.Observer.hasObjectObserve=P,tb.ArrayObserve
r=B,tb.ArrayObserver.calculateSplices=function(a,b){return sb.calculateSplices(a
,b)},tb.ArraySplice=I,tb.ObjectObserver=A,tb.PathObserver=C,tb.CompoundObserver=
D,tb.Path=l,tb.ObserverTransform=F}("undefined"!=typeof global&&global&&"undefin
ed"!=typeof module&&module?global:this||window),function(){"use strict";function
a(a){for(;a.parentNode;)a=a.parentNode;return"function"==typeof a.getElementByI
d?a:null}function b(a,b,c){var d=a.bindings_;return d||(d=a.bindings_={}),d[b]&&
c[b].close(),d[b]=c}function c(a,b,c){return c}function d(a){return null==a?"":a
}function e(a,b){a.data=d(b)}function f(a){return function(b){return e(a,b)}}fun
ction g(a,b,c,e){return c?void(e?a.setAttribute(b,""):a.removeAttribute(b)):void
a.setAttribute(b,d(e))}function h(a,b,c){return function(d){g(a,b,c,d)}}functio
n i(a){switch(a.type){case"checkbox":return u;case"radio":case"select-multiple":
case"select-one":return"change";case"range":if(/Trident|MSIE/.test(navigator.use
rAgent))return"change";default:return"input"}}function j(a,b,c,e){a[b]=(e||d)(c)
}function k(a,b,c){return function(d){return j(a,b,d,c)}}function l(){}function
m(a,b,c,d){function e(){c.setValue(a[b]),c.discardChanges(),(d||l)(a),Platform.p
erformMicrotaskCheckpoint()}var f=i(a);return a.addEventListener(f,e),{close:fun
ction(){a.removeEventListener(f,e),c.close()},observable_:c}}function n(a){retur
n Boolean(a)}function o(b){if(b.form)return s(b.form.elements,function(a){return
a!=b&&"INPUT"==a.tagName&&"radio"==a.type&&a.name==b.name});var c=a(b);if(!c)re
turn[];var d=c.querySelectorAll('input[type="radio"][name="'+b.name+'"]');return
s(d,function(a){return a!=b&&!a.form})}function p(a){"INPUT"===a.tagName&&"radi
o"===a.type&&o(a).forEach(function(a){var b=a.bindings_.checked;b&&b.observable_
.setValue(!1)})}function q(a,b){var c,e,f,g=a.parentNode;g instanceof HTMLSelect
Element&&g.bindings_&&g.bindings_.value&&(c=g,e=c.bindings_.value,f=c.value),a.v
alue=d(b),c&&c.value!=f&&(e.observable_.setValue(c.value),e.observable_.discardC
hanges(),Platform.performMicrotaskCheckpoint())}function r(a){return function(b)
{q(a,b)}}var s=Array.prototype.filter.call.bind(Array.prototype.filter);Node.pro
totype.bind=function(a,b){console.error("Unhandled binding to Node: ",this,a,b)}
,Node.prototype.bindFinished=function(){};var t=c;Object.defineProperty(Platform
,"enableBindingsReflection",{get:function(){return t===b},set:function(a){return
t=a?b:c,a},configurable:!0}),Text.prototype.bind=function(a,b,c){if("textConten
t"!==a)return Node.prototype.bind.call(this,a,b,c);if(c)return e(this,b);var d=b
;return e(this,d.open(f(this))),t(this,a,d)},Element.prototype.bind=function(a,b
,c){var d="?"==a[a.length-1];if(d&&(this.removeAttribute(a),a=a.slice(0,-1)),c)r
eturn g(this,a,d,b);var e=b;return g(this,a,d,e.open(h(this,a,d))),t(this,a,e)};
var u;!function(){var a=document.createElement("div"),b=a.appendChild(document.c
reateElement("input"));b.setAttribute("type","checkbox");var c,d=0;b.addEventLis
tener("click",function(){d++,c=c||"click"}),b.addEventListener("change",function
(){d++,c=c||"change"});var e=document.createEvent("MouseEvent");e.initMouseEvent
("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),b.dispatchEvent(e),u=1==d?"c
hange":c}(),HTMLInputElement.prototype.bind=function(a,c,e){if("value"!==a&&"che
cked"!==a)return HTMLElement.prototype.bind.call(this,a,c,e);this.removeAttribut
e(a);var f="checked"==a?n:d,g="checked"==a?p:l;if(e)return j(this,a,c,f);var h=c
,i=m(this,a,h,g);return j(this,a,h.open(k(this,a,f)),f),b(this,a,i)},HTMLTextAre
aElement.prototype.bind=function(a,b,c){if("value"!==a)return HTMLElement.protot
ype.bind.call(this,a,b,c);if(this.removeAttribute("value"),c)return j(this,"valu
e",b);var e=b,f=m(this,"value",e);return j(this,"value",e.open(k(this,"value",d)
)),t(this,a,f)},HTMLOptionElement.prototype.bind=function(a,b,c){if("value"!==a)
return HTMLElement.prototype.bind.call(this,a,b,c);if(this.removeAttribute("valu
e"),c)return q(this,b);var d=b,e=m(this,"value",d);return q(this,d.open(r(this))
),t(this,a,e) |
| 13 },HTMLSelectElement.prototype.bind=function(a,c,d){if("selectedindex"===a&&(a="s
electedIndex"),"selectedIndex"!==a&&"value"!==a)return HTMLElement.prototype.bin
d.call(this,a,c,d);if(this.removeAttribute(a),d)return j(this,a,c);var e=c,f=m(t
his,a,e);return j(this,a,e.open(k(this,a))),b(this,a,f)}}(this),function(a){"use
strict";function b(a){if(!a)throw new Error("Assertion failed")}function c(a){f
or(var b;b=a.parentNode;)a=b;return a}function d(a,b){if(b){for(var d,e="#"+b;!d
&&(a=c(a),a.protoContent_?d=a.protoContent_.querySelector(e):a.getElementById&&(
d=a.getElementById(b)),!d&&a.templateCreator_);)a=a.templateCreator_;return d}}f
unction e(a){return"template"==a.tagName&&"http://www.w3.org/2000/svg"==a.namesp
aceURI}function f(a){return"TEMPLATE"==a.tagName&&"http://www.w3.org/1999/xhtml"
==a.namespaceURI}function g(a){return Boolean(L[a.tagName]&&a.hasAttribute("temp
late"))}function h(a){return void 0===a.isTemplate_&&(a.isTemplate_="TEMPLATE"==
a.tagName||g(a)),a.isTemplate_}function i(a,b){var c=a.querySelectorAll(N);h(a)&
&b(a),G(c,b)}function j(a){function b(a){HTMLTemplateElement.decorate(a)||j(a.co
ntent)}i(a,b)}function k(a,b){Object.getOwnPropertyNames(b).forEach(function(c){
Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))})}function l(a){
var b=a.ownerDocument;if(!b.defaultView)return b;var c=b.templateContentsOwner_;
if(!c){for(c=b.implementation.createHTMLDocument("");c.lastChild;)c.removeChild(
c.lastChild);b.templateContentsOwner_=c}return c}function m(a){if(!a.stagingDocu
ment_){var b=a.ownerDocument;if(!b.stagingDocument_){b.stagingDocument_=b.implem
entation.createHTMLDocument(""),b.stagingDocument_.isStagingDocument=!0;var c=b.
stagingDocument_.createElement("base");c.href=document.baseURI,b.stagingDocument
_.head.appendChild(c),b.stagingDocument_.stagingDocument_=b.stagingDocument_}a.s
tagingDocument_=b.stagingDocument_}return a.stagingDocument_}function n(a){var b
=a.ownerDocument.createElement("template");a.parentNode.insertBefore(b,a);for(va
r c=a.attributes,d=c.length;d-->0;){var e=c[d];K[e.name]&&("template"!==e.name&&
b.setAttribute(e.name,e.value),a.removeAttribute(e.name))}return b}function o(a)
{var b=a.ownerDocument.createElement("template");a.parentNode.insertBefore(b,a);
for(var c=a.attributes,d=c.length;d-->0;){var e=c[d];b.setAttribute(e.name,e.val
ue),a.removeAttribute(e.name)}return a.parentNode.removeChild(a),b}function p(a,
b,c){var d=a.content;if(c)return void d.appendChild(b);for(var e;e=b.firstChild;
)d.appendChild(e)}function q(a){P?a.__proto__=HTMLTemplateElement.prototype:k(a,
HTMLTemplateElement.prototype)}function r(a){a.setModelFn_||(a.setModelFn_=funct
ion(){a.setModelFnScheduled_=!1;var b=z(a,a.delegate_&&a.delegate_.prepareBindin
g);w(a,b,a.model_)}),a.setModelFnScheduled_||(a.setModelFnScheduled_=!0,Observer
.runEOM_(a.setModelFn_))}function s(a,b,c,d){if(a&&a.length){for(var e,f=a.lengt
h,g=0,h=0,i=0,j=!0;f>h;){var g=a.indexOf("{{",h),k=a.indexOf("[[",h),l=!1,m="}}"
;if(k>=0&&(0>g||g>k)&&(g=k,l=!0,m="]]"),i=0>g?-1:a.indexOf(m,g+2),0>i){if(!e)ret
urn;e.push(a.slice(h));break}e=e||[],e.push(a.slice(h,g));var n=a.slice(g+2,i).t
rim();e.push(l),j=j&&l;var o=d&&d(n,b,c);e.push(null==o?Path.get(n):null),e.push
(o),h=i+2}return h===f&&e.push(""),e.hasOnePath=5===e.length,e.isSimplePath=e.ha
sOnePath&&""==e[0]&&""==e[4],e.onlyOneTime=j,e.combinator=function(a){for(var b=
e[0],c=1;c<e.length;c+=4){var d=e.hasOnePath?a:a[(c-1)/4];void 0!==d&&(b+=d),b+=
e[c+3]}return b},e}}function t(a,b,c,d){if(b.hasOnePath){var e=b[3],f=e?e(d,c,!0
):b[2].getValueFrom(d);return b.isSimplePath?f:b.combinator(f)}for(var g=[],h=1;
h<b.length;h+=4){var e=b[h+2];g[(h-1)/4]=e?e(d,c):b[h+1].getValueFrom(d)}return
b.combinator(g)}function u(a,b,c,d){var e=b[3],f=e?e(d,c,!1):new PathObserver(d,
b[2]);return b.isSimplePath?f:new ObserverTransform(f,b.combinator)}function v(a
,b,c,d){if(b.onlyOneTime)return t(a,b,c,d);if(b.hasOnePath)return u(a,b,c,d);for
(var e=new CompoundObserver,f=1;f<b.length;f+=4){var g=b[f],h=b[f+2];if(h){var i
=h(d,c,g);g?e.addPath(i):e.addObserver(i)}else{var j=b[f+1];g?e.addPath(j.getVal
ueFrom(d)):e.addPath(d,j)}}return new ObserverTransform(e,b.combinator)}function
w(a,b,c,d){for(var e=0;e<b.length;e+=2){var f=b[e],g=b[e+1],h=v(f,g,a,c),i=a.bi
nd(f,h,g.onlyOneTime);i&&d&&d.push(i)}if(a.bindFinished(),b.isTemplate){a.model_
=c;var j=a.processBindingDirectives_(b);d&&j&&d.push(j)}}function x(a,b,c){var d
=a.getAttribute(b);return s(""==d?"{{}}":d,b,a,c)}function y(a,c){b(a);for(var d
=[],e=0;e<a.attributes.length;e++){for(var f=a.attributes[e],g=f.name,i=f.value;
"_"===g[0];)g=g.substring(1);if(!h(a)||g!==J&&g!==H&&g!==I){var j=s(i,g,a,c);j&&
d.push(g,j)}}return h(a)&&(d.isTemplate=!0,d["if"]=x(a,J,c),d.bind=x(a,H,c),d.re
peat=x(a,I,c),!d["if"]||d.bind||d.repeat||(d.bind=s("{{}}",H,a,c))),d}function z
(a,b){if(a.nodeType===Node.ELEMENT_NODE)return y(a,b);if(a.nodeType===Node.TEXT_
NODE){var c=s(a.data,"textContent",a,b);if(c)return["textContent",c]}return[]}fu
nction A(a,b,c,d,e,f,g){for(var h=b.appendChild(c.importNode(a,!1)),i=0,j=a.firs
tChild;j;j=j.nextSibling)A(j,h,c,d.children[i++],e,f,g);return d.isTemplate&&(HT
MLTemplateElement.decorate(h,a),f&&h.setDelegate_(f)),w(h,d,e,g),h}function B(a,
b){var c=z(a,b);c.children={};for(var d=0,e=a.firstChild;e;e=e.nextSibling)c.chi
ldren[d++]=B(e,b);return c}function C(a){var b=a.id_;return b||(b=a.id_=S++),b}f
unction D(a,b){var c=C(a);if(b){var d=b.bindingMaps[c];return d||(d=b.bindingMap
s[c]=B(a,b.prepareBinding)||[]),d}var d=a.bindingMap_;return d||(d=a.bindingMap_
=B(a,void 0)||[]),d}function E(a){this.closed=!1,this.templateElement_=a,this.in
stances=[],this.deps=void 0,this.iteratedValue=[],this.presentValue=void 0,this.
arrayObserver=void 0}var F,G=Array.prototype.forEach.call.bind(Array.prototype.f
orEach);a.Map&&"function"==typeof a.Map.prototype.forEach?F=a.Map:(F=function(){
this.keys=[],this.values=[]},F.prototype={set:function(a,b){var c=this.keys.inde
xOf(a);0>c?(this.keys.push(a),this.values.push(b)):this.values[c]=b},get:functio
n(a){var b=this.keys.indexOf(a);if(!(0>b))return this.values[b]},"delete":functi
on(a){var b=this.keys.indexOf(a);return 0>b?!1:(this.keys.splice(b,1),this.value
s.splice(b,1),!0)},forEach:function(a,b){for(var c=0;c<this.keys.length;c++)a.ca
ll(b||this,this.values[c],this.keys[c],this)}});"function"!=typeof document.cont
ains&&(Document.prototype.contains=function(a){return a===this||a.parentNode===t
his?!0:this.documentElement.contains(a)});var H="bind",I="repeat",J="if",K={temp
late:!0,repeat:!0,bind:!0,ref:!0},L={THEAD:!0,TBODY:!0,TFOOT:!0,TH:!0,TR:!0,TD:!
0,COLGROUP:!0,COL:!0,CAPTION:!0,OPTION:!0,OPTGROUP:!0},M="undefined"!=typeof HTM
LTemplateElement;M&&!function(){var a=document.createElement("template"),b=a.con
tent.ownerDocument,c=b.appendChild(b.createElement("html")),d=c.appendChild(b.cr
eateElement("head")),e=b.createElement("base");e.href=document.baseURI,d.appendC
hild(e)}();var N="template, "+Object.keys(L).map(function(a){return a.toLowerCas
e()+"[template]"}).join(", ");document.addEventListener("DOMContentLoaded",funct
ion(){j(document),Platform.performMicrotaskCheckpoint()},!1),M||(a.HTMLTemplateE
lement=function(){throw TypeError("Illegal constructor")});var O,P="__proto__"in
{};"function"==typeof MutationObserver&&(O=new MutationObserver(function(a){for(
var b=0;b<a.length;b++)a[b].target.refChanged_()})),HTMLTemplateElement.decorate
=function(a,c){if(a.templateIsDecorated_)return!1;var d=a;d.templateIsDecorated_
=!0;var h=f(d)&&M,i=h,k=!h,m=!1;if(h||(g(d)?(b(!c),d=n(a),d.templateIsDecorated_
=!0,h=M,m=!0):e(d)&&(d=o(a),d.templateIsDecorated_=!0,h=M)),!h){q(d);var r=l(d);
d.content_=r.createDocumentFragment()}return c?d.instanceRef_=c:k?p(d,a,m):i&&j(
d.content),!0},HTMLTemplateElement.bootstrap=j;var Q=a.HTMLUnknownElement||HTMLE
lement,R={get:function(){return this.content_},enumerable:!0,configurable:!0};M|
|(HTMLTemplateElement.prototype=Object.create(Q.prototype),Object.defineProperty
(HTMLTemplateElement.prototype,"content",R)),k(HTMLTemplateElement.prototype,{bi
nd:function(a,b,c){if("ref"!=a)return Element.prototype.bind.call(this,a,b,c);va
r d=this,e=c?b:b.open(function(a){d.setAttribute("ref",a),d.refChanged_()});retu
rn this.setAttribute("ref",e),this.refChanged_(),c?void 0:(this.bindings_?this.b
indings_.ref=b:this.bindings_={ref:b},b)},processBindingDirectives_:function(a){
return this.iterator_&&this.iterator_.closeDeps(),a["if"]||a.bind||a.repeat?(thi
s.iterator_||(this.iterator_=new E(this)),this.iterator_.updateDependencies(a,th
is.model_),O&&O.observe(this,{attributes:!0,attributeFilter:["ref"]}),this.itera
tor_):void(this.iterator_&&(this.iterator_.close(),this.iterator_=void 0))},crea
teInstance:function(a,b,c){b?c=this.newDelegate_(b):c||(c=this.delegate_),this.r
efContent_||(this.refContent_=this.ref_.content);var d=this.refContent_;if(null=
==d.firstChild)return T;var e=D(d,c),f=m(this),g=f.createDocumentFragment();g.te
mplateCreator_=this,g.protoContent_=d,g.bindings_=[],g.terminator_=null;for(var
h=g.templateInstance_={firstNode:null,lastNode:null,model:a},i=0,j=!1,k=d.firstC
hild;k;k=k.nextSibling){null===k.nextSibling&&(j=!0);var l=A(k,g,f,e.children[i+
+],a,c,g.bindings_);l.templateInstance_=h,j&&(g.terminator_=l)}return h.firstNod
e=g.firstChild,h.lastNode=g.lastChild,g.templateCreator_=void 0,g.protoContent_=
void 0,g},get model(){return this.model_},set model(a){this.model_=a,r(this)},ge
t bindingDelegate(){return this.delegate_&&this.delegate_.raw},refChanged_:funct
ion(){this.iterator_&&this.refContent_!==this.ref_.content&&(this.refContent_=vo
id 0,this.iterator_.valueChanged(),this.iterator_.updateIteratedValue(this.itera
tor_.getUpdatedValue()))},clear:function(){this.model_=void 0,this.delegate_=voi
d 0,this.bindings_&&this.bindings_.ref&&this.bindings_.ref.close(),this.refConte
nt_=void 0,this.iterator_&&(this.iterator_.valueChanged(),this.iterator_.close()
,this.iterator_=void 0)},setDelegate_:function(a){this.delegate_=a,this.bindingM
ap_=void 0,this.iterator_&&(this.iterator_.instancePositionChangedFn_=void 0,thi
s.iterator_.instanceModelFn_=void 0)},newDelegate_:function(a){function b(b){var
c=a&&a[b];if("function"==typeof c)return function(){return c.apply(a,arguments)
}}if(a)return{bindingMaps:{},raw:a,prepareBinding:b("prepareBinding"),prepareIns
tanceModel:b("prepareInstanceModel"),prepareInstancePositionChanged:b("prepareIn
stancePositionChanged")}},set bindingDelegate(a){if(this.delegate_)throw Error("
Template must be cleared before a new bindingDelegate can be assigned");this.set
Delegate_(this.newDelegate_(a))},get ref_(){var a=d(this,this.getAttribute("ref"
));if(a||(a=this.instanceRef_),!a)return this;var b=a.ref_;return b?b:a}});var S
=1;Object.defineProperty(Node.prototype,"templateInstance",{get:function(){var a
=this.templateInstance_;return a?a:this.parentNode?this.parentNode.templateInsta
nce:void 0}});var T=document.createDocumentFragment();T.bindings_=[],T.terminato
r_=null,E.prototype={closeDeps:function(){var a=this.deps;a&&(a.ifOneTime===!1&&
a.ifValue.close(),a.oneTime===!1&&a.value.close())},updateDependencies:function(
a,b){this.closeDeps();var c=this.deps={},d=this.templateElement_,e=!0;if(a["if"]
){if(c.hasIf=!0,c.ifOneTime=a["if"].onlyOneTime,c.ifValue=v(J,a["if"],d,b),e=c.i
fValue,c.ifOneTime&&!e)return void this.valueChanged();c.ifOneTime||(e=e.open(th
is.updateIfValue,this))}a.repeat?(c.repeat=!0,c.oneTime=a.repeat.onlyOneTime,c.v
alue=v(I,a.repeat,d,b)):(c.repeat=!1,c.oneTime=a.bind.onlyOneTime,c.value=v(H,a.
bind,d,b));var f=c.value;return c.oneTime||(f=f.open(this.updateIteratedValue,th
is)),e?void this.updateValue(f):void this.valueChanged()},getUpdatedValue:functi
on(){var a=this.deps.value;return this.deps.oneTime||(a=a.discardChanges()),a},u
pdateIfValue:function(a){return a?void this.updateValue(this.getUpdatedValue()):
void this.valueChanged()},updateIteratedValue:function(a){if(this.deps.hasIf){va
r b=this.deps.ifValue;if(this.deps.ifOneTime||(b=b.discardChanges()),!b)return v
oid this.valueChanged()}this.updateValue(a)},updateValue:function(a){this.deps.r
epeat||(a=[a]);var b=this.deps.repeat&&!this.deps.oneTime&&Array.isArray(a);this
.valueChanged(a,b)},valueChanged:function(a,b){Array.isArray(a)||(a=[]),a!==this
.iteratedValue&&(this.unobserve(),this.presentValue=a,b&&(this.arrayObserver=new
ArrayObserver(this.presentValue),this.arrayObserver.open(this.handleSplices,thi
s)),this.handleSplices(ArrayObserver.calculateSplices(this.presentValue,this.ite
ratedValue)))},getLastInstanceNode:function(a){if(-1==a)return this.templateElem
ent_;var b=this.instances[a],c=b.terminator_;if(!c)return this.getLastInstanceNo
de(a-1);if(c.nodeType!==Node.ELEMENT_NODE||this.templateElement_===c)return c;va
r d=c.iterator_;return d?d.getLastTemplateNode():c},getLastTemplateNode:function
(){return this.getLastInstanceNode(this.instances.length-1)},insertInstanceAt:fu
nction(a,b){var c=this.getLastInstanceNode(a-1),d=this.templateElement_.parentNo
de;this.instances.splice(a,0,b),d.insertBefore(b,c.nextSibling)},extractInstance
At:function(a){for(var b=this.getLastInstanceNode(a-1),c=this.getLastInstanceNod
e(a),d=this.templateElement_.parentNode,e=this.instances.splice(a,1)[0];c!==b;){
var f=b.nextSibling;f==c&&(c=b),e.appendChild(d.removeChild(f))}return e},getDel
egateFn:function(a){return a=a&&a(this.templateElement_),"function"==typeof a?a:
null},handleSplices:function(a){if(!this.closed&&a.length){var b=this.templateEl
ement_;if(!b.parentNode)return void this.close();ArrayObserver.applySplices(this
.iteratedValue,this.presentValue,a);var c=b.delegate_;void 0===this.instanceMode
lFn_&&(this.instanceModelFn_=this.getDelegateFn(c&&c.prepareInstanceModel)),void
0===this.instancePositionChangedFn_&&(this.instancePositionChangedFn_=this.getD
elegateFn(c&&c.prepareInstancePositionChanged));for(var d=new F,e=0,f=0;f<a.leng
th;f++){for(var g=a[f],h=g.removed,i=0;i<h.length;i++){var j=h[i],k=this.extract
InstanceAt(g.index+e);k!==T&&d.set(j,k)}e-=g.addedCount}for(var f=0;f<a.length;f
++)for(var g=a[f],l=g.index;l<g.index+g.addedCount;l++){var j=this.iteratedValue
[l],k=d.get(j);k?d["delete"](j):(this.instanceModelFn_&&(j=this.instanceModelFn_
(j)),k=void 0===j?T:b.createInstance(j,void 0,c)),this.insertInstanceAt(l,k)}d.f
orEach(function(a){this.closeInstanceBindings(a)},this),this.instancePositionCha
ngedFn_&&this.reportInstancesMoved(a)}},reportInstanceMoved:function(a){var b=th
is.instances[a];b!==T&&this.instancePositionChangedFn_(b.templateInstance_,a)},r
eportInstancesMoved:function(a){for(var b=0,c=0,d=0;d<a.length;d++){var e=a[d];i
f(0!=c)for(;b<e.index;)this.reportInstanceMoved(b),b++;else b=e.index;for(;b<e.i
ndex+e.addedCount;)this.reportInstanceMoved(b),b++;c+=e.addedCount-e.removed.len
gth}if(0!=c)for(var f=this.instances.length;f>b;)this.reportInstanceMoved(b),b++
},closeInstanceBindings:function(a){for(var b=a.bindings_,c=0;c<b.length;c++)b[c
].close()},unobserve:function(){this.arrayObserver&&(this.arrayObserver.close(),
this.arrayObserver=void 0)},close:function(){if(!this.closed){this.unobserve();f
or(var a=0;a<this.instances.length;a++)this.closeInstanceBindings(this.instances
[a]);this.instances.length=0,this.closeDeps(),this.templateElement_.iterator_=vo
id 0,this.closed=!0}}},HTMLTemplateElement.forAllTemplatesFrom_=i}(this),functio
n(a){"use strict";function b(a){return void 0!==m[a]}function c(){h.call(this),t
his._isInvalid=!0}function d(a){return""==a&&c.call(this),a.toLowerCase()}functi
on e(a){var b=a.charCodeAt(0);return b>32&&127>b&&-1==[34,35,60,62,63,96].indexO
f(b)?a:encodeURIComponent(a)}function f(a){var b=a.charCodeAt(0);return b>32&&12
7>b&&-1==[34,35,60,62,96].indexOf(b)?a:encodeURIComponent(a)}function g(a,g,h){f
unction i(a){t.push(a)}var j=g||"scheme start",k=0,l="",r=!1,s=!1,t=[];a:for(;(a
[k-1]!=o||0==k)&&!this._isInvalid;){var u=a[k];switch(j){case"scheme start":if(!
u||!p.test(u)){if(g){i("Invalid scheme.");break a}l="",j="no scheme";continue}l+
=u.toLowerCase(),j="scheme";break;case"scheme":if(u&&q.test(u))l+=u.toLowerCase(
);else{if(":"!=u){if(g){if(o==u)break a;i("Code point not allowed in scheme: "+u
);break a}l="",k=0,j="no scheme";continue}if(this._scheme=l,l="",g)break a;b(thi
s._scheme)&&(this._isRelative=!0),j="file"==this._scheme?"relative":this._isRela
tive&&h&&h._scheme==this._scheme?"relative or authority":this._isRelative?"autho
rity first slash":"scheme data"}break;case"scheme data":"?"==u?(query="?",j="que
ry"):"#"==u?(this._fragment="#",j="fragment"):o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&
(this._schemeData+=e(u));break;case"no scheme":if(h&&b(h._scheme)){j="relative";
continue}i("Missing scheme."),c.call(this);break;case"relative or authority":if(
"/"!=u||"/"!=a[k+1]){i("Expected /, got: "+u),j="relative";continue}j="authority
ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._schem
e&&(this._scheme=h._scheme),o==u){this._host=h._host,this._port=h._port,this._pa
th=h._path.slice(),this._query=h._query;break a}if("/"==u||"\\"==u)"\\"==u&&i("\
\ is an invalid code point."),j="relative slash";else if("?"==u)this._host=h._ho
st,this._port=h._port,this._path=h._path.slice(),this._query="?",j="query";else{
if("#"!=u){var v=a[k+1],w=a[k+2];("file"!=this._scheme||!p.test(u)||":"!=v&&"|"!
=v||o!=w&&"/"!=w&&"\\"!=w&&"?"!=w&&"#"!=w)&&(this._host=h._host,this._port=h._po
rt,this._path=h._path.slice(),this._path.pop()),j="relative path";continue}this.
_host=h._host,this._port=h._port,this._path=h._path.slice(),this._query=h._query
,this._fragment="#",j="fragment"}break;case"relative slash":if("/"!=u&&"\\"!=u){
"file"!=this._scheme&&(this._host=h._host,this._port=h._port),j="relative path";
continue}"\\"==u&&i("\\ is an invalid code point."),j="file"==this._scheme?"file
host":"authority ignore slashes";break;case"authority first slash":if("/"!=u){i
("Expected '/', got: "+u),j="authority ignore slashes";continue}j="authority sec
ond slash";break;case"authority second slash":if(j="authority ignore slashes","/
"!=u){i("Expected '/', got: "+u);continue}break;case"authority ignore slashes":i
f("/"!=u&&"\\"!=u){j="authority";continue}i("Expected authority, got: "+u);break
;case"authority":if("@"==u){r&&(i("@ already seen."),l+="%40"),r=!0;for(var x=0;
x<l.length;x++){var y=l[x];if(" "!=y&&"\n"!=y&&"\r"!=y)if(":"!=y||null!==this._p
assword){var z=e(y);null!==this._password?this._password+=z:this._username+=z}el
se this._password="";else i("Invalid whitespace in authority.")}l=""}else{if(o==
u||"/"==u||"\\"==u||"?"==u||"#"==u){k-=l.length,l="",j="host";continue}l+=u}brea
k;case"file host":if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){2!=l.length||!p.test
(l[0])||":"!=l[1]&&"|"!=l[1]?0==l.length?j="relative path start":(this._host=d.c
all(this,l),l="",j="relative path start"):j="relative path";continue}" "==u||"\
n"==u||"\r"==u?i("Invalid whitespace in file host."):l+=u;break;case"host":case"
hostname":if(":"!=u||s){if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){if(this._host=
d.call(this,l),l="",j="relative path start",g)break a;continue}" "!=u&&"\
n"!=u&&"\r"!=u?("["==u?s=!0:"]"==u&&(s=!1),l+=u):i("Invalid code point in host/h
ostname: "+u)}else if(this._host=d.call(this,l),l="",j="port","hostname"==g)brea
k a;break;case"port":if(/[0-9]/.test(u))l+=u;else{if(o==u||"/"==u||"\\"==u||"?"=
=u||"#"==u||g){if(""!=l){var A=parseInt(l,10);A!=m[this._scheme]&&(this._port=A+
""),l=""}if(g)break a;j="relative path start";continue}" "==u||"\n"==u||"
\r"==u?i("Invalid code point in port: "+u):c.call(this)}break;case"relative path
start":if("\\"==u&&i("'\\' not allowed in path."),j="relative path","/"!=u&&"\\
"!=u)continue;break;case"relative path":if(o!=u&&"/"!=u&&"\\"!=u&&(g||"?"!=u&&"#
"!=u))" "!=u&&"\n"!=u&&"\r"!=u&&(l+=e(u));else{"\\"==u&&i("\\ not allowed in rel
ative path.");var B;(B=n[l.toLowerCase()])&&(l=B),".."==l?(this._path.pop(),"/"!
=u&&"\\"!=u&&this._path.push("")):"."==l&&"/"!=u&&"\\"!=u?this._path.push(""):".
"!=l&&("file"==this._scheme&&0==this._path.length&&2==l.length&&p.test(l[0])&&"|
"==l[1]&&(l=l[0]+":"),this._path.push(l)),l="","?"==u?(this._query="?",j="query"
):"#"==u&&(this._fragment="#",j="fragment")}break;case"query":g||"#"!=u?o!=u&&"
"!=u&&"\n"!=u&&"\r"!=u&&(this._query+=f(u)):(this._fragment="#",j="fragment");br
eak;case"fragment":o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._fragment+=u)}k++}
}function h(){this._scheme="",this._schemeData="",this._username="",this._passwo
rd=null,this._host="",this._port="",this._path=[],this._query="",this._fragment=
"",this._isInvalid=!1,this._isRelative=!1}function i(a,b){void 0===b||b instance
of i||(b=new i(String(b))),this._url=a,h.call(this);var c=a.replace(/^[ \t\r\n\f
]+|[ \t\r\n\f]+$/g,"");g.call(this,c,null,b)}var j=!1;if(!a.forceJURL)try{var k=
new URL("b","http://a");j="http://a/b"===k.href}catch(l){}if(!j){var m=Object.cr
eate(null);m.ftp=21,m.file=0,m.gopher=70,m.http=80,m.https=443,m.ws=80,m.wss=443
;var n=Object.create(null);n["%2e"]=".",n[".%2e"]="..",n["%2e."]="..",n["%2e%2e"
]="..";var o=void 0,p=/[a-zA-Z]/,q=/[a-zA-Z0-9\+\-\.]/;i.prototype={get href(){i
f(this._isInvalid)return this._url;var a="";return(""!=this._username||null!=thi
s._password)&&(a=this._username+(null!=this._password?":"+this._password:"")+"@"
),this.protocol+(this._isRelative?"//"+a+this.host:"")+this.pathname+this._query
+this._fragment},set href(a){h.call(this),g.call(this,a)},get protocol(){return
this._scheme+":"},set protocol(a){this._isInvalid||g.call(this,a+":","scheme sta
rt")},get host(){return this._isInvalid?"":this._port?this._host+":"+this._port:
this._host},set host(a){!this._isInvalid&&this._isRelative&&g.call(this,a,"host"
)},get hostname(){return this._host},set hostname(a){!this._isInvalid&&this._isR
elative&&g.call(this,a,"hostname")},get port(){return this._port},set port(a){!t
his._isInvalid&&this._isRelative&&g.call(this,a,"port")},get pathname(){return t
his._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},se
t pathname(a){!this._isInvalid&&this._isRelative&&(this._path=[],g.call(this,a,"
relative path start"))},get search(){return this._isInvalid||!this._query||"?"==
this._query?"":this._query},set search(a){!this._isInvalid&&this._isRelative&&(t
his._query="?","?"==a[0]&&(a=a.slice(1)),g.call(this,a,"query"))},get hash(){ret
urn this._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},set
hash(a){this._isInvalid||(this._fragment="#","#"==a[0]&&(a=a.slice(1)),g.call(t
his,a,"fragment"))},get origin(){var a;if(this._isInvalid||!this._scheme)return"
";switch(this._scheme){case"data":case"file":case"javascript":case"mailto":retur
n"null"}return a=this.host,a?this._scheme+"://"+a:""}};var r=a.URL;r&&(i.createO
bjectURL=function(){return r.createObjectURL.apply(r,arguments)},i.revokeObjectU
RL=function(a){r.revokeObjectURL(a)}),a.URL=i}}(this),function(a){function b(a){
f.textContent=d++,e.push(a)}function c(){for(;e.length;)e.shift()()}var d=0,e=[]
,f=document.createTextNode("");new(window.MutationObserver||JsMutationObserver)(
c).observe(f,{characterData:!0}),a.endOfMicrotask=b,Platform.endOfMicrotask=b}(P
olymer),function(a){function b(){g||(g=!0,c(function(){g=!1,d.data&&console.grou
p("flush"),Platform.performMicrotaskCheckpoint(),d.data&&console.groupEnd()}))}v
ar c=a.endOfMicrotask,d=window.WebComponents?WebComponents.flags.log:{},e=docume
nt.createElement("style");e.textContent="template {display: none !important;} /*
injected by platform.js */";var f=document.querySelector("head");f.insertBefore
(e,f.firstChild);var g;if(Observer.hasObjectObserve)b=function(){};else{var h=12
5;window.addEventListener("WebComponentsReady",function(){b();var c=function(){"
hidden"===document.visibilityState?a.flushPoll&&clearInterval(a.flushPoll):a.flu
shPoll=setInterval(b,h)};"string"==typeof document.visibilityState&&document.add
EventListener("visibilitychange",c),c()})}if(window.CustomElements&&!CustomEleme
nts.useNative){var i=Document.prototype.importNode;Document.prototype.importNode
=function(a,b){var c=i.call(this,a,b);return CustomElements.upgradeAll(c),c}}a.f
lush=b,Platform.flush=b}(window.Polymer),function(a){function b(a){var b=new URL
(a.ownerDocument.baseURI);return b.search="",b.hash="",b}function c(a,b,c,e){ret
urn a.replace(e,function(a,e,f,g){var h=f.replace(/["']/g,"");return h=d(b,h,c),
e+"'"+h+"'"+g})}function d(a,b,c){if(b&&"/"===b[0])return b;var d=new URL(b,a);r
eturn c?d.href:e(d.href)}function e(a){var c=b(document.documentElement),d=new U
RL(a,c);return d.host===c.host&&d.port===c.port&&d.protocol===c.protocol?f(c,d):
a}function f(a,b){for(var c=a.pathname,d=b.pathname,e=c.split("/"),f=d.split("/"
);e.length&&e[0]===f[0];)e.shift(),f.shift();for(var g=0,h=e.length-1;h>g;g++)f.
unshift("..");var i=b.href.slice(-1)===m?m:b.hash;return f.join("/")+b.search+i}
var g={resolveDom:function(a,c){c=c||b(a),this.resolveAttributes(a,c),this.resol
veStyles(a,c);var d=a.querySelectorAll("template");if(d)for(var e,f=0,g=d.length
;g>f&&(e=d[f]);f++)e.content&&this.resolveDom(e.content,c)},resolveTemplate:func
tion(a){this.resolveDom(a.content,b(a))},resolveStyles:function(a,b){var c=a.que
rySelectorAll("style");if(c)for(var d,e=0,f=c.length;f>e&&(d=c[e]);e++)this.reso
lveStyle(d,b)},resolveStyle:function(a,c){c=c||b(a),a.textContent=this.resolveCs
sText(a.textContent,c)},resolveCssText:function(a,b,d){return a=c(a,b,d,h),c(a,b
,d,i)},resolveAttributes:function(a,b){a.hasAttributes&&a.hasAttributes()&&this.
resolveElementAttributes(a,b);var c=a&&a.querySelectorAll(k);if(c)for(var d,e=0,
f=c.length;f>e&&(d=c[e]);e++)this.resolveElementAttributes(d,b)},resolveElementA
ttributes:function(a,e){e=e||b(a),j.forEach(function(b){var f,g=a.attributes[b],
i=g&&g.value;i&&i.search(l)<0&&(f="style"===b?c(i,e,!1,h):d(e,i),g.value=f)})}},
h=/(url\()([^)]*)(\))/g,i=/(@import[\s]+(?!url\())([^;]*)(;)/g,j=["href","src","
action","style","url"],k="["+j.join("],[")+"]",l="{{.*}}",m="#";a.urlResolver=g}
(Polymer),function(a){function b(a){this.cache=Object.create(null),this.map=Obje
ct.create(null),this.requests=0,this.regex=a}var c=Polymer.endOfMicrotask;b.prot
otype={extractUrls:function(a,b){for(var c,d,e=[];c=this.regex.exec(a);)d=new UR
L(c[1],b),e.push({matched:c[0],url:d.href});return e},process:function(a,b,c){va
r d=this.extractUrls(a,b),e=c.bind(null,this.map);this.fetch(d,e)},fetch:functio
n(a,b){var c=a.length;if(!c)return b();for(var d,e,f,g=function(){0===--c&&b()},
h=0;c>h;h++)d=a[h],f=d.url,e=this.cache[f],e||(e=this.xhr(f),e.match=d,this.cach
e[f]=e),e.wait(g)},handleXhr:function(a){var b=a.match,c=b.url,d=a.response||a.r
esponseText||"";this.map[c]=d,this.fetch(this.extractUrls(d,c),a.resolve)},xhr:f
unction(a){this.requests++;var b=new XMLHttpRequest;return b.open("GET",a,!0),b.
send(),b.onerror=b.onload=this.handleXhr.bind(this,b),b.pending=[],b.resolve=fun
ction(){for(var a=b.pending,c=0;c<a.length;c++)a[c]();b.pending=null},b.wait=fun
ction(a){b.pending?b.pending.push(a):c(a)},b}},a.Loader=b}(Polymer),function(a){
function b(){this.loader=new d(this.regex)}var c=a.urlResolver,d=a.Loader;b.prot
otype={regex:/@import\s+(?:url)?["'\(]*([^'"\)]*)['"\)]*;/g,resolve:function(a,b
,c){var d=function(d){c(this.flatten(a,b,d))}.bind(this);this.loader.process(a,b
,d)},resolveNode:function(a,b,c){var d=a.textContent,e=function(b){a.textContent
=b,c(a)};this.resolve(d,b,e)},flatten:function(a,b,d){for(var e,f,g,h=this.loade
r.extractUrls(a,b),i=0;i<h.length;i++)e=h[i],f=e.url,g=c.resolveCssText(d[f],f,!
0),g=this.flatten(g,b,d),a=a.replace(e.matched,g);return a},loadStyles:function(
a,b,c){function d(){f++,f===g&&c&&c()}for(var e,f=0,g=a.length,h=0;g>h&&(e=a[h])
;h++)this.resolveNode(e,b,d)}};var e=new b;a.styleResolver=e}(Polymer),function(
a){function b(a,b){return a&&b&&Object.getOwnPropertyNames(b).forEach(function(c
){var d=Object.getOwnPropertyDescriptor(b,c);d&&(Object.defineProperty(a,c,d),"f
unction"==typeof d.value&&(d.value.nom=c))}),a}function c(a){for(var b=a||{},c=1
;c<arguments.length;c++){var e=arguments[c];try{for(var f in e)d(f,e,b)}catch(g)
{}}return b}function d(a,b,c){var d=e(b,a);Object.defineProperty(c,a,d)}function
e(a,b){if(a){var c=Object.getOwnPropertyDescriptor(a,b);return c||e(Object.getP
rototypeOf(a),b)}}a.extend=b,a.mixin=c,Platform.mixin=c}(Polymer),function(a){fu
nction b(a,b,d){return a?a.stop():a=new c(this),a.go(b,d),a}var c=function(a){th
is.context=a,this.boundComplete=this.complete.bind(this)};c.prototype={go:functi
on(a,b){this.callback=a;var c;b?(c=setTimeout(this.boundComplete,b),this.handle=
function(){clearTimeout(c)}):(c=requestAnimationFrame(this.boundComplete),this.h
andle=function(){cancelAnimationFrame(c)})},stop:function(){this.handle&&(this.h
andle(),this.handle=null)},complete:function(){this.handle&&(this.stop(),this.ca
llback.call(this.context))}},a.job=b}(Polymer),function(a){function b(a,b,c){var
d="string"==typeof a?document.createElement(a):a.cloneNode(!0);if(d.innerHTML=b
,c)for(var e in c)d.setAttribute(e,c[e]);return d}var c={};HTMLElement.register=
function(a,b){c[a]=b},HTMLElement.getPrototypeForTag=function(a){var b=a?c[a]:HT
MLElement.prototype;return b||Object.getPrototypeOf(document.createElement(a))};
var d=Event.prototype.stopPropagation;Event.prototype.stopPropagation=function()
{this.cancelBubble=!0,d.apply(this,arguments)};var e=DOMTokenList.prototype.add,
f=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var a=
0;a<arguments.length;a++)e.call(this,arguments[a])},DOMTokenList.prototype.remov
e=function(){for(var a=0;a<arguments.length;a++)f.call(this,arguments[a])},DOMTo
kenList.prototype.toggle=function(a,b){1==arguments.length&&(b=!this.contains(a)
),b?this.add(a):this.remove(a)},DOMTokenList.prototype["switch"]=function(a,b){a
&&this.remove(a),b&&this.add(b)};var g=function(){return Array.prototype.slice.c
all(this)},h=window.NamedNodeMap||window.MozNamedAttrMap||{};NodeList.prototype.
array=g,h.prototype.array=g,HTMLCollection.prototype.array=g,a.createDOM=b}(Poly
mer),function(a){function b(a){var e=b.caller,g=e.nom,h=e._super;h||(g||(g=e.nom
=c.call(this,e)),g||console.warn("called super() on a method not installed decla
ratively (has no .nom property)"),h=d(e,g,f(this)));var i=h[g];return i?(i._supe
r||d(i,g,h),i.apply(this,a||[])):void 0}function c(a){for(var b=this.__proto__;b
&&b!==HTMLElement.prototype;){for(var c,d=Object.getOwnPropertyNames(b),e=0,f=d.
length;f>e&&(c=d[e]);e++){var g=Object.getOwnPropertyDescriptor(b,c);if("functio
n"==typeof g.value&&g.value===a)return c}b=b.__proto__}}function d(a,b,c){var d=
e(c,b,a);return d[b]&&(d[b].nom=b),a._super=d}function e(a,b,c){for(;a;){if(a[b]
!==c&&a[b])return a;a=f(a)}return Object}function f(a){return a.__proto__}a["sup
er"]=b}(Polymer),function(a){function b(a){return a}function c(a,b){var c=typeof
b;return b instanceof Date&&(c="date"),d[c](a,b)}var d={string:b,undefined:b,da
te:function(a){return new Date(Date.parse(a)||Date.now())},"boolean":function(a)
{return""===a?!0:"false"===a?!1:!!a},number:function(a){var b=parseFloat(a);retu
rn 0===b&&(b=parseInt(a)),isNaN(b)?a:b},object:function(a,b){if(null===b)return
a;try{return JSON.parse(a.replace(/'/g,'"'))}catch(c){return a}},"function":func
tion(a,b){return b}};a.deserializeValue=c}(Polymer),function(a){var b=a.extend,c
={};c.declaration={},c.instance={},c.publish=function(a,c){for(var d in a)b(c,a[
d])},a.api=c}(Polymer),function(a){var b={async:function(a,b,c){Polymer.flush(),
b=b&&b.length?b:[b];var d=function(){(this[a]||a).apply(this,b)}.bind(this),e=c?
setTimeout(d,c):requestAnimationFrame(d);return c?e:~e},cancelAsync:function(a){
0>a?cancelAnimationFrame(~a):clearTimeout(a)},fire:function(a,b,c,d,e){var f=c||
this,b=null===b||void 0===b?{}:b,g=new CustomEvent(a,{bubbles:void 0!==d?d:!0,ca
ncelable:void 0!==e?e:!0,detail:b});return f.dispatchEvent(g),g},asyncFire:funct
ion(){this.async("fire",arguments)},classFollows:function(a,b,c){b&&b.classList.
remove(c),a&&a.classList.add(c)},injectBoundHTML:function(a,b){var c=document.cr
eateElement("template");c.innerHTML=a;var d=this.instanceTemplate(c);return b&&(
b.textContent="",b.appendChild(d)),d}},c=function(){},d={};b.asyncMethod=b.async
,a.api.instance.utils=b,a.nop=c,a.nob=d}(Polymer),function(a){var b=window.WebCo
mponents?WebComponents.flags.log:{},c="on-",d={EVENT_PREFIX:c,addHostListeners:f
unction(){var a=this.eventDelegates; |
| 14 b.events&&Object.keys(a).length>0&&console.log("[%s] addHostListeners:",this.loc
alName,a);for(var c in a){var d=a[c];PolymerGestures.addEventListener(this,c,thi
s.element.getEventHandler(this,this,d))}},dispatchMethod:function(a,c,d){if(a){b
.events&&console.group("[%s] dispatch [%s]",a.localName,c);var e="function"==typ
eof c?c:a[c];e&&e[d?"apply":"call"](a,d),b.events&&console.groupEnd(),Polymer.fl
ush()}}};a.api.instance.events=d,a.addEventListener=function(a,b,c,d){PolymerGes
tures.addEventListener(wrap(a),b,c,d)},a.removeEventListener=function(a,b,c,d){P
olymerGestures.removeEventListener(wrap(a),b,c,d)}}(Polymer),function(a){var b={
copyInstanceAttributes:function(){var a=this._instanceAttributes;for(var b in a)
this.hasAttribute(b)||this.setAttribute(b,a[b])},takeAttributes:function(){if(th
is._publishLC)for(var a,b=0,c=this.attributes,d=c.length;(a=c[b])&&d>b;b++)this.
attributeToProperty(a.name,a.value)},attributeToProperty:function(b,c){var b=thi
s.propertyForAttribute(b);if(b){if(c&&c.search(a.bindPattern)>=0)return;var d=th
is[b],c=this.deserializeValue(c,d);c!==d&&(this[b]=c)}},propertyForAttribute:fun
ction(a){var b=this._publishLC&&this._publishLC[a];return b},deserializeValue:fu
nction(b,c){return a.deserializeValue(b,c)},serializeValue:function(a,b){return"
boolean"===b?a?"":void 0:"object"!==b&&"function"!==b&&void 0!==a?a:void 0},refl
ectPropertyToAttribute:function(a){var b=typeof this[a],c=this.serializeValue(th
is[a],b);void 0!==c?this.setAttribute(a,c):"boolean"===b&&this.removeAttribute(a
)}};a.api.instance.attributes=b}(Polymer),function(a){function b(a,b){return a==
=b?0!==a||1/a===1/b:f(a)&&f(b)?!0:a!==a&&b!==b}function c(a,b){return void 0===b
&&null===a?b:null===b||void 0===b?a:b}var d=window.WebComponents?WebComponents.f
lags.log:{},e={object:void 0,type:"update",name:void 0,oldValue:void 0},f=Number
.isNaN||function(a){return"number"==typeof a&&isNaN(a)},g={createPropertyObserve
r:function(){var a=this._observeNames;if(a&&a.length){var b=this._propertyObserv
er=new CompoundObserver(!0);this.registerObserver(b);for(var c,d=0,e=a.length;e>
d&&(c=a[d]);d++)b.addPath(this,c),this.observeArrayValue(c,this[c],null)}},openP
ropertyObserver:function(){this._propertyObserver&&this._propertyObserver.open(t
his.notifyPropertyChanges,this)},notifyPropertyChanges:function(a,b,c){var d,e,f
={};for(var g in b)if(d=c[2*g+1],e=this.observe[d]){var h=b[g],i=a[g];this.obser
veArrayValue(d,i,h),f[e]||(void 0!==h&&null!==h||void 0!==i&&null!==i)&&(f[e]=!0
,this.invokeMethod(e,[h,i,arguments]))}},invokeMethod:function(a,b){var c=this[a
]||a;"function"==typeof c&&c.apply(this,b)},deliverChanges:function(){this._prop
ertyObserver&&this._propertyObserver.deliver()},observeArrayValue:function(a,b,c
){var e=this.observe[a];if(e&&(Array.isArray(c)&&(d.observe&&console.log("[%s] o
bserveArrayValue: unregister observer [%s]",this.localName,a),this.closeNamedObs
erver(a+"__array")),Array.isArray(b))){d.observe&&console.log("[%s] observeArray
Value: register observer [%s]",this.localName,a,b);var f=new ArrayObserver(b);f.
open(function(a){this.invokeMethod(e,[a])},this),this.registerNamedObserver(a+"_
_array",f)}},emitPropertyChangeRecord:function(a,c,d){if(!b(c,d)&&(this._propert
yChanged(a,c,d),Observer.hasObjectObserve)){var f=this._objectNotifier;f||(f=thi
s._objectNotifier=Object.getNotifier(this)),e.object=this,e.name=a,e.oldValue=d,
f.notify(e)}},_propertyChanged:function(a){this.reflect[a]&&this.reflectProperty
ToAttribute(a)},bindProperty:function(a,b,d){if(d)return void(this[a]=b);var e=t
his.element.prototype.computed;if(e&&e[a]){var f=a+"ComputedBoundObservable_";re
turn void(this[f]=b)}return this.bindToAccessor(a,b,c)},bindToAccessor:function(
a,c,d){function e(b,c){j[f]=b;var d=j[h];d&&"function"==typeof d.setValue&&d.set
Value(b),j.emitPropertyChangeRecord(a,b,c)}var f=a+"_",g=a+"Observable_",h=a+"Co
mputedBoundObservable_";this[g]=c;var i=this[f],j=this,k=c.open(e);if(d&&!b(i,k)
){var l=d(i,k);b(k,l)||(k=l,c.setValue&&c.setValue(k))}e(k,i);var m={close:funct
ion(){c.close(),j[g]=void 0,j[h]=void 0}};return this.registerObserver(m),m},cre
ateComputedProperties:function(){if(this._computedNames)for(var a=0;a<this._comp
utedNames.length;a++){var b=this._computedNames[a],c=this.computed[b];try{var d=
PolymerExpressions.getExpression(c),e=d.getBinding(this,this.element.syntax);thi
s.bindToAccessor(b,e)}catch(f){console.error("Failed to create computed property
",f)}}},registerObserver:function(a){return this._observers?void this._observers
.push(a):void(this._observers=[a])},closeObservers:function(){if(this._observers
){for(var a=this._observers,b=0;b<a.length;b++){var c=a[b];c&&"function"==typeof
c.close&&c.close()}this._observers=[]}},registerNamedObserver:function(a,b){var
c=this._namedObservers||(this._namedObservers={});c[a]=b},closeNamedObserver:fu
nction(a){var b=this._namedObservers;return b&&b[a]?(b[a].close(),b[a]=null,!0):
void 0},closeNamedObservers:function(){if(this._namedObservers){for(var a in thi
s._namedObservers)this.closeNamedObserver(a);this._namedObservers={}}}};a.api.in
stance.properties=g}(Polymer),function(a){var b=window.WebComponents?WebComponen
ts.flags.log:{},c={instanceTemplate:function(a){HTMLTemplateElement.decorate(a);
for(var b=this.syntax||!a.bindingDelegate&&this.element.syntax,c=a.createInstanc
e(this,b),d=c.bindings_,e=0;e<d.length;e++)this.registerObserver(d[e]);return c}
,bind:function(a,b,c){var d=this.propertyForAttribute(a);if(d){var e=this.bindPr
operty(d,b,c);return Platform.enableBindingsReflection&&e&&(e.path=b.path_,this.
_recordBinding(d,e)),this.reflect[d]&&this.reflectPropertyToAttribute(d),e}retur
n this.mixinSuper(arguments)},_recordBinding:function(a,b){this.bindings_=this.b
indings_||{},this.bindings_[a]=b},bindFinished:function(){this.makeElementReady(
)},asyncUnbindAll:function(){this._unbound||(b.unbind&&console.log("[%s] asyncUn
bindAll",this.localName),this._unbindAllJob=this.job(this._unbindAllJob,this.unb
indAll,0))},unbindAll:function(){this._unbound||(this.closeObservers(),this.clos
eNamedObservers(),this._unbound=!0)},cancelUnbindAll:function(){return this._unb
ound?void(b.unbind&&console.warn("[%s] already unbound, cannot cancel unbindAll"
,this.localName)):(b.unbind&&console.log("[%s] cancelUnbindAll",this.localName),
void(this._unbindAllJob&&(this._unbindAllJob=this._unbindAllJob.stop())))}},d=/\
{\{([^{}]*)}}/;a.bindPattern=d,a.api.instance.mdv=c}(Polymer),function(a){functi
on b(a){return a.hasOwnProperty("PolymerBase")}function c(){}var d={PolymerBase:
!0,job:function(a,b,c){if("string"!=typeof a)return Polymer.job.call(this,a,b,c)
;var d="___"+a;this[d]=Polymer.job.call(this,this[d],b,c)},"super":Polymer["supe
r"],created:function(){},ready:function(){},createdCallback:function(){this.temp
lateInstance&&this.templateInstance.model&&console.warn("Attributes on "+this.lo
calName+" were data bound prior to Polymer upgrading the element. This may resul
t in incorrect binding types."),this.created(),this.prepareElement(),this.ownerD
ocument.isStagingDocument||this.makeElementReady()},prepareElement:function(){re
turn this._elementPrepared?void console.warn("Element already prepared",this.loc
alName):(this._elementPrepared=!0,this.shadowRoots={},this.createPropertyObserve
r(),this.openPropertyObserver(),this.copyInstanceAttributes(),this.takeAttribute
s(),void this.addHostListeners())},makeElementReady:function(){this._readied||(t
his._readied=!0,this.createComputedProperties(),this.parseDeclarations(this.__pr
oto__),this.removeAttribute("unresolved"),this.ready())},attributeChangedCallbac
k:function(a){"class"!==a&&"style"!==a&&this.attributeToProperty(a,this.getAttri
bute(a)),this.attributeChanged&&this.attributeChanged.apply(this,arguments)},att
achedCallback:function(){this.cancelUnbindAll(),this.attached&&this.attached(),t
his.hasBeenAttached||(this.hasBeenAttached=!0,this.domReady&&this.async("domRead
y"))},detachedCallback:function(){this.preventDispose||this.asyncUnbindAll(),thi
s.detached&&this.detached(),this.leftView&&this.leftView()},parseDeclarations:fu
nction(a){a&&a.element&&(this.parseDeclarations(a.__proto__),a.parseDeclaration.
call(this,a.element))},parseDeclaration:function(a){var b=this.fetchTemplate(a);
if(b){var c=this.shadowFromTemplate(b);this.shadowRoots[a.name]=c}},fetchTemplat
e:function(a){return a.querySelector("template")},shadowFromTemplate:function(a)
{if(a){var b=this.createShadowRoot(),c=this.instanceTemplate(a);return b.appendC
hild(c),this.shadowRootReady(b,a),b}},lightFromTemplate:function(a,b){if(a){this
.eventController=this;var c=this.instanceTemplate(a);return b?this.insertBefore(
c,b):this.appendChild(c),this.shadowRootReady(this),c}},shadowRootReady:function
(a){this.marshalNodeReferences(a)},marshalNodeReferences:function(a){var b=this.
$=this.$||{};if(a)for(var c,d=a.querySelectorAll("[id]"),e=0,f=d.length;f>e&&(c=
d[e]);e++)b[c.id]=c},onMutation:function(a,b){var c=new MutationObserver(functio
n(a){b.call(this,c,a),c.disconnect()}.bind(this));c.observe(a,{childList:!0,subt
ree:!0})}};c.prototype=d,d.constructor=c,a.Base=c,a.isBase=b,a.api.instance.base
=d}(Polymer),function(a){function b(a){return a.__proto__}function c(a,b){var c=
"",d=!1;b&&(c=b.localName,d=b.hasAttribute("is"));var e=WebComponents.ShadowCSS.
makeScopeSelector(c,d);return WebComponents.ShadowCSS.shimCssText(a,e)}var d=(wi
ndow.WebComponents?WebComponents.flags.log:{},window.ShadowDOMPolyfill),e="eleme
nt",f="controller",g={STYLE_SCOPE_ATTRIBUTE:e,installControllerStyles:function()
{var a=this.findStyleScope();if(a&&!this.scopeHasNamedStyle(a,this.localName)){f
or(var c=b(this),d="";c&&c.element;)d+=c.element.cssTextForScope(f),c=b(c);d&&th
is.installScopeCssText(d,a)}},installScopeStyle:function(a,b,c){var c=c||this.fi
ndStyleScope(),b=b||"";if(c&&!this.scopeHasNamedStyle(c,this.localName+b)){var d
="";if(a instanceof Array)for(var e,f=0,g=a.length;g>f&&(e=a[f]);f++)d+=e.textCo
ntent+"\n\n";else d=a.textContent;this.installScopeCssText(d,c,b)}},installScope
CssText:function(a,b,e){if(b=b||this.findStyleScope(),e=e||"",b){d&&(a=c(a,b.hos
t));var g=this.element.cssTextToScopeStyle(a,f);Polymer.applyStyleToScope(g,b),t
his.styleCacheForScope(b)[this.localName+e]=!0}},findStyleScope:function(a){for(
var b=a||this;b.parentNode;)b=b.parentNode;return b},scopeHasNamedStyle:function
(a,b){var c=this.styleCacheForScope(a);return c[b]},styleCacheForScope:function(
a){if(d){var b=a.host?a.host.localName:a.localName;return h[b]||(h[b]={})}return
a._scopeStyles=a._scopeStyles||{}}},h={};a.api.instance.styles=g}(Polymer),func
tion(a){function b(a,b){if("string"!=typeof a){var c=b||document._currentScript;
if(b=a,a=c&&c.parentNode&&c.parentNode.getAttribute?c.parentNode.getAttribute("n
ame"):"",!a)throw"Element name could not be inferred."}if(f(a))throw"Already reg
istered (Polymer) prototype for element "+a;e(a,b),d(a)}function c(a,b){i[a]=b}f
unction d(a){i[a]&&(i[a].registerWhenReady(),delete i[a])}function e(a,b){return
j[a]=b||{}}function f(a){return j[a]}function g(a,b){if("string"!=typeof b)retu
rn!1;var c=HTMLElement.getPrototypeForTag(b),d=c&&c.constructor;return d?CustomE
lements["instanceof"]?CustomElements["instanceof"](a,d):a instanceof d:!1}var h=
a.extend,i=(a.api,{}),j={};a.getRegisteredPrototype=f,a.waitingForPrototype=c,a.
instanceOfType=g,window.Polymer=b,h(Polymer,a),WebComponents.consumeDeclarations
&&WebComponents.consumeDeclarations(function(a){if(a)for(var c,d=0,e=a.length;e>
d&&(c=a[d]);d++)b.apply(null,c)})}(Polymer),function(a){var b={resolveElementPat
hs:function(a){Polymer.urlResolver.resolveDom(a)},addResolvePathApi:function(){v
ar a=this.getAttribute("assetpath")||"",b=new URL(a,this.ownerDocument.baseURI);
this.prototype.resolvePath=function(a,c){var d=new URL(a,c||b);return d.href}}};
a.api.declaration.path=b}(Polymer),function(a){function b(a,b){var c=new URL(a.g
etAttribute("href"),b).href;return"@import '"+c+"';"}function c(a,b){if(a){b===d
ocument&&(b=document.head),i&&(b=document.head);var c=d(a.textContent),e=a.getAt
tribute(h);e&&c.setAttribute(h,e);var f=b.firstElementChild;if(b===document.head
){var g="style["+h+"]",j=document.head.querySelectorAll(g);j.length&&(f=j[j.leng
th-1].nextElementSibling)}b.insertBefore(c,f)}}function d(a,b){b=b||document,b=b
.createElement?b:b.ownerDocument;var c=b.createElement("style");return c.textCon
tent=a,c}function e(a){return a&&a.__resource||""}function f(a,b){return q?q.cal
l(a,b):void 0}var g=(window.WebComponents?WebComponents.flags.log:{},a.api.insta
nce.styles),h=g.STYLE_SCOPE_ATTRIBUTE,i=window.ShadowDOMPolyfill,j="style",k="@i
mport",l="link[rel=stylesheet]",m="global",n="polymer-scope",o={loadStyles:funct
ion(a){var b=this.fetchTemplate(),c=b&&this.templateContent();if(c){this.convert
SheetsToStyles(c);var d=this.findLoadableStyles(c);if(d.length){var e=b.ownerDoc
ument.baseURI;return Polymer.styleResolver.loadStyles(d,e,a)}}a&&a()},convertShe
etsToStyles:function(a){for(var c,e,f=a.querySelectorAll(l),g=0,h=f.length;h>g&&
(c=f[g]);g++)e=d(b(c,this.ownerDocument.baseURI),this.ownerDocument),this.copySh
eetAttributes(e,c),c.parentNode.replaceChild(e,c)},copySheetAttributes:function(
a,b){for(var c,d=0,e=b.attributes,f=e.length;(c=e[d])&&f>d;d++)"rel"!==c.name&&"
href"!==c.name&&a.setAttribute(c.name,c.value)},findLoadableStyles:function(a){v
ar b=[];if(a)for(var c,d=a.querySelectorAll(j),e=0,f=d.length;f>e&&(c=d[e]);e++)
c.textContent.match(k)&&b.push(c);return b},installSheets:function(){this.cacheS
heets(),this.cacheStyles(),this.installLocalSheets(),this.installGlobalStyles()}
,cacheSheets:function(){this.sheets=this.findNodes(l),this.sheets.forEach(functi
on(a){a.parentNode&&a.parentNode.removeChild(a)})},cacheStyles:function(){this.s
tyles=this.findNodes(j+"["+n+"]"),this.styles.forEach(function(a){a.parentNode&&
a.parentNode.removeChild(a)})},installLocalSheets:function(){var a=this.sheets.f
ilter(function(a){return!a.hasAttribute(n)}),b=this.templateContent();if(b){var
c="";if(a.forEach(function(a){c+=e(a)+"\n"}),c){var f=d(c,this.ownerDocument);b.
insertBefore(f,b.firstChild)}}},findNodes:function(a,b){var c=this.querySelector
All(a).array(),d=this.templateContent();if(d){var e=d.querySelectorAll(a).array(
);c=c.concat(e)}return b?c.filter(b):c},installGlobalStyles:function(){var a=thi
s.styleForScope(m);c(a,document.head)},cssTextForScope:function(a){var b="",c="[
"+n+"="+a+"]",d=function(a){return f(a,c)},g=this.sheets.filter(d);g.forEach(fun
ction(a){b+=e(a)+"\n\n"});var h=this.styles.filter(d);return h.forEach(function(
a){b+=a.textContent+"\n\n"}),b},styleForScope:function(a){var b=this.cssTextForS
cope(a);return this.cssTextToScopeStyle(b,a)},cssTextToScopeStyle:function(a,b){
if(a){var c=d(a);return c.setAttribute(h,this.getAttribute("name")+"-"+b),c}}},p
=HTMLElement.prototype,q=p.matches||p.matchesSelector||p.webkitMatchesSelector||
p.mozMatchesSelector;a.api.declaration.styles=o,a.applyStyleToScope=c}(Polymer),
function(a){var b=(window.WebComponents?WebComponents.flags.log:{},a.api.instanc
e.events),c=b.EVENT_PREFIX,d={};["webkitAnimationStart","webkitAnimationEnd","we
bkitTransitionEnd","DOMFocusOut","DOMFocusIn","DOMMouseScroll"].forEach(function
(a){d[a.toLowerCase()]=a});var e={parseHostEvents:function(){var a=this.prototyp
e.eventDelegates;this.addAttributeDelegates(a)},addAttributeDelegates:function(a
){for(var b,c=0;b=this.attributes[c];c++)this.hasEventPrefix(b.name)&&(a[this.re
moveEventPrefix(b.name)]=b.value.replace("{{","").replace("}}","").trim())},hasE
ventPrefix:function(a){return a&&"o"===a[0]&&"n"===a[1]&&"-"===a[2]},removeEvent
Prefix:function(a){return a.slice(f)},findController:function(a){for(;a.parentNo
de;){if(a.eventController)return a.eventController;a=a.parentNode}return a.host}
,getEventHandler:function(a,b,c){var d=this;return function(e){a&&a.PolymerBase|
|(a=d.findController(b));var f=[e,e.detail,e.currentTarget];a.dispatchMethod(a,c
,f)}},prepareEventBinding:function(a,b){if(this.hasEventPrefix(b)){var c=this.re
moveEventPrefix(b);c=d[c]||c;var e=this;return function(b,d,f){function g(){retu
rn"{{ "+a+" }}"}var h=e.getEventHandler(void 0,d,a);return PolymerGestures.addEv
entListener(d,c,h),f?void 0:{open:g,discardChanges:g,close:function(){PolymerGes
tures.removeEventListener(d,c,h)}}}}}},f=c.length;a.api.declaration.events=e}(Po
lymer),function(a){var b=["attribute"],c={inferObservers:function(a){var b,c=a.o
bserve;for(var d in a)"Changed"===d.slice(-7)&&(b=d.slice(0,-7),this.canObserveP
roperty(b)&&(c||(c=a.observe={}),c[b]=c[b]||d))},canObserveProperty:function(a){
return b.indexOf(a)<0},explodeObservers:function(a){var b=a.observe;if(b){var c=
{};for(var d in b)for(var e,f=d.split(" "),g=0;e=f[g];g++)c[e]=b[d];a.observe=c}
},optimizePropertyMaps:function(a){if(a.observe){var b=a._observeNames=[];for(va
r c in a.observe)for(var d,e=c.split(" "),f=0;d=e[f];f++)b.push(d)}if(a.publish)
{var b=a._publishNames=[];for(var c in a.publish)b.push(c)}if(a.computed){var b=
a._computedNames=[];for(var c in a.computed)b.push(c)}},publishProperties:functi
on(a,b){var c=a.publish;c&&(this.requireProperties(c,a,b),this.filterInvalidAcce
ssorNames(c),a._publishLC=this.lowerCaseMap(c));var d=a.computed;d&&this.filterI
nvalidAccessorNames(d)},filterInvalidAccessorNames:function(a){for(var b in a)th
is.propertyNameBlacklist[b]&&(console.warn('Cannot define property "'+b+'" for e
lement "'+this.name+'" because it has the same name as an HTMLElement property,
and not all browsers support overriding that. Consider giving it a different nam
e.'),delete a[b])},requireProperties:function(a,b){b.reflect=b.reflect||{};for(v
ar c in a){var d=a[c];d&&void 0!==d.reflect&&(b.reflect[c]=Boolean(d.reflect),d=
d.value),void 0!==d&&(b[c]=d)}},lowerCaseMap:function(a){var b={};for(var c in a
)b[c.toLowerCase()]=c;return b},createPropertyAccessor:function(a,b){var c=this.
prototype,d=a+"_",e=a+"Observable_";c[d]=c[a],Object.defineProperty(c,a,{get:fun
ction(){var a=this[e];return a&&a.deliver(),this[d]},set:function(c){if(b)return
this[d];var f=this[e];if(f)return void f.setValue(c);var g=this[d];return this[
d]=c,this.emitPropertyChangeRecord(a,c,g),c},configurable:!0})},createPropertyAc
cessors:function(a){var b=a._computedNames;if(b&&b.length)for(var c,d=0,e=b.leng
th;e>d&&(c=b[d]);d++)this.createPropertyAccessor(c,!0);var b=a._publishNames;if(
b&&b.length)for(var c,d=0,e=b.length;e>d&&(c=b[d]);d++)a.computed&&a.computed[c]
||this.createPropertyAccessor(c)},propertyNameBlacklist:{children:1,"class":1,id
:1,hidden:1,style:1,title:1}};a.api.declaration.properties=c}(Polymer),function(
a){var b="attributes",c=/\s|,/,d={inheritAttributesObjects:function(a){this.inhe
ritObject(a,"publishLC"),this.inheritObject(a,"_instanceAttributes")},publishAtt
ributes:function(a){var d=this.getAttribute(b);if(d)for(var e,f=a.publish||(a.pu
blish={}),g=d.split(c),h=0,i=g.length;i>h;h++)e=g[h].trim(),e&&void 0===f[e]&&(f
[e]=void 0)},accumulateInstanceAttributes:function(){for(var a,b=this.prototype.
_instanceAttributes,c=this.attributes,d=0,e=c.length;e>d&&(a=c[d]);d++)this.isIn
stanceAttribute(a.name)&&(b[a.name]=a.value)},isInstanceAttribute:function(a){re
turn!this.blackList[a]&&"on-"!==a.slice(0,3)},blackList:{name:1,"extends":1,cons
tructor:1,noscript:1,assetpath:1,"cache-csstext":1}};d.blackList[b]=1,a.api.decl
aration.attributes=d}(Polymer),function(a){var b=a.api.declaration.events,c=new
PolymerExpressions,d=c.prepareBinding;c.prepareBinding=function(a,e,f){return b.
prepareEventBinding(a,e,f)||d.call(c,a,e,f)};var e={syntax:c,fetchTemplate:funct
ion(){return this.querySelector("template")},templateContent:function(){var a=th
is.fetchTemplate();return a&&a.content},installBindingDelegate:function(a){a&&(a
.bindingDelegate=this.syntax)}};a.api.declaration.mdv=e}(Polymer),function(a){fu
nction b(a){if(!Object.__proto__){var b=Object.getPrototypeOf(a);a.__proto__=b,d
(b)&&(b.__proto__=Object.getPrototypeOf(b))}}var c=a.api,d=a.isBase,e=a.extend,f
=window.ShadowDOMPolyfill,g={register:function(a,b){this.buildPrototype(a,b),thi
s.registerPrototype(a,b),this.publishConstructor()},buildPrototype:function(b,c)
{var d=a.getRegisteredPrototype(b),e=this.generateBasePrototype(c);this.desugarB
eforeChaining(d,e),this.prototype=this.chainPrototypes(d,e),this.desugarAfterCha
ining(b,c)},desugarBeforeChaining:function(a,b){a.element=this,this.publishAttri
butes(a,b),this.publishProperties(a,b),this.inferObservers(a),this.explodeObserv
ers(a)},chainPrototypes:function(a,c){this.inheritMetaData(a,c);var d=this.chain
Object(a,c);return b(d),d},inheritMetaData:function(a,b){this.inheritObject("obs
erve",a,b),this.inheritObject("publish",a,b),this.inheritObject("reflect",a,b),t
his.inheritObject("_publishLC",a,b),this.inheritObject("_instanceAttributes",a,b
),this.inheritObject("eventDelegates",a,b)},desugarAfterChaining:function(a,b){t
his.optimizePropertyMaps(this.prototype),this.createPropertyAccessors(this.proto
type),this.installBindingDelegate(this.fetchTemplate()),this.installSheets(),thi
s.resolveElementPaths(this),this.accumulateInstanceAttributes(),this.parseHostEv
ents(),this.addResolvePathApi(),f&&WebComponents.ShadowCSS.shimStyling(this.temp
lateContent(),a,b),this.prototype.registerCallback&&this.prototype.registerCallb
ack(this)},publishConstructor:function(){var a=this.getAttribute("constructor");
a&&(window[a]=this.ctor)},generateBasePrototype:function(a){var b=this.findBaseP
rototype(a);if(!b){var b=HTMLElement.getPrototypeForTag(a);b=this.ensureBaseApi(
b),h[a]=b}return b},findBasePrototype:function(a){return h[a]},ensureBaseApi:fun
ction(a){if(a.PolymerBase)return a;var b=Object.create(a);return c.publish(c.ins
tance,b),this.mixinMethod(b,a,c.instance.mdv,"bind"),b},mixinMethod:function(a,b
,c,d){var e=function(a){return b[d].apply(this,a)};a[d]=function(){return this.m
ixinSuper=e,c[d].apply(this,arguments)}},inheritObject:function(a,b,c){var d=b[a
]||{};b[a]=this.chainObject(d,c[a])},registerPrototype:function(a,b){var c={prot
otype:this.prototype},d=this.findTypeExtension(b);d&&(c["extends"]=d),HTMLElemen
t.register(a,this.prototype),this.ctor=document.registerElement(a,c)},findTypeEx
tension:function(a){if(a&&a.indexOf("-")<0)return a;var b=this.findBasePrototype
(a);return b.element?this.findTypeExtension(b.element["extends"]):void 0}},h={};
g.chainObject=Object.__proto__?function(a,b){return a&&b&&a!==b&&(a.__proto__=b)
,a}:function(a,b){if(a&&b&&a!==b){var c=Object.create(b);a=e(c,a)}return a},c.de
claration.prototype=g}(Polymer),function(a){function b(a){return document.contai
ns(a)?j:i}function c(){return i.length?i[0]:j[0]}function d(a){f.waitToReady=!0,
Polymer.endOfMicrotask(function(){HTMLImports.whenReady(function(){f.addReadyCal
lback(a),f.waitToReady=!1,f.check()})})}function e(a){if(void 0===a)return void
f.ready();var b=setTimeout(function(){f.ready()},a);Polymer.whenReady(function()
{clearTimeout(b)})}var f={wait:function(a){a.__queue||(a.__queue={},g.push(a))},
enqueue:function(a,c,d){var e=a.__queue&&!a.__queue.check;return e&&(b(a).push(a
),a.__queue.check=c,a.__queue.go=d),0!==this.indexOf(a)},indexOf:function(a){var
c=b(a).indexOf(a);return c>=0&&document.contains(a)&&(c+=HTMLImports.useNative|
|HTMLImports.ready?i.length:1e9),c},go:function(a){var b=this.remove(a);b&&(a.__
queue.flushable=!0,this.addToFlushQueue(b),this.check())},remove:function(a){var
c=this.indexOf(a);if(0===c)return b(a).shift()},check:function(){var a=this.nex
tElement();return a&&a.__queue.check.call(a),this.canReady()?(this.ready(),!0):v
oid 0},nextElement:function(){return c()},canReady:function(){return!this.waitTo
Ready&&this.isEmpty()},isEmpty:function(){for(var a,b=0,c=g.length;c>b&&(a=g[b])
;b++)if(a.__queue&&!a.__queue.flushable)return;return!0},addToFlushQueue:functio
n(a){h.push(a)},flush:function(){if(!this.flushing){this.flushing=!0;for(var a;h
.length;)a=h.shift(),a.__queue.go.call(a),a.__queue=null;this.flushing=!1}},read
y:function(){var a=CustomElements.ready;CustomElements.ready=!1,this.flush(),Cus
tomElements.useNative||CustomElements.upgradeDocumentTree(document),CustomElemen
ts.ready=a,Polymer.flush(),requestAnimationFrame(this.flushReadyCallbacks)},addR
eadyCallback:function(a){a&&k.push(a)},flushReadyCallbacks:function(){if(k)for(v
ar a;k.length;)(a=k.shift())()},waitingFor:function(){for(var a,b=[],c=0,d=g.len
gth;d>c&&(a=g[c]);c++)a.__queue&&!a.__queue.flushable&&b.push(a);return b},waitT
oReady:!0},g=[],h=[],i=[],j=[],k=[];a.elements=g,a.waitingFor=f.waitingFor.bind(
f),a.forceReady=e,a.queue=f,a.whenReady=a.whenPolymerReady=d}(Polymer),function(
a){function b(a){return Boolean(HTMLElement.getPrototypeForTag(a))}function c(a)
{return a&&a.indexOf("-")>=0}var d=a.extend,e=a.api,f=a.queue,g=a.whenReady,h=a.
getRegisteredPrototype,i=a.waitingForPrototype,j=d(Object.create(HTMLElement.pro
totype),{createdCallback:function(){this.getAttribute("name")&&this.init()},init
:function(){this.name=this.getAttribute("name"),this["extends"]=this.getAttribut
e("extends"),f.wait(this),this.loadResources(),this.registerWhenReady()},registe
rWhenReady:function(){this.registered||this.waitingForPrototype(this.name)||this
.waitingForQueue()||this.waitingForResources()||f.go(this)},_register:function()
{c(this["extends"])&&!b(this["extends"])&&console.warn("%s is attempting to exte
nd %s, an unregistered element or one that was not registered with Polymer.",thi
s.name,this["extends"]),this.register(this.name,this["extends"]),this.registered
=!0},waitingForPrototype:function(a){return h(a)?void 0:(i(a,this),this.handleNo
Script(a),!0)},handleNoScript:function(a){this.hasAttribute("noscript")&&!this.n
oscript&&(this.noscript=!0,Polymer(a))},waitingForResources:function(){return th
is._needsResources},waitingForQueue:function(){return f.enqueue(this,this.regist
erWhenReady,this._register)},loadResources:function(){this._needsResources=!0,th
is.loadStyles(function(){this._needsResources=!1,this.registerWhenReady()}.bind(
this))}});e.publish(e.declaration,j),g(function(){document.body.removeAttribute(
"unresolved"),document.dispatchEvent(new CustomEvent("polymer-ready",{bubbles:!0
}))}),document.registerElement("polymer-element",{prototype:j})}(Polymer),functi
on(a){function b(a,b){a?(document.head.appendChild(a),d(b)):b&&b()}function c(a,
c){if(a&&a.length){for(var d,e,f=document.createDocumentFragment(),g=0,h=a.lengt
h;h>g&&(d=a[g]);g++)e=document.createElement("link"),e.rel="import",e.href=d,f.a
ppendChild(e);b(f,c)}else c&&c()}var d=a.whenReady;a["import"]=c,a.importElement
s=b}(Polymer),function(){var a=document.createElement("polymer-element");a.setAt
tribute("name","auto-binding"),a.setAttribute("extends","template"),a.init(),Pol
ymer("auto-binding",{createdCallback:function(){this.syntax=this.bindingDelegate
=this.makeSyntax(),Polymer.whenPolymerReady(function(){this.model=this,this.setA
ttribute("bind",""),this.async(function(){this.marshalNodeReferences(this.parent
Node),this.fire("template-bound")})}.bind(this))},makeSyntax:function(){var a=Ob
ject.create(Polymer.api.declaration.events),b=this;a.findController=function(){r
eturn b.model};var c=new PolymerExpressions,d=c.prepareBinding;return c.prepareB
inding=function(b,e,f){return a.prepareEventBinding(b,e,f)||d.call(c,b,e,f)},c}}
)}(); |
OLD | NEW |